Path: blob/main/components/public-api/go/experimental/v1/stats_grpc.pb.go
2501 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/experimental/v1/stats.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// StatsServiceClient is the client API for StatsService 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 StatsServiceClient interface {28// Retrieves the current user stats29GetUserStats(ctx context.Context, in *GetUserStatsRequest, opts ...grpc.CallOption) (*GetUserStatsResponse, error)30}3132type statsServiceClient struct {33cc grpc.ClientConnInterface34}3536func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient {37return &statsServiceClient{cc}38}3940func (c *statsServiceClient) GetUserStats(ctx context.Context, in *GetUserStatsRequest, opts ...grpc.CallOption) (*GetUserStatsResponse, error) {41out := new(GetUserStatsResponse)42err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.StatsService/GetUserStats", in, out, opts...)43if err != nil {44return nil, err45}46return out, nil47}4849// StatsServiceServer is the server API for StatsService service.50// All implementations must embed UnimplementedStatsServiceServer51// for forward compatibility52type StatsServiceServer interface {53// Retrieves the current user stats54GetUserStats(context.Context, *GetUserStatsRequest) (*GetUserStatsResponse, error)55mustEmbedUnimplementedStatsServiceServer()56}5758// UnimplementedStatsServiceServer must be embedded to have forward compatible implementations.59type UnimplementedStatsServiceServer struct {60}6162func (UnimplementedStatsServiceServer) GetUserStats(context.Context, *GetUserStatsRequest) (*GetUserStatsResponse, error) {63return nil, status.Errorf(codes.Unimplemented, "method GetUserStats not implemented")64}65func (UnimplementedStatsServiceServer) mustEmbedUnimplementedStatsServiceServer() {}6667// UnsafeStatsServiceServer may be embedded to opt out of forward compatibility for this service.68// Use of this interface is not recommended, as added methods to StatsServiceServer will69// result in compilation errors.70type UnsafeStatsServiceServer interface {71mustEmbedUnimplementedStatsServiceServer()72}7374func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer) {75s.RegisterService(&StatsService_ServiceDesc, srv)76}7778func _StatsService_GetUserStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {79in := new(GetUserStatsRequest)80if err := dec(in); err != nil {81return nil, err82}83if interceptor == nil {84return srv.(StatsServiceServer).GetUserStats(ctx, in)85}86info := &grpc.UnaryServerInfo{87Server: srv,88FullMethod: "/gitpod.experimental.v1.StatsService/GetUserStats",89}90handler := func(ctx context.Context, req interface{}) (interface{}, error) {91return srv.(StatsServiceServer).GetUserStats(ctx, req.(*GetUserStatsRequest))92}93return interceptor(ctx, in, info, handler)94}9596// StatsService_ServiceDesc is the grpc.ServiceDesc for StatsService 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 StatsService_ServiceDesc = grpc.ServiceDesc{100ServiceName: "gitpod.experimental.v1.StatsService",101HandlerType: (*StatsServiceServer)(nil),102Methods: []grpc.MethodDesc{103{104MethodName: "GetUserStats",105Handler: _StatsService_GetUserStats_Handler,106},107},108Streams: []grpc.StreamDesc{},109Metadata: "gitpod/experimental/v1/stats.proto",110}111112113