// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.23.0
// 	protoc        v3.13.0
// source: service/cross_refund_game.proto

package proto

import (
	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"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4

//获取退款惩罚规则配置
type RefundGetRuleRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

func (x *RefundGetRuleRequest) Reset() {
	*x = RefundGetRuleRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_service_cross_refund_game_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *RefundGetRuleRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RefundGetRuleRequest) ProtoMessage() {}

func (x *RefundGetRuleRequest) ProtoReflect() protoreflect.Message {
	mi := &file_service_cross_refund_game_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use RefundGetRuleRequest.ProtoReflect.Descriptor instead.
func (*RefundGetRuleRequest) Descriptor() ([]byte, []int) {
	return file_service_cross_refund_game_proto_rawDescGZIP(), []int{0}
}

type RefundGetRuleResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	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 *RefundGetRuleResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func (x *RefundGetRuleResponse) Reset() {
	*x = RefundGetRuleResponse{}
	if protoimpl.UnsafeEnabled {
		mi := &file_service_cross_refund_game_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *RefundGetRuleResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RefundGetRuleResponse) ProtoMessage() {}

func (x *RefundGetRuleResponse) ProtoReflect() protoreflect.Message {
	mi := &file_service_cross_refund_game_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use RefundGetRuleResponse.ProtoReflect.Descriptor instead.
func (*RefundGetRuleResponse) Descriptor() ([]byte, []int) {
	return file_service_cross_refund_game_proto_rawDescGZIP(), []int{1}
}

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

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

func (x *RefundGetRuleResponse) GetData() *RefundGetRuleResponse_Data {
	if x != nil {
		return x.Data
	}
	return nil
}

type RefundGetRuleResponse_Data struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	MinRefundTotalRecharge float32 `protobuf:"fixed32,1,opt,name=min_refund_total_recharge,json=minRefundTotalRecharge,proto3" json:"min_refund_total_recharge,omitempty"`
	MaxRefundTotalRecharge float32 `protobuf:"fixed32,2,opt,name=max_refund_total_recharge,json=maxRefundTotalRecharge,proto3" json:"max_refund_total_recharge,omitempty"`
	MinRefundNums          int32   `protobuf:"varint,3,opt,name=min_refund_nums,json=minRefundNums,proto3" json:"min_refund_nums,omitempty"`
	MaxRefundNums          int32   `protobuf:"varint,4,opt,name=max_refund_nums,json=maxRefundNums,proto3" json:"max_refund_nums,omitempty"`
	Status                 int32   `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
}

func (x *RefundGetRuleResponse_Data) Reset() {
	*x = RefundGetRuleResponse_Data{}
	if protoimpl.UnsafeEnabled {
		mi := &file_service_cross_refund_game_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *RefundGetRuleResponse_Data) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RefundGetRuleResponse_Data) ProtoMessage() {}

func (x *RefundGetRuleResponse_Data) ProtoReflect() protoreflect.Message {
	mi := &file_service_cross_refund_game_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use RefundGetRuleResponse_Data.ProtoReflect.Descriptor instead.
func (*RefundGetRuleResponse_Data) Descriptor() ([]byte, []int) {
	return file_service_cross_refund_game_proto_rawDescGZIP(), []int{1, 0}
}

func (x *RefundGetRuleResponse_Data) GetMinRefundTotalRecharge() float32 {
	if x != nil {
		return x.MinRefundTotalRecharge
	}
	return 0
}

func (x *RefundGetRuleResponse_Data) GetMaxRefundTotalRecharge() float32 {
	if x != nil {
		return x.MaxRefundTotalRecharge
	}
	return 0
}

func (x *RefundGetRuleResponse_Data) GetMinRefundNums() int32 {
	if x != nil {
		return x.MinRefundNums
	}
	return 0
}

func (x *RefundGetRuleResponse_Data) GetMaxRefundNums() int32 {
	if x != nil {
		return x.MaxRefundNums
	}
	return 0
}

func (x *RefundGetRuleResponse_Data) GetStatus() int32 {
	if x != nil {
		return x.Status
	}
	return 0
}

var File_service_cross_refund_game_proto protoreflect.FileDescriptor

var file_service_cross_refund_game_proto_rawDesc = []byte{
	0x0a, 0x1f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f,
	0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
	0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x66, 0x75,
	0x6e, 0x64, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
	0x22, 0xdd, 0x02, 0x0a, 0x15, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x52, 0x75,
	0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
	0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12,
	0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e,
	0x66, 0x6f, 0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
	0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x47,
	0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44,
	0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0xe4, 0x01, 0x0a, 0x04, 0x44, 0x61,
	0x74, 0x61, 0x12, 0x39, 0x0a, 0x19, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64,
	0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x18,
	0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x16, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
	0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x39, 0x0a,
	0x19, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x74, 0x61,
	0x6c, 0x5f, 0x72, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02,
	0x52, 0x16, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x74, 0x61, 0x6c,
	0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f,
	0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
	0x05, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x75, 0x6d, 0x73,
	0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x6e,
	0x75, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x52, 0x65,
	0x66, 0x75, 0x6e, 0x64, 0x4e, 0x75, 0x6d, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
	0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
	0x32, 0x56, 0x0a, 0x0d, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
	0x65, 0x12, 0x45, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x1b, 0x2e,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x52,
	0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65,
	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_service_cross_refund_game_proto_rawDescOnce sync.Once
	file_service_cross_refund_game_proto_rawDescData = file_service_cross_refund_game_proto_rawDesc
)

func file_service_cross_refund_game_proto_rawDescGZIP() []byte {
	file_service_cross_refund_game_proto_rawDescOnce.Do(func() {
		file_service_cross_refund_game_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_cross_refund_game_proto_rawDescData)
	})
	return file_service_cross_refund_game_proto_rawDescData
}

var file_service_cross_refund_game_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_service_cross_refund_game_proto_goTypes = []interface{}{
	(*RefundGetRuleRequest)(nil),       // 0: proto.RefundGetRuleRequest
	(*RefundGetRuleResponse)(nil),      // 1: proto.RefundGetRuleResponse
	(*RefundGetRuleResponse_Data)(nil), // 2: proto.RefundGetRuleResponse.Data
}
var file_service_cross_refund_game_proto_depIdxs = []int32{
	2, // 0: proto.RefundGetRuleResponse.data:type_name -> proto.RefundGetRuleResponse.Data
	0, // 1: proto.RefundService.GetRules:input_type -> proto.RefundGetRuleRequest
	1, // 2: proto.RefundService.GetRules:output_type -> proto.RefundGetRuleResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_service_cross_refund_game_proto_init() }
func file_service_cross_refund_game_proto_init() {
	if File_service_cross_refund_game_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_service_cross_refund_game_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*RefundGetRuleRequest); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_service_cross_refund_game_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*RefundGetRuleResponse); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_service_cross_refund_game_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*RefundGetRuleResponse_Data); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_service_cross_refund_game_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_service_cross_refund_game_proto_goTypes,
		DependencyIndexes: file_service_cross_refund_game_proto_depIdxs,
		MessageInfos:      file_service_cross_refund_game_proto_msgTypes,
	}.Build()
	File_service_cross_refund_game_proto = out.File
	file_service_cross_refund_game_proto_rawDesc = nil
	file_service_cross_refund_game_proto_goTypes = nil
	file_service_cross_refund_game_proto_depIdxs = nil
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface

// 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.SupportPackageIsVersion6

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

type refundServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewRefundServiceClient(cc grpc.ClientConnInterface) RefundServiceClient {
	return &refundServiceClient{cc}
}

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

// RefundServiceServer is the server API for RefundService service.
type RefundServiceServer interface {
	GetRules(context.Context, *RefundGetRuleRequest) (*RefundGetRuleResponse, error)
}

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

func (*UnimplementedRefundServiceServer) GetRules(context.Context, *RefundGetRuleRequest) (*RefundGetRuleResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRules not implemented")
}

func RegisterRefundServiceServer(s *grpc.Server, srv RefundServiceServer) {
	s.RegisterService(&_RefundService_serviceDesc, srv)
}

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

var _RefundService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.RefundService",
	HandlerType: (*RefundServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRules",
			Handler:    _RefundService_GetRules_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_refund_game.proto",
}
