Path: blob/main/components/public-api/go/v1/auditlogs_grpc.pb.go
2500 views
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-gen-go-grpc. DO NOT EDIT.5// versions:6// - protoc-gen-go-grpc v1.2.07// - protoc (unknown)8// source: gitpod/v1/auditlogs.proto910package v11112import (13context "context"14grpc "google.golang.org/grpc"15codes "google.golang.org/grpc/codes"16status "google.golang.org/grpc/status"17)1819// This is a compile-time assertion to ensure that this generated file20// is compatible with the grpc package it is being compiled against.21// Requires gRPC-Go v1.32.0 or later.22const _ = grpc.SupportPackageIsVersion72324// AuditLogServiceClient is the client API for AuditLogService service.25//26// 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.27type AuditLogServiceClient interface {28// ListAuditLogs returns a list of audit logs29ListAuditLogs(ctx context.Context, in *ListAuditLogsRequest, opts ...grpc.CallOption) (*ListAuditLogsResponse, error)30}3132type auditLogServiceClient struct {33cc grpc.ClientConnInterface34}3536func NewAuditLogServiceClient(cc grpc.ClientConnInterface) AuditLogServiceClient {37return &auditLogServiceClient{cc}38}3940func (c *auditLogServiceClient) ListAuditLogs(ctx context.Context, in *ListAuditLogsRequest, opts ...grpc.CallOption) (*ListAuditLogsResponse, error) {41out := new(ListAuditLogsResponse)42err := c.cc.Invoke(ctx, "/gitpod.v1.AuditLogService/ListAuditLogs", in, out, opts...)43if err != nil {44return nil, err45}46return out, nil47}4849// AuditLogServiceServer is the server API for AuditLogService service.50// All implementations must embed UnimplementedAuditLogServiceServer51// for forward compatibility52type AuditLogServiceServer interface {53// ListAuditLogs returns a list of audit logs54ListAuditLogs(context.Context, *ListAuditLogsRequest) (*ListAuditLogsResponse, error)55mustEmbedUnimplementedAuditLogServiceServer()56}5758// UnimplementedAuditLogServiceServer must be embedded to have forward compatible implementations.59type UnimplementedAuditLogServiceServer struct {60}6162func (UnimplementedAuditLogServiceServer) ListAuditLogs(context.Context, *ListAuditLogsRequest) (*ListAuditLogsResponse, error) {63return nil, status.Errorf(codes.Unimplemented, "method ListAuditLogs not implemented")64}65func (UnimplementedAuditLogServiceServer) mustEmbedUnimplementedAuditLogServiceServer() {}6667// UnsafeAuditLogServiceServer may be embedded to opt out of forward compatibility for this service.68// Use of this interface is not recommended, as added methods to AuditLogServiceServer will69// result in compilation errors.70type UnsafeAuditLogServiceServer interface {71mustEmbedUnimplementedAuditLogServiceServer()72}7374func RegisterAuditLogServiceServer(s grpc.ServiceRegistrar, srv AuditLogServiceServer) {75s.RegisterService(&AuditLogService_ServiceDesc, srv)76}7778func _AuditLogService_ListAuditLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {79in := new(ListAuditLogsRequest)80if err := dec(in); err != nil {81return nil, err82}83if interceptor == nil {84return srv.(AuditLogServiceServer).ListAuditLogs(ctx, in)85}86info := &grpc.UnaryServerInfo{87Server: srv,88FullMethod: "/gitpod.v1.AuditLogService/ListAuditLogs",89}90handler := func(ctx context.Context, req interface{}) (interface{}, error) {91return srv.(AuditLogServiceServer).ListAuditLogs(ctx, req.(*ListAuditLogsRequest))92}93return interceptor(ctx, in, info, handler)94}9596// AuditLogService_ServiceDesc is the grpc.ServiceDesc for AuditLogService service.97// It's only intended for direct use with grpc.RegisterService,98// and not to be introspected or modified (even as a copy)99var AuditLogService_ServiceDesc = grpc.ServiceDesc{100ServiceName: "gitpod.v1.AuditLogService",101HandlerType: (*AuditLogServiceServer)(nil),102Methods: []grpc.MethodDesc{103{104MethodName: "ListAuditLogs",105Handler: _AuditLogService_ListAuditLogs_Handler,106},107},108Streams: []grpc.StreamDesc{},109Metadata: "gitpod/v1/auditlogs.proto",110}111112113