// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service/cross_white_list_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"
)

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

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

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

var xxx_messageInfo_CrossWhiteListGetAllRequest proto.InternalMessageInfo

//获取所有白名单
type CrossWhiteListGetAllResponse 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                 *CrossWhiteListGetAllResponse_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 *CrossWhiteListGetAllResponse) Reset()         { *m = CrossWhiteListGetAllResponse{} }
func (m *CrossWhiteListGetAllResponse) String() string { return proto.CompactTextString(m) }
func (*CrossWhiteListGetAllResponse) ProtoMessage()    {}
func (*CrossWhiteListGetAllResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_8d9355075e130eac, []int{1}
}

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

var xxx_messageInfo_CrossWhiteListGetAllResponse proto.InternalMessageInfo

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

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

func (m *CrossWhiteListGetAllResponse) GetData() *CrossWhiteListGetAllResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

type CrossWhiteListGetAllResponse_Data struct {
	DeviceId             []string `protobuf:"bytes,1,rep,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossWhiteListGetAllResponse_Data proto.InternalMessageInfo

func (m *CrossWhiteListGetAllResponse_Data) GetDeviceId() []string {
	if m != nil {
		return m.DeviceId
	}
	return nil
}

func init() {
	proto.RegisterType((*CrossWhiteListGetAllRequest)(nil), "proto.CrossWhiteListGetAllRequest")
	proto.RegisterType((*CrossWhiteListGetAllResponse)(nil), "proto.CrossWhiteListGetAllResponse")
	proto.RegisterType((*CrossWhiteListGetAllResponse_Data)(nil), "proto.CrossWhiteListGetAllResponse.Data")
}

func init() {
	proto.RegisterFile("service/cross_white_list_game.proto", fileDescriptor_8d9355075e130eac)
}

var fileDescriptor_8d9355075e130eac = []byte{
	// 227 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x50, 0xc1, 0x4a, 0xc4, 0x30,
	0x10, 0x25, 0x6e, 0x5d, 0xec, 0x78, 0x91, 0x39, 0x95, 0x5d, 0x85, 0xd2, 0x5e, 0x72, 0xaa, 0xb0,
	0x5e, 0xbd, 0x88, 0x82, 0x08, 0x5e, 0x8c, 0x07, 0x8f, 0x25, 0x36, 0xa3, 0x06, 0xea, 0x66, 0xed,
	0x8c, 0xfa, 0x4d, 0xfe, 0xa5, 0x24, 0x01, 0x4f, 0x52, 0xf6, 0x94, 0x97, 0x97, 0x97, 0x37, 0xef,
	0x0d, 0xb4, 0x4c, 0xd3, 0x97, 0x1f, 0xe8, 0x7c, 0x98, 0x02, 0x73, 0xff, 0xfd, 0xe6, 0x85, 0xfa,
	0xd1, 0xb3, 0xf4, 0xaf, 0xf6, 0x9d, 0xba, 0xdd, 0x14, 0x24, 0xe0, 0x61, 0x3a, 0x9a, 0x33, 0x58,
	0x5f, 0x47, 0xd5, 0x53, 0x14, 0xdd, 0x7b, 0x96, 0x5b, 0x92, 0xab, 0x71, 0x34, 0xf4, 0xf1, 0x49,
	0x2c, 0xcd, 0x8f, 0x82, 0xd3, 0xff, 0xdf, 0x79, 0x17, 0xb6, 0x4c, 0x88, 0x50, 0x0c, 0xc1, 0x51,
	0xa5, 0x6a, 0xa5, 0xd1, 0x24, 0x1c, 0x39, 0xbf, 0x7d, 0x09, 0xd5, 0x41, 0xad, 0x74, 0x69, 0x12,
	0xc6, 0x4b, 0x28, 0x9c, 0x15, 0x5b, 0x2d, 0x6a, 0xa5, 0x8f, 0x37, 0x3a, 0x87, 0xe8, 0xe6, 0xac,
	0xbb, 0x1b, 0x2b, 0xd6, 0xa4, 0x5f, 0xab, 0x16, 0x8a, 0x78, 0xc3, 0x35, 0x94, 0x8e, 0x62, 0xb5,
	0xde, 0xbb, 0x4a, 0xd5, 0x0b, 0x5d, 0x9a, 0xa3, 0x4c, 0xdc, 0xb9, 0x0d, 0xc1, 0xc9, 0x9f, 0xd5,
	0x63, 0xde, 0x00, 0x3e, 0xc0, 0x32, 0xbb, 0x62, 0x33, 0x3b, 0x32, 0xb5, 0x5d, 0xb5, 0x7b, 0xc4,
	0x7a, 0x5e, 0x26, 0xcd, 0xc5, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x65, 0x0a, 0x8f, 0x66,
	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

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

type whiteListServiceClient struct {
	cc *grpc.ClientConn
}

func NewWhiteListServiceClient(cc *grpc.ClientConn) WhiteListServiceClient {
	return &whiteListServiceClient{cc}
}

func (c *whiteListServiceClient) GetAll(ctx context.Context, in *CrossWhiteListGetAllRequest, opts ...grpc.CallOption) (*CrossWhiteListGetAllResponse, error) {
	out := new(CrossWhiteListGetAllResponse)
	err := c.cc.Invoke(ctx, "/proto.WhiteListService/GetAll", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// WhiteListServiceServer is the server API for WhiteListService service.
type WhiteListServiceServer interface {
	GetAll(context.Context, *CrossWhiteListGetAllRequest) (*CrossWhiteListGetAllResponse, error)
}

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

func (*UnimplementedWhiteListServiceServer) GetAll(ctx context.Context, req *CrossWhiteListGetAllRequest) (*CrossWhiteListGetAllResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetAll not implemented")
}

func RegisterWhiteListServiceServer(s *grpc.Server, srv WhiteListServiceServer) {
	s.RegisterService(&_WhiteListService_serviceDesc, srv)
}

func _WhiteListService_GetAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CrossWhiteListGetAllRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WhiteListServiceServer).GetAll(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.WhiteListService/GetAll",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WhiteListServiceServer).GetAll(ctx, req.(*CrossWhiteListGetAllRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _WhiteListService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.WhiteListService",
	HandlerType: (*WhiteListServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAll",
			Handler:    _WhiteListService_GetAll_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_white_list_game.proto",
}
