Path: blob/main/components/public-api/go/experimental/v1/editor_service_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/editor_service.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// EditorServiceClient is the client API for EditorService 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 EditorServiceClient interface {28ListEditorOptions(ctx context.Context, in *ListEditorOptionsRequest, opts ...grpc.CallOption) (*ListEditorOptionsResponse, error)29}3031type editorServiceClient struct {32cc grpc.ClientConnInterface33}3435func NewEditorServiceClient(cc grpc.ClientConnInterface) EditorServiceClient {36return &editorServiceClient{cc}37}3839func (c *editorServiceClient) ListEditorOptions(ctx context.Context, in *ListEditorOptionsRequest, opts ...grpc.CallOption) (*ListEditorOptionsResponse, error) {40out := new(ListEditorOptionsResponse)41err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.EditorService/ListEditorOptions", in, out, opts...)42if err != nil {43return nil, err44}45return out, nil46}4748// EditorServiceServer is the server API for EditorService service.49// All implementations must embed UnimplementedEditorServiceServer50// for forward compatibility51type EditorServiceServer interface {52ListEditorOptions(context.Context, *ListEditorOptionsRequest) (*ListEditorOptionsResponse, error)53mustEmbedUnimplementedEditorServiceServer()54}5556// UnimplementedEditorServiceServer must be embedded to have forward compatible implementations.57type UnimplementedEditorServiceServer struct {58}5960func (UnimplementedEditorServiceServer) ListEditorOptions(context.Context, *ListEditorOptionsRequest) (*ListEditorOptionsResponse, error) {61return nil, status.Errorf(codes.Unimplemented, "method ListEditorOptions not implemented")62}63func (UnimplementedEditorServiceServer) mustEmbedUnimplementedEditorServiceServer() {}6465// UnsafeEditorServiceServer may be embedded to opt out of forward compatibility for this service.66// Use of this interface is not recommended, as added methods to EditorServiceServer will67// result in compilation errors.68type UnsafeEditorServiceServer interface {69mustEmbedUnimplementedEditorServiceServer()70}7172func RegisterEditorServiceServer(s grpc.ServiceRegistrar, srv EditorServiceServer) {73s.RegisterService(&EditorService_ServiceDesc, srv)74}7576func _EditorService_ListEditorOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {77in := new(ListEditorOptionsRequest)78if err := dec(in); err != nil {79return nil, err80}81if interceptor == nil {82return srv.(EditorServiceServer).ListEditorOptions(ctx, in)83}84info := &grpc.UnaryServerInfo{85Server: srv,86FullMethod: "/gitpod.experimental.v1.EditorService/ListEditorOptions",87}88handler := func(ctx context.Context, req interface{}) (interface{}, error) {89return srv.(EditorServiceServer).ListEditorOptions(ctx, req.(*ListEditorOptionsRequest))90}91return interceptor(ctx, in, info, handler)92}9394// EditorService_ServiceDesc is the grpc.ServiceDesc for EditorService service.95// It's only intended for direct use with grpc.RegisterService,96// and not to be introspected or modified (even as a copy)97var EditorService_ServiceDesc = grpc.ServiceDesc{98ServiceName: "gitpod.experimental.v1.EditorService",99HandlerType: (*EditorServiceServer)(nil),100Methods: []grpc.MethodDesc{101{102MethodName: "ListEditorOptions",103Handler: _EditorService_ListEditorOptions_Handler,104},105},106Streams: []grpc.StreamDesc{},107Metadata: "gitpod/experimental/v1/editor_service.proto",108}109110111