// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service/cross_redeem_code_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 CrossRedeemCodeGetAwardRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossRedeemCodeGetAwardRequest proto.InternalMessageInfo

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

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

var xxx_messageInfo_CrossRedeemCodeGetAwardResponse proto.InternalMessageInfo

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

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

func (m *CrossRedeemCodeGetAwardResponse) GetData() *CrossRedeemCodeGetAwardResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

type CrossRedeemCodeGetAwardResponse_Data struct {
	Award                []*model.CrossRedeemCodeAward `protobuf:"bytes,1,rep,name=award,proto3" json:"award,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

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

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

var xxx_messageInfo_CrossRedeemCodeGetAwardResponse_Data proto.InternalMessageInfo

func (m *CrossRedeemCodeGetAwardResponse_Data) GetAward() []*model.CrossRedeemCodeAward {
	if m != nil {
		return m.Award
	}
	return nil
}

func init() {
	proto.RegisterType((*CrossRedeemCodeGetAwardRequest)(nil), "proto.CrossRedeemCodeGetAwardRequest")
	proto.RegisterType((*CrossRedeemCodeGetAwardResponse)(nil), "proto.CrossRedeemCodeGetAwardResponse")
	proto.RegisterType((*CrossRedeemCodeGetAwardResponse_Data)(nil), "proto.CrossRedeemCodeGetAwardResponse.Data")
}

func init() {
	proto.RegisterFile("service/cross_redeem_code_game.proto", fileDescriptor_e349ba2eae87c49f)
}

var fileDescriptor_e349ba2eae87c49f = []byte{
	// 236 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4b, 0x04, 0x31,
	0x10, 0x85, 0x89, 0xb7, 0x27, 0x3a, 0x57, 0x39, 0x55, 0x58, 0x51, 0xc3, 0xa1, 0x12, 0x10, 0x56,
	0x5c, 0x2b, 0x2b, 0x91, 0x13, 0xec, 0x63, 0x65, 0xb5, 0xc4, 0xcd, 0x28, 0x07, 0xee, 0xce, 0x99,
	0x44, 0xfd, 0x85, 0xfe, 0x2f, 0x49, 0x82, 0x58, 0xa8, 0xdc, 0x55, 0x99, 0xe4, 0x7d, 0x79, 0xf3,
	0x78, 0x70, 0x1c, 0xc8, 0xbf, 0x2f, 0x7b, 0x3a, 0xef, 0x3d, 0x87, 0xd0, 0x79, 0x72, 0x44, 0x43,
	0xd7, 0xb3, 0xa3, 0xee, 0xd9, 0x0e, 0xd4, 0xac, 0x3c, 0x47, 0xc6, 0x69, 0x3e, 0xea, 0x83, 0x81,
	0x1d, 0xbd, 0xfc, 0x46, 0x0b, 0x35, 0x57, 0x70, 0xb8, 0x48, 0x92, 0xc9, 0xca, 0x82, 0x1d, 0xdd,
	0x51, 0xbc, 0xf9, 0xb0, 0xde, 0x19, 0x7a, 0x7d, 0xa3, 0x10, 0xe7, 0x9f, 0x02, 0x8e, 0xfe, 0x45,
	0xc2, 0x8a, 0xc7, 0x40, 0x88, 0x50, 0x25, 0x4f, 0x29, 0x94, 0xd0, 0x68, 0xf2, 0x9c, 0xde, 0x96,
	0xe3, 0x13, 0xcb, 0x2d, 0x25, 0xf4, 0xae, 0xc9, 0x33, 0x5e, 0x43, 0xe5, 0x6c, 0xb4, 0x72, 0xa2,
	0x84, 0x9e, 0xb5, 0x67, 0x25, 0x43, 0xb3, 0xc6, 0xbd, 0xb9, 0xb5, 0xd1, 0x9a, 0xfc, 0xb1, 0xbe,
	0x82, 0x2a, 0xdd, 0xf0, 0x02, 0xa6, 0x36, 0x31, 0x52, 0xa8, 0x89, 0x9e, 0xb5, 0xfb, 0x7f, 0x3b,
	0x15, 0x9b, 0x42, 0xb6, 0x23, 0xec, 0xfd, 0x28, 0xf7, 0xa5, 0x41, 0x7c, 0x80, 0x9d, 0xef, 0x75,
	0x78, 0xb2, 0x2e, 0x4e, 0xee, 0xa3, 0x3e, 0xdd, 0x2c, 0xf5, 0xe3, 0x76, 0xc6, 0x2e, 0xbf, 0x02,
	0x00, 0x00, 0xff, 0xff, 0x38, 0xd7, 0x59, 0x11, 0xae, 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

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

type redeemCodeServiceClient struct {
	cc *grpc.ClientConn
}

func NewRedeemCodeServiceClient(cc *grpc.ClientConn) RedeemCodeServiceClient {
	return &redeemCodeServiceClient{cc}
}

func (c *redeemCodeServiceClient) GetAward(ctx context.Context, in *CrossRedeemCodeGetAwardRequest, opts ...grpc.CallOption) (*CrossRedeemCodeGetAwardResponse, error) {
	out := new(CrossRedeemCodeGetAwardResponse)
	err := c.cc.Invoke(ctx, "/proto.RedeemCodeService/GetAward", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// RedeemCodeServiceServer is the server API for RedeemCodeService service.
type RedeemCodeServiceServer interface {
	GetAward(context.Context, *CrossRedeemCodeGetAwardRequest) (*CrossRedeemCodeGetAwardResponse, error)
}

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

func (*UnimplementedRedeemCodeServiceServer) GetAward(ctx context.Context, req *CrossRedeemCodeGetAwardRequest) (*CrossRedeemCodeGetAwardResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetAward not implemented")
}

func RegisterRedeemCodeServiceServer(s *grpc.Server, srv RedeemCodeServiceServer) {
	s.RegisterService(&_RedeemCodeService_serviceDesc, srv)
}

func _RedeemCodeService_GetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CrossRedeemCodeGetAwardRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RedeemCodeServiceServer).GetAward(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.RedeemCodeService/GetAward",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RedeemCodeServiceServer).GetAward(ctx, req.(*CrossRedeemCodeGetAwardRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _RedeemCodeService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.RedeemCodeService",
	HandlerType: (*RedeemCodeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAward",
			Handler:    _RedeemCodeService_GetAward_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_redeem_code_game.proto",
}
