@maxim_mazurok/gapi.client.documentai-v1 0.0.20231116 → 0.0.20231206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3874 -5752
- package/package.json +6 -6
- package/readme.md +17 -14
- package/tests.ts +0 -3108
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/tests.ts
DELETED
|
@@ -1,3108 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.documentai-v1 definition tests */
|
|
2
|
-
// IMPORTANT
|
|
3
|
-
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
-
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
-
|
|
6
|
-
// Revision: 20231116
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://documentai.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
-
/** now we can use gapi.client.documentai */
|
|
13
|
-
|
|
14
|
-
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
-
/** declare client_id registered in Google Developers Console */
|
|
16
|
-
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
-
const scope = [
|
|
18
|
-
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
-
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
-
];
|
|
21
|
-
const immediate = false;
|
|
22
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
-
if (authResult && !authResult.error) {
|
|
24
|
-
/** handle successful authorization */
|
|
25
|
-
run();
|
|
26
|
-
} else {
|
|
27
|
-
/** handle authorization error */
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
/**
|
|
33
|
-
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
|
|
34
|
-
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
35
|
-
*/
|
|
36
|
-
await gapi.client.documentai.operations.delete({
|
|
37
|
-
name: "Test string",
|
|
38
|
-
});
|
|
39
|
-
/** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
|
|
40
|
-
await gapi.client.documentai.projects.locations.fetchProcessorTypes({
|
|
41
|
-
parent: "Test string",
|
|
42
|
-
});
|
|
43
|
-
/** Gets information about a location. */
|
|
44
|
-
await gapi.client.documentai.projects.locations.get({
|
|
45
|
-
name: "Test string",
|
|
46
|
-
});
|
|
47
|
-
/** Lists information about the supported locations for this service. */
|
|
48
|
-
await gapi.client.documentai.projects.locations.list({
|
|
49
|
-
filter: "Test string",
|
|
50
|
-
name: "Test string",
|
|
51
|
-
pageSize: 42,
|
|
52
|
-
pageToken: "Test string",
|
|
53
|
-
});
|
|
54
|
-
/**
|
|
55
|
-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
56
|
-
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
57
|
-
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
58
|
-
* 1, corresponding to `Code.CANCELLED`.
|
|
59
|
-
*/
|
|
60
|
-
await gapi.client.documentai.projects.locations.operations.cancel({
|
|
61
|
-
name: "Test string",
|
|
62
|
-
});
|
|
63
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
64
|
-
await gapi.client.documentai.projects.locations.operations.get({
|
|
65
|
-
name: "Test string",
|
|
66
|
-
});
|
|
67
|
-
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
68
|
-
await gapi.client.documentai.projects.locations.operations.list({
|
|
69
|
-
filter: "Test string",
|
|
70
|
-
name: "Test string",
|
|
71
|
-
pageSize: 42,
|
|
72
|
-
pageToken: "Test string",
|
|
73
|
-
});
|
|
74
|
-
/** LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. */
|
|
75
|
-
await gapi.client.documentai.projects.locations.processors.batchProcess({
|
|
76
|
-
name: "Test string",
|
|
77
|
-
}, {
|
|
78
|
-
documentOutputConfig: {
|
|
79
|
-
gcsOutputConfig: {
|
|
80
|
-
fieldMask: "Test string",
|
|
81
|
-
gcsUri: "Test string",
|
|
82
|
-
shardingConfig: {
|
|
83
|
-
pagesOverlap: 42,
|
|
84
|
-
pagesPerShard: 42,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
inputDocuments: {
|
|
89
|
-
gcsDocuments: {
|
|
90
|
-
documents: [
|
|
91
|
-
{
|
|
92
|
-
gcsUri: "Test string",
|
|
93
|
-
mimeType: "Test string",
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
gcsPrefix: {
|
|
98
|
-
gcsUriPrefix: "Test string",
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
processOptions: {
|
|
102
|
-
fromEnd: 42,
|
|
103
|
-
fromStart: 42,
|
|
104
|
-
individualPageSelector: {
|
|
105
|
-
pages: [
|
|
106
|
-
42
|
|
107
|
-
],
|
|
108
|
-
},
|
|
109
|
-
ocrConfig: {
|
|
110
|
-
advancedOcrOptions: [
|
|
111
|
-
"Test string"
|
|
112
|
-
],
|
|
113
|
-
computeStyleInfo: true,
|
|
114
|
-
disableCharacterBoxesDetection: true,
|
|
115
|
-
enableImageQualityScores: true,
|
|
116
|
-
enableNativePdfParsing: true,
|
|
117
|
-
enableSymbol: true,
|
|
118
|
-
hints: {
|
|
119
|
-
languageHints: [
|
|
120
|
-
"Test string"
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
premiumFeatures: {
|
|
124
|
-
computeStyleInfo: true,
|
|
125
|
-
enableMathOcr: true,
|
|
126
|
-
enableSelectionMarkDetection: true,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
skipHumanReview: true,
|
|
131
|
-
});
|
|
132
|
-
/** Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. */
|
|
133
|
-
await gapi.client.documentai.projects.locations.processors.create({
|
|
134
|
-
parent: "Test string",
|
|
135
|
-
}, {
|
|
136
|
-
createTime: "Test string",
|
|
137
|
-
defaultProcessorVersion: "Test string",
|
|
138
|
-
displayName: "Test string",
|
|
139
|
-
kmsKeyName: "Test string",
|
|
140
|
-
name: "Test string",
|
|
141
|
-
processEndpoint: "Test string",
|
|
142
|
-
processorVersionAliases: [
|
|
143
|
-
{
|
|
144
|
-
alias: "Test string",
|
|
145
|
-
processorVersion: "Test string",
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
state: "Test string",
|
|
149
|
-
type: "Test string",
|
|
150
|
-
});
|
|
151
|
-
/** Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. */
|
|
152
|
-
await gapi.client.documentai.projects.locations.processors.delete({
|
|
153
|
-
name: "Test string",
|
|
154
|
-
});
|
|
155
|
-
/** Disables a processor */
|
|
156
|
-
await gapi.client.documentai.projects.locations.processors.disable({
|
|
157
|
-
name: "Test string",
|
|
158
|
-
}, {
|
|
159
|
-
});
|
|
160
|
-
/** Enables a processor */
|
|
161
|
-
await gapi.client.documentai.projects.locations.processors.enable({
|
|
162
|
-
name: "Test string",
|
|
163
|
-
}, {
|
|
164
|
-
});
|
|
165
|
-
/** Gets a processor detail. */
|
|
166
|
-
await gapi.client.documentai.projects.locations.processors.get({
|
|
167
|
-
name: "Test string",
|
|
168
|
-
});
|
|
169
|
-
/** Lists all processors which belong to this project. */
|
|
170
|
-
await gapi.client.documentai.projects.locations.processors.list({
|
|
171
|
-
pageSize: 42,
|
|
172
|
-
pageToken: "Test string",
|
|
173
|
-
parent: "Test string",
|
|
174
|
-
});
|
|
175
|
-
/** Processes a single document. */
|
|
176
|
-
await gapi.client.documentai.projects.locations.processors.process({
|
|
177
|
-
name: "Test string",
|
|
178
|
-
}, {
|
|
179
|
-
fieldMask: "Test string",
|
|
180
|
-
gcsDocument: {
|
|
181
|
-
gcsUri: "Test string",
|
|
182
|
-
mimeType: "Test string",
|
|
183
|
-
},
|
|
184
|
-
inlineDocument: {
|
|
185
|
-
content: "Test string",
|
|
186
|
-
entities: [
|
|
187
|
-
{
|
|
188
|
-
confidence: 42,
|
|
189
|
-
id: "Test string",
|
|
190
|
-
mentionId: "Test string",
|
|
191
|
-
mentionText: "Test string",
|
|
192
|
-
normalizedValue: {
|
|
193
|
-
addressValue: {
|
|
194
|
-
addressLines: [
|
|
195
|
-
"Test string"
|
|
196
|
-
],
|
|
197
|
-
administrativeArea: "Test string",
|
|
198
|
-
languageCode: "Test string",
|
|
199
|
-
locality: "Test string",
|
|
200
|
-
organization: "Test string",
|
|
201
|
-
postalCode: "Test string",
|
|
202
|
-
recipients: [
|
|
203
|
-
"Test string"
|
|
204
|
-
],
|
|
205
|
-
regionCode: "Test string",
|
|
206
|
-
revision: 42,
|
|
207
|
-
sortingCode: "Test string",
|
|
208
|
-
sublocality: "Test string",
|
|
209
|
-
},
|
|
210
|
-
booleanValue: true,
|
|
211
|
-
datetimeValue: {
|
|
212
|
-
day: 42,
|
|
213
|
-
hours: 42,
|
|
214
|
-
minutes: 42,
|
|
215
|
-
month: 42,
|
|
216
|
-
nanos: 42,
|
|
217
|
-
seconds: 42,
|
|
218
|
-
timeZone: {
|
|
219
|
-
id: "Test string",
|
|
220
|
-
version: "Test string",
|
|
221
|
-
},
|
|
222
|
-
utcOffset: "Test string",
|
|
223
|
-
year: 42,
|
|
224
|
-
},
|
|
225
|
-
dateValue: {
|
|
226
|
-
day: 42,
|
|
227
|
-
month: 42,
|
|
228
|
-
year: 42,
|
|
229
|
-
},
|
|
230
|
-
floatValue: 42,
|
|
231
|
-
integerValue: 42,
|
|
232
|
-
moneyValue: {
|
|
233
|
-
currencyCode: "Test string",
|
|
234
|
-
nanos: 42,
|
|
235
|
-
units: "Test string",
|
|
236
|
-
},
|
|
237
|
-
text: "Test string",
|
|
238
|
-
},
|
|
239
|
-
pageAnchor: {
|
|
240
|
-
pageRefs: [
|
|
241
|
-
{
|
|
242
|
-
boundingPoly: {
|
|
243
|
-
normalizedVertices: [
|
|
244
|
-
{
|
|
245
|
-
x: 42,
|
|
246
|
-
y: 42,
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
vertices: [
|
|
250
|
-
{
|
|
251
|
-
x: 42,
|
|
252
|
-
y: 42,
|
|
253
|
-
}
|
|
254
|
-
],
|
|
255
|
-
},
|
|
256
|
-
confidence: 42,
|
|
257
|
-
layoutId: "Test string",
|
|
258
|
-
layoutType: "Test string",
|
|
259
|
-
page: "Test string",
|
|
260
|
-
}
|
|
261
|
-
],
|
|
262
|
-
},
|
|
263
|
-
properties: undefined,
|
|
264
|
-
provenance: {
|
|
265
|
-
id: 42,
|
|
266
|
-
parents: [
|
|
267
|
-
{
|
|
268
|
-
id: 42,
|
|
269
|
-
index: 42,
|
|
270
|
-
revision: 42,
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
revision: 42,
|
|
274
|
-
type: "Test string",
|
|
275
|
-
},
|
|
276
|
-
redacted: true,
|
|
277
|
-
textAnchor: {
|
|
278
|
-
content: "Test string",
|
|
279
|
-
textSegments: [
|
|
280
|
-
{
|
|
281
|
-
endIndex: "Test string",
|
|
282
|
-
startIndex: "Test string",
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
},
|
|
286
|
-
type: "Test string",
|
|
287
|
-
}
|
|
288
|
-
],
|
|
289
|
-
entityRelations: [
|
|
290
|
-
{
|
|
291
|
-
objectId: "Test string",
|
|
292
|
-
relation: "Test string",
|
|
293
|
-
subjectId: "Test string",
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
error: {
|
|
297
|
-
code: 42,
|
|
298
|
-
details: [
|
|
299
|
-
{
|
|
300
|
-
A: 42
|
|
301
|
-
}
|
|
302
|
-
],
|
|
303
|
-
message: "Test string",
|
|
304
|
-
},
|
|
305
|
-
mimeType: "Test string",
|
|
306
|
-
pages: [
|
|
307
|
-
{
|
|
308
|
-
blocks: [
|
|
309
|
-
{
|
|
310
|
-
detectedLanguages: [
|
|
311
|
-
{
|
|
312
|
-
confidence: 42,
|
|
313
|
-
languageCode: "Test string",
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
layout: {
|
|
317
|
-
boundingPoly: {
|
|
318
|
-
normalizedVertices: [
|
|
319
|
-
{
|
|
320
|
-
x: 42,
|
|
321
|
-
y: 42,
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
vertices: [
|
|
325
|
-
{
|
|
326
|
-
x: 42,
|
|
327
|
-
y: 42,
|
|
328
|
-
}
|
|
329
|
-
],
|
|
330
|
-
},
|
|
331
|
-
confidence: 42,
|
|
332
|
-
orientation: "Test string",
|
|
333
|
-
textAnchor: {
|
|
334
|
-
content: "Test string",
|
|
335
|
-
textSegments: [
|
|
336
|
-
{
|
|
337
|
-
endIndex: "Test string",
|
|
338
|
-
startIndex: "Test string",
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
provenance: {
|
|
344
|
-
id: 42,
|
|
345
|
-
parents: [
|
|
346
|
-
{
|
|
347
|
-
id: 42,
|
|
348
|
-
index: 42,
|
|
349
|
-
revision: 42,
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
revision: 42,
|
|
353
|
-
type: "Test string",
|
|
354
|
-
},
|
|
355
|
-
}
|
|
356
|
-
],
|
|
357
|
-
detectedBarcodes: [
|
|
358
|
-
{
|
|
359
|
-
barcode: {
|
|
360
|
-
format: "Test string",
|
|
361
|
-
rawValue: "Test string",
|
|
362
|
-
valueFormat: "Test string",
|
|
363
|
-
},
|
|
364
|
-
layout: {
|
|
365
|
-
boundingPoly: {
|
|
366
|
-
normalizedVertices: [
|
|
367
|
-
{
|
|
368
|
-
x: 42,
|
|
369
|
-
y: 42,
|
|
370
|
-
}
|
|
371
|
-
],
|
|
372
|
-
vertices: [
|
|
373
|
-
{
|
|
374
|
-
x: 42,
|
|
375
|
-
y: 42,
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
confidence: 42,
|
|
380
|
-
orientation: "Test string",
|
|
381
|
-
textAnchor: {
|
|
382
|
-
content: "Test string",
|
|
383
|
-
textSegments: [
|
|
384
|
-
{
|
|
385
|
-
endIndex: "Test string",
|
|
386
|
-
startIndex: "Test string",
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
detectedLanguages: [
|
|
394
|
-
{
|
|
395
|
-
confidence: 42,
|
|
396
|
-
languageCode: "Test string",
|
|
397
|
-
}
|
|
398
|
-
],
|
|
399
|
-
dimension: {
|
|
400
|
-
height: 42,
|
|
401
|
-
unit: "Test string",
|
|
402
|
-
width: 42,
|
|
403
|
-
},
|
|
404
|
-
formFields: [
|
|
405
|
-
{
|
|
406
|
-
correctedKeyText: "Test string",
|
|
407
|
-
correctedValueText: "Test string",
|
|
408
|
-
fieldName: {
|
|
409
|
-
boundingPoly: {
|
|
410
|
-
normalizedVertices: [
|
|
411
|
-
{
|
|
412
|
-
x: 42,
|
|
413
|
-
y: 42,
|
|
414
|
-
}
|
|
415
|
-
],
|
|
416
|
-
vertices: [
|
|
417
|
-
{
|
|
418
|
-
x: 42,
|
|
419
|
-
y: 42,
|
|
420
|
-
}
|
|
421
|
-
],
|
|
422
|
-
},
|
|
423
|
-
confidence: 42,
|
|
424
|
-
orientation: "Test string",
|
|
425
|
-
textAnchor: {
|
|
426
|
-
content: "Test string",
|
|
427
|
-
textSegments: [
|
|
428
|
-
{
|
|
429
|
-
endIndex: "Test string",
|
|
430
|
-
startIndex: "Test string",
|
|
431
|
-
}
|
|
432
|
-
],
|
|
433
|
-
},
|
|
434
|
-
},
|
|
435
|
-
fieldValue: {
|
|
436
|
-
boundingPoly: {
|
|
437
|
-
normalizedVertices: [
|
|
438
|
-
{
|
|
439
|
-
x: 42,
|
|
440
|
-
y: 42,
|
|
441
|
-
}
|
|
442
|
-
],
|
|
443
|
-
vertices: [
|
|
444
|
-
{
|
|
445
|
-
x: 42,
|
|
446
|
-
y: 42,
|
|
447
|
-
}
|
|
448
|
-
],
|
|
449
|
-
},
|
|
450
|
-
confidence: 42,
|
|
451
|
-
orientation: "Test string",
|
|
452
|
-
textAnchor: {
|
|
453
|
-
content: "Test string",
|
|
454
|
-
textSegments: [
|
|
455
|
-
{
|
|
456
|
-
endIndex: "Test string",
|
|
457
|
-
startIndex: "Test string",
|
|
458
|
-
}
|
|
459
|
-
],
|
|
460
|
-
},
|
|
461
|
-
},
|
|
462
|
-
nameDetectedLanguages: [
|
|
463
|
-
{
|
|
464
|
-
confidence: 42,
|
|
465
|
-
languageCode: "Test string",
|
|
466
|
-
}
|
|
467
|
-
],
|
|
468
|
-
provenance: {
|
|
469
|
-
id: 42,
|
|
470
|
-
parents: [
|
|
471
|
-
{
|
|
472
|
-
id: 42,
|
|
473
|
-
index: 42,
|
|
474
|
-
revision: 42,
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
revision: 42,
|
|
478
|
-
type: "Test string",
|
|
479
|
-
},
|
|
480
|
-
valueDetectedLanguages: [
|
|
481
|
-
{
|
|
482
|
-
confidence: 42,
|
|
483
|
-
languageCode: "Test string",
|
|
484
|
-
}
|
|
485
|
-
],
|
|
486
|
-
valueType: "Test string",
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
image: {
|
|
490
|
-
content: "Test string",
|
|
491
|
-
height: 42,
|
|
492
|
-
mimeType: "Test string",
|
|
493
|
-
width: 42,
|
|
494
|
-
},
|
|
495
|
-
imageQualityScores: {
|
|
496
|
-
detectedDefects: [
|
|
497
|
-
{
|
|
498
|
-
confidence: 42,
|
|
499
|
-
type: "Test string",
|
|
500
|
-
}
|
|
501
|
-
],
|
|
502
|
-
qualityScore: 42,
|
|
503
|
-
},
|
|
504
|
-
layout: {
|
|
505
|
-
boundingPoly: {
|
|
506
|
-
normalizedVertices: [
|
|
507
|
-
{
|
|
508
|
-
x: 42,
|
|
509
|
-
y: 42,
|
|
510
|
-
}
|
|
511
|
-
],
|
|
512
|
-
vertices: [
|
|
513
|
-
{
|
|
514
|
-
x: 42,
|
|
515
|
-
y: 42,
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
},
|
|
519
|
-
confidence: 42,
|
|
520
|
-
orientation: "Test string",
|
|
521
|
-
textAnchor: {
|
|
522
|
-
content: "Test string",
|
|
523
|
-
textSegments: [
|
|
524
|
-
{
|
|
525
|
-
endIndex: "Test string",
|
|
526
|
-
startIndex: "Test string",
|
|
527
|
-
}
|
|
528
|
-
],
|
|
529
|
-
},
|
|
530
|
-
},
|
|
531
|
-
lines: [
|
|
532
|
-
{
|
|
533
|
-
detectedLanguages: [
|
|
534
|
-
{
|
|
535
|
-
confidence: 42,
|
|
536
|
-
languageCode: "Test string",
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
layout: {
|
|
540
|
-
boundingPoly: {
|
|
541
|
-
normalizedVertices: [
|
|
542
|
-
{
|
|
543
|
-
x: 42,
|
|
544
|
-
y: 42,
|
|
545
|
-
}
|
|
546
|
-
],
|
|
547
|
-
vertices: [
|
|
548
|
-
{
|
|
549
|
-
x: 42,
|
|
550
|
-
y: 42,
|
|
551
|
-
}
|
|
552
|
-
],
|
|
553
|
-
},
|
|
554
|
-
confidence: 42,
|
|
555
|
-
orientation: "Test string",
|
|
556
|
-
textAnchor: {
|
|
557
|
-
content: "Test string",
|
|
558
|
-
textSegments: [
|
|
559
|
-
{
|
|
560
|
-
endIndex: "Test string",
|
|
561
|
-
startIndex: "Test string",
|
|
562
|
-
}
|
|
563
|
-
],
|
|
564
|
-
},
|
|
565
|
-
},
|
|
566
|
-
provenance: {
|
|
567
|
-
id: 42,
|
|
568
|
-
parents: [
|
|
569
|
-
{
|
|
570
|
-
id: 42,
|
|
571
|
-
index: 42,
|
|
572
|
-
revision: 42,
|
|
573
|
-
}
|
|
574
|
-
],
|
|
575
|
-
revision: 42,
|
|
576
|
-
type: "Test string",
|
|
577
|
-
},
|
|
578
|
-
}
|
|
579
|
-
],
|
|
580
|
-
pageNumber: 42,
|
|
581
|
-
paragraphs: [
|
|
582
|
-
{
|
|
583
|
-
detectedLanguages: [
|
|
584
|
-
{
|
|
585
|
-
confidence: 42,
|
|
586
|
-
languageCode: "Test string",
|
|
587
|
-
}
|
|
588
|
-
],
|
|
589
|
-
layout: {
|
|
590
|
-
boundingPoly: {
|
|
591
|
-
normalizedVertices: [
|
|
592
|
-
{
|
|
593
|
-
x: 42,
|
|
594
|
-
y: 42,
|
|
595
|
-
}
|
|
596
|
-
],
|
|
597
|
-
vertices: [
|
|
598
|
-
{
|
|
599
|
-
x: 42,
|
|
600
|
-
y: 42,
|
|
601
|
-
}
|
|
602
|
-
],
|
|
603
|
-
},
|
|
604
|
-
confidence: 42,
|
|
605
|
-
orientation: "Test string",
|
|
606
|
-
textAnchor: {
|
|
607
|
-
content: "Test string",
|
|
608
|
-
textSegments: [
|
|
609
|
-
{
|
|
610
|
-
endIndex: "Test string",
|
|
611
|
-
startIndex: "Test string",
|
|
612
|
-
}
|
|
613
|
-
],
|
|
614
|
-
},
|
|
615
|
-
},
|
|
616
|
-
provenance: {
|
|
617
|
-
id: 42,
|
|
618
|
-
parents: [
|
|
619
|
-
{
|
|
620
|
-
id: 42,
|
|
621
|
-
index: 42,
|
|
622
|
-
revision: 42,
|
|
623
|
-
}
|
|
624
|
-
],
|
|
625
|
-
revision: 42,
|
|
626
|
-
type: "Test string",
|
|
627
|
-
},
|
|
628
|
-
}
|
|
629
|
-
],
|
|
630
|
-
provenance: {
|
|
631
|
-
id: 42,
|
|
632
|
-
parents: [
|
|
633
|
-
{
|
|
634
|
-
id: 42,
|
|
635
|
-
index: 42,
|
|
636
|
-
revision: 42,
|
|
637
|
-
}
|
|
638
|
-
],
|
|
639
|
-
revision: 42,
|
|
640
|
-
type: "Test string",
|
|
641
|
-
},
|
|
642
|
-
symbols: [
|
|
643
|
-
{
|
|
644
|
-
detectedLanguages: [
|
|
645
|
-
{
|
|
646
|
-
confidence: 42,
|
|
647
|
-
languageCode: "Test string",
|
|
648
|
-
}
|
|
649
|
-
],
|
|
650
|
-
layout: {
|
|
651
|
-
boundingPoly: {
|
|
652
|
-
normalizedVertices: [
|
|
653
|
-
{
|
|
654
|
-
x: 42,
|
|
655
|
-
y: 42,
|
|
656
|
-
}
|
|
657
|
-
],
|
|
658
|
-
vertices: [
|
|
659
|
-
{
|
|
660
|
-
x: 42,
|
|
661
|
-
y: 42,
|
|
662
|
-
}
|
|
663
|
-
],
|
|
664
|
-
},
|
|
665
|
-
confidence: 42,
|
|
666
|
-
orientation: "Test string",
|
|
667
|
-
textAnchor: {
|
|
668
|
-
content: "Test string",
|
|
669
|
-
textSegments: [
|
|
670
|
-
{
|
|
671
|
-
endIndex: "Test string",
|
|
672
|
-
startIndex: "Test string",
|
|
673
|
-
}
|
|
674
|
-
],
|
|
675
|
-
},
|
|
676
|
-
},
|
|
677
|
-
}
|
|
678
|
-
],
|
|
679
|
-
tables: [
|
|
680
|
-
{
|
|
681
|
-
bodyRows: [
|
|
682
|
-
{
|
|
683
|
-
cells: [
|
|
684
|
-
{
|
|
685
|
-
colSpan: 42,
|
|
686
|
-
detectedLanguages: [
|
|
687
|
-
{
|
|
688
|
-
confidence: 42,
|
|
689
|
-
languageCode: "Test string",
|
|
690
|
-
}
|
|
691
|
-
],
|
|
692
|
-
layout: {
|
|
693
|
-
boundingPoly: {
|
|
694
|
-
normalizedVertices: [
|
|
695
|
-
{
|
|
696
|
-
x: 42,
|
|
697
|
-
y: 42,
|
|
698
|
-
}
|
|
699
|
-
],
|
|
700
|
-
vertices: [
|
|
701
|
-
{
|
|
702
|
-
x: 42,
|
|
703
|
-
y: 42,
|
|
704
|
-
}
|
|
705
|
-
],
|
|
706
|
-
},
|
|
707
|
-
confidence: 42,
|
|
708
|
-
orientation: "Test string",
|
|
709
|
-
textAnchor: {
|
|
710
|
-
content: "Test string",
|
|
711
|
-
textSegments: [
|
|
712
|
-
{
|
|
713
|
-
endIndex: "Test string",
|
|
714
|
-
startIndex: "Test string",
|
|
715
|
-
}
|
|
716
|
-
],
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
rowSpan: 42,
|
|
720
|
-
}
|
|
721
|
-
],
|
|
722
|
-
}
|
|
723
|
-
],
|
|
724
|
-
detectedLanguages: [
|
|
725
|
-
{
|
|
726
|
-
confidence: 42,
|
|
727
|
-
languageCode: "Test string",
|
|
728
|
-
}
|
|
729
|
-
],
|
|
730
|
-
headerRows: [
|
|
731
|
-
{
|
|
732
|
-
cells: [
|
|
733
|
-
{
|
|
734
|
-
colSpan: 42,
|
|
735
|
-
detectedLanguages: [
|
|
736
|
-
{
|
|
737
|
-
confidence: 42,
|
|
738
|
-
languageCode: "Test string",
|
|
739
|
-
}
|
|
740
|
-
],
|
|
741
|
-
layout: {
|
|
742
|
-
boundingPoly: {
|
|
743
|
-
normalizedVertices: [
|
|
744
|
-
{
|
|
745
|
-
x: 42,
|
|
746
|
-
y: 42,
|
|
747
|
-
}
|
|
748
|
-
],
|
|
749
|
-
vertices: [
|
|
750
|
-
{
|
|
751
|
-
x: 42,
|
|
752
|
-
y: 42,
|
|
753
|
-
}
|
|
754
|
-
],
|
|
755
|
-
},
|
|
756
|
-
confidence: 42,
|
|
757
|
-
orientation: "Test string",
|
|
758
|
-
textAnchor: {
|
|
759
|
-
content: "Test string",
|
|
760
|
-
textSegments: [
|
|
761
|
-
{
|
|
762
|
-
endIndex: "Test string",
|
|
763
|
-
startIndex: "Test string",
|
|
764
|
-
}
|
|
765
|
-
],
|
|
766
|
-
},
|
|
767
|
-
},
|
|
768
|
-
rowSpan: 42,
|
|
769
|
-
}
|
|
770
|
-
],
|
|
771
|
-
}
|
|
772
|
-
],
|
|
773
|
-
layout: {
|
|
774
|
-
boundingPoly: {
|
|
775
|
-
normalizedVertices: [
|
|
776
|
-
{
|
|
777
|
-
x: 42,
|
|
778
|
-
y: 42,
|
|
779
|
-
}
|
|
780
|
-
],
|
|
781
|
-
vertices: [
|
|
782
|
-
{
|
|
783
|
-
x: 42,
|
|
784
|
-
y: 42,
|
|
785
|
-
}
|
|
786
|
-
],
|
|
787
|
-
},
|
|
788
|
-
confidence: 42,
|
|
789
|
-
orientation: "Test string",
|
|
790
|
-
textAnchor: {
|
|
791
|
-
content: "Test string",
|
|
792
|
-
textSegments: [
|
|
793
|
-
{
|
|
794
|
-
endIndex: "Test string",
|
|
795
|
-
startIndex: "Test string",
|
|
796
|
-
}
|
|
797
|
-
],
|
|
798
|
-
},
|
|
799
|
-
},
|
|
800
|
-
provenance: {
|
|
801
|
-
id: 42,
|
|
802
|
-
parents: [
|
|
803
|
-
{
|
|
804
|
-
id: 42,
|
|
805
|
-
index: 42,
|
|
806
|
-
revision: 42,
|
|
807
|
-
}
|
|
808
|
-
],
|
|
809
|
-
revision: 42,
|
|
810
|
-
type: "Test string",
|
|
811
|
-
},
|
|
812
|
-
}
|
|
813
|
-
],
|
|
814
|
-
tokens: [
|
|
815
|
-
{
|
|
816
|
-
detectedBreak: {
|
|
817
|
-
type: "Test string",
|
|
818
|
-
},
|
|
819
|
-
detectedLanguages: [
|
|
820
|
-
{
|
|
821
|
-
confidence: 42,
|
|
822
|
-
languageCode: "Test string",
|
|
823
|
-
}
|
|
824
|
-
],
|
|
825
|
-
layout: {
|
|
826
|
-
boundingPoly: {
|
|
827
|
-
normalizedVertices: [
|
|
828
|
-
{
|
|
829
|
-
x: 42,
|
|
830
|
-
y: 42,
|
|
831
|
-
}
|
|
832
|
-
],
|
|
833
|
-
vertices: [
|
|
834
|
-
{
|
|
835
|
-
x: 42,
|
|
836
|
-
y: 42,
|
|
837
|
-
}
|
|
838
|
-
],
|
|
839
|
-
},
|
|
840
|
-
confidence: 42,
|
|
841
|
-
orientation: "Test string",
|
|
842
|
-
textAnchor: {
|
|
843
|
-
content: "Test string",
|
|
844
|
-
textSegments: [
|
|
845
|
-
{
|
|
846
|
-
endIndex: "Test string",
|
|
847
|
-
startIndex: "Test string",
|
|
848
|
-
}
|
|
849
|
-
],
|
|
850
|
-
},
|
|
851
|
-
},
|
|
852
|
-
provenance: {
|
|
853
|
-
id: 42,
|
|
854
|
-
parents: [
|
|
855
|
-
{
|
|
856
|
-
id: 42,
|
|
857
|
-
index: 42,
|
|
858
|
-
revision: 42,
|
|
859
|
-
}
|
|
860
|
-
],
|
|
861
|
-
revision: 42,
|
|
862
|
-
type: "Test string",
|
|
863
|
-
},
|
|
864
|
-
styleInfo: {
|
|
865
|
-
backgroundColor: {
|
|
866
|
-
alpha: 42,
|
|
867
|
-
blue: 42,
|
|
868
|
-
green: 42,
|
|
869
|
-
red: 42,
|
|
870
|
-
},
|
|
871
|
-
bold: true,
|
|
872
|
-
fontSize: 42,
|
|
873
|
-
fontType: "Test string",
|
|
874
|
-
fontWeight: 42,
|
|
875
|
-
handwritten: true,
|
|
876
|
-
italic: true,
|
|
877
|
-
letterSpacing: 42,
|
|
878
|
-
pixelFontSize: 42,
|
|
879
|
-
smallcaps: true,
|
|
880
|
-
strikeout: true,
|
|
881
|
-
subscript: true,
|
|
882
|
-
superscript: true,
|
|
883
|
-
textColor: {
|
|
884
|
-
alpha: 42,
|
|
885
|
-
blue: 42,
|
|
886
|
-
green: 42,
|
|
887
|
-
red: 42,
|
|
888
|
-
},
|
|
889
|
-
underlined: true,
|
|
890
|
-
},
|
|
891
|
-
}
|
|
892
|
-
],
|
|
893
|
-
transforms: [
|
|
894
|
-
{
|
|
895
|
-
cols: 42,
|
|
896
|
-
data: "Test string",
|
|
897
|
-
rows: 42,
|
|
898
|
-
type: 42,
|
|
899
|
-
}
|
|
900
|
-
],
|
|
901
|
-
visualElements: [
|
|
902
|
-
{
|
|
903
|
-
detectedLanguages: [
|
|
904
|
-
{
|
|
905
|
-
confidence: 42,
|
|
906
|
-
languageCode: "Test string",
|
|
907
|
-
}
|
|
908
|
-
],
|
|
909
|
-
layout: {
|
|
910
|
-
boundingPoly: {
|
|
911
|
-
normalizedVertices: [
|
|
912
|
-
{
|
|
913
|
-
x: 42,
|
|
914
|
-
y: 42,
|
|
915
|
-
}
|
|
916
|
-
],
|
|
917
|
-
vertices: [
|
|
918
|
-
{
|
|
919
|
-
x: 42,
|
|
920
|
-
y: 42,
|
|
921
|
-
}
|
|
922
|
-
],
|
|
923
|
-
},
|
|
924
|
-
confidence: 42,
|
|
925
|
-
orientation: "Test string",
|
|
926
|
-
textAnchor: {
|
|
927
|
-
content: "Test string",
|
|
928
|
-
textSegments: [
|
|
929
|
-
{
|
|
930
|
-
endIndex: "Test string",
|
|
931
|
-
startIndex: "Test string",
|
|
932
|
-
}
|
|
933
|
-
],
|
|
934
|
-
},
|
|
935
|
-
},
|
|
936
|
-
type: "Test string",
|
|
937
|
-
}
|
|
938
|
-
],
|
|
939
|
-
}
|
|
940
|
-
],
|
|
941
|
-
revisions: [
|
|
942
|
-
{
|
|
943
|
-
agent: "Test string",
|
|
944
|
-
createTime: "Test string",
|
|
945
|
-
humanReview: {
|
|
946
|
-
state: "Test string",
|
|
947
|
-
stateMessage: "Test string",
|
|
948
|
-
},
|
|
949
|
-
id: "Test string",
|
|
950
|
-
parent: [
|
|
951
|
-
42
|
|
952
|
-
],
|
|
953
|
-
parentIds: [
|
|
954
|
-
"Test string"
|
|
955
|
-
],
|
|
956
|
-
processor: "Test string",
|
|
957
|
-
}
|
|
958
|
-
],
|
|
959
|
-
shardInfo: {
|
|
960
|
-
shardCount: "Test string",
|
|
961
|
-
shardIndex: "Test string",
|
|
962
|
-
textOffset: "Test string",
|
|
963
|
-
},
|
|
964
|
-
text: "Test string",
|
|
965
|
-
textChanges: [
|
|
966
|
-
{
|
|
967
|
-
changedText: "Test string",
|
|
968
|
-
provenance: [
|
|
969
|
-
{
|
|
970
|
-
id: 42,
|
|
971
|
-
parents: [
|
|
972
|
-
{
|
|
973
|
-
id: 42,
|
|
974
|
-
index: 42,
|
|
975
|
-
revision: 42,
|
|
976
|
-
}
|
|
977
|
-
],
|
|
978
|
-
revision: 42,
|
|
979
|
-
type: "Test string",
|
|
980
|
-
}
|
|
981
|
-
],
|
|
982
|
-
textAnchor: {
|
|
983
|
-
content: "Test string",
|
|
984
|
-
textSegments: [
|
|
985
|
-
{
|
|
986
|
-
endIndex: "Test string",
|
|
987
|
-
startIndex: "Test string",
|
|
988
|
-
}
|
|
989
|
-
],
|
|
990
|
-
},
|
|
991
|
-
}
|
|
992
|
-
],
|
|
993
|
-
textStyles: [
|
|
994
|
-
{
|
|
995
|
-
backgroundColor: {
|
|
996
|
-
alpha: 42,
|
|
997
|
-
blue: 42,
|
|
998
|
-
green: 42,
|
|
999
|
-
red: 42,
|
|
1000
|
-
},
|
|
1001
|
-
color: {
|
|
1002
|
-
alpha: 42,
|
|
1003
|
-
blue: 42,
|
|
1004
|
-
green: 42,
|
|
1005
|
-
red: 42,
|
|
1006
|
-
},
|
|
1007
|
-
fontFamily: "Test string",
|
|
1008
|
-
fontSize: {
|
|
1009
|
-
size: 42,
|
|
1010
|
-
unit: "Test string",
|
|
1011
|
-
},
|
|
1012
|
-
fontWeight: "Test string",
|
|
1013
|
-
textAnchor: {
|
|
1014
|
-
content: "Test string",
|
|
1015
|
-
textSegments: [
|
|
1016
|
-
{
|
|
1017
|
-
endIndex: "Test string",
|
|
1018
|
-
startIndex: "Test string",
|
|
1019
|
-
}
|
|
1020
|
-
],
|
|
1021
|
-
},
|
|
1022
|
-
textDecoration: "Test string",
|
|
1023
|
-
textStyle: "Test string",
|
|
1024
|
-
}
|
|
1025
|
-
],
|
|
1026
|
-
uri: "Test string",
|
|
1027
|
-
},
|
|
1028
|
-
processOptions: {
|
|
1029
|
-
fromEnd: 42,
|
|
1030
|
-
fromStart: 42,
|
|
1031
|
-
individualPageSelector: {
|
|
1032
|
-
pages: [
|
|
1033
|
-
42
|
|
1034
|
-
],
|
|
1035
|
-
},
|
|
1036
|
-
ocrConfig: {
|
|
1037
|
-
advancedOcrOptions: [
|
|
1038
|
-
"Test string"
|
|
1039
|
-
],
|
|
1040
|
-
computeStyleInfo: true,
|
|
1041
|
-
disableCharacterBoxesDetection: true,
|
|
1042
|
-
enableImageQualityScores: true,
|
|
1043
|
-
enableNativePdfParsing: true,
|
|
1044
|
-
enableSymbol: true,
|
|
1045
|
-
hints: {
|
|
1046
|
-
languageHints: [
|
|
1047
|
-
"Test string"
|
|
1048
|
-
],
|
|
1049
|
-
},
|
|
1050
|
-
premiumFeatures: {
|
|
1051
|
-
computeStyleInfo: true,
|
|
1052
|
-
enableMathOcr: true,
|
|
1053
|
-
enableSelectionMarkDetection: true,
|
|
1054
|
-
},
|
|
1055
|
-
},
|
|
1056
|
-
},
|
|
1057
|
-
rawDocument: {
|
|
1058
|
-
content: "Test string",
|
|
1059
|
-
displayName: "Test string",
|
|
1060
|
-
mimeType: "Test string",
|
|
1061
|
-
},
|
|
1062
|
-
skipHumanReview: true,
|
|
1063
|
-
});
|
|
1064
|
-
/** Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments. */
|
|
1065
|
-
await gapi.client.documentai.projects.locations.processors.setDefaultProcessorVersion({
|
|
1066
|
-
processor: "Test string",
|
|
1067
|
-
}, {
|
|
1068
|
-
defaultProcessorVersion: "Test string",
|
|
1069
|
-
});
|
|
1070
|
-
/** Send a document for Human Review. The input document should be processed by the specified processor. */
|
|
1071
|
-
await gapi.client.documentai.projects.locations.processors.humanReviewConfig.reviewDocument({
|
|
1072
|
-
humanReviewConfig: "Test string",
|
|
1073
|
-
}, {
|
|
1074
|
-
documentSchema: {
|
|
1075
|
-
description: "Test string",
|
|
1076
|
-
displayName: "Test string",
|
|
1077
|
-
entityTypes: [
|
|
1078
|
-
{
|
|
1079
|
-
baseTypes: [
|
|
1080
|
-
"Test string"
|
|
1081
|
-
],
|
|
1082
|
-
displayName: "Test string",
|
|
1083
|
-
enumValues: {
|
|
1084
|
-
values: [
|
|
1085
|
-
"Test string"
|
|
1086
|
-
],
|
|
1087
|
-
},
|
|
1088
|
-
name: "Test string",
|
|
1089
|
-
properties: [
|
|
1090
|
-
{
|
|
1091
|
-
name: "Test string",
|
|
1092
|
-
occurrenceType: "Test string",
|
|
1093
|
-
valueType: "Test string",
|
|
1094
|
-
}
|
|
1095
|
-
],
|
|
1096
|
-
}
|
|
1097
|
-
],
|
|
1098
|
-
metadata: {
|
|
1099
|
-
documentAllowMultipleLabels: true,
|
|
1100
|
-
documentSplitter: true,
|
|
1101
|
-
prefixedNamingOnProperties: true,
|
|
1102
|
-
skipNamingValidation: true,
|
|
1103
|
-
},
|
|
1104
|
-
},
|
|
1105
|
-
enableSchemaValidation: true,
|
|
1106
|
-
inlineDocument: {
|
|
1107
|
-
content: "Test string",
|
|
1108
|
-
entities: [
|
|
1109
|
-
{
|
|
1110
|
-
confidence: 42,
|
|
1111
|
-
id: "Test string",
|
|
1112
|
-
mentionId: "Test string",
|
|
1113
|
-
mentionText: "Test string",
|
|
1114
|
-
normalizedValue: {
|
|
1115
|
-
addressValue: {
|
|
1116
|
-
addressLines: [
|
|
1117
|
-
"Test string"
|
|
1118
|
-
],
|
|
1119
|
-
administrativeArea: "Test string",
|
|
1120
|
-
languageCode: "Test string",
|
|
1121
|
-
locality: "Test string",
|
|
1122
|
-
organization: "Test string",
|
|
1123
|
-
postalCode: "Test string",
|
|
1124
|
-
recipients: [
|
|
1125
|
-
"Test string"
|
|
1126
|
-
],
|
|
1127
|
-
regionCode: "Test string",
|
|
1128
|
-
revision: 42,
|
|
1129
|
-
sortingCode: "Test string",
|
|
1130
|
-
sublocality: "Test string",
|
|
1131
|
-
},
|
|
1132
|
-
booleanValue: true,
|
|
1133
|
-
datetimeValue: {
|
|
1134
|
-
day: 42,
|
|
1135
|
-
hours: 42,
|
|
1136
|
-
minutes: 42,
|
|
1137
|
-
month: 42,
|
|
1138
|
-
nanos: 42,
|
|
1139
|
-
seconds: 42,
|
|
1140
|
-
timeZone: {
|
|
1141
|
-
id: "Test string",
|
|
1142
|
-
version: "Test string",
|
|
1143
|
-
},
|
|
1144
|
-
utcOffset: "Test string",
|
|
1145
|
-
year: 42,
|
|
1146
|
-
},
|
|
1147
|
-
dateValue: {
|
|
1148
|
-
day: 42,
|
|
1149
|
-
month: 42,
|
|
1150
|
-
year: 42,
|
|
1151
|
-
},
|
|
1152
|
-
floatValue: 42,
|
|
1153
|
-
integerValue: 42,
|
|
1154
|
-
moneyValue: {
|
|
1155
|
-
currencyCode: "Test string",
|
|
1156
|
-
nanos: 42,
|
|
1157
|
-
units: "Test string",
|
|
1158
|
-
},
|
|
1159
|
-
text: "Test string",
|
|
1160
|
-
},
|
|
1161
|
-
pageAnchor: {
|
|
1162
|
-
pageRefs: [
|
|
1163
|
-
{
|
|
1164
|
-
boundingPoly: {
|
|
1165
|
-
normalizedVertices: [
|
|
1166
|
-
{
|
|
1167
|
-
x: 42,
|
|
1168
|
-
y: 42,
|
|
1169
|
-
}
|
|
1170
|
-
],
|
|
1171
|
-
vertices: [
|
|
1172
|
-
{
|
|
1173
|
-
x: 42,
|
|
1174
|
-
y: 42,
|
|
1175
|
-
}
|
|
1176
|
-
],
|
|
1177
|
-
},
|
|
1178
|
-
confidence: 42,
|
|
1179
|
-
layoutId: "Test string",
|
|
1180
|
-
layoutType: "Test string",
|
|
1181
|
-
page: "Test string",
|
|
1182
|
-
}
|
|
1183
|
-
],
|
|
1184
|
-
},
|
|
1185
|
-
properties: undefined,
|
|
1186
|
-
provenance: {
|
|
1187
|
-
id: 42,
|
|
1188
|
-
parents: [
|
|
1189
|
-
{
|
|
1190
|
-
id: 42,
|
|
1191
|
-
index: 42,
|
|
1192
|
-
revision: 42,
|
|
1193
|
-
}
|
|
1194
|
-
],
|
|
1195
|
-
revision: 42,
|
|
1196
|
-
type: "Test string",
|
|
1197
|
-
},
|
|
1198
|
-
redacted: true,
|
|
1199
|
-
textAnchor: {
|
|
1200
|
-
content: "Test string",
|
|
1201
|
-
textSegments: [
|
|
1202
|
-
{
|
|
1203
|
-
endIndex: "Test string",
|
|
1204
|
-
startIndex: "Test string",
|
|
1205
|
-
}
|
|
1206
|
-
],
|
|
1207
|
-
},
|
|
1208
|
-
type: "Test string",
|
|
1209
|
-
}
|
|
1210
|
-
],
|
|
1211
|
-
entityRelations: [
|
|
1212
|
-
{
|
|
1213
|
-
objectId: "Test string",
|
|
1214
|
-
relation: "Test string",
|
|
1215
|
-
subjectId: "Test string",
|
|
1216
|
-
}
|
|
1217
|
-
],
|
|
1218
|
-
error: {
|
|
1219
|
-
code: 42,
|
|
1220
|
-
details: [
|
|
1221
|
-
{
|
|
1222
|
-
A: 42
|
|
1223
|
-
}
|
|
1224
|
-
],
|
|
1225
|
-
message: "Test string",
|
|
1226
|
-
},
|
|
1227
|
-
mimeType: "Test string",
|
|
1228
|
-
pages: [
|
|
1229
|
-
{
|
|
1230
|
-
blocks: [
|
|
1231
|
-
{
|
|
1232
|
-
detectedLanguages: [
|
|
1233
|
-
{
|
|
1234
|
-
confidence: 42,
|
|
1235
|
-
languageCode: "Test string",
|
|
1236
|
-
}
|
|
1237
|
-
],
|
|
1238
|
-
layout: {
|
|
1239
|
-
boundingPoly: {
|
|
1240
|
-
normalizedVertices: [
|
|
1241
|
-
{
|
|
1242
|
-
x: 42,
|
|
1243
|
-
y: 42,
|
|
1244
|
-
}
|
|
1245
|
-
],
|
|
1246
|
-
vertices: [
|
|
1247
|
-
{
|
|
1248
|
-
x: 42,
|
|
1249
|
-
y: 42,
|
|
1250
|
-
}
|
|
1251
|
-
],
|
|
1252
|
-
},
|
|
1253
|
-
confidence: 42,
|
|
1254
|
-
orientation: "Test string",
|
|
1255
|
-
textAnchor: {
|
|
1256
|
-
content: "Test string",
|
|
1257
|
-
textSegments: [
|
|
1258
|
-
{
|
|
1259
|
-
endIndex: "Test string",
|
|
1260
|
-
startIndex: "Test string",
|
|
1261
|
-
}
|
|
1262
|
-
],
|
|
1263
|
-
},
|
|
1264
|
-
},
|
|
1265
|
-
provenance: {
|
|
1266
|
-
id: 42,
|
|
1267
|
-
parents: [
|
|
1268
|
-
{
|
|
1269
|
-
id: 42,
|
|
1270
|
-
index: 42,
|
|
1271
|
-
revision: 42,
|
|
1272
|
-
}
|
|
1273
|
-
],
|
|
1274
|
-
revision: 42,
|
|
1275
|
-
type: "Test string",
|
|
1276
|
-
},
|
|
1277
|
-
}
|
|
1278
|
-
],
|
|
1279
|
-
detectedBarcodes: [
|
|
1280
|
-
{
|
|
1281
|
-
barcode: {
|
|
1282
|
-
format: "Test string",
|
|
1283
|
-
rawValue: "Test string",
|
|
1284
|
-
valueFormat: "Test string",
|
|
1285
|
-
},
|
|
1286
|
-
layout: {
|
|
1287
|
-
boundingPoly: {
|
|
1288
|
-
normalizedVertices: [
|
|
1289
|
-
{
|
|
1290
|
-
x: 42,
|
|
1291
|
-
y: 42,
|
|
1292
|
-
}
|
|
1293
|
-
],
|
|
1294
|
-
vertices: [
|
|
1295
|
-
{
|
|
1296
|
-
x: 42,
|
|
1297
|
-
y: 42,
|
|
1298
|
-
}
|
|
1299
|
-
],
|
|
1300
|
-
},
|
|
1301
|
-
confidence: 42,
|
|
1302
|
-
orientation: "Test string",
|
|
1303
|
-
textAnchor: {
|
|
1304
|
-
content: "Test string",
|
|
1305
|
-
textSegments: [
|
|
1306
|
-
{
|
|
1307
|
-
endIndex: "Test string",
|
|
1308
|
-
startIndex: "Test string",
|
|
1309
|
-
}
|
|
1310
|
-
],
|
|
1311
|
-
},
|
|
1312
|
-
},
|
|
1313
|
-
}
|
|
1314
|
-
],
|
|
1315
|
-
detectedLanguages: [
|
|
1316
|
-
{
|
|
1317
|
-
confidence: 42,
|
|
1318
|
-
languageCode: "Test string",
|
|
1319
|
-
}
|
|
1320
|
-
],
|
|
1321
|
-
dimension: {
|
|
1322
|
-
height: 42,
|
|
1323
|
-
unit: "Test string",
|
|
1324
|
-
width: 42,
|
|
1325
|
-
},
|
|
1326
|
-
formFields: [
|
|
1327
|
-
{
|
|
1328
|
-
correctedKeyText: "Test string",
|
|
1329
|
-
correctedValueText: "Test string",
|
|
1330
|
-
fieldName: {
|
|
1331
|
-
boundingPoly: {
|
|
1332
|
-
normalizedVertices: [
|
|
1333
|
-
{
|
|
1334
|
-
x: 42,
|
|
1335
|
-
y: 42,
|
|
1336
|
-
}
|
|
1337
|
-
],
|
|
1338
|
-
vertices: [
|
|
1339
|
-
{
|
|
1340
|
-
x: 42,
|
|
1341
|
-
y: 42,
|
|
1342
|
-
}
|
|
1343
|
-
],
|
|
1344
|
-
},
|
|
1345
|
-
confidence: 42,
|
|
1346
|
-
orientation: "Test string",
|
|
1347
|
-
textAnchor: {
|
|
1348
|
-
content: "Test string",
|
|
1349
|
-
textSegments: [
|
|
1350
|
-
{
|
|
1351
|
-
endIndex: "Test string",
|
|
1352
|
-
startIndex: "Test string",
|
|
1353
|
-
}
|
|
1354
|
-
],
|
|
1355
|
-
},
|
|
1356
|
-
},
|
|
1357
|
-
fieldValue: {
|
|
1358
|
-
boundingPoly: {
|
|
1359
|
-
normalizedVertices: [
|
|
1360
|
-
{
|
|
1361
|
-
x: 42,
|
|
1362
|
-
y: 42,
|
|
1363
|
-
}
|
|
1364
|
-
],
|
|
1365
|
-
vertices: [
|
|
1366
|
-
{
|
|
1367
|
-
x: 42,
|
|
1368
|
-
y: 42,
|
|
1369
|
-
}
|
|
1370
|
-
],
|
|
1371
|
-
},
|
|
1372
|
-
confidence: 42,
|
|
1373
|
-
orientation: "Test string",
|
|
1374
|
-
textAnchor: {
|
|
1375
|
-
content: "Test string",
|
|
1376
|
-
textSegments: [
|
|
1377
|
-
{
|
|
1378
|
-
endIndex: "Test string",
|
|
1379
|
-
startIndex: "Test string",
|
|
1380
|
-
}
|
|
1381
|
-
],
|
|
1382
|
-
},
|
|
1383
|
-
},
|
|
1384
|
-
nameDetectedLanguages: [
|
|
1385
|
-
{
|
|
1386
|
-
confidence: 42,
|
|
1387
|
-
languageCode: "Test string",
|
|
1388
|
-
}
|
|
1389
|
-
],
|
|
1390
|
-
provenance: {
|
|
1391
|
-
id: 42,
|
|
1392
|
-
parents: [
|
|
1393
|
-
{
|
|
1394
|
-
id: 42,
|
|
1395
|
-
index: 42,
|
|
1396
|
-
revision: 42,
|
|
1397
|
-
}
|
|
1398
|
-
],
|
|
1399
|
-
revision: 42,
|
|
1400
|
-
type: "Test string",
|
|
1401
|
-
},
|
|
1402
|
-
valueDetectedLanguages: [
|
|
1403
|
-
{
|
|
1404
|
-
confidence: 42,
|
|
1405
|
-
languageCode: "Test string",
|
|
1406
|
-
}
|
|
1407
|
-
],
|
|
1408
|
-
valueType: "Test string",
|
|
1409
|
-
}
|
|
1410
|
-
],
|
|
1411
|
-
image: {
|
|
1412
|
-
content: "Test string",
|
|
1413
|
-
height: 42,
|
|
1414
|
-
mimeType: "Test string",
|
|
1415
|
-
width: 42,
|
|
1416
|
-
},
|
|
1417
|
-
imageQualityScores: {
|
|
1418
|
-
detectedDefects: [
|
|
1419
|
-
{
|
|
1420
|
-
confidence: 42,
|
|
1421
|
-
type: "Test string",
|
|
1422
|
-
}
|
|
1423
|
-
],
|
|
1424
|
-
qualityScore: 42,
|
|
1425
|
-
},
|
|
1426
|
-
layout: {
|
|
1427
|
-
boundingPoly: {
|
|
1428
|
-
normalizedVertices: [
|
|
1429
|
-
{
|
|
1430
|
-
x: 42,
|
|
1431
|
-
y: 42,
|
|
1432
|
-
}
|
|
1433
|
-
],
|
|
1434
|
-
vertices: [
|
|
1435
|
-
{
|
|
1436
|
-
x: 42,
|
|
1437
|
-
y: 42,
|
|
1438
|
-
}
|
|
1439
|
-
],
|
|
1440
|
-
},
|
|
1441
|
-
confidence: 42,
|
|
1442
|
-
orientation: "Test string",
|
|
1443
|
-
textAnchor: {
|
|
1444
|
-
content: "Test string",
|
|
1445
|
-
textSegments: [
|
|
1446
|
-
{
|
|
1447
|
-
endIndex: "Test string",
|
|
1448
|
-
startIndex: "Test string",
|
|
1449
|
-
}
|
|
1450
|
-
],
|
|
1451
|
-
},
|
|
1452
|
-
},
|
|
1453
|
-
lines: [
|
|
1454
|
-
{
|
|
1455
|
-
detectedLanguages: [
|
|
1456
|
-
{
|
|
1457
|
-
confidence: 42,
|
|
1458
|
-
languageCode: "Test string",
|
|
1459
|
-
}
|
|
1460
|
-
],
|
|
1461
|
-
layout: {
|
|
1462
|
-
boundingPoly: {
|
|
1463
|
-
normalizedVertices: [
|
|
1464
|
-
{
|
|
1465
|
-
x: 42,
|
|
1466
|
-
y: 42,
|
|
1467
|
-
}
|
|
1468
|
-
],
|
|
1469
|
-
vertices: [
|
|
1470
|
-
{
|
|
1471
|
-
x: 42,
|
|
1472
|
-
y: 42,
|
|
1473
|
-
}
|
|
1474
|
-
],
|
|
1475
|
-
},
|
|
1476
|
-
confidence: 42,
|
|
1477
|
-
orientation: "Test string",
|
|
1478
|
-
textAnchor: {
|
|
1479
|
-
content: "Test string",
|
|
1480
|
-
textSegments: [
|
|
1481
|
-
{
|
|
1482
|
-
endIndex: "Test string",
|
|
1483
|
-
startIndex: "Test string",
|
|
1484
|
-
}
|
|
1485
|
-
],
|
|
1486
|
-
},
|
|
1487
|
-
},
|
|
1488
|
-
provenance: {
|
|
1489
|
-
id: 42,
|
|
1490
|
-
parents: [
|
|
1491
|
-
{
|
|
1492
|
-
id: 42,
|
|
1493
|
-
index: 42,
|
|
1494
|
-
revision: 42,
|
|
1495
|
-
}
|
|
1496
|
-
],
|
|
1497
|
-
revision: 42,
|
|
1498
|
-
type: "Test string",
|
|
1499
|
-
},
|
|
1500
|
-
}
|
|
1501
|
-
],
|
|
1502
|
-
pageNumber: 42,
|
|
1503
|
-
paragraphs: [
|
|
1504
|
-
{
|
|
1505
|
-
detectedLanguages: [
|
|
1506
|
-
{
|
|
1507
|
-
confidence: 42,
|
|
1508
|
-
languageCode: "Test string",
|
|
1509
|
-
}
|
|
1510
|
-
],
|
|
1511
|
-
layout: {
|
|
1512
|
-
boundingPoly: {
|
|
1513
|
-
normalizedVertices: [
|
|
1514
|
-
{
|
|
1515
|
-
x: 42,
|
|
1516
|
-
y: 42,
|
|
1517
|
-
}
|
|
1518
|
-
],
|
|
1519
|
-
vertices: [
|
|
1520
|
-
{
|
|
1521
|
-
x: 42,
|
|
1522
|
-
y: 42,
|
|
1523
|
-
}
|
|
1524
|
-
],
|
|
1525
|
-
},
|
|
1526
|
-
confidence: 42,
|
|
1527
|
-
orientation: "Test string",
|
|
1528
|
-
textAnchor: {
|
|
1529
|
-
content: "Test string",
|
|
1530
|
-
textSegments: [
|
|
1531
|
-
{
|
|
1532
|
-
endIndex: "Test string",
|
|
1533
|
-
startIndex: "Test string",
|
|
1534
|
-
}
|
|
1535
|
-
],
|
|
1536
|
-
},
|
|
1537
|
-
},
|
|
1538
|
-
provenance: {
|
|
1539
|
-
id: 42,
|
|
1540
|
-
parents: [
|
|
1541
|
-
{
|
|
1542
|
-
id: 42,
|
|
1543
|
-
index: 42,
|
|
1544
|
-
revision: 42,
|
|
1545
|
-
}
|
|
1546
|
-
],
|
|
1547
|
-
revision: 42,
|
|
1548
|
-
type: "Test string",
|
|
1549
|
-
},
|
|
1550
|
-
}
|
|
1551
|
-
],
|
|
1552
|
-
provenance: {
|
|
1553
|
-
id: 42,
|
|
1554
|
-
parents: [
|
|
1555
|
-
{
|
|
1556
|
-
id: 42,
|
|
1557
|
-
index: 42,
|
|
1558
|
-
revision: 42,
|
|
1559
|
-
}
|
|
1560
|
-
],
|
|
1561
|
-
revision: 42,
|
|
1562
|
-
type: "Test string",
|
|
1563
|
-
},
|
|
1564
|
-
symbols: [
|
|
1565
|
-
{
|
|
1566
|
-
detectedLanguages: [
|
|
1567
|
-
{
|
|
1568
|
-
confidence: 42,
|
|
1569
|
-
languageCode: "Test string",
|
|
1570
|
-
}
|
|
1571
|
-
],
|
|
1572
|
-
layout: {
|
|
1573
|
-
boundingPoly: {
|
|
1574
|
-
normalizedVertices: [
|
|
1575
|
-
{
|
|
1576
|
-
x: 42,
|
|
1577
|
-
y: 42,
|
|
1578
|
-
}
|
|
1579
|
-
],
|
|
1580
|
-
vertices: [
|
|
1581
|
-
{
|
|
1582
|
-
x: 42,
|
|
1583
|
-
y: 42,
|
|
1584
|
-
}
|
|
1585
|
-
],
|
|
1586
|
-
},
|
|
1587
|
-
confidence: 42,
|
|
1588
|
-
orientation: "Test string",
|
|
1589
|
-
textAnchor: {
|
|
1590
|
-
content: "Test string",
|
|
1591
|
-
textSegments: [
|
|
1592
|
-
{
|
|
1593
|
-
endIndex: "Test string",
|
|
1594
|
-
startIndex: "Test string",
|
|
1595
|
-
}
|
|
1596
|
-
],
|
|
1597
|
-
},
|
|
1598
|
-
},
|
|
1599
|
-
}
|
|
1600
|
-
],
|
|
1601
|
-
tables: [
|
|
1602
|
-
{
|
|
1603
|
-
bodyRows: [
|
|
1604
|
-
{
|
|
1605
|
-
cells: [
|
|
1606
|
-
{
|
|
1607
|
-
colSpan: 42,
|
|
1608
|
-
detectedLanguages: [
|
|
1609
|
-
{
|
|
1610
|
-
confidence: 42,
|
|
1611
|
-
languageCode: "Test string",
|
|
1612
|
-
}
|
|
1613
|
-
],
|
|
1614
|
-
layout: {
|
|
1615
|
-
boundingPoly: {
|
|
1616
|
-
normalizedVertices: [
|
|
1617
|
-
{
|
|
1618
|
-
x: 42,
|
|
1619
|
-
y: 42,
|
|
1620
|
-
}
|
|
1621
|
-
],
|
|
1622
|
-
vertices: [
|
|
1623
|
-
{
|
|
1624
|
-
x: 42,
|
|
1625
|
-
y: 42,
|
|
1626
|
-
}
|
|
1627
|
-
],
|
|
1628
|
-
},
|
|
1629
|
-
confidence: 42,
|
|
1630
|
-
orientation: "Test string",
|
|
1631
|
-
textAnchor: {
|
|
1632
|
-
content: "Test string",
|
|
1633
|
-
textSegments: [
|
|
1634
|
-
{
|
|
1635
|
-
endIndex: "Test string",
|
|
1636
|
-
startIndex: "Test string",
|
|
1637
|
-
}
|
|
1638
|
-
],
|
|
1639
|
-
},
|
|
1640
|
-
},
|
|
1641
|
-
rowSpan: 42,
|
|
1642
|
-
}
|
|
1643
|
-
],
|
|
1644
|
-
}
|
|
1645
|
-
],
|
|
1646
|
-
detectedLanguages: [
|
|
1647
|
-
{
|
|
1648
|
-
confidence: 42,
|
|
1649
|
-
languageCode: "Test string",
|
|
1650
|
-
}
|
|
1651
|
-
],
|
|
1652
|
-
headerRows: [
|
|
1653
|
-
{
|
|
1654
|
-
cells: [
|
|
1655
|
-
{
|
|
1656
|
-
colSpan: 42,
|
|
1657
|
-
detectedLanguages: [
|
|
1658
|
-
{
|
|
1659
|
-
confidence: 42,
|
|
1660
|
-
languageCode: "Test string",
|
|
1661
|
-
}
|
|
1662
|
-
],
|
|
1663
|
-
layout: {
|
|
1664
|
-
boundingPoly: {
|
|
1665
|
-
normalizedVertices: [
|
|
1666
|
-
{
|
|
1667
|
-
x: 42,
|
|
1668
|
-
y: 42,
|
|
1669
|
-
}
|
|
1670
|
-
],
|
|
1671
|
-
vertices: [
|
|
1672
|
-
{
|
|
1673
|
-
x: 42,
|
|
1674
|
-
y: 42,
|
|
1675
|
-
}
|
|
1676
|
-
],
|
|
1677
|
-
},
|
|
1678
|
-
confidence: 42,
|
|
1679
|
-
orientation: "Test string",
|
|
1680
|
-
textAnchor: {
|
|
1681
|
-
content: "Test string",
|
|
1682
|
-
textSegments: [
|
|
1683
|
-
{
|
|
1684
|
-
endIndex: "Test string",
|
|
1685
|
-
startIndex: "Test string",
|
|
1686
|
-
}
|
|
1687
|
-
],
|
|
1688
|
-
},
|
|
1689
|
-
},
|
|
1690
|
-
rowSpan: 42,
|
|
1691
|
-
}
|
|
1692
|
-
],
|
|
1693
|
-
}
|
|
1694
|
-
],
|
|
1695
|
-
layout: {
|
|
1696
|
-
boundingPoly: {
|
|
1697
|
-
normalizedVertices: [
|
|
1698
|
-
{
|
|
1699
|
-
x: 42,
|
|
1700
|
-
y: 42,
|
|
1701
|
-
}
|
|
1702
|
-
],
|
|
1703
|
-
vertices: [
|
|
1704
|
-
{
|
|
1705
|
-
x: 42,
|
|
1706
|
-
y: 42,
|
|
1707
|
-
}
|
|
1708
|
-
],
|
|
1709
|
-
},
|
|
1710
|
-
confidence: 42,
|
|
1711
|
-
orientation: "Test string",
|
|
1712
|
-
textAnchor: {
|
|
1713
|
-
content: "Test string",
|
|
1714
|
-
textSegments: [
|
|
1715
|
-
{
|
|
1716
|
-
endIndex: "Test string",
|
|
1717
|
-
startIndex: "Test string",
|
|
1718
|
-
}
|
|
1719
|
-
],
|
|
1720
|
-
},
|
|
1721
|
-
},
|
|
1722
|
-
provenance: {
|
|
1723
|
-
id: 42,
|
|
1724
|
-
parents: [
|
|
1725
|
-
{
|
|
1726
|
-
id: 42,
|
|
1727
|
-
index: 42,
|
|
1728
|
-
revision: 42,
|
|
1729
|
-
}
|
|
1730
|
-
],
|
|
1731
|
-
revision: 42,
|
|
1732
|
-
type: "Test string",
|
|
1733
|
-
},
|
|
1734
|
-
}
|
|
1735
|
-
],
|
|
1736
|
-
tokens: [
|
|
1737
|
-
{
|
|
1738
|
-
detectedBreak: {
|
|
1739
|
-
type: "Test string",
|
|
1740
|
-
},
|
|
1741
|
-
detectedLanguages: [
|
|
1742
|
-
{
|
|
1743
|
-
confidence: 42,
|
|
1744
|
-
languageCode: "Test string",
|
|
1745
|
-
}
|
|
1746
|
-
],
|
|
1747
|
-
layout: {
|
|
1748
|
-
boundingPoly: {
|
|
1749
|
-
normalizedVertices: [
|
|
1750
|
-
{
|
|
1751
|
-
x: 42,
|
|
1752
|
-
y: 42,
|
|
1753
|
-
}
|
|
1754
|
-
],
|
|
1755
|
-
vertices: [
|
|
1756
|
-
{
|
|
1757
|
-
x: 42,
|
|
1758
|
-
y: 42,
|
|
1759
|
-
}
|
|
1760
|
-
],
|
|
1761
|
-
},
|
|
1762
|
-
confidence: 42,
|
|
1763
|
-
orientation: "Test string",
|
|
1764
|
-
textAnchor: {
|
|
1765
|
-
content: "Test string",
|
|
1766
|
-
textSegments: [
|
|
1767
|
-
{
|
|
1768
|
-
endIndex: "Test string",
|
|
1769
|
-
startIndex: "Test string",
|
|
1770
|
-
}
|
|
1771
|
-
],
|
|
1772
|
-
},
|
|
1773
|
-
},
|
|
1774
|
-
provenance: {
|
|
1775
|
-
id: 42,
|
|
1776
|
-
parents: [
|
|
1777
|
-
{
|
|
1778
|
-
id: 42,
|
|
1779
|
-
index: 42,
|
|
1780
|
-
revision: 42,
|
|
1781
|
-
}
|
|
1782
|
-
],
|
|
1783
|
-
revision: 42,
|
|
1784
|
-
type: "Test string",
|
|
1785
|
-
},
|
|
1786
|
-
styleInfo: {
|
|
1787
|
-
backgroundColor: {
|
|
1788
|
-
alpha: 42,
|
|
1789
|
-
blue: 42,
|
|
1790
|
-
green: 42,
|
|
1791
|
-
red: 42,
|
|
1792
|
-
},
|
|
1793
|
-
bold: true,
|
|
1794
|
-
fontSize: 42,
|
|
1795
|
-
fontType: "Test string",
|
|
1796
|
-
fontWeight: 42,
|
|
1797
|
-
handwritten: true,
|
|
1798
|
-
italic: true,
|
|
1799
|
-
letterSpacing: 42,
|
|
1800
|
-
pixelFontSize: 42,
|
|
1801
|
-
smallcaps: true,
|
|
1802
|
-
strikeout: true,
|
|
1803
|
-
subscript: true,
|
|
1804
|
-
superscript: true,
|
|
1805
|
-
textColor: {
|
|
1806
|
-
alpha: 42,
|
|
1807
|
-
blue: 42,
|
|
1808
|
-
green: 42,
|
|
1809
|
-
red: 42,
|
|
1810
|
-
},
|
|
1811
|
-
underlined: true,
|
|
1812
|
-
},
|
|
1813
|
-
}
|
|
1814
|
-
],
|
|
1815
|
-
transforms: [
|
|
1816
|
-
{
|
|
1817
|
-
cols: 42,
|
|
1818
|
-
data: "Test string",
|
|
1819
|
-
rows: 42,
|
|
1820
|
-
type: 42,
|
|
1821
|
-
}
|
|
1822
|
-
],
|
|
1823
|
-
visualElements: [
|
|
1824
|
-
{
|
|
1825
|
-
detectedLanguages: [
|
|
1826
|
-
{
|
|
1827
|
-
confidence: 42,
|
|
1828
|
-
languageCode: "Test string",
|
|
1829
|
-
}
|
|
1830
|
-
],
|
|
1831
|
-
layout: {
|
|
1832
|
-
boundingPoly: {
|
|
1833
|
-
normalizedVertices: [
|
|
1834
|
-
{
|
|
1835
|
-
x: 42,
|
|
1836
|
-
y: 42,
|
|
1837
|
-
}
|
|
1838
|
-
],
|
|
1839
|
-
vertices: [
|
|
1840
|
-
{
|
|
1841
|
-
x: 42,
|
|
1842
|
-
y: 42,
|
|
1843
|
-
}
|
|
1844
|
-
],
|
|
1845
|
-
},
|
|
1846
|
-
confidence: 42,
|
|
1847
|
-
orientation: "Test string",
|
|
1848
|
-
textAnchor: {
|
|
1849
|
-
content: "Test string",
|
|
1850
|
-
textSegments: [
|
|
1851
|
-
{
|
|
1852
|
-
endIndex: "Test string",
|
|
1853
|
-
startIndex: "Test string",
|
|
1854
|
-
}
|
|
1855
|
-
],
|
|
1856
|
-
},
|
|
1857
|
-
},
|
|
1858
|
-
type: "Test string",
|
|
1859
|
-
}
|
|
1860
|
-
],
|
|
1861
|
-
}
|
|
1862
|
-
],
|
|
1863
|
-
revisions: [
|
|
1864
|
-
{
|
|
1865
|
-
agent: "Test string",
|
|
1866
|
-
createTime: "Test string",
|
|
1867
|
-
humanReview: {
|
|
1868
|
-
state: "Test string",
|
|
1869
|
-
stateMessage: "Test string",
|
|
1870
|
-
},
|
|
1871
|
-
id: "Test string",
|
|
1872
|
-
parent: [
|
|
1873
|
-
42
|
|
1874
|
-
],
|
|
1875
|
-
parentIds: [
|
|
1876
|
-
"Test string"
|
|
1877
|
-
],
|
|
1878
|
-
processor: "Test string",
|
|
1879
|
-
}
|
|
1880
|
-
],
|
|
1881
|
-
shardInfo: {
|
|
1882
|
-
shardCount: "Test string",
|
|
1883
|
-
shardIndex: "Test string",
|
|
1884
|
-
textOffset: "Test string",
|
|
1885
|
-
},
|
|
1886
|
-
text: "Test string",
|
|
1887
|
-
textChanges: [
|
|
1888
|
-
{
|
|
1889
|
-
changedText: "Test string",
|
|
1890
|
-
provenance: [
|
|
1891
|
-
{
|
|
1892
|
-
id: 42,
|
|
1893
|
-
parents: [
|
|
1894
|
-
{
|
|
1895
|
-
id: 42,
|
|
1896
|
-
index: 42,
|
|
1897
|
-
revision: 42,
|
|
1898
|
-
}
|
|
1899
|
-
],
|
|
1900
|
-
revision: 42,
|
|
1901
|
-
type: "Test string",
|
|
1902
|
-
}
|
|
1903
|
-
],
|
|
1904
|
-
textAnchor: {
|
|
1905
|
-
content: "Test string",
|
|
1906
|
-
textSegments: [
|
|
1907
|
-
{
|
|
1908
|
-
endIndex: "Test string",
|
|
1909
|
-
startIndex: "Test string",
|
|
1910
|
-
}
|
|
1911
|
-
],
|
|
1912
|
-
},
|
|
1913
|
-
}
|
|
1914
|
-
],
|
|
1915
|
-
textStyles: [
|
|
1916
|
-
{
|
|
1917
|
-
backgroundColor: {
|
|
1918
|
-
alpha: 42,
|
|
1919
|
-
blue: 42,
|
|
1920
|
-
green: 42,
|
|
1921
|
-
red: 42,
|
|
1922
|
-
},
|
|
1923
|
-
color: {
|
|
1924
|
-
alpha: 42,
|
|
1925
|
-
blue: 42,
|
|
1926
|
-
green: 42,
|
|
1927
|
-
red: 42,
|
|
1928
|
-
},
|
|
1929
|
-
fontFamily: "Test string",
|
|
1930
|
-
fontSize: {
|
|
1931
|
-
size: 42,
|
|
1932
|
-
unit: "Test string",
|
|
1933
|
-
},
|
|
1934
|
-
fontWeight: "Test string",
|
|
1935
|
-
textAnchor: {
|
|
1936
|
-
content: "Test string",
|
|
1937
|
-
textSegments: [
|
|
1938
|
-
{
|
|
1939
|
-
endIndex: "Test string",
|
|
1940
|
-
startIndex: "Test string",
|
|
1941
|
-
}
|
|
1942
|
-
],
|
|
1943
|
-
},
|
|
1944
|
-
textDecoration: "Test string",
|
|
1945
|
-
textStyle: "Test string",
|
|
1946
|
-
}
|
|
1947
|
-
],
|
|
1948
|
-
uri: "Test string",
|
|
1949
|
-
},
|
|
1950
|
-
priority: "Test string",
|
|
1951
|
-
});
|
|
1952
|
-
/** LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. */
|
|
1953
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.batchProcess({
|
|
1954
|
-
name: "Test string",
|
|
1955
|
-
}, {
|
|
1956
|
-
documentOutputConfig: {
|
|
1957
|
-
gcsOutputConfig: {
|
|
1958
|
-
fieldMask: "Test string",
|
|
1959
|
-
gcsUri: "Test string",
|
|
1960
|
-
shardingConfig: {
|
|
1961
|
-
pagesOverlap: 42,
|
|
1962
|
-
pagesPerShard: 42,
|
|
1963
|
-
},
|
|
1964
|
-
},
|
|
1965
|
-
},
|
|
1966
|
-
inputDocuments: {
|
|
1967
|
-
gcsDocuments: {
|
|
1968
|
-
documents: [
|
|
1969
|
-
{
|
|
1970
|
-
gcsUri: "Test string",
|
|
1971
|
-
mimeType: "Test string",
|
|
1972
|
-
}
|
|
1973
|
-
],
|
|
1974
|
-
},
|
|
1975
|
-
gcsPrefix: {
|
|
1976
|
-
gcsUriPrefix: "Test string",
|
|
1977
|
-
},
|
|
1978
|
-
},
|
|
1979
|
-
processOptions: {
|
|
1980
|
-
fromEnd: 42,
|
|
1981
|
-
fromStart: 42,
|
|
1982
|
-
individualPageSelector: {
|
|
1983
|
-
pages: [
|
|
1984
|
-
42
|
|
1985
|
-
],
|
|
1986
|
-
},
|
|
1987
|
-
ocrConfig: {
|
|
1988
|
-
advancedOcrOptions: [
|
|
1989
|
-
"Test string"
|
|
1990
|
-
],
|
|
1991
|
-
computeStyleInfo: true,
|
|
1992
|
-
disableCharacterBoxesDetection: true,
|
|
1993
|
-
enableImageQualityScores: true,
|
|
1994
|
-
enableNativePdfParsing: true,
|
|
1995
|
-
enableSymbol: true,
|
|
1996
|
-
hints: {
|
|
1997
|
-
languageHints: [
|
|
1998
|
-
"Test string"
|
|
1999
|
-
],
|
|
2000
|
-
},
|
|
2001
|
-
premiumFeatures: {
|
|
2002
|
-
computeStyleInfo: true,
|
|
2003
|
-
enableMathOcr: true,
|
|
2004
|
-
enableSelectionMarkDetection: true,
|
|
2005
|
-
},
|
|
2006
|
-
},
|
|
2007
|
-
},
|
|
2008
|
-
skipHumanReview: true,
|
|
2009
|
-
});
|
|
2010
|
-
/** Deletes the processor version, all artifacts under the processor version will be deleted. */
|
|
2011
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.delete({
|
|
2012
|
-
name: "Test string",
|
|
2013
|
-
});
|
|
2014
|
-
/** Deploys the processor version. */
|
|
2015
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.deploy({
|
|
2016
|
-
name: "Test string",
|
|
2017
|
-
}, {
|
|
2018
|
-
});
|
|
2019
|
-
/** Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. */
|
|
2020
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.evaluateProcessorVersion({
|
|
2021
|
-
processorVersion: "Test string",
|
|
2022
|
-
}, {
|
|
2023
|
-
evaluationDocuments: {
|
|
2024
|
-
gcsDocuments: {
|
|
2025
|
-
documents: [
|
|
2026
|
-
{
|
|
2027
|
-
gcsUri: "Test string",
|
|
2028
|
-
mimeType: "Test string",
|
|
2029
|
-
}
|
|
2030
|
-
],
|
|
2031
|
-
},
|
|
2032
|
-
gcsPrefix: {
|
|
2033
|
-
gcsUriPrefix: "Test string",
|
|
2034
|
-
},
|
|
2035
|
-
},
|
|
2036
|
-
});
|
|
2037
|
-
/** Gets a processor version detail. */
|
|
2038
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.get({
|
|
2039
|
-
name: "Test string",
|
|
2040
|
-
});
|
|
2041
|
-
/** Lists all versions of a processor. */
|
|
2042
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.list({
|
|
2043
|
-
pageSize: 42,
|
|
2044
|
-
pageToken: "Test string",
|
|
2045
|
-
parent: "Test string",
|
|
2046
|
-
});
|
|
2047
|
-
/** Processes a single document. */
|
|
2048
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.process({
|
|
2049
|
-
name: "Test string",
|
|
2050
|
-
}, {
|
|
2051
|
-
fieldMask: "Test string",
|
|
2052
|
-
gcsDocument: {
|
|
2053
|
-
gcsUri: "Test string",
|
|
2054
|
-
mimeType: "Test string",
|
|
2055
|
-
},
|
|
2056
|
-
inlineDocument: {
|
|
2057
|
-
content: "Test string",
|
|
2058
|
-
entities: [
|
|
2059
|
-
{
|
|
2060
|
-
confidence: 42,
|
|
2061
|
-
id: "Test string",
|
|
2062
|
-
mentionId: "Test string",
|
|
2063
|
-
mentionText: "Test string",
|
|
2064
|
-
normalizedValue: {
|
|
2065
|
-
addressValue: {
|
|
2066
|
-
addressLines: [
|
|
2067
|
-
"Test string"
|
|
2068
|
-
],
|
|
2069
|
-
administrativeArea: "Test string",
|
|
2070
|
-
languageCode: "Test string",
|
|
2071
|
-
locality: "Test string",
|
|
2072
|
-
organization: "Test string",
|
|
2073
|
-
postalCode: "Test string",
|
|
2074
|
-
recipients: [
|
|
2075
|
-
"Test string"
|
|
2076
|
-
],
|
|
2077
|
-
regionCode: "Test string",
|
|
2078
|
-
revision: 42,
|
|
2079
|
-
sortingCode: "Test string",
|
|
2080
|
-
sublocality: "Test string",
|
|
2081
|
-
},
|
|
2082
|
-
booleanValue: true,
|
|
2083
|
-
datetimeValue: {
|
|
2084
|
-
day: 42,
|
|
2085
|
-
hours: 42,
|
|
2086
|
-
minutes: 42,
|
|
2087
|
-
month: 42,
|
|
2088
|
-
nanos: 42,
|
|
2089
|
-
seconds: 42,
|
|
2090
|
-
timeZone: {
|
|
2091
|
-
id: "Test string",
|
|
2092
|
-
version: "Test string",
|
|
2093
|
-
},
|
|
2094
|
-
utcOffset: "Test string",
|
|
2095
|
-
year: 42,
|
|
2096
|
-
},
|
|
2097
|
-
dateValue: {
|
|
2098
|
-
day: 42,
|
|
2099
|
-
month: 42,
|
|
2100
|
-
year: 42,
|
|
2101
|
-
},
|
|
2102
|
-
floatValue: 42,
|
|
2103
|
-
integerValue: 42,
|
|
2104
|
-
moneyValue: {
|
|
2105
|
-
currencyCode: "Test string",
|
|
2106
|
-
nanos: 42,
|
|
2107
|
-
units: "Test string",
|
|
2108
|
-
},
|
|
2109
|
-
text: "Test string",
|
|
2110
|
-
},
|
|
2111
|
-
pageAnchor: {
|
|
2112
|
-
pageRefs: [
|
|
2113
|
-
{
|
|
2114
|
-
boundingPoly: {
|
|
2115
|
-
normalizedVertices: [
|
|
2116
|
-
{
|
|
2117
|
-
x: 42,
|
|
2118
|
-
y: 42,
|
|
2119
|
-
}
|
|
2120
|
-
],
|
|
2121
|
-
vertices: [
|
|
2122
|
-
{
|
|
2123
|
-
x: 42,
|
|
2124
|
-
y: 42,
|
|
2125
|
-
}
|
|
2126
|
-
],
|
|
2127
|
-
},
|
|
2128
|
-
confidence: 42,
|
|
2129
|
-
layoutId: "Test string",
|
|
2130
|
-
layoutType: "Test string",
|
|
2131
|
-
page: "Test string",
|
|
2132
|
-
}
|
|
2133
|
-
],
|
|
2134
|
-
},
|
|
2135
|
-
properties: undefined,
|
|
2136
|
-
provenance: {
|
|
2137
|
-
id: 42,
|
|
2138
|
-
parents: [
|
|
2139
|
-
{
|
|
2140
|
-
id: 42,
|
|
2141
|
-
index: 42,
|
|
2142
|
-
revision: 42,
|
|
2143
|
-
}
|
|
2144
|
-
],
|
|
2145
|
-
revision: 42,
|
|
2146
|
-
type: "Test string",
|
|
2147
|
-
},
|
|
2148
|
-
redacted: true,
|
|
2149
|
-
textAnchor: {
|
|
2150
|
-
content: "Test string",
|
|
2151
|
-
textSegments: [
|
|
2152
|
-
{
|
|
2153
|
-
endIndex: "Test string",
|
|
2154
|
-
startIndex: "Test string",
|
|
2155
|
-
}
|
|
2156
|
-
],
|
|
2157
|
-
},
|
|
2158
|
-
type: "Test string",
|
|
2159
|
-
}
|
|
2160
|
-
],
|
|
2161
|
-
entityRelations: [
|
|
2162
|
-
{
|
|
2163
|
-
objectId: "Test string",
|
|
2164
|
-
relation: "Test string",
|
|
2165
|
-
subjectId: "Test string",
|
|
2166
|
-
}
|
|
2167
|
-
],
|
|
2168
|
-
error: {
|
|
2169
|
-
code: 42,
|
|
2170
|
-
details: [
|
|
2171
|
-
{
|
|
2172
|
-
A: 42
|
|
2173
|
-
}
|
|
2174
|
-
],
|
|
2175
|
-
message: "Test string",
|
|
2176
|
-
},
|
|
2177
|
-
mimeType: "Test string",
|
|
2178
|
-
pages: [
|
|
2179
|
-
{
|
|
2180
|
-
blocks: [
|
|
2181
|
-
{
|
|
2182
|
-
detectedLanguages: [
|
|
2183
|
-
{
|
|
2184
|
-
confidence: 42,
|
|
2185
|
-
languageCode: "Test string",
|
|
2186
|
-
}
|
|
2187
|
-
],
|
|
2188
|
-
layout: {
|
|
2189
|
-
boundingPoly: {
|
|
2190
|
-
normalizedVertices: [
|
|
2191
|
-
{
|
|
2192
|
-
x: 42,
|
|
2193
|
-
y: 42,
|
|
2194
|
-
}
|
|
2195
|
-
],
|
|
2196
|
-
vertices: [
|
|
2197
|
-
{
|
|
2198
|
-
x: 42,
|
|
2199
|
-
y: 42,
|
|
2200
|
-
}
|
|
2201
|
-
],
|
|
2202
|
-
},
|
|
2203
|
-
confidence: 42,
|
|
2204
|
-
orientation: "Test string",
|
|
2205
|
-
textAnchor: {
|
|
2206
|
-
content: "Test string",
|
|
2207
|
-
textSegments: [
|
|
2208
|
-
{
|
|
2209
|
-
endIndex: "Test string",
|
|
2210
|
-
startIndex: "Test string",
|
|
2211
|
-
}
|
|
2212
|
-
],
|
|
2213
|
-
},
|
|
2214
|
-
},
|
|
2215
|
-
provenance: {
|
|
2216
|
-
id: 42,
|
|
2217
|
-
parents: [
|
|
2218
|
-
{
|
|
2219
|
-
id: 42,
|
|
2220
|
-
index: 42,
|
|
2221
|
-
revision: 42,
|
|
2222
|
-
}
|
|
2223
|
-
],
|
|
2224
|
-
revision: 42,
|
|
2225
|
-
type: "Test string",
|
|
2226
|
-
},
|
|
2227
|
-
}
|
|
2228
|
-
],
|
|
2229
|
-
detectedBarcodes: [
|
|
2230
|
-
{
|
|
2231
|
-
barcode: {
|
|
2232
|
-
format: "Test string",
|
|
2233
|
-
rawValue: "Test string",
|
|
2234
|
-
valueFormat: "Test string",
|
|
2235
|
-
},
|
|
2236
|
-
layout: {
|
|
2237
|
-
boundingPoly: {
|
|
2238
|
-
normalizedVertices: [
|
|
2239
|
-
{
|
|
2240
|
-
x: 42,
|
|
2241
|
-
y: 42,
|
|
2242
|
-
}
|
|
2243
|
-
],
|
|
2244
|
-
vertices: [
|
|
2245
|
-
{
|
|
2246
|
-
x: 42,
|
|
2247
|
-
y: 42,
|
|
2248
|
-
}
|
|
2249
|
-
],
|
|
2250
|
-
},
|
|
2251
|
-
confidence: 42,
|
|
2252
|
-
orientation: "Test string",
|
|
2253
|
-
textAnchor: {
|
|
2254
|
-
content: "Test string",
|
|
2255
|
-
textSegments: [
|
|
2256
|
-
{
|
|
2257
|
-
endIndex: "Test string",
|
|
2258
|
-
startIndex: "Test string",
|
|
2259
|
-
}
|
|
2260
|
-
],
|
|
2261
|
-
},
|
|
2262
|
-
},
|
|
2263
|
-
}
|
|
2264
|
-
],
|
|
2265
|
-
detectedLanguages: [
|
|
2266
|
-
{
|
|
2267
|
-
confidence: 42,
|
|
2268
|
-
languageCode: "Test string",
|
|
2269
|
-
}
|
|
2270
|
-
],
|
|
2271
|
-
dimension: {
|
|
2272
|
-
height: 42,
|
|
2273
|
-
unit: "Test string",
|
|
2274
|
-
width: 42,
|
|
2275
|
-
},
|
|
2276
|
-
formFields: [
|
|
2277
|
-
{
|
|
2278
|
-
correctedKeyText: "Test string",
|
|
2279
|
-
correctedValueText: "Test string",
|
|
2280
|
-
fieldName: {
|
|
2281
|
-
boundingPoly: {
|
|
2282
|
-
normalizedVertices: [
|
|
2283
|
-
{
|
|
2284
|
-
x: 42,
|
|
2285
|
-
y: 42,
|
|
2286
|
-
}
|
|
2287
|
-
],
|
|
2288
|
-
vertices: [
|
|
2289
|
-
{
|
|
2290
|
-
x: 42,
|
|
2291
|
-
y: 42,
|
|
2292
|
-
}
|
|
2293
|
-
],
|
|
2294
|
-
},
|
|
2295
|
-
confidence: 42,
|
|
2296
|
-
orientation: "Test string",
|
|
2297
|
-
textAnchor: {
|
|
2298
|
-
content: "Test string",
|
|
2299
|
-
textSegments: [
|
|
2300
|
-
{
|
|
2301
|
-
endIndex: "Test string",
|
|
2302
|
-
startIndex: "Test string",
|
|
2303
|
-
}
|
|
2304
|
-
],
|
|
2305
|
-
},
|
|
2306
|
-
},
|
|
2307
|
-
fieldValue: {
|
|
2308
|
-
boundingPoly: {
|
|
2309
|
-
normalizedVertices: [
|
|
2310
|
-
{
|
|
2311
|
-
x: 42,
|
|
2312
|
-
y: 42,
|
|
2313
|
-
}
|
|
2314
|
-
],
|
|
2315
|
-
vertices: [
|
|
2316
|
-
{
|
|
2317
|
-
x: 42,
|
|
2318
|
-
y: 42,
|
|
2319
|
-
}
|
|
2320
|
-
],
|
|
2321
|
-
},
|
|
2322
|
-
confidence: 42,
|
|
2323
|
-
orientation: "Test string",
|
|
2324
|
-
textAnchor: {
|
|
2325
|
-
content: "Test string",
|
|
2326
|
-
textSegments: [
|
|
2327
|
-
{
|
|
2328
|
-
endIndex: "Test string",
|
|
2329
|
-
startIndex: "Test string",
|
|
2330
|
-
}
|
|
2331
|
-
],
|
|
2332
|
-
},
|
|
2333
|
-
},
|
|
2334
|
-
nameDetectedLanguages: [
|
|
2335
|
-
{
|
|
2336
|
-
confidence: 42,
|
|
2337
|
-
languageCode: "Test string",
|
|
2338
|
-
}
|
|
2339
|
-
],
|
|
2340
|
-
provenance: {
|
|
2341
|
-
id: 42,
|
|
2342
|
-
parents: [
|
|
2343
|
-
{
|
|
2344
|
-
id: 42,
|
|
2345
|
-
index: 42,
|
|
2346
|
-
revision: 42,
|
|
2347
|
-
}
|
|
2348
|
-
],
|
|
2349
|
-
revision: 42,
|
|
2350
|
-
type: "Test string",
|
|
2351
|
-
},
|
|
2352
|
-
valueDetectedLanguages: [
|
|
2353
|
-
{
|
|
2354
|
-
confidence: 42,
|
|
2355
|
-
languageCode: "Test string",
|
|
2356
|
-
}
|
|
2357
|
-
],
|
|
2358
|
-
valueType: "Test string",
|
|
2359
|
-
}
|
|
2360
|
-
],
|
|
2361
|
-
image: {
|
|
2362
|
-
content: "Test string",
|
|
2363
|
-
height: 42,
|
|
2364
|
-
mimeType: "Test string",
|
|
2365
|
-
width: 42,
|
|
2366
|
-
},
|
|
2367
|
-
imageQualityScores: {
|
|
2368
|
-
detectedDefects: [
|
|
2369
|
-
{
|
|
2370
|
-
confidence: 42,
|
|
2371
|
-
type: "Test string",
|
|
2372
|
-
}
|
|
2373
|
-
],
|
|
2374
|
-
qualityScore: 42,
|
|
2375
|
-
},
|
|
2376
|
-
layout: {
|
|
2377
|
-
boundingPoly: {
|
|
2378
|
-
normalizedVertices: [
|
|
2379
|
-
{
|
|
2380
|
-
x: 42,
|
|
2381
|
-
y: 42,
|
|
2382
|
-
}
|
|
2383
|
-
],
|
|
2384
|
-
vertices: [
|
|
2385
|
-
{
|
|
2386
|
-
x: 42,
|
|
2387
|
-
y: 42,
|
|
2388
|
-
}
|
|
2389
|
-
],
|
|
2390
|
-
},
|
|
2391
|
-
confidence: 42,
|
|
2392
|
-
orientation: "Test string",
|
|
2393
|
-
textAnchor: {
|
|
2394
|
-
content: "Test string",
|
|
2395
|
-
textSegments: [
|
|
2396
|
-
{
|
|
2397
|
-
endIndex: "Test string",
|
|
2398
|
-
startIndex: "Test string",
|
|
2399
|
-
}
|
|
2400
|
-
],
|
|
2401
|
-
},
|
|
2402
|
-
},
|
|
2403
|
-
lines: [
|
|
2404
|
-
{
|
|
2405
|
-
detectedLanguages: [
|
|
2406
|
-
{
|
|
2407
|
-
confidence: 42,
|
|
2408
|
-
languageCode: "Test string",
|
|
2409
|
-
}
|
|
2410
|
-
],
|
|
2411
|
-
layout: {
|
|
2412
|
-
boundingPoly: {
|
|
2413
|
-
normalizedVertices: [
|
|
2414
|
-
{
|
|
2415
|
-
x: 42,
|
|
2416
|
-
y: 42,
|
|
2417
|
-
}
|
|
2418
|
-
],
|
|
2419
|
-
vertices: [
|
|
2420
|
-
{
|
|
2421
|
-
x: 42,
|
|
2422
|
-
y: 42,
|
|
2423
|
-
}
|
|
2424
|
-
],
|
|
2425
|
-
},
|
|
2426
|
-
confidence: 42,
|
|
2427
|
-
orientation: "Test string",
|
|
2428
|
-
textAnchor: {
|
|
2429
|
-
content: "Test string",
|
|
2430
|
-
textSegments: [
|
|
2431
|
-
{
|
|
2432
|
-
endIndex: "Test string",
|
|
2433
|
-
startIndex: "Test string",
|
|
2434
|
-
}
|
|
2435
|
-
],
|
|
2436
|
-
},
|
|
2437
|
-
},
|
|
2438
|
-
provenance: {
|
|
2439
|
-
id: 42,
|
|
2440
|
-
parents: [
|
|
2441
|
-
{
|
|
2442
|
-
id: 42,
|
|
2443
|
-
index: 42,
|
|
2444
|
-
revision: 42,
|
|
2445
|
-
}
|
|
2446
|
-
],
|
|
2447
|
-
revision: 42,
|
|
2448
|
-
type: "Test string",
|
|
2449
|
-
},
|
|
2450
|
-
}
|
|
2451
|
-
],
|
|
2452
|
-
pageNumber: 42,
|
|
2453
|
-
paragraphs: [
|
|
2454
|
-
{
|
|
2455
|
-
detectedLanguages: [
|
|
2456
|
-
{
|
|
2457
|
-
confidence: 42,
|
|
2458
|
-
languageCode: "Test string",
|
|
2459
|
-
}
|
|
2460
|
-
],
|
|
2461
|
-
layout: {
|
|
2462
|
-
boundingPoly: {
|
|
2463
|
-
normalizedVertices: [
|
|
2464
|
-
{
|
|
2465
|
-
x: 42,
|
|
2466
|
-
y: 42,
|
|
2467
|
-
}
|
|
2468
|
-
],
|
|
2469
|
-
vertices: [
|
|
2470
|
-
{
|
|
2471
|
-
x: 42,
|
|
2472
|
-
y: 42,
|
|
2473
|
-
}
|
|
2474
|
-
],
|
|
2475
|
-
},
|
|
2476
|
-
confidence: 42,
|
|
2477
|
-
orientation: "Test string",
|
|
2478
|
-
textAnchor: {
|
|
2479
|
-
content: "Test string",
|
|
2480
|
-
textSegments: [
|
|
2481
|
-
{
|
|
2482
|
-
endIndex: "Test string",
|
|
2483
|
-
startIndex: "Test string",
|
|
2484
|
-
}
|
|
2485
|
-
],
|
|
2486
|
-
},
|
|
2487
|
-
},
|
|
2488
|
-
provenance: {
|
|
2489
|
-
id: 42,
|
|
2490
|
-
parents: [
|
|
2491
|
-
{
|
|
2492
|
-
id: 42,
|
|
2493
|
-
index: 42,
|
|
2494
|
-
revision: 42,
|
|
2495
|
-
}
|
|
2496
|
-
],
|
|
2497
|
-
revision: 42,
|
|
2498
|
-
type: "Test string",
|
|
2499
|
-
},
|
|
2500
|
-
}
|
|
2501
|
-
],
|
|
2502
|
-
provenance: {
|
|
2503
|
-
id: 42,
|
|
2504
|
-
parents: [
|
|
2505
|
-
{
|
|
2506
|
-
id: 42,
|
|
2507
|
-
index: 42,
|
|
2508
|
-
revision: 42,
|
|
2509
|
-
}
|
|
2510
|
-
],
|
|
2511
|
-
revision: 42,
|
|
2512
|
-
type: "Test string",
|
|
2513
|
-
},
|
|
2514
|
-
symbols: [
|
|
2515
|
-
{
|
|
2516
|
-
detectedLanguages: [
|
|
2517
|
-
{
|
|
2518
|
-
confidence: 42,
|
|
2519
|
-
languageCode: "Test string",
|
|
2520
|
-
}
|
|
2521
|
-
],
|
|
2522
|
-
layout: {
|
|
2523
|
-
boundingPoly: {
|
|
2524
|
-
normalizedVertices: [
|
|
2525
|
-
{
|
|
2526
|
-
x: 42,
|
|
2527
|
-
y: 42,
|
|
2528
|
-
}
|
|
2529
|
-
],
|
|
2530
|
-
vertices: [
|
|
2531
|
-
{
|
|
2532
|
-
x: 42,
|
|
2533
|
-
y: 42,
|
|
2534
|
-
}
|
|
2535
|
-
],
|
|
2536
|
-
},
|
|
2537
|
-
confidence: 42,
|
|
2538
|
-
orientation: "Test string",
|
|
2539
|
-
textAnchor: {
|
|
2540
|
-
content: "Test string",
|
|
2541
|
-
textSegments: [
|
|
2542
|
-
{
|
|
2543
|
-
endIndex: "Test string",
|
|
2544
|
-
startIndex: "Test string",
|
|
2545
|
-
}
|
|
2546
|
-
],
|
|
2547
|
-
},
|
|
2548
|
-
},
|
|
2549
|
-
}
|
|
2550
|
-
],
|
|
2551
|
-
tables: [
|
|
2552
|
-
{
|
|
2553
|
-
bodyRows: [
|
|
2554
|
-
{
|
|
2555
|
-
cells: [
|
|
2556
|
-
{
|
|
2557
|
-
colSpan: 42,
|
|
2558
|
-
detectedLanguages: [
|
|
2559
|
-
{
|
|
2560
|
-
confidence: 42,
|
|
2561
|
-
languageCode: "Test string",
|
|
2562
|
-
}
|
|
2563
|
-
],
|
|
2564
|
-
layout: {
|
|
2565
|
-
boundingPoly: {
|
|
2566
|
-
normalizedVertices: [
|
|
2567
|
-
{
|
|
2568
|
-
x: 42,
|
|
2569
|
-
y: 42,
|
|
2570
|
-
}
|
|
2571
|
-
],
|
|
2572
|
-
vertices: [
|
|
2573
|
-
{
|
|
2574
|
-
x: 42,
|
|
2575
|
-
y: 42,
|
|
2576
|
-
}
|
|
2577
|
-
],
|
|
2578
|
-
},
|
|
2579
|
-
confidence: 42,
|
|
2580
|
-
orientation: "Test string",
|
|
2581
|
-
textAnchor: {
|
|
2582
|
-
content: "Test string",
|
|
2583
|
-
textSegments: [
|
|
2584
|
-
{
|
|
2585
|
-
endIndex: "Test string",
|
|
2586
|
-
startIndex: "Test string",
|
|
2587
|
-
}
|
|
2588
|
-
],
|
|
2589
|
-
},
|
|
2590
|
-
},
|
|
2591
|
-
rowSpan: 42,
|
|
2592
|
-
}
|
|
2593
|
-
],
|
|
2594
|
-
}
|
|
2595
|
-
],
|
|
2596
|
-
detectedLanguages: [
|
|
2597
|
-
{
|
|
2598
|
-
confidence: 42,
|
|
2599
|
-
languageCode: "Test string",
|
|
2600
|
-
}
|
|
2601
|
-
],
|
|
2602
|
-
headerRows: [
|
|
2603
|
-
{
|
|
2604
|
-
cells: [
|
|
2605
|
-
{
|
|
2606
|
-
colSpan: 42,
|
|
2607
|
-
detectedLanguages: [
|
|
2608
|
-
{
|
|
2609
|
-
confidence: 42,
|
|
2610
|
-
languageCode: "Test string",
|
|
2611
|
-
}
|
|
2612
|
-
],
|
|
2613
|
-
layout: {
|
|
2614
|
-
boundingPoly: {
|
|
2615
|
-
normalizedVertices: [
|
|
2616
|
-
{
|
|
2617
|
-
x: 42,
|
|
2618
|
-
y: 42,
|
|
2619
|
-
}
|
|
2620
|
-
],
|
|
2621
|
-
vertices: [
|
|
2622
|
-
{
|
|
2623
|
-
x: 42,
|
|
2624
|
-
y: 42,
|
|
2625
|
-
}
|
|
2626
|
-
],
|
|
2627
|
-
},
|
|
2628
|
-
confidence: 42,
|
|
2629
|
-
orientation: "Test string",
|
|
2630
|
-
textAnchor: {
|
|
2631
|
-
content: "Test string",
|
|
2632
|
-
textSegments: [
|
|
2633
|
-
{
|
|
2634
|
-
endIndex: "Test string",
|
|
2635
|
-
startIndex: "Test string",
|
|
2636
|
-
}
|
|
2637
|
-
],
|
|
2638
|
-
},
|
|
2639
|
-
},
|
|
2640
|
-
rowSpan: 42,
|
|
2641
|
-
}
|
|
2642
|
-
],
|
|
2643
|
-
}
|
|
2644
|
-
],
|
|
2645
|
-
layout: {
|
|
2646
|
-
boundingPoly: {
|
|
2647
|
-
normalizedVertices: [
|
|
2648
|
-
{
|
|
2649
|
-
x: 42,
|
|
2650
|
-
y: 42,
|
|
2651
|
-
}
|
|
2652
|
-
],
|
|
2653
|
-
vertices: [
|
|
2654
|
-
{
|
|
2655
|
-
x: 42,
|
|
2656
|
-
y: 42,
|
|
2657
|
-
}
|
|
2658
|
-
],
|
|
2659
|
-
},
|
|
2660
|
-
confidence: 42,
|
|
2661
|
-
orientation: "Test string",
|
|
2662
|
-
textAnchor: {
|
|
2663
|
-
content: "Test string",
|
|
2664
|
-
textSegments: [
|
|
2665
|
-
{
|
|
2666
|
-
endIndex: "Test string",
|
|
2667
|
-
startIndex: "Test string",
|
|
2668
|
-
}
|
|
2669
|
-
],
|
|
2670
|
-
},
|
|
2671
|
-
},
|
|
2672
|
-
provenance: {
|
|
2673
|
-
id: 42,
|
|
2674
|
-
parents: [
|
|
2675
|
-
{
|
|
2676
|
-
id: 42,
|
|
2677
|
-
index: 42,
|
|
2678
|
-
revision: 42,
|
|
2679
|
-
}
|
|
2680
|
-
],
|
|
2681
|
-
revision: 42,
|
|
2682
|
-
type: "Test string",
|
|
2683
|
-
},
|
|
2684
|
-
}
|
|
2685
|
-
],
|
|
2686
|
-
tokens: [
|
|
2687
|
-
{
|
|
2688
|
-
detectedBreak: {
|
|
2689
|
-
type: "Test string",
|
|
2690
|
-
},
|
|
2691
|
-
detectedLanguages: [
|
|
2692
|
-
{
|
|
2693
|
-
confidence: 42,
|
|
2694
|
-
languageCode: "Test string",
|
|
2695
|
-
}
|
|
2696
|
-
],
|
|
2697
|
-
layout: {
|
|
2698
|
-
boundingPoly: {
|
|
2699
|
-
normalizedVertices: [
|
|
2700
|
-
{
|
|
2701
|
-
x: 42,
|
|
2702
|
-
y: 42,
|
|
2703
|
-
}
|
|
2704
|
-
],
|
|
2705
|
-
vertices: [
|
|
2706
|
-
{
|
|
2707
|
-
x: 42,
|
|
2708
|
-
y: 42,
|
|
2709
|
-
}
|
|
2710
|
-
],
|
|
2711
|
-
},
|
|
2712
|
-
confidence: 42,
|
|
2713
|
-
orientation: "Test string",
|
|
2714
|
-
textAnchor: {
|
|
2715
|
-
content: "Test string",
|
|
2716
|
-
textSegments: [
|
|
2717
|
-
{
|
|
2718
|
-
endIndex: "Test string",
|
|
2719
|
-
startIndex: "Test string",
|
|
2720
|
-
}
|
|
2721
|
-
],
|
|
2722
|
-
},
|
|
2723
|
-
},
|
|
2724
|
-
provenance: {
|
|
2725
|
-
id: 42,
|
|
2726
|
-
parents: [
|
|
2727
|
-
{
|
|
2728
|
-
id: 42,
|
|
2729
|
-
index: 42,
|
|
2730
|
-
revision: 42,
|
|
2731
|
-
}
|
|
2732
|
-
],
|
|
2733
|
-
revision: 42,
|
|
2734
|
-
type: "Test string",
|
|
2735
|
-
},
|
|
2736
|
-
styleInfo: {
|
|
2737
|
-
backgroundColor: {
|
|
2738
|
-
alpha: 42,
|
|
2739
|
-
blue: 42,
|
|
2740
|
-
green: 42,
|
|
2741
|
-
red: 42,
|
|
2742
|
-
},
|
|
2743
|
-
bold: true,
|
|
2744
|
-
fontSize: 42,
|
|
2745
|
-
fontType: "Test string",
|
|
2746
|
-
fontWeight: 42,
|
|
2747
|
-
handwritten: true,
|
|
2748
|
-
italic: true,
|
|
2749
|
-
letterSpacing: 42,
|
|
2750
|
-
pixelFontSize: 42,
|
|
2751
|
-
smallcaps: true,
|
|
2752
|
-
strikeout: true,
|
|
2753
|
-
subscript: true,
|
|
2754
|
-
superscript: true,
|
|
2755
|
-
textColor: {
|
|
2756
|
-
alpha: 42,
|
|
2757
|
-
blue: 42,
|
|
2758
|
-
green: 42,
|
|
2759
|
-
red: 42,
|
|
2760
|
-
},
|
|
2761
|
-
underlined: true,
|
|
2762
|
-
},
|
|
2763
|
-
}
|
|
2764
|
-
],
|
|
2765
|
-
transforms: [
|
|
2766
|
-
{
|
|
2767
|
-
cols: 42,
|
|
2768
|
-
data: "Test string",
|
|
2769
|
-
rows: 42,
|
|
2770
|
-
type: 42,
|
|
2771
|
-
}
|
|
2772
|
-
],
|
|
2773
|
-
visualElements: [
|
|
2774
|
-
{
|
|
2775
|
-
detectedLanguages: [
|
|
2776
|
-
{
|
|
2777
|
-
confidence: 42,
|
|
2778
|
-
languageCode: "Test string",
|
|
2779
|
-
}
|
|
2780
|
-
],
|
|
2781
|
-
layout: {
|
|
2782
|
-
boundingPoly: {
|
|
2783
|
-
normalizedVertices: [
|
|
2784
|
-
{
|
|
2785
|
-
x: 42,
|
|
2786
|
-
y: 42,
|
|
2787
|
-
}
|
|
2788
|
-
],
|
|
2789
|
-
vertices: [
|
|
2790
|
-
{
|
|
2791
|
-
x: 42,
|
|
2792
|
-
y: 42,
|
|
2793
|
-
}
|
|
2794
|
-
],
|
|
2795
|
-
},
|
|
2796
|
-
confidence: 42,
|
|
2797
|
-
orientation: "Test string",
|
|
2798
|
-
textAnchor: {
|
|
2799
|
-
content: "Test string",
|
|
2800
|
-
textSegments: [
|
|
2801
|
-
{
|
|
2802
|
-
endIndex: "Test string",
|
|
2803
|
-
startIndex: "Test string",
|
|
2804
|
-
}
|
|
2805
|
-
],
|
|
2806
|
-
},
|
|
2807
|
-
},
|
|
2808
|
-
type: "Test string",
|
|
2809
|
-
}
|
|
2810
|
-
],
|
|
2811
|
-
}
|
|
2812
|
-
],
|
|
2813
|
-
revisions: [
|
|
2814
|
-
{
|
|
2815
|
-
agent: "Test string",
|
|
2816
|
-
createTime: "Test string",
|
|
2817
|
-
humanReview: {
|
|
2818
|
-
state: "Test string",
|
|
2819
|
-
stateMessage: "Test string",
|
|
2820
|
-
},
|
|
2821
|
-
id: "Test string",
|
|
2822
|
-
parent: [
|
|
2823
|
-
42
|
|
2824
|
-
],
|
|
2825
|
-
parentIds: [
|
|
2826
|
-
"Test string"
|
|
2827
|
-
],
|
|
2828
|
-
processor: "Test string",
|
|
2829
|
-
}
|
|
2830
|
-
],
|
|
2831
|
-
shardInfo: {
|
|
2832
|
-
shardCount: "Test string",
|
|
2833
|
-
shardIndex: "Test string",
|
|
2834
|
-
textOffset: "Test string",
|
|
2835
|
-
},
|
|
2836
|
-
text: "Test string",
|
|
2837
|
-
textChanges: [
|
|
2838
|
-
{
|
|
2839
|
-
changedText: "Test string",
|
|
2840
|
-
provenance: [
|
|
2841
|
-
{
|
|
2842
|
-
id: 42,
|
|
2843
|
-
parents: [
|
|
2844
|
-
{
|
|
2845
|
-
id: 42,
|
|
2846
|
-
index: 42,
|
|
2847
|
-
revision: 42,
|
|
2848
|
-
}
|
|
2849
|
-
],
|
|
2850
|
-
revision: 42,
|
|
2851
|
-
type: "Test string",
|
|
2852
|
-
}
|
|
2853
|
-
],
|
|
2854
|
-
textAnchor: {
|
|
2855
|
-
content: "Test string",
|
|
2856
|
-
textSegments: [
|
|
2857
|
-
{
|
|
2858
|
-
endIndex: "Test string",
|
|
2859
|
-
startIndex: "Test string",
|
|
2860
|
-
}
|
|
2861
|
-
],
|
|
2862
|
-
},
|
|
2863
|
-
}
|
|
2864
|
-
],
|
|
2865
|
-
textStyles: [
|
|
2866
|
-
{
|
|
2867
|
-
backgroundColor: {
|
|
2868
|
-
alpha: 42,
|
|
2869
|
-
blue: 42,
|
|
2870
|
-
green: 42,
|
|
2871
|
-
red: 42,
|
|
2872
|
-
},
|
|
2873
|
-
color: {
|
|
2874
|
-
alpha: 42,
|
|
2875
|
-
blue: 42,
|
|
2876
|
-
green: 42,
|
|
2877
|
-
red: 42,
|
|
2878
|
-
},
|
|
2879
|
-
fontFamily: "Test string",
|
|
2880
|
-
fontSize: {
|
|
2881
|
-
size: 42,
|
|
2882
|
-
unit: "Test string",
|
|
2883
|
-
},
|
|
2884
|
-
fontWeight: "Test string",
|
|
2885
|
-
textAnchor: {
|
|
2886
|
-
content: "Test string",
|
|
2887
|
-
textSegments: [
|
|
2888
|
-
{
|
|
2889
|
-
endIndex: "Test string",
|
|
2890
|
-
startIndex: "Test string",
|
|
2891
|
-
}
|
|
2892
|
-
],
|
|
2893
|
-
},
|
|
2894
|
-
textDecoration: "Test string",
|
|
2895
|
-
textStyle: "Test string",
|
|
2896
|
-
}
|
|
2897
|
-
],
|
|
2898
|
-
uri: "Test string",
|
|
2899
|
-
},
|
|
2900
|
-
processOptions: {
|
|
2901
|
-
fromEnd: 42,
|
|
2902
|
-
fromStart: 42,
|
|
2903
|
-
individualPageSelector: {
|
|
2904
|
-
pages: [
|
|
2905
|
-
42
|
|
2906
|
-
],
|
|
2907
|
-
},
|
|
2908
|
-
ocrConfig: {
|
|
2909
|
-
advancedOcrOptions: [
|
|
2910
|
-
"Test string"
|
|
2911
|
-
],
|
|
2912
|
-
computeStyleInfo: true,
|
|
2913
|
-
disableCharacterBoxesDetection: true,
|
|
2914
|
-
enableImageQualityScores: true,
|
|
2915
|
-
enableNativePdfParsing: true,
|
|
2916
|
-
enableSymbol: true,
|
|
2917
|
-
hints: {
|
|
2918
|
-
languageHints: [
|
|
2919
|
-
"Test string"
|
|
2920
|
-
],
|
|
2921
|
-
},
|
|
2922
|
-
premiumFeatures: {
|
|
2923
|
-
computeStyleInfo: true,
|
|
2924
|
-
enableMathOcr: true,
|
|
2925
|
-
enableSelectionMarkDetection: true,
|
|
2926
|
-
},
|
|
2927
|
-
},
|
|
2928
|
-
},
|
|
2929
|
-
rawDocument: {
|
|
2930
|
-
content: "Test string",
|
|
2931
|
-
displayName: "Test string",
|
|
2932
|
-
mimeType: "Test string",
|
|
2933
|
-
},
|
|
2934
|
-
skipHumanReview: true,
|
|
2935
|
-
});
|
|
2936
|
-
/** Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata. */
|
|
2937
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.train({
|
|
2938
|
-
parent: "Test string",
|
|
2939
|
-
}, {
|
|
2940
|
-
baseProcessorVersion: "Test string",
|
|
2941
|
-
customDocumentExtractionOptions: {
|
|
2942
|
-
trainingMethod: "Test string",
|
|
2943
|
-
},
|
|
2944
|
-
documentSchema: {
|
|
2945
|
-
description: "Test string",
|
|
2946
|
-
displayName: "Test string",
|
|
2947
|
-
entityTypes: [
|
|
2948
|
-
{
|
|
2949
|
-
baseTypes: [
|
|
2950
|
-
"Test string"
|
|
2951
|
-
],
|
|
2952
|
-
displayName: "Test string",
|
|
2953
|
-
enumValues: {
|
|
2954
|
-
values: [
|
|
2955
|
-
"Test string"
|
|
2956
|
-
],
|
|
2957
|
-
},
|
|
2958
|
-
name: "Test string",
|
|
2959
|
-
properties: [
|
|
2960
|
-
{
|
|
2961
|
-
name: "Test string",
|
|
2962
|
-
occurrenceType: "Test string",
|
|
2963
|
-
valueType: "Test string",
|
|
2964
|
-
}
|
|
2965
|
-
],
|
|
2966
|
-
}
|
|
2967
|
-
],
|
|
2968
|
-
metadata: {
|
|
2969
|
-
documentAllowMultipleLabels: true,
|
|
2970
|
-
documentSplitter: true,
|
|
2971
|
-
prefixedNamingOnProperties: true,
|
|
2972
|
-
skipNamingValidation: true,
|
|
2973
|
-
},
|
|
2974
|
-
},
|
|
2975
|
-
inputData: {
|
|
2976
|
-
testDocuments: {
|
|
2977
|
-
gcsDocuments: {
|
|
2978
|
-
documents: [
|
|
2979
|
-
{
|
|
2980
|
-
gcsUri: "Test string",
|
|
2981
|
-
mimeType: "Test string",
|
|
2982
|
-
}
|
|
2983
|
-
],
|
|
2984
|
-
},
|
|
2985
|
-
gcsPrefix: {
|
|
2986
|
-
gcsUriPrefix: "Test string",
|
|
2987
|
-
},
|
|
2988
|
-
},
|
|
2989
|
-
trainingDocuments: {
|
|
2990
|
-
gcsDocuments: {
|
|
2991
|
-
documents: [
|
|
2992
|
-
{
|
|
2993
|
-
gcsUri: "Test string",
|
|
2994
|
-
mimeType: "Test string",
|
|
2995
|
-
}
|
|
2996
|
-
],
|
|
2997
|
-
},
|
|
2998
|
-
gcsPrefix: {
|
|
2999
|
-
gcsUriPrefix: "Test string",
|
|
3000
|
-
},
|
|
3001
|
-
},
|
|
3002
|
-
},
|
|
3003
|
-
processorVersion: {
|
|
3004
|
-
createTime: "Test string",
|
|
3005
|
-
deprecationInfo: {
|
|
3006
|
-
deprecationTime: "Test string",
|
|
3007
|
-
replacementProcessorVersion: "Test string",
|
|
3008
|
-
},
|
|
3009
|
-
displayName: "Test string",
|
|
3010
|
-
documentSchema: {
|
|
3011
|
-
description: "Test string",
|
|
3012
|
-
displayName: "Test string",
|
|
3013
|
-
entityTypes: [
|
|
3014
|
-
{
|
|
3015
|
-
baseTypes: [
|
|
3016
|
-
"Test string"
|
|
3017
|
-
],
|
|
3018
|
-
displayName: "Test string",
|
|
3019
|
-
enumValues: {
|
|
3020
|
-
values: [
|
|
3021
|
-
"Test string"
|
|
3022
|
-
],
|
|
3023
|
-
},
|
|
3024
|
-
name: "Test string",
|
|
3025
|
-
properties: [
|
|
3026
|
-
{
|
|
3027
|
-
name: "Test string",
|
|
3028
|
-
occurrenceType: "Test string",
|
|
3029
|
-
valueType: "Test string",
|
|
3030
|
-
}
|
|
3031
|
-
],
|
|
3032
|
-
}
|
|
3033
|
-
],
|
|
3034
|
-
metadata: {
|
|
3035
|
-
documentAllowMultipleLabels: true,
|
|
3036
|
-
documentSplitter: true,
|
|
3037
|
-
prefixedNamingOnProperties: true,
|
|
3038
|
-
skipNamingValidation: true,
|
|
3039
|
-
},
|
|
3040
|
-
},
|
|
3041
|
-
googleManaged: true,
|
|
3042
|
-
kmsKeyName: "Test string",
|
|
3043
|
-
kmsKeyVersionName: "Test string",
|
|
3044
|
-
latestEvaluation: {
|
|
3045
|
-
aggregateMetrics: {
|
|
3046
|
-
f1Score: 42,
|
|
3047
|
-
falseNegativesCount: 42,
|
|
3048
|
-
falsePositivesCount: 42,
|
|
3049
|
-
groundTruthDocumentCount: 42,
|
|
3050
|
-
groundTruthOccurrencesCount: 42,
|
|
3051
|
-
precision: 42,
|
|
3052
|
-
predictedDocumentCount: 42,
|
|
3053
|
-
predictedOccurrencesCount: 42,
|
|
3054
|
-
recall: 42,
|
|
3055
|
-
totalDocumentsCount: 42,
|
|
3056
|
-
truePositivesCount: 42,
|
|
3057
|
-
},
|
|
3058
|
-
aggregateMetricsExact: {
|
|
3059
|
-
f1Score: 42,
|
|
3060
|
-
falseNegativesCount: 42,
|
|
3061
|
-
falsePositivesCount: 42,
|
|
3062
|
-
groundTruthDocumentCount: 42,
|
|
3063
|
-
groundTruthOccurrencesCount: 42,
|
|
3064
|
-
precision: 42,
|
|
3065
|
-
predictedDocumentCount: 42,
|
|
3066
|
-
predictedOccurrencesCount: 42,
|
|
3067
|
-
recall: 42,
|
|
3068
|
-
totalDocumentsCount: 42,
|
|
3069
|
-
truePositivesCount: 42,
|
|
3070
|
-
},
|
|
3071
|
-
evaluation: "Test string",
|
|
3072
|
-
operation: "Test string",
|
|
3073
|
-
},
|
|
3074
|
-
name: "Test string",
|
|
3075
|
-
state: "Test string",
|
|
3076
|
-
},
|
|
3077
|
-
});
|
|
3078
|
-
/** Undeploys the processor version. */
|
|
3079
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.undeploy({
|
|
3080
|
-
name: "Test string",
|
|
3081
|
-
}, {
|
|
3082
|
-
});
|
|
3083
|
-
/** Retrieves a specific evaluation. */
|
|
3084
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.evaluations.get({
|
|
3085
|
-
name: "Test string",
|
|
3086
|
-
});
|
|
3087
|
-
/** Retrieves a set of evaluations for a given processor version. */
|
|
3088
|
-
await gapi.client.documentai.projects.locations.processors.processorVersions.evaluations.list({
|
|
3089
|
-
pageSize: 42,
|
|
3090
|
-
pageToken: "Test string",
|
|
3091
|
-
parent: "Test string",
|
|
3092
|
-
});
|
|
3093
|
-
/** Gets a processor type detail. */
|
|
3094
|
-
await gapi.client.documentai.projects.locations.processorTypes.get({
|
|
3095
|
-
name: "Test string",
|
|
3096
|
-
});
|
|
3097
|
-
/** Lists the processor types that exist. */
|
|
3098
|
-
await gapi.client.documentai.projects.locations.processorTypes.list({
|
|
3099
|
-
pageSize: 42,
|
|
3100
|
-
pageToken: "Test string",
|
|
3101
|
-
parent: "Test string",
|
|
3102
|
-
});
|
|
3103
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
3104
|
-
await gapi.client.documentai.projects.operations.get({
|
|
3105
|
-
name: "Test string",
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
});
|