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

package proto

import (
	fmt "fmt"
	math "math"
	context "context"
	proto "github.com/golang/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	model "vikingar/proto/gen-go/model"
)

// 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 CrossEnrollGetRuleRequest struct {
	ServerId             int32    `protobuf:"zigzag32,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (m *CrossEnrollGetRuleRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CrossEnrollGetRuleRequest.Unmarshal(m, b)
}
func (m *CrossEnrollGetRuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CrossEnrollGetRuleRequest.Marshal(b, m, deterministic)
}
func (m *CrossEnrollGetRuleRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CrossEnrollGetRuleRequest.Merge(m, src)
}
func (m *CrossEnrollGetRuleRequest) XXX_Size() int {
	return xxx_messageInfo_CrossEnrollGetRuleRequest.Size(m)
}
func (m *CrossEnrollGetRuleRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_CrossEnrollGetRuleRequest.DiscardUnknown(m)
}

var xxx_messageInfo_CrossEnrollGetRuleRequest proto.InternalMessageInfo

func (m *CrossEnrollGetRuleRequest) GetServerId() int32 {
	if m != nil {
		return m.ServerId
	}
	return 0
}

type CrossEnrollGetRuleResponse struct {
	Code                 int64                            `protobuf:"zigzag64,1,opt,name=code,proto3" json:"code,omitempty"`
	Info                 string                           `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	Data                 *CrossEnrollGetRuleResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

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

func (m *CrossEnrollGetRuleResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CrossEnrollGetRuleResponse.Unmarshal(m, b)
}
func (m *CrossEnrollGetRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CrossEnrollGetRuleResponse.Marshal(b, m, deterministic)
}
func (m *CrossEnrollGetRuleResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CrossEnrollGetRuleResponse.Merge(m, src)
}
func (m *CrossEnrollGetRuleResponse) XXX_Size() int {
	return xxx_messageInfo_CrossEnrollGetRuleResponse.Size(m)
}
func (m *CrossEnrollGetRuleResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_CrossEnrollGetRuleResponse.DiscardUnknown(m)
}

var xxx_messageInfo_CrossEnrollGetRuleResponse proto.InternalMessageInfo

func (m *CrossEnrollGetRuleResponse) GetCode() int64 {
	if m != nil {
		return m.Code
	}
	return 0
}

func (m *CrossEnrollGetRuleResponse) GetInfo() string {
	if m != nil {
		return m.Info
	}
	return ""
}

func (m *CrossEnrollGetRuleResponse) GetData() *CrossEnrollGetRuleResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

type CrossEnrollGetRuleResponse_Data struct {
	Rule                 *CrossEnrollRuleInfo `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	Activity             *model.CrossActivity `protobuf:"bytes,2,opt,name=activity,proto3" json:"activity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

func (m *CrossEnrollGetRuleResponse_Data) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CrossEnrollGetRuleResponse_Data.Unmarshal(m, b)
}
func (m *CrossEnrollGetRuleResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CrossEnrollGetRuleResponse_Data.Marshal(b, m, deterministic)
}
func (m *CrossEnrollGetRuleResponse_Data) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CrossEnrollGetRuleResponse_Data.Merge(m, src)
}
func (m *CrossEnrollGetRuleResponse_Data) XXX_Size() int {
	return xxx_messageInfo_CrossEnrollGetRuleResponse_Data.Size(m)
}
func (m *CrossEnrollGetRuleResponse_Data) XXX_DiscardUnknown() {
	xxx_messageInfo_CrossEnrollGetRuleResponse_Data.DiscardUnknown(m)
}

var xxx_messageInfo_CrossEnrollGetRuleResponse_Data proto.InternalMessageInfo

func (m *CrossEnrollGetRuleResponse_Data) GetRule() *CrossEnrollRuleInfo {
	if m != nil {
		return m.Rule
	}
	return nil
}

func (m *CrossEnrollGetRuleResponse_Data) GetActivity() *model.CrossActivity {
	if m != nil {
		return m.Activity
	}
	return nil
}

