// Code generated by protoc-gen-go. DO NOT EDIT. // source: workflow.proto package api import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CreateWorkflowRequest struct { Workflow *Workflow `protobuf:"bytes,1,opt,name=Workflow,proto3" json:"Workflow,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateWorkflowRequest) Reset() { *m = CreateWorkflowRequest{} } func (m *CreateWorkflowRequest) String() string { return proto.CompactTextString(m) } func (*CreateWorkflowRequest) ProtoMessage() {} func (*CreateWorkflowRequest) Descriptor() ([]byte, []int) { return fileDescriptor_892c7f566756b0be, []int{0} } func (m *CreateWorkflowRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateWorkflowRequest.Unmarshal(m, b) } func (m *CreateWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateWorkflowRequest.Marshal(b, m, deterministic) } func (m *CreateWorkflowRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateWorkflowRequest.Merge(m, src) } func (m *CreateWorkflowRequest) XXX_Size() int { return xxx_messageInfo_CreateWorkflowRequest.Size(m) } func (m *CreateWorkflowRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateWorkflowRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateWorkflowRequest proto.InternalMessageInfo func (m *CreateWorkflowRequest) GetWorkflow() *Workflow { if m != nil { return m.Workflow } return nil } type Workflow struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Workflow) Reset() { *m = Workflow{} } func (m *Workflow) String() string { return proto.CompactTextString(m) } func (*Workflow) ProtoMessage() {} func (*Workflow) Descriptor() ([]byte, []int) { return fileDescriptor_892c7f566756b0be, []int{1} } func (m *Workflow) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Workflow.Unmarshal(m, b) } func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Workflow.Marshal(b, m, deterministic) } func (m *Workflow) XXX_Merge(src proto.Message) { xxx_messageInfo_Workflow.Merge(m, src) } func (m *Workflow) XXX_Size() int { return xxx_messageInfo_Workflow.Size(m) } func (m *Workflow) XXX_DiscardUnknown() { xxx_messageInfo_Workflow.DiscardUnknown(m) } var xxx_messageInfo_Workflow proto.InternalMessageInfo func (m *Workflow) GetUuid() string { if m != nil { return m.Uuid } return "" } func (m *Workflow) GetName() string { if m != nil { return m.Name } return "" } func init() { proto.RegisterType((*CreateWorkflowRequest)(nil), "api.CreateWorkflowRequest") proto.RegisterType((*Workflow)(nil), "api.Workflow") } func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) } var fileDescriptor_892c7f566756b0be = []byte{ // 153 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2b, 0xcf, 0x2f, 0xca, 0x4e, 0xcb, 0xc9, 0x2f, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4e, 0x2c, 0xc8, 0x54, 0x72, 0xe2, 0x12, 0x75, 0x2e, 0x4a, 0x4d, 0x2c, 0x49, 0x0d, 0x87, 0x4a, 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x69, 0x72, 0x71, 0xc0, 0x84, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x78, 0xf5, 0x12, 0x0b, 0x32, 0xf5, 0xe0, 0xea, 0xe0, 0xd2, 0x4a, 0x46, 0x08, 0xa5, 0x42, 0x42, 0x5c, 0x2c, 0xa5, 0xa5, 0x99, 0x29, 0x60, 0x2d, 0x9c, 0x41, 0x60, 0x36, 0x48, 0x2c, 0x2f, 0x31, 0x37, 0x55, 0x82, 0x09, 0x22, 0x06, 0x62, 0x1b, 0x79, 0x70, 0xf1, 0xc3, 0xf4, 0x04, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, 0x0a, 0x99, 0x72, 0xb1, 0x41, 0x9c, 0x22, 0x24, 0x05, 0xb6, 0x09, 0xab, 0xbb, 0xa4, 0x50, 0x5d, 0xa1, 0xc4, 0x90, 0xc4, 0x06, 0xf6, 0x8d, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xa2, 0xfe, 0xa4, 0xef, 0xdf, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // WorkflowServiceClient is the client API for WorkflowService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WorkflowServiceClient interface { // Creates a Workflow Create(ctx context.Context, in *CreateWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error) } type workflowServiceClient struct { cc *grpc.ClientConn } func NewWorkflowServiceClient(cc *grpc.ClientConn) WorkflowServiceClient { return &workflowServiceClient{cc} } func (c *workflowServiceClient) Create(ctx context.Context, in *CreateWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error) { out := new(Workflow) err := c.cc.Invoke(ctx, "/api.WorkflowService/Create", in, out, opts...) if err != nil { return nil, err } return out, nil } // WorkflowServiceServer is the server API for WorkflowService service. type WorkflowServiceServer interface { // Creates a Workflow Create(context.Context, *CreateWorkflowRequest) (*Workflow, error) } // UnimplementedWorkflowServiceServer can be embedded to have forward compatible implementations. type UnimplementedWorkflowServiceServer struct { } func (*UnimplementedWorkflowServiceServer) Create(ctx context.Context, req *CreateWorkflowRequest) (*Workflow, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } func RegisterWorkflowServiceServer(s *grpc.Server, srv WorkflowServiceServer) { s.RegisterService(&_WorkflowService_serviceDesc, srv) } func _WorkflowService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateWorkflowRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WorkflowServiceServer).Create(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.WorkflowService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WorkflowServiceServer).Create(ctx, req.(*CreateWorkflowRequest)) } return interceptor(ctx, in, info, handler) } var _WorkflowService_serviceDesc = grpc.ServiceDesc{ ServiceName: "api.WorkflowService", HandlerType: (*WorkflowServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _WorkflowService_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "workflow.proto", }