certificate_grpc.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.21.4
  5. // source: proto/certificate.proto
  6. package certificate
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // CertificateCloudflareClient is the client API for CertificateCloudflare service.
  18. //
  19. // 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.
  20. type CertificateCloudflareClient interface {
  21. // Sends a greeting
  22. CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error)
  23. DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error)
  24. EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error)
  25. }
  26. type certificateCloudflareClient struct {
  27. cc grpc.ClientConnInterface
  28. }
  29. func NewCertificateCloudflareClient(cc grpc.ClientConnInterface) CertificateCloudflareClient {
  30. return &certificateCloudflareClient{cc}
  31. }
  32. func (c *certificateCloudflareClient) CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) {
  33. out := new(CreateCertificateReplyCloudflare)
  34. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate", in, out, opts...)
  35. if err != nil {
  36. return nil, err
  37. }
  38. return out, nil
  39. }
  40. func (c *certificateCloudflareClient) DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error) {
  41. out := new(DeleteCertificateReplyCloudflare)
  42. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate", in, out, opts...)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return out, nil
  47. }
  48. func (c *certificateCloudflareClient) EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) {
  49. out := new(EditCertificateReplyCloudflare)
  50. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate", in, out, opts...)
  51. if err != nil {
  52. return nil, err
  53. }
  54. return out, nil
  55. }
  56. // CertificateCloudflareServer is the server API for CertificateCloudflare service.
  57. // All implementations must embed UnimplementedCertificateCloudflareServer
  58. // for forward compatibility
  59. type CertificateCloudflareServer interface {
  60. // Sends a greeting
  61. CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error)
  62. DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error)
  63. EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error)
  64. mustEmbedUnimplementedCertificateCloudflareServer()
  65. }
  66. // UnimplementedCertificateCloudflareServer must be embedded to have forward compatible implementations.
  67. type UnimplementedCertificateCloudflareServer struct {
  68. }
  69. func (UnimplementedCertificateCloudflareServer) CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error) {
  70. return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
  71. }
  72. func (UnimplementedCertificateCloudflareServer) DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error) {
  73. return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented")
  74. }
  75. func (UnimplementedCertificateCloudflareServer) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) {
  76. return nil, status.Errorf(codes.Unimplemented, "method EditCertificate not implemented")
  77. }
  78. func (UnimplementedCertificateCloudflareServer) mustEmbedUnimplementedCertificateCloudflareServer() {}
  79. // UnsafeCertificateCloudflareServer may be embedded to opt out of forward compatibility for this service.
  80. // Use of this interface is not recommended, as added methods to CertificateCloudflareServer will
  81. // result in compilation errors.
  82. type UnsafeCertificateCloudflareServer interface {
  83. mustEmbedUnimplementedCertificateCloudflareServer()
  84. }
  85. func RegisterCertificateCloudflareServer(s grpc.ServiceRegistrar, srv CertificateCloudflareServer) {
  86. s.RegisterService(&CertificateCloudflare_ServiceDesc, srv)
  87. }
  88. func _CertificateCloudflare_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  89. in := new(CreateCertificateRequestCloudflare)
  90. if err := dec(in); err != nil {
  91. return nil, err
  92. }
  93. if interceptor == nil {
  94. return srv.(CertificateCloudflareServer).CreateCertificate(ctx, in)
  95. }
  96. info := &grpc.UnaryServerInfo{
  97. Server: srv,
  98. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate",
  99. }
  100. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  101. return srv.(CertificateCloudflareServer).CreateCertificate(ctx, req.(*CreateCertificateRequestCloudflare))
  102. }
  103. return interceptor(ctx, in, info, handler)
  104. }
  105. func _CertificateCloudflare_DeleteCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  106. in := new(DeleteCertificateRequestCloudflare)
  107. if err := dec(in); err != nil {
  108. return nil, err
  109. }
  110. if interceptor == nil {
  111. return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, in)
  112. }
  113. info := &grpc.UnaryServerInfo{
  114. Server: srv,
  115. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate",
  116. }
  117. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  118. return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, req.(*DeleteCertificateRequestCloudflare))
  119. }
  120. return interceptor(ctx, in, info, handler)
  121. }
  122. func _CertificateCloudflare_EditCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  123. in := new(EditCertificateRequestCloudflare)
  124. if err := dec(in); err != nil {
  125. return nil, err
  126. }
  127. if interceptor == nil {
  128. return srv.(CertificateCloudflareServer).EditCertificate(ctx, in)
  129. }
  130. info := &grpc.UnaryServerInfo{
  131. Server: srv,
  132. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate",
  133. }
  134. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  135. return srv.(CertificateCloudflareServer).EditCertificate(ctx, req.(*EditCertificateRequestCloudflare))
  136. }
  137. return interceptor(ctx, in, info, handler)
  138. }
  139. // CertificateCloudflare_ServiceDesc is the grpc.ServiceDesc for CertificateCloudflare service.
  140. // It's only intended for direct use with grpc.RegisterService,
  141. // and not to be introspected or modified (even as a copy)
  142. var CertificateCloudflare_ServiceDesc = grpc.ServiceDesc{
  143. ServiceName: "cloudflareApi.cache.Certificate.CertificateCloudflare",
  144. HandlerType: (*CertificateCloudflareServer)(nil),
  145. Methods: []grpc.MethodDesc{
  146. {
  147. MethodName: "CreateCertificate",
  148. Handler: _CertificateCloudflare_CreateCertificate_Handler,
  149. },
  150. {
  151. MethodName: "DeleteCertificate",
  152. Handler: _CertificateCloudflare_DeleteCertificate_Handler,
  153. },
  154. {
  155. MethodName: "EditCertificate",
  156. Handler: _CertificateCloudflare_EditCertificate_Handler,
  157. },
  158. },
  159. Streams: []grpc.StreamDesc{},
  160. Metadata: "proto/certificate.proto",
  161. }