// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.20.1 // source: proto/certificate.proto package certificate import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( CertificateCloudflare_CreateCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate" CertificateCloudflare_DeleteCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate" CertificateCloudflare_EditCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate" CertificateCloudflare_UniversalCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate" ) // CertificateCloudflareClient is the client API for CertificateCloudflare service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type CertificateCloudflareClient interface { // Sends a greeting CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error) EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error) } type certificateCloudflareClient struct { cc grpc.ClientConnInterface } func NewCertificateCloudflareClient(cc grpc.ClientConnInterface) CertificateCloudflareClient { return &certificateCloudflareClient{cc} } func (c *certificateCloudflareClient) CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) { out := new(CreateCertificateReplyCloudflare) err := c.cc.Invoke(ctx, CertificateCloudflare_CreateCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *certificateCloudflareClient) DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error) { out := new(DeleteCertificateReplyCloudflare) err := c.cc.Invoke(ctx, CertificateCloudflare_DeleteCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *certificateCloudflareClient) EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) { out := new(EditCertificateReplyCloudflare) err := c.cc.Invoke(ctx, CertificateCloudflare_EditCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *certificateCloudflareClient) UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error) { out := new(UniversalCertificateReplyCloudflare) err := c.cc.Invoke(ctx, CertificateCloudflare_UniversalCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // CertificateCloudflareServer is the server API for CertificateCloudflare service. // All implementations must embed UnimplementedCertificateCloudflareServer // for forward compatibility type CertificateCloudflareServer interface { // Sends a greeting CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error) DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error) mustEmbedUnimplementedCertificateCloudflareServer() } // UnimplementedCertificateCloudflareServer must be embedded to have forward compatible implementations. type UnimplementedCertificateCloudflareServer struct { } func (UnimplementedCertificateCloudflareServer) CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented") } func (UnimplementedCertificateCloudflareServer) DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented") } func (UnimplementedCertificateCloudflareServer) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method EditCertificate not implemented") } func (UnimplementedCertificateCloudflareServer) UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method UniversalCertificate not implemented") } func (UnimplementedCertificateCloudflareServer) mustEmbedUnimplementedCertificateCloudflareServer() {} // UnsafeCertificateCloudflareServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CertificateCloudflareServer will // result in compilation errors. type UnsafeCertificateCloudflareServer interface { mustEmbedUnimplementedCertificateCloudflareServer() } func RegisterCertificateCloudflareServer(s grpc.ServiceRegistrar, srv CertificateCloudflareServer) { s.RegisterService(&CertificateCloudflare_ServiceDesc, srv) } func _CertificateCloudflare_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateCertificateRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CertificateCloudflareServer).CreateCertificate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CertificateCloudflare_CreateCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CertificateCloudflareServer).CreateCertificate(ctx, req.(*CreateCertificateRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _CertificateCloudflare_DeleteCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteCertificateRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CertificateCloudflare_DeleteCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, req.(*DeleteCertificateRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _CertificateCloudflare_EditCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EditCertificateRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CertificateCloudflareServer).EditCertificate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CertificateCloudflare_EditCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CertificateCloudflareServer).EditCertificate(ctx, req.(*EditCertificateRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _CertificateCloudflare_UniversalCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UniversalCertificateRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CertificateCloudflare_UniversalCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, req.(*UniversalCertificateRequestCloudflare)) } return interceptor(ctx, in, info, handler) } // CertificateCloudflare_ServiceDesc is the grpc.ServiceDesc for CertificateCloudflare service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var CertificateCloudflare_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudflareApi.cache.Certificate.CertificateCloudflare", HandlerType: (*CertificateCloudflareServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCertificate", Handler: _CertificateCloudflare_CreateCertificate_Handler, }, { MethodName: "DeleteCertificate", Handler: _CertificateCloudflare_DeleteCertificate_Handler, }, { MethodName: "EditCertificate", Handler: _CertificateCloudflare_EditCertificate_Handler, }, { MethodName: "UniversalCertificate", Handler: _CertificateCloudflare_UniversalCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/certificate.proto", }