Class protos.google.cloud.documentai.v1beta3.ProcessRequest (8.12.0)

Represents a ProcessRequest.

Package

@google-cloud/documentai

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.documentai.v1beta3.IProcessRequest);

Constructs a new ProcessRequest.

Parameter
Name Description
properties IProcessRequest

Properties to set

Properties

document

public document?: (google.cloud.documentai.v1beta3.IDocument|null);

ProcessRequest document.

fieldMask

public fieldMask?: (google.protobuf.IFieldMask|null);

ProcessRequest fieldMask.

gcsDocument

public gcsDocument?: (google.cloud.documentai.v1beta3.IGcsDocument|null);

ProcessRequest gcsDocument.

imagelessMode

public imagelessMode: boolean;

ProcessRequest imagelessMode.

inlineDocument

public inlineDocument?: (google.cloud.documentai.v1beta3.IDocument|null);

ProcessRequest inlineDocument.

labels

public labels: { [k: string]: string };

ProcessRequest labels.

name

public name: string;

ProcessRequest name.

processOptions

public processOptions?: (google.cloud.documentai.v1beta3.IProcessOptions|null);

ProcessRequest processOptions.

rawDocument

public rawDocument?: (google.cloud.documentai.v1beta3.IRawDocument|null);

ProcessRequest rawDocument.

skipHumanReview

public skipHumanReview: boolean;

ProcessRequest skipHumanReview.

source

public source?: ("inlineDocument"|"rawDocument"|"gcsDocument");

ProcessRequest source.

Methods

create(properties)

public static create(properties?: google.cloud.documentai.v1beta3.IProcessRequest): google.cloud.documentai.v1beta3.ProcessRequest;

Creates a new ProcessRequest instance using the specified properties.

Parameter
Name Description
properties IProcessRequest

Properties to set

Returns
Type Description
ProcessRequest

ProcessRequest instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.ProcessRequest;

Decodes a ProcessRequest message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
ProcessRequest

ProcessRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.ProcessRequest;

Decodes a ProcessRequest message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ProcessRequest

ProcessRequest

encode(message, writer)

public static encode(message: google.cloud.documentai.v1beta3.IProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ProcessRequest message. Does not implicitly messages.

Parameters
Name Description
message IProcessRequest

ProcessRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.documentai.v1beta3.IProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ProcessRequest message, length delimited. Does not implicitly messages.

Parameters
Name Description
message IProcessRequest

ProcessRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.ProcessRequest;

Creates a ProcessRequest message from a plain object. Also converts values to their respective internal types.

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
ProcessRequest

ProcessRequest

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for ProcessRequest

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this ProcessRequest to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.documentai.v1beta3.ProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a ProcessRequest message. Also converts values to other types if specified.

Parameters
Name Description
message ProcessRequest

ProcessRequest

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a ProcessRequest message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not