// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service/cross_pass_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 CrossPassGetRulesRequest struct {
	//活动id
	PassId               []string `protobuf:"bytes,1,rep,name=pass_id,json=passId,proto3" json:"pass_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossPassGetRulesRequest proto.InternalMessageInfo

func (m *CrossPassGetRulesRequest) GetPassId() []string {
	if m != nil {
		return m.PassId
	}
	return nil
}

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

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

var xxx_messageInfo_CrossPassGetRulesResponse proto.InternalMessageInfo

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

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

func (m *CrossPassGetRulesResponse) GetData() *CrossPassGetRulesResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

type CrossPassGetRulesResponse_Data struct {
	//所有配置
	PassRule             []*model.CrossPassRule `protobuf:"bytes,1,rep,name=pass_rule,json=passRule,proto3" json:"pass_rule,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

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

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

var xxx_messageInfo_CrossPassGetRulesResponse_Data proto.InternalMessageInfo

func (m *CrossPassGetRulesResponse_Data) GetPassRule() []*model.CrossPassRule {
	if m != nil {
		return m.PassRule
	}
	return nil
}

type CrossPassCheatCreateActivityRequest struct {
	//通行证类型
	PassTyp int32 `protobuf:"zigzag32,1,opt,name=pass_typ,json=passTyp,proto3" json:"pass_typ,omitempty"`
	//区服
	Server []int32 `protobuf:"zigzag32,2,rep,packed,name=server,proto3" json:"server,omitempty"`
	//开始时间
	StartTime int64 `protobuf:"zigzag64,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	//结束
	EndTime              int64    `protobuf:"zigzag64,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossPassCheatCreateActivityRequest proto.InternalMessageInfo

func (m *CrossPassCheatCreateActivityRequest) GetPassTyp() int32 {
	if m != nil {
		return m.PassTyp
	}
	return 0
}

func (m *CrossPassCheatCreateActivityRequest) GetServer() []int32 {
	if m != nil {
		return m.Server
	}
	return nil
}

func (m *CrossPassCheatCreateActivityRequest) GetStartTime() int64 {
	if m != nil {
		return m.StartTime
	}
	return 0
}

func (m *CrossPassCheatCreateActivityRequest) GetEndTime() int64 {
	if m != nil {
		return m.EndTime
	}
	return 0
}

type CrossPassCheatCreateActivityResponse 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossPassCheatCreateActivityResponse proto.InternalMessageInfo

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

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

func init() {
	proto.RegisterType((*CrossPassGetRulesRequest)(nil), "proto.CrossPassGetRulesRequest")
	proto.RegisterType((*CrossPassGetRulesResponse)(nil), "proto.CrossPassGetRulesResponse")
	proto.RegisterType((*CrossPassGetRulesResponse_Data)(nil), "proto.CrossPassGetRulesResponse.Data")
	proto.RegisterType((*CrossPassCheatCreateActivityRequest)(nil), "proto.CrossPassCheatCreateActivityRequest")
	proto.RegisterType((*CrossPassCheatCreateActivityResponse)(nil), "proto.CrossPassCheatCreateActivityResponse")
}

func init() { proto.RegisterFile("service/cross_pass_game.proto", fileDescriptor_c695aa6e395bcc58) }

var fileDescriptor_c695aa6e395bcc58 = []byte{
	// 343 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x41, 0x4b, 0xf3, 0x40,
	0x10, 0x25, 0x6d, 0xbe, 0xb6, 0x99, 0x9e, 0xba, 0x7c, 0xd4, 0xb4, 0x50, 0x0c, 0x51, 0x21, 0xa7,
	0x8a, 0xed, 0xa9, 0x47, 0xa9, 0x20, 0x1e, 0x14, 0x59, 0x7b, 0x14, 0xc2, 0x9a, 0x8c, 0xba, 0xd0,
	0x64, 0xe3, 0xee, 0xb6, 0xd0, 0xbf, 0xe1, 0xbf, 0xf1, 0xdf, 0xc9, 0x4e, 0x5a, 0x11, 0xb1, 0x8a,
	0xa7, 0xcc, 0xcc, 0x9b, 0x79, 0xbc, 0xf7, 0xb2, 0x30, 0x32, 0xa8, 0xd7, 0x32, 0xc3, 0xd3, 0x4c,
	0x2b, 0x63, 0xd2, 0x4a, 0x18, 0x93, 0x3e, 0x89, 0x02, 0xc7, 0x95, 0x56, 0x56, 0xb1, 0x7f, 0xf4,
	0x19, 0xf6, 0x0b, 0x95, 0xe3, 0xf2, 0xd3, 0x4e, 0x0d, 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0x83, 0x3e,
	0x81, 0x6d, 0x2c, 0x73, 0x07, 0xc5, 0x37, 0x70, 0xfc, 0xb3, 0xa6, 0xbf, 0x45, 0x3b, 0xb9, 0x87,
	0xae, 0xa3, 0xba, 0xab, 0x5f, 0x06, 0xbb, 0x86, 0xce, 0x2e, 0x4d, 0x76, 0xb8, 0x3f, 0x67, 0x32,
	0x3e, 0x8c, 0x7e, 0xfb, 0x11, 0x0f, 0x2d, 0x5a, 0x98, 0xbe, 0x07, 0x00, 0x00, 0xff, 0xff, 0x01,
	0xc2, 0x5b, 0x20, 0x7a, 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

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

type passServiceClient struct {
	cc *grpc.ClientConn
}

func NewPassServiceClient(cc *grpc.ClientConn) PassServiceClient {
	return &passServiceClient{cc}
}

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

// PassServiceServer is the server API for PassService service.
type PassServiceServer interface {
	GetRules(context.Context, *CrossPassGetRulesRequest) (*CrossPassGetRulesResponse, error)
}

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

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

func RegisterPassServiceServer(s *grpc.Server, srv PassServiceServer) {
	s.RegisterService(&_PassService_serviceDesc, srv)
}

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

var _PassService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.PassService",
	HandlerType: (*PassServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRules",
			Handler:    _PassService_GetRules_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_pass_game.proto",
}
