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

package proto

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"
	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 CrossMysteryShopGetRuleRequest struct {
	CrossPhase           int32    `protobuf:"zigzag32,1,opt,name=cross_phase,json=crossPhase,proto3" json:"cross_phase,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossMysteryShopGetRuleRequest proto.InternalMessageInfo

func (m *CrossMysteryShopGetRuleRequest) GetCrossPhase() int32 {
	if m != nil {
		return m.CrossPhase
	}
	return 0
}

type CrossMysteryShopGetRuleResponse 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                 *CrossMysteryShopGetRuleResponse_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 *CrossMysteryShopGetRuleResponse) Reset()         { *m = CrossMysteryShopGetRuleResponse{} }
func (m *CrossMysteryShopGetRuleResponse) String() string { return proto.CompactTextString(m) }
func (*CrossMysteryShopGetRuleResponse) ProtoMessage()    {}
func (*CrossMysteryShopGetRuleResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_08d8afd40d900697, []int{1}
}

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

var xxx_messageInfo_CrossMysteryShopGetRuleResponse proto.InternalMessageInfo

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

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

func (m *CrossMysteryShopGetRuleResponse) GetData() *CrossMysteryShopGetRuleResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

type CrossMysteryShopGetRuleResponse_Data struct {
	Rule                 *model.CrossMysteryShopRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

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

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

var xxx_messageInfo_CrossMysteryShopGetRuleResponse_Data proto.InternalMessageInfo

func (m *CrossMysteryShopGetRuleResponse_Data) GetRule() *model.CrossMysteryShopRule {
	if m != nil {
		return m.Rule
	}
	return nil
}

func init() {
	proto.RegisterType((*CrossMysteryShopGetRuleRequest)(nil), "proto.CrossMysteryShopGetRuleRequest")
	proto.RegisterType((*CrossMysteryShopGetRuleResponse)(nil), "proto.CrossMysteryShopGetRuleResponse")
	proto.RegisterType((*CrossMysteryShopGetRuleResponse_Data)(nil), "proto.CrossMysteryShopGetRuleResponse.Data")
}

func init() {
	proto.RegisterFile("service/cross_mystery_shop_game.proto", fileDescriptor_08d8afd40d900697)
}

var fileDescriptor_08d8afd40d900697 = []byte{
	// 252 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x50, 0xcd, 0x4a, 0xc3, 0x40,
	0x10, 0x66, 0x35, 0x2a, 0x4e, 0x4e, 0xce, 0x29, 0x44, 0x68, 0x43, 0xa1, 0x12, 0x10, 0x52, 0x88,
	0x07, 0x8f, 0x22, 0x0a, 0x9e, 0x04, 0xd9, 0x5e, 0xbc, 0x85, 0x35, 0x19, 0x4d, 0x21, 0xc9, 0xae,
	0xbb, 0x1b, 0xa1, 0xcf, 0xe7, 0x8b, 0x49, 0x66, 0x3d, 0x78, 0xb0, 0xb4, 0xa7, 0x9d, 0xfd, 0xfe,
	0xe6, 0x63, 0x60, 0xe9, 0xc8, 0x7e, 0x6d, 0x6a, 0x5a, 0xd5, 0x56, 0x3b, 0x57, 0xf5, 0x5b, 0xe7,
	0xc9, 0x6e, 0x2b, 0xd7, 0x6a, 0x53, 0x7d, 0xa8, 0x9e, 0x0a, 0x63, 0xb5, 0xd7, 0x78, 0xc2, 0x4f,
	0x3a, 0xeb, 0x75, 0x43, 0xdd, 0x3f, 0xda, 0x20, 0x5b, 0xdc, 0xc3, 0xec, 0x61, 0xe2, 0x9e, 0x03,
	0xb5, 0x6e, 0xb5, 0x79, 0x22, 0x2f, 0xc7, 0x8e, 0x24, 0x7d, 0x8e, 0xe4, 0x3c, 0xce, 0x21, 0x0e,
	0x6e, 0xd3, 0x2a, 0x47, 0x89, 0xc8, 0x44, 0x7e, 0x21, 0x81, 0xa1, 0x97, 0x09, 0x59, 0x7c, 0x0b,
	0x98, 0xef, 0xcc, 0x70, 0x46, 0x0f, 0x8e, 0x10, 0x21, 0xaa, 0x75, 0x13, 0xdc, 0x28, 0x79, 0x9e,
	0xb0, 0xcd, 0xf0, 0xae, 0x93, 0xa3, 0x4c, 0xe4, 0xe7, 0x92, 0x67, 0xbc, 0x83, 0xa8, 0x51, 0x5e,
	0x25, 0xc7, 0x99, 0xc8, 0xe3, 0xf2, 0x3a, 0x94, 0x2c, 0xf6, 0xa4, 0x17, 0x8f, 0xca, 0x2b, 0xc9,
	0xc6, 0xf4, 0x16, 0xa2, 0xe9, 0x87, 0x2b, 0x88, 0xec, 0xd8, 0x85, 0x85, 0x71, 0x79, 0xb9, 0x23,
	0x88, 0x53, 0x58, 0x58, 0x0e, 0x80, 0x7f, 0x88, 0x75, 0xb8, 0x31, 0xbe, 0xc2, 0xd9, 0xef, 0x32,
	0x5c, 0xee, 0x2b, 0xc3, 0xe7, 0x4a, 0xaf, 0x0e, 0xeb, 0xfc, 0x76, 0xca, 0xb2, 0x9b, 0x9f, 0x00,
	0x00, 0x00, 0xff, 0xff, 0xfe, 0x8f, 0xd9, 0xd7, 0xcf, 0x01, 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

// MysteryShopServiceClient is the client API for MysteryShopService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MysteryShopServiceClient interface {
	//动态配置
	GetRule(ctx context.Context, in *CrossMysteryShopGetRuleRequest, opts ...grpc.CallOption) (*CrossMysteryShopGetRuleResponse, error)
}

type mysteryShopServiceClient struct {
	cc *grpc.ClientConn
}

func NewMysteryShopServiceClient(cc *grpc.ClientConn) MysteryShopServiceClient {
	return &mysteryShopServiceClient{cc}
}

func (c *mysteryShopServiceClient) GetRule(ctx context.Context, in *CrossMysteryShopGetRuleRequest, opts ...grpc.CallOption) (*CrossMysteryShopGetRuleResponse, error) {
	out := new(CrossMysteryShopGetRuleResponse)
	err := c.cc.Invoke(ctx, "/proto.MysteryShopService/GetRule", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// MysteryShopServiceServer is the server API for MysteryShopService service.
type MysteryShopServiceServer interface {
	//动态配置
	GetRule(context.Context, *CrossMysteryShopGetRuleRequest) (*CrossMysteryShopGetRuleResponse, error)
}

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

func (*UnimplementedMysteryShopServiceServer) GetRule(ctx context.Context, req *CrossMysteryShopGetRuleRequest) (*CrossMysteryShopGetRuleResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRule not implemented")
}

func RegisterMysteryShopServiceServer(s *grpc.Server, srv MysteryShopServiceServer) {
	s.RegisterService(&_MysteryShopService_serviceDesc, srv)
}

func _MysteryShopService_GetRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CrossMysteryShopGetRuleRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MysteryShopServiceServer).GetRule(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.MysteryShopService/GetRule",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MysteryShopServiceServer).GetRule(ctx, req.(*CrossMysteryShopGetRuleRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _MysteryShopService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.MysteryShopService",
	HandlerType: (*MysteryShopServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRule",
			Handler:    _MysteryShopService_GetRule_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_mystery_shop_game.proto",
}
