// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service/cross_open_server_active_task_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 CrossOpenServerActiveTaskGetRuleRequest struct {
	ActivityId           string   `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_CrossOpenServerActiveTaskGetRuleRequest proto.InternalMessageInfo

func (m *CrossOpenServerActiveTaskGetRuleRequest) GetActivityId() string {
	if m != nil {
		return m.ActivityId
	}
	return ""
}

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

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

var xxx_messageInfo_CrossOpenServerActiveTaskGetRuleResponse proto.InternalMessageInfo

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

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

func (m *CrossOpenServerActiveTaskGetRuleResponse) GetData() *CrossOpenServerActiveTaskGetRuleResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

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

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

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

var xxx_messageInfo_CrossOpenServerActiveTaskGetRuleResponse_Data proto.InternalMessageInfo

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

func init() {
	proto.RegisterType((*CrossOpenServerActiveTaskGetRuleRequest)(nil), "proto.CrossOpenServerActiveTaskGetRuleRequest")
	proto.RegisterType((*CrossOpenServerActiveTaskGetRuleResponse)(nil), "proto.CrossOpenServerActiveTaskGetRuleResponse")
	proto.RegisterType((*CrossOpenServerActiveTaskGetRuleResponse_Data)(nil), "proto.CrossOpenServerActiveTaskGetRuleResponse.Data")
}

func init() {
	proto.RegisterFile("service/cross_open_server_active_task_game.proto", fileDescriptor_ae832403477c280e)
}

var fileDescriptor_ae832403477c280e = []byte{
	// 292 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xcf, 0x4a, 0xc4, 0x30,
	0x10, 0xc6, 0xa9, 0x56, 0xc5, 0xe9, 0x2d, 0x08, 0x96, 0x7a, 0x70, 0x59, 0x05, 0xeb, 0xa5, 0x95,
	0xea, 0xc1, 0xa3, 0xa2, 0xe0, 0x9f, 0x8b, 0xd0, 0xf5, 0x1e, 0xb2, 0xed, 0x28, 0xd9, 0xed, 0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, 0x90, 0xdc, 0x41, 0xe8, 0xfe, 0xd8, 0x2d, 0x84, 0xba,
	0x6f, 0x7c, 0x72, 0x54, 0x9c, 0xaf, 0x23, 0x12, 0x8e, 0x26, 0x8a, 0x9f, 0x00, 0x4e, 0xfe, 0xb3,
	0x8c, 0xfc, 0xdb, 0xb3, 0x09, 0x1c, 0x2c, 0xf2, 0x59, 0xb6, 0xf1, 0xa2, 0x74, 0xb9, 0x49, 0xbe,
	0xe5, 0xc1, 0xc6, 0xfb, 0xe4, 0xbf, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xf3, 0x5a, 0xed,
	0x79, 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

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

type openServerActiveTaskServiceClient struct {
	cc *grpc.ClientConn
}

func NewOpenServerActiveTaskServiceClient(cc *grpc.ClientConn) OpenServerActiveTaskServiceClient {
	return &openServerActiveTaskServiceClient{cc}
}

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

// OpenServerActiveTaskServiceServer is the server API for OpenServerActiveTaskService service.
type OpenServerActiveTaskServiceServer interface {
	//动态配置
	GetRule(context.Context, *CrossOpenServerActiveTaskGetRuleRequest) (*CrossOpenServerActiveTaskGetRuleResponse, error)
}

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

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

func RegisterOpenServerActiveTaskServiceServer(s *grpc.Server, srv OpenServerActiveTaskServiceServer) {
	s.RegisterService(&_OpenServerActiveTaskService_serviceDesc, srv)
}

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

var _OpenServerActiveTaskService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.OpenServerActiveTaskService",
	HandlerType: (*OpenServerActiveTaskServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRule",
			Handler:    _OpenServerActiveTaskService_GetRule_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_open_server_active_task_game.proto",
}
