## Index

- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService` (interface)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaService` (interface)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Barcode` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchDocumentsInputConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessMetadata.State` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BoundingPoly` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata.State` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CreateProcessorRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CreateSchemaRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CreateSchemaVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteProcessorMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteProcessorRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteProcessorVersionMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteSchemaRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteSchemaVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeployProcessorVersionMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeployProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeployProcessorVersionResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DisableProcessorMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DisableProcessorRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DisableProcessorResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Annotations` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.BlobAsset` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkField` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntitiesRevision` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity.Method` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity.NormalizedValue` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityRelation` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Block` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedBarcode` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Dimension` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FormField` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Image` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.ImageQualityScores` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout.Orientation` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Line` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Matrix` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Paragraph` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Symbol` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table.TableCell` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table.TableRow` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.DetectedBreak` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.StyleInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.VisualElement` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor.PageRef` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance.OperationType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance.Parent` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Revision` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Revision.HumanReview` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ShardInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Style` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Style.FontSize` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor.TextSegment` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextChange` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.Property` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.Metadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Documents` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EnableProcessorMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EnableProcessorRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EnableProcessorResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EvaluateProcessorVersionMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EvaluateProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EvaluateProcessorVersionResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Counters` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.EvaluationRevision` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Metrics` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EvaluationReference` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.FetchProcessorTypesRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.FetchProcessorTypesResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsDocument` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsDocuments` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsPrefix` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GenerateSchemaVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GenerateSchemaVersionRequest.GenerateSchemaVersionParams` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GenerateSchemaVersionResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetEvaluationRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetProcessorRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetProcessorTypeRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetSchemaRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetSchemaVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus.State` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListEvaluationsRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListEvaluationsResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorTypesRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorTypesResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorVersionsRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorVersionsResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorsRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorsResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemaVersionsRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemaVersionsResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemasRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemasResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NormalizedVertex` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig.Hints` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig.PremiumFeatures` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions.LayoutConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor.State` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType.LocationInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfo` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.ModelType` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.State` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersionAlias` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.RawDocument` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.RawDocuments` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentOperationMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentRequest.Priority` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentResponse.State` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaGenerationHistory` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaGenerationIteration` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SetDefaultProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SetDefaultProcessorVersionResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod` (enum)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UndeployProcessorVersionMetadata` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UndeployProcessorVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UndeployProcessorVersionResponse` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UpdateSchemaRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UpdateSchemaVersionRequest` (message)
- `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Vertex` (message)

## DocumentProcessorService

Service to call Document AI to process documents according to the processor's definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

| BatchProcessDocuments |
|---|
| `` rpc BatchProcessDocuments(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the \[Document\] format. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `name` resource, depending on the resource type: - `documentai.processors.processBatch` - `documentai.processorVersions.processBatch` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| CreateProcessor |
|---|
| `` rpc CreateProcessor(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CreateProcessorRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor`) `` Creates a processor from the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.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. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.processors.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| DeleteProcessor |
|---|
| `` rpc DeleteProcessor(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteProcessorRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processors.delete` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| DeleteProcessorVersion |
|---|
| `` rpc DeleteProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes the processor version, all artifacts under the processor version will be deleted. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processorVersions.delete` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| DeployProcessorVersion |
|---|
| `` rpc DeployProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeployProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deploys the processor version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processorVersions.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| DisableProcessor |
|---|
| `` rpc DisableProcessor(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DisableProcessorRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Disables a processor Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processors.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| EnableProcessor |
|---|
| `` rpc EnableProcessor(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EnableProcessorRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Enables a processor Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processors.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| EvaluateProcessorVersion |
|---|
| `` rpc EvaluateProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EvaluateProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `processorVersion` resource: - `documentai.evaluations.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| FetchProcessorTypes |
|---|
| `` rpc FetchProcessorTypes(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.FetchProcessorTypesRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.FetchProcessorTypesResponse`) `` Fetches processor types. Note that we don't use `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes` here, because it isn't paginated. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.processorTypes.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GetEvaluation |
|---|
| `` rpc GetEvaluation(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetEvaluationRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation`) `` Retrieves a specific evaluation. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.evaluations.get` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GetProcessor |
|---|
| `` rpc GetProcessor(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetProcessorRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor`) `` Gets a processor detail. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processors.get` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GetProcessorType |
|---|
| `` rpc GetProcessorType(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetProcessorTypeRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType`) `` Gets a processor type detail. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processorTypes.get` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GetProcessorVersion |
|---|
| `` rpc GetProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion`) `` Gets a processor version detail. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processorVersions.get` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ListEvaluations |
|---|
| `` rpc ListEvaluations(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListEvaluationsRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListEvaluationsResponse`) `` Retrieves a set of evaluations for a given processor version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.evaluations.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ListProcessorTypes |
|---|
| `` rpc ListProcessorTypes(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorTypesRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorTypesResponse`) `` Lists the processor types that exist. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.processorTypes.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ListProcessorVersions |
|---|
| `` rpc ListProcessorVersions(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorVersionsRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorVersionsResponse`) `` Lists all versions of a processor. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.processorVersions.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ListProcessors |
|---|
| `` rpc ListProcessors(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorsRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListProcessorsResponse`) `` Lists all processors which belong to this project. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.processors.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ProcessDocument |
|---|
| `` rpc ProcessDocument(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessResponse`) `` Processes a single document. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `name` resource, depending on the resource type: - `documentai.processors.processOnline` - `documentai.processorVersions.processOnline` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ReviewDocument |
|---|
| > [!WARNING] > This item is deprecated! `` rpc ReviewDocument(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Send a document for Human Review. The input document should be processed by the specified processor. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `humanReviewConfig` resource: - `documentai.humanReviewConfigs.review` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| SetDefaultProcessorVersion |
|---|
| `` rpc SetDefaultProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SetDefaultProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Set the default (active) version of a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` that will be used in `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument` and `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments`. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `processor` resource: - `documentai.processors.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| TrainProcessorVersion |
|---|
| `` rpc TrainProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Trains a new processor version. Operation metadata is returned as `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionMetadata`. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.processorVersions.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| UndeployProcessorVersion |
|---|
| `` rpc UndeployProcessorVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UndeployProcessorVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Undeploys the processor version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.processorVersions.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

## SchemaService

Service for managing schemas as standalone Google Cloud resources, independent of processors. This allows for unrestricted adding, removing, and editing of schema fields. A single schema resource can be used by multiple processors.

| CreateSchema |
|---|
| `` rpc CreateSchema(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CreateSchemaRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema`) `` Creates a schema. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.schemas.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| CreateSchemaVersion |
|---|
| `` rpc CreateSchemaVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CreateSchemaVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion`) `` Creates a schema version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.schemaVersions.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| DeleteSchema |
|---|
| `` rpc DeleteSchema(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteSchemaRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes a schema. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.schemas.delete` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| DeleteSchemaVersion |
|---|
| `` rpc DeleteSchemaVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DeleteSchemaVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes a schema version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.schemaVersions.delete` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GenerateSchemaVersion |
|---|
| `` rpc GenerateSchemaVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GenerateSchemaVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GenerateSchemaVersionResponse`) `` Generates a schema version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.schemaVersions.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GetSchema |
|---|
| `` rpc GetSchema(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetSchemaRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema`) `` Gets a schema. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.schemas.get` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| GetSchemaVersion |
|---|
| `` rpc GetSchemaVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GetSchemaVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion`) `` Gets a schema version. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.schemaVersions.get` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ListSchemaVersions |
|---|
| `` rpc ListSchemaVersions(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemaVersionsRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemaVersionsResponse`) `` Lists SchemaVersions. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.schemaVersions.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| ListSchemas |
|---|
| `` rpc ListSchemas(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemasRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ListSchemasResponse`) `` Lists Schemas. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `documentai.schemas.list` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| UpdateSchema |
|---|
| `` rpc UpdateSchema(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UpdateSchemaRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema`) `` Updates a schema. Editable fields are: - `display_name` - `labels` Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.schemas.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

| UpdateSchemaVersion |
|---|
| `` rpc UpdateSchemaVersion(`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.UpdateSchemaVersionRequest`) returns (`https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion`) `` Updates a schema version. Editable fields are: - `display_name` - `labels` Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource: - `documentai.schemaVersions.update` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

## Barcode

Encodes the detailed information of a barcode.

| Fields ||
|---|---|
| `format` | `string` Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type. |
| `value_format` | `string` Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license. |
| `raw_value` | `string` Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. |

## BatchDocumentsInputConfig

The common config to specify a set of documents used as input.

| Fields ||
|---|---|
| Union field `source`. The source. Make sure that the caller of the API has storage.objects.get access to the buckets. `source` can be only one of the following: ||
| `gcs_prefix` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsPrefix` The set of documents that match the specified Cloud Storage `gcs_prefix`. |
| `gcs_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsDocuments` The set of documents individually specified on Cloud Storage. |

## BatchProcessMetadata

The long-running operation metadata for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments`.

| Fields ||
|---|---|
| `state` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessMetadata.State` The state of the current batch processing. |
| `state_message` | `string` A message providing more details about the current state of processing. For example, the error message if the operation is failed. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The creation time of the operation. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The last update time of the operation. |
| `individual_process_statuses[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus` The list of response details of each document. |

## IndividualProcessStatus

The status of a each individual document in the batch process.

| Fields ||
|---|---|
| `input_gcs_source` | `string` The source of the document, same as the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.FIELDS.string.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source` field in the request when the batch process started. |
| `status` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.rpc#google.rpc.Status` The status processing the document. |
| `output_gcs_destination` | `string` The Cloud Storage output destination (in the request as `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.FIELDS.string.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri`) of the processed document if it was successful, otherwise empty. |
| `human_review_status` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus` The status of human review on the processed document. |

## State

Possible states of the batch processing operation.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The default value. This value is used if the state is omitted. |
| `WAITING` | Request operation is waiting for scheduling. |
| `RUNNING` | Request is being processed. |
| `SUCCEEDED` | The batch processing completed successfully. |
| `CANCELLING` | The batch processing was being cancelled. |
| `CANCELLED` | The batch processing was cancelled. |
| `FAILED` | The batch processing has failed. |

## BatchProcessRequest

Request message for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` or `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion`. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` Authorization requires one or more of the following [IAM](https://cloud.google.com/iam/docs/) permissions on the specified resource `name`: - `documentai.processors.processBatch` - `documentai.processorVersions.processBatch` |
| `input_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchDocumentsInputConfig` The input documents for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments` method. |
| `document_output_config` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig` The output configuration for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments` method. |
| `skip_human_review (deprecated)` | `bool` > [!WARNING] > This item is deprecated! Whether human review should be skipped for this request. Default to `false`. |
| `process_options` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions` Inference-time options for the process API |
| `labels` | `map<string, string>` Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. |

## BatchProcessResponse

This type has no fields.
Response message for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments`.

## BoundingPoly

A bounding polygon for the detected image annotation.

| Fields ||
|---|---|
| `vertices[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Vertex` The bounding polygon vertices. |
| `normalized_vertices[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NormalizedVertex` The bounding polygon normalized vertices. |

## CommonOperationMetadata

The common metadata for long running operations.

| Fields ||
|---|---|
| `state` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata.State` The state of the operation. |
| `state_message` | `string` A message providing more details about the current state of processing. |
| `resource` | `string` A related resource to this operation. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The creation time of the operation. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The last update time of the operation. |

## State

State of the longrunning operation.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Unspecified state. |
| `RUNNING` | Operation is still running. |
| `CANCELLING` | Operation is being cancelled. |
| `SUCCEEDED` | Operation succeeded. |
| `FAILED` | Operation failed. |
| `CANCELLED` | Operation is cancelled. |

## CreateProcessorRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor` method. Notice this request is sent to a regionalized backend service. If the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType` isn't available in that region, the creation fails.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}` |
| `processor` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` Required. The processor to be created, requires `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor.FIELDS.string.google.cloud.documentai.v1.Processor.type` and `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor.FIELDS.string.google.cloud.documentai.v1.Processor.display_name` to be set. Also, the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor.FIELDS.string.google.cloud.documentai.v1.Processor.kms_key_name` field must be set if the processor is under CMEK. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `processor`: - `documentai.processors.create` |

## CreateSchemaRequest

Request message for CreateSchema.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}` |
| `schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema` Required. The Schema to be created. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `schema`: - `documentai.schemas.create` |

## CreateSchemaVersionRequest

Request message for CreateSchemaVersion.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` |
| `schema_version` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` Required. The SchemaVersion to be created. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `schemaVersion`: - `documentai.schemaversions.create` |

## DeleteProcessorMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## DeleteProcessorRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor resource name to be deleted. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processors.delete` |

## DeleteProcessorVersionMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## DeleteProcessorVersionRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor version resource name to be deleted. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processorVersions.delete` |

## DeleteSchemaRequest

Request message for DeleteSchema.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Schema to be deleted. Format: `projects/{project}/locations/{location}/schemas/{schema}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.schemas.delete` |
| `force` | `bool` Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, the request will only work if the Schema has no child resources.) |

## DeleteSchemaVersionRequest

Request message for DeleteSchemaVersion.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the SchemaVersion to delete. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.schemaversions.delete` |

## DeployProcessorVersionMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## DeployProcessorVersionRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor version resource name to be deployed. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processorVersions.update` |

## DeployProcessorVersionResponse

This type has no fields.
Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion` method.

## DisableProcessorMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## DisableProcessorRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor resource name to be disabled. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processors.update` |

## DisableProcessorResponse

This type has no fields.
Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor` method. Intentionally empty proto for adding fields in future.

## Document

Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.

| Fields ||
|---|---|
| `docid` | `string` Optional. An internal identifier for document. Should be loggable (no PII). |
| `mime_type` | `string` An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). |
| `text` | `string` Optional. UTF-8 encoded text in reading order from the document. |
| `text_styles[] (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Style` > [!WARNING] > This item is deprecated! Styles for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |
| `pages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page` Visual page layout for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document`. |
| `entities[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity` A list of entities detected on `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. For document shards, entities in this list may cross shard boundaries. |
| `entity_relations[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityRelation` Placeholder. Relationship among `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.repeated.google.cloud.documentai.v1.Document.Entity.google.cloud.documentai.v1.Document.entities`. |
| `text_changes[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextChange` Placeholder. A list of text corrections made to `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other. |
| `shard_info` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ShardInfo` Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified. |
| `error` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.rpc#google.rpc.Status` Any error that occurred while processing this document. |
| `revisions[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Revision` Placeholder. Revision history of this document. |
| `document_layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout` Parsed layout of the document. |
| `chunked_document` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument` Document chunked based on chunking config. |
| `blob_assets[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.BlobAsset` Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset ID. |
| `entity_validation_output` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput` The entity validation output for the document. This is the validation output for `document.entities` field. |
| `entities_revisions[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntitiesRevision` A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing. |
| `entities_revision_id` | `string` The entity revision ID that `document.entities` field is based on. If this field and `entities_revisions` are set, the entities in `document.entities` are the entities in the entity revision with this ID. The `document.entity_validation_output` field is the `entity_validation_output` field in this entity revision. |
| Union field `source`. Original source document from the user. `source` can be only one of the following: ||
| `uri` | `string` Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris). |
| `content` | `bytes` Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64. |

## Annotations

Represents the annotation of a block or a chunk.

| Fields ||
|---|---|
| `description` | `string` The description of the content with this annotation. |

## BlobAsset

Represents a blob asset. It's used to store the content of the inline blob in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset ID.

| Fields ||
|---|---|
| `asset_id` | `string` Optional. The ID of the blob asset. |
| `content` | `bytes` Optional. The content of the blob asset, for example, image bytes. |
| `mime_type` | `string` The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). |

## ChunkedDocument

Represents the chunks that the document is divided into.

| Fields ||
|---|---|
| `chunks[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk` List of chunks. |

## Chunk

Represents a chunk.

| Fields ||
|---|---|
| `chunk_id` | `string` ID of the chunk. |
| `source_block_ids[]` | `string` Unused. |
| `content` | `string` Text content of the chunk. |
| `page_span` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan` Page span of the chunk. |
| `page_headers[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader` Page headers associated with the chunk. |
| `page_footers[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter` Page footers associated with the chunk. |
| `chunk_fields[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField` Chunk fields inside this chunk. |

## ChunkField

The chunk field in the chunk. A chunk field could be one of the various types (for example, image, table) supported.

| Fields ||
|---|---|
| Union field `field_type`. The type of the chunk field. `field_type` can be only one of the following: ||
| `image_chunk_field` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField` The image chunk field in the chunk. |
| `table_chunk_field` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkField` The table chunk field in the chunk. |

## ChunkPageFooter

Represents the page footer associated with the chunk.

| Fields ||
|---|---|
| `text` | `string` Footer in text format. |
| `page_span` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan` Page span of the footer. |

## ChunkPageHeader

Represents the page header associated with the chunk.

| Fields ||
|---|---|
| `text` | `string` Header in text format. |
| `page_span` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan` Page span of the header. |

## ChunkPageSpan

Represents where the chunk starts and ends in the document.

| Fields ||
|---|---|
| `page_start` | `int32` Page where chunk starts in the document. |
| `page_end` | `int32` Page where chunk ends in the document. |

## ImageChunkField

The image chunk field in the chunk.

| Fields ||
|---|---|
| `annotations` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Annotations` Annotation of the image chunk field. |
| Union field `image_source`. Source of the image. `image_source` can be only one of the following: ||
| `blob_asset_id` | `string` Optional. Asset ID of the inline image. If set, find the image content in the blob_assets field. |
| `gcs_uri` | `string` Optional. Google Cloud Storage URI of the image. |
| `data_uri` | `string` Optional. Data URI of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:\[\]\[;base64\], |

## TableChunkField

The table chunk field in the chunk.

| Fields ||
|---|---|
| `annotations` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Annotations` Annotation of the table chunk field. |

## DocumentLayout

Represents the parsed layout of a document as a collection of blocks that the document is divided into.

| Fields ||
|---|---|
| `blocks[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock` List of blocks in the document. |

## DocumentLayoutBlock

Represents a block. A block could be one of the various types (text, table, list) supported.

| Fields ||
|---|---|
| `block_id` | `string` ID of the block. |
| `page_span` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan` Page span of the block. |
| `bounding_box` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BoundingPoly` Identifies the bounding box for the block. |
| Union field `block`. `block` can be only one of the following: ||
| `text_block` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock` Block consisting of text content. |
| `table_block` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock` Block consisting of table content/structure. |
| `list_block` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock` Block consisting of list content/structure. |
| `image_block` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock` Block consisting of image content. |

## LayoutImageBlock

Represents an image type block.

| Fields ||
|---|---|
| `mime_type` | `string` Mime type of the image. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). |
| `image_text` | `string` Text extracted from the image using OCR or alt text describing the image. |
| `annotations` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Annotations` Annotation of the image block. |
| Union field `image_source`. Source of the image. `image_source` can be only one of the following: ||
| `blob_asset_id` | `string` Optional. Asset ID of the inline image. If set, find the image content in the blob_assets field. |
| `gcs_uri` | `string` Optional. Google Cloud Storage URI of the image. |
| `data_uri` | `string` Optional. Data URI of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:\[\]\[;base64\], |

## LayoutListBlock

Represents a list type block.

| Fields ||
|---|---|
| `list_entries[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry` List entries that constitute a list block. |
| `type` | `string` Type of the list_entries (if exist). Available options are `ordered` and `unordered`. |

## LayoutListEntry

Represents an entry in the list.

| Fields ||
|---|---|
| `blocks[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock` A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks. |

## LayoutPageSpan

Represents where the block starts and ends in the document.

| Fields ||
|---|---|
| `page_start` | `int32` Page where block starts in the document. |
| `page_end` | `int32` Page where block ends in the document. |

## LayoutTableBlock

Represents a table type block.

| Fields ||
|---|---|
| `header_rows[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow` Header rows at the top of the table. |
| `body_rows[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow` Body rows containing main table content. |
| `caption` | `string` Table caption/title. |
| `annotations` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Annotations` Annotation of the table block. |

## LayoutTableCell

Represents a cell in a table row.

| Fields ||
|---|---|
| `blocks[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock` A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. |
| `row_span` | `int32` How many rows this cell spans. |
| `col_span` | `int32` How many columns this cell spans. |

## LayoutTableRow

Represents a row in a table.

| Fields ||
|---|---|
| `cells[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell` A table row is a list of table cells. |

## LayoutTextBlock

Represents a text type block.

| Fields ||
|---|---|
| `text` | `string` Text content stored in the block. |
| `type` | `string` Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. |
| `blocks[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock` A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks. |
| `annotations` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Annotations` Annotation of the text block. |

## EntitiesRevision

Entity revision.

| Fields ||
|---|---|
| `revision_id` | `string` The revision id. |
| `entities[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity` The entities in this revision. |
| `entity_validation_output` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput` The entity validation output for this revision. |
| `provenance` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` Optional. The history of this revision. |

## Entity

An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.

| Fields ||
|---|---|
| `text_anchor` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor` Optional. Provenance of the entity. Text anchor indexing into the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |
| `type` | `string` Required. Entity type from a schema, for example, `Address`. |
| `mention_text` | `string` Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`. |
| `mention_id` | `string` Optional. Deprecated. Use `id` field instead. |
| `confidence` | `float` Optional. Confidence of detected Schema entity. Range `[0, 1]`. |
| `page_anchor` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor` Optional. Represents the provenance of this entity wrt. the location on the page where it was found. |
| `id` | `string` Optional. Canonical id. This will be a unique value in the entity list for this document. |
| `normalized_value` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity.NormalizedValue` 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. |
| `properties[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity` Optional. Entities can be nested to form a hierarchical data structure representing the content in the document. |
| `provenance` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` Optional. The history of this annotation. |
| `redacted` | `bool` Optional. Whether the entity will be redacted for de-identification purposes. |
| `method` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity.Method` Optional. Specifies how the entity's value is obtained. |

## Method

Specifies how the entity's value is obtained.

| Enums ||
|---|---|
| `METHOD_UNSPECIFIED` | When the method is not specified, it should be treated as `EXTRACT`. |
| `EXTRACT` | The entity's value is directly extracted as-is from the document text. |
| `DERIVE` | The entity's value is derived through inference and is not necessarily an exact text extraction from the document. |

## NormalizedValue

Parsed and normalized entity value.

| Fields ||
|---|---|
| `text` | `string` Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format. |
| Union field `structured_value`. An optional structured entity value. Must match entity type defined in schema if known. If this field is present, the `text` field could also be populated. `structured_value` can be only one of the following: ||
| `money_value` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.Money` Money value. See also: <https://github.com/googleapis/googleapis/blob/master/google/type/money.proto> |
| `date_value` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.Date` Date value. Includes year, month, day. See also: <https://github.com/googleapis/googleapis/blob/master/google/type/date.proto> |
| `datetime_value` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.DateTime` DateTime value. Includes date, time, and timezone. See also: <https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto> |
| `address_value` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.PostalAddress` Postal address. See also: <https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto> |
| `boolean_value` | `bool` Boolean value. Can be used for entities with binary values, or for checkboxes. |
| `integer_value` | `int32` Integer value. |
| `float_value` | `float` Float value. |
| `signature_value` | `bool` A signature, which is a graphical representation of a person's name, often used to sign a document. |

## EntityRelation

Relationship between `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Entity`.

| Fields ||
|---|---|
| `subject_id` | `string` Subject entity id. |
| `object_id` | `string` Object entity id. |
| `relation` | `string` Relationship description. |

## EntityValidationOutput

The output of the validation given the document and the validation rules.

| Fields ||
|---|---|
| `validation_results[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult` The result of each validation rule. |
| `pass_all_rules` | `bool` The overall result of the validation, true if all applicable rules are valid. |

## ValidationResult

Validation result for a single validation rule.

| Fields ||
|---|---|
| `rule` | `string` Optional. The name of the rule resource that is used for validation. Format: `projects/{project}/locations/{location}/rules/{rule}` |
| `rule_name` | `string` The display name of the validation rule. |
| `rule_description` | `string` The description of the validation rule. |
| `validation_result_type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType` The result of the validation rule. |
| `validation_details` | `string` The detailed information of the running the validation process using the entity from the document based on the validation rule. |

## ValidationResultType

The result of the validation rule.

| Enums ||
|---|---|
| `VALIDATION_RESULT_TYPE_UNSPECIFIED` | The validation result type is unspecified. |
| `VALIDATION_RESULT_TYPE_VALID` | The validation is valid. |
| `VALIDATION_RESULT_TYPE_INVALID` | The validation is invalid. |
| `VALIDATION_RESULT_TYPE_SKIPPED` | The validation is skipped. |
| `VALIDATION_RESULT_TYPE_NOT_APPLICABLE` | The validation is not applicable. |

## Page

A page in a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document`.

| Fields ||
|---|---|
| `page_number` | `int32` 1-based index for current `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page` in a parent `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document`. Useful when a page is taken out of a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document` for individual processing. |
| `image` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Image` Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. |
| `transforms[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Matrix` Transformation matrices that were applied to the original document image to produce `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.google.cloud.documentai.v1.Document.Page.Image.google.cloud.documentai.v1.Document.Page.image`. |
| `dimension` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Dimension` Physical dimension of the page. |
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for the page. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |
| `blocks[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Block` A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. |
| `paragraphs[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Paragraph` A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph. |
| `lines[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Line` A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. |
| `tokens[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token` A list of visually detected tokens on the page. |
| `visual_elements[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.VisualElement` A list of detected non-text visual elements, for example, checkbox, signature etc. on the page. |
| `tables[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table` A list of visually detected tables on the page. |
| `form_fields[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FormField` A list of visually detected form fields on the page. |
| `symbols[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Symbol` A list of visually detected symbols on the page. |
| `detected_barcodes[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedBarcode` A list of detected barcodes. |
| `image_quality_scores` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.ImageQualityScores` Image quality scores. |
| `provenance (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this page. |

## Block

A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Block`. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |
| `provenance (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this annotation. |

## DetectedBarcode

A detected barcode.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedBarcode`. |
| `barcode` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Barcode` Detailed barcode information of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedBarcode`. |

## DetectedLanguage

Detected language for a structural component.

| Fields ||
|---|---|
| `language_code` | `string` The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`. |
| `confidence` | `float` Confidence of detected language. Range `[0, 1]`. |

## Dimension

Dimension for the page.

| Fields ||
|---|---|
| `width` | `float` Page width. |
| `height` | `float` Page height. |
| `unit` | `string` Dimension unit. |

## FormField

A form field detected on the page.

| Fields ||
|---|---|
| `field_name` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FormField` name. For example, `Address`, `Email`, `Grand total`, `Phone number`, etc. |
| `field_value` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FormField` value. |
| `name_detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages for name together with confidence. |
| `value_detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages for value together with confidence. |
| `value_type` | `string` If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the `field_value` is normal text) - `unfilled_checkbox` - `filled_checkbox` |
| `corrected_key_text` | `string` Created for Labeling UI to export key text. If corrections were made to the text identified by the `field_name.text_anchor`, this field will contain the correction. |
| `corrected_value_text` | `string` Created for Labeling UI to export value text. If corrections were made to the text identified by the `field_value.text_anchor`, this field will contain the correction. |
| `provenance` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` The history of this annotation. |

## Image

Rendered image contents for this page.

| Fields ||
|---|---|
| `content` | `bytes` Raw byte content of the image. |
| `mime_type` | `string` Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image. |
| `width` | `int32` Width of the image in pixels. |
| `height` | `int32` Height of the image in pixels. |

## ImageQualityScores

Image quality scores for the page image.

| Fields ||
|---|---|
| `quality_score` | `float` The overall quality score. Range `[0, 1]` where `1` is perfect quality. |
| `detected_defects[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect` A list of detected defects. |

## DetectedDefect

Image Quality Defects

| Fields ||
|---|---|
| `type` | `string` Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare` |
| `confidence` | `float` Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. |

## Layout

Visual element describing a layout unit on a page.

| Fields ||
|---|---|
| `text_anchor` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor` Text anchor indexing into the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |
| `confidence` | `float` Confidence of the current `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.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]`. |
| `bounding_poly` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BoundingPoly` The bounding polygon for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout`. |
| `orientation` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout.Orientation` Detected orientation for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout`. |

## Orientation

Detected human reading orientation.

| Enums ||
|---|---|
| `ORIENTATION_UNSPECIFIED` | Unspecified orientation. |
| `PAGE_UP` | Orientation is aligned with page up. |
| `PAGE_RIGHT` | Orientation is aligned with page right. Turn the head 90 degrees clockwise from upright to read. |
| `PAGE_DOWN` | Orientation is aligned with page down. Turn the head 180 degrees from upright to read. |
| `PAGE_LEFT` | Orientation is aligned with page left. Turn the head 90 degrees counterclockwise from upright to read. |

## Line

A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Line`. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |
| `provenance (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this annotation. |

## Matrix

Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.

| Fields ||
|---|---|
| `rows` | `int32` Number of rows in the matrix. |
| `cols` | `int32` Number of columns in the matrix. |
| `type` | `int32` This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to <https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html> |
| `data` | `bytes` The matrix data. |

## Paragraph

A collection of lines that a human would perceive as a paragraph.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Paragraph`. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |
| `provenance (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this annotation. |

## Symbol

A detected symbol.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Symbol`. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |

## Table

A table representation similar to HTML table structure.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table`. |
| `header_rows[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table.TableRow` Header rows of the table. |
| `body_rows[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table.TableRow` Body rows of the table. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |
| `provenance (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this table. |

## TableCell

A cell representation inside the table.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table.TableCell`. |
| `row_span` | `int32` How many rows this cell spans. |
| `col_span` | `int32` How many columns this cell spans. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |

## TableRow

A row of table cells.

| Fields ||
|---|---|
| `cells[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Table.TableCell` Cells that make up this row. |

## Token

A detected token.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token`. |
| `detected_break` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.DetectedBreak` Detected break at the end of a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token`. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |
| `provenance (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this annotation. |
| `style_info` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.StyleInfo` Text style attributes. |

## DetectedBreak

Detected break at the end of a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token`.

| Fields ||
|---|---|
| `type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type` Detected break type. |

## Type

Enum to denote the type of break found.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | Unspecified break type. |
| `SPACE` | A single whitespace. |
| `WIDE_SPACE` | A wider whitespace. |
| `HYPHEN` | A hyphen that indicates that a token has been split across lines. |

## StyleInfo

Font and other text style attributes.

| Fields ||
|---|---|
| `font_size` | `int32` Font size in points (`1` point is `¹⁄₇₂` inches). |
| `pixel_font_size` | `double` Font size in pixels, equal to *unrounded `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.StyleInfo.FIELDS.int32.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size`* \* *resolution* ÷ `72.0`. |
| `letter_spacing` | `double` Letter spacing in points. |
| `font_type` | `string` Name or style of the font. |
| `bold` | `bool` Whether the text is bold (equivalent to `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Token.StyleInfo.FIELDS.int32.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight` is at least `700`). |
| `italic` | `bool` Whether the text is italic. |
| `underlined` | `bool` Whether the text is underlined. |
| `strikeout` | `bool` Whether the text is strikethrough. This feature is not supported yet. |
| `subscript` | `bool` Whether the text is a subscript. This feature is not supported yet. |
| `superscript` | `bool` Whether the text is a superscript. This feature is not supported yet. |
| `smallcaps` | `bool` Whether the text is in small caps. This feature is not supported yet. |
| `font_weight` | `int32` TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`. |
| `handwritten` | `bool` Whether the text is handwritten. |
| `text_color` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.Color` Color of the text. |
| `background_color` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.Color` Color of the background. |

## VisualElement

Detected non-text visual elements, for example, checkbox, signature etc. on the page.

| Fields ||
|---|---|
| `layout` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.Layout` for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.VisualElement`. |
| `type` | `string` Type of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.VisualElement`. |
| `detected_languages[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.DetectedLanguage` A list of detected languages together with confidence. |

## PageAnchor

Referencing the visual context of the entity in the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.google.cloud.documentai.v1.Document.pages`. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.

| Fields ||
|---|---|
| `page_refs[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor.PageRef` One or more references to visual page elements |

## PageRef

Represents a weak reference to a page element within a document.

| Fields ||
|---|---|
| `page` | `int64` Required. Index into the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.google.cloud.documentai.v1.Document.pages` element, for example using `[Document.pages][page_refs.page]` 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>. |
| `layout_type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType` Optional. The type of the layout element that is being referenced if any. |
| `layout_id (deprecated)` | `string` > [!WARNING] > This item is deprecated! Optional. Deprecated. Use `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.PageAnchor.PageRef.FIELDS.google.cloud.documentai.v1.BoundingPoly.google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly` instead. |
| `bounding_poly` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BoundingPoly` Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to. |
| `confidence` | `float` Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. |

## LayoutType

The type of layout that is being referenced.

| Enums ||
|---|---|
| `LAYOUT_TYPE_UNSPECIFIED` | Layout Unspecified. |
| `BLOCK` | References a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.Block.google.cloud.documentai.v1.Document.Page.blocks` element. |
| `PARAGRAPH` | References a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.Paragraph.google.cloud.documentai.v1.Document.Page.paragraphs` element. |
| `LINE` | References a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.Line.google.cloud.documentai.v1.Document.Page.lines` element. |
| `TOKEN` | References a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.Token.google.cloud.documentai.v1.Document.Page.tokens` element. |
| `VISUAL_ELEMENT` | References a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.VisualElement.google.cloud.documentai.v1.Document.Page.visual_elements` element. |
| `TABLE` | Refrrences a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.Table.google.cloud.documentai.v1.Document.Page.tables` element. |
| `FORM_FIELD` | References a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.FormField.google.cloud.documentai.v1.Document.Page.form_fields` element. |

## Provenance

Structure to identify provenance relationships between annotations in different revisions.

| Fields ||
|---|---|
| `revision (deprecated)` | `int32` > [!WARNING] > This item is deprecated! The index of the revision that produced this element. |
| `id (deprecated)` | `int32` > [!WARNING] > This item is deprecated! The ID of this operation. Needs to be unique within the scope of the revision. |
| `parents[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance.Parent` References to the original elements that are replaced. |
| `type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance.OperationType` The type of provenance operation. |

## OperationType

If a processor or agent does an explicit operation on existing elements.

| Enums ||
|---|---|
| `OPERATION_TYPE_UNSPECIFIED` | Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`. |
| `ADD` | Add an element. |
| `REMOVE` | Remove an element identified by `parent`. |
| `UPDATE` | Updates any fields within the given provenance scope of the message. It overwrites the fields rather than replacing them. Use this when you want to update a field value of an entity without also updating all the child properties. |
| `REPLACE` | Currently unused. Replace an element identified by `parent`. |
| `EVAL_REQUESTED` | Deprecated. Request human review for the element identified by `parent`. > [!WARNING] > This item is deprecated! |
| `EVAL_APPROVED` | Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0. > [!WARNING] > This item is deprecated! |
| `EVAL_SKIPPED` | Deprecated. Element is skipped in the validation process. > [!WARNING] > This item is deprecated! |

## Parent

The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.

| Fields ||
|---|---|
| `revision` | `int32` The index of the index into current revision's parent_ids list. |
| `index` | `int32` The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision. |
| `id (deprecated)` | `int32` > [!WARNING] > This item is deprecated! The ID of the parent provenance. |

## Revision

Contains past or forward revisions of this document.

| Fields ||
|---|---|
| `id` | `string` ID of the revision, internally generated by doc proto storage. Unique within the context of the document. |
| `parent[] (deprecated)` | `int32` > [!WARNING] > This item is deprecated! The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. |
| `parent_ids[]` | `string` The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are `provenance.parent.revision` fields that index into this field. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The time that the revision was created, internally generated by doc proto storage at the time of create. |
| `human_review` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Revision.HumanReview` Human Review information of this revision. |
| Union field `source`. Who/what made the change `source` can be only one of the following: ||
| `agent` | `string` If the change was made by a person specify the name or ID of that person. |
| `processor` | `string` If the annotation was made by processor identify the processor by its resource name. |

## HumanReview

Human Review information of the document.

| Fields ||
|---|---|
| `state` | `string` Human review state. For example, `requested`, `succeeded`, `rejected`. |
| `state_message` | `string` A message providing more details about the current state of processing. For example, the rejection reason when the state is `rejected`. |

## ShardInfo

For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.

| Fields ||
|---|---|
| `shard_index` | `int64` The 0-based index of this shard. |
| `shard_count` | `int64` Total number of shards. |
| `text_offset` | `int64` The index of the first character in `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text` in the overall document global text. |
| `page_offset` | `int32` The index of the first page in `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.repeated.google.cloud.documentai.v1.Document.Page.google.cloud.documentai.v1.Document.pages` in the overall document global pages. Available for document shards created by the document splitter. |

## Style

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

| Fields ||
|---|---|
| `text_anchor` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor` Text anchor indexing into the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |
| `color` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.Color` Text color. |
| `background_color` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.type#google.type.Color` Text background color. |
| `font_weight` | `string` [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`. |
| `text_style` | `string` [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`. |
| `text_decoration` | `string` [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. |
| `font_size` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Style.FontSize` Font size. |
| `font_family` | `string` Font family such as `Arial`, `Times New Roman`. <https://www.w3schools.com/cssref/pr_font_font-family.asp> |

## FontSize

Font size with unit.

| Fields ||
|---|---|
| `size` | `float` Font size for the text. |
| `unit` | `string` Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). |

## TextAnchor

Text reference indexing into the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`.

| Fields ||
|---|---|
| `text_segments[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor.TextSegment` The text segments from the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |
| `content` | `string` Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields. |

## TextSegment

A text segment in the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.ShardInfo.FIELDS.int64.google.cloud.documentai.v1.Document.ShardInfo.text_offset`

| Fields ||
|---|---|
| `start_index` | `int64` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor.TextSegment` start UTF-8 char index in the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |
| `end_index` | `int64` `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor.TextSegment` half open end UTF-8 char index in the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. |

## TextChange

This message is used for text changes aka. OCR corrections.

| Fields ||
|---|---|
| `text_anchor` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.TextAnchor` Provenance of the correction. Text anchor indexing into the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.FIELDS.string.google.cloud.documentai.v1.Document.text`. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index. |
| `changed_text` | `string` The text that replaces the text identified in the `text_anchor`. |
| `provenance[] (deprecated)` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Provenance` > [!WARNING] > This item is deprecated! The history of this annotation. |

## DocumentOutputConfig

Config that controls the output of documents. All documents will be written as a JSON file.

| Fields ||
|---|---|
| Union field `destination`. The destination of the results. `destination` can be only one of the following: ||
| `gcs_output_config` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig` Output config to write the results to Cloud Storage. |

## GcsOutputConfig

The configuration used when outputting documents.

| Fields ||
|---|---|
| `gcs_uri` | `string` The Cloud Storage uri (a directory) of the output. |
| `field_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. |
| `sharding_config` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig` Specifies the sharding config for the output document. |

## ShardingConfig

The sharding config for the output document.

| Fields ||
|---|---|
| `pages_per_shard` | `int32` The number of pages per shard. |
| `pages_overlap` | `int32` The number of overlapping pages between consecutive shards. |

## DocumentSchema

The schema defines the output of the processed document by a processor.

| Fields ||
|---|---|
| `display_name` | `string` Display name to show users. |
| `description` | `string` Description of the schema. |
| `entity_types[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType` Entity types of the schema. |
| `metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.Metadata` Metadata of the schema. |
| `document_prompt` | `string` Optional. Document-level prompt provided by the user. This custom text is injected into the AI model's prompt to provide extra, document-wide guidance for processing. |

## EntityType

EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.

| Fields ||
|---|---|
| `display_name` | `string` User defined name for the type. |
| `name` | `string` Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility, internal infrastructure and tooling can handle any ASCII character.) - The `/` is sometimes used to denote a property of a type. For example, `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility. |
| `base_types[]` | `string` The entity type that this type is derived from. For now, one and only one should be set. |
| `properties[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.Property` Description the nested structure, or composition of an entity. |
| Union field `value_source`. `value_source` can be only one of the following: ||
| `enum_values` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues` If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is \>10 or could change frequently, use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file. |

## EnumValues

Defines the a list of enum values.

| Fields ||
|---|---|
| `values[]` | `string` The individual values that this enum values type can include. |

## Property

Defines properties that can be part of the entity type.

| Fields ||
|---|---|
| `name` | `string` The name of the property. Follows the same guidelines as the EntityType name. |
| `display_name` | `string` User defined name for the property. |
| `value_type` | `string` A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. |
| `occurrence_type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType` Occurrence type limits the number of instances an entity type appears in the document. |
| `method` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method` Specifies how the entity's value is obtained. |

## Method

Specifies how the entity's value is obtained from the document.

| Enums ||
|---|---|
| `METHOD_UNSPECIFIED` | Unspecified method. It defaults to `EXTRACT`. |
| `EXTRACT` | The entity's value is directly extracted as-is from the document text. |
| `DERIVE` | The entity's value is derived through inference and is not necessarily an exact text extraction from the document. |
| `RELAXED_EXTRACT` | Attempts to extract the position and value as-is from the document text. If the value cannot be grounded in the text, it falls back to derivation through inference, for both position and value. Note: The inference fallback is currently only supported for boolean entities. |

## OccurrenceType

Types of occurrences of the entity type in the document. This represents the number of instances, not mentions, of an entity. For example, a bank statement might only have one `account_number`, but this account number can be mentioned in several places on the document. In this case, the `account_number` is considered a `REQUIRED_ONCE` entity type. If, on the other hand, it's expected that a bank statement contains the status of multiple different accounts for the customers, the occurrence type is set to `REQUIRED_MULTIPLE`.

| Enums ||
|---|---|
| `OCCURRENCE_TYPE_UNSPECIFIED` | Unspecified occurrence type. |
| `OPTIONAL_ONCE` | There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times. |
| `OPTIONAL_MULTIPLE` | The entity type will appear zero or multiple times. |
| `REQUIRED_ONCE` | The entity type will only appear exactly once. The same entity instance may be mentioned multiple times. |
| `REQUIRED_MULTIPLE` | The entity type will appear once or more times. |

## Metadata

Metadata for global schema behavior.

| Fields ||
|---|---|
| `document_splitter` | `bool` If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification). |
| `document_allow_multiple_labels` | `bool` If true, on a given page, there can be multiple `document` annotations covering it. |
| `prefixed_naming_on_properties` | `bool` If set, all the nested entities must be prefixed with the parents. |
| `skip_naming_validation` | `bool` If set, this will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. |

## Documents

A set of inline documents.

| Fields ||
|---|---|
| `documents[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document` The list of documents. |

## EnableProcessorMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## EnableProcessorRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor resource name to be enabled. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processors.update` |

## EnableProcessorResponse

This type has no fields.
Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor` method. Intentionally empty proto for adding fields in future.

## EvaluateProcessorVersionMetadata

Metadata of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## EvaluateProcessorVersionRequest

Evaluates the given `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` against the supplied documents.

| Fields ||
|---|---|
| `processor_version` | `string` Required. The resource name of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` to evaluate. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `processorVersion`: - `documentai.evaluations.create` |
| `evaluation_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchDocumentsInputConfig` Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input. |

## EvaluateProcessorVersionResponse

Response of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion` method.

| Fields ||
|---|---|
| `evaluation` | `string` The resource name of the created evaluation. |

## Evaluation

An evaluation of a ProcessorVersion's performance.

| Fields ||
|---|---|
| `name` | `string` The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The time that the evaluation was created. |
| `document_counters` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Counters` Counters for the documents used in the evaluation. |
| `all_entities_metrics` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics` Metrics for all the entities in aggregate. |
| `entity_metrics` | ``map<string, `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics`>`` Metrics across confidence levels, for different entities. |
| `kms_key_name` | `string` The KMS key name used for encryption. |
| `kms_key_version_name` | `string` The KMS key version with which data is encrypted. |
| `revisions[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.EvaluationRevision` Contains all revisions of the evaluation, excluding the latest one. |

## ConfidenceLevelMetrics

Evaluations metrics, at a specific confidence level.

| Fields ||
|---|---|
| `confidence_level` | `float` The confidence level. |
| `metrics` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Metrics` The metrics at the specific confidence level. |

## Counters

Evaluation counters for the documents that were used.

| Fields ||
|---|---|
| `input_documents_count` | `int32` How many documents were sent for evaluation. |
| `invalid_documents_count` | `int32` How many documents were not included in the evaluation as they didn't pass validation. |
| `failed_documents_count` | `int32` How many documents were not included in the evaluation as Document AI failed to process them. |
| `evaluated_documents_count` | `int32` How many documents were used in the evaluation. |

## EvaluationRevision

A revision of the evaluation.

| Fields ||
|---|---|
| `revision_id` | `string` Output only. The revision ID of the evaluation. |
| `document_counters` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Counters` Output only. Counters for the documents used in the evaluation. |
| `all_entities_metrics` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics` Output only. Metrics for all the entities in aggregate. |
| `entity_metrics` | ``map<string, `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics`>`` Output only. Metrics across confidence levels, for different entities. |

## Metrics

Evaluation metrics, either in aggregate or about a specific entity.

| Fields ||
|---|---|
| `precision` | `float` The calculated precision. |
| `recall` | `float` The calculated recall. |
| `f1_score` | `float` The calculated F1 score. |
| `predicted_occurrences_count` | `int32` The amount of occurrences in predicted documents. |
| `ground_truth_occurrences_count` | `int32` The amount of occurrences in ground truth documents. |
| `predicted_document_count` | `int32` The amount of documents with a predicted occurrence. |
| `ground_truth_document_count` | `int32` The amount of documents with a ground truth occurrence. |
| `true_positives_count` | `int32` The amount of true positives. |
| `false_positives_count` | `int32` The amount of false positives. |
| `false_negatives_count` | `int32` The amount of false negatives. |
| `total_documents_count` | `int32` The amount of documents that had an occurrence of this label. |

## MultiConfidenceMetrics

Metrics across multiple confidence levels.

| Fields ||
|---|---|
| `confidence_level_metrics[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics` Metrics across confidence levels with fuzzy matching enabled. |
| `confidence_level_metrics_exact[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics` Metrics across confidence levels with only exact matching. |
| `auprc` | `float` The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds. |
| `estimated_calibration_error` | `float` The Estimated Calibration Error (ECE) of the confidence of the predicted entities. |
| `auprc_exact` | `float` The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only. |
| `estimated_calibration_error_exact` | `float` The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only. |
| `metrics_type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType` The metrics type for the label. |

## MetricsType

A type that determines how metrics should be interpreted.

| Enums ||
|---|---|
| `METRICS_TYPE_UNSPECIFIED` | The metrics type is unspecified. By default, metrics without a particular specification are for leaf entity types (i.e., top-level entity types without child types, or child types which are not parent types themselves). |
| `AGGREGATE` | Indicates whether metrics for this particular label type represent an aggregate of metrics for other types instead of being based on actual TP/FP/FN values for the label type. Metrics for parent (i.e., non-leaf) entity types are an aggregate of metrics for their children. |

## EvaluationReference

Gives a short summary of an evaluation, and links to the evaluation itself.

| Fields ||
|---|---|
| `operation` | `string` The resource name of the Long Running Operation for the evaluation. |
| `evaluation` | `string` The resource name of the evaluation. |
| `aggregate_metrics` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Metrics` An aggregate of the statistics for the evaluation with fuzzy matching on. |
| `aggregate_metrics_exact` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation.Metrics` An aggregate of the statistics for the evaluation with fuzzy matching off. |

## FetchProcessorTypesRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes` method. Some processor types may require the project be added to an allowlist.

| Fields ||
|---|---|
| `parent` | `string` Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.processorTypes.list` |

## FetchProcessorTypesResponse

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes` method.

| Fields ||
|---|---|
| `processor_types[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType` The list of processor types. |

## GcsDocument

Specifies a document stored on Cloud Storage.

| Fields ||
|---|---|
| `gcs_uri` | `string` The Cloud Storage object uri. |
| `mime_type` | `string` An IANA MIME type (RFC6838) of the content. |

## GcsDocuments

Specifies a set of documents on Cloud Storage.

| Fields ||
|---|---|
| `documents[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsDocument` The list of documents. |

## GcsPrefix

Specifies all documents on Cloud Storage with a common prefix.

| Fields ||
|---|---|
| `gcs_uri_prefix` | `string` The URI prefix. |

## GenerateSchemaVersionRequest

Request message for GenerateSchemaVersion.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` |
| `generate_schema_version_params` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GenerateSchemaVersionRequest.GenerateSchemaVersionParams` Optional. User specified parameters for the schema generation. |
| Union field `source`. Source of the documents which will be used for schema generation. `source` can be only one of the following: ||
| `inline_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Documents` The set of documents specified inline. For each document, its `uri` or `content` field must be set. |
| `raw_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.RawDocuments` The set of raw documents. |
| `gcs_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsDocuments` The set of documents placed on Cloud Storage. |
| `gcs_prefix` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsPrefix` The common prefix of documents placed on Cloud Storage. |
| `base_schema_version` | `string` The base schema version name to use for the schema generation. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` |

## GenerateSchemaVersionParams

The parameters for the schema generation.

| Fields ||
|---|---|
| `prompt` | `string` Optional. The prompt used for the schema generation. |
| `history` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaGenerationHistory` Optional. Previous prompt-answers in a chronological order. |

## GenerateSchemaVersionResponse

Response message for GenerateSchemaVersion.

| Fields ||
|---|---|
| `schema_version` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` The schema version generated by the model. |

## GetEvaluationRequest

Retrieves a specific Evaluation.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation` to get. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.evaluations.get` |

## GetProcessorRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.GetProcessor` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor resource name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processors.get` |

## GetProcessorTypeRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor type resource name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processorTypes.get` |

## GetProcessorVersionRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor resource name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processorVersions.get` |

## GetSchemaRequest

Request message for GetSchema.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Schema to get. Format: `projects/{project}/locations/{location}/schemas/{schema}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.schemas.get` |

## GetSchemaVersionRequest

Request message for GetSchemaVersion.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the SchemaVersion to get. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.schemaversions.get` |

## HumanReviewStatus

The status of human review on a processed document.

| Fields ||
|---|---|
| `state` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus.State` The state of human review on the processing request. |
| `state_message` | `string` A message providing more details about the human review state. |
| `human_review_operation` | `string` The name of the operation triggered by the processed document. This field is populated only when the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus.FIELDS.google.cloud.documentai.v1.HumanReviewStatus.State.google.cloud.documentai.v1.HumanReviewStatus.state` is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument`. |

## State

The final state of human review on a processed document.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Human review state is unspecified. Most likely due to an internal error. |
| `SKIPPED` | Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document. |
| `VALIDATION_PASSED` | Human review validation is triggered and passed, so no review is needed. |
| `IN_PROGRESS` | Human review validation is triggered and the document is under review. |
| `ERROR` | Some error happened during triggering human review, see the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus.FIELDS.string.google.cloud.documentai.v1.HumanReviewStatus.state_message` for details. |

## ListEvaluationsRequest

Retrieves a list of evaluations for a given `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion`.

| Fields ||
|---|---|
| `parent` | `string` Required. The resource name of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` to list evaluations for. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.evaluations.list` |
| `page_size` | `int32` The standard list page size. If unspecified, at most `5` evaluations are returned. The maximum value is `100`. Values above `100` are coerced to `100`. |
| `page_token` | `string` A page token, received from a previous `ListEvaluations` call. Provide this to retrieve the subsequent page. |

## ListEvaluationsResponse

The response from `ListEvaluations`.

| Fields ||
|---|---|
| `evaluations[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Evaluation` The evaluations requested. |
| `next_page_token` | `string` A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

## ListProcessorTypesRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes` method. Some processor types may require the project be added to an allowlist.

| Fields ||
|---|---|
| `parent` | `string` Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.processorTypes.list` |
| `page_size` | `int32` The maximum number of processor types to return. If unspecified, at most `100` processor types will be returned. The maximum value is `500`. Values above `500` will be coerced to `500`. |
| `page_token` | `string` Used to retrieve the next page of results, empty if at the end of the list. |

## ListProcessorTypesResponse

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes` method.

| Fields ||
|---|---|
| `processor_types[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType` The processor types. |
| `next_page_token` | `string` Points to the next page, otherwise empty. |

## ListProcessorVersionsRequest

Request message for list all processor versions belongs to a processor.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project, location and processor) to list all versions. Format: `projects/{project}/locations/{location}/processors/{processor}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.processorVersions.list` |
| `page_size` | `int32` The maximum number of processor versions to return. If unspecified, at most `10` processor versions will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. |
| `page_token` | `string` We will return the processor versions sorted by creation time. The page token will point to the next processor version. |

## ListProcessorVersionsResponse

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions` method.

| Fields ||
|---|---|
| `processor_versions[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` The list of processors. |
| `next_page_token` | `string` Points to the next processor, otherwise empty. |

## ListProcessorsRequest

Request message for list all processors belongs to a project.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project and location) which owns this collection of Processors. Format: `projects/{project}/locations/{location}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.processors.list` |
| `page_size` | `int32` The maximum number of processors to return. If unspecified, at most `50` processors will be returned. The maximum value is `100`. Values above `100` will be coerced to `100`. |
| `page_token` | `string` We will return the processors sorted by creation time. The page token will point to the next processor. |

## ListProcessorsResponse

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ListProcessors` method.

| Fields ||
|---|---|
| `processors[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` The list of processors. |
| `next_page_token` | `string` Points to the next processor, otherwise empty. |

## ListSchemaVersionsRequest

Request message for ListSchemaVersions.

| Fields ||
|---|---|
| `parent` | `string` Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.schemaversions.list` |
| `page_size` | `int32` Optional. The maximum number of SchemaVersion to return. If unspecified, at most `10` SchemaVersion will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. |
| `page_token` | `string` Optional. Returns the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion. |

## ListSchemaVersionsResponse

Response message for ListSchemaVersions.

| Fields ||
|---|---|
| `schema_versions[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` The list of SchemaVersions. |
| `next_page_token` | `string` Points to the next SchemaVersion, otherwise empty. |

## ListSchemasRequest

Request message for ListSchemas.

| Fields ||
|---|---|
| `parent` | `string` Required. Format: `projects/{project}/locations/{location}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.schemas.list` |
| `page_size` | `int32` Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. |
| `page_token` | `string` Optional. Returns the schema groups sorted by creation time. The page token will point to the next Schema. |

## ListSchemasResponse

Response message for ListSchemas.

| Fields ||
|---|---|
| `schemas[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema` The list of Schemas. |
| `next_page_token` | `string` Points to the next Schema, otherwise empty. |

## NextSchema

NextSchema is a collection of SchemaVersions.

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` |
| `display_name` | `string` Required. The user-defined name of the Schema. |
| `labels` | `map<string, string>` Optional. The Google Cloud labels for the Schema. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The time when the Schema was created. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The time when the Schema was last updated. |

## NormalizedVertex

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

| Fields ||
|---|---|
| `x` | `float` X coordinate. |
| `y` | `float` Y coordinate (starts from the top of the image). |

## OcrConfig

Config for Document OCR.

| Fields ||
|---|---|
| `hints` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig.Hints` Hints for the OCR model. |
| `enable_native_pdf_parsing` | `bool` Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs. |
| `enable_image_quality_scores` | `bool` Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call. |
| `advanced_ocr_options[]` | `string` A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation. |
| `enable_symbol` | `bool` Includes symbol level OCR information if set to true. |
| `compute_style_info (deprecated)` | `bool` > [!WARNING] > This item is deprecated! Turn on font identification model and return font style information. Deprecated, use `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig.PremiumFeatures.FIELDS.bool.google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info` instead. |
| `disable_character_boxes_detection` | `bool` Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors. |
| `premium_features` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig.PremiumFeatures` Configurations for premium OCR features. |

## Hints

Hints for OCR Engine

| Fields ||
|---|---|
| `language_hints[]` | `string` List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). |

## PremiumFeatures

Configurations for premium OCR features.

| Fields ||
|---|---|
| `enable_selection_mark_detection` | `bool` Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors. |
| `compute_style_info` | `bool` Turn on font identification model and return font style information. |
| `enable_math_ocr` | `bool` Turn on the model that can extract LaTeX math formulas. |

## ProcessOptions

Options for Process API

| Fields ||
|---|---|
| `ocr_config` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.OcrConfig` Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types. |
| `layout_config` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions.LayoutConfig` Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types. |
| `schema_override` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema` Optional. Override the schema of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion`. Will return an Invalid Argument error if this field is set when the underlying `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` doesn't support schema override. |
| Union field `page_range`. A subset of pages to process. If not specified, all pages are processed. If a page range is set, only the given pages are extracted and processed from the document. In the output document, `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document.Page.FIELDS.int32.google.cloud.documentai.v1.Document.Page.page_number` refers to the page number in the original document. This configuration only applies to online processing with `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument`. `page_range` can be only one of the following: ||
| `individual_page_selector` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector` Which pages to process (1-indexed). |
| `from_start` | `int32` Only process certain pages from the start. Process all if the document has fewer pages. |
| `from_end` | `int32` Only process certain pages from the end, same as above. |

## IndividualPageSelector

A list of individual page numbers.

| Fields ||
|---|---|
| `pages[]` | `int32` Optional. Indices of the pages (starting from 1). |

## LayoutConfig

Serving config for layout parser processor.

| Fields ||
|---|---|
| `chunking_config` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig` Optional. Config for chunking in layout parser processor. |
| `return_images` | `bool` Optional. Whether to include images in layout parser processor response. |
| `return_bounding_boxes` | `bool` Optional. Whether to include bounding boxes in layout parser processor response. |
| `enable_image_annotation` | `bool` Optional. Whether to include image annotations in layout parser response. |
| `enable_table_annotation` | `bool` Optional. Whether to include table annotations in layout parser response. |

## ChunkingConfig

Serving config for chunking.

| Fields ||
|---|---|
| `chunk_size` | `int32` Optional. The chunk sizes to use when splitting documents, in order of level. |
| `include_ancestor_headings` | `bool` Optional. Whether or not to include ancestor headings when splitting. |

## ProcessRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument` method.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` or `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` to use for processing. If a `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` is specified, the server will use its `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor.FIELDS.string.google.cloud.documentai.v1.Processor.default_processor_version`. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` Authorization requires one or more of the following [IAM](https://cloud.google.com/iam/docs/) permissions on the specified resource `name`: - `documentai.processors.processOnline` - `documentai.processorVersions.processOnline` |
| `skip_human_review (deprecated)` | `bool` > [!WARNING] > This item is deprecated! Whether human review should be skipped for this request. Default to `false`. |
| `field_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Specifies which fields to include in the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessResponse.FIELDS.google.cloud.documentai.v1.Document.google.cloud.documentai.v1.ProcessResponse.document` output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. |
| `process_options` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessOptions` Inference-time options for the process API |
| `labels` | `map<string, string>` Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. |
| `imageless_mode` | `bool` Optional. Option to remove images from the document. |
| Union field `source`. The document payload. `source` can be only one of the following: ||
| `inline_document` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document` An inline document proto. |
| `raw_document` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.RawDocument` A raw document content (bytes). |
| `gcs_document` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.GcsDocument` A raw document on Google Cloud Storage. |

## ProcessResponse

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument` method.

| Fields ||
|---|---|
| `document` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document` The document payload, will populate fields based on the processor's behavior. |
| `human_review_status` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.HumanReviewStatus` The status of human review on the processed document. |

## Processor

The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.

| Fields ||
|---|---|
| `name` | `string` Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` |
| `type` | `string` The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes`. |
| `display_name` | `string` The display name of the processor. |
| `state` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor.State` Output only. The state of the processor. |
| `default_processor_version` | `string` The default processor version. |
| `processor_version_aliases[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersionAlias` Output only. The processor version aliases. |
| `process_endpoint` | `string` Output only. Immutable. The http endpoint that can be called to invoke processing. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The time the processor was created. |
| `kms_key_name` | `string` The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `satisfies_pzi` | `bool` Output only. Reserved for future use. |
| `active_schema_version` | `string` Optional. SchemaVersion used by the Processor. It is the same as Processor's `DatasetSchema.schema_version` Format is \`projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}. |

## State

The possible states of the processor.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The processor is in an unspecified state. |
| `ENABLED` | The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized. |
| `DISABLED` | The processor is disabled. |
| `ENABLING` | The processor is being enabled, will become `ENABLED` if successful. |
| `DISABLING` | The processor is being disabled, will become `DISABLED` if successful. |
| `CREATING` | The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet. |
| `FAILED` | The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled. |
| `DELETING` | The processor is being deleted, will be removed if successful. |

## ProcessorType

A processor type is responsible for performing a certain document understanding task on a certain type of document.

| Fields ||
|---|---|
| `name` | `string` The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}` |
| `type` | `string` The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. |
| `category` | `string` The processor category, used by UI to group processor types. |
| `available_locations[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorType.LocationInfo` The locations in which this processor is available. |
| `allow_creation` | `bool` Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access. |
| `launch_stage` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.api#google.api.LaunchStage` Launch stage of the processor type |
| `sample_document_uris[]` | `string` A set of Cloud Storage URIs of sample documents for this processor. |

## LocationInfo

The location information about where the processor is available.

| Fields ||
|---|---|
| `location_id` | `string` The location ID. For supported locations, refer to [regional and multi-regional support](https://docs.cloud.google.com/document-ai/docs/regions). |

## ProcessorVersion

A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` |
| `display_name` | `string` The display name of the processor version. |
| `document_schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema` Output only. The schema of the processor version. Describes the output. |
| `state` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.State` Output only. The state of the processor version. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The time the processor version was created. |
| `latest_evaluation` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.EvaluationReference` Output only. The most recently invoked evaluation for the processor version. |
| `kms_key_name` | `string` Output only. The KMS key name used for encryption. |
| `kms_key_version_name` | `string` Output only. The KMS key version with which data is encrypted. |
| `google_managed` | `bool` Output only. Denotes that this `ProcessorVersion` is managed by Google. |
| `deprecation_info` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo` Output only. If set, information about the eventual deprecation of this version. |
| `model_type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.ModelType` Output only. The model type of this processor version. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `satisfies_pzi` | `bool` Output only. Reserved for future use. |
| `gen_ai_model_info` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo` Output only. Information about Generative AI model-based processor versions. |

## DeprecationInfo

Information about the upcoming deprecation of this processor version.

| Fields ||
|---|---|
| `deprecation_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The time at which this processor version will be deprecated. |
| `replacement_processor_version` | `string` If set, the processor version that will be used as a replacement. |

## GenAiModelInfo

Information about Generative AI model-based processor versions.

| Fields ||
|---|---|
| Union field `model_info`. The processor version is either a pretrained Google-managed foundation model or a custom Generative AI model created by the user. `model_info` can be only one of the following: ||
| `foundation_gen_ai_model_info` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfo` Information for a pretrained Google-managed foundation model. |
| `custom_gen_ai_model_info` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo` Information for a custom Generative AI model created by the user. |

## CustomGenAiModelInfo

Information for a custom Generative AI model created by the user. These are created with `Create New Version` in either the `Call foundation
model` or `Fine tuning` tabs.

| Fields ||
|---|---|
| `custom_model_type` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType` The type of custom model created by the user. |
| `base_processor_version_id` | `string` The base processor version ID for the custom model. |

## CustomModelType

The type of custom model created by the user.

| Enums ||
|---|---|
| `CUSTOM_MODEL_TYPE_UNSPECIFIED` | The model type is unspecified. |
| `VERSIONED_FOUNDATION` | The model is a versioned foundation model. |
| `FINE_TUNED` | The model is a finetuned foundation model. |

## FoundationGenAiModelInfo

Information for a pretrained Google-managed foundation model.

| Fields ||
|---|---|
| `finetuning_allowed` | `bool` Whether fine tuning is allowed for this base processor version. |
| `min_train_labeled_documents` | `int32` The minimum number of labeled documents in the training dataset required for fine tuning. |

## ModelType

The possible model types of the processor version.

| Enums ||
|---|---|
| `MODEL_TYPE_UNSPECIFIED` | The processor version has unspecified model type. |
| `MODEL_TYPE_GENERATIVE` | The processor version has generative model type. |
| `MODEL_TYPE_CUSTOM` | The processor version has custom model type. |

## State

The possible states of the processor version.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The processor version is in an unspecified state. |
| `DEPLOYED` | The processor version is deployed and can be used for processing. |
| `DEPLOYING` | The processor version is being deployed. |
| `UNDEPLOYED` | The processor version is not deployed and cannot be used for processing. |
| `UNDEPLOYING` | The processor version is being undeployed. |
| `CREATING` | The processor version is being created. |
| `DELETING` | The processor version is being deleted. |
| `FAILED` | The processor version failed and is in an indeterminate state. |
| `IMPORTING` | The processor version is being imported. |

## ProcessorVersionAlias

Contains the alias and the aliased resource name of processor version.

| Fields ||
|---|---|
| `alias` | `string` The alias in the form of `processor_version` resource name. |
| `processor_version` | `string` The resource name of aliased processor version. |

## RawDocument

Payload message of raw document content (bytes).

| Fields ||
|---|---|
| `content` | `bytes` Inline document content. |
| `mime_type` | `string` An IANA MIME type (RFC6838) indicating the nature and format of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.RawDocument.FIELDS.bytes.google.cloud.documentai.v1.RawDocument.content`. |
| `display_name` | `string` The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not specified, a default ID is generated. |

## RawDocuments

Specifies a set of raw documents.

| Fields ||
|---|---|
| `documents[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.RawDocument` Specifies raw document content and mime type. |

## ReviewDocumentOperationMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |
| `question_id` | `string` The Crowd Compute question ID. |

## ReviewDocumentRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument` method.

| Fields ||
|---|---|
| `human_review_config` | `string` Required. The resource name of the `HumanReviewConfig` that the document will be reviewed with. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `humanReviewConfig`: - `documentai.humanReviewConfigs.review` |
| `enable_schema_validation` | `bool` Whether the validation should be performed on the ad-hoc review request. |
| `priority` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentRequest.Priority` The priority of the human review task. |
| `document_schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema` The document schema of the human review task. |
| Union field `source`. The document payload. `source` can be only one of the following: ||
| `inline_document` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Document` An inline document proto. |

## Priority

The priority level of the human review task.

| Enums ||
|---|---|
| `DEFAULT` | The default priority level. |
| `URGENT` | The urgent priority level. The labeling manager should allocate labeler resource to the urgent task queue to respect this priority level. |

## ReviewDocumentResponse

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument` method.

| Fields ||
|---|---|
| `gcs_destination` | `string` The Cloud Storage uri for the human reviewed document if the review is succeeded. |
| `state` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ReviewDocumentResponse.State` The state of the review operation. |
| `rejection_reason` | `string` The reason why the review is rejected by reviewer. |

## State

Possible states of the review operation.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The default value. This value is used if the state is omitted. |
| `REJECTED` | The review operation is rejected by the reviewer. |
| `SUCCEEDED` | The review operation is succeeded. |

## SchemaGenerationHistory

The history of schema generation iterations.

| Fields ||
|---|---|
| `iterations[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaGenerationIteration` Required. Previous prompt-answers in a chronological order. |

## SchemaGenerationIteration

A single iteration of the schema generation.

| Fields ||
|---|---|
| `prompt` | `string` Optional. The prompt used for the iteration. |
| `generated_schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` Required. The schema version generated by the model. |
| `adjusted_schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` Optional. The previous schema version adjusted by the model. |

## SchemaVersion

SchemaVersion is a version of the Schema which is created in SchemaGroup.

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` |
| `display_name` | `string` Required. The user-defined name of the SchemaVersion. |
| `labels` | `map<string, string>` Optional. The Google Cloud labels for the SchemaVersion. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The time when the SchemaVersion was created. |
| `schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema` Required. The schema of the SchemaVersion. |

## SetDefaultProcessorVersionMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## SetDefaultProcessorVersionRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion` method.

| Fields ||
|---|---|
| `processor` | `string` Required. The resource name of the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.Processor` to change default version. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `processor`: - `documentai.processors.processBatch` |
| `default_processor_version` | `string` Required. The resource name of child `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` to use as default. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` |

## SetDefaultProcessorVersionResponse

This type has no fields.
Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion` method.

## TrainProcessorVersionMetadata

The metadata that represents a processor version being created.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |
| `training_dataset_validation` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation` The training dataset validation information. |
| `test_dataset_validation` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation` The test dataset validation information. |

## DatasetValidation

The dataset validation information. This includes any and all errors with documents and the dataset.

| Fields ||
|---|---|
| `document_error_count` | `int32` The total number of document errors. |
| `dataset_error_count` | `int32` The total number of dataset errors. |
| `document_errors[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.rpc#google.rpc.Status` Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training. |
| `dataset_errors[]` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.rpc#google.rpc.Status` Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training. |

## TrainProcessorVersionRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion` method.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent (project, location and processor) to create the new version for. Format: `projects/{project}/locations/{location}/processors/{processor}`. |
| `processor_version` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion` Required. The processor version to be created. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `processorVersion`: - `documentai.processorVersions.create` |
| `document_schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentSchema` Optional. The schema the processor version will be trained with. |
| `input_data` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData` Optional. The input data used to train the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion`. |
| `base_processor_version` | `string` Optional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. |
| Union field `processor_flags`. `processor_flags` can be only one of the following: ||
| `custom_document_extraction_options` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions` Options to control Custom Document Extraction (CDE) Processor. |
| `foundation_model_tuning_options` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions` Options to control foundation model tuning of a processor. |

## CustomDocumentExtractionOptions

Options to control the training of the Custom Document Extraction (CDE) Processor.

| Fields ||
|---|---|
| `training_method` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod` Optional. Training method to use for CDE training. |

## TrainingMethod

Training Method for CDE. `TRAINING_METHOD_UNSPECIFIED` will fall back to `MODEL_BASED`.

| Enums ||
|---|---|
| `TRAINING_METHOD_UNSPECIFIED` |   |
| `MODEL_BASED` |   |
| `TEMPLATE_BASED` |   |

## FoundationModelTuningOptions

Options to control foundation model tuning of the processor.

| Fields ||
|---|---|
| `train_steps` | `int32` 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. |
| `learning_rate_multiplier` | `float` 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. |

## InputData

The input data used to train a new `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.ProcessorVersion`.

| Fields ||
|---|---|
| `training_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchDocumentsInputConfig` The documents used for training the new version. |
| `test_documents` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.BatchDocumentsInputConfig` The documents used for testing the trained version. |

## TrainProcessorVersionResponse

The response for `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion`.

| Fields ||
|---|---|
| `processor_version` | `string` The resource name of the processor version produced by training. |

## UndeployProcessorVersionMetadata

The long-running operation metadata for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion` method.

| Fields ||
|---|---|
| `common_metadata` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.CommonOperationMetadata` The basic metadata of the long-running operation. |

## UndeployProcessorVersionRequest

Request message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion` method.

| Fields ||
|---|---|
| `name` | `string` Required. The processor version resource name to be undeployed. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `documentai.processorVersions.update` |

## UndeployProcessorVersionResponse

This type has no fields.
Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion` method.

## UpdateSchemaRequest

Request message for UpdateSchema.

| Fields ||
|---|---|
| `schema` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.NextSchema` Required. The patch Schema object. Fields specified by the `updateMask` will be copied from the patch Schema into the Schema under update. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `schema`: - `documentai.schemas.update` |
| `update_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - `display_name` - `labels` |

## UpdateSchemaVersionRequest

Request message for UpdateSchemaVersion.

| Fields ||
|---|---|
| `schema_version` | `https://docs.cloud.google.com/document-ai/docs/reference/rpc/google.cloud.documentai.v1#google.cloud.documentai.v1.SchemaVersion` Required. The patch SchemaVersion object. Fields specified by the `updateMask` will be copied from the patch SchemaVersion into the SchemaVersion under update. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `schemaVersion`: - `documentai.schemaversions.update` |
| `update_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - `display_name` - `labels` |

## Vertex

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

| Fields ||
|---|---|
| `x` | `int32` X coordinate. |
| `y` | `int32` Y coordinate (starts from the top of the image). |