certificate_grpc.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.4.0
  4. // - protoc v3.20.1
  5. // source: 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.62.0 or later.
  16. const _ = grpc.SupportPackageIsVersion8
  17. const (
  18. CertificateCloudflare_CreateCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate"
  19. CertificateCloudflare_CreateCertificateV2_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificateV2"
  20. CertificateCloudflare_DeleteCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate"
  21. CertificateCloudflare_ListZoneCertificates_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/ListZoneCertificates"
  22. CertificateCloudflare_EditCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate"
  23. CertificateCloudflare_EditCertificateV2_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificateV2"
  24. CertificateCloudflare_UniversalCertificate_FullMethodName = "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate"
  25. )
  26. // CertificateCloudflareClient is the client API for CertificateCloudflare service.
  27. //
  28. // 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.
  29. type CertificateCloudflareClient interface {
  30. // Sends a greeting
  31. CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error)
  32. CreateCertificateV2(ctx context.Context, in *CreateCertificateRequestCloudflareV2, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error)
  33. DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error)
  34. ListZoneCertificates(ctx context.Context, in *ListZoneCertificatesRequestCloudflare, opts ...grpc.CallOption) (*ListZoneCertificatesReplyCloudflare, error)
  35. EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error)
  36. EditCertificateV2(ctx context.Context, in *EditCertificateRequestCloudflareV2, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error)
  37. UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error)
  38. }
  39. type certificateCloudflareClient struct {
  40. cc grpc.ClientConnInterface
  41. }
  42. func NewCertificateCloudflareClient(cc grpc.ClientConnInterface) CertificateCloudflareClient {
  43. return &certificateCloudflareClient{cc}
  44. }
  45. func (c *certificateCloudflareClient) CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) {
  46. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  47. out := new(CreateCertificateReplyCloudflare)
  48. err := c.cc.Invoke(ctx, CertificateCloudflare_CreateCertificate_FullMethodName, in, out, cOpts...)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return out, nil
  53. }
  54. func (c *certificateCloudflareClient) CreateCertificateV2(ctx context.Context, in *CreateCertificateRequestCloudflareV2, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) {
  55. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  56. out := new(CreateCertificateReplyCloudflare)
  57. err := c.cc.Invoke(ctx, CertificateCloudflare_CreateCertificateV2_FullMethodName, in, out, cOpts...)
  58. if err != nil {
  59. return nil, err
  60. }
  61. return out, nil
  62. }
  63. func (c *certificateCloudflareClient) DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error) {
  64. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  65. out := new(DeleteCertificateReplyCloudflare)
  66. err := c.cc.Invoke(ctx, CertificateCloudflare_DeleteCertificate_FullMethodName, in, out, cOpts...)
  67. if err != nil {
  68. return nil, err
  69. }
  70. return out, nil
  71. }
  72. func (c *certificateCloudflareClient) ListZoneCertificates(ctx context.Context, in *ListZoneCertificatesRequestCloudflare, opts ...grpc.CallOption) (*ListZoneCertificatesReplyCloudflare, error) {
  73. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  74. out := new(ListZoneCertificatesReplyCloudflare)
  75. err := c.cc.Invoke(ctx, CertificateCloudflare_ListZoneCertificates_FullMethodName, in, out, cOpts...)
  76. if err != nil {
  77. return nil, err
  78. }
  79. return out, nil
  80. }
  81. func (c *certificateCloudflareClient) EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) {
  82. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  83. out := new(EditCertificateReplyCloudflare)
  84. err := c.cc.Invoke(ctx, CertificateCloudflare_EditCertificate_FullMethodName, in, out, cOpts...)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return out, nil
  89. }
  90. func (c *certificateCloudflareClient) EditCertificateV2(ctx context.Context, in *EditCertificateRequestCloudflareV2, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) {
  91. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  92. out := new(EditCertificateReplyCloudflare)
  93. err := c.cc.Invoke(ctx, CertificateCloudflare_EditCertificateV2_FullMethodName, in, out, cOpts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *certificateCloudflareClient) UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error) {
  100. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  101. out := new(UniversalCertificateReplyCloudflare)
  102. err := c.cc.Invoke(ctx, CertificateCloudflare_UniversalCertificate_FullMethodName, in, out, cOpts...)
  103. if err != nil {
  104. return nil, err
  105. }
  106. return out, nil
  107. }
  108. // CertificateCloudflareServer is the server API for CertificateCloudflare service.
  109. // All implementations must embed UnimplementedCertificateCloudflareServer
  110. // for forward compatibility
  111. type CertificateCloudflareServer interface {
  112. // Sends a greeting
  113. CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error)
  114. CreateCertificateV2(context.Context, *CreateCertificateRequestCloudflareV2) (*CreateCertificateReplyCloudflare, error)
  115. DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error)
  116. ListZoneCertificates(context.Context, *ListZoneCertificatesRequestCloudflare) (*ListZoneCertificatesReplyCloudflare, error)
  117. EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error)
  118. EditCertificateV2(context.Context, *EditCertificateRequestCloudflareV2) (*EditCertificateReplyCloudflare, error)
  119. UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error)
  120. mustEmbedUnimplementedCertificateCloudflareServer()
  121. }
  122. // UnimplementedCertificateCloudflareServer must be embedded to have forward compatible implementations.
  123. type UnimplementedCertificateCloudflareServer struct {
  124. }
  125. func (UnimplementedCertificateCloudflareServer) CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error) {
  126. return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
  127. }
  128. func (UnimplementedCertificateCloudflareServer) CreateCertificateV2(context.Context, *CreateCertificateRequestCloudflareV2) (*CreateCertificateReplyCloudflare, error) {
  129. return nil, status.Errorf(codes.Unimplemented, "method CreateCertificateV2 not implemented")
  130. }
  131. func (UnimplementedCertificateCloudflareServer) DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error) {
  132. return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented")
  133. }
  134. func (UnimplementedCertificateCloudflareServer) ListZoneCertificates(context.Context, *ListZoneCertificatesRequestCloudflare) (*ListZoneCertificatesReplyCloudflare, error) {
  135. return nil, status.Errorf(codes.Unimplemented, "method ListZoneCertificates not implemented")
  136. }
  137. func (UnimplementedCertificateCloudflareServer) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) {
  138. return nil, status.Errorf(codes.Unimplemented, "method EditCertificate not implemented")
  139. }
  140. func (UnimplementedCertificateCloudflareServer) EditCertificateV2(context.Context, *EditCertificateRequestCloudflareV2) (*EditCertificateReplyCloudflare, error) {
  141. return nil, status.Errorf(codes.Unimplemented, "method EditCertificateV2 not implemented")
  142. }
  143. func (UnimplementedCertificateCloudflareServer) UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error) {
  144. return nil, status.Errorf(codes.Unimplemented, "method UniversalCertificate not implemented")
  145. }
  146. func (UnimplementedCertificateCloudflareServer) mustEmbedUnimplementedCertificateCloudflareServer() {}
  147. // UnsafeCertificateCloudflareServer may be embedded to opt out of forward compatibility for this service.
  148. // Use of this interface is not recommended, as added methods to CertificateCloudflareServer will
  149. // result in compilation errors.
  150. type UnsafeCertificateCloudflareServer interface {
  151. mustEmbedUnimplementedCertificateCloudflareServer()
  152. }
  153. func RegisterCertificateCloudflareServer(s grpc.ServiceRegistrar, srv CertificateCloudflareServer) {
  154. s.RegisterService(&CertificateCloudflare_ServiceDesc, srv)
  155. }
  156. func _CertificateCloudflare_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  157. in := new(CreateCertificateRequestCloudflare)
  158. if err := dec(in); err != nil {
  159. return nil, err
  160. }
  161. if interceptor == nil {
  162. return srv.(CertificateCloudflareServer).CreateCertificate(ctx, in)
  163. }
  164. info := &grpc.UnaryServerInfo{
  165. Server: srv,
  166. FullMethod: CertificateCloudflare_CreateCertificate_FullMethodName,
  167. }
  168. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  169. return srv.(CertificateCloudflareServer).CreateCertificate(ctx, req.(*CreateCertificateRequestCloudflare))
  170. }
  171. return interceptor(ctx, in, info, handler)
  172. }
  173. func _CertificateCloudflare_CreateCertificateV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  174. in := new(CreateCertificateRequestCloudflareV2)
  175. if err := dec(in); err != nil {
  176. return nil, err
  177. }
  178. if interceptor == nil {
  179. return srv.(CertificateCloudflareServer).CreateCertificateV2(ctx, in)
  180. }
  181. info := &grpc.UnaryServerInfo{
  182. Server: srv,
  183. FullMethod: CertificateCloudflare_CreateCertificateV2_FullMethodName,
  184. }
  185. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  186. return srv.(CertificateCloudflareServer).CreateCertificateV2(ctx, req.(*CreateCertificateRequestCloudflareV2))
  187. }
  188. return interceptor(ctx, in, info, handler)
  189. }
  190. func _CertificateCloudflare_DeleteCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  191. in := new(DeleteCertificateRequestCloudflare)
  192. if err := dec(in); err != nil {
  193. return nil, err
  194. }
  195. if interceptor == nil {
  196. return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, in)
  197. }
  198. info := &grpc.UnaryServerInfo{
  199. Server: srv,
  200. FullMethod: CertificateCloudflare_DeleteCertificate_FullMethodName,
  201. }
  202. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  203. return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, req.(*DeleteCertificateRequestCloudflare))
  204. }
  205. return interceptor(ctx, in, info, handler)
  206. }
  207. func _CertificateCloudflare_ListZoneCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  208. in := new(ListZoneCertificatesRequestCloudflare)
  209. if err := dec(in); err != nil {
  210. return nil, err
  211. }
  212. if interceptor == nil {
  213. return srv.(CertificateCloudflareServer).ListZoneCertificates(ctx, in)
  214. }
  215. info := &grpc.UnaryServerInfo{
  216. Server: srv,
  217. FullMethod: CertificateCloudflare_ListZoneCertificates_FullMethodName,
  218. }
  219. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  220. return srv.(CertificateCloudflareServer).ListZoneCertificates(ctx, req.(*ListZoneCertificatesRequestCloudflare))
  221. }
  222. return interceptor(ctx, in, info, handler)
  223. }
  224. func _CertificateCloudflare_EditCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  225. in := new(EditCertificateRequestCloudflare)
  226. if err := dec(in); err != nil {
  227. return nil, err
  228. }
  229. if interceptor == nil {
  230. return srv.(CertificateCloudflareServer).EditCertificate(ctx, in)
  231. }
  232. info := &grpc.UnaryServerInfo{
  233. Server: srv,
  234. FullMethod: CertificateCloudflare_EditCertificate_FullMethodName,
  235. }
  236. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  237. return srv.(CertificateCloudflareServer).EditCertificate(ctx, req.(*EditCertificateRequestCloudflare))
  238. }
  239. return interceptor(ctx, in, info, handler)
  240. }
  241. func _CertificateCloudflare_EditCertificateV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  242. in := new(EditCertificateRequestCloudflareV2)
  243. if err := dec(in); err != nil {
  244. return nil, err
  245. }
  246. if interceptor == nil {
  247. return srv.(CertificateCloudflareServer).EditCertificateV2(ctx, in)
  248. }
  249. info := &grpc.UnaryServerInfo{
  250. Server: srv,
  251. FullMethod: CertificateCloudflare_EditCertificateV2_FullMethodName,
  252. }
  253. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  254. return srv.(CertificateCloudflareServer).EditCertificateV2(ctx, req.(*EditCertificateRequestCloudflareV2))
  255. }
  256. return interceptor(ctx, in, info, handler)
  257. }
  258. func _CertificateCloudflare_UniversalCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  259. in := new(UniversalCertificateRequestCloudflare)
  260. if err := dec(in); err != nil {
  261. return nil, err
  262. }
  263. if interceptor == nil {
  264. return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, in)
  265. }
  266. info := &grpc.UnaryServerInfo{
  267. Server: srv,
  268. FullMethod: CertificateCloudflare_UniversalCertificate_FullMethodName,
  269. }
  270. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  271. return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, req.(*UniversalCertificateRequestCloudflare))
  272. }
  273. return interceptor(ctx, in, info, handler)
  274. }
  275. // CertificateCloudflare_ServiceDesc is the grpc.ServiceDesc for CertificateCloudflare service.
  276. // It's only intended for direct use with grpc.RegisterService,
  277. // and not to be introspected or modified (even as a copy)
  278. var CertificateCloudflare_ServiceDesc = grpc.ServiceDesc{
  279. ServiceName: "cloudflareApi.cache.Certificate.CertificateCloudflare",
  280. HandlerType: (*CertificateCloudflareServer)(nil),
  281. Methods: []grpc.MethodDesc{
  282. {
  283. MethodName: "CreateCertificate",
  284. Handler: _CertificateCloudflare_CreateCertificate_Handler,
  285. },
  286. {
  287. MethodName: "CreateCertificateV2",
  288. Handler: _CertificateCloudflare_CreateCertificateV2_Handler,
  289. },
  290. {
  291. MethodName: "DeleteCertificate",
  292. Handler: _CertificateCloudflare_DeleteCertificate_Handler,
  293. },
  294. {
  295. MethodName: "ListZoneCertificates",
  296. Handler: _CertificateCloudflare_ListZoneCertificates_Handler,
  297. },
  298. {
  299. MethodName: "EditCertificate",
  300. Handler: _CertificateCloudflare_EditCertificate_Handler,
  301. },
  302. {
  303. MethodName: "EditCertificateV2",
  304. Handler: _CertificateCloudflare_EditCertificateV2_Handler,
  305. },
  306. {
  307. MethodName: "UniversalCertificate",
  308. Handler: _CertificateCloudflare_UniversalCertificate_Handler,
  309. },
  310. },
  311. Streams: []grpc.StreamDesc{},
  312. Metadata: "certificate.proto",
  313. }