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

/*
Package proto is a generated protocol buffer package.

It is generated from these files:
	strategy.proto

It has these top-level messages:
	Property
	Dictionary
	Information
	Bool
	Asset
	Empty
*/
package proto

import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

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

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto1.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 _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package

type Property struct {
	Type        string  `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	ValueInt    int32   `protobuf:"varint,2,opt,name=value_int,json=valueInt" json:"value_int,omitempty"`
	ValueFloat  float32 `protobuf:"fixed32,3,opt,name=value_float,json=valueFloat" json:"value_float,omitempty"`
	ValueString string  `protobuf:"bytes,4,opt,name=value_string,json=valueString" json:"value_string,omitempty"`
	ValueBool   bool    `protobuf:"varint,5,opt,name=value_bool,json=valueBool" json:"value_bool,omitempty"`
}

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

func (m *Property) GetType() string {
	if m != nil {
		return m.Type
	}
	return ""
}

func (m *Property) GetValueInt() int32 {
	if m != nil {
		return m.ValueInt
	}
	return 0
}

func (m *Property) GetValueFloat() float32 {
	if m != nil {
		return m.ValueFloat
	}
	return 0
}

func (m *Property) GetValueString() string {
	if m != nil {
		return m.ValueString
	}
	return ""
}

func (m *Property) GetValueBool() bool {
	if m != nil {
		return m.ValueBool
	}
	return false
}

type Dictionary struct {
	CustomInt map[string]*Property `protobuf:"bytes,1,rep,name=customInt" json:"customInt,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}

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

func (m *Dictionary) GetCustomInt() map[string]*Property {
	if m != nil {
		return m.CustomInt
	}
	return nil
}

type Information struct {
	Name        string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
	Version     string `protobuf:"bytes,2,opt,name=Version" json:"Version,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=Description" json:"Description,omitempty"`
}

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

func (m *Information) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *Information) GetVersion() string {
	if m != nil {
		return m.Version
	}
	return ""
}

func (m *Information) GetDescription() string {
	if m != nil {
		return m.Description
	}
	return ""
}

type Bool struct {
	Boolean bool `protobuf:"varint,1,opt,name=Boolean" json:"Boolean,omitempty"`
}

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

func (m *Bool) GetBoolean() bool {
	if m != nil {
		return m.Boolean
	}
	return false
}

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

func (m *Asset) Reset()                    { *m = Asset{} }
func (m *Asset) String() string            { return proto1.CompactTextString(m) }
func (*Asset) ProtoMessage()               {}
func (*Asset) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }

func (m *Asset) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

type Empty struct {
}

func (m *Empty) Reset()                    { *m = Empty{} }
func (m *Empty) String() string            { return proto1.CompactTextString(m) }
func (*Empty) ProtoMessage()               {}
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }

func init() {
	proto1.RegisterType((*Property)(nil), "proto.Property")
	proto1.RegisterType((*Dictionary)(nil), "proto.Dictionary")
	proto1.RegisterType((*Information)(nil), "proto.Information")
	proto1.RegisterType((*Bool)(nil), "proto.Bool")
	proto1.RegisterType((*Asset)(nil), "proto.Asset")
	proto1.RegisterType((*Empty)(nil), "proto.Empty")
}

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

type StrategyClient interface {
	Init(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	Info(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Information, error)
	GetProperty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Dictionary, error)
	SetProperty(ctx context.Context, in *Dictionary, opts ...grpc.CallOption) (*Empty, error)
	// filter for long position
	SellConditions(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error)
	// filter for short position
	BuyConditions(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error)
	// long position priority rank
	RankFilter(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error)
}

type strategyClient struct {
	cc *grpc.ClientConn
}

func NewStrategyClient(cc *grpc.ClientConn) StrategyClient {
	return &strategyClient{cc}
}

