// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service/cross_rush_cheat.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 RushCreateDefaultActivityRPCRequest struct {
	ActTyp               int32               `protobuf:"varint,1,opt,name=act_typ,json=actTyp,proto3" json:"act_typ,omitempty"`
	Time                 *model.ActivityTime `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	Server               []int32             `protobuf:"varint,3,rep,packed,name=server,proto3" json:"server,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

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

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

var xxx_messageInfo_RushCreateDefaultActivityRPCRequest proto.InternalMessageInfo

func (m *RushCreateDefaultActivityRPCRequest) GetActTyp() int32 {
	if m != nil {
		return m.ActTyp
	}
	return 0
}

func (m *RushCreateDefaultActivityRPCRequest) GetTime() *model.ActivityTime {
	if m != nil {
		return m.Time
	}
	return nil
}

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

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

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

var xxx_messageInfo_RushCreateDefaultActivityRPCResponse proto.InternalMessageInfo

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

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

func init() {
	proto.RegisterType((*RushCreateDefaultActivityRPCRequest)(nil), "proto.RushCreateDefaultActivityRPCRequest")
	proto.RegisterType((*RushCreateDefaultActivityRPCResponse)(nil), "proto.RushCreateDefaultActivityRPCResponse")
}

func init() { proto.RegisterFile("service/cross_rush_cheat.proto", fileDescriptor_cbd1b966aaff065d) }

var fileDescriptor_cbd1b966aaff065d = []byte{
	// 250 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x4f, 0x4b, 0x03, 0x31,
	0x14, 0xc4, 0x59, 0xdb, 0xae, 0xf8, 0xbc, 0xc8, 0xf3, 0xdf, 0xd2, 0x83, 0x2c, 0x55, 0xb0, 0x28,
	0xb4, 0x50, 0x3f, 0x81, 0xd4, 0xb3, 0x48, 0xec, 0x7d, 0x89, 0xe9, 0x2b, 0x1b, 0xe8, 0x36, 0x31,
	0x79, 0x5b, 0xd8, 0x93, 0x17, 0x3f, 0xb8, 0x24, 0xa9, 0x37, 0x91, 0x3d, 0x65, 0x92, 0x0c, 0x33,
	0x3f, 0x06, 0x6e, 0x3c, 0xb9, 0xbd, 0x56, 0x34, 0x57, 0xce, 0x78, 0x5f, 0xb9, 0xd6, 0xd7, 0x95,
	0xaa, 0x49, 0xf2, 0xcc, 0x3a, 0xc3, 0x06, 0x47, 0xf1, 0x18, 0x5f, 0x34, 0x66, 0x4d, 0xdb, 0xb9,
	0x54, 0xac, 0xf7, 0x9a, 0xbb, 0xf4, 0x39, 0xf9, 0x82, 0x5b, 0xd1, 0xfa, 0x7a, 0xe9, 0x48, 0x32,
	0xbd, 0xd0, 0x46, 0xb6, 0x5b, 0x7e, 0x3e, 0x58, 0xc4, 0xdb, 0x52, 0xd0, 0x67, 0x4b, 0x9e, 0xf1,
	0x1a, 0x8e, 0xa5, 0xe2, 0x8a, 0x3b, 0x5b, 0x64, 0x65, 0x36, 0x1d, 0x89, 0x5c, 0x2a, 0x5e, 0x75,
	0x16, 0xef, 0x61, 0xc8, 0xba, 0xa1, 0xe2, 0xa8, 0xcc, 0xa6, 0xa7, 0x8b, 0xf3, 0x94, 0x3a, 0xfb,
	0x4d, 0x58, 0xe9, 0x86, 0x44, 0x34, 0xe0, 0x15, 0xe4, 0x81, 0x93, 0x5c, 0x31, 0x28, 0x07, 0x21,
	0x20, 0xdd, 0x26, 0xaf, 0x70, 0xf7, 0x3f, 0x80, 0xb7, 0x66, 0xe7, 0x09, 0x11, 0x86, 0xca, 0xac,
	0x29, 0xd6, 0xa3, 0x88, 0x3a, 0xbc, 0xe9, 0xdd, 0xc6, 0xc4, 0xf2, 0x13, 0x11, 0xf5, 0xe2, 0x3b,
	0x83, 0xb3, 0x18, 0x18, 0x16, 0x78, 0x4f, 0xcb, 0xa0, 0x85, 0xcb, 0x3f, 0x0b, 0xf0, 0xe1, 0x00,
	0xdc, 0x63, 0x83, 0xf1, 0x63, 0x2f, 0x6f, 0xc2, 0xfd, 0xc8, 0xa3, 0xf7, 0xe9, 0x27, 0x00, 0x00,
	0xff, 0xff, 0x68, 0x62, 0x62, 0xaa, 0x9d, 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

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

type rushCheatServiceClient struct {
	cc *grpc.ClientConn
}

func NewRushCheatServiceClient(cc *grpc.ClientConn) RushCheatServiceClient {
	return &rushCheatServiceClient{cc}
}

func (c *rushCheatServiceClient) CreateDefaultActivity(ctx context.Context, in *RushCreateDefaultActivityRPCRequest, opts ...grpc.CallOption) (*RushCreateDefaultActivityRPCResponse, error) {
	out := new(RushCreateDefaultActivityRPCResponse)
	err := c.cc.Invoke(ctx, "/proto.RushCheatService/CreateDefaultActivity", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// RushCheatServiceServer is the server API for RushCheatService service.
type RushCheatServiceServer interface {
	CreateDefaultActivity(context.Context, *RushCreateDefaultActivityRPCRequest) (*RushCreateDefaultActivityRPCResponse, error)
}

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

func (*UnimplementedRushCheatServiceServer) CreateDefaultActivity(ctx context.Context, req *RushCreateDefaultActivityRPCRequest) (*RushCreateDefaultActivityRPCResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateDefaultActivity not implemented")
}

func RegisterRushCheatServiceServer(s *grpc.Server, srv RushCheatServiceServer) {
	s.RegisterService(&_RushCheatService_serviceDesc, srv)
}

func _RushCheatService_CreateDefaultActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RushCreateDefaultActivityRPCRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RushCheatServiceServer).CreateDefaultActivity(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.RushCheatService/CreateDefaultActivity",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RushCheatServiceServer).CreateDefaultActivity(ctx, req.(*RushCreateDefaultActivityRPCRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _RushCheatService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.RushCheatService",
	HandlerType: (*RushCheatServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDefaultActivity",
			Handler:    _RushCheatService_CreateDefaultActivity_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_rush_cheat.proto",
}
