@maxim_mazurok/gapi.client.documentai-v1beta3 0.1.20260309 → 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 +416 -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: 20260309
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,11 +2437,16 @@ 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. */
2250
2447
  learningRateMultiplier?: number;
2448
+ /** Optional. Resource name of a previously fine tuned version id to copy the overwritten configs from. The base_processor_version should be newer than the base processor version used to fine tune this provided processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. */
2449
+ previousFineTunedProcessorVersionName?: string;
2251
2450
  /** Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used. */
2252
2451
  trainSteps?: number;
2253
2452
  }
@@ -2287,7 +2486,13 @@ declare namespace gapi.client {
2287
2486
  /** A related resource to this operation. */
2288
2487
  resource?: string;
2289
2488
  /** The state of the operation. */
2290
- state?: string;
2489
+ state?:
2490
+ | 'STATE_UNSPECIFIED'
2491
+ | 'RUNNING'
2492
+ | 'CANCELLING'
2493
+ | 'SUCCEEDED'
2494
+ | 'FAILED'
2495
+ | 'CANCELLED';
2291
2496
  /** A message providing more details about the current state of processing. */
2292
2497
  stateMessage?: string;
2293
2498
  /** The last update time of the operation. */
@@ -2328,7 +2533,12 @@ declare namespace gapi.client {
2328
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. */
2329
2534
  humanReviewOperation?: string;
2330
2535
  /** The state of human review on the processing request. */
2331
- state?: string;
2536
+ state?:
2537
+ | 'STATE_UNSPECIFIED'
2538
+ | 'SKIPPED'
2539
+ | 'VALIDATION_PASSED'
2540
+ | 'IN_PROGRESS'
2541
+ | 'ERROR';
2332
2542
  /** A message providing more details about the human review state. */
2333
2543
  stateMessage?: string;
2334
2544
  }
@@ -2344,7 +2554,7 @@ declare namespace gapi.client {
2344
2554
  /** The reason why the review is rejected by reviewer. */
2345
2555
  rejectionReason?: string;
2346
2556
  /** The state of the review operation. */
2347
- state?: string;
2557
+ state?: 'STATE_UNSPECIFIED' | 'REJECTED' | 'SUCCEEDED';
2348
2558
  }
2349
2559
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
2350
2560
  /** The basic metadata of the long-running operation. */
@@ -2421,7 +2631,7 @@ declare namespace gapi.client {
2421
2631
  /** The status code, which should be an enum value of google.rpc.Code. */
2422
2632
  code?: number;
2423
2633
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
2424
- details?: Array<{[P in string]: any}>;
2634
+ details?: {[P in string]: any}[];
2425
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. */
2426
2636
  message?: string;
2427
2637
  }
@@ -2505,11 +2715,11 @@ declare namespace gapi.client {
2505
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`. */
2506
2716
  cancel(request?: {
2507
2717
  /** V1 error format. */
2508
- '$.xgafv'?: string;
2718
+ '$.xgafv'?: '1' | '2';
2509
2719
  /** OAuth access token. */
2510
2720
  access_token?: string;
2511
2721
  /** Data format for response. */
2512
- alt?: string;
2722
+ alt?: 'json' | 'media' | 'proto';
2513
2723
  /** JSONP */
2514
2724
  callback?: string;
2515
2725
  /** Selector specifying which fields to include in a partial response. */
@@ -2532,11 +2742,11 @@ declare namespace gapi.client {
2532
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. */
2533
2743
  get(request?: {
2534
2744
  /** V1 error format. */
2535
- '$.xgafv'?: string;
2745
+ '$.xgafv'?: '1' | '2';
2536
2746
  /** OAuth access token. */
2537
2747
  access_token?: string;
2538
2748
  /** Data format for response. */
2539
- alt?: string;
2749
+ alt?: 'json' | 'media' | 'proto';
2540
2750
  /** JSONP */
2541
2751
  callback?: string;
2542
2752
  /** Selector specifying which fields to include in a partial response. */
@@ -2559,11 +2769,11 @@ declare namespace gapi.client {
2559
2769
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2560
2770
  list(request?: {
2561
2771
  /** V1 error format. */
2562
- '$.xgafv'?: string;
2772
+ '$.xgafv'?: '1' | '2';
2563
2773
  /** OAuth access token. */
2564
2774
  access_token?: string;
2565
2775
  /** Data format for response. */
2566
- alt?: string;
2776
+ alt?: 'json' | 'media' | 'proto';
2567
2777
  /** JSONP */
2568
2778
  callback?: string;
2569
2779
  /** Selector specifying which fields to include in a partial response. */
@@ -2596,11 +2806,11 @@ declare namespace gapi.client {
2596
2806
  /** Deletes a set of documents. */
2597
2807
  batchDeleteDocuments(request: {
2598
2808
  /** V1 error format. */
2599
- '$.xgafv'?: string;
2809
+ '$.xgafv'?: '1' | '2';
2600
2810
  /** OAuth access token. */
2601
2811
  access_token?: string;
2602
2812
  /** Data format for response. */
2603
- alt?: string;
2813
+ alt?: 'json' | 'media' | 'proto';
2604
2814
  /** JSONP */
2605
2815
  callback?: string;
2606
2816
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2625,11 +2835,11 @@ declare namespace gapi.client {
2625
2835
  batchDeleteDocuments(
2626
2836
  request: {
2627
2837
  /** V1 error format. */
2628
- '$.xgafv'?: string;
2838
+ '$.xgafv'?: '1' | '2';
2629
2839
  /** OAuth access token. */
2630
2840
  access_token?: string;
2631
2841
  /** Data format for response. */
2632
- alt?: string;
2842
+ alt?: 'json' | 'media' | 'proto';
2633
2843
  /** JSONP */
2634
2844
  callback?: string;
2635
2845
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2654,11 +2864,11 @@ declare namespace gapi.client {
2654
2864
  /** Gets the `DatasetSchema` of a `Dataset`. */
2655
2865
  getDatasetSchema(request?: {
2656
2866
  /** V1 error format. */
2657
- '$.xgafv'?: string;
2867
+ '$.xgafv'?: '1' | '2';
2658
2868
  /** OAuth access token. */
2659
2869
  access_token?: string;
2660
2870
  /** Data format for response. */
2661
- alt?: string;
2871
+ alt?: 'json' | 'media' | 'proto';
2662
2872
  /** JSONP */
2663
2873
  callback?: string;
2664
2874
  /** Selector specifying which fields to include in a partial response. */
@@ -2683,11 +2893,11 @@ declare namespace gapi.client {
2683
2893
  /** Returns relevant fields present in the requested document. */
2684
2894
  getDocument(request?: {
2685
2895
  /** V1 error format. */
2686
- '$.xgafv'?: string;
2896
+ '$.xgafv'?: '1' | '2';
2687
2897
  /** OAuth access token. */
2688
2898
  access_token?: string;
2689
2899
  /** Data format for response. */
2690
- alt?: string;
2900
+ alt?: 'json' | 'media' | 'proto';
2691
2901
  /** JSONP */
2692
2902
  callback?: string;
2693
2903
  /** Required. The resource name of the dataset that the document belongs to . Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2699,7 +2909,11 @@ declare namespace gapi.client {
2699
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}` */
2700
2910
  'documentId.revisionRef.latestProcessorVersion'?: string;
2701
2911
  /** Reads the revision by the predefined case. */
2702
- 'documentId.revisionRef.revisionCase'?: string;
2912
+ 'documentId.revisionRef.revisionCase'?:
2913
+ | 'REVISION_CASE_UNSPECIFIED'
2914
+ | 'LATEST_HUMAN_REVIEW'
2915
+ | 'LATEST_TIMESTAMP'
2916
+ | 'BASE_OCR_REVISION';
2703
2917
  /** Reads the revision given by the id. */
2704
2918
  'documentId.revisionRef.revisionId'?: string;
2705
2919
  /** Required. The id of the document. */
@@ -2728,11 +2942,11 @@ declare namespace gapi.client {
2728
2942
  /** Import documents into a dataset. */
2729
2943
  importDocuments(request: {
2730
2944
  /** V1 error format. */
2731
- '$.xgafv'?: string;
2945
+ '$.xgafv'?: '1' | '2';
2732
2946
  /** OAuth access token. */
2733
2947
  access_token?: string;
2734
2948
  /** Data format for response. */
2735
- alt?: string;
2949
+ alt?: 'json' | 'media' | 'proto';
2736
2950
  /** JSONP */
2737
2951
  callback?: string;
2738
2952
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2757,11 +2971,11 @@ declare namespace gapi.client {
2757
2971
  importDocuments(
2758
2972
  request: {
2759
2973
  /** V1 error format. */
2760
- '$.xgafv'?: string;
2974
+ '$.xgafv'?: '1' | '2';
2761
2975
  /** OAuth access token. */
2762
2976
  access_token?: string;
2763
2977
  /** Data format for response. */
2764
- alt?: string;
2978
+ alt?: 'json' | 'media' | 'proto';
2765
2979
  /** JSONP */
2766
2980
  callback?: string;
2767
2981
  /** Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2786,11 +3000,11 @@ declare namespace gapi.client {
2786
3000
  /** Returns a list of documents present in the dataset. */
2787
3001
  listDocuments(request: {
2788
3002
  /** V1 error format. */
2789
- '$.xgafv'?: string;
3003
+ '$.xgafv'?: '1' | '2';
2790
3004
  /** OAuth access token. */
2791
3005
  access_token?: string;
2792
3006
  /** Data format for response. */
2793
- alt?: string;
3007
+ alt?: 'json' | 'media' | 'proto';
2794
3008
  /** JSONP */
2795
3009
  callback?: string;
2796
3010
  /** Required. The resource name of the dataset to be listed. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2815,11 +3029,11 @@ declare namespace gapi.client {
2815
3029
  listDocuments(
2816
3030
  request: {
2817
3031
  /** V1 error format. */
2818
- '$.xgafv'?: string;
3032
+ '$.xgafv'?: '1' | '2';
2819
3033
  /** OAuth access token. */
2820
3034
  access_token?: string;
2821
3035
  /** Data format for response. */
2822
- alt?: string;
3036
+ alt?: 'json' | 'media' | 'proto';
2823
3037
  /** JSONP */
2824
3038
  callback?: string;
2825
3039
  /** Required. The resource name of the dataset to be listed. Format: projects/{project}/locations/{location}/processors/{processor}/dataset */
@@ -2844,11 +3058,11 @@ declare namespace gapi.client {
2844
3058
  /** Updates a `DatasetSchema`. */
2845
3059
  updateDatasetSchema(request: {
2846
3060
  /** V1 error format. */
2847
- '$.xgafv'?: string;
3061
+ '$.xgafv'?: '1' | '2';
2848
3062
  /** OAuth access token. */
2849
3063
  access_token?: string;
2850
3064
  /** Data format for response. */
2851
- alt?: string;
3065
+ alt?: 'json' | 'media' | 'proto';
2852
3066
  /** JSONP */
2853
3067
  callback?: string;
2854
3068
  /** Selector specifying which fields to include in a partial response. */
@@ -2875,11 +3089,11 @@ declare namespace gapi.client {
2875
3089
  updateDatasetSchema(
2876
3090
  request: {
2877
3091
  /** V1 error format. */
2878
- '$.xgafv'?: string;
3092
+ '$.xgafv'?: '1' | '2';
2879
3093
  /** OAuth access token. */
2880
3094
  access_token?: string;
2881
3095
  /** Data format for response. */
2882
- alt?: string;
3096
+ alt?: 'json' | 'media' | 'proto';
2883
3097
  /** JSONP */
2884
3098
  callback?: string;
2885
3099
  /** Selector specifying which fields to include in a partial response. */
@@ -2908,11 +3122,11 @@ declare namespace gapi.client {
2908
3122
  /** Send a document for Human Review. The input document should be processed by the specified processor. */
2909
3123
  reviewDocument(request: {
2910
3124
  /** V1 error format. */
2911
- '$.xgafv'?: string;
3125
+ '$.xgafv'?: '1' | '2';
2912
3126
  /** OAuth access token. */
2913
3127
  access_token?: string;
2914
3128
  /** Data format for response. */
2915
- alt?: string;
3129
+ alt?: 'json' | 'media' | 'proto';
2916
3130
  /** JSONP */
2917
3131
  callback?: string;
2918
3132
  /** Selector specifying which fields to include in a partial response. */
@@ -2937,11 +3151,11 @@ declare namespace gapi.client {
2937
3151
  reviewDocument(
2938
3152
  request: {
2939
3153
  /** V1 error format. */
2940
- '$.xgafv'?: string;
3154
+ '$.xgafv'?: '1' | '2';
2941
3155
  /** OAuth access token. */
2942
3156
  access_token?: string;
2943
3157
  /** Data format for response. */
2944
- alt?: string;
3158
+ alt?: 'json' | 'media' | 'proto';
2945
3159
  /** JSONP */
2946
3160
  callback?: string;
2947
3161
  /** Selector specifying which fields to include in a partial response. */
@@ -2968,11 +3182,11 @@ declare namespace gapi.client {
2968
3182
  /** Retrieves a specific evaluation. */
2969
3183
  get(request?: {
2970
3184
  /** V1 error format. */
2971
- '$.xgafv'?: string;
3185
+ '$.xgafv'?: '1' | '2';
2972
3186
  /** OAuth access token. */
2973
3187
  access_token?: string;
2974
3188
  /** Data format for response. */
2975
- alt?: string;
3189
+ alt?: 'json' | 'media' | 'proto';
2976
3190
  /** JSONP */
2977
3191
  callback?: string;
2978
3192
  /** Selector specifying which fields to include in a partial response. */
@@ -2995,11 +3209,11 @@ declare namespace gapi.client {
2995
3209
  /** Retrieves a set of evaluations for a given processor version. */
2996
3210
  list(request?: {
2997
3211
  /** V1 error format. */
2998
- '$.xgafv'?: string;
3212
+ '$.xgafv'?: '1' | '2';
2999
3213
  /** OAuth access token. */
3000
3214
  access_token?: string;
3001
3215
  /** Data format for response. */
3002
- alt?: string;
3216
+ alt?: 'json' | 'media' | 'proto';
3003
3217
  /** JSONP */
3004
3218
  callback?: string;
3005
3219
  /** Selector specifying which fields to include in a partial response. */
@@ -3028,11 +3242,11 @@ declare namespace gapi.client {
3028
3242
  /** LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. */
3029
3243
  batchProcess(request: {
3030
3244
  /** V1 error format. */
3031
- '$.xgafv'?: string;
3245
+ '$.xgafv'?: '1' | '2';
3032
3246
  /** OAuth access token. */
3033
3247
  access_token?: string;
3034
3248
  /** Data format for response. */
3035
- alt?: string;
3249
+ alt?: 'json' | 'media' | 'proto';
3036
3250
  /** JSONP */
3037
3251
  callback?: string;
3038
3252
  /** Selector specifying which fields to include in a partial response. */
@@ -3057,11 +3271,11 @@ declare namespace gapi.client {
3057
3271
  batchProcess(
3058
3272
  request: {
3059
3273
  /** V1 error format. */
3060
- '$.xgafv'?: string;
3274
+ '$.xgafv'?: '1' | '2';
3061
3275
  /** OAuth access token. */
3062
3276
  access_token?: string;
3063
3277
  /** Data format for response. */
3064
- alt?: string;
3278
+ alt?: 'json' | 'media' | 'proto';
3065
3279
  /** JSONP */
3066
3280
  callback?: string;
3067
3281
  /** Selector specifying which fields to include in a partial response. */
@@ -3086,11 +3300,11 @@ declare namespace gapi.client {
3086
3300
  /** Deletes the processor version, all artifacts under the processor version will be deleted. */
3087
3301
  delete(request?: {
3088
3302
  /** V1 error format. */
3089
- '$.xgafv'?: string;
3303
+ '$.xgafv'?: '1' | '2';
3090
3304
  /** OAuth access token. */
3091
3305
  access_token?: string;
3092
3306
  /** Data format for response. */
3093
- alt?: string;
3307
+ alt?: 'json' | 'media' | 'proto';
3094
3308
  /** JSONP */
3095
3309
  callback?: string;
3096
3310
  /** Selector specifying which fields to include in a partial response. */
@@ -3113,11 +3327,11 @@ declare namespace gapi.client {
3113
3327
  /** Deploys the processor version. */
3114
3328
  deploy(request: {
3115
3329
  /** V1 error format. */
3116
- '$.xgafv'?: string;
3330
+ '$.xgafv'?: '1' | '2';
3117
3331
  /** OAuth access token. */
3118
3332
  access_token?: string;
3119
3333
  /** Data format for response. */
3120
- alt?: string;
3334
+ alt?: 'json' | 'media' | 'proto';
3121
3335
  /** JSONP */
3122
3336
  callback?: string;
3123
3337
  /** Selector specifying which fields to include in a partial response. */
@@ -3142,11 +3356,11 @@ declare namespace gapi.client {
3142
3356
  deploy(
3143
3357
  request: {
3144
3358
  /** V1 error format. */
3145
- '$.xgafv'?: string;
3359
+ '$.xgafv'?: '1' | '2';
3146
3360
  /** OAuth access token. */
3147
3361
  access_token?: string;
3148
3362
  /** Data format for response. */
3149
- alt?: string;
3363
+ alt?: 'json' | 'media' | 'proto';
3150
3364
  /** JSONP */
3151
3365
  callback?: string;
3152
3366
  /** Selector specifying which fields to include in a partial response. */
@@ -3171,11 +3385,11 @@ declare namespace gapi.client {
3171
3385
  /** Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. */
3172
3386
  evaluateProcessorVersion(request: {
3173
3387
  /** V1 error format. */
3174
- '$.xgafv'?: string;
3388
+ '$.xgafv'?: '1' | '2';
3175
3389
  /** OAuth access token. */
3176
3390
  access_token?: string;
3177
3391
  /** Data format for response. */
3178
- alt?: string;
3392
+ alt?: 'json' | 'media' | 'proto';
3179
3393
  /** JSONP */
3180
3394
  callback?: string;
3181
3395
  /** Selector specifying which fields to include in a partial response. */
@@ -3200,11 +3414,11 @@ declare namespace gapi.client {
3200
3414
  evaluateProcessorVersion(
3201
3415
  request: {
3202
3416
  /** V1 error format. */
3203
- '$.xgafv'?: string;
3417
+ '$.xgafv'?: '1' | '2';
3204
3418
  /** OAuth access token. */
3205
3419
  access_token?: string;
3206
3420
  /** Data format for response. */
3207
- alt?: string;
3421
+ alt?: 'json' | 'media' | 'proto';
3208
3422
  /** JSONP */
3209
3423
  callback?: string;
3210
3424
  /** Selector specifying which fields to include in a partial response. */
@@ -3229,11 +3443,11 @@ declare namespace gapi.client {
3229
3443
  /** Gets a processor version detail. */
3230
3444
  get(request?: {
3231
3445
  /** V1 error format. */
3232
- '$.xgafv'?: string;
3446
+ '$.xgafv'?: '1' | '2';
3233
3447
  /** OAuth access token. */
3234
3448
  access_token?: string;
3235
3449
  /** Data format for response. */
3236
- alt?: string;
3450
+ alt?: 'json' | 'media' | 'proto';
3237
3451
  /** JSONP */
3238
3452
  callback?: string;
3239
3453
  /** Selector specifying which fields to include in a partial response. */
@@ -3256,11 +3470,11 @@ declare namespace gapi.client {
3256
3470
  /** Imports a processor version from source processor version. */
3257
3471
  importProcessorVersion(request: {
3258
3472
  /** V1 error format. */
3259
- '$.xgafv'?: string;
3473
+ '$.xgafv'?: '1' | '2';
3260
3474
  /** OAuth access token. */
3261
3475
  access_token?: string;
3262
3476
  /** Data format for response. */
3263
- alt?: string;
3477
+ alt?: 'json' | 'media' | 'proto';
3264
3478
  /** JSONP */
3265
3479
  callback?: string;
3266
3480
  /** Selector specifying which fields to include in a partial response. */
@@ -3285,11 +3499,11 @@ declare namespace gapi.client {
3285
3499
  importProcessorVersion(
3286
3500
  request: {
3287
3501
  /** V1 error format. */
3288
- '$.xgafv'?: string;
3502
+ '$.xgafv'?: '1' | '2';
3289
3503
  /** OAuth access token. */
3290
3504
  access_token?: string;
3291
3505
  /** Data format for response. */
3292
- alt?: string;
3506
+ alt?: 'json' | 'media' | 'proto';
3293
3507
  /** JSONP */
3294
3508
  callback?: string;
3295
3509
  /** Selector specifying which fields to include in a partial response. */
@@ -3314,11 +3528,11 @@ declare namespace gapi.client {
3314
3528
  /** Lists all versions of a processor. */
3315
3529
  list(request?: {
3316
3530
  /** V1 error format. */
3317
- '$.xgafv'?: string;
3531
+ '$.xgafv'?: '1' | '2';
3318
3532
  /** OAuth access token. */
3319
3533
  access_token?: string;
3320
3534
  /** Data format for response. */
3321
- alt?: string;
3535
+ alt?: 'json' | 'media' | 'proto';
3322
3536
  /** JSONP */
3323
3537
  callback?: string;
3324
3538
  /** Selector specifying which fields to include in a partial response. */
@@ -3345,11 +3559,11 @@ declare namespace gapi.client {
3345
3559
  /** Processes a single document. */
3346
3560
  process(request: {
3347
3561
  /** V1 error format. */
3348
- '$.xgafv'?: string;
3562
+ '$.xgafv'?: '1' | '2';
3349
3563
  /** OAuth access token. */
3350
3564
  access_token?: string;
3351
3565
  /** Data format for response. */
3352
- alt?: string;
3566
+ alt?: 'json' | 'media' | 'proto';
3353
3567
  /** JSONP */
3354
3568
  callback?: string;
3355
3569
  /** Selector specifying which fields to include in a partial response. */
@@ -3374,11 +3588,11 @@ declare namespace gapi.client {
3374
3588
  process(
3375
3589
  request: {
3376
3590
  /** V1 error format. */
3377
- '$.xgafv'?: string;
3591
+ '$.xgafv'?: '1' | '2';
3378
3592
  /** OAuth access token. */
3379
3593
  access_token?: string;
3380
3594
  /** Data format for response. */
3381
- alt?: string;
3595
+ alt?: 'json' | 'media' | 'proto';
3382
3596
  /** JSONP */
3383
3597
  callback?: string;
3384
3598
  /** Selector specifying which fields to include in a partial response. */
@@ -3403,11 +3617,11 @@ declare namespace gapi.client {
3403
3617
  /** Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata. */
3404
3618
  train(request: {
3405
3619
  /** V1 error format. */
3406
- '$.xgafv'?: string;
3620
+ '$.xgafv'?: '1' | '2';
3407
3621
  /** OAuth access token. */
3408
3622
  access_token?: string;
3409
3623
  /** Data format for response. */
3410
- alt?: string;
3624
+ alt?: 'json' | 'media' | 'proto';
3411
3625
  /** JSONP */
3412
3626
  callback?: string;
3413
3627
  /** Selector specifying which fields to include in a partial response. */
@@ -3432,11 +3646,11 @@ declare namespace gapi.client {
3432
3646
  train(
3433
3647
  request: {
3434
3648
  /** V1 error format. */
3435
- '$.xgafv'?: string;
3649
+ '$.xgafv'?: '1' | '2';
3436
3650
  /** OAuth access token. */
3437
3651
  access_token?: string;
3438
3652
  /** Data format for response. */
3439
- alt?: string;
3653
+ alt?: 'json' | 'media' | 'proto';
3440
3654
  /** JSONP */
3441
3655
  callback?: string;
3442
3656
  /** Selector specifying which fields to include in a partial response. */
@@ -3461,11 +3675,11 @@ declare namespace gapi.client {
3461
3675
  /** Undeploys the processor version. */
3462
3676
  undeploy(request: {
3463
3677
  /** V1 error format. */
3464
- '$.xgafv'?: string;
3678
+ '$.xgafv'?: '1' | '2';
3465
3679
  /** OAuth access token. */
3466
3680
  access_token?: string;
3467
3681
  /** Data format for response. */
3468
- alt?: string;
3682
+ alt?: 'json' | 'media' | 'proto';
3469
3683
  /** JSONP */
3470
3684
  callback?: string;
3471
3685
  /** Selector specifying which fields to include in a partial response. */
@@ -3490,11 +3704,11 @@ declare namespace gapi.client {
3490
3704
  undeploy(
3491
3705
  request: {
3492
3706
  /** V1 error format. */
3493
- '$.xgafv'?: string;
3707
+ '$.xgafv'?: '1' | '2';
3494
3708
  /** OAuth access token. */
3495
3709
  access_token?: string;
3496
3710
  /** Data format for response. */
3497
- alt?: string;
3711
+ alt?: 'json' | 'media' | 'proto';
3498
3712
  /** JSONP */
3499
3713
  callback?: string;
3500
3714
  /** Selector specifying which fields to include in a partial response. */
@@ -3522,11 +3736,11 @@ declare namespace gapi.client {
3522
3736
  /** LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. */
3523
3737
  batchProcess(request: {
3524
3738
  /** V1 error format. */
3525
- '$.xgafv'?: string;
3739
+ '$.xgafv'?: '1' | '2';
3526
3740
  /** OAuth access token. */
3527
3741
  access_token?: string;
3528
3742
  /** Data format for response. */
3529
- alt?: string;
3743
+ alt?: 'json' | 'media' | 'proto';
3530
3744
  /** JSONP */
3531
3745
  callback?: string;
3532
3746
  /** Selector specifying which fields to include in a partial response. */
@@ -3551,11 +3765,11 @@ declare namespace gapi.client {
3551
3765
  batchProcess(
3552
3766
  request: {
3553
3767
  /** V1 error format. */
3554
- '$.xgafv'?: string;
3768
+ '$.xgafv'?: '1' | '2';
3555
3769
  /** OAuth access token. */
3556
3770
  access_token?: string;
3557
3771
  /** Data format for response. */
3558
- alt?: string;
3772
+ alt?: 'json' | 'media' | 'proto';
3559
3773
  /** JSONP */
3560
3774
  callback?: string;
3561
3775
  /** Selector specifying which fields to include in a partial response. */
@@ -3580,11 +3794,11 @@ declare namespace gapi.client {
3580
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. */
3581
3795
  create(request: {
3582
3796
  /** V1 error format. */
3583
- '$.xgafv'?: string;
3797
+ '$.xgafv'?: '1' | '2';
3584
3798
  /** OAuth access token. */
3585
3799
  access_token?: string;
3586
3800
  /** Data format for response. */
3587
- alt?: string;
3801
+ alt?: 'json' | 'media' | 'proto';
3588
3802
  /** JSONP */
3589
3803
  callback?: string;
3590
3804
  /** Selector specifying which fields to include in a partial response. */
@@ -3609,11 +3823,11 @@ declare namespace gapi.client {
3609
3823
  create(
3610
3824
  request: {
3611
3825
  /** V1 error format. */
3612
- '$.xgafv'?: string;
3826
+ '$.xgafv'?: '1' | '2';
3613
3827
  /** OAuth access token. */
3614
3828
  access_token?: string;
3615
3829
  /** Data format for response. */
3616
- alt?: string;
3830
+ alt?: 'json' | 'media' | 'proto';
3617
3831
  /** JSONP */
3618
3832
  callback?: string;
3619
3833
  /** Selector specifying which fields to include in a partial response. */
@@ -3638,11 +3852,11 @@ declare namespace gapi.client {
3638
3852
  /** Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. */
3639
3853
  delete(request?: {
3640
3854
  /** V1 error format. */
3641
- '$.xgafv'?: string;
3855
+ '$.xgafv'?: '1' | '2';
3642
3856
  /** OAuth access token. */
3643
3857
  access_token?: string;
3644
3858
  /** Data format for response. */
3645
- alt?: string;
3859
+ alt?: 'json' | 'media' | 'proto';
3646
3860
  /** JSONP */
3647
3861
  callback?: string;
3648
3862
  /** Selector specifying which fields to include in a partial response. */
@@ -3665,11 +3879,11 @@ declare namespace gapi.client {
3665
3879
  /** Disables a processor */
3666
3880
  disable(request: {
3667
3881
  /** V1 error format. */
3668
- '$.xgafv'?: string;
3882
+ '$.xgafv'?: '1' | '2';
3669
3883
  /** OAuth access token. */
3670
3884
  access_token?: string;
3671
3885
  /** Data format for response. */
3672
- alt?: string;
3886
+ alt?: 'json' | 'media' | 'proto';
3673
3887
  /** JSONP */
3674
3888
  callback?: string;
3675
3889
  /** Selector specifying which fields to include in a partial response. */
@@ -3694,11 +3908,11 @@ declare namespace gapi.client {
3694
3908
  disable(
3695
3909
  request: {
3696
3910
  /** V1 error format. */
3697
- '$.xgafv'?: string;
3911
+ '$.xgafv'?: '1' | '2';
3698
3912
  /** OAuth access token. */
3699
3913
  access_token?: string;
3700
3914
  /** Data format for response. */
3701
- alt?: string;
3915
+ alt?: 'json' | 'media' | 'proto';
3702
3916
  /** JSONP */
3703
3917
  callback?: string;
3704
3918
  /** Selector specifying which fields to include in a partial response. */
@@ -3723,11 +3937,11 @@ declare namespace gapi.client {
3723
3937
  /** Enables a processor */
3724
3938
  enable(request: {
3725
3939
  /** V1 error format. */
3726
- '$.xgafv'?: string;
3940
+ '$.xgafv'?: '1' | '2';
3727
3941
  /** OAuth access token. */
3728
3942
  access_token?: string;
3729
3943
  /** Data format for response. */
3730
- alt?: string;
3944
+ alt?: 'json' | 'media' | 'proto';
3731
3945
  /** JSONP */
3732
3946
  callback?: string;
3733
3947
  /** Selector specifying which fields to include in a partial response. */
@@ -3752,11 +3966,11 @@ declare namespace gapi.client {
3752
3966
  enable(
3753
3967
  request: {
3754
3968
  /** V1 error format. */
3755
- '$.xgafv'?: string;
3969
+ '$.xgafv'?: '1' | '2';
3756
3970
  /** OAuth access token. */
3757
3971
  access_token?: string;
3758
3972
  /** Data format for response. */
3759
- alt?: string;
3973
+ alt?: 'json' | 'media' | 'proto';
3760
3974
  /** JSONP */
3761
3975
  callback?: string;
3762
3976
  /** Selector specifying which fields to include in a partial response. */
@@ -3781,11 +3995,11 @@ declare namespace gapi.client {
3781
3995
  /** Gets a processor detail. */
3782
3996
  get(request?: {
3783
3997
  /** V1 error format. */
3784
- '$.xgafv'?: string;
3998
+ '$.xgafv'?: '1' | '2';
3785
3999
  /** OAuth access token. */
3786
4000
  access_token?: string;
3787
4001
  /** Data format for response. */
3788
- alt?: string;
4002
+ alt?: 'json' | 'media' | 'proto';
3789
4003
  /** JSONP */
3790
4004
  callback?: string;
3791
4005
  /** Selector specifying which fields to include in a partial response. */
@@ -3808,11 +4022,11 @@ declare namespace gapi.client {
3808
4022
  /** Lists all processors which belong to this project. */
3809
4023
  list(request?: {
3810
4024
  /** V1 error format. */
3811
- '$.xgafv'?: string;
4025
+ '$.xgafv'?: '1' | '2';
3812
4026
  /** OAuth access token. */
3813
4027
  access_token?: string;
3814
4028
  /** Data format for response. */
3815
- alt?: string;
4029
+ alt?: 'json' | 'media' | 'proto';
3816
4030
  /** JSONP */
3817
4031
  callback?: string;
3818
4032
  /** Selector specifying which fields to include in a partial response. */
@@ -3839,11 +4053,11 @@ declare namespace gapi.client {
3839
4053
  /** Processes a single document. */
3840
4054
  process(request: {
3841
4055
  /** V1 error format. */
3842
- '$.xgafv'?: string;
4056
+ '$.xgafv'?: '1' | '2';
3843
4057
  /** OAuth access token. */
3844
4058
  access_token?: string;
3845
4059
  /** Data format for response. */
3846
- alt?: string;
4060
+ alt?: 'json' | 'media' | 'proto';
3847
4061
  /** JSONP */
3848
4062
  callback?: string;
3849
4063
  /** Selector specifying which fields to include in a partial response. */
@@ -3868,11 +4082,11 @@ declare namespace gapi.client {
3868
4082
  process(
3869
4083
  request: {
3870
4084
  /** V1 error format. */
3871
- '$.xgafv'?: string;
4085
+ '$.xgafv'?: '1' | '2';
3872
4086
  /** OAuth access token. */
3873
4087
  access_token?: string;
3874
4088
  /** Data format for response. */
3875
- alt?: string;
4089
+ alt?: 'json' | 'media' | 'proto';
3876
4090
  /** JSONP */
3877
4091
  callback?: string;
3878
4092
  /** Selector specifying which fields to include in a partial response. */
@@ -3897,11 +4111,11 @@ declare namespace gapi.client {
3897
4111
  /** Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments. */
3898
4112
  setDefaultProcessorVersion(request: {
3899
4113
  /** V1 error format. */
3900
- '$.xgafv'?: string;
4114
+ '$.xgafv'?: '1' | '2';
3901
4115
  /** OAuth access token. */
3902
4116
  access_token?: string;
3903
4117
  /** Data format for response. */
3904
- alt?: string;
4118
+ alt?: 'json' | 'media' | 'proto';
3905
4119
  /** JSONP */
3906
4120
  callback?: string;
3907
4121
  /** Selector specifying which fields to include in a partial response. */
@@ -3926,11 +4140,11 @@ declare namespace gapi.client {
3926
4140
  setDefaultProcessorVersion(
3927
4141
  request: {
3928
4142
  /** V1 error format. */
3929
- '$.xgafv'?: string;
4143
+ '$.xgafv'?: '1' | '2';
3930
4144
  /** OAuth access token. */
3931
4145
  access_token?: string;
3932
4146
  /** Data format for response. */
3933
- alt?: string;
4147
+ alt?: 'json' | 'media' | 'proto';
3934
4148
  /** JSONP */
3935
4149
  callback?: string;
3936
4150
  /** Selector specifying which fields to include in a partial response. */
@@ -3955,11 +4169,11 @@ declare namespace gapi.client {
3955
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. */
3956
4170
  updateDataset(request: {
3957
4171
  /** V1 error format. */
3958
- '$.xgafv'?: string;
4172
+ '$.xgafv'?: '1' | '2';
3959
4173
  /** OAuth access token. */
3960
4174
  access_token?: string;
3961
4175
  /** Data format for response. */
3962
- alt?: string;
4176
+ alt?: 'json' | 'media' | 'proto';
3963
4177
  /** JSONP */
3964
4178
  callback?: string;
3965
4179
  /** Selector specifying which fields to include in a partial response. */
@@ -3986,11 +4200,11 @@ declare namespace gapi.client {
3986
4200
  updateDataset(
3987
4201
  request: {
3988
4202
  /** V1 error format. */
3989
- '$.xgafv'?: string;
4203
+ '$.xgafv'?: '1' | '2';
3990
4204
  /** OAuth access token. */
3991
4205
  access_token?: string;
3992
4206
  /** Data format for response. */
3993
- alt?: string;
4207
+ alt?: 'json' | 'media' | 'proto';
3994
4208
  /** JSONP */
3995
4209
  callback?: string;
3996
4210
  /** Selector specifying which fields to include in a partial response. */
@@ -4022,11 +4236,11 @@ declare namespace gapi.client {
4022
4236
  /** Gets a processor type detail. */
4023
4237
  get(request?: {
4024
4238
  /** V1 error format. */
4025
- '$.xgafv'?: string;
4239
+ '$.xgafv'?: '1' | '2';
4026
4240
  /** OAuth access token. */
4027
4241
  access_token?: string;
4028
4242
  /** Data format for response. */
4029
- alt?: string;
4243
+ alt?: 'json' | 'media' | 'proto';
4030
4244
  /** JSONP */
4031
4245
  callback?: string;
4032
4246
  /** Selector specifying which fields to include in a partial response. */
@@ -4049,11 +4263,11 @@ declare namespace gapi.client {
4049
4263
  /** Lists the processor types that exist. */
4050
4264
  list(request?: {
4051
4265
  /** V1 error format. */
4052
- '$.xgafv'?: string;
4266
+ '$.xgafv'?: '1' | '2';
4053
4267
  /** OAuth access token. */
4054
4268
  access_token?: string;
4055
4269
  /** Data format for response. */
4056
- alt?: string;
4270
+ alt?: 'json' | 'media' | 'proto';
4057
4271
  /** JSONP */
4058
4272
  callback?: string;
4059
4273
  /** Selector specifying which fields to include in a partial response. */
@@ -4082,11 +4296,11 @@ declare namespace gapi.client {
4082
4296
  /** Creates a schema version. */
4083
4297
  create(request: {
4084
4298
  /** V1 error format. */
4085
- '$.xgafv'?: string;
4299
+ '$.xgafv'?: '1' | '2';
4086
4300
  /** OAuth access token. */
4087
4301
  access_token?: string;
4088
4302
  /** Data format for response. */
4089
- alt?: string;
4303
+ alt?: 'json' | 'media' | 'proto';
4090
4304
  /** JSONP */
4091
4305
  callback?: string;
4092
4306
  /** Selector specifying which fields to include in a partial response. */
@@ -4111,11 +4325,11 @@ declare namespace gapi.client {
4111
4325
  create(
4112
4326
  request: {
4113
4327
  /** V1 error format. */
4114
- '$.xgafv'?: string;
4328
+ '$.xgafv'?: '1' | '2';
4115
4329
  /** OAuth access token. */
4116
4330
  access_token?: string;
4117
4331
  /** Data format for response. */
4118
- alt?: string;
4332
+ alt?: 'json' | 'media' | 'proto';
4119
4333
  /** JSONP */
4120
4334
  callback?: string;
4121
4335
  /** Selector specifying which fields to include in a partial response. */
@@ -4140,11 +4354,11 @@ declare namespace gapi.client {
4140
4354
  /** Deletes a schema version. */
4141
4355
  delete(request?: {
4142
4356
  /** V1 error format. */
4143
- '$.xgafv'?: string;
4357
+ '$.xgafv'?: '1' | '2';
4144
4358
  /** OAuth access token. */
4145
4359
  access_token?: string;
4146
4360
  /** Data format for response. */
4147
- alt?: string;
4361
+ alt?: 'json' | 'media' | 'proto';
4148
4362
  /** JSONP */
4149
4363
  callback?: string;
4150
4364
  /** Selector specifying which fields to include in a partial response. */
@@ -4167,11 +4381,11 @@ declare namespace gapi.client {
4167
4381
  /** Generates a schema version. */
4168
4382
  generate(request: {
4169
4383
  /** V1 error format. */
4170
- '$.xgafv'?: string;
4384
+ '$.xgafv'?: '1' | '2';
4171
4385
  /** OAuth access token. */
4172
4386
  access_token?: string;
4173
4387
  /** Data format for response. */
4174
- alt?: string;
4388
+ alt?: 'json' | 'media' | 'proto';
4175
4389
  /** JSONP */
4176
4390
  callback?: string;
4177
4391
  /** Selector specifying which fields to include in a partial response. */
@@ -4196,11 +4410,11 @@ declare namespace gapi.client {
4196
4410
  generate(
4197
4411
  request: {
4198
4412
  /** V1 error format. */
4199
- '$.xgafv'?: string;
4413
+ '$.xgafv'?: '1' | '2';
4200
4414
  /** OAuth access token. */
4201
4415
  access_token?: string;
4202
4416
  /** Data format for response. */
4203
- alt?: string;
4417
+ alt?: 'json' | 'media' | 'proto';
4204
4418
  /** JSONP */
4205
4419
  callback?: string;
4206
4420
  /** Selector specifying which fields to include in a partial response. */
@@ -4225,11 +4439,11 @@ declare namespace gapi.client {
4225
4439
  /** Gets a schema version. */
4226
4440
  get(request?: {
4227
4441
  /** V1 error format. */
4228
- '$.xgafv'?: string;
4442
+ '$.xgafv'?: '1' | '2';
4229
4443
  /** OAuth access token. */
4230
4444
  access_token?: string;
4231
4445
  /** Data format for response. */
4232
- alt?: string;
4446
+ alt?: 'json' | 'media' | 'proto';
4233
4447
  /** JSONP */
4234
4448
  callback?: string;
4235
4449
  /** Selector specifying which fields to include in a partial response. */
@@ -4252,11 +4466,11 @@ declare namespace gapi.client {
4252
4466
  /** Lists SchemaVersions. */
4253
4467
  list(request?: {
4254
4468
  /** V1 error format. */
4255
- '$.xgafv'?: string;
4469
+ '$.xgafv'?: '1' | '2';
4256
4470
  /** OAuth access token. */
4257
4471
  access_token?: string;
4258
4472
  /** Data format for response. */
4259
- alt?: string;
4473
+ alt?: 'json' | 'media' | 'proto';
4260
4474
  /** JSONP */
4261
4475
  callback?: string;
4262
4476
  /** Selector specifying which fields to include in a partial response. */
@@ -4283,11 +4497,11 @@ declare namespace gapi.client {
4283
4497
  /** Updates a schema version. Editable fields are: - `display_name` - `labels` */
4284
4498
  patch(request: {
4285
4499
  /** V1 error format. */
4286
- '$.xgafv'?: string;
4500
+ '$.xgafv'?: '1' | '2';
4287
4501
  /** OAuth access token. */
4288
4502
  access_token?: string;
4289
4503
  /** Data format for response. */
4290
- alt?: string;
4504
+ alt?: 'json' | 'media' | 'proto';
4291
4505
  /** JSONP */
4292
4506
  callback?: string;
4293
4507
  /** Selector specifying which fields to include in a partial response. */
@@ -4314,11 +4528,11 @@ declare namespace gapi.client {
4314
4528
  patch(
4315
4529
  request: {
4316
4530
  /** V1 error format. */
4317
- '$.xgafv'?: string;
4531
+ '$.xgafv'?: '1' | '2';
4318
4532
  /** OAuth access token. */
4319
4533
  access_token?: string;
4320
4534
  /** Data format for response. */
4321
- alt?: string;
4535
+ alt?: 'json' | 'media' | 'proto';
4322
4536
  /** JSONP */
4323
4537
  callback?: string;
4324
4538
  /** Selector specifying which fields to include in a partial response. */
@@ -4347,11 +4561,11 @@ declare namespace gapi.client {
4347
4561
  /** Creates a schema. */
4348
4562
  create(request: {
4349
4563
  /** V1 error format. */
4350
- '$.xgafv'?: string;
4564
+ '$.xgafv'?: '1' | '2';
4351
4565
  /** OAuth access token. */
4352
4566
  access_token?: string;
4353
4567
  /** Data format for response. */
4354
- alt?: string;
4568
+ alt?: 'json' | 'media' | 'proto';
4355
4569
  /** JSONP */
4356
4570
  callback?: string;
4357
4571
  /** Selector specifying which fields to include in a partial response. */
@@ -4376,11 +4590,11 @@ declare namespace gapi.client {
4376
4590
  create(
4377
4591
  request: {
4378
4592
  /** V1 error format. */
4379
- '$.xgafv'?: string;
4593
+ '$.xgafv'?: '1' | '2';
4380
4594
  /** OAuth access token. */
4381
4595
  access_token?: string;
4382
4596
  /** Data format for response. */
4383
- alt?: string;
4597
+ alt?: 'json' | 'media' | 'proto';
4384
4598
  /** JSONP */
4385
4599
  callback?: string;
4386
4600
  /** Selector specifying which fields to include in a partial response. */
@@ -4405,11 +4619,11 @@ declare namespace gapi.client {
4405
4619
  /** Deletes a schema. */
4406
4620
  delete(request?: {
4407
4621
  /** V1 error format. */
4408
- '$.xgafv'?: string;
4622
+ '$.xgafv'?: '1' | '2';
4409
4623
  /** OAuth access token. */
4410
4624
  access_token?: string;
4411
4625
  /** Data format for response. */
4412
- alt?: string;
4626
+ alt?: 'json' | 'media' | 'proto';
4413
4627
  /** JSONP */
4414
4628
  callback?: string;
4415
4629
  /** Selector specifying which fields to include in a partial response. */
@@ -4434,11 +4648,11 @@ declare namespace gapi.client {
4434
4648
  /** Gets a schema. */
4435
4649
  get(request?: {
4436
4650
  /** V1 error format. */
4437
- '$.xgafv'?: string;
4651
+ '$.xgafv'?: '1' | '2';
4438
4652
  /** OAuth access token. */
4439
4653
  access_token?: string;
4440
4654
  /** Data format for response. */
4441
- alt?: string;
4655
+ alt?: 'json' | 'media' | 'proto';
4442
4656
  /** JSONP */
4443
4657
  callback?: string;
4444
4658
  /** Selector specifying which fields to include in a partial response. */
@@ -4461,11 +4675,11 @@ declare namespace gapi.client {
4461
4675
  /** Lists Schemas. */
4462
4676
  list(request?: {
4463
4677
  /** V1 error format. */
4464
- '$.xgafv'?: string;
4678
+ '$.xgafv'?: '1' | '2';
4465
4679
  /** OAuth access token. */
4466
4680
  access_token?: string;
4467
4681
  /** Data format for response. */
4468
- alt?: string;
4682
+ alt?: 'json' | 'media' | 'proto';
4469
4683
  /** JSONP */
4470
4684
  callback?: string;
4471
4685
  /** Selector specifying which fields to include in a partial response. */
@@ -4492,11 +4706,11 @@ declare namespace gapi.client {
4492
4706
  /** Updates a schema. Editable fields are: - `display_name` - `labels` */
4493
4707
  patch(request: {
4494
4708
  /** V1 error format. */
4495
- '$.xgafv'?: string;
4709
+ '$.xgafv'?: '1' | '2';
4496
4710
  /** OAuth access token. */
4497
4711
  access_token?: string;
4498
4712
  /** Data format for response. */
4499
- alt?: string;
4713
+ alt?: 'json' | 'media' | 'proto';
4500
4714
  /** JSONP */
4501
4715
  callback?: string;
4502
4716
  /** Selector specifying which fields to include in a partial response. */
@@ -4523,11 +4737,11 @@ declare namespace gapi.client {
4523
4737
  patch(
4524
4738
  request: {
4525
4739
  /** V1 error format. */
4526
- '$.xgafv'?: string;
4740
+ '$.xgafv'?: '1' | '2';
4527
4741
  /** OAuth access token. */
4528
4742
  access_token?: string;
4529
4743
  /** Data format for response. */
4530
- alt?: string;
4744
+ alt?: 'json' | 'media' | 'proto';
4531
4745
  /** JSONP */
4532
4746
  callback?: string;
4533
4747
  /** Selector specifying which fields to include in a partial response. */
@@ -4557,11 +4771,11 @@ declare namespace gapi.client {
4557
4771
  /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
4558
4772
  fetchProcessorTypes(request?: {
4559
4773
  /** V1 error format. */
4560
- '$.xgafv'?: string;
4774
+ '$.xgafv'?: '1' | '2';
4561
4775
  /** OAuth access token. */
4562
4776
  access_token?: string;
4563
4777
  /** Data format for response. */
4564
- alt?: string;
4778
+ alt?: 'json' | 'media' | 'proto';
4565
4779
  /** JSONP */
4566
4780
  callback?: string;
4567
4781
  /** Selector specifying which fields to include in a partial response. */
@@ -4584,11 +4798,11 @@ declare namespace gapi.client {
4584
4798
  /** Gets information about a location. */
4585
4799
  get(request?: {
4586
4800
  /** V1 error format. */
4587
- '$.xgafv'?: string;
4801
+ '$.xgafv'?: '1' | '2';
4588
4802
  /** OAuth access token. */
4589
4803
  access_token?: string;
4590
4804
  /** Data format for response. */
4591
- alt?: string;
4805
+ alt?: 'json' | 'media' | 'proto';
4592
4806
  /** JSONP */
4593
4807
  callback?: string;
4594
4808
  /** Selector specifying which fields to include in a partial response. */
@@ -4608,17 +4822,17 @@ declare namespace gapi.client {
4608
4822
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4609
4823
  uploadType?: string;
4610
4824
  }): Request<GoogleCloudLocationLocation>;
4611
- /** 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. */
4612
4826
  list(request?: {
4613
4827
  /** V1 error format. */
4614
- '$.xgafv'?: string;
4828
+ '$.xgafv'?: '1' | '2';
4615
4829
  /** OAuth access token. */
4616
4830
  access_token?: string;
4617
4831
  /** Data format for response. */
4618
- alt?: string;
4832
+ alt?: 'json' | 'media' | 'proto';
4619
4833
  /** JSONP */
4620
4834
  callback?: string;
4621
- /** 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. */
4622
4836
  extraLocationTypes?: string | string[];
4623
4837
  /** Selector specifying which fields to include in a partial response. */
4624
4838
  fields?: string;