logPush_grpc.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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/logPush.proto
  6. package logPush
  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. // LogPushCloudflareClient is the client API for LogPushCloudflare 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 LogPushCloudflareClient interface {
  21. ListLogPushJobsByZoneId(ctx context.Context, in *ListLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*ListLogPushJobReplay, error)
  22. CreateLogPushJobByZoneId(ctx context.Context, in *CreateLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*CreateLogPushJobReplay, error)
  23. DeleteLogPushJobByZoneId(ctx context.Context, in *DeleteLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*DeleteLogPushJobReplay, error)
  24. GetOwnershipChallengeByZoneId(ctx context.Context, in *GetOwnershipChallengeRequestByZoneId, opts ...grpc.CallOption) (*GetOwnershipChallengeReply, error)
  25. CheckDestinationExist(ctx context.Context, in *CheckDestinationExistRequest, opts ...grpc.CallOption) (*CheckDestinationExistReply, error)
  26. ValidateOwnershipChallenge(ctx context.Context, in *ValidateOwnershipChallengeRequest, opts ...grpc.CallOption) (*ValidateOwnershipChallengeReply, error)
  27. }
  28. type logPushCloudflareClient struct {
  29. cc grpc.ClientConnInterface
  30. }
  31. func NewLogPushCloudflareClient(cc grpc.ClientConnInterface) LogPushCloudflareClient {
  32. return &logPushCloudflareClient{cc}
  33. }
  34. func (c *logPushCloudflareClient) ListLogPushJobsByZoneId(ctx context.Context, in *ListLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*ListLogPushJobReplay, error) {
  35. out := new(ListLogPushJobReplay)
  36. err := c.cc.Invoke(ctx, "/cloudflareApi.logPush.LogPushCloudflare/ListLogPushJobsByZoneId", in, out, opts...)
  37. if err != nil {
  38. return nil, err
  39. }
  40. return out, nil
  41. }
  42. func (c *logPushCloudflareClient) CreateLogPushJobByZoneId(ctx context.Context, in *CreateLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*CreateLogPushJobReplay, error) {
  43. out := new(CreateLogPushJobReplay)
  44. err := c.cc.Invoke(ctx, "/cloudflareApi.logPush.LogPushCloudflare/CreateLogPushJobByZoneId", in, out, opts...)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return out, nil
  49. }
  50. func (c *logPushCloudflareClient) DeleteLogPushJobByZoneId(ctx context.Context, in *DeleteLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*DeleteLogPushJobReplay, error) {
  51. out := new(DeleteLogPushJobReplay)
  52. err := c.cc.Invoke(ctx, "/cloudflareApi.logPush.LogPushCloudflare/DeleteLogPushJobByZoneId", in, out, opts...)
  53. if err != nil {
  54. return nil, err
  55. }
  56. return out, nil
  57. }
  58. func (c *logPushCloudflareClient) GetOwnershipChallengeByZoneId(ctx context.Context, in *GetOwnershipChallengeRequestByZoneId, opts ...grpc.CallOption) (*GetOwnershipChallengeReply, error) {
  59. out := new(GetOwnershipChallengeReply)
  60. err := c.cc.Invoke(ctx, "/cloudflareApi.logPush.LogPushCloudflare/GetOwnershipChallengeByZoneId", in, out, opts...)
  61. if err != nil {
  62. return nil, err
  63. }
  64. return out, nil
  65. }
  66. func (c *logPushCloudflareClient) CheckDestinationExist(ctx context.Context, in *CheckDestinationExistRequest, opts ...grpc.CallOption) (*CheckDestinationExistReply, error) {
  67. out := new(CheckDestinationExistReply)
  68. err := c.cc.Invoke(ctx, "/cloudflareApi.logPush.LogPushCloudflare/CheckDestinationExist", in, out, opts...)
  69. if err != nil {
  70. return nil, err
  71. }
  72. return out, nil
  73. }
  74. func (c *logPushCloudflareClient) ValidateOwnershipChallenge(ctx context.Context, in *ValidateOwnershipChallengeRequest, opts ...grpc.CallOption) (*ValidateOwnershipChallengeReply, error) {
  75. out := new(ValidateOwnershipChallengeReply)
  76. err := c.cc.Invoke(ctx, "/cloudflareApi.logPush.LogPushCloudflare/ValidateOwnershipChallenge", in, out, opts...)
  77. if err != nil {
  78. return nil, err
  79. }
  80. return out, nil
  81. }
  82. // LogPushCloudflareServer is the server API for LogPushCloudflare service.
  83. // All implementations must embed UnimplementedLogPushCloudflareServer
  84. // for forward compatibility
  85. type LogPushCloudflareServer interface {
  86. ListLogPushJobsByZoneId(context.Context, *ListLogPushJobRequestByZoneId) (*ListLogPushJobReplay, error)
  87. CreateLogPushJobByZoneId(context.Context, *CreateLogPushJobRequestByZoneId) (*CreateLogPushJobReplay, error)
  88. DeleteLogPushJobByZoneId(context.Context, *DeleteLogPushJobRequestByZoneId) (*DeleteLogPushJobReplay, error)
  89. GetOwnershipChallengeByZoneId(context.Context, *GetOwnershipChallengeRequestByZoneId) (*GetOwnershipChallengeReply, error)
  90. CheckDestinationExist(context.Context, *CheckDestinationExistRequest) (*CheckDestinationExistReply, error)
  91. ValidateOwnershipChallenge(context.Context, *ValidateOwnershipChallengeRequest) (*ValidateOwnershipChallengeReply, error)
  92. mustEmbedUnimplementedLogPushCloudflareServer()
  93. }
  94. // UnimplementedLogPushCloudflareServer must be embedded to have forward compatible implementations.
  95. type UnimplementedLogPushCloudflareServer struct {
  96. }
  97. func (UnimplementedLogPushCloudflareServer) ListLogPushJobsByZoneId(context.Context, *ListLogPushJobRequestByZoneId) (*ListLogPushJobReplay, error) {
  98. return nil, status.Errorf(codes.Unimplemented, "method ListLogPushJobsByZoneId not implemented")
  99. }
  100. func (UnimplementedLogPushCloudflareServer) CreateLogPushJobByZoneId(context.Context, *CreateLogPushJobRequestByZoneId) (*CreateLogPushJobReplay, error) {
  101. return nil, status.Errorf(codes.Unimplemented, "method CreateLogPushJobByZoneId not implemented")
  102. }
  103. func (UnimplementedLogPushCloudflareServer) DeleteLogPushJobByZoneId(context.Context, *DeleteLogPushJobRequestByZoneId) (*DeleteLogPushJobReplay, error) {
  104. return nil, status.Errorf(codes.Unimplemented, "method DeleteLogPushJobByZoneId not implemented")
  105. }
  106. func (UnimplementedLogPushCloudflareServer) GetOwnershipChallengeByZoneId(context.Context, *GetOwnershipChallengeRequestByZoneId) (*GetOwnershipChallengeReply, error) {
  107. return nil, status.Errorf(codes.Unimplemented, "method GetOwnershipChallengeByZoneId not implemented")
  108. }
  109. func (UnimplementedLogPushCloudflareServer) CheckDestinationExist(context.Context, *CheckDestinationExistRequest) (*CheckDestinationExistReply, error) {
  110. return nil, status.Errorf(codes.Unimplemented, "method CheckDestinationExist not implemented")
  111. }
  112. func (UnimplementedLogPushCloudflareServer) ValidateOwnershipChallenge(context.Context, *ValidateOwnershipChallengeRequest) (*ValidateOwnershipChallengeReply, error) {
  113. return nil, status.Errorf(codes.Unimplemented, "method ValidateOwnershipChallenge not implemented")
  114. }
  115. func (UnimplementedLogPushCloudflareServer) mustEmbedUnimplementedLogPushCloudflareServer() {}
  116. // UnsafeLogPushCloudflareServer may be embedded to opt out of forward compatibility for this service.
  117. // Use of this interface is not recommended, as added methods to LogPushCloudflareServer will
  118. // result in compilation errors.
  119. type UnsafeLogPushCloudflareServer interface {
  120. mustEmbedUnimplementedLogPushCloudflareServer()
  121. }
  122. func RegisterLogPushCloudflareServer(s grpc.ServiceRegistrar, srv LogPushCloudflareServer) {
  123. s.RegisterService(&LogPushCloudflare_ServiceDesc, srv)
  124. }
  125. func _LogPushCloudflare_ListLogPushJobsByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  126. in := new(ListLogPushJobRequestByZoneId)
  127. if err := dec(in); err != nil {
  128. return nil, err
  129. }
  130. if interceptor == nil {
  131. return srv.(LogPushCloudflareServer).ListLogPushJobsByZoneId(ctx, in)
  132. }
  133. info := &grpc.UnaryServerInfo{
  134. Server: srv,
  135. FullMethod: "/cloudflareApi.logPush.LogPushCloudflare/ListLogPushJobsByZoneId",
  136. }
  137. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  138. return srv.(LogPushCloudflareServer).ListLogPushJobsByZoneId(ctx, req.(*ListLogPushJobRequestByZoneId))
  139. }
  140. return interceptor(ctx, in, info, handler)
  141. }
  142. func _LogPushCloudflare_CreateLogPushJobByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  143. in := new(CreateLogPushJobRequestByZoneId)
  144. if err := dec(in); err != nil {
  145. return nil, err
  146. }
  147. if interceptor == nil {
  148. return srv.(LogPushCloudflareServer).CreateLogPushJobByZoneId(ctx, in)
  149. }
  150. info := &grpc.UnaryServerInfo{
  151. Server: srv,
  152. FullMethod: "/cloudflareApi.logPush.LogPushCloudflare/CreateLogPushJobByZoneId",
  153. }
  154. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  155. return srv.(LogPushCloudflareServer).CreateLogPushJobByZoneId(ctx, req.(*CreateLogPushJobRequestByZoneId))
  156. }
  157. return interceptor(ctx, in, info, handler)
  158. }
  159. func _LogPushCloudflare_DeleteLogPushJobByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  160. in := new(DeleteLogPushJobRequestByZoneId)
  161. if err := dec(in); err != nil {
  162. return nil, err
  163. }
  164. if interceptor == nil {
  165. return srv.(LogPushCloudflareServer).DeleteLogPushJobByZoneId(ctx, in)
  166. }
  167. info := &grpc.UnaryServerInfo{
  168. Server: srv,
  169. FullMethod: "/cloudflareApi.logPush.LogPushCloudflare/DeleteLogPushJobByZoneId",
  170. }
  171. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  172. return srv.(LogPushCloudflareServer).DeleteLogPushJobByZoneId(ctx, req.(*DeleteLogPushJobRequestByZoneId))
  173. }
  174. return interceptor(ctx, in, info, handler)
  175. }
  176. func _LogPushCloudflare_GetOwnershipChallengeByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  177. in := new(GetOwnershipChallengeRequestByZoneId)
  178. if err := dec(in); err != nil {
  179. return nil, err
  180. }
  181. if interceptor == nil {
  182. return srv.(LogPushCloudflareServer).GetOwnershipChallengeByZoneId(ctx, in)
  183. }
  184. info := &grpc.UnaryServerInfo{
  185. Server: srv,
  186. FullMethod: "/cloudflareApi.logPush.LogPushCloudflare/GetOwnershipChallengeByZoneId",
  187. }
  188. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  189. return srv.(LogPushCloudflareServer).GetOwnershipChallengeByZoneId(ctx, req.(*GetOwnershipChallengeRequestByZoneId))
  190. }
  191. return interceptor(ctx, in, info, handler)
  192. }
  193. func _LogPushCloudflare_CheckDestinationExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  194. in := new(CheckDestinationExistRequest)
  195. if err := dec(in); err != nil {
  196. return nil, err
  197. }
  198. if interceptor == nil {
  199. return srv.(LogPushCloudflareServer).CheckDestinationExist(ctx, in)
  200. }
  201. info := &grpc.UnaryServerInfo{
  202. Server: srv,
  203. FullMethod: "/cloudflareApi.logPush.LogPushCloudflare/CheckDestinationExist",
  204. }
  205. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  206. return srv.(LogPushCloudflareServer).CheckDestinationExist(ctx, req.(*CheckDestinationExistRequest))
  207. }
  208. return interceptor(ctx, in, info, handler)
  209. }
  210. func _LogPushCloudflare_ValidateOwnershipChallenge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  211. in := new(ValidateOwnershipChallengeRequest)
  212. if err := dec(in); err != nil {
  213. return nil, err
  214. }
  215. if interceptor == nil {
  216. return srv.(LogPushCloudflareServer).ValidateOwnershipChallenge(ctx, in)
  217. }
  218. info := &grpc.UnaryServerInfo{
  219. Server: srv,
  220. FullMethod: "/cloudflareApi.logPush.LogPushCloudflare/ValidateOwnershipChallenge",
  221. }
  222. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  223. return srv.(LogPushCloudflareServer).ValidateOwnershipChallenge(ctx, req.(*ValidateOwnershipChallengeRequest))
  224. }
  225. return interceptor(ctx, in, info, handler)
  226. }
  227. // LogPushCloudflare_ServiceDesc is the grpc.ServiceDesc for LogPushCloudflare service.
  228. // It's only intended for direct use with grpc.RegisterService,
  229. // and not to be introspected or modified (even as a copy)
  230. var LogPushCloudflare_ServiceDesc = grpc.ServiceDesc{
  231. ServiceName: "cloudflareApi.logPush.LogPushCloudflare",
  232. HandlerType: (*LogPushCloudflareServer)(nil),
  233. Methods: []grpc.MethodDesc{
  234. {
  235. MethodName: "ListLogPushJobsByZoneId",
  236. Handler: _LogPushCloudflare_ListLogPushJobsByZoneId_Handler,
  237. },
  238. {
  239. MethodName: "CreateLogPushJobByZoneId",
  240. Handler: _LogPushCloudflare_CreateLogPushJobByZoneId_Handler,
  241. },
  242. {
  243. MethodName: "DeleteLogPushJobByZoneId",
  244. Handler: _LogPushCloudflare_DeleteLogPushJobByZoneId_Handler,
  245. },
  246. {
  247. MethodName: "GetOwnershipChallengeByZoneId",
  248. Handler: _LogPushCloudflare_GetOwnershipChallengeByZoneId_Handler,
  249. },
  250. {
  251. MethodName: "CheckDestinationExist",
  252. Handler: _LogPushCloudflare_CheckDestinationExist_Handler,
  253. },
  254. {
  255. MethodName: "ValidateOwnershipChallenge",
  256. Handler: _LogPushCloudflare_ValidateOwnershipChallenge_Handler,
  257. },
  258. },
  259. Streams: []grpc.StreamDesc{},
  260. Metadata: "proto/logPush.proto",
  261. }