30 lines
766 B
Go
30 lines
766 B
Go
// Code generated by sdkgen. DO NOT EDIT.
|
|
|
|
//nolint
|
|
package vision
|
|
|
|
import (
|
|
"context"
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
vision "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1"
|
|
)
|
|
|
|
//revive:disable
|
|
|
|
// VisionServiceClient is a vision.VisionServiceClient with
|
|
// lazy GRPC connection initialization.
|
|
type VisionServiceClient struct {
|
|
getConn func(ctx context.Context) (*grpc.ClientConn, error)
|
|
}
|
|
|
|
// BatchAnalyze implements vision.VisionServiceClient
|
|
func (c *VisionServiceClient) BatchAnalyze(ctx context.Context, in *vision.BatchAnalyzeRequest, opts ...grpc.CallOption) (*vision.BatchAnalyzeResponse, error) {
|
|
conn, err := c.getConn(ctx)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return vision.NewVisionServiceClient(conn).BatchAnalyze(ctx, in, opts...)
|
|
}
|