// Code generated by protoc-gen-go.
// source: keystore.proto
// DO NOT EDIT!

/*
Package remoteks is a generated protocol buffer package.

It is generated from these files:
	keystore.proto

It has these top-level messages:
	SetMsg
	FileNameMsg
	ByteMsg
	StringListMsg
*/
package remoteks

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/empty"

import (
	context "golang.org/x/net/context"
	grpc "google.golang.org/grpc"
)

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

type SetMsg struct {
	FileName string `protobuf:"bytes,1,opt,name=FileName" json:"FileName,omitempty"`
	Data     []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
}

func (m *SetMsg) Reset()                    { *m = SetMsg{} }
func (m *SetMsg) String() string            { return proto.CompactTextString(m) }
func (*SetMsg) ProtoMessage()               {}
func (*SetMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func (m *SetMsg) GetFileName() string {
	if m != nil {
		return m.FileName
	}
	return ""
}

func (m *SetMsg) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

type FileNameMsg struct {
	FileName string `protobuf:"bytes,1,opt,name=FileName" json:"FileName,omitempty"`
}

func (m *FileNameMsg) Reset()                    { *m = FileNameMsg{} }
func (m *FileNameMsg) String() string            { return proto.CompactTextString(m) }
func (*FileNameMsg) ProtoMessage()               {}
func (*FileNameMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

func (m *FileNameMsg) GetFileName() string {
	if m != nil {
		return m.FileName
	}
	return ""
}

type ByteMsg struct {
	Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
}

func (m *ByteMsg) Reset()                    { *m = ByteMsg{} }
func (m *ByteMsg) String() string            { return proto.CompactTextString(m) }
func (*ByteMsg) ProtoMessage()               {}
func (*ByteMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }

func (m *ByteMsg) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

type StringListMsg struct {
	FileNames []string `protobuf:"bytes,1,rep,name=FileNames" json:"FileNames,omitempty"`
}

func (m *StringListMsg) Reset()                    { *m = StringListMsg{} }
func (m *StringListMsg) String() string            { return proto.CompactTextString(m) }
func (*StringListMsg) ProtoMessage()               {}
func (*StringListMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }

func (m *StringListMsg) GetFileNames() []string {
	if m != nil {
		return m.FileNames
	}
	return nil
}

func init() {
	proto.RegisterType((*SetMsg)(nil), "remoteks.SetMsg")
	proto.RegisterType((*FileNameMsg)(nil), "remoteks.FileNameMsg")
	proto.RegisterType((*ByteMsg)(nil), "remoteks.ByteMsg")
	proto.RegisterType((*StringListMsg)(nil), "remoteks.StringListMsg")
}

// 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

// Client API for Store service

type StoreClient interface {
	Set(ctx context.Context, in *SetMsg, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	Remove(ctx context.Context, in *FileNameMsg, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	Get(ctx context.Context, in *FileNameMsg, opts ...grpc.CallOption) (*ByteMsg, error)
	ListFiles(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*StringListMsg, error)
}

type storeClient struct {
	cc *grpc.ClientConn
}

func NewStoreClient(cc *grpc.ClientConn) StoreClient {
	return &storeClient{cc}
}

func (c *storeClient) Set(ctx context.Context, in *SetMsg, opts ...grpc.CallOption) (*google_protobuf.Empty, error) {
	out := new(google_protobuf.Empty)
	err := grpc.Invoke(ctx, "/remoteks.Store/Set", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *storeClient) Remove(ctx context.Context, in *FileNameMsg, opts ...grpc.CallOption) (*google_protobuf.Empty, error) {
	out := new(google_protobuf.Empty)
	err := grpc.Invoke(ctx, "/remoteks.Store/Remove", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *storeClient) Get(ctx context.Context, in *FileNameMsg, opts ...grpc.CallOption) (*ByteMsg, error) {
	out := new(ByteMsg)
	err := grpc.Invoke(ctx, "/remoteks.Store/Get", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *storeClient) ListFiles(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*StringListMsg, error) {
	out := new(StringListMsg)
	err := grpc.Invoke(ctx, "/remoteks.Store/ListFiles", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for Store service

type StoreServer interface {
	Set(context.Context, *SetMsg) (*google_protobuf.Empty, error)
	Remove(context.Context, *FileNameMsg) (*google_protobuf.Empty, error)
	Get(context.Context, *FileNameMsg) (*ByteMsg, error)
	ListFiles(context.Context, *google_protobuf.Empty) (*StringListMsg, error)
}

func RegisterStoreServer(s *grpc.Server, srv StoreServer) {
	s.RegisterService(&_Store_serviceDesc, srv)
}

func _Store_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SetMsg)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StoreServer).Set(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/remoteks.Store/Set",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StoreServer).Set(ctx, req.(*SetMsg))
	}
	return interceptor(ctx, in, info, handler)
}

func _Store_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FileNameMsg)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StoreServer).Remove(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/remoteks.Store/Remove",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StoreServer).Remove(ctx, req.(*FileNameMsg))
	}
	return interceptor(ctx, in, info, handler)
}

func _Store_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FileNameMsg)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StoreServer).Get(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/remoteks.Store/Get",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StoreServer).Get(ctx, req.(*FileNameMsg))
	}
	return interceptor(ctx, in, info, handler)
}

