1// Copyright 2021 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 protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.26.0 18// protoc v3.12.2 19// source: google/cloud/documentai/v1/document_processor_service.proto 20 21package documentai 22 23import ( 24 context "context" 25 reflect "reflect" 26 sync "sync" 27 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 longrunning "google.golang.org/genproto/googleapis/longrunning" 30 status "google.golang.org/genproto/googleapis/rpc/status" 31 grpc "google.golang.org/grpc" 32 codes "google.golang.org/grpc/codes" 33 status1 "google.golang.org/grpc/status" 34 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 35 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 36 _ "google.golang.org/protobuf/types/known/fieldmaskpb" 37 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 38) 39 40const ( 41 // Verify that this generated code is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 43 // Verify that runtime/protoimpl is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 45) 46 47// The final state of human review on a processed document. 48type HumanReviewStatus_State int32 49 50const ( 51 // Human review state is unspecified. Most likely due to an internal error. 52 HumanReviewStatus_STATE_UNSPECIFIED HumanReviewStatus_State = 0 53 // Human review is skipped for the document. This can happen because human 54 // review is not enabled on the processor or the processing request has 55 // been set to skip this document. 56 HumanReviewStatus_SKIPPED HumanReviewStatus_State = 1 57 // Human review validation is triggered and passed, so no review is needed. 58 HumanReviewStatus_VALIDATION_PASSED HumanReviewStatus_State = 2 59 // Human review validation is triggered and the document is under review. 60 HumanReviewStatus_IN_PROGRESS HumanReviewStatus_State = 3 61 // Some error happened during triggering human review, see the 62 // [state_message] for details. 63 HumanReviewStatus_ERROR HumanReviewStatus_State = 4 64) 65 66// Enum value maps for HumanReviewStatus_State. 67var ( 68 HumanReviewStatus_State_name = map[int32]string{ 69 0: "STATE_UNSPECIFIED", 70 1: "SKIPPED", 71 2: "VALIDATION_PASSED", 72 3: "IN_PROGRESS", 73 4: "ERROR", 74 } 75 HumanReviewStatus_State_value = map[string]int32{ 76 "STATE_UNSPECIFIED": 0, 77 "SKIPPED": 1, 78 "VALIDATION_PASSED": 2, 79 "IN_PROGRESS": 3, 80 "ERROR": 4, 81 } 82) 83 84func (x HumanReviewStatus_State) Enum() *HumanReviewStatus_State { 85 p := new(HumanReviewStatus_State) 86 *p = x 87 return p 88} 89 90func (x HumanReviewStatus_State) String() string { 91 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 92} 93 94func (HumanReviewStatus_State) Descriptor() protoreflect.EnumDescriptor { 95 return file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes[0].Descriptor() 96} 97 98func (HumanReviewStatus_State) Type() protoreflect.EnumType { 99 return &file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes[0] 100} 101 102func (x HumanReviewStatus_State) Number() protoreflect.EnumNumber { 103 return protoreflect.EnumNumber(x) 104} 105 106// Deprecated: Use HumanReviewStatus_State.Descriptor instead. 107func (HumanReviewStatus_State) EnumDescriptor() ([]byte, []int) { 108 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{1, 0} 109} 110 111// Possible states of the batch processing operation. 112type BatchProcessMetadata_State int32 113 114const ( 115 // The default value. This value is used if the state is omitted. 116 BatchProcessMetadata_STATE_UNSPECIFIED BatchProcessMetadata_State = 0 117 // Request operation is waiting for scheduling. 118 BatchProcessMetadata_WAITING BatchProcessMetadata_State = 1 119 // Request is being processed. 120 BatchProcessMetadata_RUNNING BatchProcessMetadata_State = 2 121 // The batch processing completed successfully. 122 BatchProcessMetadata_SUCCEEDED BatchProcessMetadata_State = 3 123 // The batch processing was being cancelled. 124 BatchProcessMetadata_CANCELLING BatchProcessMetadata_State = 4 125 // The batch processing was cancelled. 126 BatchProcessMetadata_CANCELLED BatchProcessMetadata_State = 5 127 // The batch processing has failed. 128 BatchProcessMetadata_FAILED BatchProcessMetadata_State = 6 129) 130 131// Enum value maps for BatchProcessMetadata_State. 132var ( 133 BatchProcessMetadata_State_name = map[int32]string{ 134 0: "STATE_UNSPECIFIED", 135 1: "WAITING", 136 2: "RUNNING", 137 3: "SUCCEEDED", 138 4: "CANCELLING", 139 5: "CANCELLED", 140 6: "FAILED", 141 } 142 BatchProcessMetadata_State_value = map[string]int32{ 143 "STATE_UNSPECIFIED": 0, 144 "WAITING": 1, 145 "RUNNING": 2, 146 "SUCCEEDED": 3, 147 "CANCELLING": 4, 148 "CANCELLED": 5, 149 "FAILED": 6, 150 } 151) 152 153func (x BatchProcessMetadata_State) Enum() *BatchProcessMetadata_State { 154 p := new(BatchProcessMetadata_State) 155 *p = x 156 return p 157} 158 159func (x BatchProcessMetadata_State) String() string { 160 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 161} 162 163func (BatchProcessMetadata_State) Descriptor() protoreflect.EnumDescriptor { 164 return file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes[1].Descriptor() 165} 166 167func (BatchProcessMetadata_State) Type() protoreflect.EnumType { 168 return &file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes[1] 169} 170 171func (x BatchProcessMetadata_State) Number() protoreflect.EnumNumber { 172 return protoreflect.EnumNumber(x) 173} 174 175// Deprecated: Use BatchProcessMetadata_State.Descriptor instead. 176func (BatchProcessMetadata_State) EnumDescriptor() ([]byte, []int) { 177 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{5, 0} 178} 179 180// The priority level of the human review task. 181type ReviewDocumentRequest_Priority int32 182 183const ( 184 // The default priority level. 185 ReviewDocumentRequest_DEFAULT ReviewDocumentRequest_Priority = 0 186 // The urgent priority level. The labeling manager should allocate labeler 187 // resource to the urgent task queue to respect this priority level. 188 ReviewDocumentRequest_URGENT ReviewDocumentRequest_Priority = 1 189) 190 191// Enum value maps for ReviewDocumentRequest_Priority. 192var ( 193 ReviewDocumentRequest_Priority_name = map[int32]string{ 194 0: "DEFAULT", 195 1: "URGENT", 196 } 197 ReviewDocumentRequest_Priority_value = map[string]int32{ 198 "DEFAULT": 0, 199 "URGENT": 1, 200 } 201) 202 203func (x ReviewDocumentRequest_Priority) Enum() *ReviewDocumentRequest_Priority { 204 p := new(ReviewDocumentRequest_Priority) 205 *p = x 206 return p 207} 208 209func (x ReviewDocumentRequest_Priority) String() string { 210 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 211} 212 213func (ReviewDocumentRequest_Priority) Descriptor() protoreflect.EnumDescriptor { 214 return file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes[2].Descriptor() 215} 216 217func (ReviewDocumentRequest_Priority) Type() protoreflect.EnumType { 218 return &file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes[2] 219} 220 221func (x ReviewDocumentRequest_Priority) Number() protoreflect.EnumNumber { 222 return protoreflect.EnumNumber(x) 223} 224 225// Deprecated: Use ReviewDocumentRequest_Priority.Descriptor instead. 226func (ReviewDocumentRequest_Priority) EnumDescriptor() ([]byte, []int) { 227 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{6, 0} 228} 229 230// Request message for the process document method. 231type ProcessRequest struct { 232 state protoimpl.MessageState 233 sizeCache protoimpl.SizeCache 234 unknownFields protoimpl.UnknownFields 235 236 // The document payload. 237 // 238 // Types that are assignable to Source: 239 // *ProcessRequest_InlineDocument 240 // *ProcessRequest_RawDocument 241 Source isProcessRequest_Source `protobuf_oneof:"source"` 242 // Required. The processor resource name. 243 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 244 // Whether Human Review feature should be skipped for this request. Default to 245 // false. 246 SkipHumanReview bool `protobuf:"varint,3,opt,name=skip_human_review,json=skipHumanReview,proto3" json:"skip_human_review,omitempty"` 247} 248 249func (x *ProcessRequest) Reset() { 250 *x = ProcessRequest{} 251 if protoimpl.UnsafeEnabled { 252 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[0] 253 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 254 ms.StoreMessageInfo(mi) 255 } 256} 257 258func (x *ProcessRequest) String() string { 259 return protoimpl.X.MessageStringOf(x) 260} 261 262func (*ProcessRequest) ProtoMessage() {} 263 264func (x *ProcessRequest) ProtoReflect() protoreflect.Message { 265 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[0] 266 if protoimpl.UnsafeEnabled && x != nil { 267 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 268 if ms.LoadMessageInfo() == nil { 269 ms.StoreMessageInfo(mi) 270 } 271 return ms 272 } 273 return mi.MessageOf(x) 274} 275 276// Deprecated: Use ProcessRequest.ProtoReflect.Descriptor instead. 277func (*ProcessRequest) Descriptor() ([]byte, []int) { 278 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{0} 279} 280 281func (m *ProcessRequest) GetSource() isProcessRequest_Source { 282 if m != nil { 283 return m.Source 284 } 285 return nil 286} 287 288func (x *ProcessRequest) GetInlineDocument() *Document { 289 if x, ok := x.GetSource().(*ProcessRequest_InlineDocument); ok { 290 return x.InlineDocument 291 } 292 return nil 293} 294 295func (x *ProcessRequest) GetRawDocument() *RawDocument { 296 if x, ok := x.GetSource().(*ProcessRequest_RawDocument); ok { 297 return x.RawDocument 298 } 299 return nil 300} 301 302func (x *ProcessRequest) GetName() string { 303 if x != nil { 304 return x.Name 305 } 306 return "" 307} 308 309func (x *ProcessRequest) GetSkipHumanReview() bool { 310 if x != nil { 311 return x.SkipHumanReview 312 } 313 return false 314} 315 316type isProcessRequest_Source interface { 317 isProcessRequest_Source() 318} 319 320type ProcessRequest_InlineDocument struct { 321 // An inline document proto. 322 InlineDocument *Document `protobuf:"bytes,4,opt,name=inline_document,json=inlineDocument,proto3,oneof"` 323} 324 325type ProcessRequest_RawDocument struct { 326 // A raw document content (bytes). 327 RawDocument *RawDocument `protobuf:"bytes,5,opt,name=raw_document,json=rawDocument,proto3,oneof"` 328} 329 330func (*ProcessRequest_InlineDocument) isProcessRequest_Source() {} 331 332func (*ProcessRequest_RawDocument) isProcessRequest_Source() {} 333 334// The status of human review on a processed document. 335type HumanReviewStatus struct { 336 state protoimpl.MessageState 337 sizeCache protoimpl.SizeCache 338 unknownFields protoimpl.UnknownFields 339 340 // The state of human review on the processing request. 341 State HumanReviewStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.documentai.v1.HumanReviewStatus_State" json:"state,omitempty"` 342 // A message providing more details about the human review state. 343 StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` 344 // The name of the operation triggered by the processed document. This field 345 // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has 346 // the same response type and metadata as the long running operation returned 347 // by [ReviewDocument] method. 348 HumanReviewOperation string `protobuf:"bytes,3,opt,name=human_review_operation,json=humanReviewOperation,proto3" json:"human_review_operation,omitempty"` 349} 350 351func (x *HumanReviewStatus) Reset() { 352 *x = HumanReviewStatus{} 353 if protoimpl.UnsafeEnabled { 354 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[1] 355 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 356 ms.StoreMessageInfo(mi) 357 } 358} 359 360func (x *HumanReviewStatus) String() string { 361 return protoimpl.X.MessageStringOf(x) 362} 363 364func (*HumanReviewStatus) ProtoMessage() {} 365 366func (x *HumanReviewStatus) ProtoReflect() protoreflect.Message { 367 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[1] 368 if protoimpl.UnsafeEnabled && x != nil { 369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 370 if ms.LoadMessageInfo() == nil { 371 ms.StoreMessageInfo(mi) 372 } 373 return ms 374 } 375 return mi.MessageOf(x) 376} 377 378// Deprecated: Use HumanReviewStatus.ProtoReflect.Descriptor instead. 379func (*HumanReviewStatus) Descriptor() ([]byte, []int) { 380 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{1} 381} 382 383func (x *HumanReviewStatus) GetState() HumanReviewStatus_State { 384 if x != nil { 385 return x.State 386 } 387 return HumanReviewStatus_STATE_UNSPECIFIED 388} 389 390func (x *HumanReviewStatus) GetStateMessage() string { 391 if x != nil { 392 return x.StateMessage 393 } 394 return "" 395} 396 397func (x *HumanReviewStatus) GetHumanReviewOperation() string { 398 if x != nil { 399 return x.HumanReviewOperation 400 } 401 return "" 402} 403 404// Response message for the process document method. 405type ProcessResponse struct { 406 state protoimpl.MessageState 407 sizeCache protoimpl.SizeCache 408 unknownFields protoimpl.UnknownFields 409 410 // The document payload, will populate fields based on the processor's 411 // behavior. 412 Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` 413 // The status of human review on the processed document. 414 HumanReviewStatus *HumanReviewStatus `protobuf:"bytes,3,opt,name=human_review_status,json=humanReviewStatus,proto3" json:"human_review_status,omitempty"` 415} 416 417func (x *ProcessResponse) Reset() { 418 *x = ProcessResponse{} 419 if protoimpl.UnsafeEnabled { 420 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[2] 421 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 422 ms.StoreMessageInfo(mi) 423 } 424} 425 426func (x *ProcessResponse) String() string { 427 return protoimpl.X.MessageStringOf(x) 428} 429 430func (*ProcessResponse) ProtoMessage() {} 431 432func (x *ProcessResponse) ProtoReflect() protoreflect.Message { 433 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[2] 434 if protoimpl.UnsafeEnabled && x != nil { 435 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 436 if ms.LoadMessageInfo() == nil { 437 ms.StoreMessageInfo(mi) 438 } 439 return ms 440 } 441 return mi.MessageOf(x) 442} 443 444// Deprecated: Use ProcessResponse.ProtoReflect.Descriptor instead. 445func (*ProcessResponse) Descriptor() ([]byte, []int) { 446 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{2} 447} 448 449func (x *ProcessResponse) GetDocument() *Document { 450 if x != nil { 451 return x.Document 452 } 453 return nil 454} 455 456func (x *ProcessResponse) GetHumanReviewStatus() *HumanReviewStatus { 457 if x != nil { 458 return x.HumanReviewStatus 459 } 460 return nil 461} 462 463// Request message for batch process document method. 464type BatchProcessRequest struct { 465 state protoimpl.MessageState 466 sizeCache protoimpl.SizeCache 467 unknownFields protoimpl.UnknownFields 468 469 // Required. The processor resource name. 470 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 471 // The input documents for batch process. 472 InputDocuments *BatchDocumentsInputConfig `protobuf:"bytes,5,opt,name=input_documents,json=inputDocuments,proto3" json:"input_documents,omitempty"` 473 // The overall output config for batch process. 474 DocumentOutputConfig *DocumentOutputConfig `protobuf:"bytes,6,opt,name=document_output_config,json=documentOutputConfig,proto3" json:"document_output_config,omitempty"` 475 // Whether Human Review feature should be skipped for this request. Default to 476 // false. 477 SkipHumanReview bool `protobuf:"varint,4,opt,name=skip_human_review,json=skipHumanReview,proto3" json:"skip_human_review,omitempty"` 478} 479 480func (x *BatchProcessRequest) Reset() { 481 *x = BatchProcessRequest{} 482 if protoimpl.UnsafeEnabled { 483 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[3] 484 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 485 ms.StoreMessageInfo(mi) 486 } 487} 488 489func (x *BatchProcessRequest) String() string { 490 return protoimpl.X.MessageStringOf(x) 491} 492 493func (*BatchProcessRequest) ProtoMessage() {} 494 495func (x *BatchProcessRequest) ProtoReflect() protoreflect.Message { 496 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[3] 497 if protoimpl.UnsafeEnabled && x != nil { 498 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 499 if ms.LoadMessageInfo() == nil { 500 ms.StoreMessageInfo(mi) 501 } 502 return ms 503 } 504 return mi.MessageOf(x) 505} 506 507// Deprecated: Use BatchProcessRequest.ProtoReflect.Descriptor instead. 508func (*BatchProcessRequest) Descriptor() ([]byte, []int) { 509 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{3} 510} 511 512func (x *BatchProcessRequest) GetName() string { 513 if x != nil { 514 return x.Name 515 } 516 return "" 517} 518 519func (x *BatchProcessRequest) GetInputDocuments() *BatchDocumentsInputConfig { 520 if x != nil { 521 return x.InputDocuments 522 } 523 return nil 524} 525 526func (x *BatchProcessRequest) GetDocumentOutputConfig() *DocumentOutputConfig { 527 if x != nil { 528 return x.DocumentOutputConfig 529 } 530 return nil 531} 532 533func (x *BatchProcessRequest) GetSkipHumanReview() bool { 534 if x != nil { 535 return x.SkipHumanReview 536 } 537 return false 538} 539 540// Response message for batch process document method. 541type BatchProcessResponse struct { 542 state protoimpl.MessageState 543 sizeCache protoimpl.SizeCache 544 unknownFields protoimpl.UnknownFields 545} 546 547func (x *BatchProcessResponse) Reset() { 548 *x = BatchProcessResponse{} 549 if protoimpl.UnsafeEnabled { 550 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[4] 551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 552 ms.StoreMessageInfo(mi) 553 } 554} 555 556func (x *BatchProcessResponse) String() string { 557 return protoimpl.X.MessageStringOf(x) 558} 559 560func (*BatchProcessResponse) ProtoMessage() {} 561 562func (x *BatchProcessResponse) ProtoReflect() protoreflect.Message { 563 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[4] 564 if protoimpl.UnsafeEnabled && x != nil { 565 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 566 if ms.LoadMessageInfo() == nil { 567 ms.StoreMessageInfo(mi) 568 } 569 return ms 570 } 571 return mi.MessageOf(x) 572} 573 574// Deprecated: Use BatchProcessResponse.ProtoReflect.Descriptor instead. 575func (*BatchProcessResponse) Descriptor() ([]byte, []int) { 576 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{4} 577} 578 579// The long running operation metadata for batch process method. 580type BatchProcessMetadata struct { 581 state protoimpl.MessageState 582 sizeCache protoimpl.SizeCache 583 unknownFields protoimpl.UnknownFields 584 585 // The state of the current batch processing. 586 State BatchProcessMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.documentai.v1.BatchProcessMetadata_State" json:"state,omitempty"` 587 // A message providing more details about the current state of processing. 588 // For example, the error message if the operation is failed. 589 StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` 590 // The creation time of the operation. 591 CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 592 // The last update time of the operation. 593 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 594 // The list of response details of each document. 595 IndividualProcessStatuses []*BatchProcessMetadata_IndividualProcessStatus `protobuf:"bytes,5,rep,name=individual_process_statuses,json=individualProcessStatuses,proto3" json:"individual_process_statuses,omitempty"` 596} 597 598func (x *BatchProcessMetadata) Reset() { 599 *x = BatchProcessMetadata{} 600 if protoimpl.UnsafeEnabled { 601 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[5] 602 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 603 ms.StoreMessageInfo(mi) 604 } 605} 606 607func (x *BatchProcessMetadata) String() string { 608 return protoimpl.X.MessageStringOf(x) 609} 610 611func (*BatchProcessMetadata) ProtoMessage() {} 612 613func (x *BatchProcessMetadata) ProtoReflect() protoreflect.Message { 614 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[5] 615 if protoimpl.UnsafeEnabled && x != nil { 616 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 617 if ms.LoadMessageInfo() == nil { 618 ms.StoreMessageInfo(mi) 619 } 620 return ms 621 } 622 return mi.MessageOf(x) 623} 624 625// Deprecated: Use BatchProcessMetadata.ProtoReflect.Descriptor instead. 626func (*BatchProcessMetadata) Descriptor() ([]byte, []int) { 627 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{5} 628} 629 630func (x *BatchProcessMetadata) GetState() BatchProcessMetadata_State { 631 if x != nil { 632 return x.State 633 } 634 return BatchProcessMetadata_STATE_UNSPECIFIED 635} 636 637func (x *BatchProcessMetadata) GetStateMessage() string { 638 if x != nil { 639 return x.StateMessage 640 } 641 return "" 642} 643 644func (x *BatchProcessMetadata) GetCreateTime() *timestamppb.Timestamp { 645 if x != nil { 646 return x.CreateTime 647 } 648 return nil 649} 650 651func (x *BatchProcessMetadata) GetUpdateTime() *timestamppb.Timestamp { 652 if x != nil { 653 return x.UpdateTime 654 } 655 return nil 656} 657 658func (x *BatchProcessMetadata) GetIndividualProcessStatuses() []*BatchProcessMetadata_IndividualProcessStatus { 659 if x != nil { 660 return x.IndividualProcessStatuses 661 } 662 return nil 663} 664 665// Request message for review document method. 666type ReviewDocumentRequest struct { 667 state protoimpl.MessageState 668 sizeCache protoimpl.SizeCache 669 unknownFields protoimpl.UnknownFields 670 671 // The document payload. 672 // 673 // Types that are assignable to Source: 674 // *ReviewDocumentRequest_InlineDocument 675 Source isReviewDocumentRequest_Source `protobuf_oneof:"source"` 676 // Required. The resource name of the HumanReviewConfig that the document will be 677 // reviewed with. 678 HumanReviewConfig string `protobuf:"bytes,1,opt,name=human_review_config,json=humanReviewConfig,proto3" json:"human_review_config,omitempty"` 679 // Whether the validation should be performed on the ad-hoc review request. 680 EnableSchemaValidation bool `protobuf:"varint,3,opt,name=enable_schema_validation,json=enableSchemaValidation,proto3" json:"enable_schema_validation,omitempty"` 681 // The priority of the human review task. 682 Priority ReviewDocumentRequest_Priority `protobuf:"varint,5,opt,name=priority,proto3,enum=google.cloud.documentai.v1.ReviewDocumentRequest_Priority" json:"priority,omitempty"` 683} 684 685func (x *ReviewDocumentRequest) Reset() { 686 *x = ReviewDocumentRequest{} 687 if protoimpl.UnsafeEnabled { 688 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[6] 689 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 690 ms.StoreMessageInfo(mi) 691 } 692} 693 694func (x *ReviewDocumentRequest) String() string { 695 return protoimpl.X.MessageStringOf(x) 696} 697 698func (*ReviewDocumentRequest) ProtoMessage() {} 699 700func (x *ReviewDocumentRequest) ProtoReflect() protoreflect.Message { 701 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[6] 702 if protoimpl.UnsafeEnabled && x != nil { 703 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 704 if ms.LoadMessageInfo() == nil { 705 ms.StoreMessageInfo(mi) 706 } 707 return ms 708 } 709 return mi.MessageOf(x) 710} 711 712// Deprecated: Use ReviewDocumentRequest.ProtoReflect.Descriptor instead. 713func (*ReviewDocumentRequest) Descriptor() ([]byte, []int) { 714 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{6} 715} 716 717func (m *ReviewDocumentRequest) GetSource() isReviewDocumentRequest_Source { 718 if m != nil { 719 return m.Source 720 } 721 return nil 722} 723 724func (x *ReviewDocumentRequest) GetInlineDocument() *Document { 725 if x, ok := x.GetSource().(*ReviewDocumentRequest_InlineDocument); ok { 726 return x.InlineDocument 727 } 728 return nil 729} 730 731func (x *ReviewDocumentRequest) GetHumanReviewConfig() string { 732 if x != nil { 733 return x.HumanReviewConfig 734 } 735 return "" 736} 737 738func (x *ReviewDocumentRequest) GetEnableSchemaValidation() bool { 739 if x != nil { 740 return x.EnableSchemaValidation 741 } 742 return false 743} 744 745func (x *ReviewDocumentRequest) GetPriority() ReviewDocumentRequest_Priority { 746 if x != nil { 747 return x.Priority 748 } 749 return ReviewDocumentRequest_DEFAULT 750} 751 752type isReviewDocumentRequest_Source interface { 753 isReviewDocumentRequest_Source() 754} 755 756type ReviewDocumentRequest_InlineDocument struct { 757 // An inline document proto. 758 InlineDocument *Document `protobuf:"bytes,4,opt,name=inline_document,json=inlineDocument,proto3,oneof"` 759} 760 761func (*ReviewDocumentRequest_InlineDocument) isReviewDocumentRequest_Source() {} 762 763// Response message for review document method. 764type ReviewDocumentResponse struct { 765 state protoimpl.MessageState 766 sizeCache protoimpl.SizeCache 767 unknownFields protoimpl.UnknownFields 768 769 // The Cloud Storage uri for the human reviewed document. 770 GcsDestination string `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3" json:"gcs_destination,omitempty"` 771} 772 773func (x *ReviewDocumentResponse) Reset() { 774 *x = ReviewDocumentResponse{} 775 if protoimpl.UnsafeEnabled { 776 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[7] 777 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 778 ms.StoreMessageInfo(mi) 779 } 780} 781 782func (x *ReviewDocumentResponse) String() string { 783 return protoimpl.X.MessageStringOf(x) 784} 785 786func (*ReviewDocumentResponse) ProtoMessage() {} 787 788func (x *ReviewDocumentResponse) ProtoReflect() protoreflect.Message { 789 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[7] 790 if protoimpl.UnsafeEnabled && x != nil { 791 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 792 if ms.LoadMessageInfo() == nil { 793 ms.StoreMessageInfo(mi) 794 } 795 return ms 796 } 797 return mi.MessageOf(x) 798} 799 800// Deprecated: Use ReviewDocumentResponse.ProtoReflect.Descriptor instead. 801func (*ReviewDocumentResponse) Descriptor() ([]byte, []int) { 802 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{7} 803} 804 805func (x *ReviewDocumentResponse) GetGcsDestination() string { 806 if x != nil { 807 return x.GcsDestination 808 } 809 return "" 810} 811 812// The long running operation metadata for review document method. 813type ReviewDocumentOperationMetadata struct { 814 state protoimpl.MessageState 815 sizeCache protoimpl.SizeCache 816 unknownFields protoimpl.UnknownFields 817 818 // The basic metadata of the long running operation. 819 CommonMetadata *CommonOperationMetadata `protobuf:"bytes,5,opt,name=common_metadata,json=commonMetadata,proto3" json:"common_metadata,omitempty"` 820} 821 822func (x *ReviewDocumentOperationMetadata) Reset() { 823 *x = ReviewDocumentOperationMetadata{} 824 if protoimpl.UnsafeEnabled { 825 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[8] 826 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 827 ms.StoreMessageInfo(mi) 828 } 829} 830 831func (x *ReviewDocumentOperationMetadata) String() string { 832 return protoimpl.X.MessageStringOf(x) 833} 834 835func (*ReviewDocumentOperationMetadata) ProtoMessage() {} 836 837func (x *ReviewDocumentOperationMetadata) ProtoReflect() protoreflect.Message { 838 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[8] 839 if protoimpl.UnsafeEnabled && x != nil { 840 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 841 if ms.LoadMessageInfo() == nil { 842 ms.StoreMessageInfo(mi) 843 } 844 return ms 845 } 846 return mi.MessageOf(x) 847} 848 849// Deprecated: Use ReviewDocumentOperationMetadata.ProtoReflect.Descriptor instead. 850func (*ReviewDocumentOperationMetadata) Descriptor() ([]byte, []int) { 851 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{8} 852} 853 854func (x *ReviewDocumentOperationMetadata) GetCommonMetadata() *CommonOperationMetadata { 855 if x != nil { 856 return x.CommonMetadata 857 } 858 return nil 859} 860 861// The status of a each individual document in the batch process. 862type BatchProcessMetadata_IndividualProcessStatus struct { 863 state protoimpl.MessageState 864 sizeCache protoimpl.SizeCache 865 unknownFields protoimpl.UnknownFields 866 867 // The source of the document, same as the [input_gcs_source] field in the 868 // request when the batch process started. The batch process is started by 869 // take snapshot of that document, since a user can move or change that 870 // document during the process. 871 InputGcsSource string `protobuf:"bytes,1,opt,name=input_gcs_source,json=inputGcsSource,proto3" json:"input_gcs_source,omitempty"` 872 // The status of the processing of the document. 873 Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` 874 // The output_gcs_destination (in the request as 'output_gcs_destination') 875 // of the processed document if it was successful, otherwise empty. 876 OutputGcsDestination string `protobuf:"bytes,3,opt,name=output_gcs_destination,json=outputGcsDestination,proto3" json:"output_gcs_destination,omitempty"` 877 // The status of human review on the processed document. 878 HumanReviewStatus *HumanReviewStatus `protobuf:"bytes,5,opt,name=human_review_status,json=humanReviewStatus,proto3" json:"human_review_status,omitempty"` 879} 880 881func (x *BatchProcessMetadata_IndividualProcessStatus) Reset() { 882 *x = BatchProcessMetadata_IndividualProcessStatus{} 883 if protoimpl.UnsafeEnabled { 884 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[9] 885 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 886 ms.StoreMessageInfo(mi) 887 } 888} 889 890func (x *BatchProcessMetadata_IndividualProcessStatus) String() string { 891 return protoimpl.X.MessageStringOf(x) 892} 893 894func (*BatchProcessMetadata_IndividualProcessStatus) ProtoMessage() {} 895 896func (x *BatchProcessMetadata_IndividualProcessStatus) ProtoReflect() protoreflect.Message { 897 mi := &file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[9] 898 if protoimpl.UnsafeEnabled && x != nil { 899 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 900 if ms.LoadMessageInfo() == nil { 901 ms.StoreMessageInfo(mi) 902 } 903 return ms 904 } 905 return mi.MessageOf(x) 906} 907 908// Deprecated: Use BatchProcessMetadata_IndividualProcessStatus.ProtoReflect.Descriptor instead. 909func (*BatchProcessMetadata_IndividualProcessStatus) Descriptor() ([]byte, []int) { 910 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP(), []int{5, 0} 911} 912 913func (x *BatchProcessMetadata_IndividualProcessStatus) GetInputGcsSource() string { 914 if x != nil { 915 return x.InputGcsSource 916 } 917 return "" 918} 919 920func (x *BatchProcessMetadata_IndividualProcessStatus) GetStatus() *status.Status { 921 if x != nil { 922 return x.Status 923 } 924 return nil 925} 926 927func (x *BatchProcessMetadata_IndividualProcessStatus) GetOutputGcsDestination() string { 928 if x != nil { 929 return x.OutputGcsDestination 930 } 931 return "" 932} 933 934func (x *BatchProcessMetadata_IndividualProcessStatus) GetHumanReviewStatus() *HumanReviewStatus { 935 if x != nil { 936 return x.HumanReviewStatus 937 } 938 return nil 939} 940 941var File_google_cloud_documentai_v1_document_processor_service_proto protoreflect.FileDescriptor 942 943var file_google_cloud_documentai_v1_document_processor_service_proto_rawDesc = []byte{ 944 0x0a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 945 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 946 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 947 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 948 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 949 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 950 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 951 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 952 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 953 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 954 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 955 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 956 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 957 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 958 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 959 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 960 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 961 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6f, 0x2e, 962 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 963 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 964 0x31, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 965 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 966 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 967 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 968 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 969 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 970 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 971 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 972 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 973 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x02, 0x0a, 0x0e, 974 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 975 0x0a, 0x0f, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 976 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 977 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 978 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 979 0x0e, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 980 0x4c, 0x0a, 0x0c, 0x72, 0x61, 0x77, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 981 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 982 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 983 0x76, 0x31, 0x2e, 0x52, 0x61, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 984 0x52, 0x0b, 0x72, 0x61, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 985 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 986 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 987 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 988 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 989 0x0a, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 990 0x69, 0x65, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x48, 991 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 992 0x75, 0x72, 0x63, 0x65, 0x22, 0x99, 0x02, 0x0a, 0x11, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 993 0x76, 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x74, 994 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 995 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 996 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 997 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 998 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6d, 999 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 1000 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x68, 0x75, 1001 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 1002 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x68, 0x75, 0x6d, 0x61, 1003 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1004 0x22, 0x5e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 1005 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 1006 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 1007 0x11, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 1008 0x45, 0x44, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 1009 0x45, 0x53, 0x53, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 1010 0x22, 0xb2, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 1011 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 1012 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 1013 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 1014 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x64, 0x6f, 1015 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x13, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 1016 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 1017 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 1018 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 1019 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 1020 0x75, 0x73, 0x52, 0x11, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 1021 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xca, 0x02, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 1022 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 1023 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 1024 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 1025 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 1026 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x5e, 1027 0x0a, 0x0f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 1028 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 1029 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 1030 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 1031 0x6e, 0x74, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 1032 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x66, 1033 0x0a, 0x16, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 1034 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 1035 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 1036 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 1037 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 1038 0x52, 0x14, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 1039 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x68, 1040 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 1041 0x08, 0x52, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 1042 0x65, 0x77, 0x22, 0x16, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 1043 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x89, 0x06, 0x0a, 0x14, 0x42, 1044 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 1045 0x61, 0x74, 0x61, 0x12, 0x4c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 1046 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 1047 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 1048 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 1049 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 1050 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 1051 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4d, 1052 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 1053 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 1054 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 1055 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 1056 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 1057 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 1058 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 1059 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 1060 0x12, 0x88, 0x01, 0x0a, 0x1b, 0x69, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x5f, 1061 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 1062 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 1063 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 1064 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 1065 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 1066 0x75, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 1067 0x52, 0x19, 0x69, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x63, 1068 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x84, 0x02, 0x0a, 0x17, 1069 0x49, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 1070 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x70, 0x75, 0x74, 1071 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 1072 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 1073 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 1074 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 1075 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 1076 0x16, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 1077 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6f, 1078 0x75, 0x74, 0x70, 0x75, 0x74, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 1079 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x13, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 1080 0x69, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 1081 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 1082 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x75, 1083 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 1084 0x11, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 1085 0x75, 0x73, 0x22, 0x72, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 1086 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 1087 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 1088 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 1089 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 1090 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x43, 1091 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 1092 0x49, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x22, 0x94, 0x03, 0x0a, 0x15, 0x52, 0x65, 0x76, 0x69, 0x65, 1093 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1094 0x12, 0x4f, 0x0a, 0x0f, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 1095 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 1096 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 1097 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x48, 1098 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 1099 0x74, 0x12, 0x63, 0x0a, 0x13, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 1100 0x77, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 1101 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 1102 0x61, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 1103 0x6d, 0x2f, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 1104 0x66, 0x69, 0x67, 0x52, 0x11, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 1105 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 1106 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 1107 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 1108 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1109 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 1110 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 1111 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 1112 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 1113 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 1114 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x23, 0x0a, 0x08, 0x50, 0x72, 0x69, 0x6f, 1115 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 1116 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x52, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x42, 0x08, 0x0a, 1117 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x41, 0x0a, 1118 0x16, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 1119 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 1120 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 1121 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1122 0x22, 0x7f, 0x0a, 0x1f, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 1123 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 1124 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 1125 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 1126 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 1127 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 1128 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 1129 0x61, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 1130 0x61, 0x32, 0xab, 0x06, 0x0a, 0x18, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 1131 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb4, 1132 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 1133 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 1134 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 1135 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 1136 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 1137 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 1138 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 1139 0x93, 0x02, 0x3b, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 1140 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 1141 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 1142 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, 1143 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xe5, 0x01, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 1144 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 1145 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 1146 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 1147 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1148 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 1149 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 1150 0x7c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x22, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 1151 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 1152 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 1153 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 1154 0x63, 0x65, 0x73, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 1155 0x2c, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 1156 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 1157 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xa0, 0x02, 1158 0x0a, 0x0e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 1159 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 1160 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 1161 0x76, 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 1162 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 1163 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 1164 0x6f, 0x6e, 0x22, 0xbb, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x63, 0x22, 0x5e, 0x2f, 0x76, 0x31, 1165 0x2f, 0x7b, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 1166 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 1167 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 1168 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 1169 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x3a, 0x72, 0x65, 0x76, 1170 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 1171 0x13, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 1172 0x6e, 0x66, 0x69, 0x67, 0xca, 0x41, 0x39, 0x0a, 0x16, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 1173 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 1174 0x1f, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 1175 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 1176 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 1177 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 1178 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 1179 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 1180 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 1181 0x98, 0x04, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 1182 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 1183 0x76, 0x31, 0x42, 0x1a, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x69, 0x50, 0x72, 1184 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x01, 1185 0x5a, 0x44, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 1186 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 1187 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 1188 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x6f, 0x63, 0x75, 1189 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 1190 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 1191 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 1192 0x75, 0x64, 0x5c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x5c, 0x56, 0x31, 1193 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 1194 0x3a, 0x3a, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31, 1195 0xea, 0x41, 0x4d, 0x0a, 0x22, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 1196 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 1197 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 1198 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 1199 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 1200 0xea, 0x41, 0x65, 0x0a, 0x23, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 1201 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 1202 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x3e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 1203 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 1204 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1205 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x70, 0x72, 1206 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x7d, 0xea, 0x41, 0x7f, 0x0a, 0x2b, 0x64, 0x6f, 0x63, 1207 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 1208 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 1209 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 1210 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 1211 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1212 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x70, 0x72, 1213 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x7d, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 1214 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 1215 0x6f, 0x33, 1216} 1217 1218var ( 1219 file_google_cloud_documentai_v1_document_processor_service_proto_rawDescOnce sync.Once 1220 file_google_cloud_documentai_v1_document_processor_service_proto_rawDescData = file_google_cloud_documentai_v1_document_processor_service_proto_rawDesc 1221) 1222 1223func file_google_cloud_documentai_v1_document_processor_service_proto_rawDescGZIP() []byte { 1224 file_google_cloud_documentai_v1_document_processor_service_proto_rawDescOnce.Do(func() { 1225 file_google_cloud_documentai_v1_document_processor_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1_document_processor_service_proto_rawDescData) 1226 }) 1227 return file_google_cloud_documentai_v1_document_processor_service_proto_rawDescData 1228} 1229 1230var file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 1231var file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 1232var file_google_cloud_documentai_v1_document_processor_service_proto_goTypes = []interface{}{ 1233 (HumanReviewStatus_State)(0), // 0: google.cloud.documentai.v1.HumanReviewStatus.State 1234 (BatchProcessMetadata_State)(0), // 1: google.cloud.documentai.v1.BatchProcessMetadata.State 1235 (ReviewDocumentRequest_Priority)(0), // 2: google.cloud.documentai.v1.ReviewDocumentRequest.Priority 1236 (*ProcessRequest)(nil), // 3: google.cloud.documentai.v1.ProcessRequest 1237 (*HumanReviewStatus)(nil), // 4: google.cloud.documentai.v1.HumanReviewStatus 1238 (*ProcessResponse)(nil), // 5: google.cloud.documentai.v1.ProcessResponse 1239 (*BatchProcessRequest)(nil), // 6: google.cloud.documentai.v1.BatchProcessRequest 1240 (*BatchProcessResponse)(nil), // 7: google.cloud.documentai.v1.BatchProcessResponse 1241 (*BatchProcessMetadata)(nil), // 8: google.cloud.documentai.v1.BatchProcessMetadata 1242 (*ReviewDocumentRequest)(nil), // 9: google.cloud.documentai.v1.ReviewDocumentRequest 1243 (*ReviewDocumentResponse)(nil), // 10: google.cloud.documentai.v1.ReviewDocumentResponse 1244 (*ReviewDocumentOperationMetadata)(nil), // 11: google.cloud.documentai.v1.ReviewDocumentOperationMetadata 1245 (*BatchProcessMetadata_IndividualProcessStatus)(nil), // 12: google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus 1246 (*Document)(nil), // 13: google.cloud.documentai.v1.Document 1247 (*RawDocument)(nil), // 14: google.cloud.documentai.v1.RawDocument 1248 (*BatchDocumentsInputConfig)(nil), // 15: google.cloud.documentai.v1.BatchDocumentsInputConfig 1249 (*DocumentOutputConfig)(nil), // 16: google.cloud.documentai.v1.DocumentOutputConfig 1250 (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp 1251 (*CommonOperationMetadata)(nil), // 18: google.cloud.documentai.v1.CommonOperationMetadata 1252 (*status.Status)(nil), // 19: google.rpc.Status 1253 (*longrunning.Operation)(nil), // 20: google.longrunning.Operation 1254} 1255var file_google_cloud_documentai_v1_document_processor_service_proto_depIdxs = []int32{ 1256 13, // 0: google.cloud.documentai.v1.ProcessRequest.inline_document:type_name -> google.cloud.documentai.v1.Document 1257 14, // 1: google.cloud.documentai.v1.ProcessRequest.raw_document:type_name -> google.cloud.documentai.v1.RawDocument 1258 0, // 2: google.cloud.documentai.v1.HumanReviewStatus.state:type_name -> google.cloud.documentai.v1.HumanReviewStatus.State 1259 13, // 3: google.cloud.documentai.v1.ProcessResponse.document:type_name -> google.cloud.documentai.v1.Document 1260 4, // 4: google.cloud.documentai.v1.ProcessResponse.human_review_status:type_name -> google.cloud.documentai.v1.HumanReviewStatus 1261 15, // 5: google.cloud.documentai.v1.BatchProcessRequest.input_documents:type_name -> google.cloud.documentai.v1.BatchDocumentsInputConfig 1262 16, // 6: google.cloud.documentai.v1.BatchProcessRequest.document_output_config:type_name -> google.cloud.documentai.v1.DocumentOutputConfig 1263 1, // 7: google.cloud.documentai.v1.BatchProcessMetadata.state:type_name -> google.cloud.documentai.v1.BatchProcessMetadata.State 1264 17, // 8: google.cloud.documentai.v1.BatchProcessMetadata.create_time:type_name -> google.protobuf.Timestamp 1265 17, // 9: google.cloud.documentai.v1.BatchProcessMetadata.update_time:type_name -> google.protobuf.Timestamp 1266 12, // 10: google.cloud.documentai.v1.BatchProcessMetadata.individual_process_statuses:type_name -> google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus 1267 13, // 11: google.cloud.documentai.v1.ReviewDocumentRequest.inline_document:type_name -> google.cloud.documentai.v1.Document 1268 2, // 12: google.cloud.documentai.v1.ReviewDocumentRequest.priority:type_name -> google.cloud.documentai.v1.ReviewDocumentRequest.Priority 1269 18, // 13: google.cloud.documentai.v1.ReviewDocumentOperationMetadata.common_metadata:type_name -> google.cloud.documentai.v1.CommonOperationMetadata 1270 19, // 14: google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.status:type_name -> google.rpc.Status 1271 4, // 15: google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.human_review_status:type_name -> google.cloud.documentai.v1.HumanReviewStatus 1272 3, // 16: google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument:input_type -> google.cloud.documentai.v1.ProcessRequest 1273 6, // 17: google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments:input_type -> google.cloud.documentai.v1.BatchProcessRequest 1274 9, // 18: google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument:input_type -> google.cloud.documentai.v1.ReviewDocumentRequest 1275 5, // 19: google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument:output_type -> google.cloud.documentai.v1.ProcessResponse 1276 20, // 20: google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments:output_type -> google.longrunning.Operation 1277 20, // 21: google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument:output_type -> google.longrunning.Operation 1278 19, // [19:22] is the sub-list for method output_type 1279 16, // [16:19] is the sub-list for method input_type 1280 16, // [16:16] is the sub-list for extension type_name 1281 16, // [16:16] is the sub-list for extension extendee 1282 0, // [0:16] is the sub-list for field type_name 1283} 1284 1285func init() { file_google_cloud_documentai_v1_document_processor_service_proto_init() } 1286func file_google_cloud_documentai_v1_document_processor_service_proto_init() { 1287 if File_google_cloud_documentai_v1_document_processor_service_proto != nil { 1288 return 1289 } 1290 file_google_cloud_documentai_v1_document_proto_init() 1291 file_google_cloud_documentai_v1_document_io_proto_init() 1292 file_google_cloud_documentai_v1_operation_metadata_proto_init() 1293 if !protoimpl.UnsafeEnabled { 1294 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1295 switch v := v.(*ProcessRequest); i { 1296 case 0: 1297 return &v.state 1298 case 1: 1299 return &v.sizeCache 1300 case 2: 1301 return &v.unknownFields 1302 default: 1303 return nil 1304 } 1305 } 1306 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1307 switch v := v.(*HumanReviewStatus); i { 1308 case 0: 1309 return &v.state 1310 case 1: 1311 return &v.sizeCache 1312 case 2: 1313 return &v.unknownFields 1314 default: 1315 return nil 1316 } 1317 } 1318 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1319 switch v := v.(*ProcessResponse); i { 1320 case 0: 1321 return &v.state 1322 case 1: 1323 return &v.sizeCache 1324 case 2: 1325 return &v.unknownFields 1326 default: 1327 return nil 1328 } 1329 } 1330 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1331 switch v := v.(*BatchProcessRequest); i { 1332 case 0: 1333 return &v.state 1334 case 1: 1335 return &v.sizeCache 1336 case 2: 1337 return &v.unknownFields 1338 default: 1339 return nil 1340 } 1341 } 1342 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1343 switch v := v.(*BatchProcessResponse); i { 1344 case 0: 1345 return &v.state 1346 case 1: 1347 return &v.sizeCache 1348 case 2: 1349 return &v.unknownFields 1350 default: 1351 return nil 1352 } 1353 } 1354 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1355 switch v := v.(*BatchProcessMetadata); i { 1356 case 0: 1357 return &v.state 1358 case 1: 1359 return &v.sizeCache 1360 case 2: 1361 return &v.unknownFields 1362 default: 1363 return nil 1364 } 1365 } 1366 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1367 switch v := v.(*ReviewDocumentRequest); i { 1368 case 0: 1369 return &v.state 1370 case 1: 1371 return &v.sizeCache 1372 case 2: 1373 return &v.unknownFields 1374 default: 1375 return nil 1376 } 1377 } 1378 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1379 switch v := v.(*ReviewDocumentResponse); i { 1380 case 0: 1381 return &v.state 1382 case 1: 1383 return &v.sizeCache 1384 case 2: 1385 return &v.unknownFields 1386 default: 1387 return nil 1388 } 1389 } 1390 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1391 switch v := v.(*ReviewDocumentOperationMetadata); i { 1392 case 0: 1393 return &v.state 1394 case 1: 1395 return &v.sizeCache 1396 case 2: 1397 return &v.unknownFields 1398 default: 1399 return nil 1400 } 1401 } 1402 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1403 switch v := v.(*BatchProcessMetadata_IndividualProcessStatus); i { 1404 case 0: 1405 return &v.state 1406 case 1: 1407 return &v.sizeCache 1408 case 2: 1409 return &v.unknownFields 1410 default: 1411 return nil 1412 } 1413 } 1414 } 1415 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[0].OneofWrappers = []interface{}{ 1416 (*ProcessRequest_InlineDocument)(nil), 1417 (*ProcessRequest_RawDocument)(nil), 1418 } 1419 file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes[6].OneofWrappers = []interface{}{ 1420 (*ReviewDocumentRequest_InlineDocument)(nil), 1421 } 1422 type x struct{} 1423 out := protoimpl.TypeBuilder{ 1424 File: protoimpl.DescBuilder{ 1425 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1426 RawDescriptor: file_google_cloud_documentai_v1_document_processor_service_proto_rawDesc, 1427 NumEnums: 3, 1428 NumMessages: 10, 1429 NumExtensions: 0, 1430 NumServices: 1, 1431 }, 1432 GoTypes: file_google_cloud_documentai_v1_document_processor_service_proto_goTypes, 1433 DependencyIndexes: file_google_cloud_documentai_v1_document_processor_service_proto_depIdxs, 1434 EnumInfos: file_google_cloud_documentai_v1_document_processor_service_proto_enumTypes, 1435 MessageInfos: file_google_cloud_documentai_v1_document_processor_service_proto_msgTypes, 1436 }.Build() 1437 File_google_cloud_documentai_v1_document_processor_service_proto = out.File 1438 file_google_cloud_documentai_v1_document_processor_service_proto_rawDesc = nil 1439 file_google_cloud_documentai_v1_document_processor_service_proto_goTypes = nil 1440 file_google_cloud_documentai_v1_document_processor_service_proto_depIdxs = nil 1441} 1442 1443// Reference imports to suppress errors if they are not otherwise used. 1444var _ context.Context 1445var _ grpc.ClientConnInterface 1446 1447// This is a compile-time assertion to ensure that this generated file 1448// is compatible with the grpc package it is being compiled against. 1449const _ = grpc.SupportPackageIsVersion6 1450 1451// DocumentProcessorServiceClient is the client API for DocumentProcessorService service. 1452// 1453// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1454type DocumentProcessorServiceClient interface { 1455 // Processes a single document. 1456 ProcessDocument(ctx context.Context, in *ProcessRequest, opts ...grpc.CallOption) (*ProcessResponse, error) 1457 // LRO endpoint to batch process many documents. The output is written 1458 // to Cloud Storage as JSON in the [Document] format. 1459 BatchProcessDocuments(ctx context.Context, in *BatchProcessRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1460 // Send a document for Human Review. The input document should be processed by 1461 // the specified processor. 1462 ReviewDocument(ctx context.Context, in *ReviewDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1463} 1464 1465type documentProcessorServiceClient struct { 1466 cc grpc.ClientConnInterface 1467} 1468 1469func NewDocumentProcessorServiceClient(cc grpc.ClientConnInterface) DocumentProcessorServiceClient { 1470 return &documentProcessorServiceClient{cc} 1471} 1472 1473func (c *documentProcessorServiceClient) ProcessDocument(ctx context.Context, in *ProcessRequest, opts ...grpc.CallOption) (*ProcessResponse, error) { 1474 out := new(ProcessResponse) 1475 err := c.cc.Invoke(ctx, "/google.cloud.documentai.v1.DocumentProcessorService/ProcessDocument", in, out, opts...) 1476 if err != nil { 1477 return nil, err 1478 } 1479 return out, nil 1480} 1481 1482func (c *documentProcessorServiceClient) BatchProcessDocuments(ctx context.Context, in *BatchProcessRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1483 out := new(longrunning.Operation) 1484 err := c.cc.Invoke(ctx, "/google.cloud.documentai.v1.DocumentProcessorService/BatchProcessDocuments", in, out, opts...) 1485 if err != nil { 1486 return nil, err 1487 } 1488 return out, nil 1489} 1490 1491func (c *documentProcessorServiceClient) ReviewDocument(ctx context.Context, in *ReviewDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1492 out := new(longrunning.Operation) 1493 err := c.cc.Invoke(ctx, "/google.cloud.documentai.v1.DocumentProcessorService/ReviewDocument", in, out, opts...) 1494 if err != nil { 1495 return nil, err 1496 } 1497 return out, nil 1498} 1499 1500// DocumentProcessorServiceServer is the server API for DocumentProcessorService service. 1501type DocumentProcessorServiceServer interface { 1502 // Processes a single document. 1503 ProcessDocument(context.Context, *ProcessRequest) (*ProcessResponse, error) 1504 // LRO endpoint to batch process many documents. The output is written 1505 // to Cloud Storage as JSON in the [Document] format. 1506 BatchProcessDocuments(context.Context, *BatchProcessRequest) (*longrunning.Operation, error) 1507 // Send a document for Human Review. The input document should be processed by 1508 // the specified processor. 1509 ReviewDocument(context.Context, *ReviewDocumentRequest) (*longrunning.Operation, error) 1510} 1511 1512// UnimplementedDocumentProcessorServiceServer can be embedded to have forward compatible implementations. 1513type UnimplementedDocumentProcessorServiceServer struct { 1514} 1515 1516func (*UnimplementedDocumentProcessorServiceServer) ProcessDocument(context.Context, *ProcessRequest) (*ProcessResponse, error) { 1517 return nil, status1.Errorf(codes.Unimplemented, "method ProcessDocument not implemented") 1518} 1519func (*UnimplementedDocumentProcessorServiceServer) BatchProcessDocuments(context.Context, *BatchProcessRequest) (*longrunning.Operation, error) { 1520 return nil, status1.Errorf(codes.Unimplemented, "method BatchProcessDocuments not implemented") 1521} 1522func (*UnimplementedDocumentProcessorServiceServer) ReviewDocument(context.Context, *ReviewDocumentRequest) (*longrunning.Operation, error) { 1523 return nil, status1.Errorf(codes.Unimplemented, "method ReviewDocument not implemented") 1524} 1525 1526func RegisterDocumentProcessorServiceServer(s *grpc.Server, srv DocumentProcessorServiceServer) { 1527 s.RegisterService(&_DocumentProcessorService_serviceDesc, srv) 1528} 1529 1530func _DocumentProcessorService_ProcessDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1531 in := new(ProcessRequest) 1532 if err := dec(in); err != nil { 1533 return nil, err 1534 } 1535 if interceptor == nil { 1536 return srv.(DocumentProcessorServiceServer).ProcessDocument(ctx, in) 1537 } 1538 info := &grpc.UnaryServerInfo{ 1539 Server: srv, 1540 FullMethod: "/google.cloud.documentai.v1.DocumentProcessorService/ProcessDocument", 1541 } 1542 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1543 return srv.(DocumentProcessorServiceServer).ProcessDocument(ctx, req.(*ProcessRequest)) 1544 } 1545 return interceptor(ctx, in, info, handler) 1546} 1547 1548func _DocumentProcessorService_BatchProcessDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1549 in := new(BatchProcessRequest) 1550 if err := dec(in); err != nil { 1551 return nil, err 1552 } 1553 if interceptor == nil { 1554 return srv.(DocumentProcessorServiceServer).BatchProcessDocuments(ctx, in) 1555 } 1556 info := &grpc.UnaryServerInfo{ 1557 Server: srv, 1558 FullMethod: "/google.cloud.documentai.v1.DocumentProcessorService/BatchProcessDocuments", 1559 } 1560 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1561 return srv.(DocumentProcessorServiceServer).BatchProcessDocuments(ctx, req.(*BatchProcessRequest)) 1562 } 1563 return interceptor(ctx, in, info, handler) 1564} 1565 1566func _DocumentProcessorService_ReviewDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1567 in := new(ReviewDocumentRequest) 1568 if err := dec(in); err != nil { 1569 return nil, err 1570 } 1571 if interceptor == nil { 1572 return srv.(DocumentProcessorServiceServer).ReviewDocument(ctx, in) 1573 } 1574 info := &grpc.UnaryServerInfo{ 1575 Server: srv, 1576 FullMethod: "/google.cloud.documentai.v1.DocumentProcessorService/ReviewDocument", 1577 } 1578 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1579 return srv.(DocumentProcessorServiceServer).ReviewDocument(ctx, req.(*ReviewDocumentRequest)) 1580 } 1581 return interceptor(ctx, in, info, handler) 1582} 1583 1584var _DocumentProcessorService_serviceDesc = grpc.ServiceDesc{ 1585 ServiceName: "google.cloud.documentai.v1.DocumentProcessorService", 1586 HandlerType: (*DocumentProcessorServiceServer)(nil), 1587 Methods: []grpc.MethodDesc{ 1588 { 1589 MethodName: "ProcessDocument", 1590 Handler: _DocumentProcessorService_ProcessDocument_Handler, 1591 }, 1592 { 1593 MethodName: "BatchProcessDocuments", 1594 Handler: _DocumentProcessorService_BatchProcessDocuments_Handler, 1595 }, 1596 { 1597 MethodName: "ReviewDocument", 1598 Handler: _DocumentProcessorService_ReviewDocument_Handler, 1599 }, 1600 }, 1601 Streams: []grpc.StreamDesc{}, 1602 Metadata: "google/cloud/documentai/v1/document_processor_service.proto", 1603} 1604