Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api/go/experimental/v1/editor_service_grpc.pb.go
2501 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/experimental/v1/editor_service.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
// EditorServiceClient is the client API for EditorService 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 EditorServiceClient interface {
29
ListEditorOptions(ctx context.Context, in *ListEditorOptionsRequest, opts ...grpc.CallOption) (*ListEditorOptionsResponse, error)
30
}
31
32
type editorServiceClient struct {
33
cc grpc.ClientConnInterface
34
}
35
36
func NewEditorServiceClient(cc grpc.ClientConnInterface) EditorServiceClient {
37
return &editorServiceClient{cc}
38
}
39
40
func (c *editorServiceClient) ListEditorOptions(ctx context.Context, in *ListEditorOptionsRequest, opts ...grpc.CallOption) (*ListEditorOptionsResponse, error) {
41
out := new(ListEditorOptionsResponse)
42
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.EditorService/ListEditorOptions", in, out, opts...)
43
if err != nil {
44
return nil, err
45
}
46
return out, nil
47
}
48
49
// EditorServiceServer is the server API for EditorService service.
50
// All implementations must embed UnimplementedEditorServiceServer
51
// for forward compatibility
52
type EditorServiceServer interface {
53
ListEditorOptions(context.Context, *ListEditorOptionsRequest) (*ListEditorOptionsResponse, error)
54
mustEmbedUnimplementedEditorServiceServer()
55
}
56
57
// UnimplementedEditorServiceServer must be embedded to have forward compatible implementations.
58
type UnimplementedEditorServiceServer struct {
59
}
60
61
func (UnimplementedEditorServiceServer) ListEditorOptions(context.Context, *ListEditorOptionsRequest) (*ListEditorOptionsResponse, error) {
62
return nil, status.Errorf(codes.Unimplemented, "method ListEditorOptions not implemented")
63
}
64
func (UnimplementedEditorServiceServer) mustEmbedUnimplementedEditorServiceServer() {}
65
66
// UnsafeEditorServiceServer may be embedded to opt out of forward compatibility for this service.
67
// Use of this interface is not recommended, as added methods to EditorServiceServer will
68
// result in compilation errors.
69
type UnsafeEditorServiceServer interface {
70
mustEmbedUnimplementedEditorServiceServer()
71
}
72
73
func RegisterEditorServiceServer(s grpc.ServiceRegistrar, srv EditorServiceServer) {
74
s.RegisterService(&EditorService_ServiceDesc, srv)
75
}
76
77
func _EditorService_ListEditorOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
78
in := new(ListEditorOptionsRequest)
79
if err := dec(in); err != nil {
80
return nil, err
81
}
82
if interceptor == nil {
83
return srv.(EditorServiceServer).ListEditorOptions(ctx, in)
84
}
85
info := &grpc.UnaryServerInfo{
86
Server: srv,
87
FullMethod: "/gitpod.experimental.v1.EditorService/ListEditorOptions",
88
}
89
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
90
return srv.(EditorServiceServer).ListEditorOptions(ctx, req.(*ListEditorOptionsRequest))
91
}
92
return interceptor(ctx, in, info, handler)
93
}
94
95
// EditorService_ServiceDesc is the grpc.ServiceDesc for EditorService 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 EditorService_ServiceDesc = grpc.ServiceDesc{
99
ServiceName: "gitpod.experimental.v1.EditorService",
100
HandlerType: (*EditorServiceServer)(nil),
101
Methods: []grpc.MethodDesc{
102
{
103
MethodName: "ListEditorOptions",
104
Handler: _EditorService_ListEditorOptions_Handler,
105
},
106
},
107
Streams: []grpc.StreamDesc{},
108
Metadata: "gitpod/experimental/v1/editor_service.proto",
109
}
110
111