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

/*
Package kubevirt_hooks_v1alpha1 is a generated protocol buffer package.

It is generated from these files:
	api_v1alpha1.proto

It has these top-level messages:
	OnDefineDomainParams
	OnDefineDomainResult
*/
package kubevirt_hooks_v1alpha1

import (
	fmt "fmt"

	proto "github.com/golang/protobuf/proto"

	math "math"

	context "golang.org/x/net/context"

	grpc "google.golang.org/grpc"
)

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

type OnDefineDomainParams struct {
	// domainXML is original libvirt domain specification
	DomainXML []byte `protobuf:"bytes,1,opt,name=domainXML,proto3" json:"domainXML,omitempty"`
	// vmi is VirtualMachineInstance is object of virtual machine currently processed by virt-launcher, it is encoded as JSON
	Vmi []byte `protobuf:"bytes,2,opt,name=vmi,proto3" json:"vmi,omitempty"`
}

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

func (m *OnDefineDomainParams) GetDomainXML() []byte {
	if m != nil {
		return m.DomainXML
	}
	return nil
}

func (m *OnDefineDomainParams) GetVmi() []byte {
	if m != nil {
		return m.Vmi
	}
	return nil
}

type OnDefineDomainResult struct {
	// domainXML is processed libvirt domain specification
	DomainXML []byte `protobuf:"bytes,1,opt,name=domainXML,proto3" json:"domainXML,omitempty"`
}

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

func (m *OnDefineDomainResult) GetDomainXML() []byte {
	if m != nil {
		return m.DomainXML
	}
	return nil
}

func init() {
	proto.RegisterType((*OnDefineDomainParams)(nil), "kubevirt.hooks.v1alpha1.OnDefineDomainParams")
	proto.RegisterType((*OnDefineDomainResult)(nil), "kubevirt.hooks.v1alpha1.OnDefineDomainResult")
}

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

// Client API for Callbacks service

type CallbacksClient interface {
	OnDefineDomain(ctx context.Context, in *OnDefineDomainParams, opts ...grpc.CallOption) (*OnDefineDomainResult, error)
}

type callbacksClient struct {
	cc *grpc.ClientConn
}

func NewCallbacksClient(cc *grpc.ClientConn) CallbacksClient {
	return &callbacksClient{cc}
}

func (c *callbacksClient) OnDefineDomain(ctx context.Context, in *OnDefineDomainParams, opts ...grpc.CallOption) (*OnDefineDomainResult, error) {
	out := new(OnDefineDomainResult)
	err := grpc.Invoke(ctx, "/kubevirt.hooks.v1alpha1.Callbacks/OnDefineDomain", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for Callbacks service

type CallbacksServer interface {
	OnDefineDomain(context.Context, *OnDefineDomainParams) (*OnDefineDomainResult, error)
}

func RegisterCallbacksServer(s *grpc.Server, srv CallbacksServer) {
	s.RegisterService(&_Callbacks_serviceDesc, srv)
}

func _Callbacks_OnDefineDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OnDefineDomainParams)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CallbacksServer).OnDefineDomain(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/kubevirt.hooks.v1alpha1.Callbacks/OnDefineDomain",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CallbacksServer).OnDefineDomain(ctx, req.(*OnDefineDomainParams))
	}
	return interceptor(ctx, in, info, handler)
}

var _Callbacks_serviceDesc = grpc.ServiceDesc{
	ServiceName: "kubevirt.hooks.v1alpha1.Callbacks",
	HandlerType: (*CallbacksServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "OnDefineDomain",
			Handler:    _Callbacks_OnDefineDomain_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api_v1alpha1.proto",
}

func init() { proto.RegisterFile("api_v1alpha1.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 170 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0x2c, 0xc8, 0x8c,
	0x2f, 0x33, 0x4c, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12,
	0xcf, 0x2e, 0x4d, 0x4a, 0x2d, 0xcb, 0x2c, 0x2a, 0xd1, 0xcb, 0xc8, 0xcf, 0xcf, 0x2e, 0xd6, 0x83,
	0x49, 0x2b, 0xb9, 0x71, 0x89, 0xf8, 0xe7, 0xb9, 0xa4, 0xa6, 0x65, 0xe6, 0xa5, 0xba, 0xe4, 0xe7,
	0x26, 0x66, 0xe6, 0x05, 0x24, 0x16, 0x25, 0xe6, 0x16, 0x0b, 0xc9, 0x70, 0x71, 0xa6, 0x80, 0xf9,
	0x11, 0xbe, 0x3e, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x3c, 0x41, 0x08, 0x01, 0x21, 0x01, 0x2e, 0xe6,
	0xb2, 0xdc, 0x4c, 0x09, 0x26, 0xb0, 0x38, 0x88, 0xa9, 0x64, 0x82, 0x6e, 0x4e, 0x50, 0x6a, 0x71,
	0x69, 0x4e, 0x09, 0x7e, 0x73, 0x8c, 0xaa, 0xb9, 0x38, 0x9d, 0x13, 0x73, 0x72, 0x92, 0x12, 0x93,
	0xb3, 0x8b, 0x85, 0xf2, 0xb8, 0xf8, 0x50, 0x8d, 0x10, 0xd2, 0xd5, 0xc3, 0xe1, 0x6c, 0x3d, 0x6c,
	0x6e, 0x96, 0x22, 0x56, 0x39, 0xc4, 0x69, 0x49, 0x6c, 0xe0, 0xa0, 0x31, 0x06, 0x04, 0x00, 0x00,
	0xff, 0xff, 0x46, 0xa1, 0x62, 0x72, 0x30, 0x01, 0x00, 0x00,
}
