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

package proto_common

import (
	context "context"
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

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

// *
// A wrapper message to logically group other messages
type PluginInitialization struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_PluginInitialization proto.InternalMessageInfo

// Initialization data for the plugin
type PluginInitialization_Request struct {
	// `geth` node identity
	HostIdentity string `protobuf:"bytes,1,opt,name=hostIdentity,proto3" json:"hostIdentity,omitempty"`
	// Raw configuration to be processed by the plugin
	RawConfiguration     []byte   `protobuf:"bytes,2,opt,name=rawConfiguration,proto3" json:"rawConfiguration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_PluginInitialization_Request proto.InternalMessageInfo

func (m *PluginInitialization_Request) GetHostIdentity() string {
	if m != nil {
		return m.HostIdentity
	}
	return ""
}

func (m *PluginInitialization_Request) GetRawConfiguration() []byte {
	if m != nil {
		return m.RawConfiguration
	}
	return nil
}

type PluginInitialization_Response struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_PluginInitialization_Response proto.InternalMessageInfo

func init() {
	proto.RegisterType((*PluginInitialization)(nil), "proto_common.PluginInitialization")
	proto.RegisterType((*PluginInitialization_Request)(nil), "proto_common.PluginInitialization.Request")
	proto.RegisterType((*PluginInitialization_Response)(nil), "proto_common.PluginInitialization.Response")
}

func init() { proto.RegisterFile("init.proto", fileDescriptor_8d036da5b4a9bcf3) }

var fileDescriptor_8d036da5b4a9bcf3 = []byte{
	// 210 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xca, 0xcc, 0xcb, 0x2c,
	0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x53, 0xf1, 0xc9, 0xf9, 0xb9, 0xb9, 0xf9,
	0x79, 0x4a, 0xb5, 0x5c, 0x22, 0x01, 0x39, 0xa5, 0xe9, 0x99, 0x79, 0x9e, 0x79, 0x99, 0x25, 0x99,
	0x89, 0x39, 0x99, 0x55, 0x89, 0x25, 0x99, 0xf9, 0x79, 0x52, 0x91, 0x5c, 0xec, 0x41, 0xa9, 0x85,
	0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x4a, 0x5c, 0x3c, 0x19, 0xf9, 0xc5, 0x25, 0x9e, 0x29, 0xa9, 0x79,
	0x25, 0x99, 0x25, 0x95, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x28, 0x62, 0x42, 0x5a, 0x5c,
	0x02, 0x45, 0x89, 0xe5, 0xce, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xa5, 0x45, 0x60, 0x23, 0x24, 0x98,
	0x14, 0x18, 0x35, 0x78, 0x82, 0x30, 0xc4, 0xa5, 0xb8, 0xb8, 0x38, 0x82, 0x52, 0x8b, 0x0b, 0xf2,
	0xf3, 0x8a, 0x53, 0x8d, 0x4a, 0xb8, 0x04, 0xd1, 0xac, 0x4f, 0x2d, 0x12, 0x8a, 0xe7, 0x62, 0x01,
	0x71, 0x85, 0xb4, 0xf4, 0x90, 0x9d, 0xaa, 0x87, 0xcd, 0x9d, 0x7a, 0x50, 0x47, 0x4a, 0x69, 0x13,
	0xa5, 0x16, 0x62, 0xab, 0x93, 0x09, 0x97, 0x78, 0x72, 0x7e, 0xae, 0x5e, 0x61, 0x69, 0x7e, 0x51,
	0x69, 0xae, 0x5e, 0x01, 0x58, 0x2d, 0x44, 0xbf, 0x13, 0x37, 0x92, 0x43, 0xa2, 0x50, 0x82, 0x2a,
	0x89, 0x0d, 0xcc, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x97, 0x47, 0x58, 0xf3, 0x4d, 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

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

type pluginInitializerClient struct {
	cc *grpc.ClientConn
}

func NewPluginInitializerClient(cc *grpc.ClientConn) PluginInitializerClient {
	return &pluginInitializerClient{cc}
}

func (c *pluginInitializerClient) Init(ctx context.Context, in *PluginInitialization_Request, opts ...grpc.CallOption) (*PluginInitialization_Response, error) {
	out := new(PluginInitialization_Response)
	err := c.cc.Invoke(ctx, "/proto_common.PluginInitializer/Init", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PluginInitializerServer is the server API for PluginInitializer service.
type PluginInitializerServer interface {
	Init(context.Context, *PluginInitialization_Request) (*PluginInitialization_Response, error)
}

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

func (*UnimplementedPluginInitializerServer) Init(ctx context.Context, req *PluginInitialization_Request) (*PluginInitialization_Response, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Init not implemented")
}

func RegisterPluginInitializerServer(s *grpc.Server, srv PluginInitializerServer) {
	s.RegisterService(&_PluginInitializer_serviceDesc, srv)
}

func _PluginInitializer_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PluginInitialization_Request)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PluginInitializerServer).Init(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto_common.PluginInitializer/Init",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PluginInitializerServer).Init(ctx, req.(*PluginInitialization_Request))
	}
	return interceptor(ctx, in, info, handler)
}

var _PluginInitializer_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto_common.PluginInitializer",
	HandlerType: (*PluginInitializerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _PluginInitializer_Init_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "init.proto",
}
