DataManagement/pb/golang/visionCareer_grpc.pb.go

169 lines
7.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.29.3
// source: visionCareer.proto
package pbvisionCareerpub
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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
VisionCareerApiServiceV1_UpsertUserData_FullMethodName = "/pbvisionCareerpub.VisionCareerApiServiceV1/UpsertUserData"
VisionCareerApiServiceV1_GetUserVacancies_FullMethodName = "/pbvisionCareerpub.VisionCareerApiServiceV1/GetUserVacancies"
)
// VisionCareerApiServiceV1Client is the client API for VisionCareerApiServiceV1 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.
//
// Сервис API Vision Career v1
type VisionCareerApiServiceV1Client interface {
// Отправить данные о пользователе, чтобы начать генерацию цифрового портрета
UpsertUserData(ctx context.Context, in *UpsertUserDataRequest, opts ...grpc.CallOption) (*UpsertUserDataResponse, error)
// Получить список актуальных вакансий, для текущего пользователя
GetUserVacancies(ctx context.Context, in *GetUserVacanciesRequest, opts ...grpc.CallOption) (*GetUserVacanciesResponse, error)
}
type visionCareerApiServiceV1Client struct {
cc grpc.ClientConnInterface
}
func NewVisionCareerApiServiceV1Client(cc grpc.ClientConnInterface) VisionCareerApiServiceV1Client {
return &visionCareerApiServiceV1Client{cc}
}
func (c *visionCareerApiServiceV1Client) UpsertUserData(ctx context.Context, in *UpsertUserDataRequest, opts ...grpc.CallOption) (*UpsertUserDataResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UpsertUserDataResponse)
err := c.cc.Invoke(ctx, VisionCareerApiServiceV1_UpsertUserData_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *visionCareerApiServiceV1Client) GetUserVacancies(ctx context.Context, in *GetUserVacanciesRequest, opts ...grpc.CallOption) (*GetUserVacanciesResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetUserVacanciesResponse)
err := c.cc.Invoke(ctx, VisionCareerApiServiceV1_GetUserVacancies_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// VisionCareerApiServiceV1Server is the server API for VisionCareerApiServiceV1 service.
// All implementations must embed UnimplementedVisionCareerApiServiceV1Server
// for forward compatibility.
//
// Сервис API Vision Career v1
type VisionCareerApiServiceV1Server interface {
// Отправить данные о пользователе, чтобы начать генерацию цифрового портрета
UpsertUserData(context.Context, *UpsertUserDataRequest) (*UpsertUserDataResponse, error)
// Получить список актуальных вакансий, для текущего пользователя
GetUserVacancies(context.Context, *GetUserVacanciesRequest) (*GetUserVacanciesResponse, error)
mustEmbedUnimplementedVisionCareerApiServiceV1Server()
}
// UnimplementedVisionCareerApiServiceV1Server must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedVisionCareerApiServiceV1Server struct{}
func (UnimplementedVisionCareerApiServiceV1Server) UpsertUserData(context.Context, *UpsertUserDataRequest) (*UpsertUserDataResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpsertUserData not implemented")
}
func (UnimplementedVisionCareerApiServiceV1Server) GetUserVacancies(context.Context, *GetUserVacanciesRequest) (*GetUserVacanciesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserVacancies not implemented")
}
func (UnimplementedVisionCareerApiServiceV1Server) mustEmbedUnimplementedVisionCareerApiServiceV1Server() {
}
func (UnimplementedVisionCareerApiServiceV1Server) testEmbeddedByValue() {}
// UnsafeVisionCareerApiServiceV1Server may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to VisionCareerApiServiceV1Server will
// result in compilation errors.
type UnsafeVisionCareerApiServiceV1Server interface {
mustEmbedUnimplementedVisionCareerApiServiceV1Server()
}
func RegisterVisionCareerApiServiceV1Server(s grpc.ServiceRegistrar, srv VisionCareerApiServiceV1Server) {
// If the following call pancis, it indicates UnimplementedVisionCareerApiServiceV1Server was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&VisionCareerApiServiceV1_ServiceDesc, srv)
}
func _VisionCareerApiServiceV1_UpsertUserData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpsertUserDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VisionCareerApiServiceV1Server).UpsertUserData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: VisionCareerApiServiceV1_UpsertUserData_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VisionCareerApiServiceV1Server).UpsertUserData(ctx, req.(*UpsertUserDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _VisionCareerApiServiceV1_GetUserVacancies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserVacanciesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VisionCareerApiServiceV1Server).GetUserVacancies(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: VisionCareerApiServiceV1_GetUserVacancies_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VisionCareerApiServiceV1Server).GetUserVacancies(ctx, req.(*GetUserVacanciesRequest))
}
return interceptor(ctx, in, info, handler)
}
// VisionCareerApiServiceV1_ServiceDesc is the grpc.ServiceDesc for VisionCareerApiServiceV1 service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var VisionCareerApiServiceV1_ServiceDesc = grpc.ServiceDesc{
ServiceName: "pbvisionCareerpub.VisionCareerApiServiceV1",
HandlerType: (*VisionCareerApiServiceV1Server)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpsertUserData",
Handler: _VisionCareerApiServiceV1_UpsertUserData_Handler,
},
{
MethodName: "GetUserVacancies",
Handler: _VisionCareerApiServiceV1_GetUserVacancies_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "visionCareer.proto",
}