Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/supervisor-api/go/info_grpc.pb.go
2496 views
1
// Copyright (c) 2023 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 v3.20.1
9
// source: info.proto
10
11
package api
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
// InfoServiceClient is the client API for InfoService 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 InfoServiceClient interface {
29
WorkspaceInfo(ctx context.Context, in *WorkspaceInfoRequest, opts ...grpc.CallOption) (*WorkspaceInfoResponse, error)
30
}
31
32
type infoServiceClient struct {
33
cc grpc.ClientConnInterface
34
}
35
36
func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient {
37
return &infoServiceClient{cc}
38
}
39
40
func (c *infoServiceClient) WorkspaceInfo(ctx context.Context, in *WorkspaceInfoRequest, opts ...grpc.CallOption) (*WorkspaceInfoResponse, error) {
41
out := new(WorkspaceInfoResponse)
42
err := c.cc.Invoke(ctx, "/supervisor.InfoService/WorkspaceInfo", in, out, opts...)
43
if err != nil {
44
return nil, err
45
}
46
return out, nil
47
}
48
49
// InfoServiceServer is the server API for InfoService service.
50
// All implementations must embed UnimplementedInfoServiceServer
51
// for forward compatibility
52
type InfoServiceServer interface {
53
WorkspaceInfo(context.Context, *WorkspaceInfoRequest) (*WorkspaceInfoResponse, error)
54
mustEmbedUnimplementedInfoServiceServer()
55
}
56
57
// UnimplementedInfoServiceServer must be embedded to have forward compatible implementations.
58
type UnimplementedInfoServiceServer struct {
59
}
60
61
func (UnimplementedInfoServiceServer) WorkspaceInfo(context.Context, *WorkspaceInfoRequest) (*WorkspaceInfoResponse, error) {
62
return nil, status.Errorf(codes.Unimplemented, "method WorkspaceInfo not implemented")
63
}
64
func (UnimplementedInfoServiceServer) mustEmbedUnimplementedInfoServiceServer() {}
65
66
// UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service.
67
// Use of this interface is not recommended, as added methods to InfoServiceServer will
68
// result in compilation errors.
69
type UnsafeInfoServiceServer interface {
70
mustEmbedUnimplementedInfoServiceServer()
71
}
72
73
func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer) {
74
s.RegisterService(&InfoService_ServiceDesc, srv)
75
}
76
77
func _InfoService_WorkspaceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
78
in := new(WorkspaceInfoRequest)
79
if err := dec(in); err != nil {
80
return nil, err
81
}
82
if interceptor == nil {
83
return srv.(InfoServiceServer).WorkspaceInfo(ctx, in)
84
}
85
info := &grpc.UnaryServerInfo{
86
Server: srv,
87
FullMethod: "/supervisor.InfoService/WorkspaceInfo",
88
}
89
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
90
return srv.(InfoServiceServer).WorkspaceInfo(ctx, req.(*WorkspaceInfoRequest))
91
}
92
return interceptor(ctx, in, info, handler)
93
}
94
95
// InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService service.
96
// It's only intended for direct use with grpc.RegisterService,
97
// and not to be introspected or modified (even as a copy)
98
var InfoService_ServiceDesc = grpc.ServiceDesc{
99
ServiceName: "supervisor.InfoService",
100
HandlerType: (*InfoServiceServer)(nil),
101
Methods: []grpc.MethodDesc{
102
{
103
MethodName: "WorkspaceInfo",
104
Handler: _InfoService_WorkspaceInfo_Handler,
105
},
106
},
107
Streams: []grpc.StreamDesc{},
108
Metadata: "info.proto",
109
}
110
111