Class InputConfig (2.4.0)

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

The desired input location and metadata.

Inheritance

Object > InputConfig

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

InputConfig()

public InputConfig()

InputConfig(InputConfig)

public InputConfig(InputConfig other)
Parameter
NameDescription
otherInputConfig

Properties

Content

public ByteString Content { get; set; }

File content, represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

Currently, this field only works for BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles requests.

Property Value
TypeDescription
ByteString

GcsSource

public GcsSource GcsSource { get; set; }

The Google Cloud Storage location to read the input from.

Property Value
TypeDescription
GcsSource

MimeType

public string MimeType { get; set; }

The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.

Property Value
TypeDescription
String