// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: axelar/permission/v1beta1/service.proto

package types

import (
	context "context"
	fmt "fmt"
	_ "github.com/gogo/protobuf/gogoproto"
	grpc1 "github.com/gogo/protobuf/grpc"
	proto "github.com/gogo/protobuf/proto"
	golang_proto "github.com/golang/protobuf/proto"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_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.GoGoProtoPackageIsVersion3 // please upgrade the proto package

func init() {
	proto.RegisterFile("axelar/permission/v1beta1/service.proto", fileDescriptor_5d763a569c6664cc)
}
func init() {
	golang_proto.RegisterFile("axelar/permission/v1beta1/service.proto", fileDescriptor_5d763a569c6664cc)
}

var fileDescriptor_5d763a569c6664cc = []byte{
	// 437 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x31, 0x8b, 0xd4, 0x40,
	0x14, 0x80, 0x77, 0x4e, 0xbd, 0x62, 0xc0, 0x66, 0xbc, 0xc6, 0x45, 0x02, 0x46, 0xd4, 0xdb, 0x93,
	0xcb, 0xb0, 0x77, 0xde, 0x1d, 0x5c, 0xa9, 0x82, 0x85, 0x08, 0x7a, 0x70, 0x8d, 0xcd, 0x32, 0x9b,
	0x7b, 0x8c, 0xe1, 0xb2, 0xf3, 0x72, 0x33, 0x93, 0x75, 0xd3, 0x5a, 0x59, 0x0a, 0xfe, 0x10, 0x1b,
	0x41, 0x04, 0x0b, 0x0b, 0x0b, 0xcb, 0x03, 0x1b, 0x4b, 0xd9, 0xf8, 0x43, 0x64, 0x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, 0xfe, 0x17, 0x42, 0x6f, 0x9c, 0x26, 0x67, 0xc2, 0xc2, 0x53, 0x1c, 0x83,
	0x56, 0x42, 0x85, 0xf0, 0x0c, 0x32, 0xd6, 0xf4, 0x03, 0x2b, 0xf8, 0x79, 0xfc, 0x61, 0x5b, 0x6d,
	0x8d, 0xf6, 0xb4, 0xf0, 0x06, 0x72, 0x21, 0x0e, 0xce, 0x21, 0x3b, 0x26, 0x3b, 0x7b, 0xdf, 0x37,
	0xe8, 0xb5, 0x97, 0xb3, 0x4d, 0x62, 0x1f, 0x09, 0xbd, 0xbe, 0xdc, 0xdf, 0xb4, 0x36, 0x85, 0x53,
	0x99, 0x7f, 0xd0, 0xd2, 0x5a, 0x5e, 0x1b, 0xd6, 0xe3, 0xf5, 0x2b, 0xbf, 0x9c, 0xcf, 0xde, 0x11,
	0xba, 0xf9, 0x42, 0x68, 0x31, 0x32, 0x6c, 0xbb, 0x61, 0x68, 0x89, 0xcc, 0xf3, 0x7a, 0x6b, 0x90,
	0x2e, 0xa9, 0x57, 0x24, 0xdd, 0x61, 0xb7, 0x1b, 0x92, 0x92, 0x42, 0x79, 0x74, 0xfa, 0x63, 0xea,
	0x91, 0xcb, 0xa9, 0x47, 0x7e, 0x4f, 0x3d, 0xf2, 0x3e, 0xf7, 0x3a, 0xdf, 0x72, 0x8f, 0x5c, 0xe6,
	0x5e, 0xe7, 0x57, 0xee, 0x75, 0x5e, 0x1d, 0xc9, 0xc8, 0xbe, 0x4e, 0x87, 0x41, 0x88, 0x23, 0x77,
	0x94, 0x02, 0xfb, 0x06, 0xf5, 0xb9, 0x7b, 0xdb, 0x0d, 0x51, 0x03, 0x9f, 0xfc, 0x7f, 0xbe, 0xcd,
	0x12, 0x30, 0xc3, 0xcd, 0xe2, 0x7a, 0xef, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x21, 0x7e, 0xdc,
	0xe1, 0xa3, 0x04, 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

// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
	RegisterController(ctx context.Context, in *RegisterControllerRequest, opts ...grpc.CallOption) (*RegisterControllerResponse, error)
	DeregisterController(ctx context.Context, in *DeregisterControllerRequest, opts ...grpc.CallOption) (*DeregisterControllerResponse, error)
	UpdateGovernanceKey(ctx context.Context, in *UpdateGovernanceKeyRequest, opts ...grpc.CallOption) (*UpdateGovernanceKeyResponse, error)
}

type msgClient struct {
	cc grpc1.ClientConn
}

func NewMsgClient(cc grpc1.ClientConn) MsgClient {
	return &msgClient{cc}
}

func (c *msgClient) RegisterController(ctx context.Context, in *RegisterControllerRequest, opts ...grpc.CallOption) (*RegisterControllerResponse, error) {
	out := new(RegisterControllerResponse)
	err := c.cc.Invoke(ctx, "/axelar.permission.v1beta1.Msg/RegisterController", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *msgClient) DeregisterController(ctx context.Context, in *DeregisterControllerRequest, opts ...grpc.CallOption) (*DeregisterControllerResponse, error) {
	out := new(DeregisterControllerResponse)
	err := c.cc.Invoke(ctx, "/axelar.permission.v1beta1.Msg/DeregisterController", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *msgClient) UpdateGovernanceKey(ctx context.Context, in *UpdateGovernanceKeyRequest, opts ...grpc.CallOption) (*UpdateGovernanceKeyResponse, error) {
	out := new(UpdateGovernanceKeyResponse)
	err := c.cc.Invoke(ctx, "/axelar.permission.v1beta1.Msg/UpdateGovernanceKey", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// MsgServer is the server API for Msg service.
type MsgServer interface {
	RegisterController(context.Context, *RegisterControllerRequest) (*RegisterControllerResponse, error)
	DeregisterController(context.Context, *DeregisterControllerRequest) (*DeregisterControllerResponse, error)
	UpdateGovernanceKey(context.Context, *UpdateGovernanceKeyRequest) (*UpdateGovernanceKeyResponse, error)
}

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

func (*UnimplementedMsgServer) RegisterController(ctx context.Context, req *RegisterControllerRequest) (*RegisterControllerResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RegisterController not implemented")
}
func (*UnimplementedMsgServer) DeregisterController(ctx context.Context, req *DeregisterControllerRequest) (*DeregisterControllerResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeregisterController not implemented")
}
func (*UnimplementedMsgServer) UpdateGovernanceKey(ctx context.Context, req *UpdateGovernanceKeyRequest) (*UpdateGovernanceKeyResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateGovernanceKey not implemented")
}

func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
	s.RegisterService(&_Msg_serviceDesc, srv)
}

func _Msg_RegisterController_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RegisterControllerRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MsgServer).RegisterController(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/axelar.permission.v1beta1.Msg/RegisterController",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MsgServer).RegisterController(ctx, req.(*RegisterControllerRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Msg_DeregisterController_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeregisterControllerRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MsgServer).DeregisterController(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/axelar.permission.v1beta1.Msg/DeregisterController",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MsgServer).DeregisterController(ctx, req.(*DeregisterControllerRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Msg_UpdateGovernanceKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateGovernanceKeyRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MsgServer).UpdateGovernanceKey(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/axelar.permission.v1beta1.Msg/UpdateGovernanceKey",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MsgServer).UpdateGovernanceKey(ctx, req.(*UpdateGovernanceKeyRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _Msg_serviceDesc = grpc.ServiceDesc{
	ServiceName: "axelar.permission.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterController",
			Handler:    _Msg_RegisterController_Handler,
		},
		{
			MethodName: "DeregisterController",
			Handler:    _Msg_DeregisterController_Handler,
		},
		{
			MethodName: "UpdateGovernanceKey",
			Handler:    _Msg_UpdateGovernanceKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "axelar/permission/v1beta1/service.proto",
}

// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
	// GovernanceKey returns the multisig governance key
	GovernanceKey(ctx context.Context, in *QueryGovernanceKeyRequest, opts ...grpc.CallOption) (*QueryGovernanceKeyResponse, error)
	Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
}

type queryClient struct {
	cc grpc1.ClientConn
}

func NewQueryClient(cc grpc1.ClientConn) QueryClient {
	return &queryClient{cc}
}

func (c *queryClient) GovernanceKey(ctx context.Context, in *QueryGovernanceKeyRequest, opts ...grpc.CallOption) (*QueryGovernanceKeyResponse, error) {
	out := new(QueryGovernanceKeyResponse)
	err := c.cc.Invoke(ctx, "/axelar.permission.v1beta1.Query/GovernanceKey", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *queryClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) {
	out := new(ParamsResponse)
	err := c.cc.Invoke(ctx, "/axelar.permission.v1beta1.Query/Params", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// QueryServer is the server API for Query service.
type QueryServer interface {
	// GovernanceKey returns the multisig governance key
	GovernanceKey(context.Context, *QueryGovernanceKeyRequest) (*QueryGovernanceKeyResponse, error)
	Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
}

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

func (*UnimplementedQueryServer) GovernanceKey(ctx context.Context, req *QueryGovernanceKeyRequest) (*QueryGovernanceKeyResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GovernanceKey not implemented")
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}

func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
	s.RegisterService(&_Query_serviceDesc, srv)
}

func _Query_GovernanceKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryGovernanceKeyRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).GovernanceKey(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/axelar.permission.v1beta1.Query/GovernanceKey",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).GovernanceKey(ctx, req.(*QueryGovernanceKeyRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ParamsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).Params(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/axelar.permission.v1beta1.Query/Params",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).Params(ctx, req.(*ParamsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _Query_serviceDesc = grpc.ServiceDesc{
	ServiceName: "axelar.permission.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GovernanceKey",
			Handler:    _Query_GovernanceKey_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "axelar/permission/v1beta1/service.proto",
}
