Path: blob/main/components/supervisor-api/go/info_grpc.pb.go
2496 views
// Copyright (c) 2023 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 v3.20.18// source: info.proto910package api1112import (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// InfoServiceClient is the client API for InfoService 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 InfoServiceClient interface {28WorkspaceInfo(ctx context.Context, in *WorkspaceInfoRequest, opts ...grpc.CallOption) (*WorkspaceInfoResponse, error)29}3031type infoServiceClient struct {32cc grpc.ClientConnInterface33}3435func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient {36return &infoServiceClient{cc}37}3839func (c *infoServiceClient) WorkspaceInfo(ctx context.Context, in *WorkspaceInfoRequest, opts ...grpc.CallOption) (*WorkspaceInfoResponse, error) {40out := new(WorkspaceInfoResponse)41err := c.cc.Invoke(ctx, "/supervisor.InfoService/WorkspaceInfo", in, out, opts...)42if err != nil {43return nil, err44}45return out, nil46}4748// InfoServiceServer is the server API for InfoService service.49// All implementations must embed UnimplementedInfoServiceServer50// for forward compatibility51type InfoServiceServer interface {52WorkspaceInfo(context.Context, *WorkspaceInfoRequest) (*WorkspaceInfoResponse, error)53mustEmbedUnimplementedInfoServiceServer()54}5556// UnimplementedInfoServiceServer must be embedded to have forward compatible implementations.57type UnimplementedInfoServiceServer struct {58}5960func (UnimplementedInfoServiceServer) WorkspaceInfo(context.Context, *WorkspaceInfoRequest) (*WorkspaceInfoResponse, error) {61return nil, status.Errorf(codes.Unimplemented, "method WorkspaceInfo not implemented")62}63func (UnimplementedInfoServiceServer) mustEmbedUnimplementedInfoServiceServer() {}6465// UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service.66// Use of this interface is not recommended, as added methods to InfoServiceServer will67// result in compilation errors.68type UnsafeInfoServiceServer interface {69mustEmbedUnimplementedInfoServiceServer()70}7172func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer) {73s.RegisterService(&InfoService_ServiceDesc, srv)74}7576func _InfoService_WorkspaceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {77in := new(WorkspaceInfoRequest)78if err := dec(in); err != nil {79return nil, err80}81if interceptor == nil {82return srv.(InfoServiceServer).WorkspaceInfo(ctx, in)83}84info := &grpc.UnaryServerInfo{85Server: srv,86FullMethod: "/supervisor.InfoService/WorkspaceInfo",87}88handler := func(ctx context.Context, req interface{}) (interface{}, error) {89return srv.(InfoServiceServer).WorkspaceInfo(ctx, req.(*WorkspaceInfoRequest))90}91return interceptor(ctx, in, info, handler)92}9394// InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService 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 InfoService_ServiceDesc = grpc.ServiceDesc{98ServiceName: "supervisor.InfoService",99HandlerType: (*InfoServiceServer)(nil),100Methods: []grpc.MethodDesc{101{102MethodName: "WorkspaceInfo",103Handler: _InfoService_WorkspaceInfo_Handler,104},105},106Streams: []grpc.StreamDesc{},107Metadata: "info.proto",108}109110111