func _Store_ListFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(google_protobuf.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StoreServer).ListFiles(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/remoteks.Store/ListFiles",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StoreServer).ListFiles(ctx, req.(*google_protobuf.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

var _Store_serviceDesc = grpc.ServiceDesc{
	ServiceName: "remoteks.Store",
	HandlerType: (*StoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Set",
			Handler:    _Store_Set_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _Store_Remove_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Store_Get_Handler,
		},
		{
			MethodName: "ListFiles",
			Handler:    _Store_ListFiles_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "keystore.proto",
}

func init() { proto.RegisterFile("keystore.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 267 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x90, 0xcd, 0x4e, 0xb4, 0x30,
	0x14, 0x86, 0xe9, 0xc7, 0x27, 0x0e, 0xc7, 0x9f, 0xe8, 0x49, 0x54, 0x82, 0x9a, 0x90, 0xae, 0x70,
	0x61, 0x27, 0xa3, 0x1b, 0xdd, 0xb8, 0x30, 0xfe, 0x6c, 0xd4, 0x05, 0x5c, 0x01, 0x93, 0x1c, 0x09,
	0x99, 0xc1, 0x4e, 0xe8, 0xd1, 0x84, 0x3b, 0xf6, 0x32, 0x0c, 0xc5, 0x0a, 0x9b, 0xd1, 0x5d, 0x7b,
	0xfa, 0x3e, 0x6f, 0xce, 0x53, 0xd8, 0x5d, 0x50, 0x6b, 0x58, 0x37, 0xa4, 0x56, 0x8d, 0x66, 0x8d,
	0x93, 0x86, 0x6a, 0xcd, 0xb4, 0x30, 0xf1, 0x71, 0xa9, 0x75, 0xb9, 0xa4, 0xa9, 0x9d, 0xcf, 0xdf,
	0x5f, 0xa7, 0xf7, 0xf5, 0x8a, 0xdb, 0x3e, 0x26, 0xaf, 0x20, 0xc8, 0x89, 0x9f, 0x4d, 0x89, 0x31,
	0x4c, 0x1e, 0xaa, 0x25, 0xbd, 0x14, 0x35, 0x45, 0x22, 0x11, 0x69, 0x98, 0xfd, 0xdc, 0x11, 0xe1,
	0xff, 0x5d, 0xc1, 0x45, 0xf4, 0x2f, 0x11, 0xe9, 0x76, 0x66, 0xcf, 0xf2, 0x0c, 0xb6, 0xdc, 0xfb,
	0x1f, 0xb8, 0x3c, 0x85, 0xcd, 0xdb, 0x96, 0x6d, 0xcc, 0x35, 0x89, 0x51, 0xd3, 0x39, 0xec, 0xe4,
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