func (c *strategyClient) Init(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
	out := new(Empty)
	err := grpc.Invoke(ctx, "/proto.Strategy/Init", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *strategyClient) Info(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Information, error) {
	out := new(Information)
	err := grpc.Invoke(ctx, "/proto.Strategy/Info", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *strategyClient) GetProperty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Dictionary, error) {
	out := new(Dictionary)
	err := grpc.Invoke(ctx, "/proto.Strategy/GetProperty", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *strategyClient) SetProperty(ctx context.Context, in *Dictionary, opts ...grpc.CallOption) (*Empty, error) {
	out := new(Empty)
	err := grpc.Invoke(ctx, "/proto.Strategy/SetProperty", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *strategyClient) SellConditions(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error) {
	out := new(Bool)
	err := grpc.Invoke(ctx, "/proto.Strategy/SellConditions", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *strategyClient) BuyConditions(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error) {
	out := new(Bool)
	err := grpc.Invoke(ctx, "/proto.Strategy/BuyConditions", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *strategyClient) RankFilter(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error) {
	out := new(Bool)
	err := grpc.Invoke(ctx, "/proto.Strategy/RankFilter", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for Strategy service

type StrategyServer interface {
	Init(context.Context, *Empty) (*Empty, error)
	Info(context.Context, *Empty) (*Information, error)
	GetProperty(context.Context, *Empty) (*Dictionary, error)
	SetProperty(context.Context, *Dictionary) (*Empty, error)
	// filter for long position
	SellConditions(context.Context, *Asset) (*Bool, error)
	// filter for short position
	BuyConditions(context.Context, *Asset) (*Bool, error)
	// long position priority rank
	RankFilter(context.Context, *Asset) (*Bool, error)
}

func RegisterStrategyServer(s *grpc.Server, srv StrategyServer) {
	s.RegisterService(&_Strategy_serviceDesc, srv)
}

func _Strategy_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).Init(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/Init",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).Init(ctx, req.(*Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Strategy_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).Info(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/Info",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).Info(ctx, req.(*Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Strategy_GetProperty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).GetProperty(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/GetProperty",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).GetProperty(ctx, req.(*Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Strategy_SetProperty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Dictionary)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).SetProperty(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/SetProperty",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).SetProperty(ctx, req.(*Dictionary))
	}
	return interceptor(ctx, in, info, handler)
}

func _Strategy_SellConditions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Asset)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).SellConditions(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/SellConditions",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).SellConditions(ctx, req.(*Asset))
	}
	return interceptor(ctx, in, info, handler)
}

func _Strategy_BuyConditions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Asset)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).BuyConditions(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/BuyConditions",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).BuyConditions(ctx, req.(*Asset))
	}
	return interceptor(ctx, in, info, handler)
}

func _Strategy_RankFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Asset)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(StrategyServer).RankFilter(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.Strategy/RankFilter",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(StrategyServer).RankFilter(ctx, req.(*Asset))
	}
	return interceptor(ctx, in, info, handler)
}

var _Strategy_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Strategy",
	HandlerType: (*StrategyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _Strategy_Init_Handler,
		},
		{
			MethodName: "Info",
			Handler:    _Strategy_Info_Handler,
		},
		{
			MethodName: "GetProperty",
			Handler:    _Strategy_GetProperty_Handler,
		},
		{
			MethodName: "SetProperty",
			Handler:    _Strategy_SetProperty_Handler,
		},
		{
			MethodName: "SellConditions",
			Handler:    _Strategy_SellConditions_Handler,
		},
		{
			MethodName: "BuyConditions",
			Handler:    _Strategy_BuyConditions_Handler,
		},
		{
			MethodName: "RankFilter",
			Handler:    _Strategy_RankFilter_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strategy.proto",
}

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

var fileDescriptor0 = []byte{
	// 439 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdf, 0x8b, 0xd3, 0x40,
	0x10, 0xc7, 0xd9, 0xb6, 0xf1, 0x92, 0xc9, 0x59, 0x75, 0x9e, 0x42, 0x0f, 0x31, 0x06, 0xc4, 0xa0,
	0xd0, 0x87, 0xfa, 0x22, 0x3e, 0x08, 0xde, 0x2f, 0xe9, 0x83, 0x22, 0x5b, 0xf0, 0x4d, 0x8e, 0x5c,
	0xdd, 0x1e, 0xcb, 0xa5, 0xbb, 0x61, 0x77, 0x2a, 0xec, 0xdf, 0x22, 0xf8, 0x87, 0xf8, 0xd7, 0xc9,
	0x6e, 0x92, 0x5e, 0x7b, 0x15, 0xf1, 0x69, 0x67, 0x66, 0x3f, 0x33, 0x93, 0xef, 0x77, 0x03, 0x63,
	0x4b, 0xa6, 0x22, 0x71, 0xe3, 0xa6, 0x8d, 0xd1, 0xa4, 0x31, 0x0a, 0x47, 0xf1, 0x8b, 0x41, 0xfc,
	0xc5, 0xe8, 0x46, 0x18, 0x72, 0x88, 0x30, 0x22, 0xd7, 0x88, 0x8c, 0xe5, 0xac, 0x4c,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