Path: blob/main/components/content-service-api/go/content_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 (unknown)8// source: content.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// ContentServiceClient is the client API for ContentService 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 ContentServiceClient interface {28// DeleteUserContent deletes all content associated with a user.29DeleteUserContent(ctx context.Context, in *DeleteUserContentRequest, opts ...grpc.CallOption) (*DeleteUserContentResponse, error)30}3132type contentServiceClient struct {33cc grpc.ClientConnInterface34}3536func NewContentServiceClient(cc grpc.ClientConnInterface) ContentServiceClient {37return &contentServiceClient{cc}38}3940func (c *contentServiceClient) DeleteUserContent(ctx context.Context, in *DeleteUserContentRequest, opts ...grpc.CallOption) (*DeleteUserContentResponse, error) {41out := new(DeleteUserContentResponse)42err := c.cc.Invoke(ctx, "/contentservice.ContentService/DeleteUserContent", in, out, opts...)43if err != nil {44return nil, err45}46return out, nil47}4849// ContentServiceServer is the server API for ContentService service.50// All implementations must embed UnimplementedContentServiceServer51// for forward compatibility52type ContentServiceServer interface {53// DeleteUserContent deletes all content associated with a user.54DeleteUserContent(context.Context, *DeleteUserContentRequest) (*DeleteUserContentResponse, error)55mustEmbedUnimplementedContentServiceServer()56}5758// UnimplementedContentServiceServer must be embedded to have forward compatible implementations.59type UnimplementedContentServiceServer struct {60}6162func (UnimplementedContentServiceServer) DeleteUserContent(context.Context, *DeleteUserContentRequest) (*DeleteUserContentResponse, error) {63return nil, status.Errorf(codes.Unimplemented, "method DeleteUserContent not implemented")64}65func (UnimplementedContentServiceServer) mustEmbedUnimplementedContentServiceServer() {}6667// UnsafeContentServiceServer may be embedded to opt out of forward compatibility for this service.68// Use of this interface is not recommended, as added methods to ContentServiceServer will69// result in compilation errors.70type UnsafeContentServiceServer interface {71mustEmbedUnimplementedContentServiceServer()72}7374func RegisterContentServiceServer(s grpc.ServiceRegistrar, srv ContentServiceServer) {75s.RegisterService(&ContentService_ServiceDesc, srv)76}7778func _ContentService_DeleteUserContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {79in := new(DeleteUserContentRequest)80if err := dec(in); err != nil {81return nil, err82}83if interceptor == nil {84return srv.(ContentServiceServer).DeleteUserContent(ctx, in)85}86info := &grpc.UnaryServerInfo{87Server: srv,88FullMethod: "/contentservice.ContentService/DeleteUserContent",89}90handler := func(ctx context.Context, req interface{}) (interface{}, error) {91return srv.(ContentServiceServer).DeleteUserContent(ctx, req.(*DeleteUserContentRequest))92}93return interceptor(ctx, in, info, handler)94}9596// ContentService_ServiceDesc is the grpc.ServiceDesc for ContentService service.97// It's only intended for direct use with grpc.RegisterService,98// and not to be introspected or modified (even as a copy)99var ContentService_ServiceDesc = grpc.ServiceDesc{100ServiceName: "contentservice.ContentService",101HandlerType: (*ContentServiceServer)(nil),102Methods: []grpc.MethodDesc{103{104MethodName: "DeleteUserContent",105Handler: _ContentService_DeleteUserContent_Handler,106},107},108Streams: []grpc.StreamDesc{},109Metadata: "content.proto",110}111112113