certificate_grpc.pb.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.19.1
  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. UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error)
  26. }
  27. type certificateCloudflareClient struct {
  28. cc grpc.ClientConnInterface
  29. }
  30. func NewCertificateCloudflareClient(cc grpc.ClientConnInterface) CertificateCloudflareClient {
  31. return &certificateCloudflareClient{cc}
  32. }
  33. func (c *certificateCloudflareClient) CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) {
  34. out := new(CreateCertificateReplyCloudflare)
  35. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate", in, out, opts...)
  36. if err != nil {
  37. return nil, err
  38. }
  39. return out, nil
  40. }
  41. func (c *certificateCloudflareClient) DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error) {
  42. out := new(DeleteCertificateReplyCloudflare)
  43. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate", in, out, opts...)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return out, nil
  48. }
  49. func (c *certificateCloudflareClient) EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) {
  50. out := new(EditCertificateReplyCloudflare)
  51. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate", in, out, opts...)
  52. if err != nil {
  53. return nil, err
  54. }
  55. return out, nil
  56. }
  57. func (c *certificateCloudflareClient) UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error) {
  58. out := new(UniversalCertificateReplyCloudflare)
  59. err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate", in, out, opts...)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return out, nil
  64. }
  65. // CertificateCloudflareServer is the server API for CertificateCloudflare service.
  66. // All implementations must embed UnimplementedCertificateCloudflareServer
  67. // for forward compatibility
  68. type CertificateCloudflareServer interface {
  69. // Sends a greeting
  70. CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error)
  71. DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error)
  72. EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error)
  73. UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error)
  74. mustEmbedUnimplementedCertificateCloudflareServer()
  75. }
  76. // UnimplementedCertificateCloudflareServer must be embedded to have forward compatible implementations.
  77. type UnimplementedCertificateCloudflareServer struct {
  78. }
  79. func (UnimplementedCertificateCloudflareServer) CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error) {
  80. return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
  81. }
  82. func (UnimplementedCertificateCloudflareServer) DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error) {
  83. return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented")
  84. }
  85. func (UnimplementedCertificateCloudflareServer) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) {
  86. return nil, status.Errorf(codes.Unimplemented, "method EditCertificate not implemented")
  87. }
  88. func (UnimplementedCertificateCloudflareServer) UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error) {
  89. return nil, status.Errorf(codes.Unimplemented, "method UniversalCertificate not implemented")
  90. }
  91. func (UnimplementedCertificateCloudflareServer) mustEmbedUnimplementedCertificateCloudflareServer() {}
  92. // UnsafeCertificateCloudflareServer may be embedded to opt out of forward compatibility for this service.
  93. // Use of this interface is not recommended, as added methods to CertificateCloudflareServer will
  94. // result in compilation errors.
  95. type UnsafeCertificateCloudflareServer interface {
  96. mustEmbedUnimplementedCertificateCloudflareServer()
  97. }
  98. func RegisterCertificateCloudflareServer(s grpc.ServiceRegistrar, srv CertificateCloudflareServer) {
  99. s.RegisterService(&CertificateCloudflare_ServiceDesc, srv)
  100. }
  101. func _CertificateCloudflare_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  102. in := new(CreateCertificateRequestCloudflare)
  103. if err := dec(in); err != nil {
  104. return nil, err
  105. }
  106. if interceptor == nil {
  107. return srv.(CertificateCloudflareServer).CreateCertificate(ctx, in)
  108. }
  109. info := &grpc.UnaryServerInfo{
  110. Server: srv,
  111. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate",
  112. }
  113. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  114. return srv.(CertificateCloudflareServer).CreateCertificate(ctx, req.(*CreateCertificateRequestCloudflare))
  115. }
  116. return interceptor(ctx, in, info, handler)
  117. }
  118. func _CertificateCloudflare_DeleteCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  119. in := new(DeleteCertificateRequestCloudflare)
  120. if err := dec(in); err != nil {
  121. return nil, err
  122. }
  123. if interceptor == nil {
  124. return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, in)
  125. }
  126. info := &grpc.UnaryServerInfo{
  127. Server: srv,
  128. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate",
  129. }
  130. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  131. return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, req.(*DeleteCertificateRequestCloudflare))
  132. }
  133. return interceptor(ctx, in, info, handler)
  134. }
  135. func _CertificateCloudflare_EditCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  136. in := new(EditCertificateRequestCloudflare)
  137. if err := dec(in); err != nil {
  138. return nil, err
  139. }
  140. if interceptor == nil {
  141. return srv.(CertificateCloudflareServer).EditCertificate(ctx, in)
  142. }
  143. info := &grpc.UnaryServerInfo{
  144. Server: srv,
  145. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate",
  146. }
  147. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  148. return srv.(CertificateCloudflareServer).EditCertificate(ctx, req.(*EditCertificateRequestCloudflare))
  149. }
  150. return interceptor(ctx, in, info, handler)
  151. }
  152. func _CertificateCloudflare_UniversalCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  153. in := new(UniversalCertificateRequestCloudflare)
  154. if err := dec(in); err != nil {
  155. return nil, err
  156. }
  157. if interceptor == nil {
  158. return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, in)
  159. }
  160. info := &grpc.UnaryServerInfo{
  161. Server: srv,
  162. FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate",
  163. }
  164. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  165. return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, req.(*UniversalCertificateRequestCloudflare))
  166. }
  167. return interceptor(ctx, in, info, handler)
  168. }
  169. // CertificateCloudflare_ServiceDesc is the grpc.ServiceDesc for CertificateCloudflare service.
  170. // It's only intended for direct use with grpc.RegisterService,
  171. // and not to be introspected or modified (even as a copy)
  172. var CertificateCloudflare_ServiceDesc = grpc.ServiceDesc{
  173. ServiceName: "cloudflareApi.cache.Certificate.CertificateCloudflare",
  174. HandlerType: (*CertificateCloudflareServer)(nil),
  175. Methods: []grpc.MethodDesc{
  176. {
  177. MethodName: "CreateCertificate",
  178. Handler: _CertificateCloudflare_CreateCertificate_Handler,
  179. },
  180. {
  181. MethodName: "DeleteCertificate",
  182. Handler: _CertificateCloudflare_DeleteCertificate_Handler,
  183. },
  184. {
  185. MethodName: "EditCertificate",
  186. Handler: _CertificateCloudflare_EditCertificate_Handler,
  187. },
  188. {
  189. MethodName: "UniversalCertificate",
  190. Handler: _CertificateCloudflare_UniversalCertificate_Handler,
  191. },
  192. },
  193. Streams: []grpc.StreamDesc{},
  194. Metadata: "proto/certificate.proto",
  195. }