1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package documentai aliases all exported identifiers in package 18 // "cloud.google.com/go/documentai/apiv1/documentaipb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package documentai 24 25 import ( 26 src "cloud.google.com/go/documentai/apiv1/documentaipb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/documentai/apiv1/documentaipb 31 const ( 32 BatchProcessMetadata_CANCELLED = src.BatchProcessMetadata_CANCELLED 33 BatchProcessMetadata_CANCELLING = src.BatchProcessMetadata_CANCELLING 34 BatchProcessMetadata_FAILED = src.BatchProcessMetadata_FAILED 35 BatchProcessMetadata_RUNNING = src.BatchProcessMetadata_RUNNING 36 BatchProcessMetadata_STATE_UNSPECIFIED = src.BatchProcessMetadata_STATE_UNSPECIFIED 37 BatchProcessMetadata_SUCCEEDED = src.BatchProcessMetadata_SUCCEEDED 38 BatchProcessMetadata_WAITING = src.BatchProcessMetadata_WAITING 39 CommonOperationMetadata_CANCELLED = src.CommonOperationMetadata_CANCELLED 40 CommonOperationMetadata_CANCELLING = src.CommonOperationMetadata_CANCELLING 41 CommonOperationMetadata_FAILED = src.CommonOperationMetadata_FAILED 42 CommonOperationMetadata_RUNNING = src.CommonOperationMetadata_RUNNING 43 CommonOperationMetadata_STATE_UNSPECIFIED = src.CommonOperationMetadata_STATE_UNSPECIFIED 44 CommonOperationMetadata_SUCCEEDED = src.CommonOperationMetadata_SUCCEEDED 45 DocumentSchema_EntityType_Property_OCCURRENCE_TYPE_UNSPECIFIED = src.DocumentSchema_EntityType_Property_OCCURRENCE_TYPE_UNSPECIFIED 46 DocumentSchema_EntityType_Property_OPTIONAL_MULTIPLE = src.DocumentSchema_EntityType_Property_OPTIONAL_MULTIPLE 47 DocumentSchema_EntityType_Property_OPTIONAL_ONCE = src.DocumentSchema_EntityType_Property_OPTIONAL_ONCE 48 DocumentSchema_EntityType_Property_REQUIRED_MULTIPLE = src.DocumentSchema_EntityType_Property_REQUIRED_MULTIPLE 49 DocumentSchema_EntityType_Property_REQUIRED_ONCE = src.DocumentSchema_EntityType_Property_REQUIRED_ONCE 50 Document_PageAnchor_PageRef_BLOCK = src.Document_PageAnchor_PageRef_BLOCK 51 Document_PageAnchor_PageRef_FORM_FIELD = src.Document_PageAnchor_PageRef_FORM_FIELD 52 Document_PageAnchor_PageRef_LAYOUT_TYPE_UNSPECIFIED = src.Document_PageAnchor_PageRef_LAYOUT_TYPE_UNSPECIFIED 53 Document_PageAnchor_PageRef_LINE = src.Document_PageAnchor_PageRef_LINE 54 Document_PageAnchor_PageRef_PARAGRAPH = src.Document_PageAnchor_PageRef_PARAGRAPH 55 Document_PageAnchor_PageRef_TABLE = src.Document_PageAnchor_PageRef_TABLE 56 Document_PageAnchor_PageRef_TOKEN = src.Document_PageAnchor_PageRef_TOKEN 57 Document_PageAnchor_PageRef_VISUAL_ELEMENT = src.Document_PageAnchor_PageRef_VISUAL_ELEMENT 58 Document_Page_Layout_ORIENTATION_UNSPECIFIED = src.Document_Page_Layout_ORIENTATION_UNSPECIFIED 59 Document_Page_Layout_PAGE_DOWN = src.Document_Page_Layout_PAGE_DOWN 60 Document_Page_Layout_PAGE_LEFT = src.Document_Page_Layout_PAGE_LEFT 61 Document_Page_Layout_PAGE_RIGHT = src.Document_Page_Layout_PAGE_RIGHT 62 Document_Page_Layout_PAGE_UP = src.Document_Page_Layout_PAGE_UP 63 Document_Page_Token_DetectedBreak_HYPHEN = src.Document_Page_Token_DetectedBreak_HYPHEN 64 Document_Page_Token_DetectedBreak_SPACE = src.Document_Page_Token_DetectedBreak_SPACE 65 Document_Page_Token_DetectedBreak_TYPE_UNSPECIFIED = src.Document_Page_Token_DetectedBreak_TYPE_UNSPECIFIED 66 Document_Page_Token_DetectedBreak_WIDE_SPACE = src.Document_Page_Token_DetectedBreak_WIDE_SPACE 67 Document_Provenance_ADD = src.Document_Provenance_ADD 68 Document_Provenance_EVAL_APPROVED = src.Document_Provenance_EVAL_APPROVED 69 Document_Provenance_EVAL_REQUESTED = src.Document_Provenance_EVAL_REQUESTED 70 Document_Provenance_EVAL_SKIPPED = src.Document_Provenance_EVAL_SKIPPED 71 Document_Provenance_OPERATION_TYPE_UNSPECIFIED = src.Document_Provenance_OPERATION_TYPE_UNSPECIFIED 72 Document_Provenance_REMOVE = src.Document_Provenance_REMOVE 73 Document_Provenance_REPLACE = src.Document_Provenance_REPLACE 74 HumanReviewStatus_ERROR = src.HumanReviewStatus_ERROR 75 HumanReviewStatus_IN_PROGRESS = src.HumanReviewStatus_IN_PROGRESS 76 HumanReviewStatus_SKIPPED = src.HumanReviewStatus_SKIPPED 77 HumanReviewStatus_STATE_UNSPECIFIED = src.HumanReviewStatus_STATE_UNSPECIFIED 78 HumanReviewStatus_VALIDATION_PASSED = src.HumanReviewStatus_VALIDATION_PASSED 79 ProcessorVersion_CREATING = src.ProcessorVersion_CREATING 80 ProcessorVersion_DELETING = src.ProcessorVersion_DELETING 81 ProcessorVersion_DEPLOYED = src.ProcessorVersion_DEPLOYED 82 ProcessorVersion_DEPLOYING = src.ProcessorVersion_DEPLOYING 83 ProcessorVersion_FAILED = src.ProcessorVersion_FAILED 84 ProcessorVersion_STATE_UNSPECIFIED = src.ProcessorVersion_STATE_UNSPECIFIED 85 ProcessorVersion_UNDEPLOYED = src.ProcessorVersion_UNDEPLOYED 86 ProcessorVersion_UNDEPLOYING = src.ProcessorVersion_UNDEPLOYING 87 Processor_CREATING = src.Processor_CREATING 88 Processor_DELETING = src.Processor_DELETING 89 Processor_DISABLED = src.Processor_DISABLED 90 Processor_DISABLING = src.Processor_DISABLING 91 Processor_ENABLED = src.Processor_ENABLED 92 Processor_ENABLING = src.Processor_ENABLING 93 Processor_FAILED = src.Processor_FAILED 94 Processor_STATE_UNSPECIFIED = src.Processor_STATE_UNSPECIFIED 95 ReviewDocumentRequest_DEFAULT = src.ReviewDocumentRequest_DEFAULT 96 ReviewDocumentRequest_URGENT = src.ReviewDocumentRequest_URGENT 97 ReviewDocumentResponse_REJECTED = src.ReviewDocumentResponse_REJECTED 98 ReviewDocumentResponse_STATE_UNSPECIFIED = src.ReviewDocumentResponse_STATE_UNSPECIFIED 99 ReviewDocumentResponse_SUCCEEDED = src.ReviewDocumentResponse_SUCCEEDED 100 ) 101 102 // Deprecated: Please use vars in: cloud.google.com/go/documentai/apiv1/documentaipb 103 var ( 104 BatchProcessMetadata_State_name = src.BatchProcessMetadata_State_name 105 BatchProcessMetadata_State_value = src.BatchProcessMetadata_State_value 106 CommonOperationMetadata_State_name = src.CommonOperationMetadata_State_name 107 CommonOperationMetadata_State_value = src.CommonOperationMetadata_State_value 108 DocumentSchema_EntityType_Property_OccurrenceType_name = src.DocumentSchema_EntityType_Property_OccurrenceType_name 109 DocumentSchema_EntityType_Property_OccurrenceType_value = src.DocumentSchema_EntityType_Property_OccurrenceType_value 110 Document_PageAnchor_PageRef_LayoutType_name = src.Document_PageAnchor_PageRef_LayoutType_name 111 Document_PageAnchor_PageRef_LayoutType_value = src.Document_PageAnchor_PageRef_LayoutType_value 112 Document_Page_Layout_Orientation_name = src.Document_Page_Layout_Orientation_name 113 Document_Page_Layout_Orientation_value = src.Document_Page_Layout_Orientation_value 114 Document_Page_Token_DetectedBreak_Type_name = src.Document_Page_Token_DetectedBreak_Type_name 115 Document_Page_Token_DetectedBreak_Type_value = src.Document_Page_Token_DetectedBreak_Type_value 116 Document_Provenance_OperationType_name = src.Document_Provenance_OperationType_name 117 Document_Provenance_OperationType_value = src.Document_Provenance_OperationType_value 118 File_google_cloud_documentai_v1_barcode_proto = src.File_google_cloud_documentai_v1_barcode_proto 119 File_google_cloud_documentai_v1_document_io_proto = src.File_google_cloud_documentai_v1_document_io_proto 120 File_google_cloud_documentai_v1_document_processor_service_proto = src.File_google_cloud_documentai_v1_document_processor_service_proto 121 File_google_cloud_documentai_v1_document_proto = src.File_google_cloud_documentai_v1_document_proto 122 File_google_cloud_documentai_v1_document_schema_proto = src.File_google_cloud_documentai_v1_document_schema_proto 123 File_google_cloud_documentai_v1_geometry_proto = src.File_google_cloud_documentai_v1_geometry_proto 124 File_google_cloud_documentai_v1_operation_metadata_proto = src.File_google_cloud_documentai_v1_operation_metadata_proto 125 File_google_cloud_documentai_v1_processor_proto = src.File_google_cloud_documentai_v1_processor_proto 126 File_google_cloud_documentai_v1_processor_type_proto = src.File_google_cloud_documentai_v1_processor_type_proto 127 HumanReviewStatus_State_name = src.HumanReviewStatus_State_name 128 HumanReviewStatus_State_value = src.HumanReviewStatus_State_value 129 ProcessorVersion_State_name = src.ProcessorVersion_State_name 130 ProcessorVersion_State_value = src.ProcessorVersion_State_value 131 Processor_State_name = src.Processor_State_name 132 Processor_State_value = src.Processor_State_value 133 ReviewDocumentRequest_Priority_name = src.ReviewDocumentRequest_Priority_name 134 ReviewDocumentRequest_Priority_value = src.ReviewDocumentRequest_Priority_value 135 ReviewDocumentResponse_State_name = src.ReviewDocumentResponse_State_name 136 ReviewDocumentResponse_State_value = src.ReviewDocumentResponse_State_value 137 ) 138 139 // Encodes the detailed information of a barcode. 140 // 141 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 142 type Barcode = src.Barcode 143 144 // The common config to specify a set of documents used as input. 145 // 146 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 147 type BatchDocumentsInputConfig = src.BatchDocumentsInputConfig 148 type BatchDocumentsInputConfig_GcsDocuments = src.BatchDocumentsInputConfig_GcsDocuments 149 type BatchDocumentsInputConfig_GcsPrefix = src.BatchDocumentsInputConfig_GcsPrefix 150 151 // The long running operation metadata for batch process method. 152 // 153 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 154 type BatchProcessMetadata = src.BatchProcessMetadata 155 156 // The status of a each individual document in the batch process. 157 // 158 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 159 type BatchProcessMetadata_IndividualProcessStatus = src.BatchProcessMetadata_IndividualProcessStatus 160 161 // Possible states of the batch processing operation. 162 // 163 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 164 type BatchProcessMetadata_State = src.BatchProcessMetadata_State 165 166 // Request message for batch process document method. 167 // 168 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 169 type BatchProcessRequest = src.BatchProcessRequest 170 171 // Response message for batch process document method. 172 // 173 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 174 type BatchProcessResponse = src.BatchProcessResponse 175 176 // A bounding polygon for the detected image annotation. 177 // 178 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 179 type BoundingPoly = src.BoundingPoly 180 181 // The common metadata for long running operations. 182 // 183 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 184 type CommonOperationMetadata = src.CommonOperationMetadata 185 186 // State of the longrunning operation. 187 // 188 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 189 type CommonOperationMetadata_State = src.CommonOperationMetadata_State 190 191 // Request message for create a processor. Notice this request is sent to a 192 // regionalized backend service, and if the processor type is not available on 193 // that region, the creation will fail. 194 // 195 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 196 type CreateProcessorRequest = src.CreateProcessorRequest 197 198 // The long running operation metadata for delete processor method. 199 // 200 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 201 type DeleteProcessorMetadata = src.DeleteProcessorMetadata 202 203 // Request message for the delete processor method. 204 // 205 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 206 type DeleteProcessorRequest = src.DeleteProcessorRequest 207 208 // The long running operation metadata for delete processor version method. 209 // 210 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 211 type DeleteProcessorVersionMetadata = src.DeleteProcessorVersionMetadata 212 213 // Request message for the delete processor version method. 214 // 215 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 216 type DeleteProcessorVersionRequest = src.DeleteProcessorVersionRequest 217 218 // The long running operation metadata for deploy processor version method. 219 // 220 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 221 type DeployProcessorVersionMetadata = src.DeployProcessorVersionMetadata 222 223 // Request message for the deploy processor version method. 224 // 225 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 226 type DeployProcessorVersionRequest = src.DeployProcessorVersionRequest 227 228 // Response message for the deploy processor version method. 229 // 230 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 231 type DeployProcessorVersionResponse = src.DeployProcessorVersionResponse 232 233 // The long running operation metadata for disable processor method. 234 // 235 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 236 type DisableProcessorMetadata = src.DisableProcessorMetadata 237 238 // Request message for the disable processor method. 239 // 240 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 241 type DisableProcessorRequest = src.DisableProcessorRequest 242 243 // Response message for the disable processor method. Intentionally empty 244 // proto for adding fields in future. 245 // 246 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 247 type DisableProcessorResponse = src.DisableProcessorResponse 248 249 // Document represents the canonical document resource in Document AI. It is 250 // an interchange format that provides insights into documents and allows for 251 // collaboration between users and Document AI to iterate and optimize for 252 // quality. 253 // 254 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 255 type Document = src.Document 256 257 // Config that controls the output of documents. All documents will be written 258 // as a JSON file. 259 // 260 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 261 type DocumentOutputConfig = src.DocumentOutputConfig 262 263 // The configuration used when outputting documents. 264 // 265 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 266 type DocumentOutputConfig_GcsOutputConfig = src.DocumentOutputConfig_GcsOutputConfig 267 type DocumentOutputConfig_GcsOutputConfig_ = src.DocumentOutputConfig_GcsOutputConfig_ 268 269 // DocumentProcessorServiceClient is the client API for 270 // DocumentProcessorService service. For semantics around ctx use and 271 // closing/ending streaming RPCs, please refer to 272 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 273 // 274 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 275 type DocumentProcessorServiceClient = src.DocumentProcessorServiceClient 276 277 // DocumentProcessorServiceServer is the server API for 278 // DocumentProcessorService service. 279 // 280 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 281 type DocumentProcessorServiceServer = src.DocumentProcessorServiceServer 282 283 // The schema defines the output of the processed document by a processor. 284 // 285 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 286 type DocumentSchema = src.DocumentSchema 287 288 // EntityType is the wrapper of a label of the corresponding model with 289 // detailed attributes and limitations for entity-based processors. Multiple 290 // types can also compose a dependency tree to represent nested types. 291 // 292 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 293 type DocumentSchema_EntityType = src.DocumentSchema_EntityType 294 295 // Defines the a list of enum values. 296 // 297 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 298 type DocumentSchema_EntityType_EnumValues = src.DocumentSchema_EntityType_EnumValues 299 type DocumentSchema_EntityType_EnumValues_ = src.DocumentSchema_EntityType_EnumValues_ 300 301 // Defines properties that can be part of the entity type. 302 // 303 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 304 type DocumentSchema_EntityType_Property = src.DocumentSchema_EntityType_Property 305 306 // Types of occurrences of the entity type in the document. Note: this 307 // represents the number of instances of an entity types, not number of 308 // mentions of a given entity instance. 309 // 310 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 311 type DocumentSchema_EntityType_Property_OccurrenceType = src.DocumentSchema_EntityType_Property_OccurrenceType 312 313 // Metadata for global schema behavior. 314 // 315 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 316 type DocumentSchema_Metadata = src.DocumentSchema_Metadata 317 type Document_Content = src.Document_Content 318 319 // An entity that could be a phrase in the text or a property that belongs to 320 // the document. It is a known entity type, such as a person, an organization, 321 // or location. 322 // 323 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 324 type Document_Entity = src.Document_Entity 325 326 // Relationship between 327 // [Entities][google.cloud.documentai.v1.Document.Entity]. 328 // 329 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 330 type Document_EntityRelation = src.Document_EntityRelation 331 332 // Parsed and normalized entity value. 333 // 334 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 335 type Document_Entity_NormalizedValue = src.Document_Entity_NormalizedValue 336 type Document_Entity_NormalizedValue_AddressValue = src.Document_Entity_NormalizedValue_AddressValue 337 type Document_Entity_NormalizedValue_BooleanValue = src.Document_Entity_NormalizedValue_BooleanValue 338 type Document_Entity_NormalizedValue_DateValue = src.Document_Entity_NormalizedValue_DateValue 339 type Document_Entity_NormalizedValue_DatetimeValue = src.Document_Entity_NormalizedValue_DatetimeValue 340 type Document_Entity_NormalizedValue_FloatValue = src.Document_Entity_NormalizedValue_FloatValue 341 type Document_Entity_NormalizedValue_IntegerValue = src.Document_Entity_NormalizedValue_IntegerValue 342 type Document_Entity_NormalizedValue_MoneyValue = src.Document_Entity_NormalizedValue_MoneyValue 343 344 // A page in a [Document][google.cloud.documentai.v1.Document]. 345 // 346 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 347 type Document_Page = src.Document_Page 348 349 // Referencing the visual context of the entity in the 350 // [Document.pages][google.cloud.documentai.v1.Document.pages]. Page anchors 351 // can be cross-page, consist of multiple bounding polygons and optionally 352 // reference specific layout element types. 353 // 354 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 355 type Document_PageAnchor = src.Document_PageAnchor 356 357 // Represents a weak reference to a page element within a document. 358 // 359 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 360 type Document_PageAnchor_PageRef = src.Document_PageAnchor_PageRef 361 362 // The type of layout that is being referenced. 363 // 364 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 365 type Document_PageAnchor_PageRef_LayoutType = src.Document_PageAnchor_PageRef_LayoutType 366 367 // A block has a set of lines (collected into paragraphs) that have a common 368 // line-spacing and orientation. 369 // 370 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 371 type Document_Page_Block = src.Document_Page_Block 372 373 // A detected barcode. 374 // 375 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 376 type Document_Page_DetectedBarcode = src.Document_Page_DetectedBarcode 377 378 // Detected language for a structural component. 379 // 380 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 381 type Document_Page_DetectedLanguage = src.Document_Page_DetectedLanguage 382 383 // Dimension for the page. 384 // 385 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 386 type Document_Page_Dimension = src.Document_Page_Dimension 387 388 // A form field detected on the page. 389 // 390 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 391 type Document_Page_FormField = src.Document_Page_FormField 392 393 // Rendered image contents for this page. 394 // 395 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 396 type Document_Page_Image = src.Document_Page_Image 397 398 // Visual element describing a layout unit on a page. 399 // 400 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 401 type Document_Page_Layout = src.Document_Page_Layout 402 403 // Detected human reading orientation. 404 // 405 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 406 type Document_Page_Layout_Orientation = src.Document_Page_Layout_Orientation 407 408 // A collection of tokens that a human would perceive as a line. Does not 409 // cross column boundaries, can be horizontal, vertical, etc. 410 // 411 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 412 type Document_Page_Line = src.Document_Page_Line 413 414 // Representation for transformation matrix, intended to be compatible and 415 // used with OpenCV format for image manipulation. 416 // 417 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 418 type Document_Page_Matrix = src.Document_Page_Matrix 419 420 // A collection of lines that a human would perceive as a paragraph. 421 // 422 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 423 type Document_Page_Paragraph = src.Document_Page_Paragraph 424 425 // A detected symbol. 426 // 427 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 428 type Document_Page_Symbol = src.Document_Page_Symbol 429 430 // A table representation similar to HTML table structure. 431 // 432 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 433 type Document_Page_Table = src.Document_Page_Table 434 435 // A cell representation inside the table. 436 // 437 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 438 type Document_Page_Table_TableCell = src.Document_Page_Table_TableCell 439 440 // A row of table cells. 441 // 442 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 443 type Document_Page_Table_TableRow = src.Document_Page_Table_TableRow 444 445 // A detected token. 446 // 447 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 448 type Document_Page_Token = src.Document_Page_Token 449 450 // Detected break at the end of a 451 // [Token][google.cloud.documentai.v1.Document.Page.Token]. 452 // 453 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 454 type Document_Page_Token_DetectedBreak = src.Document_Page_Token_DetectedBreak 455 456 // Enum to denote the type of break found. 457 // 458 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 459 type Document_Page_Token_DetectedBreak_Type = src.Document_Page_Token_DetectedBreak_Type 460 461 // Detected non-text visual elements e.g. checkbox, signature etc. on the 462 // page. 463 // 464 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 465 type Document_Page_VisualElement = src.Document_Page_VisualElement 466 467 // Structure to identify provenance relationships between annotations in 468 // different revisions. 469 // 470 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 471 type Document_Provenance = src.Document_Provenance 472 473 // If a processor or agent does an explicit operation on existing elements. 474 // 475 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 476 type Document_Provenance_OperationType = src.Document_Provenance_OperationType 477 478 // The parent element the current element is based on. Used for 479 // referencing/aligning, removal and replacement operations. 480 // 481 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 482 type Document_Provenance_Parent = src.Document_Provenance_Parent 483 484 // Contains past or forward revisions of this document. 485 // 486 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 487 type Document_Revision = src.Document_Revision 488 type Document_Revision_Agent = src.Document_Revision_Agent 489 490 // Human Review information of the document. 491 // 492 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 493 type Document_Revision_HumanReview = src.Document_Revision_HumanReview 494 type Document_Revision_Processor = src.Document_Revision_Processor 495 496 // For a large document, sharding may be performed to produce several document 497 // shards. Each document shard contains this field to detail which shard it is. 498 // 499 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 500 type Document_ShardInfo = src.Document_ShardInfo 501 502 // Annotation for common text style attributes. This adheres to CSS 503 // conventions as much as possible. 504 // 505 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 506 type Document_Style = src.Document_Style 507 508 // Font size with unit. 509 // 510 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 511 type Document_Style_FontSize = src.Document_Style_FontSize 512 513 // Text reference indexing into the 514 // [Document.text][google.cloud.documentai.v1.Document.text]. 515 // 516 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 517 type Document_TextAnchor = src.Document_TextAnchor 518 519 // A text segment in the 520 // [Document.text][google.cloud.documentai.v1.Document.text]. The indices may 521 // be out of bounds which indicate that the text extends into another document 522 // shard for large sharded documents. See 523 // [ShardInfo.text_offset][google.cloud.documentai.v1.Document.ShardInfo.text_offset] 524 // 525 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 526 type Document_TextAnchor_TextSegment = src.Document_TextAnchor_TextSegment 527 528 // This message is used for text changes aka. OCR corrections. 529 // 530 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 531 type Document_TextChange = src.Document_TextChange 532 type Document_Uri = src.Document_Uri 533 534 // The long running operation metadata for enable processor method. 535 // 536 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 537 type EnableProcessorMetadata = src.EnableProcessorMetadata 538 539 // Request message for the enable processor method. 540 // 541 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 542 type EnableProcessorRequest = src.EnableProcessorRequest 543 544 // Response message for the enable processor method. Intentionally empty proto 545 // for adding fields in future. 546 // 547 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 548 type EnableProcessorResponse = src.EnableProcessorResponse 549 550 // Request message for fetch processor types. 551 // 552 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 553 type FetchProcessorTypesRequest = src.FetchProcessorTypesRequest 554 555 // Response message for fetch processor types. 556 // 557 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 558 type FetchProcessorTypesResponse = src.FetchProcessorTypesResponse 559 560 // Specifies a document stored on Cloud Storage. 561 // 562 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 563 type GcsDocument = src.GcsDocument 564 565 // Specifies a set of documents on Cloud Storage. 566 // 567 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 568 type GcsDocuments = src.GcsDocuments 569 570 // Specifies all documents on Cloud Storage with a common prefix. 571 // 572 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 573 type GcsPrefix = src.GcsPrefix 574 575 // Request message for get processor. 576 // 577 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 578 type GetProcessorRequest = src.GetProcessorRequest 579 580 // Request message for get processor version. 581 // 582 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 583 type GetProcessorVersionRequest = src.GetProcessorVersionRequest 584 585 // The status of human review on a processed document. 586 // 587 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 588 type HumanReviewStatus = src.HumanReviewStatus 589 590 // The final state of human review on a processed document. 591 // 592 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 593 type HumanReviewStatus_State = src.HumanReviewStatus_State 594 595 // Request message for list processor types. 596 // 597 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 598 type ListProcessorTypesRequest = src.ListProcessorTypesRequest 599 600 // Response message for list processor types. 601 // 602 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 603 type ListProcessorTypesResponse = src.ListProcessorTypesResponse 604 605 // Request message for list all processor versions belongs to a processor. 606 // 607 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 608 type ListProcessorVersionsRequest = src.ListProcessorVersionsRequest 609 610 // Response message for list processors. 611 // 612 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 613 type ListProcessorVersionsResponse = src.ListProcessorVersionsResponse 614 615 // Request message for list all processors belongs to a project. 616 // 617 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 618 type ListProcessorsRequest = src.ListProcessorsRequest 619 620 // Response message for list processors. 621 // 622 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 623 type ListProcessorsResponse = src.ListProcessorsResponse 624 625 // A vertex represents a 2D point in the image. NOTE: the normalized vertex 626 // coordinates are relative to the original image and range from 0 to 1. 627 // 628 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 629 type NormalizedVertex = src.NormalizedVertex 630 631 // Request message for the process document method. 632 // 633 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 634 type ProcessRequest = src.ProcessRequest 635 type ProcessRequest_InlineDocument = src.ProcessRequest_InlineDocument 636 type ProcessRequest_RawDocument = src.ProcessRequest_RawDocument 637 638 // Response message for the process document method. 639 // 640 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 641 type ProcessResponse = src.ProcessResponse 642 643 // The first-class citizen for Document AI. Each processor defines how to 644 // extract structural information from a document. 645 // 646 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 647 type Processor = src.Processor 648 649 // A processor type is responsible for performing a certain document 650 // understanding task on a certain type of document. 651 // 652 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 653 type ProcessorType = src.ProcessorType 654 655 // The location information about where the processor is available. 656 // 657 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 658 type ProcessorType_LocationInfo = src.ProcessorType_LocationInfo 659 660 // A processor version is an implementation of a processor. Each processor can 661 // have multiple versions, pre-trained by Google internally or up-trained by 662 // the customer. At a time, a processor can only have one default version 663 // version. So the processor's behavior (when processing documents) is defined 664 // by a default version 665 // 666 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 667 type ProcessorVersion = src.ProcessorVersion 668 669 // Information about the upcoming deprecation of this processor version. 670 // 671 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 672 type ProcessorVersion_DeprecationInfo = src.ProcessorVersion_DeprecationInfo 673 674 // The possible states of the processor version. 675 // 676 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 677 type ProcessorVersion_State = src.ProcessorVersion_State 678 679 // The possible states of the processor. 680 // 681 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 682 type Processor_State = src.Processor_State 683 684 // Payload message of raw document content (bytes). 685 // 686 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 687 type RawDocument = src.RawDocument 688 689 // The long running operation metadata for review document method. 690 // 691 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 692 type ReviewDocumentOperationMetadata = src.ReviewDocumentOperationMetadata 693 694 // Request message for review document method. 695 // 696 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 697 type ReviewDocumentRequest = src.ReviewDocumentRequest 698 type ReviewDocumentRequest_InlineDocument = src.ReviewDocumentRequest_InlineDocument 699 700 // The priority level of the human review task. 701 // 702 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 703 type ReviewDocumentRequest_Priority = src.ReviewDocumentRequest_Priority 704 705 // Response message for review document method. 706 // 707 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 708 type ReviewDocumentResponse = src.ReviewDocumentResponse 709 710 // Possible states of the review operation. 711 // 712 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 713 type ReviewDocumentResponse_State = src.ReviewDocumentResponse_State 714 715 // The long running operation metadata for set default processor version 716 // method. 717 // 718 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 719 type SetDefaultProcessorVersionMetadata = src.SetDefaultProcessorVersionMetadata 720 721 // Request message for the set default processor version method. 722 // 723 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 724 type SetDefaultProcessorVersionRequest = src.SetDefaultProcessorVersionRequest 725 726 // Response message for set default processor version method. 727 // 728 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 729 type SetDefaultProcessorVersionResponse = src.SetDefaultProcessorVersionResponse 730 731 // The long running operation metadata for the undeploy processor version 732 // method. 733 // 734 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 735 type UndeployProcessorVersionMetadata = src.UndeployProcessorVersionMetadata 736 737 // Request message for the undeploy processor version method. 738 // 739 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 740 type UndeployProcessorVersionRequest = src.UndeployProcessorVersionRequest 741 742 // Response message for the undeploy processor version method. 743 // 744 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 745 type UndeployProcessorVersionResponse = src.UndeployProcessorVersionResponse 746 747 // UnimplementedDocumentProcessorServiceServer can be embedded to have forward 748 // compatible implementations. 749 // 750 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 751 type UnimplementedDocumentProcessorServiceServer = src.UnimplementedDocumentProcessorServiceServer 752 753 // A vertex represents a 2D point in the image. NOTE: the vertex coordinates 754 // are in the same scale as the original image. 755 // 756 // Deprecated: Please use types in: cloud.google.com/go/documentai/apiv1/documentaipb 757 type Vertex = src.Vertex 758 759 // Deprecated: Please use funcs in: cloud.google.com/go/documentai/apiv1/documentaipb 760 func NewDocumentProcessorServiceClient(cc grpc.ClientConnInterface) DocumentProcessorServiceClient { 761 return src.NewDocumentProcessorServiceClient(cc) 762 } 763 764 // Deprecated: Please use funcs in: cloud.google.com/go/documentai/apiv1/documentaipb 765 func RegisterDocumentProcessorServiceServer(s *grpc.Server, srv DocumentProcessorServiceServer) { 766 src.RegisterDocumentProcessorServiceServer(s, srv) 767 } 768