// Code generated by sdkgen. DO NOT EDIT.

package ocr

import (
	"context"

	"google.golang.org/grpc"
)

// OCR provides access to "ocr" component of Yandex.Cloud
type OCR struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// NewOCR creates instance of OCR
func NewOCR(g func(ctx context.Context) (*grpc.ClientConn, error)) *OCR {
	return &OCR{g}
}

// TextRecognition gets TextRecognitionService client
func (o *OCR) TextRecognition() *TextRecognitionServiceClient {
	return &TextRecognitionServiceClient{getConn: o.getConn}
}

// TextRecognitionAsync gets TextRecognitionAsyncService client
func (o *OCR) TextRecognitionAsync() *TextRecognitionAsyncServiceClient {
	return &TextRecognitionAsyncServiceClient{getConn: o.getConn}
}
