Select Git revision
images_grpc.pb.go
images_grpc.pb.go 5.39 KiB
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.28.3
// source: images/images.proto
package images
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 (
Images_Get_FullMethodName = "/images.Images/Get"
)
// ImagesClient is the client API for Images 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.
//
// ImageService - сервис для обработки изображений
type ImagesClient interface {
// Get - к файлу, идентификатор которого передан в запросе, применяются параметры.
// Может быть передано несколько параметров, порядок учитывается при обработке
// Допустимые операции:
// - crop (ширина, высота)
// - fit (ширина, высота)
// - resize (ширина, высота)
// - format (один из форматов [ png, jpeg, jpg, gif ]
//
// Возвращает объект File с заполненным полем File.URL
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}
type imagesClient struct {
cc grpc.ClientConnInterface
}
func NewImagesClient(cc grpc.ClientConnInterface) ImagesClient {
return &imagesClient{cc}
}
func (c *imagesClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetResponse)
err := c.cc.Invoke(ctx, Images_Get_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// ImagesServer is the server API for Images service.
// All implementations must embed UnimplementedImagesServer
// for forward compatibility.
//
// ImageService - сервис для обработки изображений
type ImagesServer interface {
// Get - к файлу, идентификатор которого передан в запросе, применяются параметры.
// Может быть передано несколько параметров, порядок учитывается при обработке
// Допустимые операции:
// - crop (ширина, высота)