certificate_grpc.pb.go 10 KB

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