Release test versions of telegram bot and AutomatizationCore
This commit is contained in:
137
telegram-bot/grpc/Automatization_grpc.pb.go
Normal file
137
telegram-bot/grpc/Automatization_grpc.pb.go
Normal file
@@ -0,0 +1,137 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
|
||||
package grpc
|
||||
|
||||
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
|
||||
|
||||
// AutomatizatorClient is the client API for Automatizator 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 AutomatizatorClient interface {
|
||||
AddRequest(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*OperationResult, error)
|
||||
GetUserRequests(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*RequestLists, error)
|
||||
}
|
||||
|
||||
type automatizatorClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewAutomatizatorClient(cc grpc.ClientConnInterface) AutomatizatorClient {
|
||||
return &automatizatorClient{cc}
|
||||
}
|
||||
|
||||
func (c *automatizatorClient) AddRequest(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*OperationResult, error) {
|
||||
out := new(OperationResult)
|
||||
err := c.cc.Invoke(ctx, "/grpc.Automatizator/AddRequest", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *automatizatorClient) GetUserRequests(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*RequestLists, error) {
|
||||
out := new(RequestLists)
|
||||
err := c.cc.Invoke(ctx, "/grpc.Automatizator/GetUserRequests", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AutomatizatorServer is the server API for Automatizator service.
|
||||
// All implementations must embed UnimplementedAutomatizatorServer
|
||||
// for forward compatibility
|
||||
type AutomatizatorServer interface {
|
||||
AddRequest(context.Context, *RequestInfo) (*OperationResult, error)
|
||||
GetUserRequests(context.Context, *UserInfo) (*RequestLists, error)
|
||||
mustEmbedUnimplementedAutomatizatorServer()
|
||||
}
|
||||
|
||||
// UnimplementedAutomatizatorServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedAutomatizatorServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedAutomatizatorServer) AddRequest(context.Context, *RequestInfo) (*OperationResult, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddRequest not implemented")
|
||||
}
|
||||
func (UnimplementedAutomatizatorServer) GetUserRequests(context.Context, *UserInfo) (*RequestLists, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetUserRequests not implemented")
|
||||
}
|
||||
func (UnimplementedAutomatizatorServer) mustEmbedUnimplementedAutomatizatorServer() {}
|
||||
|
||||
// UnsafeAutomatizatorServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AutomatizatorServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeAutomatizatorServer interface {
|
||||
mustEmbedUnimplementedAutomatizatorServer()
|
||||
}
|
||||
|
||||
func RegisterAutomatizatorServer(s grpc.ServiceRegistrar, srv AutomatizatorServer) {
|
||||
s.RegisterService(&Automatizator_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Automatizator_AddRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RequestInfo)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AutomatizatorServer).AddRequest(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/grpc.Automatizator/AddRequest",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AutomatizatorServer).AddRequest(ctx, req.(*RequestInfo))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Automatizator_GetUserRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UserInfo)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AutomatizatorServer).GetUserRequests(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/grpc.Automatizator/GetUserRequests",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AutomatizatorServer).GetUserRequests(ctx, req.(*UserInfo))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Automatizator_ServiceDesc is the grpc.ServiceDesc for Automatizator service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Automatizator_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "grpc.Automatizator",
|
||||
HandlerType: (*AutomatizatorServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "AddRequest",
|
||||
Handler: _Automatizator_AddRequest_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetUserRequests",
|
||||
Handler: _Automatizator_GetUserRequests_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "Automatization.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user