// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service/cross_hieron_game.proto

package proto

import (
	context "context"
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	math "math"
	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 HieronServiceGetConfigsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_HieronServiceGetConfigsRequest proto.InternalMessageInfo

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

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

var xxx_messageInfo_HieronServiceGetConfigsResponse proto.InternalMessageInfo

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

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

func (m *HieronServiceGetConfigsResponse) GetData() *HieronServiceGetConfigsResponse_Data {
	if m != nil {
		return m.Data
	}
	return nil
}

type HieronServiceGetConfigsResponse_Data struct {
	Config               []*model.HieronScoreStoreConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

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

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

var xxx_messageInfo_HieronServiceGetConfigsResponse_Data proto.InternalMessageInfo

func (m *HieronServiceGetConfigsResponse_Data) GetConfig() []*model.HieronScoreStoreConfig {
	if m != nil {
		return m.Config
	}
	return nil
}

func init() {
	proto.RegisterType((*HieronServiceGetConfigsRequest)(nil), "proto.HieronServiceGetConfigsRequest")
	proto.RegisterType((*HieronServiceGetConfigsResponse)(nil), "proto.HieronServiceGetConfigsResponse")
	proto.RegisterType((*HieronServiceGetConfigsResponse_Data)(nil), "proto.HieronServiceGetConfigsResponse.Data")
}

func init() { proto.RegisterFile("service/cross_hieron_game.proto", fileDescriptor_f9ad13125acbe21b) }

var fileDescriptor_f9ad13125acbe21b = []byte{
	// 236 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xc1, 0x4a, 0x03, 0x31,
	0x10, 0x86, 0x89, 0x5d, 0x0b, 0x4e, 0xf1, 0x32, 0xa7, 0xb0, 0xa0, 0x0d, 0x05, 0x65, 0x41, 0x58,
	0x61, 0xc5, 0xa3, 0x78, 0x50, 0xd0, 0x73, 0x7a, 0xf4, 0x50, 0x62, 0x76, 0x5a, 0x17, 0xda, 0x9d,
	0x9a, 0x44, 0xdf, 0xd1, 0xb7, 0x92, 0x4e, 0x04, 0xd9, 0x83, 0xac, 0xa7, 0xcc, 0x84, 0x2f, 0xdf,
	0xff, 0x13, 0x98, 0x47, 0x0a, 0x9f, 0x9d, 0xa7, 0x6b, 0x1f, 0x38, 0xc6, 0xd5, 0x5b, 0x47, 0x81,
	0xfb, 0xd5, 0xc6, 0xed, 0xa8, 0xde, 0x07, 0x4e, 0x8c, 0xc7, 0x72, 0x94, 0x7a, 0xc7, 0x2d, 0x6d,
	0x07, 0x54, 0x06, 0x16, 0x06, 0xce, 0x9f, 0x65, 0x5f, 0x66, 0xd3, 0x13, 0xa5, 0x07, 0xee, 0xd7,
	0xdd, 0x26, 0x5a, 0x7a, 0xff, 0xa0, 0x98, 0x16, 0x5f, 0x0a, 0xe6, 0x7f, 0x22, 0x71, 0xcf, 0x7d,
	0x24, 0x44, 0x28, 0x3c, 0xb7, 0xa4, 0x95, 0x51, 0x15, 0x5a, 0x99, 0x0f, 0x77, 0x5d, 0xbf, 0x66,
	0x7d, 0x64, 0x54, 0x75, 0x62, 0x65, 0xc6, 0x7b, 0x28, 0x5a, 0x97, 0x9c, 0x9e, 0x18, 0x55, 0xcd,
	0x9a, 0xab, 0xdc, 0xa1, 0x1e, 0xb1, 0xd7, 0x8f, 0x2e, 0x39, 0x2b, 0x0f, 0xcb, 0x3b, 0x28, 0x0e,
	0x1b, 0xde, 0xc2, 0xd4, 0x0b, 0xa5, 0x95, 0x99, 0x54, 0xb3, 0xe6, 0x6c, 0xa8, 0xf2, 0x1c, 0x68,
	0x99, 0x38, 0x50, 0x56, 0xd9, 0x1f, 0xb8, 0xd9, 0xc2, 0xe9, 0x20, 0x0c, 0x5f, 0x00, 0x7e, 0x03,
	0xf1, 0x62, 0xac, 0x90, 0xfc, 0x48, 0x79, 0xf9, 0xbf, 0xde, 0xaf, 0x53, 0xc1, 0x6e, 0xbe, 0x03,
	0x00, 0x00, 0xff, 0xff, 0x8d, 0xe1, 0xec, 0x80, 0xa6, 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

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

type hieronServiceClient struct {
	cc *grpc.ClientConn
}

func NewHieronServiceClient(cc *grpc.ClientConn) HieronServiceClient {
	return &hieronServiceClient{cc}
}

func (c *hieronServiceClient) GetConfigs(ctx context.Context, in *HieronServiceGetConfigsRequest, opts ...grpc.CallOption) (*HieronServiceGetConfigsResponse, error) {
	out := new(HieronServiceGetConfigsResponse)
	err := c.cc.Invoke(ctx, "/proto.HieronService/GetConfigs", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// HieronServiceServer is the server API for HieronService service.
type HieronServiceServer interface {
	//动态配置
	GetConfigs(context.Context, *HieronServiceGetConfigsRequest) (*HieronServiceGetConfigsResponse, error)
}

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

func (*UnimplementedHieronServiceServer) GetConfigs(ctx context.Context, req *HieronServiceGetConfigsRequest) (*HieronServiceGetConfigsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetConfigs not implemented")
}

func RegisterHieronServiceServer(s *grpc.Server, srv HieronServiceServer) {
	s.RegisterService(&_HieronService_serviceDesc, srv)
}

func _HieronService_GetConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(HieronServiceGetConfigsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(HieronServiceServer).GetConfigs(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.HieronService/GetConfigs",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(HieronServiceServer).GetConfigs(ctx, req.(*HieronServiceGetConfigsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _HieronService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.HieronService",
	HandlerType: (*HieronServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetConfigs",
			Handler:    _HieronService_GetConfigs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/cross_hieron_game.proto",
}
