diff --git a/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go b/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go index ae00749e62..6c8a1f2d9f 100644 --- a/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go +++ b/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go @@ -5,6 +5,9 @@ import ( "context" "fmt" "github.com/flyteorg/flyte/flyteadmin/pkg/common" + "github.com/flyteorg/flyte/flyteadmin/pkg/repositories/models" + "github.com/flyteorg/flyte/flytestdlib/contextutils" + "reflect" "time" @@ -200,47 +203,89 @@ func (c *CloudEventWrappedPublisher) TransformWorkflowExecutionEvent(ctx context } return &event.CloudEventWorkflowExecution{ - RawEvent: rawEvent, - OutputData: outputs, - OutputInterface: &workflowInterface, - InputData: inputs, - ScheduledAt: spec.GetMetadata().GetScheduledAt(), - ArtifactIds: spec.GetMetadata().GetArtifactIds(), - ParentNodeExecution: spec.GetMetadata().GetParentNodeExecution(), - ReferenceExecution: spec.GetMetadata().GetReferenceExecution(), - LaunchPlanId: spec.LaunchPlan, + RawEvent: rawEvent, + OutputData: outputs, + OutputInterface: &workflowInterface, + InputData: inputs, + ArtifactIds: spec.GetMetadata().GetArtifactIds(), + ReferenceExecution: spec.GetMetadata().GetReferenceExecution(), + LaunchPlanId: spec.LaunchPlan, }, nil } -func (c *CloudEventWrappedPublisher) TransformNodeExecutionEvent(ctx context.Context, rawEvent *event.NodeExecutionEvent) (*event.CloudEventNodeExecution, error) { - return &event.CloudEventNodeExecution{ - RawEvent: rawEvent, - }, nil +func getNodeExecutionContext(ctx context.Context, identifier *core.NodeExecutionIdentifier) context.Context { + ctx = contextutils.WithProjectDomain(ctx, identifier.ExecutionId.Project, identifier.ExecutionId.Domain) + ctx = contextutils.WithExecutionID(ctx, identifier.ExecutionId.Name) + return contextutils.WithNodeID(ctx, identifier.NodeId) } -func (c *CloudEventWrappedPublisher) TransformTaskExecutionEvent(ctx context.Context, rawEvent *event.TaskExecutionEvent) (*event.CloudEventTaskExecution, error) { +// This is a rough copy of the ListTaskExecutions function in TaskExecutionManager. It can be deprecated once we move the processing out of Admin itself. +// Just return the highest retry attempt. +func (c *CloudEventWrappedPublisher) getLatestTaskExecutions(ctx context.Context, nodeExecutionID core.NodeExecutionIdentifier) (*admin.TaskExecution, error) { + ctx = getNodeExecutionContext(ctx, &nodeExecutionID) - if rawEvent == nil { - return nil, fmt.Errorf("nothing to publish, TaskExecution event is nil") + identifierFilters, err := util.GetNodeExecutionIdentifierFilters(ctx, nodeExecutionID) + if err != nil { + return nil, err } - // For now, don't append any additional information unless succeeded - if rawEvent.Phase != core.TaskExecution_SUCCEEDED { - return &event.CloudEventTaskExecution{ - RawEvent: rawEvent, - OutputData: nil, - OutputInterface: nil, + sort := admin.Sort{ + Key: "retry_attempt", + Direction: 0, + } + sortParameter, err := common.NewSortParameter(&sort, models.TaskExecutionColumns) + if err != nil { + return nil, err + } + + output, err := c.db.TaskExecutionRepo().List(ctx, repositoryInterfaces.ListResourceInput{ + InlineFilters: identifierFilters, + Offset: 0, + Limit: 1, + SortParameter: sortParameter, + }) + if err != nil { + return nil, err + } + if output.TaskExecutions == nil || len(output.TaskExecutions) == 0 { + logger.Debugf(ctx, "no task executions found for node exec id [%+v]", nodeExecutionID) + return nil, nil + } + + taskExecutionList, err := transformers.FromTaskExecutionModels(output.TaskExecutions, transformers.DefaultExecutionTransformerOptions) + if err != nil { + logger.Debugf(ctx, "failed to transform task execution models for node exec id [%+v] with err: %v", nodeExecutionID, err) + return nil, err + } + + return taskExecutionList[0], nil +} + +func (c *CloudEventWrappedPublisher) TransformNodeExecutionEvent(ctx context.Context, rawEvent *event.NodeExecutionEvent) (*event.CloudEventNodeExecution, error) { + if rawEvent == nil || rawEvent.Id == nil { + return nil, fmt.Errorf("nothing to publish, NodeExecution event or ID is nil") + } + + // Skip nodes unless they're succeeded and not start nodes + if rawEvent.Phase != core.NodeExecution_SUCCEEDED { + return &event.CloudEventNodeExecution{ + RawEvent: rawEvent, + }, nil + } else if rawEvent.Id.NodeId == "start-node" { + return &event.CloudEventNodeExecution{ + RawEvent: rawEvent, }, nil } + // metric // This gets the parent workflow execution metadata executionModel, err := c.db.ExecutionRepo().Get(ctx, repositoryInterfaces.Identifier{ - Project: rawEvent.ParentNodeExecutionId.ExecutionId.Project, - Domain: rawEvent.ParentNodeExecutionId.ExecutionId.Domain, - Name: rawEvent.ParentNodeExecutionId.ExecutionId.Name, + Project: rawEvent.Id.ExecutionId.Project, + Domain: rawEvent.Id.ExecutionId.Domain, + Name: rawEvent.Id.ExecutionId.Name, }) if err != nil { - logger.Infof(ctx, "couldn't find execution [%+v] to save termination cause", rawEvent.ParentNodeExecutionId) + logger.Infof(ctx, "couldn't find execution [%+v] for cloud event processing", rawEvent.Id.ExecutionId) return nil, err } @@ -250,19 +295,9 @@ func (c *CloudEventWrappedPublisher) TransformTaskExecutionEvent(ctx context.Con fmt.Printf("there was an error with spec %v %v", err, executionModel.Spec) } - taskModel, err := c.db.TaskRepo().Get(ctx, repositoryInterfaces.Identifier{ - Project: rawEvent.TaskId.Project, - Domain: rawEvent.TaskId.Domain, - Name: rawEvent.TaskId.Name, - Version: rawEvent.TaskId.Version, - }) - if err != nil { - // TODO: metric this - logger.Debugf(ctx, "Failed to get task with task id [%+v] with err %v", rawEvent.TaskId, err) - return nil, err - } - task, err := transformers.FromTaskModel(taskModel) - + // Get inputs/outputs + // This will likely need to move to the artifact service side, given message size limits. + // Replace with call to GetNodeExecutionData var inputs *core.LiteralMap if rawEvent.GetInputData() != nil { inputs = rawEvent.GetInputData() @@ -273,9 +308,10 @@ func (c *CloudEventWrappedPublisher) TransformTaskExecutionEvent(ctx context.Con fmt.Printf("Error fetching input literal map %v", rawEvent) } } else { - logger.Infof(ctx, "Task execution for node exec [%+v] has no input data", rawEvent.ParentNodeExecutionId) + logger.Infof(ctx, "Node execution for node exec [%+v] has no input data", rawEvent.Id) } + // This will likely need to move to the artifact service side, given message size limits. var outputs *core.LiteralMap if rawEvent.GetOutputData() != nil { outputs = rawEvent.GetOutputData() @@ -289,16 +325,53 @@ func (c *CloudEventWrappedPublisher) TransformTaskExecutionEvent(ctx context.Con } } + // Fetch the latest task execution if any, and pull out the task interface, if applicable. + // These are optional fields... if the node execution doesn't have a task execution then these will be empty. + var taskExecID *core.TaskExecutionIdentifier + var typedInterface *core.TypedInterface + + lte, err := c.getLatestTaskExecutions(ctx, *rawEvent.Id) + if err != nil { + logger.Errorf(ctx, "failed to get latest task execution for node exec id [%+v] with err: %v", rawEvent.Id, err) + return nil, err + } + if lte != nil { + taskModel, err := c.db.TaskRepo().Get(ctx, repositoryInterfaces.Identifier{ + Project: lte.Id.TaskId.Project, + Domain: lte.Id.TaskId.Domain, + Name: lte.Id.TaskId.Name, + Version: lte.Id.TaskId.Version, + }) + if err != nil { + // TODO: metric this + // metric + logger.Debugf(ctx, "Failed to get task with task id [%+v] with err %v", lte.Id.TaskId, err) + return nil, err + } + task, err := transformers.FromTaskModel(taskModel) + typedInterface = task.Closure.CompiledTask.Template.Interface + taskExecID = lte.Id + } + + return &event.CloudEventNodeExecution{ + RawEvent: rawEvent, + TaskExecId: taskExecID, + OutputData: outputs, + OutputInterface: typedInterface, + InputData: inputs, + ArtifactIds: spec.GetMetadata().GetArtifactIds(), + LaunchPlanId: spec.LaunchPlan, + }, nil +} + +func (c *CloudEventWrappedPublisher) TransformTaskExecutionEvent(ctx context.Context, rawEvent *event.TaskExecutionEvent) (*event.CloudEventTaskExecution, error) { + + if rawEvent == nil { + return nil, fmt.Errorf("nothing to publish, TaskExecution event is nil") + } + return &event.CloudEventTaskExecution{ - RawEvent: rawEvent, - OutputData: outputs, - OutputInterface: task.Closure.CompiledTask.Template.Interface, - InputData: inputs, - ScheduledAt: spec.GetMetadata().GetScheduledAt(), - ArtifactIds: spec.GetMetadata().GetArtifactIds(), - ParentNodeExecution: spec.GetMetadata().GetParentNodeExecution(), - ReferenceExecution: spec.GetMetadata().GetReferenceExecution(), - LaunchPlanId: spec.LaunchPlan, + RawEvent: rawEvent, }, nil } @@ -359,6 +432,7 @@ func (c *CloudEventWrappedPublisher) Publish(ctx context.Context, notificationTy phase = e.Phase.String() eventTime = e.OccurredAt.AsTime() eventID = fmt.Sprintf("%v.%v", executionID, phase) + eventSource = common.FlyteURLKeyFromNodeExecutionID(*msgType.Event.Id) finalMsg, err = c.TransformNodeExecutionEvent(ctx, e) case *event.CloudEventExecutionStart: topic = "cloudevents.ExecutionStart" diff --git a/flyteadmin/pkg/manager/impl/task_execution_manager.go b/flyteadmin/pkg/manager/impl/task_execution_manager.go index 8f03662354..61d94a086f 100644 --- a/flyteadmin/pkg/manager/impl/task_execution_manager.go +++ b/flyteadmin/pkg/manager/impl/task_execution_manager.go @@ -206,7 +206,7 @@ func (m *TaskExecutionManager) CreateTaskExecutionEvent(ctx context.Context, req } go func() { - ceCtx := context.Background() + ceCtx := context.TODO() if err := m.cloudEventsPublisher.Publish(ceCtx, proto.MessageName(&request), &request); err != nil { logger.Errorf(ctx, "error publishing cloud event [%+v] with err: [%v]", request.RequestId, err) } diff --git a/flyteartifacts/pkg/server/processor/events_handler.go b/flyteartifacts/pkg/server/processor/events_handler.go index e7b54d3d32..6fe718d59c 100644 --- a/flyteartifacts/pkg/server/processor/events_handler.go +++ b/flyteartifacts/pkg/server/processor/events_handler.go @@ -33,13 +33,14 @@ func (s *ServiceCallHandler) HandleEvent(ctx context.Context, cloudEvent *event2 return s.HandleEventTaskExec(ctx, source, msgType) case *event.CloudEventNodeExecution: logger.Debugf(ctx, "Handling CloudEventNodeExecution [%v]", msgType.RawEvent.Id) - return s.HandleEventNodeExec(ctx, msgType) + return s.HandleEventNodeExec(ctx, source, msgType) default: return fmt.Errorf("HandleEvent found unknown message type [%T]", msgType) } } func (s *ServiceCallHandler) HandleEventExecStart(_ context.Context, _ *event.CloudEventExecutionStart) error { + // metric return nil } @@ -171,7 +172,7 @@ func getPartitionsAndTag(ctx context.Context, partialID core.ArtifactID, variabl return partitions, tag, nil } -func (s *ServiceCallHandler) HandleEventTaskExec(ctx context.Context, source string, evt *event.CloudEventTaskExecution) error { +func (s *ServiceCallHandler) HandleEventTaskExec(ctx context.Context, _ string, evt *event.CloudEventTaskExecution) error { if evt.RawEvent.Phase != core.TaskExecution_SUCCEEDED { logger.Debug(ctx, "Skipping non-successful task execution event") @@ -179,10 +180,49 @@ func (s *ServiceCallHandler) HandleEventTaskExec(ctx context.Context, source str } // metric - execID := evt.RawEvent.ParentNodeExecutionId.ExecutionId + return nil +} + +func (s *ServiceCallHandler) HandleEventNodeExec(ctx context.Context, source string, evt *event.CloudEventNodeExecution) error { + if evt.RawEvent.Phase != core.NodeExecution_SUCCEEDED { + logger.Debug(ctx, "Skipping non-successful task execution event") + return nil + } + if evt.RawEvent.Id.NodeId == "end-node" { + logger.Debug(ctx, "Skipping end node for %s", evt.RawEvent.Id.ExecutionId.Name) + return nil + } + // metric + + execID := evt.RawEvent.Id.ExecutionId if evt.GetOutputData().GetLiterals() == nil || len(evt.OutputData.Literals) == 0 { - logger.Debugf(ctx, "No output data to process for task event from [%v]: %s", execID, evt.RawEvent.TaskId.Name) + logger.Debugf(ctx, "No output data to process for task event from [%s] node %s", execID, evt.RawEvent.Id.NodeId) + } + + if evt.OutputInterface == nil { + if evt.GetOutputData() != nil { + // metric this as error + logger.Errorf(ctx, "No output interface to process for task event from [%s] node %s, but output data is not nil", execID, evt.RawEvent.Id.NodeId) + } + logger.Debugf(ctx, "No output interface to process for task event from [%s] node %s", execID, evt.RawEvent.Id.NodeId) + return nil } + + if evt.RawEvent.GetTaskNodeMetadata() != nil { + if evt.RawEvent.GetTaskNodeMetadata().CacheStatus == core.CatalogCacheStatus_CACHE_HIT { + logger.Debugf(ctx, "Skipping cache hit for %s", evt.RawEvent.Id) + return nil + } + } + var taskExecID *core.TaskExecutionIdentifier + if taskExecID = evt.GetTaskExecId(); taskExecID == nil { + logger.Debugf(ctx, "No task execution id to process for task event from [%s] node %s", execID, evt.RawEvent.Id.NodeId) + return nil + } + + // See note on the cloudevent_publisher side, we'll have to call one of the get data endpoints to get the actual data + // rather than reading them here. But read here for now. + // Iterate through the output interface. For any outputs that have an artifact ID specified, grab the // output Literal and construct a Create request and call the service. for varName, variable := range evt.OutputInterface.Outputs.Variables { @@ -191,14 +231,8 @@ func (s *ServiceCallHandler) HandleEventTaskExec(ctx context.Context, source str output := evt.OutputData.Literals[varName] - taskExecID := core.TaskExecutionIdentifier{ - TaskId: evt.RawEvent.TaskId, - NodeExecutionId: evt.RawEvent.ParentNodeExecutionId, - RetryAttempt: evt.RawEvent.RetryAttempt, - } - // Add a tracking tag to the Literal before saving. - version := fmt.Sprintf("%s/%s", source, varName) + version := fmt.Sprintf("%s/%d/%s", source, taskExecID.RetryAttempt, varName) trackingTag := fmt.Sprintf("%s/%s/%s", execID.Project, execID.Domain, version) if output.Metadata == nil { output.Metadata = make(map[string]string, 1) @@ -208,7 +242,7 @@ func (s *ServiceCallHandler) HandleEventTaskExec(ctx context.Context, source str spec := artifact.ArtifactSpec{ Value: output, Type: evt.OutputInterface.Outputs.Variables[varName].Type, - TaskExecution: &taskExecID, + TaskExecution: taskExecID, Execution: execID, } @@ -253,11 +287,6 @@ func (s *ServiceCallHandler) HandleEventTaskExec(ctx context.Context, source str logger.Debugf(ctx, "Created artifact id [%+v] for key %s", resp.Artifact.ArtifactId, varName) } } - - return nil -} - -func (s *ServiceCallHandler) HandleEventNodeExec(_ context.Context, _ *event.CloudEventNodeExecution) error { return nil } diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc index 176b3ee97a..5400d0ebed 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc @@ -32,9 +32,9 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::pr 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_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_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 { diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc index eb76985cb3..ba0ec136c9 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc @@ -19,13 +19,12 @@ 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<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_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; -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 CloudEventWorkflowExecutionDefaultTypeInternal { @@ -57,14 +56,12 @@ static void InitDefaultsCloudEventWorkflowExecution_flyteidl_2fevent_2fcloudeven ::flyteidl::event::CloudEventWorkflowExecution::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<8> scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsCloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto}, { +::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_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; @@ -79,9 +76,14 @@ static void InitDefaultsCloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2 ::flyteidl::event::CloudEventNodeExecution::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto}, { - &scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; +::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; @@ -94,16 +96,9 @@ static void InitDefaultsCloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2 ::flyteidl::event::CloudEventTaskExecution::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<8> scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsCloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto}, { - &scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; +::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; @@ -143,9 +138,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2epr 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, scheduled_at_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, artifact_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, parent_node_execution_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, reference_execution_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, launch_plan_id_), ~0u, // no _has_bits_ @@ -154,20 +147,18 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2epr ~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, 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_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, output_interface_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, input_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, scheduled_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, artifact_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, parent_node_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, reference_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, launch_plan_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, _internal_metadata_), ~0u, // no _extensions_ @@ -181,9 +172,9 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2epr }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::event::CloudEventWorkflowExecution)}, - { 14, -1, sizeof(::flyteidl::event::CloudEventNodeExecution)}, - { 20, -1, sizeof(::flyteidl::event::CloudEventTaskExecution)}, - { 34, -1, sizeof(::flyteidl::event::CloudEventExecutionStart)}, + { 12, -1, sizeof(::flyteidl::event::CloudEventNodeExecution)}, + { 24, -1, sizeof(::flyteidl::event::CloudEventTaskExecution)}, + { 30, -1, sizeof(::flyteidl::event::CloudEventExecutionStart)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -205,50 +196,43 @@ const char descriptor_table_protodef_flyteidl_2fevent_2fcloudevents_2eproto[] = "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\"\226\004" + "roto\032\037google/protobuf/timestamp.proto\"\235\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" - "\0220\n\014scheduled_at\030\005 \001(\0132\032.google.protobuf" - ".Timestamp\022/\n\014artifact_ids\030\006 \003(\0132\031.flyte" - "idl.core.ArtifactID\022E\n\025parent_node_execu" - "tion\030\007 \001(\0132&.flyteidl.core.NodeExecution" - "Identifier\022G\n\023reference_execution\030\010 \001(\0132" - "*.flyteidl.core.WorkflowExecutionIdentif" - "ier\0221\n\016launch_plan_id\030\t \001(\0132\031.flyteidl.c" - "ore.Identifier\"P\n\027CloudEventNodeExecutio" + "\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\0221\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.co" + "re.Identifier\"\212\003\n\027CloudEventNodeExecutio" "n\0225\n\traw_event\030\001 \001(\0132\".flyteidl.event.No" - "deExecutionEvent\"\216\004\n\027CloudEventTaskExecu" - "tion\0225\n\traw_event\030\001 \001(\0132\".flyteidl.event" - ".TaskExecutionEvent\022.\n\013output_data\030\002 \001(\013" - "2\031.flyteidl.core.LiteralMap\0227\n\020output_in" - "terface\030\003 \001(\0132\035.flyteidl.core.TypedInter" - "face\022-\n\ninput_data\030\004 \001(\0132\031.flyteidl.core" - ".LiteralMap\0220\n\014scheduled_at\030\005 \001(\0132\032.goog" - "le.protobuf.Timestamp\022/\n\014artifact_ids\030\006 " - "\003(\0132\031.flyteidl.core.ArtifactID\022E\n\025parent" - "_node_execution\030\007 \001(\0132&.flyteidl.core.No" - "deExecutionIdentifier\022G\n\023reference_execu" - "tion\030\010 \001(\0132*.flyteidl.core.WorkflowExecu" - "tionIdentifier\0221\n\016launch_plan_id\030\t \001(\0132\031" - ".flyteidl.core.Identifier\"\207\002\n\030CloudEvent" - "ExecutionStart\022@\n\014execution_id\030\001 \001(\0132*.f" - "lyteidl.core.WorkflowExecutionIdentifier" - "\0221\n\016launch_plan_id\030\002 \001(\0132\031.flyteidl.core" - ".Identifier\022.\n\013workflow_id\030\003 \001(\0132\031.flyte" - "idl.core.Identifier\022/\n\014artifact_ids\030\004 \003(" - "\0132\031.flyteidl.core.ArtifactID\022\025\n\rartifact" - "_keys\030\005 \003(\tB=Z;github.com/flyteorg/flyte" - "/flyteidl/gen/pb-go/flyteidl/eventb\006prot" - "o3" + "deExecutionEvent\022<\n\014task_exec_id\030\002 \001(\0132&" + ".flyteidl.core.TaskExecutionIdentifier\022." + "\n\013output_data\030\003 \001(\0132\031.flyteidl.core.Lite" + "ralMap\0227\n\020output_interface\030\004 \001(\0132\035.flyte" + "idl.core.TypedInterface\022-\n\ninput_data\030\005 " + "\001(\0132\031.flyteidl.core.LiteralMap\022/\n\014artifa" + "ct_ids\030\006 \003(\0132\031.flyteidl.core.ArtifactID\022" + "1\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.core." + "Identifier\"P\n\027CloudEventTaskExecution\0225\n" + "\traw_event\030\001 \001(\0132\".flyteidl.event.TaskEx" + "ecutionEvent\"\207\002\n\030CloudEventExecutionStar" + "t\022@\n\014execution_id\030\001 \001(\0132*.flyteidl.core." + "WorkflowExecutionIdentifier\0221\n\016launch_pl" + "an_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022." + "\n\013workflow_id\030\003 \001(\0132\031.flyteidl.core.Iden" + "tifier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl." + "core.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\tB=" + "Z;github.com/flyteorg/flyte/flyteidl/gen" + "/pb-go/flyteidl/eventb\006proto3" ; ::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, 1722, + "flyteidl/event/cloudevents.proto", &assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto, 1469, }; void AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto() { @@ -280,10 +264,6 @@ void CloudEventWorkflowExecution::InitAsDefaultInstance() { ::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()->scheduled_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->parent_node_execution_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::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*>( @@ -295,8 +275,6 @@ class CloudEventWorkflowExecution::HasBitSetters { 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 ::google::protobuf::Timestamp& scheduled_at(const CloudEventWorkflowExecution* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution(const CloudEventWorkflowExecution* msg); static const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution(const CloudEventWorkflowExecution* msg); static const ::flyteidl::core::Identifier& launch_plan_id(const CloudEventWorkflowExecution* msg); }; @@ -317,14 +295,6 @@ const ::flyteidl::core::LiteralMap& CloudEventWorkflowExecution::HasBitSetters::input_data(const CloudEventWorkflowExecution* msg) { return *msg->input_data_; } -const ::google::protobuf::Timestamp& -CloudEventWorkflowExecution::HasBitSetters::scheduled_at(const CloudEventWorkflowExecution* msg) { - return *msg->scheduled_at_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -CloudEventWorkflowExecution::HasBitSetters::parent_node_execution(const CloudEventWorkflowExecution* msg) { - return *msg->parent_node_execution_; -} const ::flyteidl::core::WorkflowExecutionIdentifier& CloudEventWorkflowExecution::HasBitSetters::reference_execution(const CloudEventWorkflowExecution* msg) { return *msg->reference_execution_; @@ -357,21 +327,9 @@ void CloudEventWorkflowExecution::clear_input_data() { } input_data_ = nullptr; } -void CloudEventWorkflowExecution::clear_scheduled_at() { - if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { - delete scheduled_at_; - } - scheduled_at_ = nullptr; -} void CloudEventWorkflowExecution::clear_artifact_ids() { artifact_ids_.Clear(); } -void CloudEventWorkflowExecution::clear_parent_node_execution() { - if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { - delete parent_node_execution_; - } - parent_node_execution_ = nullptr; -} void CloudEventWorkflowExecution::clear_reference_execution() { if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { delete reference_execution_; @@ -389,9 +347,7 @@ const int CloudEventWorkflowExecution::kRawEventFieldNumber; const int CloudEventWorkflowExecution::kOutputDataFieldNumber; const int CloudEventWorkflowExecution::kOutputInterfaceFieldNumber; const int CloudEventWorkflowExecution::kInputDataFieldNumber; -const int CloudEventWorkflowExecution::kScheduledAtFieldNumber; const int CloudEventWorkflowExecution::kArtifactIdsFieldNumber; -const int CloudEventWorkflowExecution::kParentNodeExecutionFieldNumber; const int CloudEventWorkflowExecution::kReferenceExecutionFieldNumber; const int CloudEventWorkflowExecution::kLaunchPlanIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -426,16 +382,6 @@ CloudEventWorkflowExecution::CloudEventWorkflowExecution(const CloudEventWorkflo } else { input_data_ = nullptr; } - 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 { @@ -467,8 +413,6 @@ void CloudEventWorkflowExecution::SharedDtor() { 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 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 launch_plan_id_; } @@ -505,14 +449,6 @@ void CloudEventWorkflowExecution::Clear() { delete input_data_; } input_data_ = nullptr; - 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_; } @@ -589,22 +525,9 @@ const char* CloudEventWorkflowExecution::_InternalParse(const char* begin, const {parser_till_end, object}, ptr - size, ptr)); break; } - // .google.protobuf.Timestamp scheduled_at = 5; + // repeated .flyteidl.core.ArtifactID artifact_ids = 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_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; - } - // 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); @@ -615,25 +538,12 @@ const char* CloudEventWorkflowExecution::_InternalParse(const char* begin, const 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; - } - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 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::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)); + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); break; } - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + // .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; @@ -644,9 +554,9 @@ const char* CloudEventWorkflowExecution::_InternalParse(const char* begin, const {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.core.Identifier launch_plan_id = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + // .flyteidl.core.Identifier launch_plan_id = 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::Identifier::_InternalParse; @@ -731,53 +641,31 @@ bool CloudEventWorkflowExecution::MergePartialFromCodedStream( break; } - // .google.protobuf.Timestamp scheduled_at = 5; + // 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, mutable_scheduled_at())); + input, add_artifact_ids())); } else { goto handle_unusual; } break; } - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact_ids())); + input, mutable_reference_execution())); } else { goto handle_unusual; } break; } - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; + // .flyteidl.core.Identifier launch_plan_id = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parent_node_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reference_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier launch_plan_id = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_launch_plan_id())); } else { @@ -837,37 +725,25 @@ void CloudEventWorkflowExecution::SerializeWithCachedSizes( 4, HasBitSetters::input_data(this), output); } - // .google.protobuf.Timestamp scheduled_at = 5; - if (this->has_scheduled_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::scheduled_at(this), output); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; + // 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( - 6, + 5, this->artifact_ids(static_cast(i)), output); } - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - if (this->has_parent_node_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::parent_node_execution(this), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; if (this->has_reference_execution()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::reference_execution(this), output); + 6, HasBitSetters::reference_execution(this), output); } - // .flyteidl.core.Identifier launch_plan_id = 9; + // .flyteidl.core.Identifier launch_plan_id = 7; if (this->has_launch_plan_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::launch_plan_id(this), output); + 7, HasBitSetters::launch_plan_id(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -911,40 +787,26 @@ ::google::protobuf::uint8* CloudEventWorkflowExecution::InternalSerializeWithCac 4, HasBitSetters::input_data(this), target); } - // .google.protobuf.Timestamp scheduled_at = 5; - if (this->has_scheduled_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::scheduled_at(this), target); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; + // 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( - 6, this->artifact_ids(static_cast(i)), target); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - if (this->has_parent_node_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::parent_node_execution(this), target); + 5, this->artifact_ids(static_cast(i)), target); } - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; if (this->has_reference_execution()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 8, HasBitSetters::reference_execution(this), target); + 6, HasBitSetters::reference_execution(this), target); } - // .flyteidl.core.Identifier launch_plan_id = 9; + // .flyteidl.core.Identifier launch_plan_id = 7; if (this->has_launch_plan_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 9, HasBitSetters::launch_plan_id(this), target); + 7, HasBitSetters::launch_plan_id(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -968,7 +830,7 @@ size_t CloudEventWorkflowExecution::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; + // repeated .flyteidl.core.ArtifactID artifact_ids = 5; { unsigned int count = static_cast(this->artifact_ids_size()); total_size += 1UL * count; @@ -1007,28 +869,14 @@ size_t CloudEventWorkflowExecution::ByteSizeLong() const { *input_data_); } - // .google.protobuf.Timestamp scheduled_at = 5; - if (this->has_scheduled_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *scheduled_at_); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - if (this->has_parent_node_execution()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parent_node_execution_); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + // .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 = 9; + // .flyteidl.core.Identifier launch_plan_id = 7; if (this->has_launch_plan_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -1075,12 +923,6 @@ void CloudEventWorkflowExecution::MergeFrom(const CloudEventWorkflowExecution& f if (from.has_input_data()) { mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); } - 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()); } @@ -1119,8 +961,6 @@ void CloudEventWorkflowExecution::InternalSwap(CloudEventWorkflowExecution* othe swap(output_data_, other->output_data_); swap(output_interface_, other->output_interface_); swap(input_data_, other->input_data_); - swap(scheduled_at_, other->scheduled_at_); - swap(parent_node_execution_, other->parent_node_execution_); swap(reference_execution_, other->reference_execution_); swap(launch_plan_id_, other->launch_plan_id_); } @@ -1136,24 +976,98 @@ ::google::protobuf::Metadata CloudEventWorkflowExecution::GetMetadata() const { 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::kLaunchPlanIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CloudEventNodeExecution::CloudEventNodeExecution() @@ -1163,20 +1077,48 @@ CloudEventNodeExecution::CloudEventNodeExecution() } CloudEventNodeExecution::CloudEventNodeExecution(const CloudEventNodeExecution& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { + _internal_metadata_(nullptr), + artifact_ids_(from.artifact_ids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); 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); - raw_event_ = nullptr; + ::memset(&raw_event_, 0, static_cast( + reinterpret_cast(&launch_plan_id_) - + reinterpret_cast(&raw_event_)) + sizeof(launch_plan_id_)); } CloudEventNodeExecution::~CloudEventNodeExecution() { @@ -1186,6 +1128,11 @@ CloudEventNodeExecution::~CloudEventNodeExecution() { void CloudEventNodeExecution::SharedDtor() { 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 { @@ -1203,10 +1150,31 @@ void CloudEventNodeExecution::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + artifact_ids_.Clear(); 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(); } @@ -1236,60 +1204,207 @@ const char* CloudEventNodeExecution::_InternalParse(const char* begin, const cha {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 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; - } + // .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; } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); + // .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; } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.event.CloudEventNodeExecution) + // .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; + } + // .flyteidl.core.Identifier launch_plan_id = 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::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; +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; + } + + // .flyteidl.core.Identifier launch_plan_id = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 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) @@ -1310,6 +1425,45 @@ void CloudEventNodeExecution::SerializeWithCachedSizes( 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); + } + + // .flyteidl.core.Identifier launch_plan_id = 7; + if (this->has_launch_plan_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::launch_plan_id(this), output); + } + if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -1330,6 +1484,49 @@ ::google::protobuf::uint8* CloudEventNodeExecution::InternalSerializeWithCachedS 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); + } + + // .flyteidl.core.Identifier launch_plan_id = 7; + if (this->has_launch_plan_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::launch_plan_id(this), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -1351,6 +1548,17 @@ size_t CloudEventNodeExecution::ByteSizeLong() const { // 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))); + } + } + // .flyteidl.event.NodeExecutionEvent raw_event = 1; if (this->has_raw_event()) { total_size += 1 + @@ -1358,6 +1566,41 @@ size_t CloudEventNodeExecution::ByteSizeLong() const { *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 = 7; + 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; @@ -1385,9 +1628,25 @@ void CloudEventNodeExecution::MergeFrom(const CloudEventNodeExecution& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + artifact_ids_.MergeFrom(from.artifact_ids_); 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) { @@ -1415,7 +1674,13 @@ void CloudEventNodeExecution::Swap(CloudEventNodeExecution* other) { void CloudEventNodeExecution::InternalSwap(CloudEventNodeExecution* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); 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 { @@ -1429,126 +1694,24 @@ ::google::protobuf::Metadata CloudEventNodeExecution::GetMetadata() const { void CloudEventTaskExecution::InitAsDefaultInstance() { ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->raw_event_ = const_cast< ::flyteidl::event::TaskExecutionEvent*>( ::flyteidl::event::TaskExecutionEvent::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->output_interface_ = const_cast< ::flyteidl::core::TypedInterface*>( - ::flyteidl::core::TypedInterface::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->scheduled_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->parent_node_execution_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->reference_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->launch_plan_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); } class CloudEventTaskExecution::HasBitSetters { public: static const ::flyteidl::event::TaskExecutionEvent& raw_event(const CloudEventTaskExecution* msg); - static const ::flyteidl::core::LiteralMap& output_data(const CloudEventTaskExecution* msg); - static const ::flyteidl::core::TypedInterface& output_interface(const CloudEventTaskExecution* msg); - static const ::flyteidl::core::LiteralMap& input_data(const CloudEventTaskExecution* msg); - static const ::google::protobuf::Timestamp& scheduled_at(const CloudEventTaskExecution* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution(const CloudEventTaskExecution* msg); - static const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution(const CloudEventTaskExecution* msg); - static const ::flyteidl::core::Identifier& launch_plan_id(const CloudEventTaskExecution* msg); }; const ::flyteidl::event::TaskExecutionEvent& CloudEventTaskExecution::HasBitSetters::raw_event(const CloudEventTaskExecution* msg) { return *msg->raw_event_; } -const ::flyteidl::core::LiteralMap& -CloudEventTaskExecution::HasBitSetters::output_data(const CloudEventTaskExecution* msg) { - return *msg->output_data_; -} -const ::flyteidl::core::TypedInterface& -CloudEventTaskExecution::HasBitSetters::output_interface(const CloudEventTaskExecution* msg) { - return *msg->output_interface_; -} -const ::flyteidl::core::LiteralMap& -CloudEventTaskExecution::HasBitSetters::input_data(const CloudEventTaskExecution* msg) { - return *msg->input_data_; -} -const ::google::protobuf::Timestamp& -CloudEventTaskExecution::HasBitSetters::scheduled_at(const CloudEventTaskExecution* msg) { - return *msg->scheduled_at_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -CloudEventTaskExecution::HasBitSetters::parent_node_execution(const CloudEventTaskExecution* msg) { - return *msg->parent_node_execution_; -} -const ::flyteidl::core::WorkflowExecutionIdentifier& -CloudEventTaskExecution::HasBitSetters::reference_execution(const CloudEventTaskExecution* msg) { - return *msg->reference_execution_; -} -const ::flyteidl::core::Identifier& -CloudEventTaskExecution::HasBitSetters::launch_plan_id(const CloudEventTaskExecution* msg) { - return *msg->launch_plan_id_; -} void CloudEventTaskExecution::clear_raw_event() { if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { delete raw_event_; } raw_event_ = nullptr; } -void CloudEventTaskExecution::clear_output_data() { - if (GetArenaNoVirtual() == nullptr && output_data_ != nullptr) { - delete output_data_; - } - output_data_ = nullptr; -} -void CloudEventTaskExecution::clear_output_interface() { - if (GetArenaNoVirtual() == nullptr && output_interface_ != nullptr) { - delete output_interface_; - } - output_interface_ = nullptr; -} -void CloudEventTaskExecution::clear_input_data() { - if (GetArenaNoVirtual() == nullptr && input_data_ != nullptr) { - delete input_data_; - } - input_data_ = nullptr; -} -void CloudEventTaskExecution::clear_scheduled_at() { - if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { - delete scheduled_at_; - } - scheduled_at_ = nullptr; -} -void CloudEventTaskExecution::clear_artifact_ids() { - artifact_ids_.Clear(); -} -void CloudEventTaskExecution::clear_parent_node_execution() { - if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { - delete parent_node_execution_; - } - parent_node_execution_ = nullptr; -} -void CloudEventTaskExecution::clear_reference_execution() { - if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { - delete reference_execution_; - } - reference_execution_ = nullptr; -} -void CloudEventTaskExecution::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 CloudEventTaskExecution::kRawEventFieldNumber; -const int CloudEventTaskExecution::kOutputDataFieldNumber; -const int CloudEventTaskExecution::kOutputInterfaceFieldNumber; -const int CloudEventTaskExecution::kInputDataFieldNumber; -const int CloudEventTaskExecution::kScheduledAtFieldNumber; -const int CloudEventTaskExecution::kArtifactIdsFieldNumber; -const int CloudEventTaskExecution::kParentNodeExecutionFieldNumber; -const int CloudEventTaskExecution::kReferenceExecutionFieldNumber; -const int CloudEventTaskExecution::kLaunchPlanIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CloudEventTaskExecution::CloudEventTaskExecution() @@ -1558,58 +1721,20 @@ CloudEventTaskExecution::CloudEventTaskExecution() } CloudEventTaskExecution::CloudEventTaskExecution(const CloudEventTaskExecution& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_ids_(from.artifact_ids_) { + _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; } - 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_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_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.CloudEventTaskExecution) } void CloudEventTaskExecution::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - ::memset(&raw_event_, 0, static_cast( - reinterpret_cast(&launch_plan_id_) - - reinterpret_cast(&raw_event_)) + sizeof(launch_plan_id_)); + raw_event_ = nullptr; } CloudEventTaskExecution::~CloudEventTaskExecution() { @@ -1619,13 +1744,6 @@ CloudEventTaskExecution::~CloudEventTaskExecution() { void CloudEventTaskExecution::SharedDtor() { 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 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 launch_plan_id_; } void CloudEventTaskExecution::SetCachedSize(int size) const { @@ -1643,39 +1761,10 @@ void CloudEventTaskExecution::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - artifact_ids_.Clear(); 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 && 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 && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; _internal_metadata_.Clear(); } @@ -1685,127 +1774,20 @@ const char* CloudEventTaskExecution::_InternalParse(const char* begin, const cha auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)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; - } - // .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; - } - // .google.protobuf.Timestamp scheduled_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_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; - } - // 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; - } - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 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::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 = 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::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.core.Identifier launch_plan_id = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)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::core::Identifier::_InternalParse; - object = msg->mutable_launch_plan_id(); + 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( @@ -1853,94 +1835,6 @@ bool CloudEventTaskExecution::MergePartialFromCodedStream( 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; - } - - // .google.protobuf.Timestamp scheduled_at = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_scheduled_at())); - } 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; - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parent_node_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reference_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier launch_plan_id = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launch_plan_id())); - } else { - goto handle_unusual; - } - break; - } - default: { handle_unusual: if (tag == 0) { @@ -1974,57 +1868,6 @@ void CloudEventTaskExecution::SerializeWithCachedSizes( 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); - } - - // .google.protobuf.Timestamp scheduled_at = 5; - if (this->has_scheduled_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::scheduled_at(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); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - if (this->has_parent_node_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::parent_node_execution(this), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - if (this->has_reference_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::reference_execution(this), output); - } - - // .flyteidl.core.Identifier launch_plan_id = 9; - if (this->has_launch_plan_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::launch_plan_id(this), output); - } - if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -2045,63 +1888,6 @@ ::google::protobuf::uint8* CloudEventTaskExecution::InternalSerializeWithCachedS 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); - } - - // .google.protobuf.Timestamp scheduled_at = 5; - if (this->has_scheduled_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::scheduled_at(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); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - if (this->has_parent_node_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::parent_node_execution(this), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - if (this->has_reference_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::reference_execution(this), target); - } - - // .flyteidl.core.Identifier launch_plan_id = 9; - if (this->has_launch_plan_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::launch_plan_id(this), target); - } - if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -2123,17 +1909,6 @@ size_t CloudEventTaskExecution::ByteSizeLong() const { // 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))); - } - } - // .flyteidl.event.TaskExecutionEvent raw_event = 1; if (this->has_raw_event()) { total_size += 1 + @@ -2141,55 +1916,6 @@ size_t CloudEventTaskExecution::ByteSizeLong() const { *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_); - } - - // .google.protobuf.Timestamp scheduled_at = 5; - if (this->has_scheduled_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *scheduled_at_); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - if (this->has_parent_node_execution()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parent_node_execution_); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - if (this->has_reference_execution()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reference_execution_); - } - - // .flyteidl.core.Identifier launch_plan_id = 9; - 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; @@ -2217,31 +1943,9 @@ void CloudEventTaskExecution::MergeFrom(const CloudEventTaskExecution& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - artifact_ids_.MergeFrom(from.artifact_ids_); if (from.has_raw_event()) { mutable_raw_event()->::flyteidl::event::TaskExecutionEvent::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_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_launch_plan_id()) { - mutable_launch_plan_id()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan_id()); - } } void CloudEventTaskExecution::CopyFrom(const ::google::protobuf::Message& from) { @@ -2269,15 +1973,7 @@ void CloudEventTaskExecution::Swap(CloudEventTaskExecution* other) { void CloudEventTaskExecution::InternalSwap(CloudEventTaskExecution* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); 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(scheduled_at_, other->scheduled_at_); - swap(parent_node_execution_, other->parent_node_execution_); - swap(reference_execution_, other->reference_execution_); - swap(launch_plan_id_, other->launch_plan_id_); } ::google::protobuf::Metadata CloudEventTaskExecution::GetMetadata() const { diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h index 972cb1efeb..c9167e0fa6 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h @@ -178,10 +178,10 @@ class CloudEventWorkflowExecution final : // accessors ------------------------------------------------------- - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; + // repeated .flyteidl.core.ArtifactID artifact_ids = 5; int artifact_ids_size() const; void clear_artifact_ids(); - static const int kArtifactIdsFieldNumber = 6; + static const int kArtifactIdsFieldNumber = 5; ::flyteidl::core::ArtifactID* mutable_artifact_ids(int index); ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* mutable_artifact_ids(); @@ -226,37 +226,19 @@ class CloudEventWorkflowExecution final : ::flyteidl::core::LiteralMap* mutable_input_data(); void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); - // .google.protobuf.Timestamp scheduled_at = 5; - bool has_scheduled_at() const; - void clear_scheduled_at(); - static const int kScheduledAtFieldNumber = 5; - 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 = 7; - bool has_parent_node_execution() const; - void clear_parent_node_execution(); - static const int kParentNodeExecutionFieldNumber = 7; - 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 = 8; + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; bool has_reference_execution() const; void clear_reference_execution(); - static const int kReferenceExecutionFieldNumber = 8; + 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 = 9; + // .flyteidl.core.Identifier launch_plan_id = 7; bool has_launch_plan_id() const; void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 9; + static const int kLaunchPlanIdFieldNumber = 7; const ::flyteidl::core::Identifier& launch_plan_id() const; ::flyteidl::core::Identifier* release_launch_plan_id(); ::flyteidl::core::Identifier* mutable_launch_plan_id(); @@ -272,8 +254,6 @@ class CloudEventWorkflowExecution final : ::flyteidl::core::LiteralMap* output_data_; ::flyteidl::core::TypedInterface* output_interface_; ::flyteidl::core::LiteralMap* input_data_; - ::google::protobuf::Timestamp* scheduled_at_; - ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_; ::flyteidl::core::WorkflowExecutionIdentifier* reference_execution_; ::flyteidl::core::Identifier* launch_plan_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -376,6 +356,18 @@ class CloudEventNodeExecution final : // 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; + // .flyteidl.event.NodeExecutionEvent raw_event = 1; bool has_raw_event() const; void clear_raw_event(); @@ -385,12 +377,63 @@ class CloudEventNodeExecution final : ::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 = 7; + bool has_launch_plan_id() const; + void clear_launch_plan_id(); + static const int kLaunchPlanIdFieldNumber = 7; + 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_; ::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; }; @@ -491,18 +534,6 @@ class CloudEventTaskExecution final : // 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; - // .flyteidl.event.TaskExecutionEvent raw_event = 1; bool has_raw_event() const; void clear_raw_event(); @@ -512,83 +543,12 @@ class CloudEventTaskExecution final : ::flyteidl::event::TaskExecutionEvent* mutable_raw_event(); void set_allocated_raw_event(::flyteidl::event::TaskExecutionEvent* 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); - - // .google.protobuf.Timestamp scheduled_at = 5; - bool has_scheduled_at() const; - void clear_scheduled_at(); - static const int kScheduledAtFieldNumber = 5; - 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 = 7; - bool has_parent_node_execution() const; - void clear_parent_node_execution(); - static const int kParentNodeExecutionFieldNumber = 7; - 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 = 8; - bool has_reference_execution() const; - void clear_reference_execution(); - static const int kReferenceExecutionFieldNumber = 8; - 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 = 9; - bool has_launch_plan_id() const; - void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 9; - 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.CloudEventTaskExecution) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; ::flyteidl::event::TaskExecutionEvent* raw_event_; - ::flyteidl::core::LiteralMap* output_data_; - ::flyteidl::core::TypedInterface* output_interface_; - ::flyteidl::core::LiteralMap* input_data_; - ::google::protobuf::Timestamp* scheduled_at_; - ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_; - ::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; }; @@ -954,53 +914,7 @@ inline void CloudEventWorkflowExecution::set_allocated_input_data(::flyteidl::co // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.input_data) } -// .google.protobuf.Timestamp scheduled_at = 5; -inline bool CloudEventWorkflowExecution::has_scheduled_at() const { - return this != internal_default_instance() && scheduled_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& CloudEventWorkflowExecution::scheduled_at() const { - const ::google::protobuf::Timestamp* p = scheduled_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.scheduled_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* CloudEventWorkflowExecution::release_scheduled_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.scheduled_at) - - ::google::protobuf::Timestamp* temp = scheduled_at_; - scheduled_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* CloudEventWorkflowExecution::mutable_scheduled_at() { - - if (scheduled_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - scheduled_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.scheduled_at) - return scheduled_at_; -} -inline void CloudEventWorkflowExecution::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.event.CloudEventWorkflowExecution.scheduled_at) -} - -// repeated .flyteidl.core.ArtifactID artifact_ids = 6; +// repeated .flyteidl.core.ArtifactID artifact_ids = 5; inline int CloudEventWorkflowExecution::artifact_ids_size() const { return artifact_ids_.size(); } @@ -1027,52 +941,7 @@ CloudEventWorkflowExecution::artifact_ids() const { return artifact_ids_; } -// .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; -inline bool CloudEventWorkflowExecution::has_parent_node_execution() const { - return this != internal_default_instance() && parent_node_execution_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& CloudEventWorkflowExecution::parent_node_execution() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.parent_node_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* CloudEventWorkflowExecution::release_parent_node_execution() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.parent_node_execution) - - ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_; - parent_node_execution_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* CloudEventWorkflowExecution::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.event.CloudEventWorkflowExecution.parent_node_execution) - return parent_node_execution_; -} -inline void CloudEventWorkflowExecution::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.event.CloudEventWorkflowExecution.parent_node_execution) -} - -// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; +// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; inline bool CloudEventWorkflowExecution::has_reference_execution() const { return this != internal_default_instance() && reference_execution_ != nullptr; } @@ -1117,7 +986,7 @@ inline void CloudEventWorkflowExecution::set_allocated_reference_execution(::fly // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.reference_execution) } -// .flyteidl.core.Identifier launch_plan_id = 9; +// .flyteidl.core.Identifier launch_plan_id = 7; inline bool CloudEventWorkflowExecution::has_launch_plan_id() const { return this != internal_default_instance() && launch_plan_id_ != nullptr; } @@ -1211,82 +1080,78 @@ inline void CloudEventNodeExecution::set_allocated_raw_event(::flyteidl::event:: // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.raw_event) } -// ------------------------------------------------------------------- - -// CloudEventTaskExecution - -// .flyteidl.event.TaskExecutionEvent raw_event = 1; -inline bool CloudEventTaskExecution::has_raw_event() const { - return this != internal_default_instance() && raw_event_ != nullptr; +// .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::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 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::event::TaskExecutionEvent* CloudEventTaskExecution::release_raw_event() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.raw_event) +inline ::flyteidl::core::TaskExecutionIdentifier* CloudEventNodeExecution::release_task_exec_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.task_exec_id) - ::flyteidl::event::TaskExecutionEvent* temp = raw_event_; - raw_event_ = nullptr; + ::flyteidl::core::TaskExecutionIdentifier* temp = task_exec_id_; + task_exec_id_ = nullptr; return temp; } -inline ::flyteidl::event::TaskExecutionEvent* CloudEventTaskExecution::mutable_raw_event() { +inline ::flyteidl::core::TaskExecutionIdentifier* CloudEventNodeExecution::mutable_task_exec_id() { - if (raw_event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(GetArenaNoVirtual()); - raw_event_ = p; + if (task_exec_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + task_exec_id_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.raw_event) - return raw_event_; + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.task_exec_id) + return task_exec_id_; } -inline void CloudEventTaskExecution::set_allocated_raw_event(::flyteidl::event::TaskExecutionEvent* raw_event) { +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*>(raw_event_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_exec_id_); } - if (raw_event) { + if (task_exec_id) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - raw_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_event, submessage_arena); + task_exec_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_exec_id, submessage_arena); } } else { } - raw_event_ = raw_event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.raw_event) + task_exec_id_ = task_exec_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.task_exec_id) } -// .flyteidl.core.LiteralMap output_data = 2; -inline bool CloudEventTaskExecution::has_output_data() const { +// .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& CloudEventTaskExecution::output_data() const { +inline const ::flyteidl::core::LiteralMap& CloudEventNodeExecution::output_data() const { const ::flyteidl::core::LiteralMap* p = output_data_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.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* CloudEventTaskExecution::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.output_data) +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* CloudEventTaskExecution::mutable_output_data() { +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.CloudEventTaskExecution.output_data) + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.output_data) return output_data_; } -inline void CloudEventTaskExecution::set_allocated_output_data(::flyteidl::core::LiteralMap* 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_); @@ -1302,36 +1167,36 @@ inline void CloudEventTaskExecution::set_allocated_output_data(::flyteidl::core: } output_data_ = output_data; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.output_data) + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.output_data) } -// .flyteidl.core.TypedInterface output_interface = 3; -inline bool CloudEventTaskExecution::has_output_interface() const { +// .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& CloudEventTaskExecution::output_interface() const { +inline const ::flyteidl::core::TypedInterface& CloudEventNodeExecution::output_interface() const { const ::flyteidl::core::TypedInterface* p = output_interface_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.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* CloudEventTaskExecution::release_output_interface() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.output_interface) +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* CloudEventTaskExecution::mutable_output_interface() { +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.CloudEventTaskExecution.output_interface) + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.output_interface) return output_interface_; } -inline void CloudEventTaskExecution::set_allocated_output_interface(::flyteidl::core::TypedInterface* 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_); @@ -1347,36 +1212,36 @@ inline void CloudEventTaskExecution::set_allocated_output_interface(::flyteidl:: } output_interface_ = output_interface; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.output_interface) + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.output_interface) } -// .flyteidl.core.LiteralMap input_data = 4; -inline bool CloudEventTaskExecution::has_input_data() const { +// .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& CloudEventTaskExecution::input_data() const { +inline const ::flyteidl::core::LiteralMap& CloudEventNodeExecution::input_data() const { const ::flyteidl::core::LiteralMap* p = input_data_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.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* CloudEventTaskExecution::release_input_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.input_data) +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* CloudEventTaskExecution::mutable_input_data() { +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.CloudEventTaskExecution.input_data) + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.input_data) return input_data_; } -inline void CloudEventTaskExecution::set_allocated_input_data(::flyteidl::core::LiteralMap* 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_); @@ -1392,215 +1257,128 @@ inline void CloudEventTaskExecution::set_allocated_input_data(::flyteidl::core:: } input_data_ = input_data; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.input_data) -} - -// .google.protobuf.Timestamp scheduled_at = 5; -inline bool CloudEventTaskExecution::has_scheduled_at() const { - return this != internal_default_instance() && scheduled_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& CloudEventTaskExecution::scheduled_at() const { - const ::google::protobuf::Timestamp* p = scheduled_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.scheduled_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* CloudEventTaskExecution::release_scheduled_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.scheduled_at) - - ::google::protobuf::Timestamp* temp = scheduled_at_; - scheduled_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* CloudEventTaskExecution::mutable_scheduled_at() { - - if (scheduled_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - scheduled_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.scheduled_at) - return scheduled_at_; -} -inline void CloudEventTaskExecution::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.event.CloudEventTaskExecution.scheduled_at) + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.input_data) } // repeated .flyteidl.core.ArtifactID artifact_ids = 6; -inline int CloudEventTaskExecution::artifact_ids_size() const { +inline int CloudEventNodeExecution::artifact_ids_size() const { return artifact_ids_.size(); } -inline ::flyteidl::core::ArtifactID* CloudEventTaskExecution::mutable_artifact_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.artifact_ids) +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 >* -CloudEventTaskExecution::mutable_artifact_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.CloudEventTaskExecution.artifact_ids) +CloudEventNodeExecution::mutable_artifact_ids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.event.CloudEventNodeExecution.artifact_ids) return &artifact_ids_; } -inline const ::flyteidl::core::ArtifactID& CloudEventTaskExecution::artifact_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.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* CloudEventTaskExecution::add_artifact_ids() { - // @@protoc_insertion_point(field_add:flyteidl.event.CloudEventTaskExecution.artifact_ids) +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 >& -CloudEventTaskExecution::artifact_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.event.CloudEventTaskExecution.artifact_ids) +CloudEventNodeExecution::artifact_ids() const { + // @@protoc_insertion_point(field_list:flyteidl.event.CloudEventNodeExecution.artifact_ids) return artifact_ids_; } -// .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; -inline bool CloudEventTaskExecution::has_parent_node_execution() const { - return this != internal_default_instance() && parent_node_execution_ != nullptr; +// .flyteidl.core.Identifier launch_plan_id = 7; +inline bool CloudEventNodeExecution::has_launch_plan_id() const { + return this != internal_default_instance() && launch_plan_id_ != nullptr; } -inline const ::flyteidl::core::NodeExecutionIdentifier& CloudEventTaskExecution::parent_node_execution() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.parent_node_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +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::NodeExecutionIdentifier* CloudEventTaskExecution::release_parent_node_execution() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.parent_node_execution) +inline ::flyteidl::core::Identifier* CloudEventNodeExecution::release_launch_plan_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.launch_plan_id) - ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_; - parent_node_execution_ = nullptr; + ::flyteidl::core::Identifier* temp = launch_plan_id_; + launch_plan_id_ = nullptr; return temp; } -inline ::flyteidl::core::NodeExecutionIdentifier* CloudEventTaskExecution::mutable_parent_node_execution() { +inline ::flyteidl::core::Identifier* CloudEventNodeExecution::mutable_launch_plan_id() { - if (parent_node_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - parent_node_execution_ = p; + if (launch_plan_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + launch_plan_id_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.parent_node_execution) - return parent_node_execution_; + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.launch_plan_id) + return launch_plan_id_; } -inline void CloudEventTaskExecution::set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution) { +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*>(parent_node_execution_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_id_); } - if (parent_node_execution) { + if (launch_plan_id) { ::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); + launch_plan_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, launch_plan_id, submessage_arena); } } else { } - parent_node_execution_ = parent_node_execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.parent_node_execution) + launch_plan_id_ = launch_plan_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.launch_plan_id) } -// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; -inline bool CloudEventTaskExecution::has_reference_execution() const { - return this != internal_default_instance() && reference_execution_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& CloudEventTaskExecution::reference_execution() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = reference_execution_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.reference_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* CloudEventTaskExecution::release_reference_execution() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.reference_execution) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = reference_execution_; - reference_execution_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* CloudEventTaskExecution::mutable_reference_execution() { - - if (reference_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - reference_execution_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.reference_execution) - return reference_execution_; -} -inline void CloudEventTaskExecution::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.CloudEventTaskExecution.reference_execution) -} +// ------------------------------------------------------------------- -// .flyteidl.core.Identifier launch_plan_id = 9; -inline bool CloudEventTaskExecution::has_launch_plan_id() const { - return this != internal_default_instance() && launch_plan_id_ != nullptr; +// 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::core::Identifier& CloudEventTaskExecution::launch_plan_id() const { - const ::flyteidl::core::Identifier* p = launch_plan_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.launch_plan_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); +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::core::Identifier* CloudEventTaskExecution::release_launch_plan_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.launch_plan_id) +inline ::flyteidl::event::TaskExecutionEvent* CloudEventTaskExecution::release_raw_event() { + // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.raw_event) - ::flyteidl::core::Identifier* temp = launch_plan_id_; - launch_plan_id_ = nullptr; + ::flyteidl::event::TaskExecutionEvent* temp = raw_event_; + raw_event_ = nullptr; return temp; } -inline ::flyteidl::core::Identifier* CloudEventTaskExecution::mutable_launch_plan_id() { +inline ::flyteidl::event::TaskExecutionEvent* CloudEventTaskExecution::mutable_raw_event() { - if (launch_plan_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - launch_plan_id_ = p; + if (raw_event_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(GetArenaNoVirtual()); + raw_event_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.launch_plan_id) - return launch_plan_id_; + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.raw_event) + return raw_event_; } -inline void CloudEventTaskExecution::set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id) { +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*>(launch_plan_id_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_event_); } - if (launch_plan_id) { + if (raw_event) { ::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); + raw_event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, raw_event, submessage_arena); } } else { } - launch_plan_id_ = launch_plan_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.launch_plan_id) + raw_event_ = raw_event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.raw_event) } // ------------------------------------------------------------------- diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go index 6dd3349d8f..d4ab55ef30 100644 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go @@ -7,7 +7,7 @@ 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" + _ "github.com/golang/protobuf/ptypes/timestamp" math "math" ) @@ -31,14 +31,12 @@ type CloudEventWorkflowExecution struct { 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 - ScheduledAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` - ArtifactIds []*core.ArtifactID `protobuf:"bytes,6,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,7,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` - ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,8,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` + 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"` // 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,9,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` + LaunchPlanId *core.Identifier `protobuf:"bytes,7,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:"-"` @@ -97,13 +95,6 @@ func (m *CloudEventWorkflowExecution) GetInputData() *core.LiteralMap { return nil } -func (m *CloudEventWorkflowExecution) GetScheduledAt() *timestamp.Timestamp { - if m != nil { - return m.ScheduledAt - } - return nil -} - func (m *CloudEventWorkflowExecution) GetArtifactIds() []*core.ArtifactID { if m != nil { return m.ArtifactIds @@ -111,13 +102,6 @@ func (m *CloudEventWorkflowExecution) GetArtifactIds() []*core.ArtifactID { return nil } -func (m *CloudEventWorkflowExecution) GetParentNodeExecution() *core.NodeExecutionIdentifier { - if m != nil { - return m.ParentNodeExecution - } - return nil -} - func (m *CloudEventWorkflowExecution) GetReferenceExecution() *core.WorkflowExecutionIdentifier { if m != nil { return m.ReferenceExecution @@ -133,10 +117,24 @@ func (m *CloudEventWorkflowExecution) GetLaunchPlanId() *core.Identifier { } type CloudEventNodeExecution struct { - RawEvent *NodeExecutionEvent `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:"-"` + 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"` + // 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,7,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{} } @@ -171,112 +169,83 @@ func (m *CloudEventNodeExecution) GetRawEvent() *NodeExecutionEvent { return nil } -type CloudEventTaskExecution struct { - RawEvent *TaskExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` - // Hydrated output - OutputData *core.LiteralMap `protobuf:"bytes,2,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,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 - ScheduledAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` - ArtifactIds []*core.ArtifactID `protobuf:"bytes,6,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,7,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` - ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,8,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,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,9,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 *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 { +func (m *CloudEventNodeExecution) GetTaskExecId() *core.TaskExecutionIdentifier { if m != nil { - return m.RawEvent + return m.TaskExecId } return nil } -func (m *CloudEventTaskExecution) GetOutputData() *core.LiteralMap { +func (m *CloudEventNodeExecution) GetOutputData() *core.LiteralMap { if m != nil { return m.OutputData } return nil } -func (m *CloudEventTaskExecution) GetOutputInterface() *core.TypedInterface { +func (m *CloudEventNodeExecution) GetOutputInterface() *core.TypedInterface { if m != nil { return m.OutputInterface } return nil } -func (m *CloudEventTaskExecution) GetInputData() *core.LiteralMap { +func (m *CloudEventNodeExecution) GetInputData() *core.LiteralMap { if m != nil { return m.InputData } return nil } -func (m *CloudEventTaskExecution) GetScheduledAt() *timestamp.Timestamp { +func (m *CloudEventNodeExecution) GetArtifactIds() []*core.ArtifactID { if m != nil { - return m.ScheduledAt + return m.ArtifactIds } return nil } -func (m *CloudEventTaskExecution) GetArtifactIds() []*core.ArtifactID { +func (m *CloudEventNodeExecution) GetLaunchPlanId() *core.Identifier { if m != nil { - return m.ArtifactIds + return m.LaunchPlanId } return nil } -func (m *CloudEventTaskExecution) GetParentNodeExecution() *core.NodeExecutionIdentifier { - if m != nil { - return m.ParentNodeExecution - } - 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) GetReferenceExecution() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ReferenceExecution - } - return nil +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) GetLaunchPlanId() *core.Identifier { +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.LaunchPlanId + return m.RawEvent } return nil } @@ -367,42 +336,41 @@ func init() { func init() { proto.RegisterFile("flyteidl/event/cloudevents.proto", fileDescriptor_f8af3ecc827e5d5e) } var fileDescriptor_f8af3ecc827e5d5e = []byte{ - // 592 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x95, 0xd1, 0x8a, 0xd3, 0x4c, - 0x1c, 0xc5, 0x69, 0xbb, 0xdd, 0x6f, 0x3b, 0xed, 0xb7, 0x4a, 0x16, 0x31, 0x56, 0x57, 0x4b, 0x05, - 0x59, 0x04, 0x13, 0xd0, 0x1b, 0x51, 0x97, 0x65, 0xdd, 0x5d, 0x30, 0xe8, 0x8a, 0xc4, 0x82, 0x50, - 0x2f, 0xc2, 0x34, 0xf3, 0x4f, 0x3a, 0x34, 0x9d, 0x09, 0x93, 0x89, 0xb5, 0x8f, 0xe1, 0xa5, 0x8f, - 0xe4, 0x5b, 0x49, 0x26, 0xc9, 0xb4, 0x49, 0x0b, 0x4b, 0xc1, 0xcb, 0xbd, 0x29, 0xe9, 0xcc, 0x39, - 0xbf, 0x9c, 0xf9, 0xcf, 0x81, 0xa0, 0x41, 0x10, 0x2d, 0x25, 0x50, 0x12, 0xd9, 0xf0, 0x03, 0x98, - 0xb4, 0xfd, 0x88, 0xa7, 0x44, 0x3d, 0x26, 0x56, 0x2c, 0xb8, 0xe4, 0xc6, 0x61, 0xa9, 0xb0, 0xd4, - 0x72, 0xbf, 0x5f, 0x73, 0xa8, 0xdf, 0x5c, 0xdb, 0x7f, 0xa4, 0xf7, 0x7c, 0x2e, 0xc0, 0x8e, 0xa8, - 0x04, 0x81, 0xa3, 0x82, 0xd4, 0x3f, 0xae, 0xee, 0x52, 0x26, 0x41, 0x04, 0xd8, 0x87, 0x62, 0xfb, - 0x49, 0x75, 0x1b, 0x0b, 0x49, 0x03, 0xec, 0x4b, 0x8f, 0x92, 0x42, 0xf0, 0xb8, 0xe6, 0x27, 0xc0, - 0x24, 0x0d, 0x28, 0x88, 0x12, 0x10, 0x72, 0x1e, 0x46, 0x60, 0xab, 0x7f, 0x93, 0x34, 0xb0, 0x25, - 0x9d, 0x43, 0x22, 0xf1, 0x3c, 0xce, 0x05, 0xc3, 0xdf, 0x6d, 0xf4, 0xf0, 0x22, 0x3b, 0xe0, 0x55, - 0x96, 0xf9, 0x1b, 0x17, 0xb3, 0x20, 0xe2, 0x8b, 0xab, 0x9f, 0xe0, 0xa7, 0x92, 0x72, 0x66, 0x5c, - 0xa0, 0x8e, 0xc0, 0x0b, 0x4f, 0x9d, 0xc8, 0x6c, 0x0c, 0x1a, 0x27, 0xdd, 0x97, 0xcf, 0xac, 0xea, - 0xf1, 0xad, 0x0d, 0x97, 0x62, 0xb9, 0x07, 0x02, 0x2f, 0xd4, 0x93, 0xf1, 0x06, 0x75, 0x79, 0x2a, - 0xe3, 0x54, 0x7a, 0x04, 0x4b, 0x6c, 0x36, 0x15, 0xe6, 0xc1, 0x0a, 0x93, 0x65, 0xb7, 0x3e, 0xe5, - 0x93, 0xb9, 0xc6, 0xb1, 0x8b, 0x72, 0xf5, 0x25, 0x96, 0xd8, 0xf8, 0x80, 0xee, 0x16, 0x5e, 0x3d, - 0x1c, 0xb3, 0xa5, 0x00, 0xc7, 0x35, 0xc0, 0x68, 0x19, 0x03, 0x71, 0x4a, 0x91, 0x7b, 0x27, 0xb7, - 0xe9, 0x05, 0xe3, 0x35, 0x42, 0x94, 0xe9, 0x10, 0x7b, 0x37, 0x85, 0xe8, 0x28, 0xb1, 0xca, 0x70, - 0x8a, 0x7a, 0x89, 0x3f, 0x05, 0x92, 0x46, 0x40, 0x3c, 0x2c, 0xcd, 0xb6, 0xf2, 0xf6, 0xad, 0x7c, - 0xb8, 0x56, 0x39, 0x5c, 0x6b, 0x54, 0x0e, 0xd7, 0xed, 0x6a, 0xfd, 0xb9, 0x34, 0xde, 0xa1, 0xde, - 0xda, 0xcd, 0x25, 0xe6, 0xfe, 0xa0, 0xb5, 0xe5, 0xd5, 0xe7, 0x85, 0xc4, 0xb9, 0x74, 0xbb, 0xa5, - 0xdc, 0x21, 0x89, 0x31, 0x46, 0xf7, 0x62, 0x2c, 0x80, 0x49, 0x8f, 0x71, 0x02, 0x1e, 0x94, 0x43, - 0x36, 0xff, 0xab, 0xdf, 0x86, 0xc2, 0x7c, 0xe6, 0x04, 0xf4, 0x45, 0x38, 0xba, 0x0f, 0xee, 0x51, - 0x0e, 0xa9, 0x6c, 0x1b, 0xdf, 0xd1, 0x91, 0x80, 0x00, 0x04, 0x30, 0x7f, 0x9d, 0x7c, 0xa0, 0xc8, - 0xcf, 0x6b, 0xe4, 0x8d, 0x6b, 0x5e, 0xa3, 0x1b, 0x1a, 0xb3, 0x82, 0x9f, 0xa1, 0xc3, 0x08, 0xa7, - 0xcc, 0x9f, 0x7a, 0x71, 0x84, 0x99, 0x47, 0x89, 0xd9, 0xd9, 0x3a, 0xf3, 0x35, 0x4c, 0x2f, 0x37, - 0x7c, 0x89, 0x30, 0x73, 0xc8, 0x70, 0x8c, 0xee, 0xaf, 0xaa, 0x59, 0x0d, 0x7e, 0xb6, 0x59, 0xcb, - 0x61, 0xbd, 0x96, 0x15, 0x47, 0xad, 0x92, 0xc3, 0x5f, 0xed, 0x75, 0xf8, 0x08, 0x27, 0xb3, 0xdd, - 0xe0, 0x15, 0xc7, 0x6d, 0xdf, 0x6f, 0xfb, 0xfe, 0x0f, 0xfa, 0xfe, 0xa7, 0x89, 0xcc, 0x55, 0x27, - 0x35, 0xf8, 0xab, 0xc4, 0x42, 0x1a, 0xd7, 0xa8, 0xa7, 0x03, 0x67, 0xec, 0xc6, 0xce, 0x99, 0xbb, - 0xb0, 0x5a, 0xdc, 0x12, 0xb6, 0xb9, 0x53, 0xd8, 0xac, 0xe3, 0x8b, 0xe2, 0x65, 0x99, 0xbb, 0x75, - 0x93, 0x1b, 0x95, 0x6a, 0x87, 0x6c, 0x14, 0x64, 0x6f, 0xa7, 0x82, 0x3c, 0x45, 0xff, 0x6b, 0xf7, - 0x0c, 0x96, 0x89, 0xd9, 0x1e, 0xb4, 0x4e, 0x3a, 0xae, 0x46, 0x7e, 0x84, 0x65, 0xf2, 0xfe, 0x74, - 0xfc, 0x36, 0xa4, 0x72, 0x9a, 0x4e, 0x2c, 0x9f, 0xcf, 0x6d, 0x05, 0xe6, 0x22, 0xcc, 0x1f, 0x6c, - 0xfd, 0xd1, 0x0c, 0x81, 0xd9, 0xf1, 0xe4, 0x45, 0xc8, 0xed, 0xea, 0x17, 0x7c, 0xb2, 0xaf, 0x3a, - 0xfe, 0xea, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xec, 0xc8, 0xf2, 0x4c, 0x0c, 0x08, 0x00, 0x00, + // 568 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5f, 0x8b, 0xd3, 0x4e, + 0x14, 0xa5, 0x4d, 0xb7, 0xbf, 0x5f, 0xa7, 0x75, 0x95, 0xf8, 0x60, 0xac, 0xae, 0x96, 0x0a, 0x22, + 0x82, 0x09, 0xe8, 0x8b, 0xf8, 0x07, 0xd1, 0xdd, 0x85, 0x0d, 0xba, 0x22, 0x51, 0x10, 0xd6, 0x87, + 0x30, 0xcd, 0xdc, 0x64, 0x87, 0xa6, 0x33, 0x61, 0x32, 0xb1, 0xf6, 0x23, 0xfa, 0x39, 0xfc, 0x1e, + 0x22, 0x99, 0x24, 0x93, 0x26, 0x2d, 0xac, 0xa5, 0xbe, 0x94, 0xe9, 0xdc, 0x73, 0x4e, 0xef, 0xbd, + 0xe7, 0x30, 0x45, 0x93, 0x30, 0x5e, 0x49, 0xa0, 0x24, 0x76, 0xe0, 0x3b, 0x30, 0xe9, 0x04, 0x31, + 0xcf, 0x88, 0x3a, 0xa6, 0x76, 0x22, 0xb8, 0xe4, 0xe6, 0x61, 0x85, 0xb0, 0xd5, 0xf5, 0x78, 0xdc, + 0x62, 0xa8, 0xcf, 0x02, 0x3b, 0xbe, 0xab, 0x6b, 0x01, 0x17, 0xe0, 0xc4, 0x54, 0x82, 0xc0, 0x71, + 0xa9, 0x34, 0x3e, 0x6a, 0x56, 0x29, 0x93, 0x20, 0x42, 0x1c, 0x40, 0x59, 0xbe, 0xdf, 0x2c, 0x63, + 0x21, 0x69, 0x88, 0x03, 0xe9, 0x53, 0x52, 0x02, 0xee, 0xb5, 0xf8, 0x04, 0x98, 0xa4, 0x21, 0x05, + 0x51, 0x09, 0x44, 0x9c, 0x47, 0x31, 0x38, 0xea, 0xdb, 0x2c, 0x0b, 0x1d, 0x49, 0x17, 0x90, 0x4a, + 0xbc, 0x48, 0x0a, 0xc0, 0xf4, 0xb7, 0x81, 0xee, 0x1c, 0xe7, 0x03, 0x9e, 0xe6, 0x3d, 0x7f, 0xe5, + 0x62, 0x1e, 0xc6, 0x7c, 0x79, 0xfa, 0x03, 0x82, 0x4c, 0x52, 0xce, 0xcc, 0x63, 0x34, 0x10, 0x78, + 0xe9, 0xab, 0x89, 0xac, 0xce, 0xa4, 0xf3, 0x68, 0xf8, 0xf4, 0xa1, 0xdd, 0x1c, 0xdf, 0xde, 0x60, + 0x29, 0x2d, 0xef, 0x7f, 0x81, 0x97, 0xea, 0x64, 0xbe, 0x40, 0x43, 0x9e, 0xc9, 0x24, 0x93, 0x3e, + 0xc1, 0x12, 0x5b, 0x5d, 0x25, 0x73, 0xbb, 0x96, 0xc9, 0x7b, 0xb7, 0x3f, 0x14, 0x9b, 0x39, 0xc7, + 0x89, 0x87, 0x0a, 0xf4, 0x09, 0x96, 0xd8, 0x3c, 0x43, 0x37, 0x4a, 0xae, 0x5e, 0x8e, 0x65, 0x28, + 0x81, 0xa3, 0x96, 0xc0, 0x97, 0x55, 0x02, 0xc4, 0xad, 0x40, 0xde, 0xf5, 0x82, 0xa6, 0x2f, 0xcc, + 0xe7, 0x08, 0x51, 0xa6, 0x9b, 0xe8, 0x5d, 0xd5, 0xc4, 0x40, 0x81, 0x55, 0x0f, 0xaf, 0xd0, 0x68, + 0x6d, 0xf5, 0xa9, 0x75, 0x30, 0x31, 0xb6, 0x70, 0xdf, 0x96, 0x10, 0xf7, 0xc4, 0x1b, 0x56, 0x70, + 0x97, 0xa4, 0xe6, 0x37, 0x74, 0x53, 0x40, 0x08, 0x02, 0x58, 0x00, 0x3e, 0x54, 0x3b, 0xb2, 0xfa, + 0xaa, 0x81, 0xc7, 0x2d, 0x91, 0x8d, 0x5d, 0xba, 0xda, 0x52, 0xcf, 0xd4, 0x32, 0xb5, 0x3f, 0x6f, + 0xd0, 0x61, 0x8c, 0x33, 0x16, 0x5c, 0xfa, 0x49, 0x8c, 0x99, 0x4f, 0x89, 0xf5, 0xdf, 0xd6, 0xc1, + 0xd6, 0x64, 0x46, 0x05, 0xe1, 0x53, 0x8c, 0x99, 0x4b, 0xa6, 0xbf, 0x0c, 0x74, 0xab, 0x0e, 0xc0, + 0x47, 0x4e, 0x1a, 0xe2, 0x1b, 0xe6, 0x4f, 0xdb, 0xe6, 0x37, 0x18, 0x6d, 0xe3, 0xcf, 0xd0, 0x48, + 0xe2, 0x74, 0xae, 0xa6, 0xce, 0x7b, 0xeb, 0xb6, 0x03, 0x54, 0x18, 0x87, 0xd3, 0xf9, 0xb6, 0x79, + 0x91, 0x2c, 0x0b, 0x2e, 0x69, 0x47, 0xc8, 0xd8, 0x37, 0x42, 0xbd, 0x7f, 0x10, 0xa1, 0x83, 0x3d, + 0x22, 0xd4, 0xdf, 0x29, 0x42, 0x7b, 0xbb, 0x7c, 0xb1, 0x6e, 0x72, 0x63, 0xdf, 0x7f, 0x65, 0x72, + 0x83, 0xd1, 0x32, 0x79, 0xfa, 0xb3, 0x8b, 0xac, 0x5a, 0x5c, 0xc3, 0x3e, 0x4b, 0x2c, 0xa4, 0x79, + 0x8e, 0x46, 0x3a, 0xf2, 0x79, 0xdf, 0x9d, 0x9d, 0x53, 0x3f, 0x84, 0xfa, 0x72, 0xcb, 0x22, 0xba, + 0x3b, 0x2d, 0x22, 0xcf, 0xd1, 0xb2, 0xfc, 0xb1, 0x9c, 0x6d, 0x5c, 0xc5, 0x46, 0x15, 0xda, 0x25, + 0x1b, 0x1e, 0xf6, 0x76, 0xf2, 0xf0, 0x01, 0xba, 0xa6, 0xd9, 0x73, 0x58, 0x15, 0xaf, 0xc8, 0xc0, + 0xd3, 0x92, 0xef, 0x61, 0x95, 0xbe, 0x7b, 0x7d, 0xf1, 0x32, 0xa2, 0xf2, 0x32, 0x9b, 0xd9, 0x01, + 0x5f, 0x38, 0x4a, 0x98, 0x8b, 0xa8, 0x38, 0x38, 0xfa, 0xad, 0x8f, 0x80, 0x39, 0xc9, 0xec, 0x49, + 0xc4, 0x9d, 0xe6, 0x1f, 0xcf, 0xac, 0xaf, 0x1e, 0xf5, 0x67, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xf0, 0xd9, 0xf3, 0x90, 0xc3, 0x06, 0x00, 0x00, } diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go index 977e224c4c..ab094bfa35 100644 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go +++ b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go @@ -84,16 +84,6 @@ func (m *CloudEventWorkflowExecution) Validate() error { } } - if v, ok := interface{}(m.GetScheduledAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventWorkflowExecutionValidationError{ - field: "ScheduledAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - for idx, item := range m.GetArtifactIds() { _, _ = idx, item @@ -109,16 +99,6 @@ func (m *CloudEventWorkflowExecution) Validate() error { } - if v, ok := interface{}(m.GetParentNodeExecution()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventWorkflowExecutionValidationError{ - field: "ParentNodeExecution", - reason: "embedded message failed validation", - cause: err, - } - } - } - if v, ok := interface{}(m.GetReferenceExecution()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CloudEventWorkflowExecutionValidationError{ @@ -217,6 +197,71 @@ func (m *CloudEventNodeExecution) Validate() error { } } + if v, ok := interface{}(m.GetTaskExecId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CloudEventNodeExecutionValidationError{ + field: "TaskExecId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CloudEventNodeExecutionValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputInterface()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CloudEventNodeExecutionValidationError{ + field: "OutputInterface", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CloudEventNodeExecutionValidationError{ + field: "InputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetArtifactIds() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CloudEventNodeExecutionValidationError{ + field: fmt.Sprintf("ArtifactIds[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetLaunchPlanId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CloudEventNodeExecutionValidationError{ + field: "LaunchPlanId", + reason: "embedded message failed validation", + cause: err, + } + } + } + return nil } @@ -294,91 +339,6 @@ func (m *CloudEventTaskExecution) Validate() error { } } - if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "OutputData", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetOutputInterface()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "OutputInterface", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetInputData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "InputData", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetScheduledAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "ScheduledAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetArtifactIds() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: fmt.Sprintf("ArtifactIds[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if v, ok := interface{}(m.GetParentNodeExecution()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "ParentNodeExecution", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetReferenceExecution()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "ReferenceExecution", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetLaunchPlanId()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventTaskExecutionValidationError{ - field: "LaunchPlanId", - reason: "embedded message failed validation", - cause: err, - } - } - } - return nil } diff --git a/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java b/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java index fc771cc134..86db3276ab 100644 --- a/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java +++ b/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java @@ -76,75 +76,59 @@ public interface CloudEventWorkflowExecutionOrBuilder extends * We can't have the ExecutionMetadata object directly because of import cycle * * - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - boolean hasScheduledAt(); + java.util.List + getArtifactIdsList(); /** *
      * The following are ExecutionMetadata fields
      * We can't have the ExecutionMetadata object directly because of import cycle
      * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - com.google.protobuf.Timestamp getScheduledAt(); + flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); /** *
      * The following are ExecutionMetadata fields
      * We can't have the ExecutionMetadata object directly because of import cycle
      * 
* - * .google.protobuf.Timestamp scheduled_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); - - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - java.util.List - getArtifactIdsList(); - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ int getArtifactIdsCount(); /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+     * 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(); /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+     * 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.NodeExecutionIdentifier parent_node_execution = 7; - */ - boolean hasParentNodeExecution(); - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); - - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ boolean hasReferenceExecution(); /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); @@ -155,7 +139,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ boolean hasLaunchPlanId(); /** @@ -165,7 +149,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId(); /** @@ -175,7 +159,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); } @@ -277,41 +261,15 @@ private CloudEventWorkflowExecution( break; } case 42: { - 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 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { artifactIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000010; } artifactIds_.add( input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); break; } - case 58: { - 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 66: { + case 50: { flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; if (referenceExecution_ != null) { subBuilder = referenceExecution_.toBuilder(); @@ -324,7 +282,7 @@ private CloudEventWorkflowExecution( break; } - case 74: { + case 58: { flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; if (launchPlanId_ != null) { subBuilder = launchPlanId_.toBuilder(); @@ -352,7 +310,7 @@ private CloudEventWorkflowExecution( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); } this.unknownFields = unknownFields.build(); @@ -457,18 +415,18 @@ public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { return getInputData(); } - public static final int SCHEDULED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp scheduledAt_; + 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
      * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public boolean hasScheduledAt() { - return scheduledAt_ != null; + public java.util.List getArtifactIdsList() { + return artifactIds_; } /** *
@@ -476,10 +434,11 @@ public boolean hasScheduledAt() {
      * We can't have the ExecutionMetadata object directly because of import cycle
      * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public com.google.protobuf.Timestamp getScheduledAt() { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + public java.util.List + getArtifactIdsOrBuilderList() { + return artifactIds_; } /** *
@@ -487,90 +446,57 @@ public com.google.protobuf.Timestamp getScheduledAt() {
      * We can't have the ExecutionMetadata object directly because of import cycle
      * 
* - * .google.protobuf.Timestamp scheduled_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - return getScheduledAt(); - } - - public static final int ARTIFACT_IDS_FIELD_NUMBER = 6; - private java.util.List artifactIds_; - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List getArtifactIdsList() { - return artifactIds_; - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - return artifactIds_; - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ public int getArtifactIdsCount() { return artifactIds_.size(); } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+     * 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); } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+     * 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 PARENT_NODE_EXECUTION_FIELD_NUMBER = 7; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecution_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - return getParentNodeExecution(); - } - - public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 8; + public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 6; private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public boolean hasReferenceExecution() { return referenceExecution_ != null; } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .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 = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { return getReferenceExecution(); } - public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 9; + public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 7; private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; /** *
@@ -579,7 +505,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g
      * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
      * 
* - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public boolean hasLaunchPlanId() { return launchPlanId_ != null; @@ -591,7 +517,7 @@ public boolean hasLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; @@ -603,7 +529,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { return getLaunchPlanId(); @@ -635,20 +561,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (inputData_ != null) { output.writeMessage(4, getInputData()); } - if (scheduledAt_ != null) { - output.writeMessage(5, getScheduledAt()); - } for (int i = 0; i < artifactIds_.size(); i++) { - output.writeMessage(6, artifactIds_.get(i)); - } - if (parentNodeExecution_ != null) { - output.writeMessage(7, getParentNodeExecution()); + output.writeMessage(5, artifactIds_.get(i)); } if (referenceExecution_ != null) { - output.writeMessage(8, getReferenceExecution()); + output.writeMessage(6, getReferenceExecution()); } if (launchPlanId_ != null) { - output.writeMessage(9, getLaunchPlanId()); + output.writeMessage(7, getLaunchPlanId()); } unknownFields.writeTo(output); } @@ -675,25 +595,17 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInputData()); } - if (scheduledAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getScheduledAt()); - } for (int i = 0; i < artifactIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, artifactIds_.get(i)); - } - if (parentNodeExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getParentNodeExecution()); + .computeMessageSize(5, artifactIds_.get(i)); } if (referenceExecution_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getReferenceExecution()); + .computeMessageSize(6, getReferenceExecution()); } if (launchPlanId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getLaunchPlanId()); + .computeMessageSize(7, getLaunchPlanId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -730,18 +642,8 @@ public boolean equals(final java.lang.Object obj) { if (!getInputData() .equals(other.getInputData())) return false; } - if (hasScheduledAt() != other.hasScheduledAt()) return false; - if (hasScheduledAt()) { - if (!getScheduledAt() - .equals(other.getScheduledAt())) return false; - } if (!getArtifactIdsList() .equals(other.getArtifactIdsList())) 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() @@ -779,18 +681,10 @@ public int hashCode() { hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; hash = (53 * hash) + getInputData().hashCode(); } - if (hasScheduledAt()) { - hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; - hash = (53 * hash) + getScheduledAt().hashCode(); - } if (getArtifactIdsCount() > 0) { hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; hash = (53 * hash) + getArtifactIdsList().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(); @@ -962,24 +856,12 @@ public Builder clear() { inputData_ = null; inputDataBuilder_ = null; } - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } if (artifactIdsBuilder_ == null) { artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } else { artifactIdsBuilder_.clear(); } - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } if (referenceExecutionBuilder_ == null) { referenceExecution_ = null; } else { @@ -1040,25 +922,15 @@ public flyteidl.event.Cloudevents.CloudEventWorkflowExecution buildPartial() { } else { result.inputData_ = inputDataBuilder_.build(); } - if (scheduledAtBuilder_ == null) { - result.scheduledAt_ = scheduledAt_; - } else { - result.scheduledAt_ = scheduledAtBuilder_.build(); - } if (artifactIdsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } result.artifactIds_ = artifactIds_; } else { result.artifactIds_ = artifactIdsBuilder_.build(); } - if (parentNodeExecutionBuilder_ == null) { - result.parentNodeExecution_ = parentNodeExecution_; - } else { - result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); - } if (referenceExecutionBuilder_ == null) { result.referenceExecution_ = referenceExecution_; } else { @@ -1130,14 +1002,11 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventWorkflowExecution if (other.hasInputData()) { mergeInputData(other.getInputData()); } - if (other.hasScheduledAt()) { - mergeScheduledAt(other.getScheduledAt()); - } if (artifactIdsBuilder_ == null) { if (!other.artifactIds_.isEmpty()) { if (artifactIds_.isEmpty()) { artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureArtifactIdsIsMutable(); artifactIds_.addAll(other.artifactIds_); @@ -1150,7 +1019,7 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventWorkflowExecution artifactIdsBuilder_.dispose(); artifactIdsBuilder_ = null; artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); artifactIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArtifactIdsFieldBuilder() : null; @@ -1159,9 +1028,6 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventWorkflowExecution } } } - if (other.hasParentNodeExecution()) { - mergeParentNodeExecution(other.getParentNodeExecution()); - } if (other.hasReferenceExecution()) { mergeReferenceExecution(other.getReferenceExecution()); } @@ -1666,19 +1532,47 @@ public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { return inputDataBuilder_; } - 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_; + 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
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public boolean hasScheduledAt() { - return scheduledAtBuilder_ != null || scheduledAt_ != null; + public int getArtifactIdsCount() { + if (artifactIdsBuilder_ == null) { + return artifactIds_.size(); + } else { + return artifactIdsBuilder_.getCount(); + } } /** *
@@ -1686,13 +1580,13 @@ public boolean hasScheduledAt() {
        * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public com.google.protobuf.Timestamp getScheduledAt() { - if (scheduledAtBuilder_ == null) { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { + if (artifactIdsBuilder_ == null) { + return artifactIds_.get(index); } else { - return scheduledAtBuilder_.getMessage(); + return artifactIdsBuilder_.getMessage(index); } } /** @@ -1701,19 +1595,20 @@ public com.google.protobuf.Timestamp getScheduledAt() { * We can't have the ExecutionMetadata object directly because of import cycle * * - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public Builder setScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { + public Builder setArtifactIds( + int index, flyteidl.core.ArtifactId.ArtifactID value) { + if (artifactIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - scheduledAt_ = value; + ensureArtifactIdsIsMutable(); + artifactIds_.set(index, value); onChanged(); } else { - scheduledAtBuilder_.setMessage(value); + artifactIdsBuilder_.setMessage(index, value); } - return this; } /** @@ -1722,17 +1617,17 @@ public Builder setScheduledAt(com.google.protobuf.Timestamp value) { * We can't have the ExecutionMetadata object directly because of import cycle * * - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public Builder setScheduledAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = builderForValue.build(); + public Builder setArtifactIds( + int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + artifactIds_.set(index, builderForValue.build()); onChanged(); } else { - scheduledAtBuilder_.setMessage(builderForValue.build()); + artifactIdsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** @@ -1741,21 +1636,19 @@ public Builder setScheduledAt( * We can't have the ExecutionMetadata object directly because of import cycle * * - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - 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; + public Builder addArtifactIds(flyteidl.core.ArtifactId.ArtifactID value) { + if (artifactIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureArtifactIdsIsMutable(); + artifactIds_.add(value); onChanged(); } else { - scheduledAtBuilder_.mergeFrom(value); + artifactIdsBuilder_.addMessage(value); } - return this; } /** @@ -1764,17 +1657,20 @@ public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { * We can't have the ExecutionMetadata object directly because of import cycle * * - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public Builder clearScheduledAt() { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; + 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 { - scheduledAt_ = null; - scheduledAtBuilder_ = null; + artifactIdsBuilder_.addMessage(index, value); } - return this; } /** @@ -1783,12 +1679,18 @@ public Builder clearScheduledAt() { * We can't have the ExecutionMetadata object directly because of import cycle * * - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { - - onChanged(); - return getScheduledAtFieldBuilder().getBuilder(); + 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; } /** *
@@ -1796,15 +1698,18 @@ public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() {
        * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - if (scheduledAtBuilder_ != null) { - return scheduledAtBuilder_.getMessageOrBuilder(); + public Builder addArtifactIds( + int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + artifactIds_.add(index, builderForValue.build()); + onChanged(); } else { - return scheduledAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + artifactIdsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** *
@@ -1812,178 +1717,32 @@ public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() {
        * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * repeated .flyteidl.core.ArtifactID artifact_ids = 5; */ - 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 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_; - - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List getArtifactIdsList() { + public Builder addAllArtifactIds( + java.lang.Iterable values) { if (artifactIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifactIds_); + ensureArtifactIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, artifactIds_); + onChanged(); } else { - return artifactIdsBuilder_.getMessageList(); + artifactIdsBuilder_.addAllMessages(values); } + return this; } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public int getArtifactIdsCount() { - if (artifactIdsBuilder_ == null) { - return artifactIds_.size(); - } else { - return artifactIdsBuilder_.getCount(); - } - } - /** - * 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); - } - } - /** - * 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; - } - /** - * 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; - } - /** - * 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; - } - /** - * 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; - } - /** - * 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; - } - /** - * 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; - } - /** - * 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; - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { artifactIdsBuilder_.clear(); @@ -1991,7 +1750,12 @@ public Builder clearArtifactIds() { return this; } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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) { @@ -2004,14 +1768,24 @@ public Builder removeArtifactIds(int index) { return this; } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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); } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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) { @@ -2021,7 +1795,12 @@ public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( } } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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() { @@ -2032,14 +1811,24 @@ public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( } } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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()); } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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) { @@ -2047,7 +1836,12 @@ public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); } /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; + *
+       * 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() { @@ -2060,7 +1854,7 @@ public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( artifactIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( artifactIds_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); artifactIds_ = null; @@ -2068,134 +1862,17 @@ public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( return artifactIdsBuilder_; } - 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_; - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } else { - return parentNodeExecutionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - 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; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public Builder setParentNodeExecution( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - 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; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public Builder clearParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - onChanged(); - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { - - onChanged(); - return getParentNodeExecutionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - if (parentNodeExecutionBuilder_ != null) { - return parentNodeExecutionBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecution_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - 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_; /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public boolean hasReferenceExecution() { return referenceExecutionBuilder_ != null || referenceExecution_ != null; } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { if (referenceExecutionBuilder_ == null) { @@ -2205,7 +1882,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferen } } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { if (referenceExecutionBuilder_ == null) { @@ -2221,7 +1898,7 @@ public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.Workflow return this; } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public Builder setReferenceExecution( flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { @@ -2235,7 +1912,7 @@ public Builder setReferenceExecution( return this; } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { if (referenceExecutionBuilder_ == null) { @@ -2253,7 +1930,7 @@ public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.Workfl return this; } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public Builder clearReferenceExecution() { if (referenceExecutionBuilder_ == null) { @@ -2267,7 +1944,7 @@ public Builder clearReferenceExecution() { return this; } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { @@ -2275,7 +1952,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder ge return getReferenceExecutionFieldBuilder().getBuilder(); } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { if (referenceExecutionBuilder_ != null) { @@ -2286,7 +1963,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g } } /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> @@ -2312,7 +1989,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public boolean hasLaunchPlanId() { return launchPlanIdBuilder_ != null || launchPlanId_ != null; @@ -2324,7 +2001,7 @@ public boolean hasLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { if (launchPlanIdBuilder_ == null) { @@ -2340,7 +2017,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { if (launchPlanIdBuilder_ == null) { @@ -2362,7 +2039,7 @@ public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier val * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public Builder setLaunchPlanId( flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { @@ -2382,7 +2059,7 @@ public Builder setLaunchPlanId( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { if (launchPlanIdBuilder_ == null) { @@ -2406,7 +2083,7 @@ public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier v * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public Builder clearLaunchPlanId() { if (launchPlanIdBuilder_ == null) { @@ -2426,7 +2103,7 @@ public Builder clearLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { @@ -2440,7 +2117,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuil * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { if (launchPlanIdBuilder_ != null) { @@ -2457,7 +2134,7 @@ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrB * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 9; + * .flyteidl.core.Identifier launch_plan_id = 7; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> @@ -2541,20 +2218,189 @@ public interface CloudEventNodeExecutionOrBuilder extends * .flyteidl.event.NodeExecutionEvent raw_event = 1; */ flyteidl.event.Event.NodeExecutionEventOrBuilder getRawEventOrBuilder(); - } - /** - * 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() { + + /** + *
+     * 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); + + /** + *
+     * 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 = 7; + */ + 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 = 7; + */ + 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 = 7; + */ + 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(); } @java.lang.Override @@ -2594,6 +2440,80 @@ private CloudEventNodeExecution( 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: { + 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)) { @@ -2609,6 +2529,9 @@ private CloudEventNodeExecution( 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(); } @@ -2626,6 +2549,7 @@ private CloudEventNodeExecution( 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_; /** @@ -2647,24 +2571,261 @@ public flyteidl.event.Event.NodeExecutionEventOrBuilder 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; + 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; } - - @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); + /** + *
+     * 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 LAUNCH_PLAN_ID_FIELD_NUMBER = 7; + 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 = 7; + */ + 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 = 7; + */ + 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 = 7; + */ + 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 (launchPlanId_ != null) { + output.writeMessage(7, getLaunchPlanId()); + } + unknownFields.writeTo(output); } @java.lang.Override @@ -2677,6 +2838,30 @@ public int getSerializedSize() { 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 (launchPlanId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLaunchPlanId()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2697,6 +2882,33 @@ public boolean equals(final java.lang.Object obj) { 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 (hasLaunchPlanId() != other.hasLaunchPlanId()) return false; + if (hasLaunchPlanId()) { + if (!getLaunchPlanId() + .equals(other.getLaunchPlanId())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2712,8 +2924,32 @@ public int hashCode() { hash = (37 * hash) + RAW_EVENT_FIELD_NUMBER; hash = (53 * hash) + getRawEvent().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; + 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(); + } + if (hasLaunchPlanId()) { + hash = (37 * hash) + LAUNCH_PLAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlanId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; return hash; } @@ -2840,6 +3076,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getArtifactIdsFieldBuilder(); } } @java.lang.Override @@ -2851,6 +3088,42 @@ public Builder clear() { 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(); + } + if (launchPlanIdBuilder_ == null) { + launchPlanId_ = null; + } else { + launchPlanId_ = null; + launchPlanIdBuilder_ = null; + } return this; } @@ -2877,11 +3150,48 @@ public flyteidl.event.Cloudevents.CloudEventNodeExecution build() { @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(); + } + if (launchPlanIdBuilder_ == null) { + result.launchPlanId_ = launchPlanId_; + } else { + result.launchPlanId_ = launchPlanIdBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2933,6 +3243,47 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventNodeExecution othe 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.hasLaunchPlanId()) { + mergeLaunchPlanId(other.getLaunchPlanId()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2961,6 +3312,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private flyteidl.event.Event.NodeExecutionEvent rawEvent_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3078,2626 +3430,1688 @@ public flyteidl.event.Event.NodeExecutionEventOrBuilder getRawEventOrBuilder() { } 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); + 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()); + } - // @@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); + 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); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + 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; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + 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_; + } - @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(); - - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 2; - */ - boolean hasOutputData(); - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 2; - */ - flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 2; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 3; - */ - boolean hasOutputInterface(); - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 3; - */ - flyteidl.core.Interface.TypedInterface getOutputInterface(); - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .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
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 5; - */ - boolean hasScheduledAt(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 5; - */ - com.google.protobuf.Timestamp getScheduledAt(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); - - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - java.util.List - getArtifactIdsList(); - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - int getArtifactIdsCount(); - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - java.util.List - getArtifactIdsOrBuilderList(); - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index); - - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - boolean hasParentNodeExecution(); - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); - - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - boolean hasReferenceExecution(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); - - /** - *
-     * 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 = 9; - */ - 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 = 9; - */ - 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 = 9; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); - } - /** - * 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() { - artifactIds_ = java.util.Collections.emptyList(); - } - - @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; - } - 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: { - 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 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: { - 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 66: { - 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 74: { - 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_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); - } - - private int bitField0_; - 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(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap outputData_; - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 2; - */ - public boolean hasOutputData() { - return outputData_ != null; - } - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - return outputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } - /** - *
-     * Hydrated output
-     * 
- * - * .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_; - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public boolean hasOutputInterface() { - return outputInterface_ != null; - } - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 3; - */ - 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 = 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 SCHEDULED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp scheduledAt_; - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 5; - */ - public boolean hasScheduledAt() { - return scheduledAt_ != null; - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 5; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - return getScheduledAt(); - } - - public static final int ARTIFACT_IDS_FIELD_NUMBER = 6; - private java.util.List artifactIds_; - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List getArtifactIdsList() { - return artifactIds_; - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - return artifactIds_; - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public int getArtifactIdsCount() { - return artifactIds_.size(); - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - return artifactIds_.get(index); - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - return artifactIds_.get(index); - } - - public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 7; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecution_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - return getParentNodeExecution(); - } - - public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 8; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public boolean hasReferenceExecution() { - return referenceExecution_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - return getReferenceExecution(); - } - - public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 9; - 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 = 9; - */ - 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 = 9; - */ - 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 = 9; - */ - 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()); - } - if (scheduledAt_ != null) { - output.writeMessage(5, getScheduledAt()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - output.writeMessage(6, artifactIds_.get(i)); - } - if (parentNodeExecution_ != null) { - output.writeMessage(7, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - output.writeMessage(8, getReferenceExecution()); - } - if (launchPlanId_ != null) { - output.writeMessage(9, 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()); - } - if (scheduledAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getScheduledAt()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, artifactIds_.get(i)); - } - if (parentNodeExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getReferenceExecution()); - } - if (launchPlanId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, 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.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 (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 (hasScheduledAt() != other.hasScheduledAt()) return false; - if (hasScheduledAt()) { - if (!getScheduledAt() - .equals(other.getScheduledAt())) return false; - } - if (!getArtifactIdsList() - .equals(other.getArtifactIdsList())) 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 (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 (hasScheduledAt()) { - hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; - hash = (53 * hash) + getScheduledAt().hashCode(); - } - if (getArtifactIdsCount() > 0) { - hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactIdsList().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 (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.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); + 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; } - - // Construct using flyteidl.event.Cloudevents.CloudEventTaskExecution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + *
+       * 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); + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactIdsFieldBuilder(); + /** + *
+       * 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; } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rawEventBuilder_ == null) { - rawEvent_ = null; + /** + *
+       * 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 { - rawEvent_ = null; - rawEventBuilder_ = null; + 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; } - if (outputInterfaceBuilder_ == null) { - outputInterface_ = null; - } else { - outputInterface_ = null; - outputInterfaceBuilder_ = null; - } - if (inputDataBuilder_ == null) { - inputData_ = null; - } else { - inputData_ = null; - inputDataBuilder_ = null; - } - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - artifactIdsBuilder_.clear(); - } - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - 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_CloudEventTaskExecution_descriptor; - } - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventTaskExecution getDefaultInstanceForType() { - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); + return this; } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventTaskExecution build() { - flyteidl.event.Cloudevents.CloudEventTaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + *
+       * Hydrated output
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + + onChanged(); + return getOutputDataFieldBuilder().getBuilder(); } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventTaskExecution buildPartial() { - flyteidl.event.Cloudevents.CloudEventTaskExecution result = new flyteidl.event.Cloudevents.CloudEventTaskExecution(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rawEventBuilder_ == null) { - result.rawEvent_ = rawEvent_; + /** + *
+       * Hydrated output
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputDataBuilder_ != null) { + return outputDataBuilder_.getMessageOrBuilder(); } else { - result.rawEvent_ = rawEventBuilder_.build(); + 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) { - 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 (scheduledAtBuilder_ == null) { - result.scheduledAt_ = scheduledAt_; - } else { - result.scheduledAt_ = scheduledAtBuilder_.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(); - } - if (parentNodeExecutionBuilder_ == null) { - result.parentNodeExecution_ = parentNodeExecution_; - } else { - result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); - } - if (referenceExecutionBuilder_ == null) { - result.referenceExecution_ = referenceExecution_; - } else { - result.referenceExecution_ = referenceExecutionBuilder_.build(); - } - if (launchPlanIdBuilder_ == null) { - result.launchPlanId_ = launchPlanId_; - } else { - result.launchPlanId_ = launchPlanIdBuilder_.build(); + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getOutputData(), + getParentForChildren(), + isClean()); + outputData_ = null; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + return outputDataBuilder_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + 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; } - @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); + /** + *
+       * 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 { - super.mergeFrom(other); - return this; + return outputInterfaceBuilder_.getMessage(); } } - - public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventTaskExecution other) { - if (other == flyteidl.event.Cloudevents.CloudEventTaskExecution.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 (other.hasScheduledAt()) { - mergeScheduledAt(other.getScheduledAt()); - } - if (artifactIdsBuilder_ == null) { - if (!other.artifactIds_.isEmpty()) { - if (artifactIds_.isEmpty()) { - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureArtifactIdsIsMutable(); - artifactIds_.addAll(other.artifactIds_); - } - onChanged(); + /** + *
+       * 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 { - 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.hasParentNodeExecution()) { - mergeParentNodeExecution(other.getParentNodeExecution()); - } - if (other.hasReferenceExecution()) { - mergeReferenceExecution(other.getReferenceExecution()); - } - if (other.hasLaunchPlanId()) { - mergeLaunchPlanId(other.getLaunchPlanId()); + outputInterfaceBuilder_.setMessage(value); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); + 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()); + } - @java.lang.Override - public final boolean isInitialized() { - return true; + return this; } - - @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); + /** + *
+       * 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; } - private int bitField0_; + /** + *
+       * 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; + } - private flyteidl.event.Event.TaskExecutionEvent rawEvent_; + 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.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> rawEventBuilder_; + 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.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public boolean hasRawEvent() { - return rawEventBuilder_ != null || rawEvent_ != null; + public boolean hasInputData() { + return inputDataBuilder_ != null || inputData_ != null; } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public flyteidl.event.Event.TaskExecutionEvent getRawEvent() { - if (rawEventBuilder_ == null) { - return rawEvent_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; + public flyteidl.core.Literals.LiteralMap getInputData() { + if (inputDataBuilder_ == null) { + return inputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; } else { - return rawEventBuilder_.getMessage(); + return inputDataBuilder_.getMessage(); } } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public Builder setRawEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (rawEventBuilder_ == null) { + public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { + if (inputDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - rawEvent_ = value; + inputData_ = value; onChanged(); } else { - rawEventBuilder_.setMessage(value); + inputDataBuilder_.setMessage(value); } return this; } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public Builder setRawEvent( - flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { - if (rawEventBuilder_ == null) { - rawEvent_ = builderForValue.build(); + public Builder setInputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputDataBuilder_ == null) { + inputData_ = builderForValue.build(); onChanged(); } else { - rawEventBuilder_.setMessage(builderForValue.build()); + inputDataBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public Builder mergeRawEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (rawEvent_ != null) { - rawEvent_ = - flyteidl.event.Event.TaskExecutionEvent.newBuilder(rawEvent_).mergeFrom(value).buildPartial(); + 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 { - rawEvent_ = value; + inputData_ = value; } onChanged(); } else { - rawEventBuilder_.mergeFrom(value); + inputDataBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public Builder clearRawEvent() { - if (rawEventBuilder_ == null) { - rawEvent_ = null; + public Builder clearInputData() { + if (inputDataBuilder_ == null) { + inputData_ = null; onChanged(); } else { - rawEvent_ = null; - rawEventBuilder_ = null; + inputData_ = null; + inputDataBuilder_ = null; } return this; } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public flyteidl.event.Event.TaskExecutionEvent.Builder getRawEventBuilder() { + public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { onChanged(); - return getRawEventFieldBuilder().getBuilder(); + return getInputDataFieldBuilder().getBuilder(); } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getRawEventOrBuilder() { - if (rawEventBuilder_ != null) { - return rawEventBuilder_.getMessageOrBuilder(); + public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { + if (inputDataBuilder_ != null) { + return inputDataBuilder_.getMessageOrBuilder(); } else { - return rawEvent_ == null ? - flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; + return inputData_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; } } /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; + * .flyteidl.core.LiteralMap input_data = 5; */ 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(), + 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()); - rawEvent_ = null; + inputData_ = null; } - return rawEventBuilder_; + return inputDataBuilder_; } - 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 = 2; - */ - public boolean hasOutputData() { - return outputDataBuilder_ != null || outputData_ != null; + 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_; + /** *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - return outputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; + public java.util.List getArtifactIdsList() { + if (artifactIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifactIds_); } else { - return outputDataBuilder_.getMessage(); + return artifactIdsBuilder_.getMessageList(); } } /** *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputData_ = value; - onChanged(); + public int getArtifactIdsCount() { + if (artifactIdsBuilder_ == null) { + return artifactIds_.size(); } else { - outputDataBuilder_.setMessage(value); + return artifactIdsBuilder_.getCount(); } - - return this; } /** *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputData_ = builderForValue.build(); - onChanged(); + public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { + if (artifactIdsBuilder_ == null) { + return artifactIds_.get(index); } else { - outputDataBuilder_.setMessage(builderForValue.build()); + return artifactIdsBuilder_.getMessage(index); } - - return this; } /** *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - 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; + 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 { - outputDataBuilder_.mergeFrom(value); + artifactIdsBuilder_.setMessage(index, value); } - return this; } /** *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - outputData_ = null; + public Builder setArtifactIds( + int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + artifactIds_.set(index, builderForValue.build()); onChanged(); } else { - outputData_ = null; - outputDataBuilder_ = null; + artifactIdsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - - onChanged(); - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputDataBuilder_ != null) { - return outputDataBuilder_.getMessageOrBuilder(); + public Builder addArtifactIds(flyteidl.core.ArtifactId.ArtifactID value) { + if (artifactIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactIdsIsMutable(); + artifactIds_.add(value); + onChanged(); } else { - return outputData_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; + artifactIdsBuilder_.addMessage(value); } + return this; } /** *
-       * Hydrated output
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.LiteralMap output_data = 2; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - 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; + 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 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 = 3; - */ - public boolean hasOutputInterface() { - return outputInterfaceBuilder_ != null || outputInterface_ != null; + return this; } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public flyteidl.core.Interface.TypedInterface getOutputInterface() { - if (outputInterfaceBuilder_ == null) { - return outputInterface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; + public Builder addArtifactIds( + flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + artifactIds_.add(builderForValue.build()); + onChanged(); } else { - return outputInterfaceBuilder_.getMessage(); + artifactIdsBuilder_.addMessage(builderForValue.build()); } + return this; } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public Builder setOutputInterface(flyteidl.core.Interface.TypedInterface value) { - if (outputInterfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputInterface_ = value; + public Builder addArtifactIds( + int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + artifactIds_.add(index, builderForValue.build()); onChanged(); } else { - outputInterfaceBuilder_.setMessage(value); + artifactIdsBuilder_.addMessage(index, builderForValue.build()); } - return this; } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public Builder setOutputInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (outputInterfaceBuilder_ == null) { - outputInterface_ = builderForValue.build(); + public Builder addAllArtifactIds( + java.lang.Iterable values) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, artifactIds_); onChanged(); } else { - outputInterfaceBuilder_.setMessage(builderForValue.build()); + artifactIdsBuilder_.addAllMessages(values); } - return this; } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - 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; - } + public Builder clearArtifactIds() { + if (artifactIdsBuilder_ == null) { + artifactIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { - outputInterfaceBuilder_.mergeFrom(value); + artifactIdsBuilder_.clear(); } - return this; } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public Builder clearOutputInterface() { - if (outputInterfaceBuilder_ == null) { - outputInterface_ = null; + public Builder removeArtifactIds(int index) { + if (artifactIdsBuilder_ == null) { + ensureArtifactIdsIsMutable(); + artifactIds_.remove(index); onChanged(); } else { - outputInterface_ = null; - outputInterfaceBuilder_ = null; + artifactIdsBuilder_.remove(index); } - return this; } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public flyteidl.core.Interface.TypedInterface.Builder getOutputInterfaceBuilder() { - - onChanged(); - return getOutputInterfaceFieldBuilder().getBuilder(); + public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdsBuilder( + int index) { + return getArtifactIdsFieldBuilder().getBuilder(index); } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .flyteidl.core.TypedInterface output_interface = 3; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder() { - if (outputInterfaceBuilder_ != null) { - return outputInterfaceBuilder_.getMessageOrBuilder(); - } else { - return outputInterface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; + public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( + int index) { + if (artifactIdsBuilder_ == null) { + return artifactIds_.get(index); } else { + return artifactIdsBuilder_.getMessageOrBuilder(index); } } /** *
-       * The typed interface for the task that produced the event.
+       * The following are ExecutionMetadata fields
+       * We can't have the ExecutionMetadata object directly because of import cycle
        * 
* - * .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; + * repeated .flyteidl.core.ArtifactID artifact_ids = 6; */ - 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(); + public java.util.List + getArtifactIdsOrBuilderList() { + if (artifactIdsBuilder_ != null) { + return artifactIdsBuilder_.getMessageOrBuilderList(); } else { - inputDataBuilder_.mergeFrom(value); + return java.util.Collections.unmodifiableList(artifactIds_); } - - return this; } /** - * .flyteidl.core.LiteralMap input_data = 4; + *
+       * 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 clearInputData() { - if (inputDataBuilder_ == null) { - inputData_ = null; - onChanged(); - } else { - inputData_ = null; - inputDataBuilder_ = null; - } - - return this; + public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder() { + return getArtifactIdsFieldBuilder().addBuilder( + flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); } /** - * .flyteidl.core.LiteralMap input_data = 4; + *
+       * 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.Literals.LiteralMap.Builder getInputDataBuilder() { - - onChanged(); - return getInputDataFieldBuilder().getBuilder(); + public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( + int index) { + return getArtifactIdsFieldBuilder().addBuilder( + index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); } /** - * .flyteidl.core.LiteralMap input_data = 4; + *
+       * 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.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if (inputDataBuilder_ != null) { - return inputDataBuilder_.getMessageOrBuilder(); - } else { - return inputData_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } + public java.util.List + getArtifactIdsBuilderList() { + return getArtifactIdsFieldBuilder().getBuilderList(); } - /** - * .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(), + 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()); - inputData_ = null; + artifactIds_ = null; } - return inputDataBuilder_; + return artifactIdsBuilder_; } - private com.google.protobuf.Timestamp scheduledAt_; + private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public boolean hasScheduledAt() { - return scheduledAtBuilder_ != null || scheduledAt_ != null; + public boolean hasLaunchPlanId() { + return launchPlanIdBuilder_ != null || launchPlanId_ != null; } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public com.google.protobuf.Timestamp getScheduledAt() { - if (scheduledAtBuilder_ == null) { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { + if (launchPlanIdBuilder_ == null) { + return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; } else { - return scheduledAtBuilder_.getMessage(); + return launchPlanIdBuilder_.getMessage(); } } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public Builder setScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { + public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - scheduledAt_ = value; + launchPlanId_ = value; onChanged(); } else { - scheduledAtBuilder_.setMessage(value); + launchPlanIdBuilder_.setMessage(value); } return this; } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public Builder setScheduledAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = builderForValue.build(); + public Builder setLaunchPlanId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchPlanIdBuilder_ == null) { + launchPlanId_ = builderForValue.build(); onChanged(); } else { - scheduledAtBuilder_.setMessage(builderForValue.build()); + launchPlanIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (scheduledAt_ != null) { - scheduledAt_ = - com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); + 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 { - scheduledAt_ = value; + launchPlanId_ = value; } onChanged(); } else { - scheduledAtBuilder_.mergeFrom(value); + launchPlanIdBuilder_.mergeFrom(value); } return this; } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public Builder clearScheduledAt() { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; + public Builder clearLaunchPlanId() { + if (launchPlanIdBuilder_ == null) { + launchPlanId_ = null; onChanged(); } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; + launchPlanId_ = null; + launchPlanIdBuilder_ = null; } return this; } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { onChanged(); - return getScheduledAtFieldBuilder().getBuilder(); + return getLaunchPlanIdFieldBuilder().getBuilder(); } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - if (scheduledAtBuilder_ != null) { - return scheduledAtBuilder_.getMessageOrBuilder(); + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { + if (launchPlanIdBuilder_ != null) { + return launchPlanIdBuilder_.getMessageOrBuilder(); } else { - return scheduledAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + return launchPlanId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; } } /** *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
+       * 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.
        * 
* - * .google.protobuf.Timestamp scheduled_at = 5; + * .flyteidl.core.Identifier launch_plan_id = 7; */ 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(), + 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()); - scheduledAt_ = null; + launchPlanId_ = null; } - return scheduledAtBuilder_; + return launchPlanIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - private java.util.List artifactIds_ = - java.util.Collections.emptyList(); - private void ensureArtifactIdsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - artifactIds_ = new java.util.ArrayList(artifactIds_); - bitField0_ |= 0x00000020; - } + @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); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdsBuilder_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * 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(); - } - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public int getArtifactIdsCount() { - if (artifactIdsBuilder_ == null) { - return artifactIds_.size(); - } else { - return artifactIdsBuilder_.getCount(); - } - } - /** - * 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); - } - } - /** - * 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; + size = 0; + if (rawEvent_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRawEvent()); } - /** - * 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; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * 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; + if (!(obj instanceof flyteidl.event.Cloudevents.CloudEventTaskExecution)) { + return super.equals(obj); } - /** - * 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; + 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; } - /** - * 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - * 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRawEvent()) { + hash = (37 * hash) + RAW_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getRawEvent().hashCode(); } - /** - * 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; + 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; } - /** - * 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; + + @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); } - /** - * 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; + + // Construct using flyteidl.event.Cloudevents.CloudEventTaskExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().getBuilder(index); + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * 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); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - if (artifactIdsBuilder_ != null) { - return artifactIdsBuilder_.getMessageOrBuilderList(); + @java.lang.Override + public Builder clear() { + super.clear(); + if (rawEventBuilder_ == null) { + rawEvent_ = null; } else { - return java.util.Collections.unmodifiableList(artifactIds_); - } - } - /** - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder() { - return getArtifactIdsFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - * 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()); - } - /** - * 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; + rawEvent_ = null; + rawEventBuilder_ = null; } - return artifactIdsBuilder_; + return this; } - 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_; - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } else { - return parentNodeExecutionBuilder_.getMessage(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventTaskExecution_descriptor; } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - 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; + @java.lang.Override + public flyteidl.event.Cloudevents.CloudEventTaskExecution getDefaultInstanceForType() { + return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public Builder setParentNodeExecution( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(builderForValue.build()); - } - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - 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); + @java.lang.Override + public flyteidl.event.Cloudevents.CloudEventTaskExecution build() { + flyteidl.event.Cloudevents.CloudEventTaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - - return this; + return result; } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public Builder clearParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - onChanged(); + + @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 { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; + result.rawEvent_ = rawEventBuilder_.build(); } - - return this; + onBuilt(); + return result; } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { - - onChanged(); - return getParentNodeExecutionFieldBuilder().getBuilder(); + + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - if (parentNodeExecutionBuilder_ != null) { - return parentNodeExecutionBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecution_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 7; - */ - 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_; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - - 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 = 8; - */ - public boolean hasReferenceExecution() { - return referenceExecutionBuilder_ != null || referenceExecution_ != null; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } else { - return referenceExecutionBuilder_.getMessage(); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - 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; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public Builder setReferenceExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = builderForValue.build(); - onChanged(); + @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 { - referenceExecutionBuilder_.setMessage(builderForValue.build()); + super.mergeFrom(other); + return this; } - - return this; } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - 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 = 8; - */ - public Builder clearReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - onChanged(); - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; + public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventTaskExecution other) { + if (other == flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance()) return this; + if (other.hasRawEvent()) { + mergeRawEvent(other.getRawEvent()); } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { - + this.mergeUnknownFields(other.unknownFields); onChanged(); - return getReferenceExecutionFieldBuilder().getBuilder(); + return this; } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - if (referenceExecutionBuilder_ != null) { - return referenceExecutionBuilder_.getMessageOrBuilder(); - } else { - return referenceExecution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 8; - */ - 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; + + @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 referenceExecutionBuilder_; + return this; } - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; + private flyteidl.event.Event.TaskExecutionEvent rawEvent_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> rawEventBuilder_; /** - *
-       * 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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public boolean hasLaunchPlanId() { - return launchPlanIdBuilder_ != null || launchPlanId_ != null; + public boolean hasRawEvent() { + return rawEventBuilder_ != null || rawEvent_ != 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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; + public flyteidl.event.Event.TaskExecutionEvent getRawEvent() { + if (rawEventBuilder_ == null) { + return rawEvent_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; } else { - return launchPlanIdBuilder_.getMessage(); + return rawEventBuilder_.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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { + public Builder setRawEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (rawEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - launchPlanId_ = value; + rawEvent_ = value; onChanged(); } else { - launchPlanIdBuilder_.setMessage(value); + rawEventBuilder_.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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public Builder setLaunchPlanId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = builderForValue.build(); + public Builder setRawEvent( + flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { + if (rawEventBuilder_ == null) { + rawEvent_ = builderForValue.build(); onChanged(); } else { - launchPlanIdBuilder_.setMessage(builderForValue.build()); + rawEventBuilder_.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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (launchPlanId_ != null) { - launchPlanId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlanId_).mergeFrom(value).buildPartial(); + 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 { - launchPlanId_ = value; + rawEvent_ = value; } onChanged(); } else { - launchPlanIdBuilder_.mergeFrom(value); + rawEventBuilder_.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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public Builder clearLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; + public Builder clearRawEvent() { + if (rawEventBuilder_ == null) { + rawEvent_ = null; onChanged(); } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; + rawEvent_ = null; + rawEventBuilder_ = 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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { + public flyteidl.event.Event.TaskExecutionEvent.Builder getRawEventBuilder() { onChanged(); - return getLaunchPlanIdFieldBuilder().getBuilder(); + return getRawEventFieldBuilder().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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - if (launchPlanIdBuilder_ != null) { - return launchPlanIdBuilder_.getMessageOrBuilder(); + public flyteidl.event.Event.TaskExecutionEventOrBuilder getRawEventOrBuilder() { + if (rawEventBuilder_ != null) { + return rawEventBuilder_.getMessageOrBuilder(); } else { - return launchPlanId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; + return rawEvent_ == null ? + flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; } } /** - *
-       * 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 = 9; + * .flyteidl.event.TaskExecutionEvent raw_event = 1; */ 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(), + 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()); - launchPlanId_ = null; + rawEvent_ = null; } - return launchPlanIdBuilder_; + return rawEventBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -7649,45 +7063,38 @@ public flyteidl.event.Cloudevents.CloudEventExecutionStart getDefaultInstanceFor "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\"\226\004" + + "roto\032\037google/protobuf/timestamp.proto\"\235\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" + - "\0220\n\014scheduled_at\030\005 \001(\0132\032.google.protobuf" + - ".Timestamp\022/\n\014artifact_ids\030\006 \003(\0132\031.flyte" + - "idl.core.ArtifactID\022E\n\025parent_node_execu" + - "tion\030\007 \001(\0132&.flyteidl.core.NodeExecution" + - "Identifier\022G\n\023reference_execution\030\010 \001(\0132" + - "*.flyteidl.core.WorkflowExecutionIdentif" + - "ier\0221\n\016launch_plan_id\030\t \001(\0132\031.flyteidl.c" + - "ore.Identifier\"P\n\027CloudEventNodeExecutio" + + "\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\0221\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.co" + + "re.Identifier\"\212\003\n\027CloudEventNodeExecutio" + "n\0225\n\traw_event\030\001 \001(\0132\".flyteidl.event.No" + - "deExecutionEvent\"\216\004\n\027CloudEventTaskExecu" + - "tion\0225\n\traw_event\030\001 \001(\0132\".flyteidl.event" + - ".TaskExecutionEvent\022.\n\013output_data\030\002 \001(\013" + - "2\031.flyteidl.core.LiteralMap\0227\n\020output_in" + - "terface\030\003 \001(\0132\035.flyteidl.core.TypedInter" + - "face\022-\n\ninput_data\030\004 \001(\0132\031.flyteidl.core" + - ".LiteralMap\0220\n\014scheduled_at\030\005 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022/\n\014artifact_ids\030\006 " + - "\003(\0132\031.flyteidl.core.ArtifactID\022E\n\025parent" + - "_node_execution\030\007 \001(\0132&.flyteidl.core.No" + - "deExecutionIdentifier\022G\n\023reference_execu" + - "tion\030\010 \001(\0132*.flyteidl.core.WorkflowExecu" + - "tionIdentifier\0221\n\016launch_plan_id\030\t \001(\0132\031" + - ".flyteidl.core.Identifier\"\207\002\n\030CloudEvent" + - "ExecutionStart\022@\n\014execution_id\030\001 \001(\0132*.f" + - "lyteidl.core.WorkflowExecutionIdentifier" + - "\0221\n\016launch_plan_id\030\002 \001(\0132\031.flyteidl.core" + - ".Identifier\022.\n\013workflow_id\030\003 \001(\0132\031.flyte" + - "idl.core.Identifier\022/\n\014artifact_ids\030\004 \003(" + - "\0132\031.flyteidl.core.ArtifactID\022\025\n\rartifact" + - "_keys\030\005 \003(\tB=Z;github.com/flyteorg/flyte" + - "/flyteidl/gen/pb-go/flyteidl/eventb\006prot" + - "o3" + "deExecutionEvent\022<\n\014task_exec_id\030\002 \001(\0132&" + + ".flyteidl.core.TaskExecutionIdentifier\022." + + "\n\013output_data\030\003 \001(\0132\031.flyteidl.core.Lite" + + "ralMap\0227\n\020output_interface\030\004 \001(\0132\035.flyte" + + "idl.core.TypedInterface\022-\n\ninput_data\030\005 " + + "\001(\0132\031.flyteidl.core.LiteralMap\022/\n\014artifa" + + "ct_ids\030\006 \003(\0132\031.flyteidl.core.ArtifactID\022" + + "1\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.core." + + "Identifier\"P\n\027CloudEventTaskExecution\0225\n" + + "\traw_event\030\001 \001(\0132\".flyteidl.event.TaskEx" + + "ecutionEvent\"\207\002\n\030CloudEventExecutionStar" + + "t\022@\n\014execution_id\030\001 \001(\0132*.flyteidl.core." + + "WorkflowExecutionIdentifier\0221\n\016launch_pl" + + "an_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022." + + "\n\013workflow_id\030\003 \001(\0132\031.flyteidl.core.Iden" + + "tifier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl." + + "core.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\tB=" + + "Z;github.com/flyteorg/flyte/flyteidl/gen" + + "/pb-go/flyteidl/eventb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -7712,19 +7119,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( 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", "ScheduledAt", "ArtifactIds", "ParentNodeExecution", "ReferenceExecution", "LaunchPlanId", }); + new java.lang.String[] { "RawEvent", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "ReferenceExecution", "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", }); + new java.lang.String[] { "RawEvent", "TaskExecId", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "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", "OutputData", "OutputInterface", "InputData", "ScheduledAt", "ArtifactIds", "ParentNodeExecution", "ReferenceExecution", "LaunchPlanId", }); + new java.lang.String[] { "RawEvent", }); internal_static_flyteidl_event_CloudEventExecutionStart_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_flyteidl_event_CloudEventExecutionStart_fieldAccessorTable = new diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index bd91de48b1..3fa8622d98 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -7423,15 +7423,9 @@ export namespace flyteidl { /** CloudEventWorkflowExecution inputData */ inputData?: (flyteidl.core.ILiteralMap|null); - /** CloudEventWorkflowExecution scheduledAt */ - scheduledAt?: (google.protobuf.ITimestamp|null); - /** CloudEventWorkflowExecution artifactIds */ artifactIds?: (flyteidl.core.IArtifactID[]|null); - /** CloudEventWorkflowExecution parentNodeExecution */ - parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - /** CloudEventWorkflowExecution referenceExecution */ referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); @@ -7460,15 +7454,9 @@ export namespace flyteidl { /** CloudEventWorkflowExecution inputData. */ public inputData?: (flyteidl.core.ILiteralMap|null); - /** CloudEventWorkflowExecution scheduledAt. */ - public scheduledAt?: (google.protobuf.ITimestamp|null); - /** CloudEventWorkflowExecution artifactIds. */ public artifactIds: flyteidl.core.IArtifactID[]; - /** CloudEventWorkflowExecution parentNodeExecution. */ - public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - /** CloudEventWorkflowExecution referenceExecution. */ public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); @@ -7513,6 +7501,24 @@ export namespace flyteidl { /** 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 launchPlanId */ + launchPlanId?: (flyteidl.core.IIdentifier|null); } /** Represents a CloudEventNodeExecution. */ @@ -7527,6 +7533,24 @@ export namespace flyteidl { /** 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 launchPlanId. */ + public launchPlanId?: (flyteidl.core.IIdentifier|null); + /** * Creates a new CloudEventNodeExecution instance using the specified properties. * @param [properties] Properties to set @@ -7565,30 +7589,6 @@ export namespace flyteidl { /** CloudEventTaskExecution rawEvent */ rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); - - /** CloudEventTaskExecution outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventTaskExecution outputInterface */ - outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventTaskExecution inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventTaskExecution scheduledAt */ - scheduledAt?: (google.protobuf.ITimestamp|null); - - /** CloudEventTaskExecution artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventTaskExecution parentNodeExecution */ - parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** CloudEventTaskExecution referenceExecution */ - referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventTaskExecution launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); } /** Represents a CloudEventTaskExecution. */ @@ -7603,30 +7603,6 @@ export namespace flyteidl { /** CloudEventTaskExecution rawEvent. */ public rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); - /** CloudEventTaskExecution outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventTaskExecution outputInterface. */ - public outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventTaskExecution inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventTaskExecution scheduledAt. */ - public scheduledAt?: (google.protobuf.ITimestamp|null); - - /** CloudEventTaskExecution artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventTaskExecution parentNodeExecution. */ - public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** CloudEventTaskExecution referenceExecution. */ - public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventTaskExecution launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - /** * Creates a new CloudEventTaskExecution instance using the specified properties. * @param [properties] Properties to set diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 7597b7e267..638786cb1d 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -17925,9 +17925,7 @@ * @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 {google.protobuf.ITimestamp|null} [scheduledAt] CloudEventWorkflowExecution scheduledAt * @property {Array.|null} [artifactIds] CloudEventWorkflowExecution artifactIds - * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] CloudEventWorkflowExecution parentNodeExecution * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] CloudEventWorkflowExecution referenceExecution * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventWorkflowExecution launchPlanId */ @@ -17980,14 +17978,6 @@ */ CloudEventWorkflowExecution.prototype.inputData = null; - /** - * CloudEventWorkflowExecution scheduledAt. - * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.scheduledAt = null; - /** * CloudEventWorkflowExecution artifactIds. * @member {Array.} artifactIds @@ -17996,14 +17986,6 @@ */ CloudEventWorkflowExecution.prototype.artifactIds = $util.emptyArray; - /** - * CloudEventWorkflowExecution parentNodeExecution. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.parentNodeExecution = null; - /** * CloudEventWorkflowExecution referenceExecution. * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution @@ -18052,17 +18034,13 @@ $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.scheduledAt != null && message.hasOwnProperty("scheduledAt")) - $root.google.protobuf.Timestamp.encode(message.scheduledAt, 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.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $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 8, wireType 2 =*/66).fork()).ldelim(); + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -18097,20 +18075,14 @@ message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); break; case 5: - message.scheduledAt = $root.google.protobuf.Timestamp.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.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 8: + case 6: message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; - case 9: + case 7: message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; default: @@ -18152,11 +18124,6 @@ if (error) return "inputData." + error; } - if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); - if (error) - return "scheduledAt." + error; - } if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { if (!Array.isArray(message.artifactIds)) return "artifactIds: array expected"; @@ -18166,11 +18133,6 @@ return "artifactIds." + 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) @@ -18194,6 +18156,12 @@ * @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 {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventNodeExecution launchPlanId */ /** @@ -18205,6 +18173,7 @@ * @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) @@ -18219,6 +18188,54 @@ */ 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 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 @@ -18245,6 +18262,19 @@ 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.launchPlanId != null && message.hasOwnProperty("launchPlanId")) + $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -18269,6 +18299,26 @@ 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.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -18293,6 +18343,40 @@ 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.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); + if (error) + return "launchPlanId." + error; + } return null; }; @@ -18306,14 +18390,6 @@ * @memberof flyteidl.event * @interface ICloudEventTaskExecution * @property {flyteidl.event.ITaskExecutionEvent|null} [rawEvent] CloudEventTaskExecution rawEvent - * @property {flyteidl.core.ILiteralMap|null} [outputData] CloudEventTaskExecution outputData - * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventTaskExecution outputInterface - * @property {flyteidl.core.ILiteralMap|null} [inputData] CloudEventTaskExecution inputData - * @property {google.protobuf.ITimestamp|null} [scheduledAt] CloudEventTaskExecution scheduledAt - * @property {Array.|null} [artifactIds] CloudEventTaskExecution artifactIds - * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] CloudEventTaskExecution parentNodeExecution - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] CloudEventTaskExecution referenceExecution - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventTaskExecution launchPlanId */ /** @@ -18325,7 +18401,6 @@ * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set */ function CloudEventTaskExecution(properties) { - this.artifactIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18340,70 +18415,6 @@ */ CloudEventTaskExecution.prototype.rawEvent = null; - /** - * CloudEventTaskExecution outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.outputData = null; - - /** - * CloudEventTaskExecution outputInterface. - * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.outputInterface = null; - - /** - * CloudEventTaskExecution inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.inputData = null; - - /** - * CloudEventTaskExecution scheduledAt. - * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.scheduledAt = null; - - /** - * CloudEventTaskExecution artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventTaskExecution parentNodeExecution. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.parentNodeExecution = null; - - /** - * CloudEventTaskExecution referenceExecution. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.referenceExecution = null; - - /** - * CloudEventTaskExecution launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.launchPlanId = null; - /** * Creates a new CloudEventTaskExecution instance using the specified properties. * @function create @@ -18430,23 +18441,6 @@ 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(); - 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.scheduledAt != null && message.hasOwnProperty("scheduledAt")) - $root.google.protobuf.Timestamp.encode(message.scheduledAt, 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.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -18471,32 +18465,6 @@ case 1: message.rawEvent = $root.flyteidl.event.TaskExecutionEvent.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: - message.scheduledAt = $root.google.protobuf.Timestamp.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.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 8: - message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 9: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -18521,50 +18489,6 @@ 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.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); - if (error) - return "scheduledAt." + 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.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.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } return null; }; diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py index 66c22ee318..aaf3742036 100644 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py @@ -19,7 +19,7 @@ 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\"\x99\x05\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\x0cscheduled_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12<\n\x0c\x61rtifact_ids\x18\x06 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12Z\n\x15parent_node_execution\x18\x07 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x13parentNodeExecution\x12[\n\x13reference_execution\x18\x08 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12?\n\x0elaunch_plan_id\x18\t \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"Z\n\x17\x43loudEventNodeExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x08rawEvent\"\x91\x05\n\x17\x43loudEventTaskExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\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\x0cscheduled_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12<\n\x0c\x61rtifact_ids\x18\x06 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12Z\n\x15parent_node_execution\x18\x07 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x13parentNodeExecution\x12[\n\x13reference_execution\x18\x08 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12?\n\x0elaunch_plan_id\x18\t \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\xc9\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\x61rtifactKeysB\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') +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\"\xfe\x03\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?\n\x0elaunch_plan_id\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\xe3\x03\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?\n\x0elaunch_plan_id\x18\x07 \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\"\xc9\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\x61rtifactKeysB\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) @@ -29,11 +29,11 @@ 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=905 - _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=907 - _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=997 - _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1000 - _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1657 - _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1660 - _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1989 + _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_end=750 + _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=753 + _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=1236 + _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1238 + _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1328 + _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1331 + _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1660 # @@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 index 059455bb30..dafdfef667 100644 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi @@ -12,54 +12,46 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map DESCRIPTOR: _descriptor.FileDescriptor class CloudEventWorkflowExecution(_message.Message): - __slots__ = ["raw_event", "output_data", "output_interface", "input_data", "scheduled_at", "artifact_ids", "parent_node_execution", "reference_execution", "launch_plan_id"] + __slots__ = ["raw_event", "output_data", "output_interface", "input_data", "artifact_ids", "reference_execution", "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] - SCHEDULED_AT_FIELD_NUMBER: _ClassVar[int] ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_EXECUTION_FIELD_NUMBER: _ClassVar[int] REFERENCE_EXECUTION_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 - scheduled_at: _timestamp_pb2.Timestamp artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - parent_node_execution: _identifier_pb2.NodeExecutionIdentifier reference_execution: _identifier_pb2.WorkflowExecutionIdentifier 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]] = ..., scheduled_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., parent_node_execution: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + 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]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... class CloudEventNodeExecution(_message.Message): - __slots__ = ["raw_event"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.NodeExecutionEvent - def __init__(self, raw_event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ...) -> None: ... - -class CloudEventTaskExecution(_message.Message): - __slots__ = ["raw_event", "output_data", "output_interface", "input_data", "scheduled_at", "artifact_ids", "parent_node_execution", "reference_execution", "launch_plan_id"] + __slots__ = ["raw_event", "task_exec_id", "output_data", "output_interface", "input_data", "artifact_ids", "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] - SCHEDULED_AT_FIELD_NUMBER: _ClassVar[int] ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.TaskExecutionEvent + 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 - scheduled_at: _timestamp_pb2.Timestamp artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - parent_node_execution: _identifier_pb2.NodeExecutionIdentifier - reference_execution: _identifier_pb2.WorkflowExecutionIdentifier launch_plan_id: _identifier_pb2.Identifier - def __init__(self, raw_event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _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]] = ..., scheduled_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., parent_node_execution: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + 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]]] = ..., 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"] diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs index 21a05e3729..02444b809b 100644 --- a/flyteidl/gen/pb_rust/flyteidl.event.rs +++ b/flyteidl/gen/pb_rust/flyteidl.event.rs @@ -400,18 +400,14 @@ pub struct CloudEventWorkflowExecution { 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, optional, tag="5")] - pub scheduled_at: ::core::option::Option<::prost_types::Timestamp>, - #[prost(message, repeated, tag="6")] + #[prost(message, repeated, tag="5")] pub artifact_ids: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag="7")] - pub parent_node_execution: ::core::option::Option, - #[prost(message, optional, tag="8")] + #[prost(message, optional, tag="6")] pub reference_execution: ::core::option::Option, /// 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="9")] + #[prost(message, optional, tag="7")] pub launch_plan_id: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] @@ -419,36 +415,33 @@ pub struct CloudEventWorkflowExecution { pub struct CloudEventNodeExecution { #[prost(message, optional, tag="1")] pub raw_event: ::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, - /// Hydrated output + /// 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="3")] - pub output_interface: ::core::option::Option, #[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, optional, tag="5")] - pub scheduled_at: ::core::option::Option<::prost_types::Timestamp>, #[prost(message, repeated, tag="6")] pub artifact_ids: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag="7")] - pub parent_node_execution: ::core::option::Option, - #[prost(message, optional, tag="8")] - pub reference_execution: ::core::option::Option, /// 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="9")] + #[prost(message, optional, tag="7")] 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)] diff --git a/flyteidl/protos/flyteidl/event/cloudevents.proto b/flyteidl/protos/flyteidl/event/cloudevents.proto index 4ef7425c55..1d1062097c 100644 --- a/flyteidl/protos/flyteidl/event/cloudevents.proto +++ b/flyteidl/protos/flyteidl/event/cloudevents.proto @@ -24,44 +24,41 @@ message CloudEventWorkflowExecution { // The following are ExecutionMetadata fields // We can't have the ExecutionMetadata object directly because of import cycle - google.protobuf.Timestamp scheduled_at = 5; - repeated core.ArtifactID artifact_ids = 6; - core.NodeExecutionIdentifier parent_node_execution = 7; - core.WorkflowExecutionIdentifier reference_execution = 8; + repeated core.ArtifactID artifact_ids = 5; + core.WorkflowExecutionIdentifier reference_execution = 6; // 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. - core.Identifier launch_plan_id = 9; + core.Identifier launch_plan_id = 7; } - message CloudEventNodeExecution { event.NodeExecutionEvent raw_event = 1; -} -message CloudEventTaskExecution { - event.TaskExecutionEvent raw_event = 1; + // The relevant task execution if applicable + core.TaskExecutionIdentifier task_exec_id = 2; // Hydrated output - core.LiteralMap output_data = 2; + core.LiteralMap output_data = 3; // The typed interface for the task that produced the event. - core.TypedInterface output_interface = 3; + core.TypedInterface output_interface = 4; - core.LiteralMap input_data = 4; + core.LiteralMap input_data = 5; // The following are ExecutionMetadata fields // We can't have the ExecutionMetadata object directly because of import cycle - google.protobuf.Timestamp scheduled_at = 5; repeated core.ArtifactID artifact_ids = 6; - core.NodeExecutionIdentifier parent_node_execution = 7; - core.WorkflowExecutionIdentifier reference_execution = 8; // 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. - core.Identifier launch_plan_id = 9; + core.Identifier launch_plan_id = 7; +} + +message CloudEventTaskExecution { + event.TaskExecutionEvent raw_event = 1; } // This event is to be sent by Admin after it creates an execution.