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

package gapi

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"
)

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

//gRPC消息队列请求消息体
type ExecuteGRPCRequest struct {
	Method               string   `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Priority             int32    `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	MsgId                string   `protobuf:"bytes,4,opt,name=msgId,proto3" json:"msgId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_ExecuteGRPCRequest proto.InternalMessageInfo

func (m *ExecuteGRPCRequest) GetMethod() string {
	if m != nil {
		return m.Method
	}
	return ""
}

func (m *ExecuteGRPCRequest) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

func (m *ExecuteGRPCRequest) GetPriority() int32 {
	if m != nil {
		return m.Priority
	}
	return 0
}

func (m *ExecuteGRPCRequest) GetMsgId() string {
	if m != nil {
		return m.MsgId
	}
	return ""
}

//gRPC请求消息体入队返回结果
type ExecuteGRPCResponse struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	MsgId                string   `protobuf:"bytes,2,opt,name=msgId,proto3" json:"msgId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_ExecuteGRPCResponse proto.InternalMessageInfo

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

func (m *ExecuteGRPCResponse) GetMsgId() string {
	if m != nil {
		return m.MsgId
	}
	return ""
}

type ExecuteRestRequest struct {
	Url                  string                       `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Body                 []byte                       `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	Priority             int32                        `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	MsgId                string                       `protobuf:"bytes,4,opt,name=msgId,proto3" json:"msgId,omitempty"`
	Method               string                       `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	Headers              []*ExecuteRestRequest_Header `protobuf:"bytes,6,rep,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (m *ExecuteRestRequest) Reset()         { *m = ExecuteRestRequest{} }
func (m *ExecuteRestRequest) String() string { return proto.CompactTextString(m) }
func (*ExecuteRestRequest) ProtoMessage()    {}
func (*ExecuteRestRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_7caa8199c0db1966, []int{2}
}

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

var xxx_messageInfo_ExecuteRestRequest proto.InternalMessageInfo

func (m *ExecuteRestRequest) GetUrl() string {
	if m != nil {
		return m.Url
	}
	return ""
}

func (m *ExecuteRestRequest) GetBody() []byte {
	if m != nil {
		return m.Body
	}
	return nil
}

func (m *ExecuteRestRequest) GetPriority() int32 {
	if m != nil {
		return m.Priority
	}
	return 0
}

func (m *ExecuteRestRequest) GetMsgId() string {
	if m != nil {
		return m.MsgId
	}
	return ""
}

func (m *ExecuteRestRequest) GetMethod() string {
	if m != nil {
		return m.Method
	}
	return ""
}

func (m *ExecuteRestRequest) GetHeaders() []*ExecuteRestRequest_Header {
	if m != nil {
		return m.Headers
	}
	return nil
}

type ExecuteRestRequest_Header struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_ExecuteRestRequest_Header proto.InternalMessageInfo

func (m *ExecuteRestRequest_Header) GetKey() string {
	if m != nil {
		return m.Key
	}
	return ""
}

func (m *ExecuteRestRequest_Header) GetValue() string {
	if m != nil {
		return m.Value
	}
	return ""
}

type ExecuteRestResponse struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	MsgId                string   `protobuf:"bytes,2,opt,name=msgId,proto3" json:"msgId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ExecuteRestResponse) Reset()         { *m = ExecuteRestResponse{} }
func (m *ExecuteRestResponse) String() string { return proto.CompactTextString(m) }
func (*ExecuteRestResponse) ProtoMessage()    {}
func (*ExecuteRestResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_7caa8199c0db1966, []int{3}
}

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

var xxx_messageInfo_ExecuteRestResponse proto.InternalMessageInfo

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

func (m *ExecuteRestResponse) GetMsgId() string {
	if m != nil {
		return m.MsgId
	}
	return ""
}

func init() {
	proto.RegisterType((*ExecuteGRPCRequest)(nil), "com.ywt.gapi.mq.ExecuteGRPCRequest")
	proto.RegisterType((*ExecuteGRPCResponse)(nil), "com.ywt.gapi.mq.ExecuteGRPCResponse")
	proto.RegisterType((*ExecuteRestRequest)(nil), "com.ywt.gapi.mq.ExecuteRestRequest")
	proto.RegisterType((*ExecuteRestRequest_Header)(nil), "com.ywt.gapi.mq.ExecuteRestRequest.Header")
	proto.RegisterType((*ExecuteRestResponse)(nil), "com.ywt.gapi.mq.ExecuteRestResponse")
}

func init() { proto.RegisterFile("mq.proto", fileDescriptor_7caa8199c0db1966) }

var fileDescriptor_7caa8199c0db1966 = []byte{
	// 343 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x4a, 0xc3, 0x40,
	0x10, 0x87, 0xd9, 0xb6, 0x89, 0x75, 0x2a, 0xa8, 0xab, 0x48, 0x28, 0x08, 0xa1, 0x7a, 0x08, 0x1e,
	0x56, 0xa9, 0x0f, 0x20, 0xf8, 0x07, 0xf5, 0x20, 0xd4, 0xf5, 0x22, 0xde, 0xd2, 0x64, 0x68, 0x43,
	0x1b, 0x37, 0xdd, 0x6c, 0xaa, 0x79, 0x03, 0xdf, 0xcc, 0x97, 0xf2, 0x20, 0xbb, 0x69, 0xda, 0xb4,
	0x52, 0xa1, 0xb7, 0x99, 0x90, 0xfd, 0xf6, 0x9b, 0xdf, 0x0e, 0x34, 0xe3, 0x09, 0x4b, 0xa4, 0x50,
	0x82, 0xee, 0x06, 0x22, 0x66, 0xf9, 0x87, 0x62, 0x03, 0x3f, 0x89, 0x58, 0x3c, 0xe9, 0x48, 0xa0,
	0x77, 0x9f, 0x18, 0x64, 0x0a, 0xef, 0x79, 0xef, 0x86, 0xe3, 0x24, 0xc3, 0x54, 0xd1, 0x23, 0xb0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xa7, 0xff, 0xff, 0x34, 0x33, 0x5b, 0x90, 0xb5, 0xf0,
	0x7a, 0x72, 0x25, 0xa6, 0xf5, 0xe4, 0xea, 0xcc, 0xd7, 0xc7, 0xb0, 0xba, 0xd1, 0x3d, 0xf2, 0x66,
	0x9d, 0xeb, 0xfa, 0x8b, 0x90, 0xbe, 0x6d, 0xb6, 0xfe, 0xf2, 0x37, 0x00, 0x00, 0xff, 0xff, 0x7e,
	0xa1, 0x6c, 0x38, 0x01, 0x03, 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

// MQExecutorServiceClient is the client API for MQExecutorService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MQExecutorServiceClient interface {
	ExecuteGRPC(ctx context.Context, in *ExecuteGRPCRequest, opts ...grpc.CallOption) (*ExecuteGRPCResponse, error)
	ExecuteRest(ctx context.Context, in *ExecuteRestRequest, opts ...grpc.CallOption) (*ExecuteRestResponse, error)
}

type mQExecutorServiceClient struct {
	cc *grpc.ClientConn
}

func NewMQExecutorServiceClient(cc *grpc.ClientConn) MQExecutorServiceClient {
	return &mQExecutorServiceClient{cc}
}

func (c *mQExecutorServiceClient) ExecuteGRPC(ctx context.Context, in *ExecuteGRPCRequest, opts ...grpc.CallOption) (*ExecuteGRPCResponse, error) {
	out := new(ExecuteGRPCResponse)
	err := c.cc.Invoke(ctx, "/com.ywt.gapi.mq.MQExecutorService/executeGRPC", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mQExecutorServiceClient) ExecuteRest(ctx context.Context, in *ExecuteRestRequest, opts ...grpc.CallOption) (*ExecuteRestResponse, error) {
	out := new(ExecuteRestResponse)
	err := c.cc.Invoke(ctx, "/com.ywt.gapi.mq.MQExecutorService/executeRest", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// MQExecutorServiceServer is the server API for MQExecutorService service.
type MQExecutorServiceServer interface {
	ExecuteGRPC(context.Context, *ExecuteGRPCRequest) (*ExecuteGRPCResponse, error)
	ExecuteRest(context.Context, *ExecuteRestRequest) (*ExecuteRestResponse, error)
}

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

func (*UnimplementedMQExecutorServiceServer) ExecuteGRPC(ctx context.Context, req *ExecuteGRPCRequest) (*ExecuteGRPCResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ExecuteGRPC not implemented")
}
func (*UnimplementedMQExecutorServiceServer) ExecuteRest(ctx context.Context, req *ExecuteRestRequest) (*ExecuteRestResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ExecuteRest not implemented")
}

func RegisterMQExecutorServiceServer(s *grpc.Server, srv MQExecutorServiceServer) {
	s.RegisterService(&_MQExecutorService_serviceDesc, srv)
}

func _MQExecutorService_ExecuteGRPC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ExecuteGRPCRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MQExecutorServiceServer).ExecuteGRPC(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/com.ywt.gapi.mq.MQExecutorService/ExecuteGRPC",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MQExecutorServiceServer).ExecuteGRPC(ctx, req.(*ExecuteGRPCRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _MQExecutorService_ExecuteRest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ExecuteRestRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MQExecutorServiceServer).ExecuteRest(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/com.ywt.gapi.mq.MQExecutorService/ExecuteRest",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MQExecutorServiceServer).ExecuteRest(ctx, req.(*ExecuteRestRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _MQExecutorService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "com.ywt.gapi.mq.MQExecutorService",
	HandlerType: (*MQExecutorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "executeGRPC",
			Handler:    _MQExecutorService_ExecuteGRPC_Handler,
		},
		{
			MethodName: "executeRest",
			Handler:    _MQExecutorService_ExecuteRest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "mq.proto",
}
