// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.4 // 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 // 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, "/cloudflareApi.logPush.LogPushCloudflare/ListLogPushJobsByZoneId", 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, "/cloudflareApi.logPush.LogPushCloudflare/CreateLogPushJobByZoneId", 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, "/cloudflareApi.logPush.LogPushCloudflare/DeleteLogPushJobByZoneId", 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, "/cloudflareApi.logPush.LogPushCloudflare/GetOwnershipChallengeByZoneId", 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, "/cloudflareApi.logPush.LogPushCloudflare/CheckDestinationExist", 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, "/cloudflareApi.logPush.LogPushCloudflare/ValidateOwnershipChallenge", 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: "/cloudflareApi.logPush.LogPushCloudflare/ListLogPushJobsByZoneId", } 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: "/cloudflareApi.logPush.LogPushCloudflare/CreateLogPushJobByZoneId", } 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: "/cloudflareApi.logPush.LogPushCloudflare/DeleteLogPushJobByZoneId", } 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: "/cloudflareApi.logPush.LogPushCloudflare/GetOwnershipChallengeByZoneId", } 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: "/cloudflareApi.logPush.LogPushCloudflare/CheckDestinationExist", } 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: "/cloudflareApi.logPush.LogPushCloudflare/ValidateOwnershipChallenge", } 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", }