@maxim_mazurok/gapi.client.documentai-v1beta3 0.1.20260316 → 0.1.20260601

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.
Files changed (3) hide show
  1. package/index.d.ts +414 -202
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://documentai.googleapis.com/$discovery/rest?version=v1beta3
12
- // Revision: 20260316
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -45,7 +45,10 @@ declare namespace gapi.client {
45
45
  ruleId?: string;
46
46
  }
47
47
  interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule {
48
- alignmentType?: string;
48
+ alignmentType?:
49
+ | 'ALIGNMENT_TYPE_UNSPECIFIED'
50
+ | 'ALIGNMENT_TYPE_HORIZONTAL'
51
+ | 'ALIGNMENT_TYPE_VERTICAL';
49
52
  /** The tolerance to use when comparing coordinates. */
50
53
  tolerance?: number;
51
54
  }
@@ -87,7 +90,14 @@ declare namespace gapi.client {
87
90
  leftOperand?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation;
88
91
  rightOperand?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation;
89
92
  /** The relational operator to be applied to the operands. */
90
- validationOperator?: string;
93
+ validationOperator?:
94
+ | 'OPERATION_TYPE_UNSPECIFIED'
95
+ | 'OPERATION_TYPE_EQ'
96
+ | 'OPERATION_TYPE_NE'
97
+ | 'OPERATION_TYPE_LT'
98
+ | 'OPERATION_TYPE_LE'
99
+ | 'OPERATION_TYPE_GT'
100
+ | 'OPERATION_TYPE_GE';
91
101
  }
