// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto

package recommendationengine

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

	proto "github.com/golang/protobuf/proto"
	empty "github.com/golang/protobuf/ptypes/empty"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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

// Registered Api Key.
type PredictionApiKeyRegistration struct {
	// The API key.
	ApiKey               string   `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_PredictionApiKeyRegistration proto.InternalMessageInfo

func (m *PredictionApiKeyRegistration) GetApiKey() string {
	if m != nil {
		return m.ApiKey
	}
	return ""
}

// Request message for the `CreatePredictionApiKeyRegistration` method.
type CreatePredictionApiKeyRegistrationRequest struct {
	// Required. The parent resource path.
	// "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The prediction API key registration.
	PredictionApiKeyRegistration *PredictionApiKeyRegistration `protobuf:"bytes,2,opt,name=prediction_api_key_registration,json=predictionApiKeyRegistration,proto3" json:"prediction_api_key_registration,omitempty"`
	XXX_NoUnkeyedLiteral         struct{}                      `json:"-"`
	XXX_unrecognized             []byte                        `json:"-"`
	XXX_sizecache                int32                         `json:"-"`
}

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

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

var xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest proto.InternalMessageInfo

func (m *CreatePredictionApiKeyRegistrationRequest) GetParent() string {
	if m != nil {
		return m.Parent
	}
	return ""
}

func (m *CreatePredictionApiKeyRegistrationRequest) GetPredictionApiKeyRegistration() *PredictionApiKeyRegistration {
	if m != nil {
		return m.PredictionApiKeyRegistration
	}
	return nil
}

// Request message for the `ListPredictionApiKeyRegistrations`.
type ListPredictionApiKeyRegistrationsRequest struct {
	// Required. The parent placement resource name such as
	// "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store"
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Maximum number of results to return per page. If unset, the
	// service will choose a reasonable default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest proto.InternalMessageInfo

func (m *ListPredictionApiKeyRegistrationsRequest) GetParent() string {
	if m != nil {
		return m.Parent
	}
	return ""
}

func (m *ListPredictionApiKeyRegistrationsRequest) GetPageSize() int32 {
	if m != nil {
		return m.PageSize
	}
	return 0
}

func (m *ListPredictionApiKeyRegistrationsRequest) GetPageToken() string {
	if m != nil {
		return m.PageToken
	}
	return ""
}

// Response message for the `ListPredictionApiKeyRegistrations`.
type ListPredictionApiKeyRegistrationsResponse struct {
	// The list of registered API keys.
	PredictionApiKeyRegistrations []*PredictionApiKeyRegistration `protobuf:"bytes,1,rep,name=prediction_api_key_registrations,json=predictionApiKeyRegistrations,proto3" json:"prediction_api_key_registrations,omitempty"`
	// If empty, the list is complete. If nonempty, pass the token to the next
	// request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse proto.InternalMessageInfo

func (m *ListPredictionApiKeyRegistrationsResponse) GetPredictionApiKeyRegistrations() []*PredictionApiKeyRegistration {
	if m != nil {
		return m.PredictionApiKeyRegistrations
	}
	return nil
}

func (m *ListPredictionApiKeyRegistrationsResponse) GetNextPageToken() string {
	if m != nil {
		return m.NextPageToken
	}
	return ""
}

// Request message for `DeletePredictionApiKeyRegistration` method.
type DeletePredictionApiKeyRegistrationRequest struct {
	// Required. The API key to unregister including full resource path.
	// "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>"
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DeletePredictionApiKeyRegistrationRequest) Reset() {
	*m = DeletePredictionApiKeyRegistrationRequest{}
}
func (m *DeletePredictionApiKeyRegistrationRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePredictionApiKeyRegistrationRequest) ProtoMessage()    {}
func (*DeletePredictionApiKeyRegistrationRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_dc7c074fb118b00d, []int{4}
}

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

var xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest proto.InternalMessageInfo

func (m *DeletePredictionApiKeyRegistrationRequest) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func init() {
	proto.RegisterType((*PredictionApiKeyRegistration)(nil), "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration")
	proto.RegisterType((*CreatePredictionApiKeyRegistrationRequest)(nil), "google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest")
	proto.RegisterType((*ListPredictionApiKeyRegistrationsRequest)(nil), "google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest")
	proto.RegisterType((*ListPredictionApiKeyRegistrationsResponse)(nil), "google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse")
	proto.RegisterType((*DeletePredictionApiKeyRegistrationRequest)(nil), "google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest")
}

func init() {
	proto.RegisterFile("google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto", fileDescriptor_dc7c074fb118b00d)
}

var fileDescriptor_dc7c074fb118b00d = []byte{
	// 685 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6b, 0x13, 0x41,
	0x14, 0x66, 0xb6, 0xb6, 0xb5, 0x23, 0x22, 0xec, 0xc1, 0x86, 0xb4, 0xd2, 0xb8, 0x82, 0x34, 0x81,
	0xee, 0xd0, 0x7a, 0x10, 0x2a, 0x1e, 0xd2, 0x1f, 0x14, 0xd1, 0x43, 0xd9, 0x16, 0x05, 0x41, 0x96,
	0xc9, 0xe6, 0x75, 0x3b, 0xed, 0xee, 0xcc, 0xb8, 0x33, 0x49, 0x4d, 0xa5, 0x17, 0xef, 0x8a, 0xe0,
	0x7f, 0xe0, 0xd1, 0x8b, 0x47, 0xff, 0x01, 0x4f, 0x1e, 0xf5, 0xe4, 0x41, 0xf0, 0x20, 0xfe, 0x13,
	0x5e, 0x64, 0x67, 0x37, 0x35, 0x95, 0xba, 0xd9, 0x40, 0xbc, 0x25, 0xef, 0x7b, 0xf3, 0xbd, 0xf7,
	0x7d, 0x79, 0x2f, 0x0f, 0x7b, 0xa1, 0x10, 0x61, 0x04, 0x24, 0x88, 0x44, 0xa7, 0x4d, 0x12, 0x08,
	0x44, 0x1c, 0x03, 0x6f, 0x53, 0xcd, 0x04, 0x07, 0x1e, 0x32, 0x0e, 0xa4, 0xbb, 0xdc, 0x02, 0x4d,
	0x97, 0x89, 0x4c, 0xa0, 0xcd, 0x82, 0x14, 0xf0, 0xa9, 0x64,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ppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface

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

// PredictionApiKeyRegistryClient is the client API for PredictionApiKeyRegistry service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PredictionApiKeyRegistryClient interface {
	// Register an API key for use with predict method.
	CreatePredictionApiKeyRegistration(ctx context.Context, in *CreatePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*PredictionApiKeyRegistration, error)
	// List the registered apiKeys for use with predict method.
	ListPredictionApiKeyRegistrations(ctx context.Context, in *ListPredictionApiKeyRegistrationsRequest, opts ...grpc.CallOption) (*ListPredictionApiKeyRegistrationsResponse, error)
	// Unregister an apiKey from using for predict method.
	DeletePredictionApiKeyRegistration(ctx context.Context, in *DeletePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

type predictionApiKeyRegistryClient struct {
	cc grpc.ClientConnInterface
}

func NewPredictionApiKeyRegistryClient(cc grpc.ClientConnInterface) PredictionApiKeyRegistryClient {
	return &predictionApiKeyRegistryClient{cc}
}

func (c *predictionApiKeyRegistryClient) CreatePredictionApiKeyRegistration(ctx context.Context, in *CreatePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*PredictionApiKeyRegistration, error) {
	out := new(PredictionApiKeyRegistration)
	err := c.cc.Invoke(ctx, "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/CreatePredictionApiKeyRegistration", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *predictionApiKeyRegistryClient) ListPredictionApiKeyRegistrations(ctx context.Context, in *ListPredictionApiKeyRegistrationsRequest, opts ...grpc.CallOption) (*ListPredictionApiKeyRegistrationsResponse, error) {
	out := new(ListPredictionApiKeyRegistrationsResponse)
	err := c.cc.Invoke(ctx, "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/ListPredictionApiKeyRegistrations", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *predictionApiKeyRegistryClient) DeletePredictionApiKeyRegistration(ctx context.Context, in *DeletePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
	out := new(empty.Empty)
	err := c.cc.Invoke(ctx, "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PredictionApiKeyRegistryServer is the server API for PredictionApiKeyRegistry service.
type PredictionApiKeyRegistryServer interface {
	// Register an API key for use with predict method.
	CreatePredictionApiKeyRegistration(context.Context, *CreatePredictionApiKeyRegistrationRequest) (*PredictionApiKeyRegistration, error)
	// List the registered apiKeys for use with predict method.
	ListPredictionApiKeyRegistrations(context.Context, *ListPredictionApiKeyRegistrationsRequest) (*ListPredictionApiKeyRegistrationsResponse, error)
	// Unregister an apiKey from using for predict method.
	DeletePredictionApiKeyRegistration(context.Context, *DeletePredictionApiKeyRegistrationRequest) (*empty.Empty, error)
}

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

func (*UnimplementedPredictionApiKeyRegistryServer) CreatePredictionApiKeyRegistration(ctx context.Context, req *CreatePredictionApiKeyRegistrationRequest) (*PredictionApiKeyRegistration, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreatePredictionApiKeyRegistration not implemented")
}
func (*UnimplementedPredictionApiKeyRegistryServer) ListPredictionApiKeyRegistrations(ctx context.Context, req *ListPredictionApiKeyRegistrationsRequest) (*ListPredictionApiKeyRegistrationsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPredictionApiKeyRegistrations not implemented")
}
func (*UnimplementedPredictionApiKeyRegistryServer) DeletePredictionApiKeyRegistration(ctx context.Context, req *DeletePredictionApiKeyRegistrationRequest) (*empty.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeletePredictionApiKeyRegistration not implemented")
}

func RegisterPredictionApiKeyRegistryServer(s *grpc.Server, srv PredictionApiKeyRegistryServer) {
	s.RegisterService(&_PredictionApiKeyRegistry_serviceDesc, srv)
}

func _PredictionApiKeyRegistry_CreatePredictionApiKeyRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreatePredictionApiKeyRegistrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PredictionApiKeyRegistryServer).CreatePredictionApiKeyRegistration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/CreatePredictionApiKeyRegistration",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PredictionApiKeyRegistryServer).CreatePredictionApiKeyRegistration(ctx, req.(*CreatePredictionApiKeyRegistrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PredictionApiKeyRegistry_ListPredictionApiKeyRegistrations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPredictionApiKeyRegistrationsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PredictionApiKeyRegistryServer).ListPredictionApiKeyRegistrations(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/ListPredictionApiKeyRegistrations",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PredictionApiKeyRegistryServer).ListPredictionApiKeyRegistrations(ctx, req.(*ListPredictionApiKeyRegistrationsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PredictionApiKeyRegistry_DeletePredictionApiKeyRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeletePredictionApiKeyRegistrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PredictionApiKeyRegistryServer).DeletePredictionApiKeyRegistration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PredictionApiKeyRegistryServer).DeletePredictionApiKeyRegistration(ctx, req.(*DeletePredictionApiKeyRegistrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _PredictionApiKeyRegistry_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry",
	HandlerType: (*PredictionApiKeyRegistryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePredictionApiKeyRegistration",
			Handler:    _PredictionApiKeyRegistry_CreatePredictionApiKeyRegistration_Handler,
		},
		{
			MethodName: "ListPredictionApiKeyRegistrations",
			Handler:    _PredictionApiKeyRegistry_ListPredictionApiKeyRegistrations_Handler,
		},
		{
			MethodName: "DeletePredictionApiKeyRegistration",
			Handler:    _PredictionApiKeyRegistry_DeletePredictionApiKeyRegistration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto",
}
