Show / Hide Table of Contents

Class InputConfig

The desired input location and metadata.

Inheritance
System.Object
InputConfig
Implements
IMessage<InputConfig>
System.IEquatable<InputConfig>
IDeepCloneable<InputConfig>
Google.Protobuf.IBufferMessage
IMessage
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.DocumentAI.V1Beta2
Assembly: Google.Cloud.DocumentAI.V1Beta2.dll
Syntax
public sealed class InputConfig : IMessage<InputConfig>, IEquatable<InputConfig>, IDeepCloneable<InputConfig>, IBufferMessage, IMessage

Constructors

InputConfig()

Declaration
public InputConfig()

InputConfig(InputConfig)

Declaration
public InputConfig(InputConfig other)
Parameters
Type Name Description
InputConfig other

Properties

Contents

Content in bytes, represented as a stream of bytes. Note: As with all bytes fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64.

This field only works for synchronous ProcessDocument method.

Declaration
public ByteString Contents { get; set; }
Property Value
Type Description
ByteString

GcsSource

The Google Cloud Storage location to read the input from. This must be a single file.

Declaration
public GcsSource GcsSource { get; set; }
Property Value
Type Description
GcsSource

MimeType

Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.

Declaration
public string MimeType { get; set; }
Property Value
Type Description
System.String

SourceCase

Declaration
public InputConfig.SourceOneofCase SourceCase { get; }
Property Value
Type Description
InputConfig.SourceOneofCase
Back to top