mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* UI reorg * generated stuffs * Make it woooooooork * Classier placeholder * Remove unneeded fragment * Introduce `enterprise_onboarding_enabled` flag * move things properly * add ipv6 localhost
110 lines
4.1 KiB
Go
110 lines
4.1 KiB
Go
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License.AGPL.txt in the project root for license information.
|
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
// - protoc (unknown)
|
|
// source: gitpod/experimental/v1/editor_service.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
// EditorServiceClient is the client API for EditorService service.
|
|
//
|
|
// 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.
|
|
type EditorServiceClient interface {
|
|
ListEditorOptions(ctx context.Context, in *ListEditorOptionsRequest, opts ...grpc.CallOption) (*ListEditorOptionsResponse, error)
|
|
}
|
|
|
|
type editorServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewEditorServiceClient(cc grpc.ClientConnInterface) EditorServiceClient {
|
|
return &editorServiceClient{cc}
|
|
}
|
|
|
|
func (c *editorServiceClient) ListEditorOptions(ctx context.Context, in *ListEditorOptionsRequest, opts ...grpc.CallOption) (*ListEditorOptionsResponse, error) {
|
|
out := new(ListEditorOptionsResponse)
|
|
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.EditorService/ListEditorOptions", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// EditorServiceServer is the server API for EditorService service.
|
|
// All implementations must embed UnimplementedEditorServiceServer
|
|
// for forward compatibility
|
|
type EditorServiceServer interface {
|
|
ListEditorOptions(context.Context, *ListEditorOptionsRequest) (*ListEditorOptionsResponse, error)
|
|
mustEmbedUnimplementedEditorServiceServer()
|
|
}
|
|
|
|
// UnimplementedEditorServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedEditorServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedEditorServiceServer) ListEditorOptions(context.Context, *ListEditorOptionsRequest) (*ListEditorOptionsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListEditorOptions not implemented")
|
|
}
|
|
func (UnimplementedEditorServiceServer) mustEmbedUnimplementedEditorServiceServer() {}
|
|
|
|
// UnsafeEditorServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to EditorServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeEditorServiceServer interface {
|
|
mustEmbedUnimplementedEditorServiceServer()
|
|
}
|
|
|
|
func RegisterEditorServiceServer(s grpc.ServiceRegistrar, srv EditorServiceServer) {
|
|
s.RegisterService(&EditorService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _EditorService_ListEditorOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListEditorOptionsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(EditorServiceServer).ListEditorOptions(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/gitpod.experimental.v1.EditorService/ListEditorOptions",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(EditorServiceServer).ListEditorOptions(ctx, req.(*ListEditorOptionsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// EditorService_ServiceDesc is the grpc.ServiceDesc for EditorService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var EditorService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "gitpod.experimental.v1.EditorService",
|
|
HandlerType: (*EditorServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ListEditorOptions",
|
|
Handler: _EditorService_ListEditorOptions_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "gitpod/experimental/v1/editor_service.proto",
|
|
}
|