1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/documentai/v1beta1/document_understanding.proto 3 4package documentai 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 timestamp "github.com/golang/protobuf/ptypes/timestamp" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 longrunning "google.golang.org/genproto/googleapis/longrunning" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18) 19 20// Reference imports to suppress errors if they are not otherwise used. 21var _ = proto.Marshal 22var _ = fmt.Errorf 23var _ = math.Inf 24 25// This is a compile-time assertion to ensure that this generated file 26// is compatible with the proto package it is being compiled against. 27// A compilation error at this line likely means your copy of the 28// proto package needs to be updated. 29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 30 31type OperationMetadata_State int32 32 33const ( 34 // The default value. This value is used if the state is omitted. 35 OperationMetadata_STATE_UNSPECIFIED OperationMetadata_State = 0 36 // Request is received. 37 OperationMetadata_ACCEPTED OperationMetadata_State = 1 38 // Request operation is waiting for scheduling. 39 OperationMetadata_WAITING OperationMetadata_State = 2 40 // Request is being processed. 41 OperationMetadata_RUNNING OperationMetadata_State = 3 42 // The batch processing completed successfully. 43 OperationMetadata_SUCCEEDED OperationMetadata_State = 4 44 // The batch processing was cancelled. 45 OperationMetadata_CANCELLED OperationMetadata_State = 5 46 // The batch processing has failed. 47 OperationMetadata_FAILED OperationMetadata_State = 6 48) 49 50var OperationMetadata_State_name = map[int32]string{ 51 0: "STATE_UNSPECIFIED", 52 1: "ACCEPTED", 53 2: "WAITING", 54 3: "RUNNING", 55 4: "SUCCEEDED", 56 5: "CANCELLED", 57 6: "FAILED", 58} 59 60var OperationMetadata_State_value = map[string]int32{ 61 "STATE_UNSPECIFIED": 0, 62 "ACCEPTED": 1, 63 "WAITING": 2, 64 "RUNNING": 3, 65 "SUCCEEDED": 4, 66 "CANCELLED": 5, 67 "FAILED": 6, 68} 69 70func (x OperationMetadata_State) String() string { 71 return proto.EnumName(OperationMetadata_State_name, int32(x)) 72} 73 74func (OperationMetadata_State) EnumDescriptor() ([]byte, []int) { 75 return fileDescriptor_55a53db6ba9d94ef, []int{14, 0} 76} 77 78// Request to batch process documents as an asynchronous operation. 79type BatchProcessDocumentsRequest struct { 80 // Required. Individual requests for each document. 81 Requests []*ProcessDocumentRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` 82 // Target project and location to make a call. 83 // 84 // Format: `projects/{project-id}/locations/{location-id}`. 85 // 86 // If no location is specified, a region will be chosen automatically. 87 Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` 88 XXX_NoUnkeyedLiteral struct{} `json:"-"` 89 XXX_unrecognized []byte `json:"-"` 90 XXX_sizecache int32 `json:"-"` 91} 92 93func (m *BatchProcessDocumentsRequest) Reset() { *m = BatchProcessDocumentsRequest{} } 94func (m *BatchProcessDocumentsRequest) String() string { return proto.CompactTextString(m) } 95func (*BatchProcessDocumentsRequest) ProtoMessage() {} 96func (*BatchProcessDocumentsRequest) Descriptor() ([]byte, []int) { 97 return fileDescriptor_55a53db6ba9d94ef, []int{0} 98} 99 100func (m *BatchProcessDocumentsRequest) XXX_Unmarshal(b []byte) error { 101 return xxx_messageInfo_BatchProcessDocumentsRequest.Unmarshal(m, b) 102} 103func (m *BatchProcessDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 104 return xxx_messageInfo_BatchProcessDocumentsRequest.Marshal(b, m, deterministic) 105} 106func (m *BatchProcessDocumentsRequest) XXX_Merge(src proto.Message) { 107 xxx_messageInfo_BatchProcessDocumentsRequest.Merge(m, src) 108} 109func (m *BatchProcessDocumentsRequest) XXX_Size() int { 110 return xxx_messageInfo_BatchProcessDocumentsRequest.Size(m) 111} 112func (m *BatchProcessDocumentsRequest) XXX_DiscardUnknown() { 113 xxx_messageInfo_BatchProcessDocumentsRequest.DiscardUnknown(m) 114} 115 116var xxx_messageInfo_BatchProcessDocumentsRequest proto.InternalMessageInfo 117 118func (m *BatchProcessDocumentsRequest) GetRequests() []*ProcessDocumentRequest { 119 if m != nil { 120 return m.Requests 121 } 122 return nil 123} 124 125func (m *BatchProcessDocumentsRequest) GetParent() string { 126 if m != nil { 127 return m.Parent 128 } 129 return "" 130} 131 132// Request to process one document. 133type ProcessDocumentRequest struct { 134 // Required. Information about the input file. 135 InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` 136 // Required. The desired output location. 137 OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` 138 // Specifies a known document type for deeper structure detection. Valid 139 // values are currently "general" and "invoice". If not provided, "general"\ 140 // is used as default. If any other value is given, the request is rejected. 141 DocumentType string `protobuf:"bytes,3,opt,name=document_type,json=documentType,proto3" json:"document_type,omitempty"` 142 // Controls table extraction behavior. If not specified, the system will 143 // decide reasonable defaults. 144 TableExtractionParams *TableExtractionParams `protobuf:"bytes,4,opt,name=table_extraction_params,json=tableExtractionParams,proto3" json:"table_extraction_params,omitempty"` 145 // Controls form extraction behavior. If not specified, the system will 146 // decide reasonable defaults. 147 FormExtractionParams *FormExtractionParams `protobuf:"bytes,5,opt,name=form_extraction_params,json=formExtractionParams,proto3" json:"form_extraction_params,omitempty"` 148 // Controls entity extraction behavior. If not specified, the system will 149 // decide reasonable defaults. 150 EntityExtractionParams *EntityExtractionParams `protobuf:"bytes,6,opt,name=entity_extraction_params,json=entityExtractionParams,proto3" json:"entity_extraction_params,omitempty"` 151 // Controls OCR behavior. If not specified, the system will decide reasonable 152 // defaults. 153 OcrParams *OcrParams `protobuf:"bytes,7,opt,name=ocr_params,json=ocrParams,proto3" json:"ocr_params,omitempty"` 154 XXX_NoUnkeyedLiteral struct{} `json:"-"` 155 XXX_unrecognized []byte `json:"-"` 156 XXX_sizecache int32 `json:"-"` 157} 158 159func (m *ProcessDocumentRequest) Reset() { *m = ProcessDocumentRequest{} } 160func (m *ProcessDocumentRequest) String() string { return proto.CompactTextString(m) } 161func (*ProcessDocumentRequest) ProtoMessage() {} 162func (*ProcessDocumentRequest) Descriptor() ([]byte, []int) { 163 return fileDescriptor_55a53db6ba9d94ef, []int{1} 164} 165 166func (m *ProcessDocumentRequest) XXX_Unmarshal(b []byte) error { 167 return xxx_messageInfo_ProcessDocumentRequest.Unmarshal(m, b) 168} 169func (m *ProcessDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 170 return xxx_messageInfo_ProcessDocumentRequest.Marshal(b, m, deterministic) 171} 172func (m *ProcessDocumentRequest) XXX_Merge(src proto.Message) { 173 xxx_messageInfo_ProcessDocumentRequest.Merge(m, src) 174} 175func (m *ProcessDocumentRequest) XXX_Size() int { 176 return xxx_messageInfo_ProcessDocumentRequest.Size(m) 177} 178func (m *ProcessDocumentRequest) XXX_DiscardUnknown() { 179 xxx_messageInfo_ProcessDocumentRequest.DiscardUnknown(m) 180} 181 182var xxx_messageInfo_ProcessDocumentRequest proto.InternalMessageInfo 183 184func (m *ProcessDocumentRequest) GetInputConfig() *InputConfig { 185 if m != nil { 186 return m.InputConfig 187 } 188 return nil 189} 190 191func (m *ProcessDocumentRequest) GetOutputConfig() *OutputConfig { 192 if m != nil { 193 return m.OutputConfig 194 } 195 return nil 196} 197 198func (m *ProcessDocumentRequest) GetDocumentType() string { 199 if m != nil { 200 return m.DocumentType 201 } 202 return "" 203} 204 205func (m *ProcessDocumentRequest) GetTableExtractionParams() *TableExtractionParams { 206 if m != nil { 207 return m.TableExtractionParams 208 } 209 return nil 210} 211 212func (m *ProcessDocumentRequest) GetFormExtractionParams() *FormExtractionParams { 213 if m != nil { 214 return m.FormExtractionParams 215 } 216 return nil 217} 218 219func (m *ProcessDocumentRequest) GetEntityExtractionParams() *EntityExtractionParams { 220 if m != nil { 221 return m.EntityExtractionParams 222 } 223 return nil 224} 225 226func (m *ProcessDocumentRequest) GetOcrParams() *OcrParams { 227 if m != nil { 228 return m.OcrParams 229 } 230 return nil 231} 232 233// Response to an batch document processing request. This is returned in 234// the LRO Operation after the operation is complete. 235type BatchProcessDocumentsResponse struct { 236 // Responses for each individual document. 237 Responses []*ProcessDocumentResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` 238 XXX_NoUnkeyedLiteral struct{} `json:"-"` 239 XXX_unrecognized []byte `json:"-"` 240 XXX_sizecache int32 `json:"-"` 241} 242 243func (m *BatchProcessDocumentsResponse) Reset() { *m = BatchProcessDocumentsResponse{} } 244func (m *BatchProcessDocumentsResponse) String() string { return proto.CompactTextString(m) } 245func (*BatchProcessDocumentsResponse) ProtoMessage() {} 246func (*BatchProcessDocumentsResponse) Descriptor() ([]byte, []int) { 247 return fileDescriptor_55a53db6ba9d94ef, []int{2} 248} 249 250func (m *BatchProcessDocumentsResponse) XXX_Unmarshal(b []byte) error { 251 return xxx_messageInfo_BatchProcessDocumentsResponse.Unmarshal(m, b) 252} 253func (m *BatchProcessDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 254 return xxx_messageInfo_BatchProcessDocumentsResponse.Marshal(b, m, deterministic) 255} 256func (m *BatchProcessDocumentsResponse) XXX_Merge(src proto.Message) { 257 xxx_messageInfo_BatchProcessDocumentsResponse.Merge(m, src) 258} 259func (m *BatchProcessDocumentsResponse) XXX_Size() int { 260 return xxx_messageInfo_BatchProcessDocumentsResponse.Size(m) 261} 262func (m *BatchProcessDocumentsResponse) XXX_DiscardUnknown() { 263 xxx_messageInfo_BatchProcessDocumentsResponse.DiscardUnknown(m) 264} 265 266var xxx_messageInfo_BatchProcessDocumentsResponse proto.InternalMessageInfo 267 268func (m *BatchProcessDocumentsResponse) GetResponses() []*ProcessDocumentResponse { 269 if m != nil { 270 return m.Responses 271 } 272 return nil 273} 274 275// Response to a single document processing request. 276type ProcessDocumentResponse struct { 277 // Information about the input file. This is the same as the corresponding 278 // input config in the request. 279 InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` 280 // The output location of the parsed responses. The responses are written to 281 // this location as JSON-serialized `Document` objects. 282 OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` 283 XXX_NoUnkeyedLiteral struct{} `json:"-"` 284 XXX_unrecognized []byte `json:"-"` 285 XXX_sizecache int32 `json:"-"` 286} 287 288func (m *ProcessDocumentResponse) Reset() { *m = ProcessDocumentResponse{} } 289func (m *ProcessDocumentResponse) String() string { return proto.CompactTextString(m) } 290func (*ProcessDocumentResponse) ProtoMessage() {} 291func (*ProcessDocumentResponse) Descriptor() ([]byte, []int) { 292 return fileDescriptor_55a53db6ba9d94ef, []int{3} 293} 294 295func (m *ProcessDocumentResponse) XXX_Unmarshal(b []byte) error { 296 return xxx_messageInfo_ProcessDocumentResponse.Unmarshal(m, b) 297} 298func (m *ProcessDocumentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 299 return xxx_messageInfo_ProcessDocumentResponse.Marshal(b, m, deterministic) 300} 301func (m *ProcessDocumentResponse) XXX_Merge(src proto.Message) { 302 xxx_messageInfo_ProcessDocumentResponse.Merge(m, src) 303} 304func (m *ProcessDocumentResponse) XXX_Size() int { 305 return xxx_messageInfo_ProcessDocumentResponse.Size(m) 306} 307func (m *ProcessDocumentResponse) XXX_DiscardUnknown() { 308 xxx_messageInfo_ProcessDocumentResponse.DiscardUnknown(m) 309} 310 311var xxx_messageInfo_ProcessDocumentResponse proto.InternalMessageInfo 312 313func (m *ProcessDocumentResponse) GetInputConfig() *InputConfig { 314 if m != nil { 315 return m.InputConfig 316 } 317 return nil 318} 319 320func (m *ProcessDocumentResponse) GetOutputConfig() *OutputConfig { 321 if m != nil { 322 return m.OutputConfig 323 } 324 return nil 325} 326 327// Parameters to control Optical Character Recognition (OCR) behavior. 328type OcrParams struct { 329 // List of languages to use for OCR. In most cases, an empty value 330 // yields the best results since it enables automatic language detection. For 331 // languages based on the Latin alphabet, setting `language_hints` is not 332 // needed. In rare cases, when the language of the text in the image is known, 333 // setting a hint will help get better results (although it will be a 334 // significant hindrance if the hint is wrong). Document processing returns an 335 // error if one or more of the specified languages is not one of the 336 // supported languages. 337 LanguageHints []string `protobuf:"bytes,1,rep,name=language_hints,json=languageHints,proto3" json:"language_hints,omitempty"` 338 XXX_NoUnkeyedLiteral struct{} `json:"-"` 339 XXX_unrecognized []byte `json:"-"` 340 XXX_sizecache int32 `json:"-"` 341} 342 343func (m *OcrParams) Reset() { *m = OcrParams{} } 344func (m *OcrParams) String() string { return proto.CompactTextString(m) } 345func (*OcrParams) ProtoMessage() {} 346func (*OcrParams) Descriptor() ([]byte, []int) { 347 return fileDescriptor_55a53db6ba9d94ef, []int{4} 348} 349 350func (m *OcrParams) XXX_Unmarshal(b []byte) error { 351 return xxx_messageInfo_OcrParams.Unmarshal(m, b) 352} 353func (m *OcrParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 354 return xxx_messageInfo_OcrParams.Marshal(b, m, deterministic) 355} 356func (m *OcrParams) XXX_Merge(src proto.Message) { 357 xxx_messageInfo_OcrParams.Merge(m, src) 358} 359func (m *OcrParams) XXX_Size() int { 360 return xxx_messageInfo_OcrParams.Size(m) 361} 362func (m *OcrParams) XXX_DiscardUnknown() { 363 xxx_messageInfo_OcrParams.DiscardUnknown(m) 364} 365 366var xxx_messageInfo_OcrParams proto.InternalMessageInfo 367 368func (m *OcrParams) GetLanguageHints() []string { 369 if m != nil { 370 return m.LanguageHints 371 } 372 return nil 373} 374 375// Parameters to control table extraction behavior. 376type TableExtractionParams struct { 377 // Whether to enable table extraction. 378 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 379 // Optional. Table bounding box hints that can be provided to complex cases 380 // which our algorithm cannot locate the table(s) in. 381 TableBoundHints []*TableBoundHint `protobuf:"bytes,2,rep,name=table_bound_hints,json=tableBoundHints,proto3" json:"table_bound_hints,omitempty"` 382 // Optional. Table header hints. The extraction will bias towards producing 383 // these terms as table headers, which may improve accuracy. 384 HeaderHints []string `protobuf:"bytes,3,rep,name=header_hints,json=headerHints,proto3" json:"header_hints,omitempty"` 385 // Model version of the table extraction system. Default is "builtin/stable". 386 // Specify "builtin/latest" for the latest model. 387 ModelVersion string `protobuf:"bytes,4,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` 388 XXX_NoUnkeyedLiteral struct{} `json:"-"` 389 XXX_unrecognized []byte `json:"-"` 390 XXX_sizecache int32 `json:"-"` 391} 392 393func (m *TableExtractionParams) Reset() { *m = TableExtractionParams{} } 394func (m *TableExtractionParams) String() string { return proto.CompactTextString(m) } 395func (*TableExtractionParams) ProtoMessage() {} 396func (*TableExtractionParams) Descriptor() ([]byte, []int) { 397 return fileDescriptor_55a53db6ba9d94ef, []int{5} 398} 399 400func (m *TableExtractionParams) XXX_Unmarshal(b []byte) error { 401 return xxx_messageInfo_TableExtractionParams.Unmarshal(m, b) 402} 403func (m *TableExtractionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 404 return xxx_messageInfo_TableExtractionParams.Marshal(b, m, deterministic) 405} 406func (m *TableExtractionParams) XXX_Merge(src proto.Message) { 407 xxx_messageInfo_TableExtractionParams.Merge(m, src) 408} 409func (m *TableExtractionParams) XXX_Size() int { 410 return xxx_messageInfo_TableExtractionParams.Size(m) 411} 412func (m *TableExtractionParams) XXX_DiscardUnknown() { 413 xxx_messageInfo_TableExtractionParams.DiscardUnknown(m) 414} 415 416var xxx_messageInfo_TableExtractionParams proto.InternalMessageInfo 417 418func (m *TableExtractionParams) GetEnabled() bool { 419 if m != nil { 420 return m.Enabled 421 } 422 return false 423} 424 425func (m *TableExtractionParams) GetTableBoundHints() []*TableBoundHint { 426 if m != nil { 427 return m.TableBoundHints 428 } 429 return nil 430} 431 432func (m *TableExtractionParams) GetHeaderHints() []string { 433 if m != nil { 434 return m.HeaderHints 435 } 436 return nil 437} 438 439func (m *TableExtractionParams) GetModelVersion() string { 440 if m != nil { 441 return m.ModelVersion 442 } 443 return "" 444} 445 446// A hint for a table bounding box on the page for table parsing. 447type TableBoundHint struct { 448 // Optional. Page number for multi-paged inputs this hint applies to. If not 449 // provided, this hint will apply to all pages by default. This value is 450 // 1-based. 451 PageNumber int32 `protobuf:"varint,1,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` 452 // Bounding box hint for a table on this page. The coordinates must be 453 // normalized to [0,1] and the bounding box must be an axis-aligned rectangle. 454 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 455 XXX_NoUnkeyedLiteral struct{} `json:"-"` 456 XXX_unrecognized []byte `json:"-"` 457 XXX_sizecache int32 `json:"-"` 458} 459 460func (m *TableBoundHint) Reset() { *m = TableBoundHint{} } 461func (m *TableBoundHint) String() string { return proto.CompactTextString(m) } 462func (*TableBoundHint) ProtoMessage() {} 463func (*TableBoundHint) Descriptor() ([]byte, []int) { 464 return fileDescriptor_55a53db6ba9d94ef, []int{6} 465} 466 467func (m *TableBoundHint) XXX_Unmarshal(b []byte) error { 468 return xxx_messageInfo_TableBoundHint.Unmarshal(m, b) 469} 470func (m *TableBoundHint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 471 return xxx_messageInfo_TableBoundHint.Marshal(b, m, deterministic) 472} 473func (m *TableBoundHint) XXX_Merge(src proto.Message) { 474 xxx_messageInfo_TableBoundHint.Merge(m, src) 475} 476func (m *TableBoundHint) XXX_Size() int { 477 return xxx_messageInfo_TableBoundHint.Size(m) 478} 479func (m *TableBoundHint) XXX_DiscardUnknown() { 480 xxx_messageInfo_TableBoundHint.DiscardUnknown(m) 481} 482 483var xxx_messageInfo_TableBoundHint proto.InternalMessageInfo 484 485func (m *TableBoundHint) GetPageNumber() int32 { 486 if m != nil { 487 return m.PageNumber 488 } 489 return 0 490} 491 492func (m *TableBoundHint) GetBoundingBox() *BoundingPoly { 493 if m != nil { 494 return m.BoundingBox 495 } 496 return nil 497} 498 499// Parameters to control form extraction behavior. 500type FormExtractionParams struct { 501 // Whether to enable form extraction. 502 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 503 // User can provide pairs of (key text, value type) to improve the parsing 504 // result. 505 // 506 // For example, if a document has a field called "Date" that holds a date 507 // value and a field called "Amount" that may hold either a currency value 508 // (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the 509 // following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": 510 // "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] 511 // 512 // If the value type is unknown, but you want to provide hints for the keys, 513 // you can leave the value_types field blank. e.g. {"key": "Date", 514 // "value_types": []} 515 KeyValuePairHints []*KeyValuePairHint `protobuf:"bytes,2,rep,name=key_value_pair_hints,json=keyValuePairHints,proto3" json:"key_value_pair_hints,omitempty"` 516 // Model version of the form extraction system. Default is 517 // "builtin/stable". Specify "builtin/latest" for the latest model. 518 ModelVersion string `protobuf:"bytes,3,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` 519 XXX_NoUnkeyedLiteral struct{} `json:"-"` 520 XXX_unrecognized []byte `json:"-"` 521 XXX_sizecache int32 `json:"-"` 522} 523 524func (m *FormExtractionParams) Reset() { *m = FormExtractionParams{} } 525func (m *FormExtractionParams) String() string { return proto.CompactTextString(m) } 526func (*FormExtractionParams) ProtoMessage() {} 527func (*FormExtractionParams) Descriptor() ([]byte, []int) { 528 return fileDescriptor_55a53db6ba9d94ef, []int{7} 529} 530 531func (m *FormExtractionParams) XXX_Unmarshal(b []byte) error { 532 return xxx_messageInfo_FormExtractionParams.Unmarshal(m, b) 533} 534func (m *FormExtractionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 535 return xxx_messageInfo_FormExtractionParams.Marshal(b, m, deterministic) 536} 537func (m *FormExtractionParams) XXX_Merge(src proto.Message) { 538 xxx_messageInfo_FormExtractionParams.Merge(m, src) 539} 540func (m *FormExtractionParams) XXX_Size() int { 541 return xxx_messageInfo_FormExtractionParams.Size(m) 542} 543func (m *FormExtractionParams) XXX_DiscardUnknown() { 544 xxx_messageInfo_FormExtractionParams.DiscardUnknown(m) 545} 546 547var xxx_messageInfo_FormExtractionParams proto.InternalMessageInfo 548 549func (m *FormExtractionParams) GetEnabled() bool { 550 if m != nil { 551 return m.Enabled 552 } 553 return false 554} 555 556func (m *FormExtractionParams) GetKeyValuePairHints() []*KeyValuePairHint { 557 if m != nil { 558 return m.KeyValuePairHints 559 } 560 return nil 561} 562 563func (m *FormExtractionParams) GetModelVersion() string { 564 if m != nil { 565 return m.ModelVersion 566 } 567 return "" 568} 569 570// User-provided hint for key value pair. 571type KeyValuePairHint struct { 572 // The key text for the hint. 573 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 574 // Type of the value. This is case-insensitive, and could be one of: 575 // ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, 576 // ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will 577 // be ignored. 578 ValueTypes []string `protobuf:"bytes,2,rep,name=value_types,json=valueTypes,proto3" json:"value_types,omitempty"` 579 XXX_NoUnkeyedLiteral struct{} `json:"-"` 580 XXX_unrecognized []byte `json:"-"` 581 XXX_sizecache int32 `json:"-"` 582} 583 584func (m *KeyValuePairHint) Reset() { *m = KeyValuePairHint{} } 585func (m *KeyValuePairHint) String() string { return proto.CompactTextString(m) } 586func (*KeyValuePairHint) ProtoMessage() {} 587func (*KeyValuePairHint) Descriptor() ([]byte, []int) { 588 return fileDescriptor_55a53db6ba9d94ef, []int{8} 589} 590 591func (m *KeyValuePairHint) XXX_Unmarshal(b []byte) error { 592 return xxx_messageInfo_KeyValuePairHint.Unmarshal(m, b) 593} 594func (m *KeyValuePairHint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 595 return xxx_messageInfo_KeyValuePairHint.Marshal(b, m, deterministic) 596} 597func (m *KeyValuePairHint) XXX_Merge(src proto.Message) { 598 xxx_messageInfo_KeyValuePairHint.Merge(m, src) 599} 600func (m *KeyValuePairHint) XXX_Size() int { 601 return xxx_messageInfo_KeyValuePairHint.Size(m) 602} 603func (m *KeyValuePairHint) XXX_DiscardUnknown() { 604 xxx_messageInfo_KeyValuePairHint.DiscardUnknown(m) 605} 606 607var xxx_messageInfo_KeyValuePairHint proto.InternalMessageInfo 608 609func (m *KeyValuePairHint) GetKey() string { 610 if m != nil { 611 return m.Key 612 } 613 return "" 614} 615 616func (m *KeyValuePairHint) GetValueTypes() []string { 617 if m != nil { 618 return m.ValueTypes 619 } 620 return nil 621} 622 623// Parameters to control entity extraction behavior. 624type EntityExtractionParams struct { 625 // Whether to enable entity extraction. 626 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 627 // Model version of the entity extraction. Default is 628 // "builtin/stable". Specify "builtin/latest" for the latest model. 629 ModelVersion string `protobuf:"bytes,2,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` 630 XXX_NoUnkeyedLiteral struct{} `json:"-"` 631 XXX_unrecognized []byte `json:"-"` 632 XXX_sizecache int32 `json:"-"` 633} 634 635func (m *EntityExtractionParams) Reset() { *m = EntityExtractionParams{} } 636func (m *EntityExtractionParams) String() string { return proto.CompactTextString(m) } 637func (*EntityExtractionParams) ProtoMessage() {} 638func (*EntityExtractionParams) Descriptor() ([]byte, []int) { 639 return fileDescriptor_55a53db6ba9d94ef, []int{9} 640} 641 642func (m *EntityExtractionParams) XXX_Unmarshal(b []byte) error { 643 return xxx_messageInfo_EntityExtractionParams.Unmarshal(m, b) 644} 645func (m *EntityExtractionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 646 return xxx_messageInfo_EntityExtractionParams.Marshal(b, m, deterministic) 647} 648func (m *EntityExtractionParams) XXX_Merge(src proto.Message) { 649 xxx_messageInfo_EntityExtractionParams.Merge(m, src) 650} 651func (m *EntityExtractionParams) XXX_Size() int { 652 return xxx_messageInfo_EntityExtractionParams.Size(m) 653} 654func (m *EntityExtractionParams) XXX_DiscardUnknown() { 655 xxx_messageInfo_EntityExtractionParams.DiscardUnknown(m) 656} 657 658var xxx_messageInfo_EntityExtractionParams proto.InternalMessageInfo 659 660func (m *EntityExtractionParams) GetEnabled() bool { 661 if m != nil { 662 return m.Enabled 663 } 664 return false 665} 666 667func (m *EntityExtractionParams) GetModelVersion() string { 668 if m != nil { 669 return m.ModelVersion 670 } 671 return "" 672} 673 674// The desired input location and metadata. 675type InputConfig struct { 676 // Required. 677 // 678 // Types that are valid to be assigned to Source: 679 // *InputConfig_GcsSource 680 Source isInputConfig_Source `protobuf_oneof:"source"` 681 // Required. Mimetype of the input. Current supported mimetypes are 682 // application/pdf, image/tiff, and image/gif. 683 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` 684 XXX_NoUnkeyedLiteral struct{} `json:"-"` 685 XXX_unrecognized []byte `json:"-"` 686 XXX_sizecache int32 `json:"-"` 687} 688 689func (m *InputConfig) Reset() { *m = InputConfig{} } 690func (m *InputConfig) String() string { return proto.CompactTextString(m) } 691func (*InputConfig) ProtoMessage() {} 692func (*InputConfig) Descriptor() ([]byte, []int) { 693 return fileDescriptor_55a53db6ba9d94ef, []int{10} 694} 695 696func (m *InputConfig) XXX_Unmarshal(b []byte) error { 697 return xxx_messageInfo_InputConfig.Unmarshal(m, b) 698} 699func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 700 return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic) 701} 702func (m *InputConfig) XXX_Merge(src proto.Message) { 703 xxx_messageInfo_InputConfig.Merge(m, src) 704} 705func (m *InputConfig) XXX_Size() int { 706 return xxx_messageInfo_InputConfig.Size(m) 707} 708func (m *InputConfig) XXX_DiscardUnknown() { 709 xxx_messageInfo_InputConfig.DiscardUnknown(m) 710} 711 712var xxx_messageInfo_InputConfig proto.InternalMessageInfo 713 714type isInputConfig_Source interface { 715 isInputConfig_Source() 716} 717 718type InputConfig_GcsSource struct { 719 GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"` 720} 721 722func (*InputConfig_GcsSource) isInputConfig_Source() {} 723 724func (m *InputConfig) GetSource() isInputConfig_Source { 725 if m != nil { 726 return m.Source 727 } 728 return nil 729} 730 731func (m *InputConfig) GetGcsSource() *GcsSource { 732 if x, ok := m.GetSource().(*InputConfig_GcsSource); ok { 733 return x.GcsSource 734 } 735 return nil 736} 737 738func (m *InputConfig) GetMimeType() string { 739 if m != nil { 740 return m.MimeType 741 } 742 return "" 743} 744 745// XXX_OneofWrappers is for the internal use of the proto package. 746func (*InputConfig) XXX_OneofWrappers() []interface{} { 747 return []interface{}{ 748 (*InputConfig_GcsSource)(nil), 749 } 750} 751 752// The desired output location and metadata. 753type OutputConfig struct { 754 // Required. 755 // 756 // Types that are valid to be assigned to Destination: 757 // *OutputConfig_GcsDestination 758 Destination isOutputConfig_Destination `protobuf_oneof:"destination"` 759 // The max number of pages to include into each output Document shard JSON on 760 // Google Cloud Storage. 761 // 762 // The valid range is [1, 100]. If not specified, the default value is 20. 763 // 764 // For example, for one pdf file with 100 pages, 100 parsed pages will be 765 // produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each 766 // containing 20 parsed pages will be written under the prefix 767 // [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where 768 // x and y are 1-indexed page numbers. 769 // 770 // Example GCS outputs with 157 pages and pages_per_shard = 50: 771 // 772 // <prefix>pages-001-to-050.json 773 // <prefix>pages-051-to-100.json 774 // <prefix>pages-101-to-150.json 775 // <prefix>pages-151-to-157.json 776 PagesPerShard int32 `protobuf:"varint,2,opt,name=pages_per_shard,json=pagesPerShard,proto3" json:"pages_per_shard,omitempty"` 777 XXX_NoUnkeyedLiteral struct{} `json:"-"` 778 XXX_unrecognized []byte `json:"-"` 779 XXX_sizecache int32 `json:"-"` 780} 781 782func (m *OutputConfig) Reset() { *m = OutputConfig{} } 783func (m *OutputConfig) String() string { return proto.CompactTextString(m) } 784func (*OutputConfig) ProtoMessage() {} 785func (*OutputConfig) Descriptor() ([]byte, []int) { 786 return fileDescriptor_55a53db6ba9d94ef, []int{11} 787} 788 789func (m *OutputConfig) XXX_Unmarshal(b []byte) error { 790 return xxx_messageInfo_OutputConfig.Unmarshal(m, b) 791} 792func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 793 return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic) 794} 795func (m *OutputConfig) XXX_Merge(src proto.Message) { 796 xxx_messageInfo_OutputConfig.Merge(m, src) 797} 798func (m *OutputConfig) XXX_Size() int { 799 return xxx_messageInfo_OutputConfig.Size(m) 800} 801func (m *OutputConfig) XXX_DiscardUnknown() { 802 xxx_messageInfo_OutputConfig.DiscardUnknown(m) 803} 804 805var xxx_messageInfo_OutputConfig proto.InternalMessageInfo 806 807type isOutputConfig_Destination interface { 808 isOutputConfig_Destination() 809} 810 811type OutputConfig_GcsDestination struct { 812 GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"` 813} 814 815func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {} 816 817func (m *OutputConfig) GetDestination() isOutputConfig_Destination { 818 if m != nil { 819 return m.Destination 820 } 821 return nil 822} 823 824func (m *OutputConfig) GetGcsDestination() *GcsDestination { 825 if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok { 826 return x.GcsDestination 827 } 828 return nil 829} 830 831func (m *OutputConfig) GetPagesPerShard() int32 { 832 if m != nil { 833 return m.PagesPerShard 834 } 835 return 0 836} 837 838// XXX_OneofWrappers is for the internal use of the proto package. 839func (*OutputConfig) XXX_OneofWrappers() []interface{} { 840 return []interface{}{ 841 (*OutputConfig_GcsDestination)(nil), 842 } 843} 844 845// The Google Cloud Storage location where the input file will be read from. 846type GcsSource struct { 847 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 848 XXX_NoUnkeyedLiteral struct{} `json:"-"` 849 XXX_unrecognized []byte `json:"-"` 850 XXX_sizecache int32 `json:"-"` 851} 852 853func (m *GcsSource) Reset() { *m = GcsSource{} } 854func (m *GcsSource) String() string { return proto.CompactTextString(m) } 855func (*GcsSource) ProtoMessage() {} 856func (*GcsSource) Descriptor() ([]byte, []int) { 857 return fileDescriptor_55a53db6ba9d94ef, []int{12} 858} 859 860func (m *GcsSource) XXX_Unmarshal(b []byte) error { 861 return xxx_messageInfo_GcsSource.Unmarshal(m, b) 862} 863func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 864 return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic) 865} 866func (m *GcsSource) XXX_Merge(src proto.Message) { 867 xxx_messageInfo_GcsSource.Merge(m, src) 868} 869func (m *GcsSource) XXX_Size() int { 870 return xxx_messageInfo_GcsSource.Size(m) 871} 872func (m *GcsSource) XXX_DiscardUnknown() { 873 xxx_messageInfo_GcsSource.DiscardUnknown(m) 874} 875 876var xxx_messageInfo_GcsSource proto.InternalMessageInfo 877 878func (m *GcsSource) GetUri() string { 879 if m != nil { 880 return m.Uri 881 } 882 return "" 883} 884 885// The Google Cloud Storage location where the output file will be written to. 886type GcsDestination struct { 887 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 888 XXX_NoUnkeyedLiteral struct{} `json:"-"` 889 XXX_unrecognized []byte `json:"-"` 890 XXX_sizecache int32 `json:"-"` 891} 892 893func (m *GcsDestination) Reset() { *m = GcsDestination{} } 894func (m *GcsDestination) String() string { return proto.CompactTextString(m) } 895func (*GcsDestination) ProtoMessage() {} 896func (*GcsDestination) Descriptor() ([]byte, []int) { 897 return fileDescriptor_55a53db6ba9d94ef, []int{13} 898} 899 900func (m *GcsDestination) XXX_Unmarshal(b []byte) error { 901 return xxx_messageInfo_GcsDestination.Unmarshal(m, b) 902} 903func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 904 return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic) 905} 906func (m *GcsDestination) XXX_Merge(src proto.Message) { 907 xxx_messageInfo_GcsDestination.Merge(m, src) 908} 909func (m *GcsDestination) XXX_Size() int { 910 return xxx_messageInfo_GcsDestination.Size(m) 911} 912func (m *GcsDestination) XXX_DiscardUnknown() { 913 xxx_messageInfo_GcsDestination.DiscardUnknown(m) 914} 915 916var xxx_messageInfo_GcsDestination proto.InternalMessageInfo 917 918func (m *GcsDestination) GetUri() string { 919 if m != nil { 920 return m.Uri 921 } 922 return "" 923} 924 925// Contains metadata for the BatchProcessDocuments operation. 926type OperationMetadata struct { 927 // The state of the current batch processing. 928 State OperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.documentai.v1beta1.OperationMetadata_State" json:"state,omitempty"` 929 // A message providing more details about the current state of processing. 930 StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` 931 // The creation time of the operation. 932 CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 933 // The last update time of the operation. 934 UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 935 XXX_NoUnkeyedLiteral struct{} `json:"-"` 936 XXX_unrecognized []byte `json:"-"` 937 XXX_sizecache int32 `json:"-"` 938} 939 940func (m *OperationMetadata) Reset() { *m = OperationMetadata{} } 941func (m *OperationMetadata) String() string { return proto.CompactTextString(m) } 942func (*OperationMetadata) ProtoMessage() {} 943func (*OperationMetadata) Descriptor() ([]byte, []int) { 944 return fileDescriptor_55a53db6ba9d94ef, []int{14} 945} 946 947func (m *OperationMetadata) XXX_Unmarshal(b []byte) error { 948 return xxx_messageInfo_OperationMetadata.Unmarshal(m, b) 949} 950func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 951 return xxx_messageInfo_OperationMetadata.Marshal(b, m, deterministic) 952} 953func (m *OperationMetadata) XXX_Merge(src proto.Message) { 954 xxx_messageInfo_OperationMetadata.Merge(m, src) 955} 956func (m *OperationMetadata) XXX_Size() int { 957 return xxx_messageInfo_OperationMetadata.Size(m) 958} 959func (m *OperationMetadata) XXX_DiscardUnknown() { 960 xxx_messageInfo_OperationMetadata.DiscardUnknown(m) 961} 962 963var xxx_messageInfo_OperationMetadata proto.InternalMessageInfo 964 965func (m *OperationMetadata) GetState() OperationMetadata_State { 966 if m != nil { 967 return m.State 968 } 969 return OperationMetadata_STATE_UNSPECIFIED 970} 971 972func (m *OperationMetadata) GetStateMessage() string { 973 if m != nil { 974 return m.StateMessage 975 } 976 return "" 977} 978 979func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp { 980 if m != nil { 981 return m.CreateTime 982 } 983 return nil 984} 985 986func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { 987 if m != nil { 988 return m.UpdateTime 989 } 990 return nil 991} 992 993func init() { 994 proto.RegisterEnum("google.cloud.documentai.v1beta1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) 995 proto.RegisterType((*BatchProcessDocumentsRequest)(nil), "google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest") 996 proto.RegisterType((*ProcessDocumentRequest)(nil), "google.cloud.documentai.v1beta1.ProcessDocumentRequest") 997 proto.RegisterType((*BatchProcessDocumentsResponse)(nil), "google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse") 998 proto.RegisterType((*ProcessDocumentResponse)(nil), "google.cloud.documentai.v1beta1.ProcessDocumentResponse") 999 proto.RegisterType((*OcrParams)(nil), "google.cloud.documentai.v1beta1.OcrParams") 1000 proto.RegisterType((*TableExtractionParams)(nil), "google.cloud.documentai.v1beta1.TableExtractionParams") 1001 proto.RegisterType((*TableBoundHint)(nil), "google.cloud.documentai.v1beta1.TableBoundHint") 1002 proto.RegisterType((*FormExtractionParams)(nil), "google.cloud.documentai.v1beta1.FormExtractionParams") 1003 proto.RegisterType((*KeyValuePairHint)(nil), "google.cloud.documentai.v1beta1.KeyValuePairHint") 1004 proto.RegisterType((*EntityExtractionParams)(nil), "google.cloud.documentai.v1beta1.EntityExtractionParams") 1005 proto.RegisterType((*InputConfig)(nil), "google.cloud.documentai.v1beta1.InputConfig") 1006 proto.RegisterType((*OutputConfig)(nil), "google.cloud.documentai.v1beta1.OutputConfig") 1007 proto.RegisterType((*GcsSource)(nil), "google.cloud.documentai.v1beta1.GcsSource") 1008 proto.RegisterType((*GcsDestination)(nil), "google.cloud.documentai.v1beta1.GcsDestination") 1009 proto.RegisterType((*OperationMetadata)(nil), "google.cloud.documentai.v1beta1.OperationMetadata") 1010} 1011 1012func init() { 1013 proto.RegisterFile("google/cloud/documentai/v1beta1/document_understanding.proto", fileDescriptor_55a53db6ba9d94ef) 1014} 1015 1016var fileDescriptor_55a53db6ba9d94ef = []byte{ 1017 // 1321 bytes of a gzipped FileDescriptorProto 1018 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4f, 0x6f, 0x1b, 0x45, 1019 0x14, 0xef, 0xda, 0x4d, 0x1a, 0x3f, 0x3b, 0xff, 0x46, 0x4d, 0x6a, 0xa2, 0x56, 0x8d, 0x36, 0x50, 1020 0xaa, 0x88, 0x7a, 0xd5, 0x54, 0x40, 0xd5, 0x52, 0x21, 0xff, 0x6b, 0x6b, 0xb5, 0x75, 0xad, 0xb5, 1021 0xd3, 0xa2, 0x5e, 0x96, 0xf1, 0x7a, 0xb2, 0x5e, 0xe2, 0xdd, 0xd9, 0xce, 0xce, 0x26, 0xb5, 0x10, 1022 0x1c, 0x40, 0x02, 0x8e, 0x48, 0x7c, 0x02, 0xee, 0x7c, 0x01, 0x24, 0xc4, 0x89, 0x53, 0x8f, 0x70, 1023 0xe3, 0xd4, 0x03, 0x1f, 0x81, 0x0f, 0x80, 0x66, 0x66, 0xd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ac, 0x70, 0x5d, 1057 0xed, 0xcd, 0xab, 0x05, 0xb5, 0x6f, 0x0b, 0x16, 0x3d, 0xda, 0x23, 0x03, 0xeb, 0x80, 0xb0, 0xd0, 1058 0xa5, 0xbe, 0x2c, 0xde, 0x9c, 0x59, 0x90, 0xe0, 0x33, 0x85, 0xe9, 0xdf, 0x69, 0xb0, 0x34, 0x6d, 1059 0x15, 0xbd, 0x0d, 0xf9, 0x40, 0x04, 0xc6, 0x8f, 0xbc, 0x2e, 0x61, 0xf2, 0x7c, 0x73, 0x4a, 0x1e, 1060 0x04, 0xde, 0x94, 0x30, 0x6a, 0x41, 0x41, 0x9e, 0xd0, 0xf5, 0x1d, 0xab, 0x4b, 0x5f, 0x9d, 0xf9, 1061 0x8a, 0x2a, 0x31, 0xa9, 0x45, 0x07, 0x43, 0x33, 0x9f, 0x48, 0x54, 0xe8, 0x2b, 0xfd, 0x67, 0x0d, 1062 0x2e, 0xce, 0x2a, 0xe4, 0x53, 0x82, 0xdd, 0x85, 0x8b, 0xfb, 0x64, 0x68, 0x1d, 0xe0, 0x41, 0x44, 1063 0xac, 0x00, 0xbb, 0x6c, 0x2a, 0xde, 0x37, 0x53, 0x9d, 0x79, 0x44, 0x86, 0xcf, 0x04, 0xb7, 0x85, 1064 0x5d, 0x19, 0x34, 0x73, 0x75, 0xff, 0x08, 0x32, 0x23, 0x8c, 0xd9, 0x19, 0x61, 0xac, 0xc3, 0xca, 1065 0x51, 0x2d, 0xb4, 0x02, 0xd9, 0x7d, 0x32, 0x94, 0x2e, 0xe7, 0x4c, 0x31, 0x44, 0x57, 0x21, 0xaf, 1066 0x5c, 0x15, 0x4f, 0xaf, 0xf2, 0x32, 0x67, 0x82, 0x84, 0xc4, 0xc3, 0x1b, 0xea, 0xcf, 0x61, 0x7d, 1067 0xf6, 0xdb, 0x72, 0x4a, 0x0c, 0x8e, 0xf9, 0x97, 0x99, 0xe1, 0xdf, 0x37, 0x1a, 0xe4, 0x27, 0xca, 1068 0x0d, 0x3d, 0x02, 0x70, 0xec, 0xd0, 0x0a, 0x69, 0xc4, 0x6c, 0x12, 0x17, 0x6c, 0xfa, 0x93, 0xf4, 1069 0xc0, 0x0e, 0xdb, 0x92, 0xf1, 0xf0, 0x9c, 0x99, 0x73, 0x92, 0x09, 0xda, 0x84, 0x9c, 0xe7, 0x7a, 1070 0xea, 0x54, 0xca, 0x7a, 0xfc, 0x61, 0x15, 0xa8, 0x38, 0x58, 0x65, 0x01, 0xe6, 0x95, 0x29, 0xfd, 1071 0x47, 0x0d, 0x0a, 0x93, 0x55, 0x8a, 0x5e, 0xc0, 0xb2, 0xf0, 0xa4, 0x47, 0x42, 0xee, 0xfa, 0xb2, 1072 0x53, 0x88, 0xdd, 0x31, 0xce, 0xe2, 0x4e, 0x6d, 0x4c, 0x7b, 0x78, 0xce, 0x5c, 0x72, 0xa6, 0x10, 1073 0x74, 0x0d, 0x96, 0x45, 0xc6, 0x86, 0x56, 0x40, 0x98, 0x15, 0xf6, 0x31, 0xeb, 0x49, 0xf7, 0xe6, 1074 0xcc, 0x45, 0x09, 0xb7, 0x08, 0x6b, 0x0b, 0xb0, 0xb2, 0x08, 0xf9, 0x09, 0xfb, 0xba, 0x0e, 0xb9, 1075 0xd1, 0x49, 0xd1, 0x1a, 0x64, 0x23, 0xe6, 0xaa, 0x5b, 0x54, 0xc7, 0x12, 0x73, 0xfd, 0x5d, 0x58, 1076 0x9a, 0x36, 0x7f, 0xd2, 0xc6, 0xbf, 0x33, 0xb0, 0xfa, 0x34, 0x69, 0x82, 0x9e, 0x10, 0x8e, 0x7b, 1077 0x98, 0x63, 0xd4, 0x84, 0xb9, 0x90, 0x63, 0xae, 0x42, 0xbf, 0x74, 0x86, 0x27, 0xfa, 0x98, 0x44, 1078 0xa9, 0x2d, 0xf8, 0xa6, 0x92, 0x11, 0x49, 0x20, 0x07, 0x96, 0x47, 0xc2, 0x10, 0x3b, 0x24, 0x49, 1079 0x02, 0x09, 0x3e, 0x51, 0x18, 0xba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xe3, 0x19, 0xf3, 0x67, 0x79, 0xd4, 0xa6, 0x7e, 0xf5, 0xc7, 1091 0x5f, 0x3f, 0x64, 0xbe, 0xd4, 0x3f, 0x1e, 0xb5, 0xe1, 0x9f, 0xab, 0x36, 0xf5, 0x5e, 0xc0, 0xe8, 1092 0x67, 0xc4, 0xe6, 0xa1, 0xb1, 0x6d, 0x0c, 0xa8, 0xad, 0xba, 0x6e, 0x63, 0xfb, 0x8b, 0x51, 0xe7, 1093 0x1e, 0xde, 0xe9, 0x4e, 0x58, 0xbd, 0xa3, 0x6d, 0xbf, 0xb8, 0xad, 0xdf, 0x3a, 0x45, 0xe5, 0x14, 1094 0xe6, 0xc6, 0x93, 0xd7, 0xe5, 0xb7, 0x26, 0x22, 0xa3, 0x8e, 0x8c, 0x03, 0x37, 0x2c, 0xd9, 0xd4, 1095 0xfb, 0xbd, 0x5c, 0xea, 0x73, 0x1e, 0x84, 0x77, 0x0c, 0xe3, 0xf0, 0xf0, 0xf0, 0xc8, 0xa2, 0x81, 1096 0x23, 0xde, 0x57, 0xff, 0x14, 0x37, 0x82, 0x01, 0xe6, 0xa2, 0x4b, 0xab, 0x7c, 0xad, 0xc1, 0x96, 1097 0x4d, 0xbd, 0xb4, 0xc8, 0x57, 0x96, 0x93, 0x58, 0x95, 0xdd, 0x96, 0x48, 0xb9, 0x96, 0xf6, 0xa2, 1098 0x11, 0x73, 0x1c, 0x2a, 0x3e, 0xde, 0x25, 0xca, 0x1c, 0xc3, 0x21, 0xbe, 0x4c, 0x48, 0x63, 0x6c, 1099 0xf9, 0xc4, 0x9f, 0x98, 0xbb, 0x63, 0xa8, 0x3b, 0x2f, 0x59, 0xb7, 0xfe, 0x09, 0x00, 0x00, 0xff, 1100 0xff, 0x2c, 0x1c, 0x4e, 0xfe, 0xb0, 0x0d, 0x00, 0x00, 1101} 1102 1103// Reference imports to suppress errors if they are not otherwise used. 1104var _ context.Context 1105var _ grpc.ClientConnInterface 1106 1107// This is a compile-time assertion to ensure that this generated file 1108// is compatible with the grpc package it is being compiled against. 1109const _ = grpc.SupportPackageIsVersion6 1110 1111// DocumentUnderstandingServiceClient is the client API for DocumentUnderstandingService service. 1112// 1113// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1114type DocumentUnderstandingServiceClient interface { 1115 // LRO endpoint to batch process many documents. 1116 BatchProcessDocuments(ctx context.Context, in *BatchProcessDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1117} 1118 1119type documentUnderstandingServiceClient struct { 1120 cc grpc.ClientConnInterface 1121} 1122 1123func NewDocumentUnderstandingServiceClient(cc grpc.ClientConnInterface) DocumentUnderstandingServiceClient { 1124 return &documentUnderstandingServiceClient{cc} 1125} 1126 1127func (c *documentUnderstandingServiceClient) BatchProcessDocuments(ctx context.Context, in *BatchProcessDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1128 out := new(longrunning.Operation) 1129 err := c.cc.Invoke(ctx, "/google.cloud.documentai.v1beta1.DocumentUnderstandingService/BatchProcessDocuments", in, out, opts...) 1130 if err != nil { 1131 return nil, err 1132 } 1133 return out, nil 1134} 1135 1136// DocumentUnderstandingServiceServer is the server API for DocumentUnderstandingService service. 1137type DocumentUnderstandingServiceServer interface { 1138 // LRO endpoint to batch process many documents. 1139 BatchProcessDocuments(context.Context, *BatchProcessDocumentsRequest) (*longrunning.Operation, error) 1140} 1141 1142// UnimplementedDocumentUnderstandingServiceServer can be embedded to have forward compatible implementations. 1143type UnimplementedDocumentUnderstandingServiceServer struct { 1144} 1145 1146func (*UnimplementedDocumentUnderstandingServiceServer) BatchProcessDocuments(ctx context.Context, req *BatchProcessDocumentsRequest) (*longrunning.Operation, error) { 1147 return nil, status.Errorf(codes.Unimplemented, "method BatchProcessDocuments not implemented") 1148} 1149 1150func RegisterDocumentUnderstandingServiceServer(s *grpc.Server, srv DocumentUnderstandingServiceServer) { 1151 s.RegisterService(&_DocumentUnderstandingService_serviceDesc, srv) 1152} 1153 1154func _DocumentUnderstandingService_BatchProcessDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1155 in := new(BatchProcessDocumentsRequest) 1156 if err := dec(in); err != nil { 1157 return nil, err 1158 } 1159 if interceptor == nil { 1160 return srv.(DocumentUnderstandingServiceServer).BatchProcessDocuments(ctx, in) 1161 } 1162 info := &grpc.UnaryServerInfo{ 1163 Server: srv, 1164 FullMethod: "/google.cloud.documentai.v1beta1.DocumentUnderstandingService/BatchProcessDocuments", 1165 } 1166 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1167 return srv.(DocumentUnderstandingServiceServer).BatchProcessDocuments(ctx, req.(*BatchProcessDocumentsRequest)) 1168 } 1169 return interceptor(ctx, in, info, handler) 1170} 1171 1172var _DocumentUnderstandingService_serviceDesc = grpc.ServiceDesc{ 1173 ServiceName: "google.cloud.documentai.v1beta1.DocumentUnderstandingService", 1174 HandlerType: (*DocumentUnderstandingServiceServer)(nil), 1175 Methods: []grpc.MethodDesc{ 1176 { 1177 MethodName: "BatchProcessDocuments", 1178 Handler: _DocumentUnderstandingService_BatchProcessDocuments_Handler, 1179 }, 1180 }, 1181 Streams: []grpc.StreamDesc{}, 1182 Metadata: "google/cloud/documentai/v1beta1/document_understanding.proto", 1183} 1184