type CrossEnrollRuleInfo struct {
	WarriorNo            []int32  `protobuf:"zigzag32,1,rep,packed,name=warrior_no,json=warriorNo,proto3" json:"warrior_no,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (m *CrossEnrollRuleInfo) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CrossEnrollRuleInfo.Unmarshal(m, b)
}
func (m *CrossEnrollRuleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CrossEnrollRuleInfo.Marshal(b, m, deterministic)
}
func (m *CrossEnrollRuleInfo) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CrossEnrollRuleInfo.Merge(m, src)
}
func (m *CrossEnrollRuleInfo) XXX_Size() int {
	return xxx_messageInfo_CrossEnrollRuleInfo.Size(m)
}
func (m *CrossEnrollRuleInfo) XXX_DiscardUnknown() {
	xxx_messageInfo_CrossEnrollRuleInfo.DiscardUnknown(m)
}

var xxx_messageInfo_CrossEnrollRuleInfo proto.InternalMessageInfo

func (m *CrossEnrollRuleInfo) GetWarriorNo() []int32 {
	if m != nil {
		return m.WarriorNo
	}
	return nil
}

func init() {
	proto.RegisterType((*CrossEnrollGetRuleRequest)(nil), "proto.CrossEnrollGetRuleRequest")
	proto.RegisterType((*CrossEnrollGetRuleResponse)(nil), "proto.CrossEnrollGetRuleResponse")
	proto.RegisterType((*CrossEnrollGetRuleResponse_Data)(nil), "proto.CrossEnrollGetRuleResponse.Data")
	proto.RegisterType((*CrossEnrollRuleInfo)(nil), "proto.CrossEnrollRuleInfo")
}

func init() { proto.RegisterFile("service/cross_enroll_game.proto", fileDescriptor_ae02bbf4321adad4) }

var fileDescriptor_ae02bbf4321adad4 = []byte{
	// 299 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x51, 0xb1, 0x4e, 0xc3, 0x30,
	0x10, 0x95, 0x69, 0x40, 0xed, 0x55, 0x0c, 0x35, 0x0c, 0xc1, 0x08, 0x11, 0x3a, 0xa0, 0x4c, 0x01,
	0x05, 0x06, 0xc4, 0x86, 0x00, 0xa1, 0x2e, 0x20, 0x99, 0x0f, 0x08, 0x26, 0xb9, 0x82, 0xa5, 0x34,
	0x57, 0x6c, 0xb7, 0x88, 0x5f, 0xe6, 0x2b, 0x50, 0xec, 0x80, 0x90, 0x28, 0x30, 0xf9, 0xfc, 0xfc,
	0xde, 0xbb, 0xbb, 0x67, 0xd8, 0xb7, 0x68, 0x96, 0xba, 0xc4, 0xa3, 0xd2, 0x90, 0xb5, 0x05, 0x36,
	0x86, 0xea, 0xba, 0x78, 0x52, 0x33, 0xcc, 0xe6, 0x86, 0x1c, 0xf1, 0x75, 0x7f, 0x08, 0x31, 0xa3,
	0x0a, 0xeb, 0x8e, 0xa5, 0x4a, 0xa7, 0x97, 0xda, 0xbd, 0x05, 0xca, 0xf8, 0x0c, 0x76, 0x2e, 0x5b,
	0xfc, 0xda, 0x8b, 0x6f, 0xd0, 0xc9, 0x45, 0x8d, 0x12, 0x5f, 0x16, 0x68, 0x1d, 0xdf, 0x85, 0x41,
	0xdb, 0x02, 0x4d, 0xa1, 0xab, 0x98, 0x25, 0x2c, 0x1d, 0xc9, 0x7e, 0x00, 0x26, 0xd5, 0xf8, 0x9d,
	0x81, 0x58, 0x25, 0xb5, 0x73, 0x6a, 0x2c, 0x72, 0x0e, 0x51, 0x49, 0x15, 0x7a, 0x19, 0x97, 0xbe,
	0x6e, 0x31, 0xdd, 0x4c, 0x29, 0x5e, 0x4b, 0x58, 0x3a, 0x90, 0xbe, 0xe6, 0xe7, 0x10, 0x55, 0xca,
	0xa9, 0xb8, 0x97, 0xb0, 0x74, 0x98, 0x1f, 0x86, 0xb1, 0xb2, 0xdf, 0x8d, 0xb3, 0x2b, 0xe5, 0x94,
	0xf4, 0x1a, 0xf1, 0x0c, 0x51, 0x7b, 0xe3, 0x19, 0x44, 0x66, 0x51, 0x87, 0x5e, 0xc3, 0x5c, 0xfc,
	0xf4, 0x68, 0x0d, 0x26, 0xcd, 0x94, 0xa4, 0xe7, 0xf1, 0x63, 0xe8, 0x7f, 0xc6, 0xe0, 0x67, 0x19,
	0xe6, 0xdb, 0xdf, 0x35, 0x17, 0xdd, 0x9b, 0xfc, 0x62, 0x8d, 0x4f, 0x61, 0x6b, 0x85, 0x1d, 0xdf,
	0x03, 0x78, 0x55, 0xc6, 0x68, 0x32, 0x45, 0x43, 0x31, 0x4b, 0x7a, 0xe9, 0x48, 0x0e, 0x3a, 0xe4,
	0x96, 0xf2, 0x07, 0xd8, 0x0c, 0x82, 0xfb, 0xf0, 0x51, 0xfc, 0x0e, 0xfa, 0xdd, 0x3a, 0x96, 0x27,
	0x7f, 0xac, 0xea, 0xe3, 0x17, 0x07, 0xff, 0x86, 0xf1, 0xb8, 0xe1, 0x19, 0x27, 0x1f, 0x01, 0x00,
	0x00, 0xff, 0xff, 0xb4, 0x6e, 0x4b, 0x82, 0x0b, 0x02, 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

// EnrollServiceClient is the client API for EnrollService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type EnrollServiceClient interface {
	GetRules(ctx context.Context, in *CrossEnrollGetRuleRequest, opts ...grpc.CallOption) (*CrossEnrollGetRuleResponse, error)
}

type enrollServiceClient struct {
	cc *grpc.ClientConn
}

func NewEnrollServiceClient(cc *grpc.ClientConn) EnrollServiceClient {
	return &enrollServiceClient{cc}
}

func (c *enrollServiceClient) GetRules(ctx context.Context, in *CrossEnrollGetRuleRequest, opts ...grpc.CallOption) (*CrossEnrollGetRuleResponse, error) {
	out := new(CrossEnrollGetRuleResponse)
	err := c.cc.Invoke(ctx, "/proto.EnrollService/GetRules", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// EnrollServiceServer is the server API for EnrollService service.
type EnrollServiceServer interface {
	GetRules(context.Context, *CrossEnrollGetRuleRequest) (*CrossEnrollGetRuleResponse, error)
}

// UnimplementedEnrollServiceServer can be embedded to have forward compatible implementations.
type UnimplementedEnrollServiceServer struct {
}

func (*UnimplementedEnrollServiceServer) GetRules(ctx context.Context, req *CrossEnrollGetRuleRequest) (*CrossEnrollGetRuleResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRules not implemented")
}

func RegisterEnrollServiceServer(s *grpc.Server, srv EnrollServiceServer) {
	s.RegisterService(&_EnrollService_serviceDesc, srv)
}

func _EnrollService_GetRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CrossEnrollGetRuleRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(EnrollServiceServer).GetRules(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.EnrollService/GetRules",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(EnrollServiceServer).GetRules(ctx, req.(*CrossEnrollGetRuleRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _EnrollService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.EnrollService",
	HandlerType: (*EnrollServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRules",
			Handler:    _EnrollService_GetRules_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_enroll_game.proto",
}
