Class AnnotateFileRequest

public sealed class AnnotateFileRequest : IMessage<AnnotateFileRequest>, IEquatable<AnnotateFileRequest>, IDeepCloneable<AnnotateFileRequest>, IBufferMessage, IMessage

A request to annotate one single file, e.g. a PDF, TIFF or GIF file.

Inheritance

Object > AnnotateFileRequest

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

AnnotateFileRequest()

public AnnotateFileRequest()

AnnotateFileRequest(AnnotateFileRequest)

public AnnotateFileRequest(AnnotateFileRequest other)
Parameter
TypeNameDescription
AnnotateFileRequestother

Properties

Features

public RepeatedField<Feature> Features { get; }

Required. Requested features.

Property Value
TypeDescription
RepeatedField<Feature>

ImageContext

public ImageContext ImageContext { get; set; }

Additional context that may accompany the image(s) in the file.

Property Value
TypeDescription
ImageContext

InputConfig

public InputConfig InputConfig { get; set; }

Required. Information about the input file.

Property Value
TypeDescription
InputConfig

Pages

public RepeatedField<int> Pages { get; }

Pages of the file to perform image annotation.

Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative.

Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page.

If the file is GIF instead of PDF or TIFF, page refers to GIF frames.

If this field is empty, by default the service performs image annotation for the first 5 pages of the file.

Property Value
TypeDescription
RepeatedField<Int32>