logPush_grpc.pb.go 14 KB

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