Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api/go/v1/auditlogs_grpc.pb.go
2500 views
1
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
6
// versions:
7
// - protoc-gen-go-grpc v1.2.0
8
// - protoc (unknown)
9
// source: gitpod/v1/auditlogs.proto
10
11
package v1
12
13
import (
14
context "context"
15
grpc "google.golang.org/grpc"
16
codes "google.golang.org/grpc/codes"
17
status "google.golang.org/grpc/status"
18
)
19
20
// This is a compile-time assertion to ensure that this generated file
21
// is compatible with the grpc package it is being compiled against.
22
// Requires gRPC-Go v1.32.0 or later.
23
const _ = grpc.SupportPackageIsVersion7
24
25
// AuditLogServiceClient is the client API for AuditLogService 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 AuditLogServiceClient interface {
29
// ListAuditLogs returns a list of audit logs
30
ListAuditLogs(ctx context.Context, in *ListAuditLogsRequest, opts ...grpc.CallOption) (*ListAuditLogsResponse, error)
31
}
32
33
type auditLogServiceClient struct {
34
cc grpc.ClientConnInterface
35
}
36
37
func NewAuditLogServiceClient(cc grpc.ClientConnInterface) AuditLogServiceClient {
38
return &auditLogServiceClient{cc}
39
}
40
41
func (c *auditLogServiceClient) ListAuditLogs(ctx context.Context, in *ListAuditLogsRequest, opts ...grpc.CallOption) (*ListAuditLogsResponse, error) {
42
out := new(ListAuditLogsResponse)
43
err := c.cc.Invoke(ctx, "/gitpod.v1.AuditLogService/ListAuditLogs", in, out, opts...)
44
if err != nil {
45
return nil, err
46
}
47
return out, nil
48
}
49
50
// AuditLogServiceServer is the server API for AuditLogService service.
51
// All implementations must embed UnimplementedAuditLogServiceServer
52
// for forward compatibility
53
type AuditLogServiceServer interface {
54
// ListAuditLogs returns a list of audit logs
55
ListAuditLogs(context.Context, *ListAuditLogsRequest) (*ListAuditLogsResponse, error)
56
mustEmbedUnimplementedAuditLogServiceServer()
57
}
58
59
// UnimplementedAuditLogServiceServer must be embedded to have forward compatible implementations.
60
type UnimplementedAuditLogServiceServer struct {
61
}
62
63
func (UnimplementedAuditLogServiceServer) ListAuditLogs(context.Context, *ListAuditLogsRequest) (*ListAuditLogsResponse, error) {
64
return nil, status.Errorf(codes.Unimplemented, "method ListAuditLogs not implemented")
65
}
66
func (UnimplementedAuditLogServiceServer) mustEmbedUnimplementedAuditLogServiceServer() {}
67
68
// UnsafeAuditLogServiceServer may be embedded to opt out of forward compatibility for this service.
69
// Use of this interface is not recommended, as added methods to AuditLogServiceServer will
70
// result in compilation errors.
71
type UnsafeAuditLogServiceServer interface {
72
mustEmbedUnimplementedAuditLogServiceServer()
73
}
74
75
func RegisterAuditLogServiceServer(s grpc.ServiceRegistrar, srv AuditLogServiceServer) {
76
s.RegisterService(&AuditLogService_ServiceDesc, srv)
77
}
78
79
func _AuditLogService_ListAuditLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
80
in := new(ListAuditLogsRequest)
81
if err := dec(in); err != nil {
82
return nil, err
83
}
84
if interceptor == nil {
85
return srv.(AuditLogServiceServer).ListAuditLogs(ctx, in)
86
}
87
info := &grpc.UnaryServerInfo{
88
Server: srv,
89
FullMethod: "/gitpod.v1.AuditLogService/ListAuditLogs",
90
}
91
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
92
return srv.(AuditLogServiceServer).ListAuditLogs(ctx, req.(*ListAuditLogsRequest))
93
}
94
return interceptor(ctx, in, info, handler)
95
}
96
97
// AuditLogService_ServiceDesc is the grpc.ServiceDesc for AuditLogService service.
98
// It's only intended for direct use with grpc.RegisterService,
99
// and not to be introspected or modified (even as a copy)
100
var AuditLogService_ServiceDesc = grpc.ServiceDesc{
101
ServiceName: "gitpod.v1.AuditLogService",
102
HandlerType: (*AuditLogServiceServer)(nil),
103
Methods: []grpc.MethodDesc{
104
{
105
MethodName: "ListAuditLogs",
106
Handler: _AuditLogService_ListAuditLogs_Handler,
107
},
108
},
109
Streams: []grpc.StreamDesc{},
110
Metadata: "gitpod/v1/auditlogs.proto",
111
}
112
113