123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v3.20.1
- // source: proto/logPush.proto
- package logPush
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- const (
- LogPushCloudflare_ListLogPushJobsByZoneId_FullMethodName = "/cloudflareApi.logPush.LogPushCloudflare/ListLogPushJobsByZoneId"
- LogPushCloudflare_CreateLogPushJobByZoneId_FullMethodName = "/cloudflareApi.logPush.LogPushCloudflare/CreateLogPushJobByZoneId"
- LogPushCloudflare_DeleteLogPushJobByZoneId_FullMethodName = "/cloudflareApi.logPush.LogPushCloudflare/DeleteLogPushJobByZoneId"
- LogPushCloudflare_GetOwnershipChallengeByZoneId_FullMethodName = "/cloudflareApi.logPush.LogPushCloudflare/GetOwnershipChallengeByZoneId"
- LogPushCloudflare_CheckDestinationExist_FullMethodName = "/cloudflareApi.logPush.LogPushCloudflare/CheckDestinationExist"
- LogPushCloudflare_ValidateOwnershipChallenge_FullMethodName = "/cloudflareApi.logPush.LogPushCloudflare/ValidateOwnershipChallenge"
- )
- // LogPushCloudflareClient is the client API for LogPushCloudflare service.
- //
- // 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.
- type LogPushCloudflareClient interface {
- ListLogPushJobsByZoneId(ctx context.Context, in *ListLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*ListLogPushJobReplay, error)
- CreateLogPushJobByZoneId(ctx context.Context, in *CreateLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*CreateLogPushJobReplay, error)
- DeleteLogPushJobByZoneId(ctx context.Context, in *DeleteLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*DeleteLogPushJobReplay, error)
- GetOwnershipChallengeByZoneId(ctx context.Context, in *GetOwnershipChallengeRequestByZoneId, opts ...grpc.CallOption) (*GetOwnershipChallengeReply, error)
- CheckDestinationExist(ctx context.Context, in *CheckDestinationExistRequest, opts ...grpc.CallOption) (*CheckDestinationExistReply, error)
- ValidateOwnershipChallenge(ctx context.Context, in *ValidateOwnershipChallengeRequest, opts ...grpc.CallOption) (*ValidateOwnershipChallengeReply, error)
- }
- type logPushCloudflareClient struct {
- cc grpc.ClientConnInterface
- }
- func NewLogPushCloudflareClient(cc grpc.ClientConnInterface) LogPushCloudflareClient {
- return &logPushCloudflareClient{cc}
- }
- func (c *logPushCloudflareClient) ListLogPushJobsByZoneId(ctx context.Context, in *ListLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*ListLogPushJobReplay, error) {
- out := new(ListLogPushJobReplay)
- err := c.cc.Invoke(ctx, LogPushCloudflare_ListLogPushJobsByZoneId_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *logPushCloudflareClient) CreateLogPushJobByZoneId(ctx context.Context, in *CreateLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*CreateLogPushJobReplay, error) {
- out := new(CreateLogPushJobReplay)
- err := c.cc.Invoke(ctx, LogPushCloudflare_CreateLogPushJobByZoneId_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *logPushCloudflareClient) DeleteLogPushJobByZoneId(ctx context.Context, in *DeleteLogPushJobRequestByZoneId, opts ...grpc.CallOption) (*DeleteLogPushJobReplay, error) {
- out := new(DeleteLogPushJobReplay)
- err := c.cc.Invoke(ctx, LogPushCloudflare_DeleteLogPushJobByZoneId_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *logPushCloudflareClient) GetOwnershipChallengeByZoneId(ctx context.Context, in *GetOwnershipChallengeRequestByZoneId, opts ...grpc.CallOption) (*GetOwnershipChallengeReply, error) {
- out := new(GetOwnershipChallengeReply)
- err := c.cc.Invoke(ctx, LogPushCloudflare_GetOwnershipChallengeByZoneId_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *logPushCloudflareClient) CheckDestinationExist(ctx context.Context, in *CheckDestinationExistRequest, opts ...grpc.CallOption) (*CheckDestinationExistReply, error) {
- out := new(CheckDestinationExistReply)
- err := c.cc.Invoke(ctx, LogPushCloudflare_CheckDestinationExist_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *logPushCloudflareClient) ValidateOwnershipChallenge(ctx context.Context, in *ValidateOwnershipChallengeRequest, opts ...grpc.CallOption) (*ValidateOwnershipChallengeReply, error) {
- out := new(ValidateOwnershipChallengeReply)
- err := c.cc.Invoke(ctx, LogPushCloudflare_ValidateOwnershipChallenge_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // LogPushCloudflareServer is the server API for LogPushCloudflare service.
- // All implementations must embed UnimplementedLogPushCloudflareServer
- // for forward compatibility
- type LogPushCloudflareServer interface {
- ListLogPushJobsByZoneId(context.Context, *ListLogPushJobRequestByZoneId) (*ListLogPushJobReplay, error)
- CreateLogPushJobByZoneId(context.Context, *CreateLogPushJobRequestByZoneId) (*CreateLogPushJobReplay, error)
- DeleteLogPushJobByZoneId(context.Context, *DeleteLogPushJobRequestByZoneId) (*DeleteLogPushJobReplay, error)
- GetOwnershipChallengeByZoneId(context.Context, *GetOwnershipChallengeRequestByZoneId) (*GetOwnershipChallengeReply, error)
- CheckDestinationExist(context.Context, *CheckDestinationExistRequest) (*CheckDestinationExistReply, error)
- ValidateOwnershipChallenge(context.Context, *ValidateOwnershipChallengeRequest) (*ValidateOwnershipChallengeReply, error)
- mustEmbedUnimplementedLogPushCloudflareServer()
- }
- // UnimplementedLogPushCloudflareServer must be embedded to have forward compatible implementations.
- type UnimplementedLogPushCloudflareServer struct {
- }
- func (UnimplementedLogPushCloudflareServer) ListLogPushJobsByZoneId(context.Context, *ListLogPushJobRequestByZoneId) (*ListLogPushJobReplay, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListLogPushJobsByZoneId not implemented")
- }
- func (UnimplementedLogPushCloudflareServer) CreateLogPushJobByZoneId(context.Context, *CreateLogPushJobRequestByZoneId) (*CreateLogPushJobReplay, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateLogPushJobByZoneId not implemented")
- }
- func (UnimplementedLogPushCloudflareServer) DeleteLogPushJobByZoneId(context.Context, *DeleteLogPushJobRequestByZoneId) (*DeleteLogPushJobReplay, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteLogPushJobByZoneId not implemented")
- }
- func (UnimplementedLogPushCloudflareServer) GetOwnershipChallengeByZoneId(context.Context, *GetOwnershipChallengeRequestByZoneId) (*GetOwnershipChallengeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetOwnershipChallengeByZoneId not implemented")
- }
- func (UnimplementedLogPushCloudflareServer) CheckDestinationExist(context.Context, *CheckDestinationExistRequest) (*CheckDestinationExistReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CheckDestinationExist not implemented")
- }
- func (UnimplementedLogPushCloudflareServer) ValidateOwnershipChallenge(context.Context, *ValidateOwnershipChallengeRequest) (*ValidateOwnershipChallengeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ValidateOwnershipChallenge not implemented")
- }
- func (UnimplementedLogPushCloudflareServer) mustEmbedUnimplementedLogPushCloudflareServer() {}
- // UnsafeLogPushCloudflareServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to LogPushCloudflareServer will
- // result in compilation errors.
- type UnsafeLogPushCloudflareServer interface {
- mustEmbedUnimplementedLogPushCloudflareServer()
- }
- func RegisterLogPushCloudflareServer(s grpc.ServiceRegistrar, srv LogPushCloudflareServer) {
- s.RegisterService(&LogPushCloudflare_ServiceDesc, srv)
- }
- func _LogPushCloudflare_ListLogPushJobsByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListLogPushJobRequestByZoneId)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogPushCloudflareServer).ListLogPushJobsByZoneId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LogPushCloudflare_ListLogPushJobsByZoneId_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogPushCloudflareServer).ListLogPushJobsByZoneId(ctx, req.(*ListLogPushJobRequestByZoneId))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LogPushCloudflare_CreateLogPushJobByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateLogPushJobRequestByZoneId)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogPushCloudflareServer).CreateLogPushJobByZoneId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LogPushCloudflare_CreateLogPushJobByZoneId_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogPushCloudflareServer).CreateLogPushJobByZoneId(ctx, req.(*CreateLogPushJobRequestByZoneId))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LogPushCloudflare_DeleteLogPushJobByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteLogPushJobRequestByZoneId)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogPushCloudflareServer).DeleteLogPushJobByZoneId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LogPushCloudflare_DeleteLogPushJobByZoneId_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogPushCloudflareServer).DeleteLogPushJobByZoneId(ctx, req.(*DeleteLogPushJobRequestByZoneId))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LogPushCloudflare_GetOwnershipChallengeByZoneId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetOwnershipChallengeRequestByZoneId)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogPushCloudflareServer).GetOwnershipChallengeByZoneId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LogPushCloudflare_GetOwnershipChallengeByZoneId_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogPushCloudflareServer).GetOwnershipChallengeByZoneId(ctx, req.(*GetOwnershipChallengeRequestByZoneId))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LogPushCloudflare_CheckDestinationExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CheckDestinationExistRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogPushCloudflareServer).CheckDestinationExist(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LogPushCloudflare_CheckDestinationExist_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogPushCloudflareServer).CheckDestinationExist(ctx, req.(*CheckDestinationExistRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LogPushCloudflare_ValidateOwnershipChallenge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ValidateOwnershipChallengeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogPushCloudflareServer).ValidateOwnershipChallenge(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LogPushCloudflare_ValidateOwnershipChallenge_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogPushCloudflareServer).ValidateOwnershipChallenge(ctx, req.(*ValidateOwnershipChallengeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // LogPushCloudflare_ServiceDesc is the grpc.ServiceDesc for LogPushCloudflare service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var LogPushCloudflare_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "cloudflareApi.logPush.LogPushCloudflare",
- HandlerType: (*LogPushCloudflareServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ListLogPushJobsByZoneId",
- Handler: _LogPushCloudflare_ListLogPushJobsByZoneId_Handler,
- },
- {
- MethodName: "CreateLogPushJobByZoneId",
- Handler: _LogPushCloudflare_CreateLogPushJobByZoneId_Handler,
- },
- {
- MethodName: "DeleteLogPushJobByZoneId",
- Handler: _LogPushCloudflare_DeleteLogPushJobByZoneId_Handler,
- },
- {
- MethodName: "GetOwnershipChallengeByZoneId",
- Handler: _LogPushCloudflare_GetOwnershipChallengeByZoneId_Handler,
- },
- {
- MethodName: "CheckDestinationExist",
- Handler: _LogPushCloudflare_CheckDestinationExist_Handler,
- },
- {
- MethodName: "ValidateOwnershipChallenge",
- Handler: _LogPushCloudflare_ValidateOwnershipChallenge_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto/logPush.proto",
- }
|