// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package gen import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion7 // WorkflowServiceClient is the client API for WorkflowService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type WorkflowServiceClient interface { // Creates a Workflow CreateWorkflowExecution(ctx context.Context, in *CreateWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) // Clone a Workflow. This is the same as running it again. CloneWorkflowExecution(ctx context.Context, in *CloneWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) GetWorkflowExecutionStatisticsForNamespace(ctx context.Context, in *GetWorkflowExecutionStatisticsForNamespaceRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionStatisticsForNamespaceResponse, error) GetWorkflowExecution(ctx context.Context, in *GetWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) ListWorkflowExecutions(ctx context.Context, in *ListWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListWorkflowExecutionsResponse, error) WatchWorkflowExecution(ctx context.Context, in *WatchWorkflowExecutionRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowExecutionClient, error) GetWorkflowExecutionLogs(ctx context.Context, in *GetWorkflowExecutionLogsRequest, opts ...grpc.CallOption) (WorkflowService_GetWorkflowExecutionLogsClient, error) GetWorkflowExecutionMetrics(ctx context.Context, in *GetWorkflowExecutionMetricsRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionMetricsResponse, error) ResubmitWorkflowExecution(ctx context.Context, in *ResubmitWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*ArtifactResponse, error) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) AddWorkflowExecutionStatistics(ctx context.Context, in *AddWorkflowExecutionStatisticRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CronStartWorkflowExecutionStatistic(ctx context.Context, in *CronStartWorkflowExecutionStatisticRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateWorkflowExecutionStatus(ctx context.Context, in *UpdateWorkflowExecutionStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) AddWorkflowExecutionMetrics(ctx context.Context, in *AddWorkflowExecutionsMetricsRequest, opts ...grpc.CallOption) (*WorkflowExecutionsMetricsResponse, error) UpdateWorkflowExecutionMetrics(ctx context.Context, in *UpdateWorkflowExecutionsMetricsRequest, opts ...grpc.CallOption) (*WorkflowExecutionsMetricsResponse, error) } type workflowServiceClient struct { cc grpc.ClientConnInterface } func NewWorkflowServiceClient(cc grpc.ClientConnInterface) WorkflowServiceClient { return &workflowServiceClient{cc} } func (c *workflowServiceClient) CreateWorkflowExecution(ctx context.Context, in *CreateWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) { out := new(WorkflowExecution) err := c.cc.Invoke(ctx, "/api.WorkflowService/CreateWorkflowExecution", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) CloneWorkflowExecution(ctx context.Context, in *CloneWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) { out := new(WorkflowExecution) err := c.cc.Invoke(ctx, "/api.WorkflowService/CloneWorkflowExecution", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) GetWorkflowExecutionStatisticsForNamespace(ctx context.Context, in *GetWorkflowExecutionStatisticsForNamespaceRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionStatisticsForNamespaceResponse, error) { out := new(GetWorkflowExecutionStatisticsForNamespaceResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/GetWorkflowExecutionStatisticsForNamespace", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) GetWorkflowExecution(ctx context.Context, in *GetWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) { out := new(WorkflowExecution) err := c.cc.Invoke(ctx, "/api.WorkflowService/GetWorkflowExecution", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) ListWorkflowExecutions(ctx context.Context, in *ListWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListWorkflowExecutionsResponse, error) { out := new(ListWorkflowExecutionsResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/ListWorkflowExecutions", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) WatchWorkflowExecution(ctx context.Context, in *WatchWorkflowExecutionRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowExecutionClient, error) { stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[0], "/api.WorkflowService/WatchWorkflowExecution", opts...) if err != nil { return nil, err } x := &workflowServiceWatchWorkflowExecutionClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type WorkflowService_WatchWorkflowExecutionClient interface { Recv() (*WorkflowExecution, error) grpc.ClientStream } type workflowServiceWatchWorkflowExecutionClient struct { grpc.ClientStream } func (x *workflowServiceWatchWorkflowExecutionClient) Recv() (*WorkflowExecution, error) { m := new(WorkflowExecution) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *workflowServiceClient) GetWorkflowExecutionLogs(ctx context.Context, in *GetWorkflowExecutionLogsRequest, opts ...grpc.CallOption) (WorkflowService_GetWorkflowExecutionLogsClient, error) { stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[1], "/api.WorkflowService/GetWorkflowExecutionLogs", opts...) if err != nil { return nil, err } x := &workflowServiceGetWorkflowExecutionLogsClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type WorkflowService_GetWorkflowExecutionLogsClient interface { Recv() (*LogStreamResponse, error) grpc.ClientStream } type workflowServiceGetWorkflowExecutionLogsClient struct { grpc.ClientStream } func (x *workflowServiceGetWorkflowExecutionLogsClient) Recv() (*LogStreamResponse, error) { m := new(LogStreamResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *workflowServiceClient) GetWorkflowExecutionMetrics(ctx context.Context, in *GetWorkflowExecutionMetricsRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionMetricsResponse, error) { out := new(GetWorkflowExecutionMetricsResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/GetWorkflowExecutionMetrics", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) ResubmitWorkflowExecution(ctx context.Context, in *ResubmitWorkflowExecutionRequest, opts ...grpc.CallOption) (*WorkflowExecution, error) { out := new(WorkflowExecution) err := c.cc.Invoke(ctx, "/api.WorkflowService/ResubmitWorkflowExecution", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.WorkflowService/TerminateWorkflowExecution", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*ArtifactResponse, error) { out := new(ArtifactResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/GetArtifact", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) { out := new(ListFilesResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/ListFiles", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) AddWorkflowExecutionStatistics(ctx context.Context, in *AddWorkflowExecutionStatisticRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.WorkflowService/AddWorkflowExecutionStatistics", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) CronStartWorkflowExecutionStatistic(ctx context.Context, in *CronStartWorkflowExecutionStatisticRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.WorkflowService/CronStartWorkflowExecutionStatistic", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) UpdateWorkflowExecutionStatus(ctx context.Context, in *UpdateWorkflowExecutionStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.WorkflowService/UpdateWorkflowExecutionStatus", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) AddWorkflowExecutionMetrics(ctx context.Context, in *AddWorkflowExecutionsMetricsRequest, opts ...grpc.CallOption) (*WorkflowExecutionsMetricsResponse, error) { out := new(WorkflowExecutionsMetricsResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/AddWorkflowExecutionMetrics", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *workflowServiceClient) UpdateWorkflowExecutionMetrics(ctx context.Context, in *UpdateWorkflowExecutionsMetricsRequest, opts ...grpc.CallOption) (*WorkflowExecutionsMetricsResponse, error) { out := new(WorkflowExecutionsMetricsResponse) err := c.cc.Invoke(ctx, "/api.WorkflowService/UpdateWorkflowExecutionMetrics", in, out, opts...) if err != nil { return nil, err } return out, nil } // WorkflowServiceServer is the server API for WorkflowService service. // All implementations must embed UnimplementedWorkflowServiceServer // for forward compatibility type WorkflowServiceServer interface { // Creates a Workflow CreateWorkflowExecution(context.Context, *CreateWorkflowExecutionRequest) (*WorkflowExecution, error) // Clone a Workflow. This is the same as running it again. CloneWorkflowExecution(context.Context, *CloneWorkflowExecutionRequest) (*WorkflowExecution, error) GetWorkflowExecutionStatisticsForNamespace(context.Context, *GetWorkflowExecutionStatisticsForNamespaceRequest) (*GetWorkflowExecutionStatisticsForNamespaceResponse, error) GetWorkflowExecution(context.Context, *GetWorkflowExecutionRequest) (*WorkflowExecution, error) ListWorkflowExecutions(context.Context, *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) WatchWorkflowExecution(*WatchWorkflowExecutionRequest, WorkflowService_WatchWorkflowExecutionServer) error GetWorkflowExecutionLogs(*GetWorkflowExecutionLogsRequest, WorkflowService_GetWorkflowExecutionLogsServer) error GetWorkflowExecutionMetrics(context.Context, *GetWorkflowExecutionMetricsRequest) (*GetWorkflowExecutionMetricsResponse, error) ResubmitWorkflowExecution(context.Context, *ResubmitWorkflowExecutionRequest) (*WorkflowExecution, error) TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*emptypb.Empty, error) GetArtifact(context.Context, *GetArtifactRequest) (*ArtifactResponse, error) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) AddWorkflowExecutionStatistics(context.Context, *AddWorkflowExecutionStatisticRequest) (*emptypb.Empty, error) CronStartWorkflowExecutionStatistic(context.Context, *CronStartWorkflowExecutionStatisticRequest) (*emptypb.Empty, error) UpdateWorkflowExecutionStatus(context.Context, *UpdateWorkflowExecutionStatusRequest) (*emptypb.Empty, error) AddWorkflowExecutionMetrics(context.Context, *AddWorkflowExecutionsMetricsRequest) (*WorkflowExecutionsMetricsResponse, error) UpdateWorkflowExecutionMetrics(context.Context, *UpdateWorkflowExecutionsMetricsRequest) (*WorkflowExecutionsMetricsResponse, error) mustEmbedUnimplementedWorkflowServiceServer() } // UnimplementedWorkflowServiceServer must be embedded to have forward compatible implementations. type UnimplementedWorkflowServiceServer struct { } func (UnimplementedWorkflowServiceServer) CreateWorkflowExecution(context.Context, *CreateWorkflowExecutionRequest) (*WorkflowExecution, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowExecution not implemented") } func (UnimplementedWorkflowServiceServer) CloneWorkflowExecution(context.Context, *CloneWorkflowExecutionRequest) (*WorkflowExecution, error) { return nil, status.Errorf(codes.Unimplemented, "method CloneWorkflowExecution not implemented") } func (UnimplementedWorkflowServiceServer) GetWorkflowExecutionStatisticsForNamespace(context.Context, *GetWorkflowExecutionStatisticsForNamespaceRequest) (*GetWorkflowExecutionStatisticsForNamespaceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionStatisticsForNamespace not implemented") } func (UnimplementedWorkflowServiceServer) GetWorkflowExecution(context.Context, *GetWorkflowExecutionRequest) (*WorkflowExecution, error) { return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecution not implemented") } func (UnimplementedWorkflowServiceServer) ListWorkflowExecutions(context.Context, *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowExecutions not implemented") } func (UnimplementedWorkflowServiceServer) WatchWorkflowExecution(*WatchWorkflowExecutionRequest, WorkflowService_WatchWorkflowExecutionServer) error { return status.Errorf(codes.Unimplemented, "method WatchWorkflowExecution not implemented") } func (UnimplementedWorkflowServiceServer) GetWorkflowExecutionLogs(*GetWorkflowExecutionLogsRequest, WorkflowService_GetWorkflowExecutionLogsServer) error { return status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionLogs not implemented") } func (UnimplementedWorkflowServiceServer) GetWorkflowExecutionMetrics(context.Context, *GetWorkflowExecutionMetricsRequest) (*GetWorkflowExecutionMetricsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionMetrics not implemented") } func (UnimplementedWorkflowServiceServer) ResubmitWorkflowExecution(context.Context, *ResubmitWorkflowExecutionRequest) (*WorkflowExecution, error) { return nil, status.Errorf(codes.Unimplemented, "method ResubmitWorkflowExecution not implemented") } func (UnimplementedWorkflowServiceServer) TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method TerminateWorkflowExecution not implemented") } func (UnimplementedWorkflowServiceServer) GetArtifact(context.Context, *GetArtifactRequest) (*ArtifactResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") } func (UnimplementedWorkflowServiceServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListFiles not implemented") } func (UnimplementedWorkflowServiceServer) AddWorkflowExecutionStatistics(context.Context, *AddWorkflowExecutionStatisticRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method AddWorkflowExecutionStatistics not implemented") } func (UnimplementedWorkflowServiceServer) CronStartWorkflowExecutionStatistic(context.Context, *CronStartWorkflowExecutionStatisticRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method CronStartWorkflowExecutionStatistic not implemented") } func (UnimplementedWorkflowServiceServer) UpdateWorkflowExecutionStatus(context.Context, *UpdateWorkflowExecutionStatusRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowExecutionStatus not implemented") } func (UnimplementedWorkflowServiceServer) AddWorkflowExecutionMetrics(context.Context, *AddWorkflowExecutionsMetricsRequest) (*WorkflowExecutionsMetricsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddWorkflowExecutionMetrics not implemented") } func (UnimplementedWorkflowServiceServer) UpdateWorkflowExecutionMetrics(context.Context, *UpdateWorkflowExecutionsMetricsRequest) (*WorkflowExecutionsMetricsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowExecutionMetrics not implemented") } func (UnimplementedWorkflowServiceServer) mustEmbedUnimplementedWorkflowServiceServer() {} // UnsafeWorkflowServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WorkflowServiceServer will // result in compilation errors. type UnsafeWorkflowServiceServer interface { mustEmbedUnimplementedWorkflowServiceServer() } func RegisterWorkflowServiceServer(s grpc.ServiceRegistrar, srv WorkflowServiceServer) { s.RegisterService(&_WorkflowService_serviceDesc, srv) } func _WorkflowService_CreateWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateWorkflowExecutionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).CreateWorkflowExecution(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/CreateWorkflowExecution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).CreateWorkflowExecution(ctx, req.(*CreateWorkflowExecutionRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_CloneWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CloneWorkflowExecutionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).CloneWorkflowExecution(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/CloneWorkflowExecution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).CloneWorkflowExecution(ctx, req.(*CloneWorkflowExecutionRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_GetWorkflowExecutionStatisticsForNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetWorkflowExecutionStatisticsForNamespaceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).GetWorkflowExecutionStatisticsForNamespace(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/GetWorkflowExecutionStatisticsForNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).GetWorkflowExecutionStatisticsForNamespace(ctx, req.(*GetWorkflowExecutionStatisticsForNamespaceRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_GetWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetWorkflowExecutionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).GetWorkflowExecution(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/GetWorkflowExecution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).GetWorkflowExecution(ctx, req.(*GetWorkflowExecutionRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_ListWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListWorkflowExecutionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).ListWorkflowExecutions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/ListWorkflowExecutions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).ListWorkflowExecutions(ctx, req.(*ListWorkflowExecutionsRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_WatchWorkflowExecution_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(WatchWorkflowExecutionRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(WorkflowServiceServer).WatchWorkflowExecution(m, &workflowServiceWatchWorkflowExecutionServer{stream}) } type WorkflowService_WatchWorkflowExecutionServer interface { Send(*WorkflowExecution) error grpc.ServerStream } type workflowServiceWatchWorkflowExecutionServer struct { grpc.ServerStream } func (x *workflowServiceWatchWorkflowExecutionServer) Send(m *WorkflowExecution) error { return x.ServerStream.SendMsg(m) } func _WorkflowService_GetWorkflowExecutionLogs_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetWorkflowExecutionLogsRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(WorkflowServiceServer).GetWorkflowExecutionLogs(m, &workflowServiceGetWorkflowExecutionLogsServer{stream}) } type WorkflowService_GetWorkflowExecutionLogsServer interface { Send(*LogStreamResponse) error grpc.ServerStream } type workflowServiceGetWorkflowExecutionLogsServer struct { grpc.ServerStream } func (x *workflowServiceGetWorkflowExecutionLogsServer) Send(m *LogStreamResponse) error { return x.ServerStream.SendMsg(m) } func _WorkflowService_GetWorkflowExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetWorkflowExecutionMetricsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).GetWorkflowExecutionMetrics(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/GetWorkflowExecutionMetrics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).GetWorkflowExecutionMetrics(ctx, req.(*GetWorkflowExecutionMetricsRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_ResubmitWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResubmitWorkflowExecutionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).ResubmitWorkflowExecution(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/ResubmitWorkflowExecution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).ResubmitWorkflowExecution(ctx, req.(*ResubmitWorkflowExecutionRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_TerminateWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TerminateWorkflowExecutionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).TerminateWorkflowExecution(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/TerminateWorkflowExecution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).TerminateWorkflowExecution(ctx, req.(*TerminateWorkflowExecutionRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetArtifactRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).GetArtifact(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/GetArtifact", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).GetArtifact(ctx, req.(*GetArtifactRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_ListFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFilesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).ListFiles(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/ListFiles", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).ListFiles(ctx, req.(*ListFilesRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_AddWorkflowExecutionStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddWorkflowExecutionStatisticRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).AddWorkflowExecutionStatistics(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/AddWorkflowExecutionStatistics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).AddWorkflowExecutionStatistics(ctx, req.(*AddWorkflowExecutionStatisticRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_CronStartWorkflowExecutionStatistic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CronStartWorkflowExecutionStatisticRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).CronStartWorkflowExecutionStatistic(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/CronStartWorkflowExecutionStatistic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).CronStartWorkflowExecutionStatistic(ctx, req.(*CronStartWorkflowExecutionStatisticRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_UpdateWorkflowExecutionStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateWorkflowExecutionStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).UpdateWorkflowExecutionStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/UpdateWorkflowExecutionStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).UpdateWorkflowExecutionStatus(ctx, req.(*UpdateWorkflowExecutionStatusRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_AddWorkflowExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddWorkflowExecutionsMetricsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).AddWorkflowExecutionMetrics(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/AddWorkflowExecutionMetrics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).AddWorkflowExecutionMetrics(ctx, req.(*AddWorkflowExecutionsMetricsRequest)) } return interceptor(ctx, in, info, handler) } func _WorkflowService_UpdateWorkflowExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateWorkflowExecutionsMetricsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).UpdateWorkflowExecutionMetrics(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/UpdateWorkflowExecutionMetrics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).UpdateWorkflowExecutionMetrics(ctx, req.(*UpdateWorkflowExecutionsMetricsRequest)) } return interceptor(ctx, in, info, handler) } var _WorkflowService_serviceDesc = grpc.ServiceDesc{ ServiceName: "api.WorkflowService", HandlerType: (*WorkflowServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateWorkflowExecution", Handler: _WorkflowService_CreateWorkflowExecution_Handler, }, { MethodName: "CloneWorkflowExecution", Handler: _WorkflowService_CloneWorkflowExecution_Handler, }, { MethodName: "GetWorkflowExecutionStatisticsForNamespace", Handler: _WorkflowService_GetWorkflowExecutionStatisticsForNamespace_Handler, }, { MethodName: "GetWorkflowExecution", Handler: _WorkflowService_GetWorkflowExecution_Handler, }, { MethodName: "ListWorkflowExecutions", Handler: _WorkflowService_ListWorkflowExecutions_Handler, }, { MethodName: "GetWorkflowExecutionMetrics", Handler: _WorkflowService_GetWorkflowExecutionMetrics_Handler, }, { MethodName: "ResubmitWorkflowExecution", Handler: _WorkflowService_ResubmitWorkflowExecution_Handler, }, { MethodName: "TerminateWorkflowExecution", Handler: _WorkflowService_TerminateWorkflowExecution_Handler, }, { MethodName: "GetArtifact", Handler: _WorkflowService_GetArtifact_Handler, }, { MethodName: "ListFiles", Handler: _WorkflowService_ListFiles_Handler, }, { MethodName: "AddWorkflowExecutionStatistics", Handler: _WorkflowService_AddWorkflowExecutionStatistics_Handler, }, { MethodName: "CronStartWorkflowExecutionStatistic", Handler: _WorkflowService_CronStartWorkflowExecutionStatistic_Handler, }, { MethodName: "UpdateWorkflowExecutionStatus", Handler: _WorkflowService_UpdateWorkflowExecutionStatus_Handler, }, { MethodName: "AddWorkflowExecutionMetrics", Handler: _WorkflowService_AddWorkflowExecutionMetrics_Handler, }, { MethodName: "UpdateWorkflowExecutionMetrics", Handler: _WorkflowService_UpdateWorkflowExecutionMetrics_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchWorkflowExecution", Handler: _WorkflowService_WatchWorkflowExecution_Handler, ServerStreams: true, }, { StreamName: "GetWorkflowExecutionLogs", Handler: _WorkflowService_GetWorkflowExecutionLogs_Handler, ServerStreams: true, }, }, Metadata: "workflow.proto", }