92
102
  interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation {
93
103
  /** A list of constants to be used as operands. */
@@ -97,7 +107,17 @@ declare namespace gapi.client {
97
107
  /** A list of recursive operations to be used as operands. */
98
108
  operations?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation[];
99
109
  /** The operation type to be applied to all the operands. */
100
- operationType?: string;
110
+ operationType?:
111
+ | 'OPERATION_TYPE_UNSPECIFIED'
112
+ | 'OPERATION_TYPE_SUM'
113
+ | 'OPERATION_TYPE_SUB'
114
+ | 'OPERATION_TYPE_MUL'
115
+ | 'OPERATION_TYPE_DIV'
116
+ | 'OPERATION_TYPE_MAX'
117
+ | 'OPERATION_TYPE_MIN'
118
+ | 'OPERATION_TYPE_ABS'
119
+ | 'OPERATION_TYPE_UNIQUE'
120
+ | 'OPERATION_TYPE_COUNT';
101
121
  }
102
122
  interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata {
103
123
  /** The basic metadata of the long-running operation. */
@@ -135,9 +155,17 @@ declare namespace gapi.client {
135
155
  /** The basic metadata of the long-running operation. */
136
156
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
137
157
  /** The destination dataset split type. */
138
- destDatasetType?: string;
158
+ destDatasetType?:
159
+ | 'DATASET_SPLIT_TYPE_UNSPECIFIED'
160
+ | 'DATASET_SPLIT_TRAIN'
161
+ | 'DATASET_SPLIT_TEST'
162
+ | 'DATASET_SPLIT_UNASSIGNED';
139
163
  /** The destination dataset split type. */
140
- destSplitType?: string;
164
+ destSplitType?:
165
+ | 'DATASET_SPLIT_TYPE_UNSPECIFIED'
166
+ | 'DATASET_SPLIT_TRAIN'
167
+ | 'DATASET_SPLIT_TEST'
168
+ | 'DATASET_SPLIT_UNASSIGNED';
141
169
  /** The list of response details of each document. */
142
170
  individualBatchMoveStatuses?: GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus[];
143
171
  }
@@ -167,7 +195,13 @@ declare namespace gapi.client {
167
195
  /** A related resource to this operation. */
168
196
  resource?: string;
169
197
  /** The state of the operation. */
170
- state?: string;
198
+ state?:
199
+ | 'STATE_UNSPECIFIED'
200
+ | 'RUNNING'
201
+ | 'CANCELLING'
202
+ | 'SUCCEEDED'
203
+ | 'FAILED'
204
+ | 'CANCELLED';
171
205
  /** A message providing more details about the current state of processing. */
172
206
  stateMessage?: string;
173
207
  /** The last update time of the operation. */
@@ -255,11 +289,16 @@ declare namespace gapi.client {
255
289
  /** User defined name for the property. */
256
290
  displayName?: string;
257
291
  /** Specifies how the entity's value is obtained. */
258
- method?: string;
292
+ method?: 'METHOD_UNSPECIFIED' | 'EXTRACT' | 'DERIVE' | 'RELAXED_EXTRACT';
259
293
  /** The name of the property. Follows the same guidelines as the EntityType name. */
260
294
  name?: string;
261
295
  /** Occurrence type limits the number of instances an entity type appears in the document. */
262
- occurrenceType?: string;
296
+ occurrenceType?:
297
+ | 'OCCURRENCE_TYPE_UNSPECIFIED'
298
+ | 'OPTIONAL_ONCE'
299
+ | 'OPTIONAL_MULTIPLE'
300
+ | 'REQUIRED_ONCE'
301
+ | 'REQUIRED_MULTIPLE';
263
302
  /** Any additional metadata about the property can be added here. */
264
303
  propertyMetadata?: GoogleCloudDocumentaiUiv1beta3PropertyMetadata;
265
304
  /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
@@ -354,7 +393,11 @@ declare namespace gapi.client {
354
393
  }
355
394
  interface GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat {
356
395
  /** The dataset split type. */
357
- splitType?: string;
396
+ splitType?:
397
+ | 'DATASET_SPLIT_TYPE_UNSPECIFIED'
398
+ | 'DATASET_SPLIT_TRAIN'
399
+ | 'DATASET_SPLIT_TEST'
400
+ | 'DATASET_SPLIT_UNASSIGNED';
358
401
  /** Total number of documents with the given dataset split type to be exported. */
359
402
  totalDocumentCount?: number;
360
403
  }
@@ -448,7 +491,15 @@ declare namespace gapi.client {
448
491
  /** Output only. Reserved for future use. */
449
492
  satisfiesPzs?: boolean;
450
493
  /** Output only. The state of the processor. */
451
- state?: string;
494
+ state?:
495
+ | 'STATE_UNSPECIFIED'
496
+ | 'ENABLED'
497
+ | 'DISABLED'
498
+ | 'ENABLING'
499
+ | 'DISABLING'
500
+ | 'CREATING'
501
+ | 'FAILED'
502
+ | 'DELETING';
452
503
  /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
453
504
  type?: string;
454
505
  }
@@ -474,7 +525,10 @@ declare namespace gapi.client {
474
525
  /** Output only. The most recently invoked evaluation for the processor version. */
475
526
  latestEvaluation?: GoogleCloudDocumentaiUiv1beta3EvaluationReference;
476
527
  /** Output only. The model type of this processor version. */
477
- modelType?: string;
528
+ modelType?:
529
+ | 'MODEL_TYPE_UNSPECIFIED'
530
+ | 'MODEL_TYPE_GENERATIVE'
531
+ | 'MODEL_TYPE_CUSTOM';
478
532
  /** Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` */
479
533
  name?: string;
480
534
  /** Output only. Reserved for future use. */
@@ -484,7 +538,16 @@ declare namespace gapi.client {
484
538
  /** The schema of the processor version. Describes the output. */
485
539
  schema?: GoogleCloudDocumentaiUiv1beta3Schema;
486
540
  /** Output only. The state of the processor version. */
487
- state?: string;
541
+ state?:
542
+ | 'STATE_UNSPECIFIED'
543
+ | 'DEPLOYED'
544
+ | 'DEPLOYING'
545
+ | 'UNDEPLOYED'
546
+ | 'UNDEPLOYING'
547
+ | 'CREATING'
548
+ | 'DELETING'
549
+ | 'FAILED'
550
+ | 'IMPORTING';
488
551
  }
489
552
  interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias {
490
553
  /** The alias in the form of `processor_version` resource name. */
@@ -508,7 +571,10 @@ declare namespace gapi.client {
508
571
  /** The base processor version ID for the custom model. */
509
572
  baseProcessorVersionId?: string;
510
573
  /** The type of custom model created by the user. */
511
- customModelType?: string;
574
+ customModelType?:
575
+ | 'CUSTOM_MODEL_TYPE_UNSPECIFIED'
576
+ | 'VERSIONED_FOUNDATION'
577
+ | 'FINE_TUNED';
512
578
  }
513
579
  interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo {
514
580
  /** Whether fine tuning is allowed for this base processor version. */
@@ -542,7 +608,9 @@ declare namespace gapi.client {
542
608
  }
543
609
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus {
544
610
  /** The type of the inconsistency of the dataset. */
545
- datasetInconsistencyType?: string;
611
+ datasetInconsistencyType?:
612
+ | 'DATASET_INCONSISTENCY_TYPE_UNSPECIFIED'
613
+ | 'DATASET_INCONSISTENCY_TYPE_NO_STORAGE_MARKER';
546
614
  /** The status of resyncing the dataset with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`. */
547
615
  status?: GoogleRpcStatus;
548
616
  }
@@ -550,7 +618,11 @@ declare namespace gapi.client {
550
618
  /** The document identifier. */
551
619
  documentId?: GoogleCloudDocumentaiUiv1beta3DocumentId;
552
620
  /** The type of document inconsistency. */
553
- documentInconsistencyType?: string;
621
+ documentInconsistencyType?:
622
+ | 'DOCUMENT_INCONSISTENCY_TYPE_UNSPECIFIED'
623
+ | 'DOCUMENT_INCONSISTENCY_TYPE_INVALID_DOCPROTO'
624
+ | 'DOCUMENT_INCONSISTENCY_TYPE_MISMATCHED_METADATA'
625
+ | 'DOCUMENT_INCONSISTENCY_TYPE_NO_PAGE_IMAGE';
554
626
  /** The status of resyncing the document with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`. */
555
627
  status?: GoogleRpcStatus;
556
628
  }
@@ -559,7 +631,11 @@ declare namespace gapi.client {
559
631
  /** Reads the revision generated by the processor version. The format takes the full resource name of processor version. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
560
632
  latestProcessorVersion?: string;
561
633
  /** Reads the revision by the predefined case. */
562
- revisionCase?: string;
634
+ revisionCase?:
635
+ | 'REVISION_CASE_UNSPECIFIED'
636
+ | 'LATEST_HUMAN_REVIEW'
637
+ | 'LATEST_TIMESTAMP'
638
+ | 'BASE_OCR_REVISION';
563
639
  /** Reads the revision given by the id. */
564
640
  revisionId?: string;
565
641
  }
@@ -602,13 +678,18 @@ declare namespace gapi.client {
602
678
  /** If the entity type is hidden in the schema. This provides the functionality to temporally "disable" an entity without deleting it. */
603
679
  hide?: boolean;
604
680
  /** Specifies how the entity's value is obtained. */
605
- method?: string;
681
+ method?: 'METHOD_UNSPECIFIED' | 'EXTRACT' | 'DERIVE' | 'RELAXED_EXTRACT';
606
682
  /** Occurrence type limits the number of times an entity type appears in the document. */
607
- occurrenceType?: string;
683
+ occurrenceType?:
684
+ | 'OCCURRENCE_TYPE_UNSPECIFIED'
685
+ | 'OPTIONAL_ONCE'
686
+ | 'OPTIONAL_MULTIPLE'
687
+ | 'REQUIRED_ONCE'
688
+ | 'REQUIRED_MULTIPLE';
608
689
  /** Describing the nested structure of an entity. An EntityType may consist of several other EntityTypes. For example, in a document there can be an EntityType `ID`, which consists of EntityType `name` and `address`, with corresponding attributes, such as TEXT for both types and ONCE for occurrence types. */
609
690
  properties?: GoogleCloudDocumentaiUiv1beta3SchemaEntityType[];
610
691
  /** Source of this entity type. */
611
- source?: string;
692
+ source?: 'SOURCE_UNSPECIFIED' | 'PREDEFINED' | 'USER_INPUT';
612
693
  /** Name of the type. It must satisfy the following constraints: 1. Must be unique within the set of same level types (with case-insensitive match). 2. Maximum 64 characters. 3. Must start with a letter. 4. Allowed characters: ASCII letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation characters: * underscore '_' (recommended) * hyphen '-' (allowed, not recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace characters are not allowed. 5. Cannot end with a punctuation character. 6. Cannot contain the following restricted strings: "google", "DocumentAI" (case-insensitive match). 7. A slash character '/' is reserved as a separator in flattened representations of nested entity types (e.g., "line_item/amount") in which case each part (e.g., "line_item", "amount") must comply with the rules defined above. We recommend using the snake case ("snake_case") in entity type names. */
613
694
  type?: string;
614
695
  }
@@ -623,9 +704,9 @@ declare namespace gapi.client {
623
704
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse {}
624
705
  interface GoogleCloudDocumentaiUiv1beta3SummaryOptions {
625
706
  /** The format the summary should be in. */
626
- format?: string;
707
+ format?: 'FORMAT_UNSPECIFIED' | 'PARAGRAPH' | 'BULLETS';
627
708
  /** How long the summary should be. */
628
- length?: string;
709
+ length?: 'LENGTH_UNSPECIFIED' | 'BRIEF' | 'MODERATE' | 'COMPREHENSIVE';
629
710
  }
630
711
  interface GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata {
631
712
  /** The basic metadata of the long-running operation. */
@@ -676,7 +757,14 @@ declare namespace gapi.client {
676
757
  /** The list of response details of each document. */
677
758
  individualProcessStatuses?: GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus[];
678
759
  /** The state of the current batch processing. */
679
- state?: string;
760
+ state?:
761
+ | 'STATE_UNSPECIFIED'
762
+ | 'WAITING'
763
+ | 'RUNNING'
764
+ | 'SUCCEEDED'
765
+ | 'CANCELLING'
766
+ | 'CANCELLED'
767
+ | 'FAILED';
680
768
  /** A message providing more details about the current state of processing. For example, the error message if the operation is failed. */
681
769
  stateMessage?: string;
682
770
  /** The last update time of the operation. */
@@ -744,7 +832,14 @@ declare namespace gapi.client {
744
832
  /** The list of response details of each document. */
745
833
  individualProcessStatuses?: GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus[];
746
834
  /** The state of the current batch processing. */
747
- state?: string;
835
+ state?:
836
+ | 'STATE_UNSPECIFIED'
837
+ | 'WAITING'
838
+ | 'RUNNING'
839
+ | 'SUCCEEDED'
840
+ | 'CANCELLING'
841
+ | 'CANCELLED'
842
+ | 'FAILED';
748
843
  /** A message providing more details about the current state of processing. For example, the error message if the operation is failed. */
749
844
  stateMessage?: string;
750
845
  /** The last update time of the operation. */
@@ -801,7 +896,13 @@ declare namespace gapi.client {
801
896
  /** A related resource to this operation. */
802
897
  resource?: string;
803
898
  /** The state of the operation. */
804
- state?: string;
899
+ state?:
900
+ | 'STATE_UNSPECIFIED'
901
+ | 'RUNNING'
902
+ | 'CANCELLING'
903
+ | 'SUCCEEDED'
904
+ | 'FAILED'
905
+ | 'CANCELLED';
805
906
  /** A message providing more details about the current state of processing. */
806
907
  stateMessage?: string;
807
908
  /** The last update time of the operation. */
@@ -819,7 +920,11 @@ declare namespace gapi.client {
819
920
  /** Output only. Reserved for future use. */
820
921
  satisfiesPzs?: boolean;
821
922
  /** Required. State of the dataset. Ignored when updating dataset. */
822
- state?: string;
923
+ state?:
924
+ | 'STATE_UNSPECIFIED'
925
+ | 'UNINITIALIZED'
926
+ | 'INITIALIZING'
927
+ | 'INITIALIZED';
823
928
  /** Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed). */
824
929
  unmanagedDatasetConfig?: any;
825
930
  }
@@ -1076,7 +1181,7 @@ declare namespace gapi.client {
1076
1181
  /** Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`. */
1077
1182
  mentionText?: string;
1078
1183
  /** Optional. Specifies how the entity's value is obtained. */
1079
- method?: string;
1184
+ method?: 'METHOD_UNSPECIFIED' | 'EXTRACT' | 'DERIVE';
1080
1185
  /** Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types. */
1081
1186
  normalizedValue?: GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue;
1082
1187
  /** Optional. Represents the provenance of this entity wrt. the location on the page where it was found. */
@@ -1136,7 +1241,12 @@ declare namespace gapi.client {
1136
1241
  /** The detailed information of the running the validation process using the entity from the document based on the validation rule. */
1137
1242
  validationDetails?: string;
1138
1243
  /** The result of the validation rule. */
1139
- validationResultType?: string;
1244
+ validationResultType?:
1245
+ | 'VALIDATION_RESULT_TYPE_UNSPECIFIED'
1246
+ | 'VALIDATION_RESULT_TYPE_VALID'
1247
+ | 'VALIDATION_RESULT_TYPE_INVALID'
1248
+ | 'VALIDATION_RESULT_TYPE_SKIPPED'
1249
+ | 'VALIDATION_RESULT_TYPE_NOT_APPLICABLE';
1140
1250
  }
1141
1251
  interface GoogleCloudDocumentaiV1beta3DocumentId {
1142
1252
  /** A document id within user-managed Cloud Storage. */
@@ -1158,13 +1268,21 @@ declare namespace gapi.client {
1158
1268
  }
1159
1269
  interface GoogleCloudDocumentaiV1beta3DocumentMetadata {
1160
1270
  /** Type of the dataset split to which the document belongs. */
1161
- datasetType?: string;
1271
+ datasetType?:
1272
+ | 'DATASET_SPLIT_TYPE_UNSPECIFIED'
1273
+ | 'DATASET_SPLIT_TRAIN'
1274
+ | 'DATASET_SPLIT_TEST'
1275
+ | 'DATASET_SPLIT_UNASSIGNED';
1162
1276
  /** The display name of the document. */
1163
1277
  displayName?: string;
1164
1278
  /** Document identifier. */
1165
1279
  documentId?: GoogleCloudDocumentaiV1beta3DocumentId;
1166
1280
  /** Labeling state of the document. */
1167
- labelingState?: string;
1281
+ labelingState?:
1282
+ | 'DOCUMENT_LABELING_STATE_UNSPECIFIED'
1283
+ | 'DOCUMENT_LABELED'
1284
+ | 'DOCUMENT_UNLABELED'
1285
+ | 'DOCUMENT_AUTO_LABELED';
1168
1286
  /** Number of pages in the document. */
1169
1287
  pageCount?: number;
1170
1288
  }
@@ -1234,7 +1352,15 @@ declare namespace gapi.client {
1234
1352
  /** Optional. Deprecated. Use PageRef.bounding_poly instead. */
1235
1353
  layoutId?: string;
1236
1354
  /** Optional. The type of the layout element that is being referenced if any. */
1237
- layoutType?: string;
1355
+ layoutType?:
1356
+ | 'LAYOUT_TYPE_UNSPECIFIED'
1357
+ | 'BLOCK'
1358
+ | 'PARAGRAPH'
1359
+ | 'LINE'
1360
+ | 'TOKEN'
1361
+ | 'VISUAL_ELEMENT'
1362
+ | 'TABLE'
1363
+ | 'FORM_FIELD';
1238
1364
  /** Required. Index into the Document.pages element, for example using `Document.pages` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json. */
1239
1365
  page?: string;
1240
1366
  }
@@ -1312,7 +1438,12 @@ declare namespace gapi.client {
1312
1438
  /** Confidence of the current Layout within context of the object this layout is for. For example, confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`. */
1313
1439
  confidence?: number;
1314
1440
  /** Detected orientation for the Layout. */
1315
- orientation?: string;
1441
+ orientation?:
1442
+ | 'ORIENTATION_UNSPECIFIED'
1443
+ | 'PAGE_UP'
1444
+ | 'PAGE_RIGHT'
1445
+ | 'PAGE_DOWN'
1446
+ | 'PAGE_LEFT';
1316
1447
  /** Text anchor indexing into the Document.text. */
1317
1448
  textAnchor?: GoogleCloudDocumentaiV1beta3DocumentTextAnchor;
1318
1449
  }
@@ -1388,7 +1519,7 @@ declare namespace gapi.client {
1388
1519
  }
1389
1520
  interface GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak {
1390
1521
  /** Detected break type. */
1391
- type?: string;
1522
+ type?: 'TYPE_UNSPECIFIED' | 'SPACE' | 'WIDE_SPACE' | 'HYPHEN';
1392
1523
  }
1393
1524
  interface GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo {
1394
1525
  /** Color of the background. */
@@ -1438,7 +1569,15 @@ declare namespace gapi.client {
1438
1569
  /** The index of the revision that produced this element. */
1439
1570
  revision?: number;
1440
1571
  /** The type of provenance operation. */
1441
- type?: string;
1572
+ type?:
1573
+ | 'OPERATION_TYPE_UNSPECIFIED'
1574
+ | 'ADD'
1575
+ | 'REMOVE'
1576
+ | 'UPDATE'
1577
+ | 'REPLACE'
1578
+ | 'EVAL_REQUESTED'
1579
+ | 'EVAL_APPROVED'
1580
+ | 'EVAL_SKIPPED';
1442
1581
  }
1443
1582
  interface GoogleCloudDocumentaiV1beta3DocumentProvenanceParent {
1444
1583
  /** The id of the parent provenance. */
@@ -1512,11 +1651,16 @@ declare namespace gapi.client {
1512
1651
  /** User defined name for the property. */
1513
1652
  displayName?: string;
1514
1653
  /** Specifies how the entity's value is obtained. */
1515
- method?: string;
1654
+ method?: 'METHOD_UNSPECIFIED' | 'EXTRACT' | 'DERIVE' | 'RELAXED_EXTRACT';
1516
1655
  /** The name of the property. Follows the same guidelines as the EntityType name. */
1517
1656
  name?: string;
1518
1657
  /** Occurrence type limits the number of instances an entity type appears in the document. */
1519
- occurrenceType?: string;
1658
+ occurrenceType?:
1659
+ | 'OCCURRENCE_TYPE_UNSPECIFIED'
1660
+ | 'OPTIONAL_ONCE'
1661
+ | 'OPTIONAL_MULTIPLE'
1662
+ | 'REQUIRED_ONCE'
1663
+ | 'REQUIRED_MULTIPLE';
1520
1664
  /** Any additional metadata about the property can be added here. */
1521
1665
  propertyMetadata?: GoogleCloudDocumentaiV1beta3PropertyMetadata;
1522
1666
  /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
@@ -1694,7 +1838,7 @@ declare namespace gapi.client {
1694
1838
  /** The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only. */
1695
1839
  estimatedCalibrationErrorExact?: number;
1696
1840
  /** The metrics type for the label. */
1697
- metricsType?: string;
1841
+ metricsType?: 'METRICS_TYPE_UNSPECIFIED' | 'AGGREGATE';
1698
1842
  }
1699
1843
  interface GoogleCloudDocumentaiV1beta3EvaluationReference {
1700
1844
  /** An aggregate of the statistics for the evaluation with fuzzy matching on. */
@@ -1759,7 +1903,12 @@ declare namespace gapi.client {
1759
1903
  /** The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument. */
1760
1904
  humanReviewOperation?: string;
1761
1905
  /** The state of human review on the processing request. */
1762
- state?: string;
1906
+ state?:
1907
+ | 'STATE_UNSPECIFIED'
1908
+ | 'SKIPPED'
1909
+ | 'VALIDATION_PASSED'
1910
+ | 'IN_PROGRESS'
1911
+ | 'ERROR';
1763
1912
  /** A message providing more details about the human review state. */
1764
1913
  stateMessage?: string;
1765
1914
  }
@@ -1797,7 +1946,11 @@ declare namespace gapi.client {
1797
1946
  /** The common config to specify a set of documents used as input. */
1798
1947
  batchInputConfig?: GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig;
1799
1948
  /** Target dataset split where the documents must be stored. */
1800
- datasetSplit?: string;
1949
+ datasetSplit?:
1950
+ | 'DATASET_SPLIT_TYPE_UNSPECIFIED'
1951
+ | 'DATASET_SPLIT_TRAIN'
1952
+ | 'DATASET_SPLIT_TEST'
1953
+ | 'DATASET_SPLIT_UNASSIGNED';
1801
1954
  /** Optional. If set, determines the type of the documents to be imported in this batch. It can be used to auto-label the documents with a single entity of the provided type. This field can only be used with a classifier or splitter processor. Providing this field is mutually exclusive with `entities` and `auto_labeling_config`. */
1802
1955
  documentType?: string;
1803
1956
  }
@@ -1998,7 +2151,15 @@ declare namespace gapi.client {
1998
2151
  /** Output only. Reserved for future use. */
1999
2152
  satisfiesPzs?: boolean;
2000
2153
  /** Output only. The state of the processor. */
2001
- state?: string;
2154
+ state?:
2155
+ | 'STATE_UNSPECIFIED'
2156
+ | 'ENABLED'
2157
+ | 'DISABLED'
2158
+ | 'ENABLING'
2159
+ | 'DISABLING'
2160
+ | 'CREATING'
2161
+ | 'FAILED'
2162
+ | 'DELETING';
2002
2163
  /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
2003
2164
  type?: string;
2004
2165
  }
@@ -2010,7 +2171,15 @@ declare namespace gapi.client {
2010
2171
  /** The processor category, used by UI to group processor types. */
2011
2172
  category?: string;
2012
2173
  /** Launch stage of the processor type */
2013
- launchStage?: string;
2174
+ launchStage?:
2175
+ | 'LAUNCH_STAGE_UNSPECIFIED'
2176
+ | 'UNIMPLEMENTED'
2177
+ | 'PRELAUNCH'
2178
+ | 'EARLY_ACCESS'
2179
+ | 'ALPHA'
2180
+ | 'BETA'
2181
+ | 'GA'
2182
+ | 'DEPRECATED';
2014
2183
  /** The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}` */
2015
2184
  name?: string;
2016
2185
  /** A set of Cloud Storage URIs of sample documents for this processor. */
@@ -2042,7 +2211,10 @@ declare namespace gapi.client {
2042
2211
  /** Output only. The most recently invoked evaluation for the processor version. */
2043
2212
  latestEvaluation?: GoogleCloudDocumentaiV1beta3EvaluationReference;
2044
2213
  /** Output only. The model type of this processor version. */
2045
- modelType?: string;
2214
+ modelType?:
2215
+ | 'MODEL_TYPE_UNSPECIFIED'
2216
+ | 'MODEL_TYPE_GENERATIVE'
2217
+ | 'MODEL_TYPE_CUSTOM';
2046
2218
  /** Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` */
2047
2219
  name?: string;
2048
2220
  /** Output only. Reserved for future use. */
@@ -2050,7 +2222,16 @@ declare namespace gapi.client {
2050
2222
  /** Output only. Reserved for future use. */
2051
2223
  satisfiesPzs?: boolean;
2052
2224
  /** Output only. The state of the processor version. */
2053
- state?: string;
2225
+ state?:
2226
+ | 'STATE_UNSPECIFIED'
2227
+ | 'DEPLOYED'
2228
+ | 'DEPLOYING'
2229
+ | 'UNDEPLOYED'
2230
+ | 'UNDEPLOYING'
2231
+ | 'CREATING'
2232
+ | 'DELETING'
2233
+ | 'FAILED'
2234
+ | 'IMPORTING';
2054
2235
  }
2055
2236
  interface GoogleCloudDocumentaiV1beta3ProcessorVersionAlias {
2056
2237
  /** The alias in the form of `processor_version` resource name. */
@@ -2074,7 +2255,10 @@ declare namespace gapi.client {
2074
2255
  /** The base processor version ID for the custom model. */
2075
2256
  baseProcessorVersionId?: string;
2076
2257
  /** The type of custom model created by the user. */
2077
- customModelType?: string;
2258
+ customModelType?:
2259
+ | 'CUSTOM_MODEL_TYPE_UNSPECIFIED'
2260
+ | 'VERSIONED_FOUNDATION'
2261
+ | 'FINE_TUNED';
2078
2262
  }
2079
2263
  interface GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo {
2080
2264
  /** Whether fine tuning is allowed for this base processor version. */
@@ -2136,7 +2320,13 @@ declare namespace gapi.client {
2136
2320
  /** The Crowd Compute question ID. */
2137
2321
  questionId?: string;
2138
2322
  /** Used only when Operation.done is false. */
2139
- state?: string;
2323
+ state?:
2324
+ | 'STATE_UNSPECIFIED'
2325
+ | 'RUNNING'
2326
+ | 'CANCELLING'
2327
+ | 'SUCCEEDED'
2328
+ | 'FAILED'
2329
+ | 'CANCELLED';
2140
2330
  /** A message providing more details about the current state of processing. For example, the error message if the operation is failed. */
2141
2331
  stateMessage?: string;
2142
2332
  /** The last update time of the operation. */
@@ -2152,7 +2342,7 @@ declare namespace gapi.client {
2152
2342
  /** An inline document proto. */
2153
2343
  inlineDocument?: GoogleCloudDocumentaiV1beta3Document;
2154
2344
  /** The priority of the human review task. */
2155
- priority?: string;
2345
+ priority?: 'DEFAULT' | 'URGENT';
2156
2346
  }
2157
2347
  interface GoogleCloudDocumentaiV1beta3ReviewDocumentResponse {
2158
2348
  /** The Cloud Storage uri for the human reviewed document if the review is succeeded. */
@@ -2160,13 +2350,17 @@ declare namespace gapi.client {
2160
2350
  /** The reason why the review is rejected by reviewer. */
2161
2351
  rejectionReason?: string;
2162
2352
  /** The state of the review operation. */
2163
- state?: string;
2353
+ state?: 'STATE_UNSPECIFIED' | 'REJECTED' | 'SUCCEEDED';
2164
2354
  }
2165
2355
  interface GoogleCloudDocumentaiV1beta3RevisionRef {
2166
2356
  /** Reads the revision generated by the processor version. The format takes the full resource name of processor version. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
2167
2357
  latestProcessorVersion?: string;
2168
2358
  /** Reads the revision by the predefined case. */
2169
- revisionCase?: string;
2359
+ revisionCase?:
2360
+ | 'REVISION_CASE_UNSPECIFIED'
2361
+ | 'LATEST_HUMAN_REVIEW'
2362
+ | 'LATEST_TIMESTAMP'
2363
+ | 'BASE_OCR_REVISION';
2170
2364
  /** Reads the revision given by the id. */
2171
2365
  revisionId?: string;
2172
2366
  }
@@ -2205,9 +2399,9 @@ declare namespace gapi.client {
2205
2399
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {}
2206
2400
  interface GoogleCloudDocumentaiV1beta3SummaryOptions {
2207
2401
  /** The format the summary should be in. */
2208
- format?: string;
2402
+ format?: 'FORMAT_UNSPECIFIED' | 'PARAGRAPH' | 'BULLETS';
2209
2403
  /** How long the summary should be. */
2210
- length?: string;
2404
+ length?: 'LENGTH_UNSPECIFIED' | 'BRIEF' | 'MODERATE' | 'COMPREHENSIVE';
2211
2405
  }
2212
2406
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
2213
2407
  /** The basic metadata of the long-running operation. */
@@ -2243,7 +2437,10 @@ declare namespace gapi.client {
2243
2437
  }
2244
2438
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions {
2245
2439
  /** Optional. Training method to use for CDE training. */
2246
- trainingMethod?: string;
2440
+ trainingMethod?:
2441
+ | 'TRAINING_METHOD_UNSPECIFIED'
2442
+ | 'MODEL_BASED'
2443
+ | 'TEMPLATE_BASED';
2247
2444
  }
2248
2445
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions {
2249
2446
  /** Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used. */
@@ -2289,7 +2486,13 @@ declare namespace gapi.client {
2289
2486
  /** A related resource to this operation. */
2290
2487
  resource?: string;
2291
2488
  /** The state of the operation. */
2292
- state?: string;
2489
+ state?:
2490
+ | 'STATE_UNSPECIFIED'
2491
+ | 'RUNNING'
2492
+ | 'CANCELLING'
2493
+ | 'SUCCEEDED'
2494
+ | 'FAILED'
2495
+ | 'CANCELLED';
2293
2496
  /** A message providing more details about the current state of processing. */
2294
2497
  stateMessage?: string;
2295
2498
  /** The last update time of the operation. */
@@ -2330,7 +2533,12 @@ declare namespace gapi.client {
2330
2533
  /** The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument. */
2331
2534
  humanReviewOperation?: string;
2332
2535
  /** The state of human review on the processing request. */
2333
- state?: string;
2536
+ state?:
2537
+ | 'STATE_UNSPECIFIED'
2538
+ | 'SKIPPED'
2539
+ | 'VALIDATION_PASSED'
2540
+ | 'IN_PROGRESS'
2541
+ | 'ERROR';
2334
2542
  /** A message providing more details about the human review state. */
2335
2543
  stateMessage?: string;
2336
2544
  }
@@ -2346,7 +2554,7 @@ declare namespace gapi.client {
2346
2554
  /** The reason why the review is rejected by reviewer. */
2347
2555
  rejectionReason?: string;
2348
2556
  /** The state of the review operation. */
2349
- state?: string;
2557
+ state?: 'STATE_UNSPECIFIED' | 'REJECTED' | 'SUCCEEDED';
2350
2558
  }
2351
2559
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
2352
2560
  /** The basic metadata of the long-running operation. */
@@ -2423,7 +2631,7 @@ declare namespace gapi.client {
2423
2631
  /** The status code, which should be an enum value of google.rpc.Code. */
2424
2632
  code?: number;
2425
2633
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
2426
- details?: Array<{[P in string]: any}>;
2634
+ details?: {[P in string]: any}[];
2427
2635
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
2428
2636
  message?: string;
2429
2637
  }
@@ -2507,11 +2715,11 @@ declare namespace gapi.client {
2507
2715
  /** 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 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 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 `1`, corresponding to `Code.CANCELLED`. */
2508
2716
  cancel(request?: {
2509
2717
  /** V1 error format. */
2510
- '$.xgafv'?: string;
2718
+ '$.xgafv'?: '1' | '2';
2511
2719
  /** OAuth access token. */
2512
2720
  access_token?: string;
2513
2721
  /** Data format for response. */
2514
- alt?: string;
2722
+ alt?: 'json' | 'media' | 'proto';
2515
2723
  /** JSONP */
2516
2724
  callback?: string;
2517
2725
  /** Selector specifying which fields to include in a partial response. */
@@ -2534,11 +2742,11 @@ declare namespace gapi.client {
2534
2742
  /** 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. */
2535
2743
  get(request?: {
2536
2744
  /** V1 error format. */
2537
- '$.xgafv'?: string;
2745
+ '$.xgafv'?: '1' | '2';
2538
2746
  /** OAuth access token. */
2539
2747
  access_token?: string;
2540
2748
  /** Data format for response. */
2541
- alt?: string;
2749
+ alt?: 'json' | 'media' | 'proto';
2542
2750
  /** JSONP */
2543
2751
  callback?: string;
2544
2752
  /** Selector specifying which fields to include in a partial response. */
@@ -2561,11 +2769,11 @@ declare namespace gapi.client {
2561
2769
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2562
2770
  list(request?: {
2563
2771
  /** V1 error format. */
2564
- '$.xgafv'?: string;
2772
+ '$.xgafv'?: '1' | '2';
2565
2773
  /** OAuth access token. */
2566
2774
  access_token?: string;
2567
2775
  /** Data format for response. */
2568
- alt?: string;
2776
+ alt?: 'json' | 'media' | 'proto';
2569
2777
  /** JSONP */
2570
2778
  callback?: string;
2571
2779
  /** Selector specifying which fields to include in a partial response. */
@@ -2598,11 +2806,11 @@ declare namespace gapi.client {
2598
2806
  /** Deletes a set of documents. */
2599
2807
  batchDeleteDocuments(request: {
2600
2808
  /** V1 error format. */
2601
- '$.xgafv'?: string;
2809
+ '$.xgafv'?: '1' | '2';
2602
2810
  /** OAuth access token. */
2603
2811
  access_token?: string;
2604
2812
  /** Data format for response. */
2605
- alt?: string;
2813
+ alt?: 'json' | 'media' | 'proto';
2606
2814
  /** JSONP */
2607
2815
  callback?: string;
2608
2816
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2627,11 +2835,11 @@ declare namespace gapi.client {
2627
2835
  batchDeleteDocuments(
2628
2836
  request: {
2629
2837
  /** V1 error format. */
2630
- '$.xgafv'?: string;
2838
+ '$.xgafv'?: '1' | '2';
2631
2839
  /** OAuth access token. */
2632
2840
  access_token?: string;
2633
2841
  /** Data format for response. */
2634
- alt?: string;
2842
+ alt?: 'json' | 'media' | 'proto';
2635
2843
  /** JSONP */
2636
2844
  callback?: string;
2637
2845
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2656,11 +2864,11 @@ declare namespace gapi.client {
2656
2864
  /** Gets the `DatasetSchema` of a `Dataset`. */
2657
2865
  getDatasetSchema(request?: {
2658
2866
  /** V1 error format. */
2659
- '$.xgafv'?: string;
2867
+ '$.xgafv'?: '1' | '2';
2660
2868
  /** OAuth access token. */
2661
2869
  access_token?: string;
2662
2870
  /** Data format for response. */
2663
- alt?: string;
2871
+ alt?: 'json' | 'media' | 'proto';
2664
2872
  /** JSONP */
2665
2873
  callback?: string;
2666
2874
  /** Selector specifying which fields to include in a partial response. */
@@ -2685,11 +2893,11 @@ declare namespace gapi.client {
2685
2893
  /** Returns relevant fields present in the requested document. */
2686
2894
  getDocument(request?: {
2687
2895
  /** V1 error format. */
2688
- '$.xgafv'?: string;
2896
+ '$.xgafv'?: '1' | '2';
2689
2897
  /** OAuth access token. */
2690
2898
  access_token?: string;
2691
2899
  /** Data format for response. */
2692
- alt?: string;
2900
+ alt?: 'json' | 'media' | 'proto';
2693
2901
  /** JSONP */
2694
2902
  callback?: string;
2695
2903
  /** Required. The resource name of the dataset that the document belongs to . Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2701,7 +2909,11 @@ declare namespace gapi.client {
2701
2909
  /** Reads the revision generated by the processor version. The format takes the full resource name of processor version. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
2702
2910
  'documentId.revisionRef.latestProcessorVersion'?: string;
2703
2911
  /** Reads the revision by the predefined case. */
2704
- 'documentId.revisionRef.revisionCase'?: string;
2912
+ 'documentId.revisionRef.revisionCase'?:
2913
+ | 'REVISION_CASE_UNSPECIFIED'
2914
+ | 'LATEST_HUMAN_REVIEW'
2915
+ | 'LATEST_TIMESTAMP'
2916
+ | 'BASE_OCR_REVISION';
2705
2917
  /** Reads the revision given by the id. */
2706
2918
  'documentId.revisionRef.revisionId'?: string;
2707
2919
  /** Required. The id of the document. */
@@ -2730,11 +2942,11 @@ declare namespace gapi.client {
2730
2942
  /** Import documents into a dataset. */
2731
2943
  importDocuments(request: {
2732
2944
  /** V1 error format. */
2733
- '$.xgafv'?: string;
2945
+ '$.xgafv'?: '1' | '2';
2734
2946
  /** OAuth access token. */
2735
2947
  access_token?: string;
2736
2948
  /** Data format for response. */
2737
- alt?: string;
2949
+ alt?: 'json' | 'media' | 'proto';
2738
2950
  /** JSONP */
2739
2951
  callback?: string;
2740
2952
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2759,11 +2971,11 @@ declare namespace gapi.client {
2759
2971
  importDocuments(
2760
2972
  request: {
2761
2973
  /** V1 error format. */
2762
- '$.xgafv'?: string;
2974
+ '$.xgafv'?: '1' | '2';
2763
2975
  /** OAuth access token. */
2764
2976
  access_token?: string;
2765
2977
  /** Data format for response. */
2766
- alt?: string;
2978
+ alt?: 'json' | 'media' | 'proto';
2767
2979
  /** JSONP */
2768
2980
  callback?: string;
2769
2981
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2788,11 +3000,11 @@ declare namespace gapi.client {
2788
3000
  /** Returns a list of documents present in the dataset. */
2789
3001
  listDocuments(request: {
2790
3002
  /** V1 error format. */
2791
- '$.xgafv'?: string;
3003
+ '$.xgafv'?: '1' | '2';
2792
3004
  /** OAuth access token. */
2793
3005
  access_token?: string;
2794
3006
  /** Data format for response. */
2795
- alt?: string;
3007
+ alt?: 'json' | 'media' | 'proto';
2796
3008
  /** JSONP */
2797
3009
  callback?: string;
2798
3010
  /** Required. The resource name of the dataset to be listed. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2817,11 +3029,11 @@ declare namespace gapi.client {
2817
3029
  listDocuments(
2818
3030
  request: {
2819
3031
  /** V1 error format. */
2820
- '$.xgafv'?: string;
3032
+ '$.xgafv'?: '1' | '2';
2821
3033
  /** OAuth access token. */
2822
3034
  access_token?: string;
2823
3035
  /** Data format for response. */
2824
- alt?: string;
3036
+ alt?: 'json' | 'media' | 'proto';
2825
3037
  /** JSONP */
2826
3038
  callback?: string;
2827
3039
  /** Required. The resource name of the dataset to be listed. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2846,11 +3058,11 @@ declare namespace gapi.client {
2846
3058
  /** Updates a `DatasetSchema`. */
2847
3059
  updateDatasetSchema(request: {
2848
3060
  /** V1 error format. */
2849
- '$.xgafv'?: string;
3061
+ '$.xgafv'?: '1' | '2';
2850
3062
  /** OAuth access token. */
2851
3063
  access_token?: string;
2852
3064
  /** Data format for response. */
2853
- alt?: string;
3065
+ alt?: 'json' | 'media' | 'proto';
2854
3066
  /** JSONP */
2855
3067
  callback?: string;
2856
3068
  /** Selector specifying which fields to include in a partial response. */
@@ -2877,11 +3089,11 @@ declare namespace gapi.client {
2877
3089
  updateDatasetSchema(
2878
3090
  request: {
2879
3091
  /** V1 error format. */
2880
- '$.xgafv'?: string;
3092
+ '$.xgafv'?: '1' | '2';
2881
3093
  /** OAuth access token. */
2882
3094
  access_token?: string;
2883
3095
  /** Data format for response. */
2884
- alt?: string;
3096
+ alt?: 'json' | 'media' | 'proto';
2885
3097
  /** JSONP */
2886
3098
  callback?: string;
2887
3099
  /** Selector specifying which fields to include in a partial response. */
@@ -2910,11 +3122,11 @@ declare namespace gapi.client {
2910
3122
  /** Send a document for Human Review. The input document should be processed by the specified processor. */
2911
3123
  reviewDocument(request: {
2912
3124
  /** V1 error format. */
2913
- '$.xgafv'?: string;
3125
+ '$.xgafv'?: '1' | '2';
2914
3126
  /** OAuth access token. */
2915
3127
  access_token?: string;
2916
3128
  /** Data format for response. */
2917
- alt?: string;
3129
+ alt?: 'json' | 'media' | 'proto';
2918
3130
  /** JSONP */
2919
3131
  callback?: string;
2920
3132
  /** Selector specifying which fields to include in a partial response. */
@@ -2939,11 +3151,11 @@ declare namespace gapi.client {
2939
3151
  reviewDocument(
2940
3152
  request: {
2941
3153
  /** V1 error format. */
2942
- '$.xgafv'?: string;
3154
+ '$.xgafv'?: '1' | '2';
2943
3155
  /** OAuth access token. */
2944
3156
  access_token?: string;
2945
3157
  /** Data format for response. */
2946
- alt?: string;
3158
+ alt?: 'json' | 'media' | 'proto';
2947
3159
  /** JSONP */
2948
3160
  callback?: string;
2949
3161
  /** Selector specifying which fields to include in a partial response. */
@@ -2970,11 +3182,11 @@ declare namespace gapi.client {
2970
3182
  /** Retrieves a specific evaluation. */
2971
3183
  get(request?: {
2972
3184
  /** V1 error format. */
2973
- '$.xgafv'?: string;
3185
+ '$.xgafv'?: '1' | '2';
2974
3186
  /** OAuth access token. */
2975
3187
  access_token?: string;
2976
3188
  /** Data format for response. */
2977
- alt?: string;
3189
+ alt?: 'json' | 'media' | 'proto';
2978
3190
  /** JSONP */
2979
3191
  callback?: string;
2980
3192
  /** Selector specifying which fields to include in a partial response. */
@@ -2997,11 +3209,11 @@ declare namespace gapi.client {
2997
3209
  /** Retrieves a set of evaluations for a given processor version. */
2998
3210
  list(request?: {
2999
3211
  /** V1 error format. */
3000
- '$.xgafv'?: string;
3212
+ '$.xgafv'?: '1' | '2';
3001
3213
  /** OAuth access token. */
3002
3214
  access_token?: string;
3003
3215
  /** Data format for response. */
3004
- alt?: string;
3216
+ alt?: 'json' | 'media' | 'proto';
3005
3217
  /** JSONP */
3006
3218
  callback?: string;
3007
3219
  /** Selector specifying which fields to include in a partial response. */
@@ -3030,11 +3242,11 @@ declare namespace gapi.client {
3030
3242
  /** LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. */
3031
3243
  batchProcess(request: {
3032
3244
  /** V1 error format. */
3033
- '$.xgafv'?: string;
3245
+ '$.xgafv'?: '1' | '2';
3034
3246
  /** OAuth access token. */
3035
3247
  access_token?: string;
3036
3248
  /** Data format for response. */
3037
- alt?: string;
3249
+ alt?: 'json' | 'media' | 'proto';
3038
3250
  /** JSONP */
3039
3251
  callback?: string;
3040
3252
  /** Selector specifying which fields to include in a partial response. */
@@ -3059,11 +3271,11 @@ declare namespace gapi.client {
3059
3271
  batchProcess(
3060
3272
  request: {
3061
3273
  /** V1 error format. */
3062
- '$.xgafv'?: string;
3274
+ '$.xgafv'?: '1' | '2';
3063
3275
  /** OAuth access token. */
3064
3276
  access_token?: string;
3065
3277
  /** Data format for response. */
3066
- alt?: string;
3278
+ alt?: 'json' | 'media' | 'proto';
3067
3279
  /** JSONP */
3068
3280
  callback?: string;
3069
3281
  /** Selector specifying which fields to include in a partial response. */
@@ -3088,11 +3300,11 @@ declare namespace gapi.client {
3088
3300
  /** Deletes the processor version, all artifacts under the processor version will be deleted. */
3089
3301
  delete(request?: {
3090
3302
  /** V1 error format. */
3091
- '$.xgafv'?: string;
3303
+ '$.xgafv'?: '1' | '2';
3092
3304
  /** OAuth access token. */
3093
3305
  access_token?: string;
3094
3306
  /** Data format for response. */
3095
- alt?: string;
3307
+ alt?: 'json' | 'media' | 'proto';
3096
3308
  /** JSONP */
3097
3309
  callback?: string;
3098
3310
  /** Selector specifying which fields to include in a partial response. */
@@ -3115,11 +3327,11 @@ declare namespace gapi.client {
3115
3327
  /** Deploys the processor version. */
3116
3328
  deploy(request: {
3117
3329
  /** V1 error format. */
3118
- '$.xgafv'?: string;
3330
+ '$.xgafv'?: '1' | '2';
3119
3331
  /** OAuth access token. */
3120
3332
  access_token?: string;
3121
3333
  /** Data format for response. */
3122
- alt?: string;
3334
+ alt?: 'json' | 'media' | 'proto';
3123
3335
  /** JSONP */
3124
3336
  callback?: string;
3125
3337
  /** Selector specifying which fields to include in a partial response. */
@@ -3144,11 +3356,11 @@ declare namespace gapi.client {
3144
3356
  deploy(
3145
3357
  request: {
3146
3358
  /** V1 error format. */
3147
- '$.xgafv'?: string;
3359
+ '$.xgafv'?: '1' | '2';
3148
3360
  /** OAuth access token. */
3149
3361
  access_token?: string;
3150
3362
  /** Data format for response. */
3151
- alt?: string;
3363
+ alt?: 'json' | 'media' | 'proto';
3152
3364
  /** JSONP */
3153
3365
  callback?: string;
3154
3366
  /** Selector specifying which fields to include in a partial response. */
@@ -3173,11 +3385,11 @@ declare namespace gapi.client {
3173
3385
  /** Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. */
3174
3386
  evaluateProcessorVersion(request: {
3175
3387
  /** V1 error format. */
3176
- '$.xgafv'?: string;
3388
+ '$.xgafv'?: '1' | '2';
3177
3389
  /** OAuth access token. */
3178
3390
  access_token?: string;
3179
3391
  /** Data format for response. */
3180
- alt?: string;
3392
+ alt?: 'json' | 'media' | 'proto';
3181
3393
  /** JSONP */
3182
3394
  callback?: string;
3183
3395
  /** Selector specifying which fields to include in a partial response. */
@@ -3202,11 +3414,11 @@ declare namespace gapi.client {
3202
3414
  evaluateProcessorVersion(
3203
3415
  request: {
3204
3416
  /** V1 error format. */
3205
- '$.xgafv'?: string;
3417
+ '$.xgafv'?: '1' | '2';
3206
3418
  /** OAuth access token. */
3207
3419
  access_token?: string;
3208
3420
  /** Data format for response. */
3209
- alt?: string;
3421
+ alt?: 'json' | 'media' | 'proto';
3210
3422
  /** JSONP */
3211
3423
  callback?: string;
3212
3424
  /** Selector specifying which fields to include in a partial response. */
@@ -3231,11 +3443,11 @@ declare namespace gapi.client {
3231
3443
  /** Gets a processor version detail. */
3232
3444
  get(request?: {
3233
3445
  /** V1 error format. */
3234
- '$.xgafv'?: string;
3446
+ '$.xgafv'?: '1' | '2';
3235
3447
  /** OAuth access token. */
3236
3448
  access_token?: string;
3237
3449
  /** Data format for response. */
3238
- alt?: string;
3450
+ alt?: 'json' | 'media' | 'proto';
3239
3451
  /** JSONP */
3240
3452
  callback?: string;
3241
3453
  /** Selector specifying which fields to include in a partial response. */
@@ -3258,11 +3470,11 @@ declare namespace gapi.client {
3258
3470
  /** Imports a processor version from source processor version. */
3259
3471
  importProcessorVersion(request: {
3260
3472
  /** V1 error format. */
3261
- '$.xgafv'?: string;
3473
+ '$.xgafv'?: '1' | '2';
3262
3474
  /** OAuth access token. */
3263
3475
  access_token?: string;
3264
3476
  /** Data format for response. */
3265
- alt?: string;
3477
+ alt?: 'json' | 'media' | 'proto';
3266
3478
  /** JSONP */
3267
3479
  callback?: string;
3268
3480
  /** Selector specifying which fields to include in a partial response. */
@@ -3287,11 +3499,11 @@ declare namespace gapi.client {
3287
3499
  importProcessorVersion(
3288
3500
  request: {
3289
3501
  /** V1 error format. */
3290
- '$.xgafv'?: string;
3502
+ '$.xgafv'?: '1' | '2';
3291
3503
  /** OAuth access token. */
3292
3504
  access_token?: string;
3293
3505
  /** Data format for response. */
3294
- alt?: string;
3506
+ alt?: 'json' | 'media' | 'proto';
3295
3507
  /** JSONP */
3296
3508
  callback?: string;
3297
3509
  /** Selector specifying which fields to include in a partial response. */
@@ -3316,11 +3528,11 @@ declare namespace gapi.client {
3316
3528
  /** Lists all versions of a processor. */
3317
3529
  list(request?: {
3318
3530
  /** V1 error format. */
3319
- '$.xgafv'?: string;
3531
+ '$.xgafv'?: '1' | '2';
3320
3532
  /** OAuth access token. */
3321
3533
  access_token?: string;
3322
3534
  /** Data format for response. */
3323
- alt?: string;
3535
+ alt?: 'json' | 'media' | 'proto';
3324
3536
  /** JSONP */
3325
3537
  callback?: string;
3326
3538
  /** Selector specifying which fields to include in a partial response. */
@@ -3347,11 +3559,11 @@ declare namespace gapi.client {
3347
3559
  /** Processes a single document. */
3348
3560
  process(request: {
3349
3561
  /** V1 error format. */
3350
- '$.xgafv'?: string;
3562
+ '$.xgafv'?: '1' | '2';
3351
3563
  /** OAuth access token. */
3352
3564
  access_token?: string;
3353
3565
  /** Data format for response. */
3354
- alt?: string;
3566
+ alt?: 'json' | 'media' | 'proto';
3355
3567
  /** JSONP */
3356
3568
  callback?: string;
3357
3569
  /** Selector specifying which fields to include in a partial response. */
@@ -3376,11 +3588,11 @@ declare namespace gapi.client {
3376
3588
  process(
3377
3589
  request: {
3378
3590
  /** V1 error format. */
3379
- '$.xgafv'?: string;
3591
+ '$.xgafv'?: '1' | '2';
3380
3592
  /** OAuth access token. */
3381
3593
  access_token?: string;
3382
3594
  /** Data format for response. */
3383
- alt?: string;
3595
+ alt?: 'json' | 'media' | 'proto';
3384
3596
  /** JSONP */
3385
3597
  callback?: string;
3386
3598
  /** Selector specifying which fields to include in a partial response. */
@@ -3405,11 +3617,11 @@ declare namespace gapi.client {
3405
3617
  /** Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata. */
3406
3618
  train(request: {
3407
3619
  /** V1 error format. */
3408
- '$.xgafv'?: string;
3620
+ '$.xgafv'?: '1' | '2';
3409
3621
  /** OAuth access token. */
3410
3622
  access_token?: string;
3411
3623
  /** Data format for response. */
3412
- alt?: string;
3624
+ alt?: 'json' | 'media' | 'proto';
3413
3625
  /** JSONP */
3414
3626
  callback?: string;
3415
3627
  /** Selector specifying which fields to include in a partial response. */
@@ -3434,11 +3646,11 @@ declare namespace gapi.client {
3434
3646
  train(
3435
3647
  request: {
3436
3648
  /** V1 error format. */
3437
- '$.xgafv'?: string;
3649
+ '$.xgafv'?: '1' | '2';
3438
3650
  /** OAuth access token. */
3439
3651
  access_token?: string;
3440
3652
  /** Data format for response. */
3441
- alt?: string;
3653
+ alt?: 'json' | 'media' | 'proto';
3442
3654
  /** JSONP */
3443
3655
  callback?: string;
3444
3656
  /** Selector specifying which fields to include in a partial response. */
@@ -3463,11 +3675,11 @@ declare namespace gapi.client {
3463
3675
  /** Undeploys the processor version. */
3464
3676
  undeploy(request: {
3465
3677
  /** V1 error format. */
3466
- '$.xgafv'?: string;
3678
+ '$.xgafv'?: '1' | '2';
3467
3679
  /** OAuth access token. */
3468
3680
  access_token?: string;
3469
3681
  /** Data format for response. */
3470
- alt?: string;
3682
+ alt?: 'json' | 'media' | 'proto';
3471
3683
  /** JSONP */
3472
3684
  callback?: string;
3473
3685
  /** Selector specifying which fields to include in a partial response. */
@@ -3492,11 +3704,11 @@ declare namespace gapi.client {
3492
3704
  undeploy(
3493
3705
  request: {
3494
3706
  /** V1 error format. */
3495
- '$.xgafv'?: string;
3707
+ '$.xgafv'?: '1' | '2';
3496
3708
  /** OAuth access token. */
3497
3709
  access_token?: string;
3498
3710
  /** Data format for response. */
3499
- alt?: string;
3711
+ alt?: 'json' | 'media' | 'proto';
3500
3712
  /** JSONP */
3501
3713
  callback?: string;
3502
3714
  /** Selector specifying which fields to include in a partial response. */
@@ -3524,11 +3736,11 @@ declare namespace gapi.client {
3524
3736
  /** LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. */
3525
3737
  batchProcess(request: {
3526
3738
  /** V1 error format. */
3527
- '$.xgafv'?: string;
3739
+ '$.xgafv'?: '1' | '2';
3528
3740
  /** OAuth access token. */
3529
3741
  access_token?: string;
3530
3742
  /** Data format for response. */
3531
- alt?: string;
3743
+ alt?: 'json' | 'media' | 'proto';
3532
3744
  /** JSONP */
3533
3745
  callback?: string;
3534
3746
  /** Selector specifying which fields to include in a partial response. */
@@ -3553,11 +3765,11 @@ declare namespace gapi.client {
3553
3765
  batchProcess(
3554
3766
  request: {
3555
3767
  /** V1 error format. */
3556
- '$.xgafv'?: string;
3768
+ '$.xgafv'?: '1' | '2';
3557
3769
  /** OAuth access token. */
3558
3770
  access_token?: string;
3559
3771
  /** Data format for response. */
3560
- alt?: string;
3772
+ alt?: 'json' | 'media' | 'proto';
3561
3773
  /** JSONP */
3562
3774
  callback?: string;
3563
3775
  /** Selector specifying which fields to include in a partial response. */
@@ -3582,11 +3794,11 @@ declare namespace gapi.client {
3582
3794
  /** Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project. */
3583
3795
  create(request: {
3584
3796
  /** V1 error format. */
3585
- '$.xgafv'?: string;
3797
+ '$.xgafv'?: '1' | '2';
3586
3798
  /** OAuth access token. */
3587
3799
  access_token?: string;
3588
3800
  /** Data format for response. */
3589
- alt?: string;
3801
+ alt?: 'json' | 'media' | 'proto';
3590
3802
  /** JSONP */
3591
3803
  callback?: string;
3592
3804
  /** Selector specifying which fields to include in a partial response. */
@@ -3611,11 +3823,11 @@ declare namespace gapi.client {
3611
3823
  create(
3612
3824
  request: {
3613
3825
  /** V1 error format. */
3614
- '$.xgafv'?: string;
3826
+ '$.xgafv'?: '1' | '2';
3615
3827
  /** OAuth access token. */
3616
3828
  access_token?: string;
3617
3829
  /** Data format for response. */
3618
- alt?: string;
3830
+ alt?: 'json' | 'media' | 'proto';
3619
3831
  /** JSONP */
3620
3832
  callback?: string;
3621
3833
  /** Selector specifying which fields to include in a partial response. */
@@ -3640,11 +3852,11 @@ declare namespace gapi.client {
3640
3852
  /** Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. */
3641
3853
  delete(request?: {
3642
3854
  /** V1 error format. */
3643
- '$.xgafv'?: string;
3855
+ '$.xgafv'?: '1' | '2';
3644
3856
  /** OAuth access token. */
3645
3857
  access_token?: string;
3646
3858
  /** Data format for response. */
3647
- alt?: string;
3859
+ alt?: 'json' | 'media' | 'proto';
3648
3860
  /** JSONP */
3649
3861
  callback?: string;
3650
3862
  /** Selector specifying which fields to include in a partial response. */
@@ -3667,11 +3879,11 @@ declare namespace gapi.client {
3667
3879
  /** Disables a processor */
3668
3880
  disable(request: {
3669
3881
  /** V1 error format. */
3670
- '$.xgafv'?: string;
3882
+ '$.xgafv'?: '1' | '2';
3671
3883
  /** OAuth access token. */
3672
3884
  access_token?: string;
3673
3885
  /** Data format for response. */
3674
- alt?: string;
3886
+ alt?: 'json' | 'media' | 'proto';
3675
3887
  /** JSONP */
3676
3888
  callback?: string;
3677
3889
  /** Selector specifying which fields to include in a partial response. */
@@ -3696,11 +3908,11 @@ declare namespace gapi.client {
3696
3908
  disable(
3697
3909
  request: {
3698
3910
  /** V1 error format. */
3699
- '$.xgafv'?: string;
3911
+ '$.xgafv'?: '1' | '2';
3700
3912
  /** OAuth access token. */
3701
3913
  access_token?: string;
3702
3914
  /** Data format for response. */
3703
- alt?: string;
3915
+ alt?: 'json' | 'media' | 'proto';
3704
3916
  /** JSONP */
3705
3917
  callback?: string;
3706
3918
  /** Selector specifying which fields to include in a partial response. */
@@ -3725,11 +3937,11 @@ declare namespace gapi.client {
3725
3937
  /** Enables a processor */
3726
3938
  enable(request: {
3727
3939
  /** V1 error format. */
3728
- '$.xgafv'?: string;
3940
+ '$.xgafv'?: '1' | '2';
3729
3941
  /** OAuth access token. */
3730
3942
  access_token?: string;
3731
3943
  /** Data format for response. */
3732
- alt?: string;
3944
+ alt?: 'json' | 'media' | 'proto';
3733
3945
  /** JSONP */
3734
3946
  callback?: string;
3735
3947
  /** Selector specifying which fields to include in a partial response. */
@@ -3754,11 +3966,11 @@ declare namespace gapi.client {
3754
3966
  enable(
3755
3967
  request: {
3756
3968
  /** V1 error format. */
3757
- '$.xgafv'?: string;
3969
+ '$.xgafv'?: '1' | '2';
3758
3970
  /** OAuth access token. */
3759
3971
  access_token?: string;
3760
3972
  /** Data format for response. */
3761
- alt?: string;
3973
+ alt?: 'json' | 'media' | 'proto';
3762
3974
  /** JSONP */
3763
3975
  callback?: string;
3764
3976
  /** Selector specifying which fields to include in a partial response. */
@@ -3783,11 +3995,11 @@ declare namespace gapi.client {
3783
3995
  /** Gets a processor detail. */
3784
3996
  get(request?: {
3785
3997
  /** V1 error format. */
3786
- '$.xgafv'?: string;
3998
+ '$.xgafv'?: '1' | '2';
3787
3999
  /** OAuth access token. */
3788
4000
  access_token?: string;
3789
4001
  /** Data format for response. */
3790
- alt?: string;
4002
+ alt?: 'json' | 'media' | 'proto';
3791
4003
  /** JSONP */
3792
4004
  callback?: string;
3793
4005
  /** Selector specifying which fields to include in a partial response. */
@@ -3810,11 +4022,11 @@ declare namespace gapi.client {
3810
4022
  /** Lists all processors which belong to this project. */
3811
4023
  list(request?: {
3812
4024
  /** V1 error format. */
3813
- '$.xgafv'?: string;
4025
+ '$.xgafv'?: '1' | '2';
3814
4026
  /** OAuth access token. */
3815
4027
  access_token?: string;
3816
4028
  /** Data format for response. */
3817
- alt?: string;
4029
+ alt?: 'json' | 'media' | 'proto';
3818
4030
  /** JSONP */
3819
4031
  callback?: string;
3820
4032
  /** Selector specifying which fields to include in a partial response. */
@@ -3841,11 +4053,11 @@ declare namespace gapi.client {
3841
4053
  /** Processes a single document. */
3842
4054
  process(request: {
3843
4055
  /** V1 error format. */
3844
- '$.xgafv'?: string;
4056
+ '$.xgafv'?: '1' | '2';
3845
4057
  /** OAuth access token. */
3846
4058
  access_token?: string;
3847
4059
  /** Data format for response. */
3848
- alt?: string;
4060
+ alt?: 'json' | 'media' | 'proto';
3849
4061
  /** JSONP */
3850
4062
  callback?: string;
3851
4063
  /** Selector specifying which fields to include in a partial response. */
@@ -3870,11 +4082,11 @@ declare namespace gapi.client {
3870
4082
  process(
3871
4083
  request: {
3872
4084
  /** V1 error format. */
3873
- '$.xgafv'?: string;
4085
+ '$.xgafv'?: '1' | '2';
3874
4086
  /** OAuth access token. */
3875
4087
  access_token?: string;
3876
4088
  /** Data format for response. */
3877
- alt?: string;
4089
+ alt?: 'json' | 'media' | 'proto';
3878
4090
  /** JSONP */
3879
4091
  callback?: string;
3880
4092
  /** Selector specifying which fields to include in a partial response. */
@@ -3899,11 +4111,11 @@ declare namespace gapi.client {
3899
4111
  /** Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments. */
3900
4112
  setDefaultProcessorVersion(request: {
3901
4113
  /** V1 error format. */
3902
- '$.xgafv'?: string;
4114
+ '$.xgafv'?: '1' | '2';
3903
4115
  /** OAuth access token. */
3904
4116
  access_token?: string;
3905
4117
  /** Data format for response. */
3906
- alt?: string;
4118
+ alt?: 'json' | 'media' | 'proto';
3907
4119
  /** JSONP */
3908
4120
  callback?: string;
3909
4121
  /** Selector specifying which fields to include in a partial response. */
@@ -3928,11 +4140,11 @@ declare namespace gapi.client {
3928
4140
  setDefaultProcessorVersion(
3929
4141
  request: {
3930
4142
  /** V1 error format. */
3931
- '$.xgafv'?: string;
4143
+ '$.xgafv'?: '1' | '2';
3932
4144
  /** OAuth access token. */
3933
4145
  access_token?: string;
3934
4146
  /** Data format for response. */
3935
- alt?: string;
4147
+ alt?: 'json' | 'media' | 'proto';
3936
4148
  /** JSONP */
3937
4149
  callback?: string;
3938
4150
  /** Selector specifying which fields to include in a partial response. */
@@ -3957,11 +4169,11 @@ declare namespace gapi.client {
3957
4169
  /** Updates metadata associated with a dataset. Note that this method requires the `documentai.googleapis.com/datasets.update` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project. */
3958
4170
  updateDataset(request: {
3959
4171
  /** V1 error format. */
3960
- '$.xgafv'?: string;
4172
+ '$.xgafv'?: '1' | '2';
3961
4173
  /** OAuth access token. */
3962
4174
  access_token?: string;
3963
4175
  /** Data format for response. */
3964
- alt?: string;
4176
+ alt?: 'json' | 'media' | 'proto';
3965
4177
  /** JSONP */
3966
4178
  callback?: string;
3967
4179
  /** Selector specifying which fields to include in a partial response. */
@@ -3988,11 +4200,11 @@ declare namespace gapi.client {
3988
4200
  updateDataset(
3989
4201
  request: {
3990
4202
  /** V1 error format. */
3991
- '$.xgafv'?: string;
4203
+ '$.xgafv'?: '1' | '2';
3992
4204
  /** OAuth access token. */
3993
4205
  access_token?: string;
3994
4206
  /** Data format for response. */
3995
- alt?: string;
4207
+ alt?: 'json' | 'media' | 'proto';
3996
4208
  /** JSONP */
3997
4209
  callback?: string;
3998
4210
  /** Selector specifying which fields to include in a partial response. */
@@ -4024,11 +4236,11 @@ declare namespace gapi.client {
4024
4236
  /** Gets a processor type detail. */
4025
4237
  get(request?: {
4026
4238
  /** V1 error format. */
4027
- '$.xgafv'?: string;
4239
+ '$.xgafv'?: '1' | '2';
4028
4240
  /** OAuth access token. */
4029
4241
  access_token?: string;
4030
4242
  /** Data format for response. */
4031
- alt?: string;
4243
+ alt?: 'json' | 'media' | 'proto';
4032
4244
  /** JSONP */
4033
4245
  callback?: string;
4034
4246
  /** Selector specifying which fields to include in a partial response. */
@@ -4051,11 +4263,11 @@ declare namespace gapi.client {
4051
4263
  /** Lists the processor types that exist. */
4052
4264
  list(request?: {
4053
4265
  /** V1 error format. */
4054
- '$.xgafv'?: string;
4266
+ '$.xgafv'?: '1' | '2';
4055
4267
  /** OAuth access token. */
4056
4268
  access_token?: string;
4057
4269
  /** Data format for response. */
4058
- alt?: string;
4270
+ alt?: 'json' | 'media' | 'proto';
4059
4271
  /** JSONP */
4060
4272
  callback?: string;
4061
4273
  /** Selector specifying which fields to include in a partial response. */
@@ -4084,11 +4296,11 @@ declare namespace gapi.client {
4084
4296
  /** Creates a schema version. */
4085
4297
  create(request: {
4086
4298
  /** V1 error format. */
4087
- '$.xgafv'?: string;
4299
+ '$.xgafv'?: '1' | '2';
4088
4300
  /** OAuth access token. */
4089
4301
  access_token?: string;
4090
4302
  /** Data format for response. */
4091
- alt?: string;
4303
+ alt?: 'json' | 'media' | 'proto';
4092
4304
  /** JSONP */
4093
4305
  callback?: string;
4094
4306
  /** Selector specifying which fields to include in a partial response. */
@@ -4113,11 +4325,11 @@ declare namespace gapi.client {
4113
4325
  create(
4114
4326
  request: {
4115
4327
  /** V1 error format. */
4116
- '$.xgafv'?: string;
4328
+ '$.xgafv'?: '1' | '2';
4117
4329
  /** OAuth access token. */
4118
4330
  access_token?: string;
4119
4331
  /** Data format for response. */
4120
- alt?: string;
4332
+ alt?: 'json' | 'media' | 'proto';
4121
4333
  /** JSONP */
4122
4334
  callback?: string;
4123
4335
  /** Selector specifying which fields to include in a partial response. */
@@ -4142,11 +4354,11 @@ declare namespace gapi.client {
4142
4354
  /** Deletes a schema version. */
4143
4355
  delete(request?: {
4144
4356
  /** V1 error format. */
4145
- '$.xgafv'?: string;
4357
+ '$.xgafv'?: '1' | '2';
4146
4358
  /** OAuth access token. */
4147
4359
  access_token?: string;
4148
4360
  /** Data format for response. */
4149
- alt?: string;
4361
+ alt?: 'json' | 'media' | 'proto';
4150
4362
  /** JSONP */
4151
4363
  callback?: string;
4152
4364
  /** Selector specifying which fields to include in a partial response. */
@@ -4169,11 +4381,11 @@ declare namespace gapi.client {
4169
4381
  /** Generates a schema version. */
4170
4382
  generate(request: {
4171
4383
  /** V1 error format. */
4172
- '$.xgafv'?: string;
4384
+ '$.xgafv'?: '1' | '2';
4173
4385
  /** OAuth access token. */
4174
4386
  access_token?: string;
4175
4387
  /** Data format for response. */
4176
- alt?: string;
4388
+ alt?: 'json' | 'media' | 'proto';
4177
4389
  /** JSONP */
4178
4390
  callback?: string;
4179
4391
  /** Selector specifying which fields to include in a partial response. */
@@ -4198,11 +4410,11 @@ declare namespace gapi.client {
4198
4410
  generate(
4199
4411
  request: {
4200
4412
  /** V1 error format. */
4201
- '$.xgafv'?: string;
4413
+ '$.xgafv'?: '1' | '2';
4202
4414
  /** OAuth access token. */
4203
4415
  access_token?: string;
4204
4416
  /** Data format for response. */
4205
- alt?: string;
4417
+ alt?: 'json' | 'media' | 'proto';
4206
4418
  /** JSONP */
4207
4419
  callback?: string;
4208
4420
  /** Selector specifying which fields to include in a partial response. */
@@ -4227,11 +4439,11 @@ declare namespace gapi.client {
4227
4439
  /** Gets a schema version. */
4228
4440
  get(request?: {
4229
4441
  /** V1 error format. */
4230
- '$.xgafv'?: string;
4442
+ '$.xgafv'?: '1' | '2';
4231
4443
  /** OAuth access token. */
4232
4444
  access_token?: string;
4233
4445
  /** Data format for response. */
4234
- alt?: string;
4446
+ alt?: 'json' | 'media' | 'proto';
4235
4447
  /** JSONP */
4236
4448
  callback?: string;
4237
4449
  /** Selector specifying which fields to include in a partial response. */
@@ -4254,11 +4466,11 @@ declare namespace gapi.client {
4254
4466
  /** Lists SchemaVersions. */
4255
4467
  list(request?: {
4256
4468
  /** V1 error format. */
4257
- '$.xgafv'?: string;
4469
+ '$.xgafv'?: '1' | '2';
4258
4470
  /** OAuth access token. */
4259
4471
  access_token?: string;
4260
4472
  /** Data format for response. */
4261
- alt?: string;
4473
+ alt?: 'json' | 'media' | 'proto';
4262
4474
  /** JSONP */
4263
4475
  callback?: string;
4264
4476
  /** Selector specifying which fields to include in a partial response. */
@@ -4285,11 +4497,11 @@ declare namespace gapi.client {
4285
4497
  /** Updates a schema version. Editable fields are: - `display_name` - `labels` */
4286
4498
  patch(request: {
4287
4499
  /** V1 error format. */
4288
- '$.xgafv'?: string;
4500
+ '$.xgafv'?: '1' | '2';
4289
4501
  /** OAuth access token. */
4290
4502
  access_token?: string;
4291
4503
  /** Data format for response. */
4292
- alt?: string;
4504
+ alt?: 'json' | 'media' | 'proto';
4293
4505
  /** JSONP */
4294
4506
  callback?: string;
4295
4507
  /** Selector specifying which fields to include in a partial response. */
@@ -4316,11 +4528,11 @@ declare namespace gapi.client {
4316
4528
  patch(
4317
4529
  request: {
4318
4530
  /** V1 error format. */
4319
- '$.xgafv'?: string;
4531
+ '$.xgafv'?: '1' | '2';
4320
4532
  /** OAuth access token. */
4321
4533
  access_token?: string;
4322
4534
  /** Data format for response. */
4323
- alt?: string;
4535
+ alt?: 'json' | 'media' | 'proto';
4324
4536
  /** JSONP */
4325
4537
  callback?: string;
4326
4538
  /** Selector specifying which fields to include in a partial response. */
@@ -4349,11 +4561,11 @@ declare namespace gapi.client {
4349
4561
  /** Creates a schema. */
4350
4562
  create(request: {
4351
4563
  /** V1 error format. */
4352
- '$.xgafv'?: string;
4564
+ '$.xgafv'?: '1' | '2';
4353
4565
  /** OAuth access token. */
4354
4566
  access_token?: string;
4355
4567
  /** Data format for response. */
4356
- alt?: string;
4568
+ alt?: 'json' | 'media' | 'proto';
4357
4569
  /** JSONP */
4358
4570
  callback?: string;
4359
4571
  /** Selector specifying which fields to include in a partial response. */
@@ -4378,11 +4590,11 @@ declare namespace gapi.client {
4378
4590
  create(
4379
4591
  request: {
4380
4592
  /** V1 error format. */
4381
- '$.xgafv'?: string;
4593
+ '$.xgafv'?: '1' | '2';
4382
4594
  /** OAuth access token. */
4383
4595
  access_token?: string;
4384
4596
  /** Data format for response. */
4385
- alt?: string;
4597
+ alt?: 'json' | 'media' | 'proto';
4386
4598
  /** JSONP */
4387
4599
  callback?: string;
4388
4600
  /** Selector specifying which fields to include in a partial response. */
@@ -4407,11 +4619,11 @@ declare namespace gapi.client {
4407
4619
  /** Deletes a schema. */
4408
4620
  delete(request?: {
4409
4621
  /** V1 error format. */
4410
- '$.xgafv'?: string;
4622
+ '$.xgafv'?: '1' | '2';
4411
4623
  /** OAuth access token. */
4412
4624
  access_token?: string;
4413
4625
  /** Data format for response. */
4414
- alt?: string;
4626
+ alt?: 'json' | 'media' | 'proto';
4415
4627
  /** JSONP */
4416
4628
  callback?: string;
4417
4629
  /** Selector specifying which fields to include in a partial response. */
@@ -4436,11 +4648,11 @@ declare namespace gapi.client {
4436
4648
  /** Gets a schema. */
4437
4649
  get(request?: {
4438
4650
  /** V1 error format. */
4439
- '$.xgafv'?: string;
4651
+ '$.xgafv'?: '1' | '2';
4440
4652
  /** OAuth access token. */
4441
4653
  access_token?: string;
4442
4654
  /** Data format for response. */
4443
- alt?: string;
4655
+ alt?: 'json' | 'media' | 'proto';
4444
4656
  /** JSONP */
4445
4657
  callback?: string;
4446
4658
  /** Selector specifying which fields to include in a partial response. */
@@ -4463,11 +4675,11 @@ declare namespace gapi.client {
4463
4675
  /** Lists Schemas. */
4464
4676
  list(request?: {
4465
4677
  /** V1 error format. */
4466
- '$.xgafv'?: string;
4678
+ '$.xgafv'?: '1' | '2';
4467
4679
  /** OAuth access token. */
4468
4680
  access_token?: string;
4469
4681
  /** Data format for response. */
4470
- alt?: string;
4682
+ alt?: 'json' | 'media' | 'proto';
4471
4683
  /** JSONP */
4472
4684
  callback?: string;
4473
4685
  /** Selector specifying which fields to include in a partial response. */
@@ -4494,11 +4706,11 @@ declare namespace gapi.client {
4494
4706
  /** Updates a schema. Editable fields are: - `display_name` - `labels` */
4495
4707
  patch(request: {
4496
4708
  /** V1 error format. */
4497
- '$.xgafv'?: string;
4709
+ '$.xgafv'?: '1' | '2';
4498
4710
  /** OAuth access token. */
4499
4711
  access_token?: string;
4500
4712
  /** Data format for response. */
4501
- alt?: string;
4713
+ alt?: 'json' | 'media' | 'proto';
4502
4714
  /** JSONP */
4503
4715
  callback?: string;
4504
4716
  /** Selector specifying which fields to include in a partial response. */
@@ -4525,11 +4737,11 @@ declare namespace gapi.client {
4525
4737
  patch(
4526
4738
  request: {
4527
4739
  /** V1 error format. */
4528
- '$.xgafv'?: string;
4740
+ '$.xgafv'?: '1' | '2';
4529
4741
  /** OAuth access token. */
4530
4742
  access_token?: string;
4531
4743
  /** Data format for response. */
4532
- alt?: string;
4744
+ alt?: 'json' | 'media' | 'proto';
4533
4745
  /** JSONP */
4534
4746
  callback?: string;
4535
4747
  /** Selector specifying which fields to include in a partial response. */
@@ -4559,11 +4771,11 @@ declare namespace gapi.client {
4559
4771
  /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
4560
4772
  fetchProcessorTypes(request?: {
4561
4773
  /** V1 error format. */
4562
- '$.xgafv'?: string;
4774
+ '$.xgafv'?: '1' | '2';
4563
4775
  /** OAuth access token. */
4564
4776
  access_token?: string;
4565
4777
  /** Data format for response. */
4566
- alt?: string;
4778
+ alt?: 'json' | 'media' | 'proto';
4567
4779
  /** JSONP */
4568
4780
  callback?: string;
4569
4781
  /** Selector specifying which fields to include in a partial response. */
@@ -4586,11 +4798,11 @@ declare namespace gapi.client {
4586
4798
  /** Gets information about a location. */
4587
4799
  get(request?: {
4588
4800
  /** V1 error format. */
4589
- '$.xgafv'?: string;
4801
+ '$.xgafv'?: '1' | '2';
4590
4802
  /** OAuth access token. */
4591
4803
  access_token?: string;
4592
4804
  /** Data format for response. */
4593
- alt?: string;
4805
+ alt?: 'json' | 'media' | 'proto';
4594
4806
  /** JSONP */
4595
4807
  callback?: string;
4596
4808
  /** Selector specifying which fields to include in a partial response. */
@@ -4610,17 +4822,17 @@ declare namespace gapi.client {
4610
4822
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4611
4823
  uploadType?: string;
4612
4824
  }): Request<GoogleCloudLocationLocation>;
4613
- /** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
4825
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
4614
4826
  list(request?: {
4615
4827
  /** V1 error format. */
4616
- '$.xgafv'?: string;
4828
+ '$.xgafv'?: '1' | '2';
4617
4829
  /** OAuth access token. */
4618
4830
  access_token?: string;
4619
4831
  /** Data format for response. */
4620
- alt?: string;
4832
+ alt?: 'json' | 'media' | 'proto';
4621
4833
  /** JSONP */
4622
4834
  callback?: string;
4623
- /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
4835
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
4624
4836
  extraLocationTypes?: string | string[];
4625
4837
  /** Selector specifying which fields to include in a partial response. */
4626
4838
  fields?: string;