1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package documentai
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "documentai:v1beta3"
90 const apiName = "documentai"
91 const apiVersion = "v1beta3"
92 const basePath = "https://documentai.googleapis.com/"
93 const basePathTemplate = "https://documentai.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://documentai.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Projects = NewProjectsService(s)
139 return s, nil
140 }
141
142 type Service struct {
143 client *http.Client
144 BasePath string
145 UserAgent string
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.Locations = NewProjectsLocationsService(s)
160 return rs
161 }
162
163 type ProjectsService struct {
164 s *Service
165
166 Locations *ProjectsLocationsService
167 }
168
169 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
170 rs := &ProjectsLocationsService{s: s}
171 rs.Operations = NewProjectsLocationsOperationsService(s)
172 rs.ProcessorTypes = NewProjectsLocationsProcessorTypesService(s)
173 rs.Processors = NewProjectsLocationsProcessorsService(s)
174 return rs
175 }
176
177 type ProjectsLocationsService struct {
178 s *Service
179
180 Operations *ProjectsLocationsOperationsService
181
182 ProcessorTypes *ProjectsLocationsProcessorTypesService
183
184 Processors *ProjectsLocationsProcessorsService
185 }
186
187 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
188 rs := &ProjectsLocationsOperationsService{s: s}
189 return rs
190 }
191
192 type ProjectsLocationsOperationsService struct {
193 s *Service
194 }
195
196 func NewProjectsLocationsProcessorTypesService(s *Service) *ProjectsLocationsProcessorTypesService {
197 rs := &ProjectsLocationsProcessorTypesService{s: s}
198 return rs
199 }
200
201 type ProjectsLocationsProcessorTypesService struct {
202 s *Service
203 }
204
205 func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService {
206 rs := &ProjectsLocationsProcessorsService{s: s}
207 rs.Dataset = NewProjectsLocationsProcessorsDatasetService(s)
208 rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s)
209 rs.ProcessorVersions = NewProjectsLocationsProcessorsProcessorVersionsService(s)
210 return rs
211 }
212
213 type ProjectsLocationsProcessorsService struct {
214 s *Service
215
216 Dataset *ProjectsLocationsProcessorsDatasetService
217
218 HumanReviewConfig *ProjectsLocationsProcessorsHumanReviewConfigService
219
220 ProcessorVersions *ProjectsLocationsProcessorsProcessorVersionsService
221 }
222
223 func NewProjectsLocationsProcessorsDatasetService(s *Service) *ProjectsLocationsProcessorsDatasetService {
224 rs := &ProjectsLocationsProcessorsDatasetService{s: s}
225 return rs
226 }
227
228 type ProjectsLocationsProcessorsDatasetService struct {
229 s *Service
230 }
231
232 func NewProjectsLocationsProcessorsHumanReviewConfigService(s *Service) *ProjectsLocationsProcessorsHumanReviewConfigService {
233 rs := &ProjectsLocationsProcessorsHumanReviewConfigService{s: s}
234 return rs
235 }
236
237 type ProjectsLocationsProcessorsHumanReviewConfigService struct {
238 s *Service
239 }
240
241 func NewProjectsLocationsProcessorsProcessorVersionsService(s *Service) *ProjectsLocationsProcessorsProcessorVersionsService {
242 rs := &ProjectsLocationsProcessorsProcessorVersionsService{s: s}
243 rs.Evaluations = NewProjectsLocationsProcessorsProcessorVersionsEvaluationsService(s)
244 return rs
245 }
246
247 type ProjectsLocationsProcessorsProcessorVersionsService struct {
248 s *Service
249
250 Evaluations *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService
251 }
252
253 func NewProjectsLocationsProcessorsProcessorVersionsEvaluationsService(s *Service) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService {
254 rs := &ProjectsLocationsProcessorsProcessorVersionsEvaluationsService{s: s}
255 return rs
256 }
257
258 type ProjectsLocationsProcessorsProcessorVersionsEvaluationsService struct {
259 s *Service
260 }
261
262
263
264 type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata struct {
265
266 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
267
268
269 IndividualAutoLabelStatuses []*GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus `json:"individualAutoLabelStatuses,omitempty"`
270
271 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
272
273
274
275
276
277 ForceSendFields []string `json:"-"`
278
279
280
281
282 NullFields []string `json:"-"`
283 }
284
285 func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata) MarshalJSON() ([]byte, error) {
286 type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata
287 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
288 }
289
290
291
292 type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus struct {
293
294
295 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
296
297 Status *GoogleRpcStatus `json:"status,omitempty"`
298
299
300
301
302
303 ForceSendFields []string `json:"-"`
304
305
306
307
308 NullFields []string `json:"-"`
309 }
310
311 func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus) MarshalJSON() ([]byte, error) {
312 type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
314 }
315
316
317
318 type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse struct {
319 }
320
321 type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct {
322
323 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
324
325
326 ErrorDocumentCount int64 `json:"errorDocumentCount,omitempty"`
327
328
329 IndividualBatchDeleteStatuses []*GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus `json:"individualBatchDeleteStatuses,omitempty"`
330
331 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
332
333
334
335
336
337 ForceSendFields []string `json:"-"`
338
339
340
341
342 NullFields []string `json:"-"`
343 }
344
345 func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) {
346 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
348 }
349
350
351
352
353 type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus struct {
354
355 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
356
357 Status *GoogleRpcStatus `json:"status,omitempty"`
358
359
360
361
362
363 ForceSendFields []string `json:"-"`
364
365
366
367
368 NullFields []string `json:"-"`
369 }
370
371 func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus) MarshalJSON() ([]byte, error) {
372 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
373 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
374 }
375
376
377
378 type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse struct {
379 }
380
381 type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata struct {
382
383 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
384
385
386
387
388
389
390
391 DestDatasetType string `json:"destDatasetType,omitempty"`
392
393
394
395
396
397
398
399 DestSplitType string `json:"destSplitType,omitempty"`
400
401 IndividualBatchMoveStatuses []*GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus `json:"individualBatchMoveStatuses,omitempty"`
402
403
404
405
406
407 ForceSendFields []string `json:"-"`
408
409
410
411
412 NullFields []string `json:"-"`
413 }
414
415 func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata) MarshalJSON() ([]byte, error) {
416 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata
417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
418 }
419
420
421
422 type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus struct {
423
424 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
425
426 Status *GoogleRpcStatus `json:"status,omitempty"`
427
428
429
430
431
432 ForceSendFields []string `json:"-"`
433
434
435
436
437 NullFields []string `json:"-"`
438 }
439
440 func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus) MarshalJSON() ([]byte, error) {
441 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
442 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
443 }
444
445
446
447 type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse struct {
448 }
449
450 type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata struct {
451
452 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
453
454
455 IndividualBatchUpdateStatuses []*GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus `json:"individualBatchUpdateStatuses,omitempty"`
456
457
458
459
460
461 ForceSendFields []string `json:"-"`
462
463
464
465
466 NullFields []string `json:"-"`
467 }
468
469 func (s *GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata) MarshalJSON() ([]byte, error) {
470 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata
471 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
472 }
473
474
475
476
477 type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus struct {
478
479 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
480
481 Status *GoogleRpcStatus `json:"status,omitempty"`
482
483
484
485
486
487 ForceSendFields []string `json:"-"`
488
489
490
491
492 NullFields []string `json:"-"`
493 }
494
495 func (s *GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus) MarshalJSON() ([]byte, error) {
496 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus
497 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
498 }
499
500
501
502 type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse struct {
503 }
504
505
506
507 type GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata struct {
508
509 CreateTime string `json:"createTime,omitempty"`
510
511 Resource string `json:"resource,omitempty"`
512
513
514
515
516
517
518
519
520
521 State string `json:"state,omitempty"`
522
523
524 StateMessage string `json:"stateMessage,omitempty"`
525
526 UpdateTime string `json:"updateTime,omitempty"`
527
528
529
530
531
532 ForceSendFields []string `json:"-"`
533
534
535
536
537 NullFields []string `json:"-"`
538 }
539
540 func (s *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
541 type NoMethod GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
543 }
544
545
546
547 type GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata struct {
548
549 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
550
551
552
553
554
555 ForceSendFields []string `json:"-"`
556
557
558
559
560 NullFields []string `json:"-"`
561 }
562
563 func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
564 type NoMethod GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
565 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
566 }
567
568
569
570 type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct {
571
572 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
573
574
575
576
577
578 ForceSendFields []string `json:"-"`
579
580
581
582
583 NullFields []string `json:"-"`
584 }
585
586 func (s *GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
587 type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
588 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
589 }
590
591
592
593 type GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata struct {
594
595 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
596
597
598
599
600
601 ForceSendFields []string `json:"-"`
602
603
604
605
606 NullFields []string `json:"-"`
607 }
608
609 func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
610 type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
612 }
613
614
615
616 type GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata struct {
617
618 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
619
620
621
622
623
624 ForceSendFields []string `json:"-"`
625
626
627
628
629 NullFields []string `json:"-"`
630 }
631
632 func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
633 type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
634 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
635 }
636
637
638
639 type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata struct {
640
641 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
642
643
644
645
646
647 ForceSendFields []string `json:"-"`
648
649
650
651
652 NullFields []string `json:"-"`
653 }
654
655 func (s *GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
656 type NoMethod GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
657 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
658 }
659
660
661
662 type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse struct {
663 }
664
665
666
667 type GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata struct {
668
669 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
670
671
672
673
674
675 ForceSendFields []string `json:"-"`
676
677
678
679
680 NullFields []string `json:"-"`
681 }
682
683 func (s *GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
684 type NoMethod GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
685 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
686 }
687
688
689
690
691 type GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse struct {
692 }
693
694
695 type GoogleCloudDocumentaiUiv1beta3DocumentId struct {
696
697 GcsManagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"`
698
699 RevisionRef *GoogleCloudDocumentaiUiv1beta3RevisionRef `json:"revisionRef,omitempty"`
700
701 UnmanagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId `json:"unmanagedDocId,omitempty"`
702
703
704
705
706
707 ForceSendFields []string `json:"-"`
708
709
710
711
712 NullFields []string `json:"-"`
713 }
714
715 func (s *GoogleCloudDocumentaiUiv1beta3DocumentId) MarshalJSON() ([]byte, error) {
716 type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentId
717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
718 }
719
720
721
722
723 type GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId struct {
724
725 CwDocId string `json:"cwDocId,omitempty"`
726
727 GcsUri string `json:"gcsUri,omitempty"`
728
729
730
731
732
733 ForceSendFields []string `json:"-"`
734
735
736
737
738 NullFields []string `json:"-"`
739 }
740
741 func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) {
742 type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId
743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
744 }
745
746
747
748 type GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId struct {
749
750 DocId string `json:"docId,omitempty"`
751
752
753
754
755
756 ForceSendFields []string `json:"-"`
757
758
759
760
761 NullFields []string `json:"-"`
762 }
763
764 func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId) MarshalJSON() ([]byte, error) {
765 type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId
766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
767 }
768
769
770
771 type GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata struct {
772
773 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
774
775
776
777
778
779 ForceSendFields []string `json:"-"`
780
781
782
783
784 NullFields []string `json:"-"`
785 }
786
787 func (s *GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
788 type NoMethod GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
790 }
791
792
793
794
795 type GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse struct {
796 }
797
798
799
800 type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata struct {
801
802 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
803
804
805
806
807
808 ForceSendFields []string `json:"-"`
809
810
811
812
813 NullFields []string `json:"-"`
814 }
815
816 func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
817 type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
819 }
820
821
822
823 type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse struct {
824
825 Evaluation string `json:"evaluation,omitempty"`
826
827
828
829
830
831 ForceSendFields []string `json:"-"`
832
833
834
835
836 NullFields []string `json:"-"`
837 }
838
839 func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
840 type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
842 }
843
844
845
846 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata struct {
847
848 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
849
850 IndividualExportStatuses []*GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus `json:"individualExportStatuses,omitempty"`
851
852 SplitExportStats []*GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat `json:"splitExportStats,omitempty"`
853
854
855
856
857
858 ForceSendFields []string `json:"-"`
859
860
861
862
863 NullFields []string `json:"-"`
864 }
865
866 func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata) MarshalJSON() ([]byte, error) {
867 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata
868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
869 }
870
871
872
873 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus struct {
874
875 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
876
877
878 OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
879
880 Status *GoogleRpcStatus `json:"status,omitempty"`
881
882
883
884
885
886 ForceSendFields []string `json:"-"`
887
888
889
890
891 NullFields []string `json:"-"`
892 }
893
894 func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus) MarshalJSON() ([]byte, error) {
895 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus
896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
897 }
898
899
900
901 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat struct {
902
903
904
905
906
907
908
909 SplitType string `json:"splitType,omitempty"`
910
911
912 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
913
914
915
916
917
918 ForceSendFields []string `json:"-"`
919
920
921
922
923 NullFields []string `json:"-"`
924 }
925
926 func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat) MarshalJSON() ([]byte, error) {
927 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat
928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
929 }
930
931
932
933 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse struct {
934 }
935
936
937
938 type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata struct {
939
940 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
941
942
943
944
945
946 ForceSendFields []string `json:"-"`
947
948
949
950
951 NullFields []string `json:"-"`
952 }
953
954 func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
955 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
957 }
958
959
960
961 type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse struct {
962
963 GcsUri string `json:"gcsUri,omitempty"`
964
965
966
967
968
969 ForceSendFields []string `json:"-"`
970
971
972
973
974 NullFields []string `json:"-"`
975 }
976
977 func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
978 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
980 }
981
982
983
984 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata struct {
985
986 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
987
988
989 ImportConfigValidationResults []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult `json:"importConfigValidationResults,omitempty"`
990
991 IndividualImportStatuses []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"`
992
993
994 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
995
996
997
998
999
1000 ForceSendFields []string `json:"-"`
1001
1002
1003
1004
1005 NullFields []string `json:"-"`
1006 }
1007
1008 func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
1009 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata
1010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1011 }
1012
1013
1014
1015
1016
1017 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult struct {
1018
1019 InputGcsSource string `json:"inputGcsSource,omitempty"`
1020
1021 Status *GoogleRpcStatus `json:"status,omitempty"`
1022
1023
1024
1025
1026
1027 ForceSendFields []string `json:"-"`
1028
1029
1030
1031
1032 NullFields []string `json:"-"`
1033 }
1034
1035 func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult) MarshalJSON() ([]byte, error) {
1036 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult
1037 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1038 }
1039
1040
1041
1042 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus struct {
1043
1044 InputGcsSource string `json:"inputGcsSource,omitempty"`
1045
1046
1047 OutputDocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"outputDocumentId,omitempty"`
1048
1049
1050 OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
1051
1052 Status *GoogleRpcStatus `json:"status,omitempty"`
1053
1054
1055
1056
1057
1058 ForceSendFields []string `json:"-"`
1059
1060
1061
1062
1063 NullFields []string `json:"-"`
1064 }
1065
1066 func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) {
1067 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
1068 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1069 }
1070
1071
1072
1073 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct {
1074 }
1075
1076
1077
1078 type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata struct {
1079
1080 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1081
1082
1083
1084
1085
1086 ForceSendFields []string `json:"-"`
1087
1088
1089
1090
1091 NullFields []string `json:"-"`
1092 }
1093
1094 func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1095 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata
1096 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1097 }
1098
1099
1100
1101 type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse struct {
1102
1103 ProcessorVersion string `json:"processorVersion,omitempty"`
1104
1105
1106
1107
1108
1109 ForceSendFields []string `json:"-"`
1110
1111
1112
1113
1114 NullFields []string `json:"-"`
1115 }
1116
1117 func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
1118 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse
1119 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1120 }
1121
1122
1123
1124 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata struct {
1125
1126 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1127
1128
1129 DatasetResyncStatuses []*GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus `json:"datasetResyncStatuses,omitempty"`
1130
1131
1132
1133 IndividualDocumentResyncStatuses []*GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus `json:"individualDocumentResyncStatuses,omitempty"`
1134
1135
1136
1137
1138
1139 ForceSendFields []string `json:"-"`
1140
1141
1142
1143
1144 NullFields []string `json:"-"`
1145 }
1146
1147 func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata) MarshalJSON() ([]byte, error) {
1148 type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
1149 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1150 }
1151
1152
1153
1154 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus struct {
1155
1156
1157
1158
1159
1160
1161 DatasetInconsistencyType string `json:"datasetInconsistencyType,omitempty"`
1162
1163
1164 Status *GoogleRpcStatus `json:"status,omitempty"`
1165
1166
1167
1168
1169
1170 ForceSendFields []string `json:"-"`
1171
1172
1173
1174
1175 NullFields []string `json:"-"`
1176 }
1177
1178 func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus) MarshalJSON() ([]byte, error) {
1179 type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus
1180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1181 }
1182
1183
1184
1185 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus struct {
1186
1187 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198 DocumentInconsistencyType string `json:"documentInconsistencyType,omitempty"`
1199
1200
1201 Status *GoogleRpcStatus `json:"status,omitempty"`
1202
1203
1204
1205
1206
1207 ForceSendFields []string `json:"-"`
1208
1209
1210
1211
1212 NullFields []string `json:"-"`
1213 }
1214
1215 func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus) MarshalJSON() ([]byte, error) {
1216 type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus
1217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1218 }
1219
1220
1221
1222 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse struct {
1223 }
1224
1225
1226
1227 type GoogleCloudDocumentaiUiv1beta3RevisionRef struct {
1228
1229
1230
1231
1232 LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"`
1233
1234
1235
1236
1237
1238
1239
1240
1241 RevisionCase string `json:"revisionCase,omitempty"`
1242
1243 RevisionId string `json:"revisionId,omitempty"`
1244
1245
1246
1247
1248
1249 ForceSendFields []string `json:"-"`
1250
1251
1252
1253
1254 NullFields []string `json:"-"`
1255 }
1256
1257 func (s *GoogleCloudDocumentaiUiv1beta3RevisionRef) MarshalJSON() ([]byte, error) {
1258 type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionRef
1259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1260 }
1261
1262
1263
1264 type GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata struct {
1265
1266 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1267
1268
1269
1270
1271
1272 ForceSendFields []string `json:"-"`
1273
1274
1275
1276
1277 NullFields []string `json:"-"`
1278 }
1279
1280 func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata) MarshalJSON() ([]byte, error) {
1281 type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata
1282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1283 }
1284
1285
1286
1287 type GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse struct {
1288
1289 SampleTestStatus *GoogleRpcStatus `json:"sampleTestStatus,omitempty"`
1290
1291 SampleTrainingStatus *GoogleRpcStatus `json:"sampleTrainingStatus,omitempty"`
1292
1293 SelectedDocuments []*GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument `json:"selectedDocuments,omitempty"`
1294
1295
1296
1297
1298
1299 ForceSendFields []string `json:"-"`
1300
1301
1302
1303
1304 NullFields []string `json:"-"`
1305 }
1306
1307 func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse) MarshalJSON() ([]byte, error) {
1308 type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse
1309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1310 }
1311
1312 type GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument struct {
1313
1314 DocumentId string `json:"documentId,omitempty"`
1315
1316
1317
1318
1319
1320 ForceSendFields []string `json:"-"`
1321
1322
1323
1324
1325 NullFields []string `json:"-"`
1326 }
1327
1328 func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument) MarshalJSON() ([]byte, error) {
1329 type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument
1330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1331 }
1332
1333
1334
1335 type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata struct {
1336
1337 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1338
1339
1340
1341
1342
1343 ForceSendFields []string `json:"-"`
1344
1345
1346
1347
1348 NullFields []string `json:"-"`
1349 }
1350
1351 func (s *GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1352 type NoMethod GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1354 }
1355
1356
1357
1358 type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse struct {
1359 }
1360
1361
1362
1363 type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata struct {
1364
1365 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1366
1367 TestDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
1368
1369 TrainingDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
1370
1371
1372
1373
1374
1375 ForceSendFields []string `json:"-"`
1376
1377
1378
1379
1380 NullFields []string `json:"-"`
1381 }
1382
1383 func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1384 type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
1385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1386 }
1387
1388
1389
1390
1391
1392
1393 type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation struct {
1394
1395 DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
1396
1397
1398
1399 DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
1400
1401 DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
1402
1403
1404
1405 DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
1406
1407
1408
1409
1410
1411 ForceSendFields []string `json:"-"`
1412
1413
1414
1415
1416 NullFields []string `json:"-"`
1417 }
1418
1419 func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
1420 type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
1421 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1422 }
1423
1424
1425
1426 type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse struct {
1427
1428
1429 ProcessorVersion string `json:"processorVersion,omitempty"`
1430
1431
1432
1433
1434
1435 ForceSendFields []string `json:"-"`
1436
1437
1438
1439
1440 NullFields []string `json:"-"`
1441 }
1442
1443 func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
1444 type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
1445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1446 }
1447
1448
1449
1450 type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata struct {
1451
1452 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1453
1454
1455
1456
1457
1458 ForceSendFields []string `json:"-"`
1459
1460
1461
1462
1463 NullFields []string `json:"-"`
1464 }
1465
1466 func (s *GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1467 type NoMethod GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
1468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1469 }
1470
1471
1472
1473 type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse struct {
1474 }
1475
1476 type GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata struct {
1477
1478 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1479
1480
1481
1482
1483
1484 ForceSendFields []string `json:"-"`
1485
1486
1487
1488
1489 NullFields []string `json:"-"`
1490 }
1491
1492 func (s *GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
1493 type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata
1494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1495 }
1496
1497
1498
1499 type GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata struct {
1500
1501 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1502
1503
1504
1505
1506
1507 ForceSendFields []string `json:"-"`
1508
1509
1510
1511
1512 NullFields []string `json:"-"`
1513 }
1514
1515 func (s *GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata) MarshalJSON() ([]byte, error) {
1516 type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
1517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1518 }
1519
1520
1521
1522 type GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata struct {
1523
1524 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1525
1526
1527
1528
1529
1530 ForceSendFields []string `json:"-"`
1531
1532
1533
1534
1535 NullFields []string `json:"-"`
1536 }
1537
1538 func (s *GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
1539 type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
1540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1541 }
1542
1543
1544
1545 type GoogleCloudDocumentaiV1BatchProcessMetadata struct {
1546
1547 CreateTime string `json:"createTime,omitempty"`
1548
1549 IndividualProcessStatuses []*GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561 State string `json:"state,omitempty"`
1562
1563
1564 StateMessage string `json:"stateMessage,omitempty"`
1565
1566 UpdateTime string `json:"updateTime,omitempty"`
1567
1568
1569
1570
1571
1572 ForceSendFields []string `json:"-"`
1573
1574
1575
1576
1577 NullFields []string `json:"-"`
1578 }
1579
1580 func (s *GoogleCloudDocumentaiV1BatchProcessMetadata) MarshalJSON() ([]byte, error) {
1581 type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadata
1582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1583 }
1584
1585
1586
1587 type GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus struct {
1588
1589 HumanReviewStatus *GoogleCloudDocumentaiV1HumanReviewStatus `json:"humanReviewStatus,omitempty"`
1590
1591
1592 InputGcsSource string `json:"inputGcsSource,omitempty"`
1593
1594
1595
1596 OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
1597
1598 Status *GoogleRpcStatus `json:"status,omitempty"`
1599
1600
1601
1602
1603
1604 ForceSendFields []string `json:"-"`
1605
1606
1607
1608
1609 NullFields []string `json:"-"`
1610 }
1611
1612 func (s *GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
1613 type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
1614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1615 }
1616
1617
1618
1619 type GoogleCloudDocumentaiV1BatchProcessResponse struct {
1620 }
1621
1622
1623
1624 type GoogleCloudDocumentaiV1CommonOperationMetadata struct {
1625
1626 CreateTime string `json:"createTime,omitempty"`
1627
1628 Resource string `json:"resource,omitempty"`
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638 State string `json:"state,omitempty"`
1639
1640
1641 StateMessage string `json:"stateMessage,omitempty"`
1642
1643 UpdateTime string `json:"updateTime,omitempty"`
1644
1645
1646
1647
1648
1649 ForceSendFields []string `json:"-"`
1650
1651
1652
1653
1654 NullFields []string `json:"-"`
1655 }
1656
1657 func (s *GoogleCloudDocumentaiV1CommonOperationMetadata) MarshalJSON() ([]byte, error) {
1658 type NoMethod GoogleCloudDocumentaiV1CommonOperationMetadata
1659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1660 }
1661
1662
1663
1664 type GoogleCloudDocumentaiV1DeleteProcessorMetadata struct {
1665
1666 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1667
1668
1669
1670
1671
1672 ForceSendFields []string `json:"-"`
1673
1674
1675
1676
1677 NullFields []string `json:"-"`
1678 }
1679
1680 func (s *GoogleCloudDocumentaiV1DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
1681 type NoMethod GoogleCloudDocumentaiV1DeleteProcessorMetadata
1682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1683 }
1684
1685
1686
1687 type GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata struct {
1688
1689 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1690
1691
1692
1693
1694
1695 ForceSendFields []string `json:"-"`
1696
1697
1698
1699
1700 NullFields []string `json:"-"`
1701 }
1702
1703 func (s *GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1704 type NoMethod GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata
1705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1706 }
1707
1708
1709
1710 type GoogleCloudDocumentaiV1DeployProcessorVersionMetadata struct {
1711
1712 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1713
1714
1715
1716
1717
1718 ForceSendFields []string `json:"-"`
1719
1720
1721
1722
1723 NullFields []string `json:"-"`
1724 }
1725
1726 func (s *GoogleCloudDocumentaiV1DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1727 type NoMethod GoogleCloudDocumentaiV1DeployProcessorVersionMetadata
1728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1729 }
1730
1731
1732
1733 type GoogleCloudDocumentaiV1DeployProcessorVersionResponse struct {
1734 }
1735
1736
1737
1738 type GoogleCloudDocumentaiV1DisableProcessorMetadata struct {
1739
1740 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1741
1742
1743
1744
1745
1746 ForceSendFields []string `json:"-"`
1747
1748
1749
1750
1751 NullFields []string `json:"-"`
1752 }
1753
1754 func (s *GoogleCloudDocumentaiV1DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
1755 type NoMethod GoogleCloudDocumentaiV1DisableProcessorMetadata
1756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1757 }
1758
1759
1760
1761
1762 type GoogleCloudDocumentaiV1DisableProcessorResponse struct {
1763 }
1764
1765
1766
1767 type GoogleCloudDocumentaiV1EnableProcessorMetadata struct {
1768
1769 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1770
1771
1772
1773
1774
1775 ForceSendFields []string `json:"-"`
1776
1777
1778
1779
1780 NullFields []string `json:"-"`
1781 }
1782
1783 func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
1784 type NoMethod GoogleCloudDocumentaiV1EnableProcessorMetadata
1785 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1786 }
1787
1788
1789
1790
1791 type GoogleCloudDocumentaiV1EnableProcessorResponse struct {
1792 }
1793
1794
1795
1796 type GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata struct {
1797
1798 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1799
1800
1801
1802
1803
1804 ForceSendFields []string `json:"-"`
1805
1806
1807
1808
1809 NullFields []string `json:"-"`
1810 }
1811
1812 func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1813 type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata
1814 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1815 }
1816
1817
1818
1819 type GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse struct {
1820
1821 Evaluation string `json:"evaluation,omitempty"`
1822
1823
1824
1825
1826
1827 ForceSendFields []string `json:"-"`
1828
1829
1830
1831
1832 NullFields []string `json:"-"`
1833 }
1834
1835 func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
1836 type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse
1837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1838 }
1839
1840
1841
1842 type GoogleCloudDocumentaiV1HumanReviewStatus struct {
1843
1844
1845
1846
1847 HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862 State string `json:"state,omitempty"`
1863
1864 StateMessage string `json:"stateMessage,omitempty"`
1865
1866
1867
1868
1869
1870 ForceSendFields []string `json:"-"`
1871
1872
1873
1874
1875 NullFields []string `json:"-"`
1876 }
1877
1878 func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) {
1879 type NoMethod GoogleCloudDocumentaiV1HumanReviewStatus
1880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1881 }
1882
1883
1884
1885 type GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata struct {
1886
1887 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1888
1889 QuestionId string `json:"questionId,omitempty"`
1890
1891
1892
1893
1894
1895 ForceSendFields []string `json:"-"`
1896
1897
1898
1899
1900 NullFields []string `json:"-"`
1901 }
1902
1903 func (s *GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1904 type NoMethod GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
1905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1906 }
1907
1908
1909
1910 type GoogleCloudDocumentaiV1ReviewDocumentResponse struct {
1911
1912
1913 GcsDestination string `json:"gcsDestination,omitempty"`
1914
1915 RejectionReason string `json:"rejectionReason,omitempty"`
1916
1917
1918
1919
1920
1921
1922
1923 State string `json:"state,omitempty"`
1924
1925
1926
1927
1928
1929 ForceSendFields []string `json:"-"`
1930
1931
1932
1933
1934 NullFields []string `json:"-"`
1935 }
1936
1937 func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
1938 type NoMethod GoogleCloudDocumentaiV1ReviewDocumentResponse
1939 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1940 }
1941
1942
1943
1944 type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct {
1945
1946 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1947
1948
1949
1950
1951
1952 ForceSendFields []string `json:"-"`
1953
1954
1955
1956
1957 NullFields []string `json:"-"`
1958 }
1959
1960 func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1961 type NoMethod GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
1962 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1963 }
1964
1965
1966
1967 type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct {
1968 }
1969
1970
1971
1972 type GoogleCloudDocumentaiV1TrainProcessorVersionMetadata struct {
1973
1974 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1975
1976 TestDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
1977
1978 TrainingDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
1979
1980
1981
1982
1983
1984 ForceSendFields []string `json:"-"`
1985
1986
1987
1988
1989 NullFields []string `json:"-"`
1990 }
1991
1992 func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1993 type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadata
1994 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1995 }
1996
1997
1998
1999
2000 type GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation struct {
2001
2002 DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
2003
2004
2005
2006 DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
2007
2008 DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
2009
2010
2011
2012 DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
2013
2014
2015
2016
2017
2018 ForceSendFields []string `json:"-"`
2019
2020
2021
2022
2023 NullFields []string `json:"-"`
2024 }
2025
2026 func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
2027 type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation
2028 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2029 }
2030
2031
2032
2033 type GoogleCloudDocumentaiV1TrainProcessorVersionResponse struct {
2034
2035
2036 ProcessorVersion string `json:"processorVersion,omitempty"`
2037
2038
2039
2040
2041
2042 ForceSendFields []string `json:"-"`
2043
2044
2045
2046
2047 NullFields []string `json:"-"`
2048 }
2049
2050 func (s *GoogleCloudDocumentaiV1TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
2051 type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionResponse
2052 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2053 }
2054
2055
2056
2057 type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct {
2058
2059 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
2060
2061
2062
2063
2064
2065 ForceSendFields []string `json:"-"`
2066
2067
2068
2069
2070 NullFields []string `json:"-"`
2071 }
2072
2073 func (s *GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
2074 type NoMethod GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
2075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2076 }
2077
2078
2079
2080 type GoogleCloudDocumentaiV1UndeployProcessorVersionResponse struct {
2081 }
2082
2083
2084
2085 type GoogleCloudDocumentaiV1beta1Barcode struct {
2086
2087
2088
2089
2090
2091
2092 Format string `json:"format,omitempty"`
2093
2094
2095 RawValue string `json:"rawValue,omitempty"`
2096
2097
2098
2099
2100
2101
2102 ValueFormat string `json:"valueFormat,omitempty"`
2103
2104
2105
2106
2107
2108 ForceSendFields []string `json:"-"`
2109
2110
2111
2112
2113 NullFields []string `json:"-"`
2114 }
2115
2116 func (s *GoogleCloudDocumentaiV1beta1Barcode) MarshalJSON() ([]byte, error) {
2117 type NoMethod GoogleCloudDocumentaiV1beta1Barcode
2118 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2119 }
2120
2121
2122
2123
2124 type GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse struct {
2125
2126 Responses []*GoogleCloudDocumentaiV1beta1ProcessDocumentResponse `json:"responses,omitempty"`
2127
2128
2129
2130
2131
2132 ForceSendFields []string `json:"-"`
2133
2134
2135
2136
2137 NullFields []string `json:"-"`
2138 }
2139
2140 func (s *GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
2141 type NoMethod GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
2142 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2143 }
2144
2145
2146
2147 type GoogleCloudDocumentaiV1beta1BoundingPoly struct {
2148
2149 NormalizedVertices []*GoogleCloudDocumentaiV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
2150
2151 Vertices []*GoogleCloudDocumentaiV1beta1Vertex `json:"vertices,omitempty"`
2152
2153
2154
2155
2156
2157 ForceSendFields []string `json:"-"`
2158
2159
2160
2161
2162 NullFields []string `json:"-"`
2163 }
2164
2165 func (s *GoogleCloudDocumentaiV1beta1BoundingPoly) MarshalJSON() ([]byte, error) {
2166 type NoMethod GoogleCloudDocumentaiV1beta1BoundingPoly
2167 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2168 }
2169
2170
2171
2172
2173
2174 type GoogleCloudDocumentaiV1beta1Document struct {
2175
2176
2177
2178 Content string `json:"content,omitempty"`
2179
2180
2181 Entities []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"entities,omitempty"`
2182
2183 EntityRelations []*GoogleCloudDocumentaiV1beta1DocumentEntityRelation `json:"entityRelations,omitempty"`
2184
2185 Error *GoogleRpcStatus `json:"error,omitempty"`
2186
2187
2188 MimeType string `json:"mimeType,omitempty"`
2189
2190 Pages []*GoogleCloudDocumentaiV1beta1DocumentPage `json:"pages,omitempty"`
2191
2192 Revisions []*GoogleCloudDocumentaiV1beta1DocumentRevision `json:"revisions,omitempty"`
2193
2194
2195
2196 ShardInfo *GoogleCloudDocumentaiV1beta1DocumentShardInfo `json:"shardInfo,omitempty"`
2197
2198 Text string `json:"text,omitempty"`
2199
2200
2201
2202 TextChanges []*GoogleCloudDocumentaiV1beta1DocumentTextChange `json:"textChanges,omitempty"`
2203
2204 TextStyles []*GoogleCloudDocumentaiV1beta1DocumentStyle `json:"textStyles,omitempty"`
2205
2206
2207
2208
2209 Uri string `json:"uri,omitempty"`
2210
2211
2212
2213
2214
2215 ForceSendFields []string `json:"-"`
2216
2217
2218
2219
2220 NullFields []string `json:"-"`
2221 }
2222
2223 func (s *GoogleCloudDocumentaiV1beta1Document) MarshalJSON() ([]byte, error) {
2224 type NoMethod GoogleCloudDocumentaiV1beta1Document
2225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2226 }
2227
2228
2229
2230
2231 type GoogleCloudDocumentaiV1beta1DocumentEntity struct {
2232
2233 Confidence float64 `json:"confidence,omitempty"`
2234
2235
2236 Id string `json:"id,omitempty"`
2237
2238 MentionId string `json:"mentionId,omitempty"`
2239
2240
2241 MentionText string `json:"mentionText,omitempty"`
2242
2243
2244
2245
2246 NormalizedValue *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
2247
2248
2249 PageAnchor *GoogleCloudDocumentaiV1beta1DocumentPageAnchor `json:"pageAnchor,omitempty"`
2250
2251
2252 Properties []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"properties,omitempty"`
2253
2254 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2255
2256
2257 Redacted bool `json:"redacted,omitempty"`
2258
2259
2260 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
2261
2262 Type string `json:"type,omitempty"`
2263
2264
2265
2266
2267
2268 ForceSendFields []string `json:"-"`
2269
2270
2271
2272
2273 NullFields []string `json:"-"`
2274 }
2275
2276 func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) MarshalJSON() ([]byte, error) {
2277 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
2278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2279 }
2280
2281 func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) UnmarshalJSON(data []byte) error {
2282 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
2283 var s1 struct {
2284 Confidence gensupport.JSONFloat64 `json:"confidence"`
2285 *NoMethod
2286 }
2287 s1.NoMethod = (*NoMethod)(s)
2288 if err := json.Unmarshal(data, &s1); err != nil {
2289 return err
2290 }
2291 s.Confidence = float64(s1.Confidence)
2292 return nil
2293 }
2294
2295
2296
2297 type GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue struct {
2298
2299
2300 AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
2301
2302
2303 BooleanValue bool `json:"booleanValue,omitempty"`
2304
2305
2306 DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
2307
2308
2309 DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
2310
2311 FloatValue float64 `json:"floatValue,omitempty"`
2312
2313 IntegerValue int64 `json:"integerValue,omitempty"`
2314
2315
2316 MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
2317
2318
2319
2320
2321
2322
2323
2324
2325 Text string `json:"text,omitempty"`
2326
2327
2328
2329
2330
2331 ForceSendFields []string `json:"-"`
2332
2333
2334
2335
2336 NullFields []string `json:"-"`
2337 }
2338
2339 func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
2340 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
2341 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2342 }
2343
2344 func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
2345 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
2346 var s1 struct {
2347 FloatValue gensupport.JSONFloat64 `json:"floatValue"`
2348 *NoMethod
2349 }
2350 s1.NoMethod = (*NoMethod)(s)
2351 if err := json.Unmarshal(data, &s1); err != nil {
2352 return err
2353 }
2354 s.FloatValue = float64(s1.FloatValue)
2355 return nil
2356 }
2357
2358
2359
2360 type GoogleCloudDocumentaiV1beta1DocumentEntityRelation struct {
2361
2362 ObjectId string `json:"objectId,omitempty"`
2363
2364 Relation string `json:"relation,omitempty"`
2365
2366 SubjectId string `json:"subjectId,omitempty"`
2367
2368
2369
2370
2371
2372 ForceSendFields []string `json:"-"`
2373
2374
2375
2376
2377 NullFields []string `json:"-"`
2378 }
2379
2380 func (s *GoogleCloudDocumentaiV1beta1DocumentEntityRelation) MarshalJSON() ([]byte, error) {
2381 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityRelation
2382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2383 }
2384
2385
2386 type GoogleCloudDocumentaiV1beta1DocumentPage struct {
2387
2388
2389
2390 Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"`
2391
2392 DetectedBarcodes []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"`
2393
2394 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2395
2396 Dimension *GoogleCloudDocumentaiV1beta1DocumentPageDimension `json:"dimension,omitempty"`
2397
2398 FormFields []*GoogleCloudDocumentaiV1beta1DocumentPageFormField `json:"formFields,omitempty"`
2399
2400
2401
2402 Image *GoogleCloudDocumentaiV1beta1DocumentPageImage `json:"image,omitempty"`
2403
2404 ImageQualityScores *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"`
2405
2406 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2407
2408
2409 Lines []*GoogleCloudDocumentaiV1beta1DocumentPageLine `json:"lines,omitempty"`
2410
2411
2412 PageNumber int64 `json:"pageNumber,omitempty"`
2413
2414
2415 Paragraphs []*GoogleCloudDocumentaiV1beta1DocumentPageParagraph `json:"paragraphs,omitempty"`
2416
2417 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2418
2419 Symbols []*GoogleCloudDocumentaiV1beta1DocumentPageSymbol `json:"symbols,omitempty"`
2420
2421 Tables []*GoogleCloudDocumentaiV1beta1DocumentPageTable `json:"tables,omitempty"`
2422
2423 Tokens []*GoogleCloudDocumentaiV1beta1DocumentPageToken `json:"tokens,omitempty"`
2424
2425
2426 Transforms []*GoogleCloudDocumentaiV1beta1DocumentPageMatrix `json:"transforms,omitempty"`
2427
2428
2429 VisualElements []*GoogleCloudDocumentaiV1beta1DocumentPageVisualElement `json:"visualElements,omitempty"`
2430
2431
2432
2433
2434
2435 ForceSendFields []string `json:"-"`
2436
2437
2438
2439
2440 NullFields []string `json:"-"`
2441 }
2442
2443 func (s *GoogleCloudDocumentaiV1beta1DocumentPage) MarshalJSON() ([]byte, error) {
2444 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPage
2445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2446 }
2447
2448
2449
2450
2451
2452 type GoogleCloudDocumentaiV1beta1DocumentPageAnchor struct {
2453
2454 PageRefs []*GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
2455
2456
2457
2458
2459
2460 ForceSendFields []string `json:"-"`
2461
2462
2463
2464
2465 NullFields []string `json:"-"`
2466 }
2467
2468 func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, error) {
2469 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchor
2470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2471 }
2472
2473
2474
2475 type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct {
2476
2477
2478
2479 BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
2480
2481
2482 Confidence float64 `json:"confidence,omitempty"`
2483
2484 LayoutId string `json:"layoutId,omitempty"`
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497 LayoutType string `json:"layoutType,omitempty"`
2498
2499
2500
2501
2502 Page int64 `json:"page,omitempty,string"`
2503
2504
2505
2506
2507
2508 ForceSendFields []string `json:"-"`
2509
2510
2511
2512
2513 NullFields []string `json:"-"`
2514 }
2515
2516 func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
2517 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
2518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2519 }
2520
2521 func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
2522 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
2523 var s1 struct {
2524 Confidence gensupport.JSONFloat64 `json:"confidence"`
2525 *NoMethod
2526 }
2527 s1.NoMethod = (*NoMethod)(s)
2528 if err := json.Unmarshal(data, &s1); err != nil {
2529 return err
2530 }
2531 s.Confidence = float64(s1.Confidence)
2532 return nil
2533 }
2534
2535
2536
2537 type GoogleCloudDocumentaiV1beta1DocumentPageBlock struct {
2538
2539 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2540
2541 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2542
2543 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2544
2545
2546
2547
2548
2549 ForceSendFields []string `json:"-"`
2550
2551
2552
2553
2554 NullFields []string `json:"-"`
2555 }
2556
2557 func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, error) {
2558 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageBlock
2559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2560 }
2561
2562
2563 type GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode struct {
2564
2565 Barcode *GoogleCloudDocumentaiV1beta1Barcode `json:"barcode,omitempty"`
2566
2567 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2568
2569
2570
2571
2572
2573 ForceSendFields []string `json:"-"`
2574
2575
2576
2577
2578 NullFields []string `json:"-"`
2579 }
2580
2581 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) {
2582 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
2583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2584 }
2585
2586
2587
2588 type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct {
2589
2590 Confidence float64 `json:"confidence,omitempty"`
2591
2592
2593
2594 LanguageCode string `json:"languageCode,omitempty"`
2595
2596
2597
2598
2599
2600 ForceSendFields []string `json:"-"`
2601
2602
2603
2604
2605 NullFields []string `json:"-"`
2606 }
2607
2608 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
2609 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2610 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2611 }
2612
2613 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
2614 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2615 var s1 struct {
2616 Confidence gensupport.JSONFloat64 `json:"confidence"`
2617 *NoMethod
2618 }
2619 s1.NoMethod = (*NoMethod)(s)
2620 if err := json.Unmarshal(data, &s1); err != nil {
2621 return err
2622 }
2623 s.Confidence = float64(s1.Confidence)
2624 return nil
2625 }
2626
2627
2628 type GoogleCloudDocumentaiV1beta1DocumentPageDimension struct {
2629
2630 Height float64 `json:"height,omitempty"`
2631
2632 Unit string `json:"unit,omitempty"`
2633
2634 Width float64 `json:"width,omitempty"`
2635
2636
2637
2638
2639
2640 ForceSendFields []string `json:"-"`
2641
2642
2643
2644
2645 NullFields []string `json:"-"`
2646 }
2647
2648 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) MarshalJSON() ([]byte, error) {
2649 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
2650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2651 }
2652
2653 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) UnmarshalJSON(data []byte) error {
2654 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
2655 var s1 struct {
2656 Height gensupport.JSONFloat64 `json:"height"`
2657 Width gensupport.JSONFloat64 `json:"width"`
2658 *NoMethod
2659 }
2660 s1.NoMethod = (*NoMethod)(s)
2661 if err := json.Unmarshal(data, &s1); err != nil {
2662 return err
2663 }
2664 s.Height = float64(s1.Height)
2665 s.Width = float64(s1.Width)
2666 return nil
2667 }
2668
2669
2670
2671 type GoogleCloudDocumentaiV1beta1DocumentPageFormField struct {
2672
2673
2674
2675 CorrectedKeyText string `json:"correctedKeyText,omitempty"`
2676
2677
2678
2679 CorrectedValueText string `json:"correctedValueText,omitempty"`
2680
2681
2682 FieldName *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldName,omitempty"`
2683
2684 FieldValue *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldValue,omitempty"`
2685
2686
2687 NameDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
2688
2689 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2690
2691
2692 ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
2693
2694
2695
2696 ValueType string `json:"valueType,omitempty"`
2697
2698
2699
2700
2701
2702 ForceSendFields []string `json:"-"`
2703
2704
2705
2706
2707 NullFields []string `json:"-"`
2708 }
2709
2710 func (s *GoogleCloudDocumentaiV1beta1DocumentPageFormField) MarshalJSON() ([]byte, error) {
2711 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageFormField
2712 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2713 }
2714
2715
2716
2717 type GoogleCloudDocumentaiV1beta1DocumentPageImage struct {
2718
2719 Content string `json:"content,omitempty"`
2720
2721 Height int64 `json:"height,omitempty"`
2722
2723
2724
2725 MimeType string `json:"mimeType,omitempty"`
2726
2727 Width int64 `json:"width,omitempty"`
2728
2729
2730
2731
2732
2733 ForceSendFields []string `json:"-"`
2734
2735
2736
2737
2738 NullFields []string `json:"-"`
2739 }
2740
2741 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImage) MarshalJSON() ([]byte, error) {
2742 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImage
2743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2744 }
2745
2746
2747
2748 type GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores struct {
2749
2750 DetectedDefects []*GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"`
2751
2752
2753 QualityScore float64 `json:"qualityScore,omitempty"`
2754
2755
2756
2757
2758
2759 ForceSendFields []string `json:"-"`
2760
2761
2762
2763
2764 NullFields []string `json:"-"`
2765 }
2766
2767 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) {
2768 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
2769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2770 }
2771
2772 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error {
2773 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
2774 var s1 struct {
2775 QualityScore gensupport.JSONFloat64 `json:"qualityScore"`
2776 *NoMethod
2777 }
2778 s1.NoMethod = (*NoMethod)(s)
2779 if err := json.Unmarshal(data, &s1); err != nil {
2780 return err
2781 }
2782 s.QualityScore = float64(s1.QualityScore)
2783 return nil
2784 }
2785
2786
2787
2788 type GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect struct {
2789
2790
2791 Confidence float64 `json:"confidence,omitempty"`
2792
2793
2794
2795
2796
2797 Type string `json:"type,omitempty"`
2798
2799
2800
2801
2802
2803 ForceSendFields []string `json:"-"`
2804
2805
2806
2807
2808 NullFields []string `json:"-"`
2809 }
2810
2811 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) {
2812 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2814 }
2815
2816 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error {
2817 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2818 var s1 struct {
2819 Confidence gensupport.JSONFloat64 `json:"confidence"`
2820 *NoMethod
2821 }
2822 s1.NoMethod = (*NoMethod)(s)
2823 if err := json.Unmarshal(data, &s1); err != nil {
2824 return err
2825 }
2826 s.Confidence = float64(s1.Confidence)
2827 return nil
2828 }
2829
2830
2831
2832 type GoogleCloudDocumentaiV1beta1DocumentPageLayout struct {
2833
2834 BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
2835
2836
2837
2838 Confidence float64 `json:"confidence,omitempty"`
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850 Orientation string `json:"orientation,omitempty"`
2851
2852 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
2853
2854
2855
2856
2857
2858 ForceSendFields []string `json:"-"`
2859
2860
2861
2862
2863 NullFields []string `json:"-"`
2864 }
2865
2866 func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) MarshalJSON() ([]byte, error) {
2867 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
2868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2869 }
2870
2871 func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) UnmarshalJSON(data []byte) error {
2872 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
2873 var s1 struct {
2874 Confidence gensupport.JSONFloat64 `json:"confidence"`
2875 *NoMethod
2876 }
2877 s1.NoMethod = (*NoMethod)(s)
2878 if err := json.Unmarshal(data, &s1); err != nil {
2879 return err
2880 }
2881 s.Confidence = float64(s1.Confidence)
2882 return nil
2883 }
2884
2885
2886
2887
2888 type GoogleCloudDocumentaiV1beta1DocumentPageLine struct {
2889
2890 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2891
2892 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2893
2894 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2895
2896
2897
2898
2899
2900 ForceSendFields []string `json:"-"`
2901
2902
2903
2904
2905 NullFields []string `json:"-"`
2906 }
2907
2908 func (s *GoogleCloudDocumentaiV1beta1DocumentPageLine) MarshalJSON() ([]byte, error) {
2909 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLine
2910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2911 }
2912
2913
2914
2915
2916 type GoogleCloudDocumentaiV1beta1DocumentPageMatrix struct {
2917
2918 Cols int64 `json:"cols,omitempty"`
2919
2920 Data string `json:"data,omitempty"`
2921
2922 Rows int64 `json:"rows,omitempty"`
2923
2924
2925
2926
2927 Type int64 `json:"type,omitempty"`
2928
2929
2930
2931
2932
2933 ForceSendFields []string `json:"-"`
2934
2935
2936
2937
2938 NullFields []string `json:"-"`
2939 }
2940
2941 func (s *GoogleCloudDocumentaiV1beta1DocumentPageMatrix) MarshalJSON() ([]byte, error) {
2942 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageMatrix
2943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2944 }
2945
2946
2947
2948 type GoogleCloudDocumentaiV1beta1DocumentPageParagraph struct {
2949
2950 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2951
2952 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2953
2954 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2955
2956
2957
2958
2959
2960 ForceSendFields []string `json:"-"`
2961
2962
2963
2964
2965 NullFields []string `json:"-"`
2966 }
2967
2968 func (s *GoogleCloudDocumentaiV1beta1DocumentPageParagraph) MarshalJSON() ([]byte, error) {
2969 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageParagraph
2970 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2971 }
2972
2973
2974 type GoogleCloudDocumentaiV1beta1DocumentPageSymbol struct {
2975
2976 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2977
2978 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2979
2980
2981
2982
2983
2984 ForceSendFields []string `json:"-"`
2985
2986
2987
2988
2989 NullFields []string `json:"-"`
2990 }
2991
2992 func (s *GoogleCloudDocumentaiV1beta1DocumentPageSymbol) MarshalJSON() ([]byte, error) {
2993 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageSymbol
2994 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2995 }
2996
2997
2998
2999 type GoogleCloudDocumentaiV1beta1DocumentPageTable struct {
3000
3001 BodyRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"bodyRows,omitempty"`
3002
3003 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
3004
3005 HeaderRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"headerRows,omitempty"`
3006
3007 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
3008
3009 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
3010
3011
3012
3013
3014
3015 ForceSendFields []string `json:"-"`
3016
3017
3018
3019
3020 NullFields []string `json:"-"`
3021 }
3022
3023 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTable) MarshalJSON() ([]byte, error) {
3024 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTable
3025 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3026 }
3027
3028
3029
3030 type GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell struct {
3031
3032 ColSpan int64 `json:"colSpan,omitempty"`
3033
3034 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
3035
3036 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
3037
3038 RowSpan int64 `json:"rowSpan,omitempty"`
3039
3040
3041
3042
3043
3044 ForceSendFields []string `json:"-"`
3045
3046
3047
3048
3049 NullFields []string `json:"-"`
3050 }
3051
3052 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
3053 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
3054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3055 }
3056
3057
3058 type GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow struct {
3059
3060 Cells []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell `json:"cells,omitempty"`
3061
3062
3063
3064
3065
3066 ForceSendFields []string `json:"-"`
3067
3068
3069
3070
3071 NullFields []string `json:"-"`
3072 }
3073
3074 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
3075 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
3076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3077 }
3078
3079
3080 type GoogleCloudDocumentaiV1beta1DocumentPageToken struct {
3081
3082 DetectedBreak *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
3083
3084 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
3085
3086 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
3087
3088 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
3089
3090 StyleInfo *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"`
3091
3092
3093
3094
3095
3096 ForceSendFields []string `json:"-"`
3097
3098
3099
3100
3101 NullFields []string `json:"-"`
3102 }
3103
3104 func (s *GoogleCloudDocumentaiV1beta1DocumentPageToken) MarshalJSON() ([]byte, error) {
3105 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageToken
3106 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3107 }
3108
3109
3110
3111 type GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak struct {
3112
3113
3114
3115
3116
3117
3118
3119
3120 Type string `json:"type,omitempty"`
3121
3122
3123
3124
3125
3126 ForceSendFields []string `json:"-"`
3127
3128
3129
3130
3131 NullFields []string `json:"-"`
3132 }
3133
3134 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
3135 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
3136 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3137 }
3138
3139
3140
3141 type GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo struct {
3142
3143 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
3144
3145
3146 Bold bool `json:"bold,omitempty"`
3147
3148 FontSize int64 `json:"fontSize,omitempty"`
3149
3150 FontType string `json:"fontType,omitempty"`
3151
3152
3153 FontWeight int64 `json:"fontWeight,omitempty"`
3154
3155 Handwritten bool `json:"handwritten,omitempty"`
3156
3157 Italic bool `json:"italic,omitempty"`
3158
3159 LetterSpacing float64 `json:"letterSpacing,omitempty"`
3160
3161
3162 PixelFontSize float64 `json:"pixelFontSize,omitempty"`
3163
3164
3165 Smallcaps bool `json:"smallcaps,omitempty"`
3166
3167
3168 Strikeout bool `json:"strikeout,omitempty"`
3169
3170
3171 Subscript bool `json:"subscript,omitempty"`
3172
3173
3174 Superscript bool `json:"superscript,omitempty"`
3175
3176 TextColor *GoogleTypeColor `json:"textColor,omitempty"`
3177
3178 Underlined bool `json:"underlined,omitempty"`
3179
3180
3181
3182
3183
3184 ForceSendFields []string `json:"-"`
3185
3186
3187
3188
3189 NullFields []string `json:"-"`
3190 }
3191
3192 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) {
3193 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo
3194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3195 }
3196
3197 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error {
3198 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo
3199 var s1 struct {
3200 LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"`
3201 PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"`
3202 *NoMethod
3203 }
3204 s1.NoMethod = (*NoMethod)(s)
3205 if err := json.Unmarshal(data, &s1); err != nil {
3206 return err
3207 }
3208 s.LetterSpacing = float64(s1.LetterSpacing)
3209 s.PixelFontSize = float64(s1.PixelFontSize)
3210 return nil
3211 }
3212
3213
3214
3215 type GoogleCloudDocumentaiV1beta1DocumentPageVisualElement struct {
3216
3217 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
3218
3219 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
3220
3221 Type string `json:"type,omitempty"`
3222
3223
3224
3225
3226
3227 ForceSendFields []string `json:"-"`
3228
3229
3230
3231
3232 NullFields []string `json:"-"`
3233 }
3234
3235 func (s *GoogleCloudDocumentaiV1beta1DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
3236 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
3237 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3238 }
3239
3240
3241
3242 type GoogleCloudDocumentaiV1beta1DocumentProvenance struct {
3243
3244
3245 Id int64 `json:"id,omitempty"`
3246
3247 Parents []*GoogleCloudDocumentaiV1beta1DocumentProvenanceParent `json:"parents,omitempty"`
3248
3249 Revision int64 `json:"revision,omitempty"`
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267 Type string `json:"type,omitempty"`
3268
3269
3270
3271
3272
3273 ForceSendFields []string `json:"-"`
3274
3275
3276
3277
3278 NullFields []string `json:"-"`
3279 }
3280
3281 func (s *GoogleCloudDocumentaiV1beta1DocumentProvenance) MarshalJSON() ([]byte, error) {
3282 type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenance
3283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3284 }
3285
3286
3287
3288
3289 type GoogleCloudDocumentaiV1beta1DocumentProvenanceParent struct {
3290
3291 Id int64 `json:"id,omitempty"`
3292
3293
3294 Index int64 `json:"index,omitempty"`
3295
3296 Revision int64 `json:"revision,omitempty"`
3297
3298
3299
3300
3301
3302 ForceSendFields []string `json:"-"`
3303
3304
3305
3306
3307 NullFields []string `json:"-"`
3308 }
3309
3310 func (s *GoogleCloudDocumentaiV1beta1DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
3311 type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
3312 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3313 }
3314
3315
3316
3317 type GoogleCloudDocumentaiV1beta1DocumentRevision struct {
3318
3319
3320 Agent string `json:"agent,omitempty"`
3321
3322
3323 CreateTime string `json:"createTime,omitempty"`
3324
3325 HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"`
3326
3327
3328 Id string `json:"id,omitempty"`
3329
3330
3331
3332 Parent []int64 `json:"parent,omitempty"`
3333
3334
3335
3336 ParentIds []string `json:"parentIds,omitempty"`
3337
3338
3339 Processor string `json:"processor,omitempty"`
3340
3341
3342
3343
3344
3345 ForceSendFields []string `json:"-"`
3346
3347
3348
3349
3350 NullFields []string `json:"-"`
3351 }
3352
3353 func (s *GoogleCloudDocumentaiV1beta1DocumentRevision) MarshalJSON() ([]byte, error) {
3354 type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevision
3355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3356 }
3357
3358
3359
3360 type GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview struct {
3361
3362 State string `json:"state,omitempty"`
3363
3364
3365 StateMessage string `json:"stateMessage,omitempty"`
3366
3367
3368
3369
3370
3371 ForceSendFields []string `json:"-"`
3372
3373
3374
3375
3376 NullFields []string `json:"-"`
3377 }
3378
3379 func (s *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
3380 type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
3381 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3382 }
3383
3384
3385
3386
3387 type GoogleCloudDocumentaiV1beta1DocumentShardInfo struct {
3388
3389 ShardCount int64 `json:"shardCount,omitempty,string"`
3390
3391 ShardIndex int64 `json:"shardIndex,omitempty,string"`
3392
3393
3394 TextOffset int64 `json:"textOffset,omitempty,string"`
3395
3396
3397
3398
3399
3400 ForceSendFields []string `json:"-"`
3401
3402
3403
3404
3405 NullFields []string `json:"-"`
3406 }
3407
3408 func (s *GoogleCloudDocumentaiV1beta1DocumentShardInfo) MarshalJSON() ([]byte, error) {
3409 type NoMethod GoogleCloudDocumentaiV1beta1DocumentShardInfo
3410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3411 }
3412
3413
3414
3415 type GoogleCloudDocumentaiV1beta1DocumentStyle struct {
3416
3417 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
3418
3419 Color *GoogleTypeColor `json:"color,omitempty"`
3420
3421
3422 FontFamily string `json:"fontFamily,omitempty"`
3423
3424 FontSize *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize `json:"fontSize,omitempty"`
3425
3426
3427
3428 FontWeight string `json:"fontWeight,omitempty"`
3429
3430 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
3431
3432
3433
3434 TextDecoration string `json:"textDecoration,omitempty"`
3435
3436
3437
3438 TextStyle string `json:"textStyle,omitempty"`
3439
3440
3441
3442
3443
3444 ForceSendFields []string `json:"-"`
3445
3446
3447
3448
3449 NullFields []string `json:"-"`
3450 }
3451
3452 func (s *GoogleCloudDocumentaiV1beta1DocumentStyle) MarshalJSON() ([]byte, error) {
3453 type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyle
3454 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3455 }
3456
3457
3458 type GoogleCloudDocumentaiV1beta1DocumentStyleFontSize struct {
3459
3460 Size float64 `json:"size,omitempty"`
3461
3462
3463 Unit string `json:"unit,omitempty"`
3464
3465
3466
3467
3468
3469 ForceSendFields []string `json:"-"`
3470
3471
3472
3473
3474 NullFields []string `json:"-"`
3475 }
3476
3477 func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
3478 type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
3479 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3480 }
3481
3482 func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
3483 type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
3484 var s1 struct {
3485 Size gensupport.JSONFloat64 `json:"size"`
3486 *NoMethod
3487 }
3488 s1.NoMethod = (*NoMethod)(s)
3489 if err := json.Unmarshal(data, &s1); err != nil {
3490 return err
3491 }
3492 s.Size = float64(s1.Size)
3493 return nil
3494 }
3495
3496
3497
3498 type GoogleCloudDocumentaiV1beta1DocumentTextAnchor struct {
3499
3500
3501 Content string `json:"content,omitempty"`
3502
3503 TextSegments []*GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
3504
3505
3506
3507
3508
3509 ForceSendFields []string `json:"-"`
3510
3511
3512
3513
3514 NullFields []string `json:"-"`
3515 }
3516
3517 func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchor) MarshalJSON() ([]byte, error) {
3518 type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchor
3519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3520 }
3521
3522
3523
3524
3525
3526 type GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment struct {
3527
3528 EndIndex int64 `json:"endIndex,omitempty,string"`
3529
3530 StartIndex int64 `json:"startIndex,omitempty,string"`
3531
3532
3533
3534
3535
3536 ForceSendFields []string `json:"-"`
3537
3538
3539
3540
3541 NullFields []string `json:"-"`
3542 }
3543
3544 func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
3545 type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
3546 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3547 }
3548
3549
3550
3551 type GoogleCloudDocumentaiV1beta1DocumentTextChange struct {
3552
3553
3554 ChangedText string `json:"changedText,omitempty"`
3555
3556 Provenance []*GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
3557
3558
3559
3560
3561 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
3562
3563
3564
3565
3566
3567 ForceSendFields []string `json:"-"`
3568
3569
3570
3571
3572 NullFields []string `json:"-"`
3573 }
3574
3575 func (s *GoogleCloudDocumentaiV1beta1DocumentTextChange) MarshalJSON() ([]byte, error) {
3576 type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextChange
3577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3578 }
3579
3580
3581
3582 type GoogleCloudDocumentaiV1beta1GcsDestination struct {
3583 Uri string `json:"uri,omitempty"`
3584
3585
3586
3587
3588
3589 ForceSendFields []string `json:"-"`
3590
3591
3592
3593
3594 NullFields []string `json:"-"`
3595 }
3596
3597 func (s *GoogleCloudDocumentaiV1beta1GcsDestination) MarshalJSON() ([]byte, error) {
3598 type NoMethod GoogleCloudDocumentaiV1beta1GcsDestination
3599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3600 }
3601
3602
3603
3604 type GoogleCloudDocumentaiV1beta1GcsSource struct {
3605 Uri string `json:"uri,omitempty"`
3606
3607
3608
3609
3610
3611 ForceSendFields []string `json:"-"`
3612
3613
3614
3615
3616 NullFields []string `json:"-"`
3617 }
3618
3619 func (s *GoogleCloudDocumentaiV1beta1GcsSource) MarshalJSON() ([]byte, error) {
3620 type NoMethod GoogleCloudDocumentaiV1beta1GcsSource
3621 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3622 }
3623
3624
3625
3626 type GoogleCloudDocumentaiV1beta1InputConfig struct {
3627
3628
3629 GcsSource *GoogleCloudDocumentaiV1beta1GcsSource `json:"gcsSource,omitempty"`
3630
3631
3632
3633
3634 MimeType string `json:"mimeType,omitempty"`
3635
3636
3637
3638
3639
3640 ForceSendFields []string `json:"-"`
3641
3642
3643
3644
3645 NullFields []string `json:"-"`
3646 }
3647
3648 func (s *GoogleCloudDocumentaiV1beta1InputConfig) MarshalJSON() ([]byte, error) {
3649 type NoMethod GoogleCloudDocumentaiV1beta1InputConfig
3650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3651 }
3652
3653
3654
3655
3656 type GoogleCloudDocumentaiV1beta1NormalizedVertex struct {
3657
3658 X float64 `json:"x,omitempty"`
3659
3660 Y float64 `json:"y,omitempty"`
3661
3662
3663
3664
3665
3666 ForceSendFields []string `json:"-"`
3667
3668
3669
3670
3671 NullFields []string `json:"-"`
3672 }
3673
3674 func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
3675 type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
3676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3677 }
3678
3679 func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
3680 type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
3681 var s1 struct {
3682 X gensupport.JSONFloat64 `json:"x"`
3683 Y gensupport.JSONFloat64 `json:"y"`
3684 *NoMethod
3685 }
3686 s1.NoMethod = (*NoMethod)(s)
3687 if err := json.Unmarshal(data, &s1); err != nil {
3688 return err
3689 }
3690 s.X = float64(s1.X)
3691 s.Y = float64(s1.Y)
3692 return nil
3693 }
3694
3695
3696
3697 type GoogleCloudDocumentaiV1beta1OperationMetadata struct {
3698
3699 CreateTime string `json:"createTime,omitempty"`
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711 State string `json:"state,omitempty"`
3712
3713
3714 StateMessage string `json:"stateMessage,omitempty"`
3715
3716 UpdateTime string `json:"updateTime,omitempty"`
3717
3718
3719
3720
3721
3722 ForceSendFields []string `json:"-"`
3723
3724
3725
3726
3727 NullFields []string `json:"-"`
3728 }
3729
3730 func (s *GoogleCloudDocumentaiV1beta1OperationMetadata) MarshalJSON() ([]byte, error) {
3731 type NoMethod GoogleCloudDocumentaiV1beta1OperationMetadata
3732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3733 }
3734
3735
3736
3737 type GoogleCloudDocumentaiV1beta1OutputConfig struct {
3738
3739 GcsDestination *GoogleCloudDocumentaiV1beta1GcsDestination `json:"gcsDestination,omitempty"`
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 PagesPerShard int64 `json:"pagesPerShard,omitempty"`
3750
3751
3752
3753
3754
3755 ForceSendFields []string `json:"-"`
3756
3757
3758
3759
3760 NullFields []string `json:"-"`
3761 }
3762
3763 func (s *GoogleCloudDocumentaiV1beta1OutputConfig) MarshalJSON() ([]byte, error) {
3764 type NoMethod GoogleCloudDocumentaiV1beta1OutputConfig
3765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3766 }
3767
3768
3769
3770 type GoogleCloudDocumentaiV1beta1ProcessDocumentResponse struct {
3771
3772
3773 InputConfig *GoogleCloudDocumentaiV1beta1InputConfig `json:"inputConfig,omitempty"`
3774
3775
3776 OutputConfig *GoogleCloudDocumentaiV1beta1OutputConfig `json:"outputConfig,omitempty"`
3777
3778
3779
3780
3781
3782 ForceSendFields []string `json:"-"`
3783
3784
3785
3786
3787 NullFields []string `json:"-"`
3788 }
3789
3790 func (s *GoogleCloudDocumentaiV1beta1ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
3791 type NoMethod GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
3792 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3793 }
3794
3795
3796
3797
3798 type GoogleCloudDocumentaiV1beta1Vertex struct {
3799
3800 X int64 `json:"x,omitempty"`
3801
3802 Y int64 `json:"y,omitempty"`
3803
3804
3805
3806
3807
3808 ForceSendFields []string `json:"-"`
3809
3810
3811
3812
3813 NullFields []string `json:"-"`
3814 }
3815
3816 func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) {
3817 type NoMethod GoogleCloudDocumentaiV1beta1Vertex
3818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3819 }
3820
3821
3822
3823 type GoogleCloudDocumentaiV1beta2Barcode struct {
3824
3825
3826
3827
3828
3829
3830 Format string `json:"format,omitempty"`
3831
3832
3833 RawValue string `json:"rawValue,omitempty"`
3834
3835
3836
3837
3838
3839
3840 ValueFormat string `json:"valueFormat,omitempty"`
3841
3842
3843
3844
3845
3846 ForceSendFields []string `json:"-"`
3847
3848
3849
3850
3851 NullFields []string `json:"-"`
3852 }
3853
3854 func (s *GoogleCloudDocumentaiV1beta2Barcode) MarshalJSON() ([]byte, error) {
3855 type NoMethod GoogleCloudDocumentaiV1beta2Barcode
3856 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3857 }
3858
3859
3860
3861
3862 type GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse struct {
3863
3864 Responses []*GoogleCloudDocumentaiV1beta2ProcessDocumentResponse `json:"responses,omitempty"`
3865
3866
3867
3868
3869
3870 ForceSendFields []string `json:"-"`
3871
3872
3873
3874
3875 NullFields []string `json:"-"`
3876 }
3877
3878 func (s *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
3879 type NoMethod GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
3880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3881 }
3882
3883
3884
3885 type GoogleCloudDocumentaiV1beta2BoundingPoly struct {
3886
3887 NormalizedVertices []*GoogleCloudDocumentaiV1beta2NormalizedVertex `json:"normalizedVertices,omitempty"`
3888
3889 Vertices []*GoogleCloudDocumentaiV1beta2Vertex `json:"vertices,omitempty"`
3890
3891
3892
3893
3894
3895 ForceSendFields []string `json:"-"`
3896
3897
3898
3899
3900 NullFields []string `json:"-"`
3901 }
3902
3903 func (s *GoogleCloudDocumentaiV1beta2BoundingPoly) MarshalJSON() ([]byte, error) {
3904 type NoMethod GoogleCloudDocumentaiV1beta2BoundingPoly
3905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3906 }
3907
3908
3909
3910
3911
3912 type GoogleCloudDocumentaiV1beta2Document struct {
3913
3914
3915
3916 Content string `json:"content,omitempty"`
3917
3918
3919 Entities []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"entities,omitempty"`
3920
3921 EntityRelations []*GoogleCloudDocumentaiV1beta2DocumentEntityRelation `json:"entityRelations,omitempty"`
3922
3923 Error *GoogleRpcStatus `json:"error,omitempty"`
3924
3925 Labels []*GoogleCloudDocumentaiV1beta2DocumentLabel `json:"labels,omitempty"`
3926
3927
3928 MimeType string `json:"mimeType,omitempty"`
3929
3930 Pages []*GoogleCloudDocumentaiV1beta2DocumentPage `json:"pages,omitempty"`
3931
3932 Revisions []*GoogleCloudDocumentaiV1beta2DocumentRevision `json:"revisions,omitempty"`
3933
3934
3935
3936 ShardInfo *GoogleCloudDocumentaiV1beta2DocumentShardInfo `json:"shardInfo,omitempty"`
3937
3938 Text string `json:"text,omitempty"`
3939
3940
3941
3942 TextChanges []*GoogleCloudDocumentaiV1beta2DocumentTextChange `json:"textChanges,omitempty"`
3943
3944 TextStyles []*GoogleCloudDocumentaiV1beta2DocumentStyle `json:"textStyles,omitempty"`
3945
3946
3947
3948
3949 Uri string `json:"uri,omitempty"`
3950
3951
3952
3953
3954
3955 ForceSendFields []string `json:"-"`
3956
3957
3958
3959
3960 NullFields []string `json:"-"`
3961 }
3962
3963 func (s *GoogleCloudDocumentaiV1beta2Document) MarshalJSON() ([]byte, error) {
3964 type NoMethod GoogleCloudDocumentaiV1beta2Document
3965 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3966 }
3967
3968
3969
3970
3971 type GoogleCloudDocumentaiV1beta2DocumentEntity struct {
3972
3973 Confidence float64 `json:"confidence,omitempty"`
3974
3975
3976 Id string `json:"id,omitempty"`
3977
3978 MentionId string `json:"mentionId,omitempty"`
3979
3980
3981 MentionText string `json:"mentionText,omitempty"`
3982
3983
3984
3985
3986 NormalizedValue *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
3987
3988
3989 PageAnchor *GoogleCloudDocumentaiV1beta2DocumentPageAnchor `json:"pageAnchor,omitempty"`
3990
3991
3992 Properties []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"properties,omitempty"`
3993
3994 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
3995
3996
3997 Redacted bool `json:"redacted,omitempty"`
3998
3999
4000 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
4001
4002 Type string `json:"type,omitempty"`
4003
4004
4005
4006
4007
4008 ForceSendFields []string `json:"-"`
4009
4010
4011
4012
4013 NullFields []string `json:"-"`
4014 }
4015
4016 func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) MarshalJSON() ([]byte, error) {
4017 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
4018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4019 }
4020
4021 func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) UnmarshalJSON(data []byte) error {
4022 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
4023 var s1 struct {
4024 Confidence gensupport.JSONFloat64 `json:"confidence"`
4025 *NoMethod
4026 }
4027 s1.NoMethod = (*NoMethod)(s)
4028 if err := json.Unmarshal(data, &s1); err != nil {
4029 return err
4030 }
4031 s.Confidence = float64(s1.Confidence)
4032 return nil
4033 }
4034
4035
4036
4037 type GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue struct {
4038
4039
4040 AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
4041
4042
4043 BooleanValue bool `json:"booleanValue,omitempty"`
4044
4045
4046 DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
4047
4048
4049 DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
4050
4051 FloatValue float64 `json:"floatValue,omitempty"`
4052
4053 IntegerValue int64 `json:"integerValue,omitempty"`
4054
4055
4056 MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
4057
4058
4059
4060
4061
4062
4063
4064
4065 Text string `json:"text,omitempty"`
4066
4067
4068
4069
4070
4071 ForceSendFields []string `json:"-"`
4072
4073
4074
4075
4076 NullFields []string `json:"-"`
4077 }
4078
4079 func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
4080 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
4081 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4082 }
4083
4084 func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
4085 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
4086 var s1 struct {
4087 FloatValue gensupport.JSONFloat64 `json:"floatValue"`
4088 *NoMethod
4089 }
4090 s1.NoMethod = (*NoMethod)(s)
4091 if err := json.Unmarshal(data, &s1); err != nil {
4092 return err
4093 }
4094 s.FloatValue = float64(s1.FloatValue)
4095 return nil
4096 }
4097
4098
4099
4100 type GoogleCloudDocumentaiV1beta2DocumentEntityRelation struct {
4101
4102 ObjectId string `json:"objectId,omitempty"`
4103
4104 Relation string `json:"relation,omitempty"`
4105
4106 SubjectId string `json:"subjectId,omitempty"`
4107
4108
4109
4110
4111
4112 ForceSendFields []string `json:"-"`
4113
4114
4115
4116
4117 NullFields []string `json:"-"`
4118 }
4119
4120 func (s *GoogleCloudDocumentaiV1beta2DocumentEntityRelation) MarshalJSON() ([]byte, error) {
4121 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityRelation
4122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4123 }
4124
4125
4126
4127
4128
4129 type GoogleCloudDocumentaiV1beta2DocumentLabel struct {
4130
4131
4132
4133 AutomlModel string `json:"automlModel,omitempty"`
4134
4135 Confidence float64 `json:"confidence,omitempty"`
4136
4137
4138 Name string `json:"name,omitempty"`
4139
4140
4141
4142
4143
4144 ForceSendFields []string `json:"-"`
4145
4146
4147
4148
4149 NullFields []string `json:"-"`
4150 }
4151
4152 func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) MarshalJSON() ([]byte, error) {
4153 type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
4154 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4155 }
4156
4157 func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) UnmarshalJSON(data []byte) error {
4158 type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
4159 var s1 struct {
4160 Confidence gensupport.JSONFloat64 `json:"confidence"`
4161 *NoMethod
4162 }
4163 s1.NoMethod = (*NoMethod)(s)
4164 if err := json.Unmarshal(data, &s1); err != nil {
4165 return err
4166 }
4167 s.Confidence = float64(s1.Confidence)
4168 return nil
4169 }
4170
4171
4172 type GoogleCloudDocumentaiV1beta2DocumentPage struct {
4173
4174
4175
4176 Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"`
4177
4178 DetectedBarcodes []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"`
4179
4180 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4181
4182 Dimension *GoogleCloudDocumentaiV1beta2DocumentPageDimension `json:"dimension,omitempty"`
4183
4184 FormFields []*GoogleCloudDocumentaiV1beta2DocumentPageFormField `json:"formFields,omitempty"`
4185
4186
4187
4188 Image *GoogleCloudDocumentaiV1beta2DocumentPageImage `json:"image,omitempty"`
4189
4190 ImageQualityScores *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"`
4191
4192 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4193
4194
4195 Lines []*GoogleCloudDocumentaiV1beta2DocumentPageLine `json:"lines,omitempty"`
4196
4197
4198 PageNumber int64 `json:"pageNumber,omitempty"`
4199
4200
4201 Paragraphs []*GoogleCloudDocumentaiV1beta2DocumentPageParagraph `json:"paragraphs,omitempty"`
4202
4203 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4204
4205 Symbols []*GoogleCloudDocumentaiV1beta2DocumentPageSymbol `json:"symbols,omitempty"`
4206
4207 Tables []*GoogleCloudDocumentaiV1beta2DocumentPageTable `json:"tables,omitempty"`
4208
4209 Tokens []*GoogleCloudDocumentaiV1beta2DocumentPageToken `json:"tokens,omitempty"`
4210
4211
4212 Transforms []*GoogleCloudDocumentaiV1beta2DocumentPageMatrix `json:"transforms,omitempty"`
4213
4214
4215 VisualElements []*GoogleCloudDocumentaiV1beta2DocumentPageVisualElement `json:"visualElements,omitempty"`
4216
4217
4218
4219
4220
4221 ForceSendFields []string `json:"-"`
4222
4223
4224
4225
4226 NullFields []string `json:"-"`
4227 }
4228
4229 func (s *GoogleCloudDocumentaiV1beta2DocumentPage) MarshalJSON() ([]byte, error) {
4230 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPage
4231 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4232 }
4233
4234
4235
4236
4237
4238 type GoogleCloudDocumentaiV1beta2DocumentPageAnchor struct {
4239
4240 PageRefs []*GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
4241
4242
4243
4244
4245
4246 ForceSendFields []string `json:"-"`
4247
4248
4249
4250
4251 NullFields []string `json:"-"`
4252 }
4253
4254 func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, error) {
4255 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchor
4256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4257 }
4258
4259
4260
4261 type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct {
4262
4263
4264
4265 BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
4266
4267
4268 Confidence float64 `json:"confidence,omitempty"`
4269
4270 LayoutId string `json:"layoutId,omitempty"`
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283 LayoutType string `json:"layoutType,omitempty"`
4284
4285
4286
4287
4288 Page int64 `json:"page,omitempty,string"`
4289
4290
4291
4292
4293
4294 ForceSendFields []string `json:"-"`
4295
4296
4297
4298
4299 NullFields []string `json:"-"`
4300 }
4301
4302 func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
4303 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
4304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4305 }
4306
4307 func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
4308 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
4309 var s1 struct {
4310 Confidence gensupport.JSONFloat64 `json:"confidence"`
4311 *NoMethod
4312 }
4313 s1.NoMethod = (*NoMethod)(s)
4314 if err := json.Unmarshal(data, &s1); err != nil {
4315 return err
4316 }
4317 s.Confidence = float64(s1.Confidence)
4318 return nil
4319 }
4320
4321
4322
4323 type GoogleCloudDocumentaiV1beta2DocumentPageBlock struct {
4324
4325 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4326
4327 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4328
4329 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4330
4331
4332
4333
4334
4335 ForceSendFields []string `json:"-"`
4336
4337
4338
4339
4340 NullFields []string `json:"-"`
4341 }
4342
4343 func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, error) {
4344 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageBlock
4345 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4346 }
4347
4348
4349 type GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode struct {
4350
4351 Barcode *GoogleCloudDocumentaiV1beta2Barcode `json:"barcode,omitempty"`
4352
4353 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4354
4355
4356
4357
4358
4359 ForceSendFields []string `json:"-"`
4360
4361
4362
4363
4364 NullFields []string `json:"-"`
4365 }
4366
4367 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) {
4368 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
4369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4370 }
4371
4372
4373
4374 type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct {
4375
4376 Confidence float64 `json:"confidence,omitempty"`
4377
4378
4379
4380 LanguageCode string `json:"languageCode,omitempty"`
4381
4382
4383
4384
4385
4386 ForceSendFields []string `json:"-"`
4387
4388
4389
4390
4391 NullFields []string `json:"-"`
4392 }
4393
4394 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
4395 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
4396 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4397 }
4398
4399 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
4400 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
4401 var s1 struct {
4402 Confidence gensupport.JSONFloat64 `json:"confidence"`
4403 *NoMethod
4404 }
4405 s1.NoMethod = (*NoMethod)(s)
4406 if err := json.Unmarshal(data, &s1); err != nil {
4407 return err
4408 }
4409 s.Confidence = float64(s1.Confidence)
4410 return nil
4411 }
4412
4413
4414 type GoogleCloudDocumentaiV1beta2DocumentPageDimension struct {
4415
4416 Height float64 `json:"height,omitempty"`
4417
4418 Unit string `json:"unit,omitempty"`
4419
4420 Width float64 `json:"width,omitempty"`
4421
4422
4423
4424
4425
4426 ForceSendFields []string `json:"-"`
4427
4428
4429
4430
4431 NullFields []string `json:"-"`
4432 }
4433
4434 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) MarshalJSON() ([]byte, error) {
4435 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
4436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4437 }
4438
4439 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) UnmarshalJSON(data []byte) error {
4440 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
4441 var s1 struct {
4442 Height gensupport.JSONFloat64 `json:"height"`
4443 Width gensupport.JSONFloat64 `json:"width"`
4444 *NoMethod
4445 }
4446 s1.NoMethod = (*NoMethod)(s)
4447 if err := json.Unmarshal(data, &s1); err != nil {
4448 return err
4449 }
4450 s.Height = float64(s1.Height)
4451 s.Width = float64(s1.Width)
4452 return nil
4453 }
4454
4455
4456
4457 type GoogleCloudDocumentaiV1beta2DocumentPageFormField struct {
4458
4459
4460
4461 CorrectedKeyText string `json:"correctedKeyText,omitempty"`
4462
4463
4464
4465 CorrectedValueText string `json:"correctedValueText,omitempty"`
4466
4467
4468 FieldName *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldName,omitempty"`
4469
4470 FieldValue *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldValue,omitempty"`
4471
4472
4473 NameDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
4474
4475 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4476
4477
4478 ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
4479
4480
4481
4482 ValueType string `json:"valueType,omitempty"`
4483
4484
4485
4486
4487
4488 ForceSendFields []string `json:"-"`
4489
4490
4491
4492
4493 NullFields []string `json:"-"`
4494 }
4495
4496 func (s *GoogleCloudDocumentaiV1beta2DocumentPageFormField) MarshalJSON() ([]byte, error) {
4497 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageFormField
4498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4499 }
4500
4501
4502
4503 type GoogleCloudDocumentaiV1beta2DocumentPageImage struct {
4504
4505 Content string `json:"content,omitempty"`
4506
4507 Height int64 `json:"height,omitempty"`
4508
4509
4510
4511 MimeType string `json:"mimeType,omitempty"`
4512
4513 Width int64 `json:"width,omitempty"`
4514
4515
4516
4517
4518
4519 ForceSendFields []string `json:"-"`
4520
4521
4522
4523
4524 NullFields []string `json:"-"`
4525 }
4526
4527 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImage) MarshalJSON() ([]byte, error) {
4528 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImage
4529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4530 }
4531
4532
4533
4534 type GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores struct {
4535
4536 DetectedDefects []*GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"`
4537
4538
4539 QualityScore float64 `json:"qualityScore,omitempty"`
4540
4541
4542
4543
4544
4545 ForceSendFields []string `json:"-"`
4546
4547
4548
4549
4550 NullFields []string `json:"-"`
4551 }
4552
4553 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) {
4554 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
4555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4556 }
4557
4558 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error {
4559 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
4560 var s1 struct {
4561 QualityScore gensupport.JSONFloat64 `json:"qualityScore"`
4562 *NoMethod
4563 }
4564 s1.NoMethod = (*NoMethod)(s)
4565 if err := json.Unmarshal(data, &s1); err != nil {
4566 return err
4567 }
4568 s.QualityScore = float64(s1.QualityScore)
4569 return nil
4570 }
4571
4572
4573
4574 type GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect struct {
4575
4576
4577 Confidence float64 `json:"confidence,omitempty"`
4578
4579
4580
4581
4582
4583 Type string `json:"type,omitempty"`
4584
4585
4586
4587
4588
4589 ForceSendFields []string `json:"-"`
4590
4591
4592
4593
4594 NullFields []string `json:"-"`
4595 }
4596
4597 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) {
4598 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
4599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4600 }
4601
4602 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error {
4603 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
4604 var s1 struct {
4605 Confidence gensupport.JSONFloat64 `json:"confidence"`
4606 *NoMethod
4607 }
4608 s1.NoMethod = (*NoMethod)(s)
4609 if err := json.Unmarshal(data, &s1); err != nil {
4610 return err
4611 }
4612 s.Confidence = float64(s1.Confidence)
4613 return nil
4614 }
4615
4616
4617
4618 type GoogleCloudDocumentaiV1beta2DocumentPageLayout struct {
4619
4620 BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
4621
4622
4623
4624 Confidence float64 `json:"confidence,omitempty"`
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636 Orientation string `json:"orientation,omitempty"`
4637
4638 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
4639
4640
4641
4642
4643
4644 ForceSendFields []string `json:"-"`
4645
4646
4647
4648
4649 NullFields []string `json:"-"`
4650 }
4651
4652 func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) MarshalJSON() ([]byte, error) {
4653 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
4654 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4655 }
4656
4657 func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) UnmarshalJSON(data []byte) error {
4658 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
4659 var s1 struct {
4660 Confidence gensupport.JSONFloat64 `json:"confidence"`
4661 *NoMethod
4662 }
4663 s1.NoMethod = (*NoMethod)(s)
4664 if err := json.Unmarshal(data, &s1); err != nil {
4665 return err
4666 }
4667 s.Confidence = float64(s1.Confidence)
4668 return nil
4669 }
4670
4671
4672
4673
4674 type GoogleCloudDocumentaiV1beta2DocumentPageLine struct {
4675
4676 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4677
4678 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4679
4680 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4681
4682
4683
4684
4685
4686 ForceSendFields []string `json:"-"`
4687
4688
4689
4690
4691 NullFields []string `json:"-"`
4692 }
4693
4694 func (s *GoogleCloudDocumentaiV1beta2DocumentPageLine) MarshalJSON() ([]byte, error) {
4695 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLine
4696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4697 }
4698
4699
4700
4701
4702 type GoogleCloudDocumentaiV1beta2DocumentPageMatrix struct {
4703
4704 Cols int64 `json:"cols,omitempty"`
4705
4706 Data string `json:"data,omitempty"`
4707
4708 Rows int64 `json:"rows,omitempty"`
4709
4710
4711
4712
4713 Type int64 `json:"type,omitempty"`
4714
4715
4716
4717
4718
4719 ForceSendFields []string `json:"-"`
4720
4721
4722
4723
4724 NullFields []string `json:"-"`
4725 }
4726
4727 func (s *GoogleCloudDocumentaiV1beta2DocumentPageMatrix) MarshalJSON() ([]byte, error) {
4728 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageMatrix
4729 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4730 }
4731
4732
4733
4734 type GoogleCloudDocumentaiV1beta2DocumentPageParagraph struct {
4735
4736 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4737
4738 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4739
4740 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4741
4742
4743
4744
4745
4746 ForceSendFields []string `json:"-"`
4747
4748
4749
4750
4751 NullFields []string `json:"-"`
4752 }
4753
4754 func (s *GoogleCloudDocumentaiV1beta2DocumentPageParagraph) MarshalJSON() ([]byte, error) {
4755 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageParagraph
4756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4757 }
4758
4759
4760 type GoogleCloudDocumentaiV1beta2DocumentPageSymbol struct {
4761
4762 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4763
4764 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4765
4766
4767
4768
4769
4770 ForceSendFields []string `json:"-"`
4771
4772
4773
4774
4775 NullFields []string `json:"-"`
4776 }
4777
4778 func (s *GoogleCloudDocumentaiV1beta2DocumentPageSymbol) MarshalJSON() ([]byte, error) {
4779 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageSymbol
4780 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4781 }
4782
4783
4784
4785 type GoogleCloudDocumentaiV1beta2DocumentPageTable struct {
4786
4787 BodyRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"bodyRows,omitempty"`
4788
4789 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4790
4791 HeaderRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"headerRows,omitempty"`
4792
4793 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4794
4795 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4796
4797
4798
4799
4800
4801 ForceSendFields []string `json:"-"`
4802
4803
4804
4805
4806 NullFields []string `json:"-"`
4807 }
4808
4809 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTable) MarshalJSON() ([]byte, error) {
4810 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTable
4811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4812 }
4813
4814
4815
4816 type GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell struct {
4817
4818 ColSpan int64 `json:"colSpan,omitempty"`
4819
4820 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4821
4822 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4823
4824 RowSpan int64 `json:"rowSpan,omitempty"`
4825
4826
4827
4828
4829
4830 ForceSendFields []string `json:"-"`
4831
4832
4833
4834
4835 NullFields []string `json:"-"`
4836 }
4837
4838 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
4839 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell
4840 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4841 }
4842
4843
4844 type GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow struct {
4845
4846 Cells []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell `json:"cells,omitempty"`
4847
4848
4849
4850
4851
4852 ForceSendFields []string `json:"-"`
4853
4854
4855
4856
4857 NullFields []string `json:"-"`
4858 }
4859
4860 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
4861 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
4862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4863 }
4864
4865
4866 type GoogleCloudDocumentaiV1beta2DocumentPageToken struct {
4867
4868 DetectedBreak *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
4869
4870 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4871
4872 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4873
4874 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4875
4876 StyleInfo *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"`
4877
4878
4879
4880
4881
4882 ForceSendFields []string `json:"-"`
4883
4884
4885
4886
4887 NullFields []string `json:"-"`
4888 }
4889
4890 func (s *GoogleCloudDocumentaiV1beta2DocumentPageToken) MarshalJSON() ([]byte, error) {
4891 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageToken
4892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4893 }
4894
4895
4896
4897 type GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak struct {
4898
4899
4900
4901
4902
4903
4904
4905
4906 Type string `json:"type,omitempty"`
4907
4908
4909
4910
4911
4912 ForceSendFields []string `json:"-"`
4913
4914
4915
4916
4917 NullFields []string `json:"-"`
4918 }
4919
4920 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
4921 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
4922 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4923 }
4924
4925
4926
4927 type GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo struct {
4928
4929 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
4930
4931
4932 Bold bool `json:"bold,omitempty"`
4933
4934 FontSize int64 `json:"fontSize,omitempty"`
4935
4936 FontType string `json:"fontType,omitempty"`
4937
4938
4939 FontWeight int64 `json:"fontWeight,omitempty"`
4940
4941 Handwritten bool `json:"handwritten,omitempty"`
4942
4943 Italic bool `json:"italic,omitempty"`
4944
4945 LetterSpacing float64 `json:"letterSpacing,omitempty"`
4946
4947
4948 PixelFontSize float64 `json:"pixelFontSize,omitempty"`
4949
4950
4951 Smallcaps bool `json:"smallcaps,omitempty"`
4952
4953
4954 Strikeout bool `json:"strikeout,omitempty"`
4955
4956
4957 Subscript bool `json:"subscript,omitempty"`
4958
4959
4960 Superscript bool `json:"superscript,omitempty"`
4961
4962 TextColor *GoogleTypeColor `json:"textColor,omitempty"`
4963
4964 Underlined bool `json:"underlined,omitempty"`
4965
4966
4967
4968
4969
4970 ForceSendFields []string `json:"-"`
4971
4972
4973
4974
4975 NullFields []string `json:"-"`
4976 }
4977
4978 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) {
4979 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
4980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4981 }
4982
4983 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error {
4984 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
4985 var s1 struct {
4986 LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"`
4987 PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"`
4988 *NoMethod
4989 }
4990 s1.NoMethod = (*NoMethod)(s)
4991 if err := json.Unmarshal(data, &s1); err != nil {
4992 return err
4993 }
4994 s.LetterSpacing = float64(s1.LetterSpacing)
4995 s.PixelFontSize = float64(s1.PixelFontSize)
4996 return nil
4997 }
4998
4999
5000
5001 type GoogleCloudDocumentaiV1beta2DocumentPageVisualElement struct {
5002
5003 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5004
5005 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
5006
5007 Type string `json:"type,omitempty"`
5008
5009
5010
5011
5012
5013 ForceSendFields []string `json:"-"`
5014
5015
5016
5017
5018 NullFields []string `json:"-"`
5019 }
5020
5021 func (s *GoogleCloudDocumentaiV1beta2DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
5022 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
5023 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5024 }
5025
5026
5027
5028 type GoogleCloudDocumentaiV1beta2DocumentProvenance struct {
5029
5030
5031 Id int64 `json:"id,omitempty"`
5032
5033 Parents []*GoogleCloudDocumentaiV1beta2DocumentProvenanceParent `json:"parents,omitempty"`
5034
5035 Revision int64 `json:"revision,omitempty"`
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053 Type string `json:"type,omitempty"`
5054
5055
5056
5057
5058
5059 ForceSendFields []string `json:"-"`
5060
5061
5062
5063
5064 NullFields []string `json:"-"`
5065 }
5066
5067 func (s *GoogleCloudDocumentaiV1beta2DocumentProvenance) MarshalJSON() ([]byte, error) {
5068 type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenance
5069 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5070 }
5071
5072
5073
5074
5075 type GoogleCloudDocumentaiV1beta2DocumentProvenanceParent struct {
5076
5077 Id int64 `json:"id,omitempty"`
5078
5079
5080 Index int64 `json:"index,omitempty"`
5081
5082 Revision int64 `json:"revision,omitempty"`
5083
5084
5085
5086
5087
5088 ForceSendFields []string `json:"-"`
5089
5090
5091
5092
5093 NullFields []string `json:"-"`
5094 }
5095
5096 func (s *GoogleCloudDocumentaiV1beta2DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
5097 type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
5098 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5099 }
5100
5101
5102
5103 type GoogleCloudDocumentaiV1beta2DocumentRevision struct {
5104
5105
5106 Agent string `json:"agent,omitempty"`
5107
5108
5109 CreateTime string `json:"createTime,omitempty"`
5110
5111 HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"`
5112
5113
5114 Id string `json:"id,omitempty"`
5115
5116
5117
5118 Parent []int64 `json:"parent,omitempty"`
5119
5120
5121
5122 ParentIds []string `json:"parentIds,omitempty"`
5123
5124
5125 Processor string `json:"processor,omitempty"`
5126
5127
5128
5129
5130
5131 ForceSendFields []string `json:"-"`
5132
5133
5134
5135
5136 NullFields []string `json:"-"`
5137 }
5138
5139 func (s *GoogleCloudDocumentaiV1beta2DocumentRevision) MarshalJSON() ([]byte, error) {
5140 type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevision
5141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5142 }
5143
5144
5145
5146 type GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview struct {
5147
5148 State string `json:"state,omitempty"`
5149
5150
5151 StateMessage string `json:"stateMessage,omitempty"`
5152
5153
5154
5155
5156
5157 ForceSendFields []string `json:"-"`
5158
5159
5160
5161
5162 NullFields []string `json:"-"`
5163 }
5164
5165 func (s *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
5166 type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview
5167 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5168 }
5169
5170
5171
5172
5173 type GoogleCloudDocumentaiV1beta2DocumentShardInfo struct {
5174
5175 ShardCount int64 `json:"shardCount,omitempty,string"`
5176
5177 ShardIndex int64 `json:"shardIndex,omitempty,string"`
5178
5179
5180 TextOffset int64 `json:"textOffset,omitempty,string"`
5181
5182
5183
5184
5185
5186 ForceSendFields []string `json:"-"`
5187
5188
5189
5190
5191 NullFields []string `json:"-"`
5192 }
5193
5194 func (s *GoogleCloudDocumentaiV1beta2DocumentShardInfo) MarshalJSON() ([]byte, error) {
5195 type NoMethod GoogleCloudDocumentaiV1beta2DocumentShardInfo
5196 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5197 }
5198
5199
5200
5201 type GoogleCloudDocumentaiV1beta2DocumentStyle struct {
5202
5203 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
5204
5205 Color *GoogleTypeColor `json:"color,omitempty"`
5206
5207
5208 FontFamily string `json:"fontFamily,omitempty"`
5209
5210 FontSize *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize `json:"fontSize,omitempty"`
5211
5212
5213
5214 FontWeight string `json:"fontWeight,omitempty"`
5215
5216 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
5217
5218
5219
5220 TextDecoration string `json:"textDecoration,omitempty"`
5221
5222
5223
5224 TextStyle string `json:"textStyle,omitempty"`
5225
5226
5227
5228
5229
5230 ForceSendFields []string `json:"-"`
5231
5232
5233
5234
5235 NullFields []string `json:"-"`
5236 }
5237
5238 func (s *GoogleCloudDocumentaiV1beta2DocumentStyle) MarshalJSON() ([]byte, error) {
5239 type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyle
5240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5241 }
5242
5243
5244 type GoogleCloudDocumentaiV1beta2DocumentStyleFontSize struct {
5245
5246 Size float64 `json:"size,omitempty"`
5247
5248
5249 Unit string `json:"unit,omitempty"`
5250
5251
5252
5253
5254
5255 ForceSendFields []string `json:"-"`
5256
5257
5258
5259
5260 NullFields []string `json:"-"`
5261 }
5262
5263 func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
5264 type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
5265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5266 }
5267
5268 func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
5269 type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
5270 var s1 struct {
5271 Size gensupport.JSONFloat64 `json:"size"`
5272 *NoMethod
5273 }
5274 s1.NoMethod = (*NoMethod)(s)
5275 if err := json.Unmarshal(data, &s1); err != nil {
5276 return err
5277 }
5278 s.Size = float64(s1.Size)
5279 return nil
5280 }
5281
5282
5283
5284 type GoogleCloudDocumentaiV1beta2DocumentTextAnchor struct {
5285
5286
5287 Content string `json:"content,omitempty"`
5288
5289 TextSegments []*GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
5290
5291
5292
5293
5294
5295 ForceSendFields []string `json:"-"`
5296
5297
5298
5299
5300 NullFields []string `json:"-"`
5301 }
5302
5303 func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchor) MarshalJSON() ([]byte, error) {
5304 type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchor
5305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5306 }
5307
5308
5309
5310
5311
5312 type GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment struct {
5313
5314 EndIndex int64 `json:"endIndex,omitempty,string"`
5315
5316 StartIndex int64 `json:"startIndex,omitempty,string"`
5317
5318
5319
5320
5321
5322 ForceSendFields []string `json:"-"`
5323
5324
5325
5326
5327 NullFields []string `json:"-"`
5328 }
5329
5330 func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
5331 type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
5332 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5333 }
5334
5335
5336
5337 type GoogleCloudDocumentaiV1beta2DocumentTextChange struct {
5338
5339
5340 ChangedText string `json:"changedText,omitempty"`
5341
5342 Provenance []*GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
5343
5344
5345
5346
5347 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
5348
5349
5350
5351
5352
5353 ForceSendFields []string `json:"-"`
5354
5355
5356
5357
5358 NullFields []string `json:"-"`
5359 }
5360
5361 func (s *GoogleCloudDocumentaiV1beta2DocumentTextChange) MarshalJSON() ([]byte, error) {
5362 type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextChange
5363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5364 }
5365
5366
5367
5368 type GoogleCloudDocumentaiV1beta2GcsDestination struct {
5369 Uri string `json:"uri,omitempty"`
5370
5371
5372
5373
5374
5375 ForceSendFields []string `json:"-"`
5376
5377
5378
5379
5380 NullFields []string `json:"-"`
5381 }
5382
5383 func (s *GoogleCloudDocumentaiV1beta2GcsDestination) MarshalJSON() ([]byte, error) {
5384 type NoMethod GoogleCloudDocumentaiV1beta2GcsDestination
5385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5386 }
5387
5388
5389
5390 type GoogleCloudDocumentaiV1beta2GcsSource struct {
5391 Uri string `json:"uri,omitempty"`
5392
5393
5394
5395
5396
5397 ForceSendFields []string `json:"-"`
5398
5399
5400
5401
5402 NullFields []string `json:"-"`
5403 }
5404
5405 func (s *GoogleCloudDocumentaiV1beta2GcsSource) MarshalJSON() ([]byte, error) {
5406 type NoMethod GoogleCloudDocumentaiV1beta2GcsSource
5407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5408 }
5409
5410
5411
5412 type GoogleCloudDocumentaiV1beta2InputConfig struct {
5413
5414
5415
5416
5417 Contents string `json:"contents,omitempty"`
5418
5419
5420 GcsSource *GoogleCloudDocumentaiV1beta2GcsSource `json:"gcsSource,omitempty"`
5421
5422
5423
5424
5425 MimeType string `json:"mimeType,omitempty"`
5426
5427
5428
5429
5430
5431 ForceSendFields []string `json:"-"`
5432
5433
5434
5435
5436 NullFields []string `json:"-"`
5437 }
5438
5439 func (s *GoogleCloudDocumentaiV1beta2InputConfig) MarshalJSON() ([]byte, error) {
5440 type NoMethod GoogleCloudDocumentaiV1beta2InputConfig
5441 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5442 }
5443
5444
5445
5446
5447 type GoogleCloudDocumentaiV1beta2NormalizedVertex struct {
5448
5449 X float64 `json:"x,omitempty"`
5450
5451 Y float64 `json:"y,omitempty"`
5452
5453
5454
5455
5456
5457 ForceSendFields []string `json:"-"`
5458
5459
5460
5461
5462 NullFields []string `json:"-"`
5463 }
5464
5465 func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) MarshalJSON() ([]byte, error) {
5466 type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
5467 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5468 }
5469
5470 func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) UnmarshalJSON(data []byte) error {
5471 type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
5472 var s1 struct {
5473 X gensupport.JSONFloat64 `json:"x"`
5474 Y gensupport.JSONFloat64 `json:"y"`
5475 *NoMethod
5476 }
5477 s1.NoMethod = (*NoMethod)(s)
5478 if err := json.Unmarshal(data, &s1); err != nil {
5479 return err
5480 }
5481 s.X = float64(s1.X)
5482 s.Y = float64(s1.Y)
5483 return nil
5484 }
5485
5486
5487
5488 type GoogleCloudDocumentaiV1beta2OperationMetadata struct {
5489
5490 CreateTime string `json:"createTime,omitempty"`
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 State string `json:"state,omitempty"`
5503
5504
5505 StateMessage string `json:"stateMessage,omitempty"`
5506
5507 UpdateTime string `json:"updateTime,omitempty"`
5508
5509
5510
5511
5512
5513 ForceSendFields []string `json:"-"`
5514
5515
5516
5517
5518 NullFields []string `json:"-"`
5519 }
5520
5521 func (s *GoogleCloudDocumentaiV1beta2OperationMetadata) MarshalJSON() ([]byte, error) {
5522 type NoMethod GoogleCloudDocumentaiV1beta2OperationMetadata
5523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5524 }
5525
5526
5527
5528 type GoogleCloudDocumentaiV1beta2OutputConfig struct {
5529
5530 GcsDestination *GoogleCloudDocumentaiV1beta2GcsDestination `json:"gcsDestination,omitempty"`
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 PagesPerShard int64 `json:"pagesPerShard,omitempty"`
5541
5542
5543
5544
5545
5546 ForceSendFields []string `json:"-"`
5547
5548
5549
5550
5551 NullFields []string `json:"-"`
5552 }
5553
5554 func (s *GoogleCloudDocumentaiV1beta2OutputConfig) MarshalJSON() ([]byte, error) {
5555 type NoMethod GoogleCloudDocumentaiV1beta2OutputConfig
5556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5557 }
5558
5559
5560
5561 type GoogleCloudDocumentaiV1beta2ProcessDocumentResponse struct {
5562
5563
5564 InputConfig *GoogleCloudDocumentaiV1beta2InputConfig `json:"inputConfig,omitempty"`
5565
5566
5567 OutputConfig *GoogleCloudDocumentaiV1beta2OutputConfig `json:"outputConfig,omitempty"`
5568
5569
5570
5571
5572
5573 ForceSendFields []string `json:"-"`
5574
5575
5576
5577
5578 NullFields []string `json:"-"`
5579 }
5580
5581 func (s *GoogleCloudDocumentaiV1beta2ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
5582 type NoMethod GoogleCloudDocumentaiV1beta2ProcessDocumentResponse
5583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5584 }
5585
5586
5587
5588
5589 type GoogleCloudDocumentaiV1beta2Vertex struct {
5590
5591 X int64 `json:"x,omitempty"`
5592
5593 Y int64 `json:"y,omitempty"`
5594
5595
5596
5597
5598
5599 ForceSendFields []string `json:"-"`
5600
5601
5602
5603
5604 NullFields []string `json:"-"`
5605 }
5606
5607 func (s *GoogleCloudDocumentaiV1beta2Vertex) MarshalJSON() ([]byte, error) {
5608 type NoMethod GoogleCloudDocumentaiV1beta2Vertex
5609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5610 }
5611
5612
5613
5614 type GoogleCloudDocumentaiV1beta3Barcode struct {
5615
5616
5617
5618
5619
5620
5621 Format string `json:"format,omitempty"`
5622
5623
5624 RawValue string `json:"rawValue,omitempty"`
5625
5626
5627
5628
5629
5630
5631 ValueFormat string `json:"valueFormat,omitempty"`
5632
5633
5634
5635
5636
5637 ForceSendFields []string `json:"-"`
5638
5639
5640
5641
5642 NullFields []string `json:"-"`
5643 }
5644
5645 func (s *GoogleCloudDocumentaiV1beta3Barcode) MarshalJSON() ([]byte, error) {
5646 type NoMethod GoogleCloudDocumentaiV1beta3Barcode
5647 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5648 }
5649
5650
5651
5652 type GoogleCloudDocumentaiV1beta3BatchDatasetDocuments struct {
5653
5654
5655 Filter string `json:"filter,omitempty"`
5656
5657 IndividualDocumentIds *GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds `json:"individualDocumentIds,omitempty"`
5658
5659
5660
5661
5662
5663 ForceSendFields []string `json:"-"`
5664
5665
5666
5667
5668 NullFields []string `json:"-"`
5669 }
5670
5671 func (s *GoogleCloudDocumentaiV1beta3BatchDatasetDocuments) MarshalJSON() ([]byte, error) {
5672 type NoMethod GoogleCloudDocumentaiV1beta3BatchDatasetDocuments
5673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5674 }
5675
5676
5677
5678 type GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds struct {
5679
5680
5681 DocumentIds []*GoogleCloudDocumentaiV1beta3DocumentId `json:"documentIds,omitempty"`
5682
5683
5684
5685
5686
5687 ForceSendFields []string `json:"-"`
5688
5689
5690
5691
5692 NullFields []string `json:"-"`
5693 }
5694
5695 func (s *GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds) MarshalJSON() ([]byte, error) {
5696 type NoMethod GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds
5697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5698 }
5699
5700 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata struct {
5701
5702 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
5703
5704
5705 ErrorDocumentCount int64 `json:"errorDocumentCount,omitempty"`
5706
5707
5708 IndividualBatchDeleteStatuses []*GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus `json:"individualBatchDeleteStatuses,omitempty"`
5709
5710 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
5711
5712
5713
5714
5715
5716 ForceSendFields []string `json:"-"`
5717
5718
5719
5720
5721 NullFields []string `json:"-"`
5722 }
5723
5724 func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) {
5725 type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata
5726 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5727 }
5728
5729
5730
5731 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus struct {
5732
5733 DocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"documentId,omitempty"`
5734
5735 Status *GoogleRpcStatus `json:"status,omitempty"`
5736
5737
5738
5739
5740
5741 ForceSendFields []string `json:"-"`
5742
5743
5744
5745
5746 NullFields []string `json:"-"`
5747 }
5748
5749 func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus) MarshalJSON() ([]byte, error) {
5750 type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
5751 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5752 }
5753
5754 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest struct {
5755
5756
5757
5758
5759 DatasetDocuments *GoogleCloudDocumentaiV1beta3BatchDatasetDocuments `json:"datasetDocuments,omitempty"`
5760
5761
5762
5763
5764
5765 ForceSendFields []string `json:"-"`
5766
5767
5768
5769
5770 NullFields []string `json:"-"`
5771 }
5772
5773 func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest) MarshalJSON() ([]byte, error) {
5774 type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest
5775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5776 }
5777
5778
5779
5780 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse struct {
5781 }
5782
5783
5784
5785 type GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig struct {
5786
5787 GcsDocuments *GoogleCloudDocumentaiV1beta3GcsDocuments `json:"gcsDocuments,omitempty"`
5788
5789
5790 GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"`
5791
5792
5793
5794
5795
5796 ForceSendFields []string `json:"-"`
5797
5798
5799
5800
5801 NullFields []string `json:"-"`
5802 }
5803
5804 func (s *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig) MarshalJSON() ([]byte, error) {
5805 type NoMethod GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig
5806 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5807 }
5808
5809
5810
5811 type GoogleCloudDocumentaiV1beta3BatchProcessMetadata struct {
5812
5813 CreateTime string `json:"createTime,omitempty"`
5814
5815 IndividualProcessStatuses []*GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 State string `json:"state,omitempty"`
5828
5829
5830 StateMessage string `json:"stateMessage,omitempty"`
5831
5832 UpdateTime string `json:"updateTime,omitempty"`
5833
5834
5835
5836
5837
5838 ForceSendFields []string `json:"-"`
5839
5840
5841
5842
5843 NullFields []string `json:"-"`
5844 }
5845
5846 func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadata) MarshalJSON() ([]byte, error) {
5847 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadata
5848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5849 }
5850
5851
5852
5853 type GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus struct {
5854
5855
5856
5857
5858 HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
5859
5860 HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
5861
5862
5863 InputGcsSource string `json:"inputGcsSource,omitempty"`
5864
5865
5866
5867 OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
5868
5869 Status *GoogleRpcStatus `json:"status,omitempty"`
5870
5871
5872
5873
5874
5875 ForceSendFields []string `json:"-"`
5876
5877
5878
5879
5880 NullFields []string `json:"-"`
5881 }
5882
5883 func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
5884 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
5885 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5886 }
5887
5888
5889
5890 type GoogleCloudDocumentaiV1beta3BatchProcessRequest struct {
5891
5892
5893 DocumentOutputConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfig `json:"documentOutputConfig,omitempty"`
5894
5895
5896 InputConfigs []*GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig `json:"inputConfigs,omitempty"`
5897
5898 InputDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"inputDocuments,omitempty"`
5899
5900
5901
5902
5903
5904 Labels map[string]string `json:"labels,omitempty"`
5905
5906 OutputConfig *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig `json:"outputConfig,omitempty"`
5907
5908 ProcessOptions *GoogleCloudDocumentaiV1beta3ProcessOptions `json:"processOptions,omitempty"`
5909
5910
5911 SkipHumanReview bool `json:"skipHumanReview,omitempty"`
5912
5913
5914
5915
5916
5917 ForceSendFields []string `json:"-"`
5918
5919
5920
5921
5922 NullFields []string `json:"-"`
5923 }
5924
5925 func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequest) MarshalJSON() ([]byte, error) {
5926 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequest
5927 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5928 }
5929
5930
5931
5932 type GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig struct {
5933
5934 GcsSource string `json:"gcsSource,omitempty"`
5935
5936
5937
5938
5939
5940 MimeType string `json:"mimeType,omitempty"`
5941
5942
5943
5944
5945
5946 ForceSendFields []string `json:"-"`
5947
5948
5949
5950
5951 NullFields []string `json:"-"`
5952 }
5953
5954 func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig) MarshalJSON() ([]byte, error) {
5955 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig
5956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5957 }
5958
5959
5960
5961 type GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig struct {
5962
5963
5964 GcsDestination string `json:"gcsDestination,omitempty"`
5965
5966
5967
5968
5969
5970 ForceSendFields []string `json:"-"`
5971
5972
5973
5974
5975 NullFields []string `json:"-"`
5976 }
5977
5978 func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig) MarshalJSON() ([]byte, error) {
5979 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig
5980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5981 }
5982
5983
5984
5985 type GoogleCloudDocumentaiV1beta3BatchProcessResponse struct {
5986 }
5987
5988
5989
5990 type GoogleCloudDocumentaiV1beta3BoundingPoly struct {
5991
5992 NormalizedVertices []*GoogleCloudDocumentaiV1beta3NormalizedVertex `json:"normalizedVertices,omitempty"`
5993
5994 Vertices []*GoogleCloudDocumentaiV1beta3Vertex `json:"vertices,omitempty"`
5995
5996
5997
5998
5999
6000 ForceSendFields []string `json:"-"`
6001
6002
6003
6004
6005 NullFields []string `json:"-"`
6006 }
6007
6008 func (s *GoogleCloudDocumentaiV1beta3BoundingPoly) MarshalJSON() ([]byte, error) {
6009 type NoMethod GoogleCloudDocumentaiV1beta3BoundingPoly
6010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6011 }
6012
6013
6014
6015 type GoogleCloudDocumentaiV1beta3CommonOperationMetadata struct {
6016
6017 CreateTime string `json:"createTime,omitempty"`
6018
6019 Resource string `json:"resource,omitempty"`
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 State string `json:"state,omitempty"`
6030
6031
6032 StateMessage string `json:"stateMessage,omitempty"`
6033
6034 UpdateTime string `json:"updateTime,omitempty"`
6035
6036
6037
6038
6039
6040 ForceSendFields []string `json:"-"`
6041
6042
6043
6044
6045 NullFields []string `json:"-"`
6046 }
6047
6048 func (s *GoogleCloudDocumentaiV1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
6049 type NoMethod GoogleCloudDocumentaiV1beta3CommonOperationMetadata
6050 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6051 }
6052
6053
6054
6055 type GoogleCloudDocumentaiV1beta3Dataset struct {
6056
6057
6058 DocumentWarehouseConfig *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig `json:"documentWarehouseConfig,omitempty"`
6059
6060
6061
6062 GcsManagedConfig *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig `json:"gcsManagedConfig,omitempty"`
6063
6064
6065 Name string `json:"name,omitempty"`
6066
6067
6068
6069 SpannerIndexingConfig *GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig `json:"spannerIndexingConfig,omitempty"`
6070
6071
6072
6073
6074
6075
6076
6077 State string `json:"state,omitempty"`
6078
6079
6080
6081 UnmanagedDatasetConfig *GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig `json:"unmanagedDatasetConfig,omitempty"`
6082
6083
6084
6085
6086
6087 ForceSendFields []string `json:"-"`
6088
6089
6090
6091
6092 NullFields []string `json:"-"`
6093 }
6094
6095 func (s *GoogleCloudDocumentaiV1beta3Dataset) MarshalJSON() ([]byte, error) {
6096 type NoMethod GoogleCloudDocumentaiV1beta3Dataset
6097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6098 }
6099
6100
6101
6102 type GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig struct {
6103
6104
6105 Collection string `json:"collection,omitempty"`
6106
6107
6108 Schema string `json:"schema,omitempty"`
6109
6110
6111
6112
6113
6114 ForceSendFields []string `json:"-"`
6115
6116
6117
6118
6119 NullFields []string `json:"-"`
6120 }
6121
6122 func (s *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig) MarshalJSON() ([]byte, error) {
6123 type NoMethod GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
6124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6125 }
6126
6127
6128
6129 type GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig struct {
6130
6131
6132 GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"`
6133
6134
6135
6136
6137
6138 ForceSendFields []string `json:"-"`
6139
6140
6141
6142
6143 NullFields []string `json:"-"`
6144 }
6145
6146 func (s *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig) MarshalJSON() ([]byte, error) {
6147 type NoMethod GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig
6148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6149 }
6150
6151
6152 type GoogleCloudDocumentaiV1beta3DatasetSchema struct {
6153
6154 DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
6155
6156
6157
6158 Name string `json:"name,omitempty"`
6159
6160
6161 googleapi.ServerResponse `json:"-"`
6162
6163
6164
6165
6166
6167 ForceSendFields []string `json:"-"`
6168
6169
6170
6171
6172 NullFields []string `json:"-"`
6173 }
6174
6175 func (s *GoogleCloudDocumentaiV1beta3DatasetSchema) MarshalJSON() ([]byte, error) {
6176 type NoMethod GoogleCloudDocumentaiV1beta3DatasetSchema
6177 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6178 }
6179
6180
6181
6182 type GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig struct {
6183 }
6184
6185
6186
6187 type GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig struct {
6188 }
6189
6190
6191
6192 type GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata struct {
6193
6194 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
6195
6196
6197
6198
6199
6200 ForceSendFields []string `json:"-"`
6201
6202
6203
6204
6205 NullFields []string `json:"-"`
6206 }
6207
6208 func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
6209 type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
6210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6211 }
6212
6213
6214
6215 type GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata struct {
6216
6217 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
6218
6219
6220
6221
6222
6223 ForceSendFields []string `json:"-"`
6224
6225
6226
6227
6228 NullFields []string `json:"-"`
6229 }
6230
6231 func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
6232 type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata
6233 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6234 }
6235
6236
6237
6238 type GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata struct {
6239
6240 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
6241
6242
6243
6244
6245
6246 ForceSendFields []string `json:"-"`
6247
6248
6249
6250
6251 NullFields []string `json:"-"`
6252 }
6253
6254 func (s *GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
6255 type NoMethod GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata
6256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6257 }
6258
6259
6260
6261 type GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest struct {
6262 }
6263
6264
6265
6266 type GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse struct {
6267 }
6268
6269
6270
6271 type GoogleCloudDocumentaiV1beta3DisableProcessorMetadata struct {
6272
6273 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
6274
6275
6276
6277
6278
6279 ForceSendFields []string `json:"-"`
6280
6281
6282
6283
6284 NullFields []string `json:"-"`
6285 }
6286
6287 func (s *GoogleCloudDocumentaiV1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
6288 type NoMethod GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
6289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6290 }
6291
6292
6293
6294 type GoogleCloudDocumentaiV1beta3DisableProcessorRequest struct {
6295 }
6296
6297
6298
6299
6300 type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct {
6301 }
6302
6303
6304
6305
6306
6307 type GoogleCloudDocumentaiV1beta3Document struct {
6308
6309 ChunkedDocument *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument `json:"chunkedDocument,omitempty"`
6310
6311
6312
6313 Content string `json:"content,omitempty"`
6314
6315 DocumentLayout *GoogleCloudDocumentaiV1beta3DocumentDocumentLayout `json:"documentLayout,omitempty"`
6316
6317
6318 Entities []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"entities,omitempty"`
6319
6320 EntityRelations []*GoogleCloudDocumentaiV1beta3DocumentEntityRelation `json:"entityRelations,omitempty"`
6321
6322 Error *GoogleRpcStatus `json:"error,omitempty"`
6323
6324
6325 MimeType string `json:"mimeType,omitempty"`
6326
6327 Pages []*GoogleCloudDocumentaiV1beta3DocumentPage `json:"pages,omitempty"`
6328
6329 Revisions []*GoogleCloudDocumentaiV1beta3DocumentRevision `json:"revisions,omitempty"`
6330
6331
6332
6333 ShardInfo *GoogleCloudDocumentaiV1beta3DocumentShardInfo `json:"shardInfo,omitempty"`
6334
6335 Text string `json:"text,omitempty"`
6336
6337
6338
6339 TextChanges []*GoogleCloudDocumentaiV1beta3DocumentTextChange `json:"textChanges,omitempty"`
6340
6341 TextStyles []*GoogleCloudDocumentaiV1beta3DocumentStyle `json:"textStyles,omitempty"`
6342
6343
6344
6345
6346 Uri string `json:"uri,omitempty"`
6347
6348
6349
6350
6351
6352 ForceSendFields []string `json:"-"`
6353
6354
6355
6356
6357 NullFields []string `json:"-"`
6358 }
6359
6360 func (s *GoogleCloudDocumentaiV1beta3Document) MarshalJSON() ([]byte, error) {
6361 type NoMethod GoogleCloudDocumentaiV1beta3Document
6362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6363 }
6364
6365
6366
6367 type GoogleCloudDocumentaiV1beta3DocumentChunkedDocument struct {
6368
6369 Chunks []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk `json:"chunks,omitempty"`
6370
6371
6372
6373
6374
6375 ForceSendFields []string `json:"-"`
6376
6377
6378
6379
6380 NullFields []string `json:"-"`
6381 }
6382
6383 func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument) MarshalJSON() ([]byte, error) {
6384 type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocument
6385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6386 }
6387
6388
6389
6390 type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk struct {
6391
6392 ChunkId string `json:"chunkId,omitempty"`
6393
6394 Content string `json:"content,omitempty"`
6395
6396 PageFooters []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter `json:"pageFooters,omitempty"`
6397
6398 PageHeaders []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader `json:"pageHeaders,omitempty"`
6399
6400 PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"`
6401
6402
6403 SourceBlockIds []string `json:"sourceBlockIds,omitempty"`
6404
6405
6406
6407
6408
6409 ForceSendFields []string `json:"-"`
6410
6411
6412
6413
6414 NullFields []string `json:"-"`
6415 }
6416
6417 func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk) MarshalJSON() ([]byte, error) {
6418 type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
6419 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6420 }
6421
6422
6423
6424 type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter struct {
6425
6426 PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"`
6427
6428 Text string `json:"text,omitempty"`
6429
6430
6431
6432
6433
6434 ForceSendFields []string `json:"-"`
6435
6436
6437
6438
6439 NullFields []string `json:"-"`
6440 }
6441
6442 func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter) MarshalJSON() ([]byte, error) {
6443 type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter
6444 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6445 }
6446
6447
6448
6449 type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader struct {
6450
6451 PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"`
6452
6453 Text string `json:"text,omitempty"`
6454
6455
6456
6457
6458
6459 ForceSendFields []string `json:"-"`
6460
6461
6462
6463
6464 NullFields []string `json:"-"`
6465 }
6466
6467 func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader) MarshalJSON() ([]byte, error) {
6468 type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader
6469 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6470 }
6471
6472
6473
6474 type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan struct {
6475
6476 PageEnd int64 `json:"pageEnd,omitempty"`
6477
6478 PageStart int64 `json:"pageStart,omitempty"`
6479
6480
6481
6482
6483
6484 ForceSendFields []string `json:"-"`
6485
6486
6487
6488
6489 NullFields []string `json:"-"`
6490 }
6491
6492 func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan) MarshalJSON() ([]byte, error) {
6493 type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan
6494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6495 }
6496
6497
6498
6499
6500 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayout struct {
6501
6502 Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
6503
6504
6505
6506
6507
6508 ForceSendFields []string `json:"-"`
6509
6510
6511
6512
6513 NullFields []string `json:"-"`
6514 }
6515
6516 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayout) MarshalJSON() ([]byte, error) {
6517 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayout
6518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6519 }
6520
6521
6522
6523
6524 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock struct {
6525
6526 BlockId string `json:"blockId,omitempty"`
6527
6528 ListBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock `json:"listBlock,omitempty"`
6529
6530 PageSpan *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan `json:"pageSpan,omitempty"`
6531
6532 TableBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock `json:"tableBlock,omitempty"`
6533
6534 TextBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock `json:"textBlock,omitempty"`
6535
6536
6537
6538
6539
6540 ForceSendFields []string `json:"-"`
6541
6542
6543
6544
6545 NullFields []string `json:"-"`
6546 }
6547
6548 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock) MarshalJSON() ([]byte, error) {
6549 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock
6550 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6551 }
6552
6553
6554
6555 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock struct {
6556
6557 ListEntries []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry `json:"listEntries,omitempty"`
6558
6559
6560 Type string `json:"type,omitempty"`
6561
6562
6563
6564
6565
6566 ForceSendFields []string `json:"-"`
6567
6568
6569
6570
6571 NullFields []string `json:"-"`
6572 }
6573
6574 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock) MarshalJSON() ([]byte, error) {
6575 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
6576 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6577 }
6578
6579
6580
6581 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry struct {
6582
6583
6584 Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
6585
6586
6587
6588
6589
6590 ForceSendFields []string `json:"-"`
6591
6592
6593
6594
6595 NullFields []string `json:"-"`
6596 }
6597
6598 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry) MarshalJSON() ([]byte, error) {
6599 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
6600 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6601 }
6602
6603
6604
6605 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan struct {
6606
6607 PageEnd int64 `json:"pageEnd,omitempty"`
6608
6609 PageStart int64 `json:"pageStart,omitempty"`
6610
6611
6612
6613
6614
6615 ForceSendFields []string `json:"-"`
6616
6617
6618
6619
6620 NullFields []string `json:"-"`
6621 }
6622
6623 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan) MarshalJSON() ([]byte, error) {
6624 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
6625 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6626 }
6627
6628
6629
6630 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock struct {
6631
6632 BodyRows []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"bodyRows,omitempty"`
6633
6634 Caption string `json:"caption,omitempty"`
6635
6636 HeaderRows []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"headerRows,omitempty"`
6637
6638
6639
6640
6641
6642 ForceSendFields []string `json:"-"`
6643
6644
6645
6646
6647 NullFields []string `json:"-"`
6648 }
6649
6650 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock) MarshalJSON() ([]byte, error) {
6651 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
6652 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6653 }
6654
6655
6656
6657 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell struct {
6658
6659
6660 Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
6661
6662 ColSpan int64 `json:"colSpan,omitempty"`
6663
6664 RowSpan int64 `json:"rowSpan,omitempty"`
6665
6666
6667
6668
6669
6670 ForceSendFields []string `json:"-"`
6671
6672
6673
6674
6675 NullFields []string `json:"-"`
6676 }
6677
6678 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell) MarshalJSON() ([]byte, error) {
6679 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
6680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6681 }
6682
6683
6684
6685 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow struct {
6686
6687 Cells []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell `json:"cells,omitempty"`
6688
6689
6690
6691
6692
6693 ForceSendFields []string `json:"-"`
6694
6695
6696
6697
6698 NullFields []string `json:"-"`
6699 }
6700
6701 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow) MarshalJSON() ([]byte, error) {
6702 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
6703 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6704 }
6705
6706
6707
6708 type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock struct {
6709
6710
6711 Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
6712
6713 Text string `json:"text,omitempty"`
6714
6715
6716
6717 Type string `json:"type,omitempty"`
6718
6719
6720
6721
6722
6723 ForceSendFields []string `json:"-"`
6724
6725
6726
6727
6728 NullFields []string `json:"-"`
6729 }
6730
6731 func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock) MarshalJSON() ([]byte, error) {
6732 type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
6733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6734 }
6735
6736
6737
6738
6739 type GoogleCloudDocumentaiV1beta3DocumentEntity struct {
6740
6741 Confidence float64 `json:"confidence,omitempty"`
6742
6743
6744 Id string `json:"id,omitempty"`
6745
6746 MentionId string `json:"mentionId,omitempty"`
6747
6748
6749 MentionText string `json:"mentionText,omitempty"`
6750
6751
6752
6753
6754 NormalizedValue *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
6755
6756
6757 PageAnchor *GoogleCloudDocumentaiV1beta3DocumentPageAnchor `json:"pageAnchor,omitempty"`
6758
6759
6760 Properties []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"properties,omitempty"`
6761
6762 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6763
6764
6765 Redacted bool `json:"redacted,omitempty"`
6766
6767
6768 TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
6769
6770 Type string `json:"type,omitempty"`
6771
6772
6773
6774
6775
6776 ForceSendFields []string `json:"-"`
6777
6778
6779
6780
6781 NullFields []string `json:"-"`
6782 }
6783
6784 func (s *GoogleCloudDocumentaiV1beta3DocumentEntity) MarshalJSON() ([]byte, error) {
6785 type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntity
6786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6787 }
6788
6789 func (s *GoogleCloudDocumentaiV1beta3DocumentEntity) UnmarshalJSON(data []byte) error {
6790 type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntity
6791 var s1 struct {
6792 Confidence gensupport.JSONFloat64 `json:"confidence"`
6793 *NoMethod
6794 }
6795 s1.NoMethod = (*NoMethod)(s)
6796 if err := json.Unmarshal(data, &s1); err != nil {
6797 return err
6798 }
6799 s.Confidence = float64(s1.Confidence)
6800 return nil
6801 }
6802
6803
6804
6805 type GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue struct {
6806
6807
6808 AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
6809
6810
6811 BooleanValue bool `json:"booleanValue,omitempty"`
6812
6813
6814 DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
6815
6816
6817 DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
6818
6819 FloatValue float64 `json:"floatValue,omitempty"`
6820
6821 IntegerValue int64 `json:"integerValue,omitempty"`
6822
6823
6824 MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
6825
6826
6827
6828
6829
6830
6831
6832
6833 Text string `json:"text,omitempty"`
6834
6835
6836
6837
6838
6839 ForceSendFields []string `json:"-"`
6840
6841
6842
6843
6844 NullFields []string `json:"-"`
6845 }
6846
6847 func (s *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
6848 type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
6849 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6850 }
6851
6852 func (s *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
6853 type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
6854 var s1 struct {
6855 FloatValue gensupport.JSONFloat64 `json:"floatValue"`
6856 *NoMethod
6857 }
6858 s1.NoMethod = (*NoMethod)(s)
6859 if err := json.Unmarshal(data, &s1); err != nil {
6860 return err
6861 }
6862 s.FloatValue = float64(s1.FloatValue)
6863 return nil
6864 }
6865
6866
6867
6868 type GoogleCloudDocumentaiV1beta3DocumentEntityRelation struct {
6869
6870 ObjectId string `json:"objectId,omitempty"`
6871
6872 Relation string `json:"relation,omitempty"`
6873
6874 SubjectId string `json:"subjectId,omitempty"`
6875
6876
6877
6878
6879
6880 ForceSendFields []string `json:"-"`
6881
6882
6883
6884
6885 NullFields []string `json:"-"`
6886 }
6887
6888 func (s *GoogleCloudDocumentaiV1beta3DocumentEntityRelation) MarshalJSON() ([]byte, error) {
6889 type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityRelation
6890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6891 }
6892
6893
6894 type GoogleCloudDocumentaiV1beta3DocumentId struct {
6895
6896 GcsManagedDocId *GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"`
6897
6898 RevisionRef *GoogleCloudDocumentaiV1beta3RevisionRef `json:"revisionRef,omitempty"`
6899
6900 UnmanagedDocId *GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId `json:"unmanagedDocId,omitempty"`
6901
6902
6903
6904
6905
6906 ForceSendFields []string `json:"-"`
6907
6908
6909
6910
6911 NullFields []string `json:"-"`
6912 }
6913
6914 func (s *GoogleCloudDocumentaiV1beta3DocumentId) MarshalJSON() ([]byte, error) {
6915 type NoMethod GoogleCloudDocumentaiV1beta3DocumentId
6916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6917 }
6918
6919
6920
6921
6922 type GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId struct {
6923
6924 CwDocId string `json:"cwDocId,omitempty"`
6925
6926 GcsUri string `json:"gcsUri,omitempty"`
6927
6928
6929
6930
6931
6932 ForceSendFields []string `json:"-"`
6933
6934
6935
6936
6937 NullFields []string `json:"-"`
6938 }
6939
6940 func (s *GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) {
6941 type NoMethod GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId
6942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6943 }
6944
6945
6946
6947 type GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId struct {
6948
6949 DocId string `json:"docId,omitempty"`
6950
6951
6952
6953
6954
6955 ForceSendFields []string `json:"-"`
6956
6957
6958
6959
6960 NullFields []string `json:"-"`
6961 }
6962
6963 func (s *GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId) MarshalJSON() ([]byte, error) {
6964 type NoMethod GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId
6965 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6966 }
6967
6968
6969 type GoogleCloudDocumentaiV1beta3DocumentMetadata struct {
6970
6971
6972
6973
6974
6975
6976
6977 DatasetType string `json:"datasetType,omitempty"`
6978
6979 DisplayName string `json:"displayName,omitempty"`
6980
6981 DocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"documentId,omitempty"`
6982
6983
6984
6985
6986
6987
6988
6989
6990 LabelingState string `json:"labelingState,omitempty"`
6991
6992 PageCount int64 `json:"pageCount,omitempty"`
6993
6994
6995
6996
6997
6998 ForceSendFields []string `json:"-"`
6999
7000
7001
7002
7003 NullFields []string `json:"-"`
7004 }
7005
7006 func (s *GoogleCloudDocumentaiV1beta3DocumentMetadata) MarshalJSON() ([]byte, error) {
7007 type NoMethod GoogleCloudDocumentaiV1beta3DocumentMetadata
7008 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7009 }
7010
7011
7012
7013 type GoogleCloudDocumentaiV1beta3DocumentOutputConfig struct {
7014
7015 GcsOutputConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig `json:"gcsOutputConfig,omitempty"`
7016
7017
7018
7019
7020
7021 ForceSendFields []string `json:"-"`
7022
7023
7024
7025
7026 NullFields []string `json:"-"`
7027 }
7028
7029 func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfig) MarshalJSON() ([]byte, error) {
7030 type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfig
7031 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7032 }
7033
7034
7035
7036 type GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig struct {
7037
7038
7039
7040 FieldMask string `json:"fieldMask,omitempty"`
7041
7042 GcsUri string `json:"gcsUri,omitempty"`
7043
7044 ShardingConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig `json:"shardingConfig,omitempty"`
7045
7046
7047
7048
7049
7050 ForceSendFields []string `json:"-"`
7051
7052
7053
7054
7055 NullFields []string `json:"-"`
7056 }
7057
7058 func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig) MarshalJSON() ([]byte, error) {
7059 type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig
7060 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7061 }
7062
7063
7064
7065 type GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig struct {
7066
7067 PagesOverlap int64 `json:"pagesOverlap,omitempty"`
7068
7069 PagesPerShard int64 `json:"pagesPerShard,omitempty"`
7070
7071
7072
7073
7074
7075 ForceSendFields []string `json:"-"`
7076
7077
7078
7079
7080 NullFields []string `json:"-"`
7081 }
7082
7083 func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig) MarshalJSON() ([]byte, error) {
7084 type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig
7085 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7086 }
7087
7088
7089 type GoogleCloudDocumentaiV1beta3DocumentPage struct {
7090
7091
7092
7093 Blocks []*GoogleCloudDocumentaiV1beta3DocumentPageBlock `json:"blocks,omitempty"`
7094
7095 DetectedBarcodes []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"`
7096
7097 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7098
7099 Dimension *GoogleCloudDocumentaiV1beta3DocumentPageDimension `json:"dimension,omitempty"`
7100
7101 FormFields []*GoogleCloudDocumentaiV1beta3DocumentPageFormField `json:"formFields,omitempty"`
7102
7103
7104
7105 Image *GoogleCloudDocumentaiV1beta3DocumentPageImage `json:"image,omitempty"`
7106
7107 ImageQualityScores *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"`
7108
7109 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7110
7111
7112 Lines []*GoogleCloudDocumentaiV1beta3DocumentPageLine `json:"lines,omitempty"`
7113
7114
7115 PageNumber int64 `json:"pageNumber,omitempty"`
7116
7117
7118 Paragraphs []*GoogleCloudDocumentaiV1beta3DocumentPageParagraph `json:"paragraphs,omitempty"`
7119
7120 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7121
7122 Symbols []*GoogleCloudDocumentaiV1beta3DocumentPageSymbol `json:"symbols,omitempty"`
7123
7124 Tables []*GoogleCloudDocumentaiV1beta3DocumentPageTable `json:"tables,omitempty"`
7125
7126 Tokens []*GoogleCloudDocumentaiV1beta3DocumentPageToken `json:"tokens,omitempty"`
7127
7128
7129 Transforms []*GoogleCloudDocumentaiV1beta3DocumentPageMatrix `json:"transforms,omitempty"`
7130
7131
7132 VisualElements []*GoogleCloudDocumentaiV1beta3DocumentPageVisualElement `json:"visualElements,omitempty"`
7133
7134
7135
7136
7137
7138 ForceSendFields []string `json:"-"`
7139
7140
7141
7142
7143 NullFields []string `json:"-"`
7144 }
7145
7146 func (s *GoogleCloudDocumentaiV1beta3DocumentPage) MarshalJSON() ([]byte, error) {
7147 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPage
7148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7149 }
7150
7151
7152
7153
7154
7155 type GoogleCloudDocumentaiV1beta3DocumentPageAnchor struct {
7156
7157 PageRefs []*GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
7158
7159
7160
7161
7162
7163 ForceSendFields []string `json:"-"`
7164
7165
7166
7167
7168 NullFields []string `json:"-"`
7169 }
7170
7171 func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchor) MarshalJSON() ([]byte, error) {
7172 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchor
7173 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7174 }
7175
7176
7177
7178 type GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef struct {
7179
7180
7181
7182 BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"`
7183
7184
7185 Confidence float64 `json:"confidence,omitempty"`
7186
7187 LayoutId string `json:"layoutId,omitempty"`
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 LayoutType string `json:"layoutType,omitempty"`
7201
7202
7203
7204
7205 Page int64 `json:"page,omitempty,string"`
7206
7207
7208
7209
7210
7211 ForceSendFields []string `json:"-"`
7212
7213
7214
7215
7216 NullFields []string `json:"-"`
7217 }
7218
7219 func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
7220 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef
7221 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7222 }
7223
7224 func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
7225 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef
7226 var s1 struct {
7227 Confidence gensupport.JSONFloat64 `json:"confidence"`
7228 *NoMethod
7229 }
7230 s1.NoMethod = (*NoMethod)(s)
7231 if err := json.Unmarshal(data, &s1); err != nil {
7232 return err
7233 }
7234 s.Confidence = float64(s1.Confidence)
7235 return nil
7236 }
7237
7238
7239
7240 type GoogleCloudDocumentaiV1beta3DocumentPageBlock struct {
7241
7242 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7243
7244 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7245
7246 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7247
7248
7249
7250
7251
7252 ForceSendFields []string `json:"-"`
7253
7254
7255
7256
7257 NullFields []string `json:"-"`
7258 }
7259
7260 func (s *GoogleCloudDocumentaiV1beta3DocumentPageBlock) MarshalJSON() ([]byte, error) {
7261 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageBlock
7262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7263 }
7264
7265
7266 type GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode struct {
7267
7268 Barcode *GoogleCloudDocumentaiV1beta3Barcode `json:"barcode,omitempty"`
7269
7270 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7271
7272
7273
7274
7275
7276 ForceSendFields []string `json:"-"`
7277
7278
7279
7280
7281 NullFields []string `json:"-"`
7282 }
7283
7284 func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) {
7285 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode
7286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7287 }
7288
7289
7290
7291 type GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage struct {
7292
7293 Confidence float64 `json:"confidence,omitempty"`
7294
7295
7296
7297 LanguageCode string `json:"languageCode,omitempty"`
7298
7299
7300
7301
7302
7303 ForceSendFields []string `json:"-"`
7304
7305
7306
7307
7308 NullFields []string `json:"-"`
7309 }
7310
7311 func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
7312 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
7313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7314 }
7315
7316 func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
7317 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
7318 var s1 struct {
7319 Confidence gensupport.JSONFloat64 `json:"confidence"`
7320 *NoMethod
7321 }
7322 s1.NoMethod = (*NoMethod)(s)
7323 if err := json.Unmarshal(data, &s1); err != nil {
7324 return err
7325 }
7326 s.Confidence = float64(s1.Confidence)
7327 return nil
7328 }
7329
7330
7331 type GoogleCloudDocumentaiV1beta3DocumentPageDimension struct {
7332
7333 Height float64 `json:"height,omitempty"`
7334
7335 Unit string `json:"unit,omitempty"`
7336
7337 Width float64 `json:"width,omitempty"`
7338
7339
7340
7341
7342
7343 ForceSendFields []string `json:"-"`
7344
7345
7346
7347
7348 NullFields []string `json:"-"`
7349 }
7350
7351 func (s *GoogleCloudDocumentaiV1beta3DocumentPageDimension) MarshalJSON() ([]byte, error) {
7352 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDimension
7353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7354 }
7355
7356 func (s *GoogleCloudDocumentaiV1beta3DocumentPageDimension) UnmarshalJSON(data []byte) error {
7357 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDimension
7358 var s1 struct {
7359 Height gensupport.JSONFloat64 `json:"height"`
7360 Width gensupport.JSONFloat64 `json:"width"`
7361 *NoMethod
7362 }
7363 s1.NoMethod = (*NoMethod)(s)
7364 if err := json.Unmarshal(data, &s1); err != nil {
7365 return err
7366 }
7367 s.Height = float64(s1.Height)
7368 s.Width = float64(s1.Width)
7369 return nil
7370 }
7371
7372
7373
7374 type GoogleCloudDocumentaiV1beta3DocumentPageFormField struct {
7375
7376
7377
7378 CorrectedKeyText string `json:"correctedKeyText,omitempty"`
7379
7380
7381
7382 CorrectedValueText string `json:"correctedValueText,omitempty"`
7383
7384
7385 FieldName *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"fieldName,omitempty"`
7386
7387 FieldValue *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"fieldValue,omitempty"`
7388
7389
7390 NameDetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
7391
7392 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7393
7394
7395 ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
7396
7397
7398
7399 ValueType string `json:"valueType,omitempty"`
7400
7401
7402
7403
7404
7405 ForceSendFields []string `json:"-"`
7406
7407
7408
7409
7410 NullFields []string `json:"-"`
7411 }
7412
7413 func (s *GoogleCloudDocumentaiV1beta3DocumentPageFormField) MarshalJSON() ([]byte, error) {
7414 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageFormField
7415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7416 }
7417
7418
7419
7420 type GoogleCloudDocumentaiV1beta3DocumentPageImage struct {
7421
7422 Content string `json:"content,omitempty"`
7423
7424 Height int64 `json:"height,omitempty"`
7425
7426
7427
7428 MimeType string `json:"mimeType,omitempty"`
7429
7430 Width int64 `json:"width,omitempty"`
7431
7432
7433
7434
7435
7436 ForceSendFields []string `json:"-"`
7437
7438
7439
7440
7441 NullFields []string `json:"-"`
7442 }
7443
7444 func (s *GoogleCloudDocumentaiV1beta3DocumentPageImage) MarshalJSON() ([]byte, error) {
7445 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImage
7446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7447 }
7448
7449
7450
7451 type GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores struct {
7452
7453 DetectedDefects []*GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"`
7454
7455
7456 QualityScore float64 `json:"qualityScore,omitempty"`
7457
7458
7459
7460
7461
7462 ForceSendFields []string `json:"-"`
7463
7464
7465
7466
7467 NullFields []string `json:"-"`
7468 }
7469
7470 func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) {
7471 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
7472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7473 }
7474
7475 func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error {
7476 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
7477 var s1 struct {
7478 QualityScore gensupport.JSONFloat64 `json:"qualityScore"`
7479 *NoMethod
7480 }
7481 s1.NoMethod = (*NoMethod)(s)
7482 if err := json.Unmarshal(data, &s1); err != nil {
7483 return err
7484 }
7485 s.QualityScore = float64(s1.QualityScore)
7486 return nil
7487 }
7488
7489
7490
7491 type GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect struct {
7492
7493
7494 Confidence float64 `json:"confidence,omitempty"`
7495
7496
7497
7498
7499
7500 Type string `json:"type,omitempty"`
7501
7502
7503
7504
7505
7506 ForceSendFields []string `json:"-"`
7507
7508
7509
7510
7511 NullFields []string `json:"-"`
7512 }
7513
7514 func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) {
7515 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
7516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7517 }
7518
7519 func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error {
7520 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
7521 var s1 struct {
7522 Confidence gensupport.JSONFloat64 `json:"confidence"`
7523 *NoMethod
7524 }
7525 s1.NoMethod = (*NoMethod)(s)
7526 if err := json.Unmarshal(data, &s1); err != nil {
7527 return err
7528 }
7529 s.Confidence = float64(s1.Confidence)
7530 return nil
7531 }
7532
7533
7534
7535 type GoogleCloudDocumentaiV1beta3DocumentPageLayout struct {
7536
7537 BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"`
7538
7539
7540
7541 Confidence float64 `json:"confidence,omitempty"`
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 Orientation string `json:"orientation,omitempty"`
7554
7555 TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
7556
7557
7558
7559
7560
7561 ForceSendFields []string `json:"-"`
7562
7563
7564
7565
7566 NullFields []string `json:"-"`
7567 }
7568
7569 func (s *GoogleCloudDocumentaiV1beta3DocumentPageLayout) MarshalJSON() ([]byte, error) {
7570 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLayout
7571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7572 }
7573
7574 func (s *GoogleCloudDocumentaiV1beta3DocumentPageLayout) UnmarshalJSON(data []byte) error {
7575 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLayout
7576 var s1 struct {
7577 Confidence gensupport.JSONFloat64 `json:"confidence"`
7578 *NoMethod
7579 }
7580 s1.NoMethod = (*NoMethod)(s)
7581 if err := json.Unmarshal(data, &s1); err != nil {
7582 return err
7583 }
7584 s.Confidence = float64(s1.Confidence)
7585 return nil
7586 }
7587
7588
7589
7590
7591 type GoogleCloudDocumentaiV1beta3DocumentPageLine struct {
7592
7593 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7594
7595 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7596
7597 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7598
7599
7600
7601
7602
7603 ForceSendFields []string `json:"-"`
7604
7605
7606
7607
7608 NullFields []string `json:"-"`
7609 }
7610
7611 func (s *GoogleCloudDocumentaiV1beta3DocumentPageLine) MarshalJSON() ([]byte, error) {
7612 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLine
7613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7614 }
7615
7616
7617
7618
7619 type GoogleCloudDocumentaiV1beta3DocumentPageMatrix struct {
7620
7621 Cols int64 `json:"cols,omitempty"`
7622
7623 Data string `json:"data,omitempty"`
7624
7625 Rows int64 `json:"rows,omitempty"`
7626
7627
7628
7629
7630 Type int64 `json:"type,omitempty"`
7631
7632
7633
7634
7635
7636 ForceSendFields []string `json:"-"`
7637
7638
7639
7640
7641 NullFields []string `json:"-"`
7642 }
7643
7644 func (s *GoogleCloudDocumentaiV1beta3DocumentPageMatrix) MarshalJSON() ([]byte, error) {
7645 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageMatrix
7646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7647 }
7648
7649
7650
7651 type GoogleCloudDocumentaiV1beta3DocumentPageParagraph struct {
7652
7653 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7654
7655 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7656
7657 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7658
7659
7660
7661
7662
7663 ForceSendFields []string `json:"-"`
7664
7665
7666
7667
7668 NullFields []string `json:"-"`
7669 }
7670
7671 func (s *GoogleCloudDocumentaiV1beta3DocumentPageParagraph) MarshalJSON() ([]byte, error) {
7672 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageParagraph
7673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7674 }
7675
7676
7677 type GoogleCloudDocumentaiV1beta3DocumentPageSymbol struct {
7678
7679 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7680
7681 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7682
7683
7684
7685
7686
7687 ForceSendFields []string `json:"-"`
7688
7689
7690
7691
7692 NullFields []string `json:"-"`
7693 }
7694
7695 func (s *GoogleCloudDocumentaiV1beta3DocumentPageSymbol) MarshalJSON() ([]byte, error) {
7696 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageSymbol
7697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7698 }
7699
7700
7701
7702 type GoogleCloudDocumentaiV1beta3DocumentPageTable struct {
7703
7704 BodyRows []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow `json:"bodyRows,omitempty"`
7705
7706 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7707
7708 HeaderRows []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow `json:"headerRows,omitempty"`
7709
7710 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7711
7712 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7713
7714
7715
7716
7717
7718 ForceSendFields []string `json:"-"`
7719
7720
7721
7722
7723 NullFields []string `json:"-"`
7724 }
7725
7726 func (s *GoogleCloudDocumentaiV1beta3DocumentPageTable) MarshalJSON() ([]byte, error) {
7727 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTable
7728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7729 }
7730
7731
7732
7733 type GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell struct {
7734
7735 ColSpan int64 `json:"colSpan,omitempty"`
7736
7737 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7738
7739 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7740
7741 RowSpan int64 `json:"rowSpan,omitempty"`
7742
7743
7744
7745
7746
7747 ForceSendFields []string `json:"-"`
7748
7749
7750
7751
7752 NullFields []string `json:"-"`
7753 }
7754
7755 func (s *GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
7756 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell
7757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7758 }
7759
7760
7761 type GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow struct {
7762
7763 Cells []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell `json:"cells,omitempty"`
7764
7765
7766
7767
7768
7769 ForceSendFields []string `json:"-"`
7770
7771
7772
7773
7774 NullFields []string `json:"-"`
7775 }
7776
7777 func (s *GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
7778 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow
7779 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7780 }
7781
7782
7783 type GoogleCloudDocumentaiV1beta3DocumentPageToken struct {
7784
7785 DetectedBreak *GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
7786
7787 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7788
7789 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7790
7791 Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7792
7793 StyleInfo *GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"`
7794
7795
7796
7797
7798
7799 ForceSendFields []string `json:"-"`
7800
7801
7802
7803
7804 NullFields []string `json:"-"`
7805 }
7806
7807 func (s *GoogleCloudDocumentaiV1beta3DocumentPageToken) MarshalJSON() ([]byte, error) {
7808 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageToken
7809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7810 }
7811
7812
7813
7814 type GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak struct {
7815
7816
7817
7818
7819
7820
7821
7822
7823 Type string `json:"type,omitempty"`
7824
7825
7826
7827
7828
7829 ForceSendFields []string `json:"-"`
7830
7831
7832
7833
7834 NullFields []string `json:"-"`
7835 }
7836
7837 func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
7838 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak
7839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7840 }
7841
7842
7843
7844 type GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo struct {
7845
7846 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
7847
7848
7849 Bold bool `json:"bold,omitempty"`
7850
7851 FontSize int64 `json:"fontSize,omitempty"`
7852
7853 FontType string `json:"fontType,omitempty"`
7854
7855
7856 FontWeight int64 `json:"fontWeight,omitempty"`
7857
7858 Handwritten bool `json:"handwritten,omitempty"`
7859
7860 Italic bool `json:"italic,omitempty"`
7861
7862 LetterSpacing float64 `json:"letterSpacing,omitempty"`
7863
7864
7865 PixelFontSize float64 `json:"pixelFontSize,omitempty"`
7866
7867
7868 Smallcaps bool `json:"smallcaps,omitempty"`
7869
7870
7871 Strikeout bool `json:"strikeout,omitempty"`
7872
7873
7874 Subscript bool `json:"subscript,omitempty"`
7875
7876
7877 Superscript bool `json:"superscript,omitempty"`
7878
7879 TextColor *GoogleTypeColor `json:"textColor,omitempty"`
7880
7881 Underlined bool `json:"underlined,omitempty"`
7882
7883
7884
7885
7886
7887 ForceSendFields []string `json:"-"`
7888
7889
7890
7891
7892 NullFields []string `json:"-"`
7893 }
7894
7895 func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) {
7896 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo
7897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7898 }
7899
7900 func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error {
7901 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo
7902 var s1 struct {
7903 LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"`
7904 PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"`
7905 *NoMethod
7906 }
7907 s1.NoMethod = (*NoMethod)(s)
7908 if err := json.Unmarshal(data, &s1); err != nil {
7909 return err
7910 }
7911 s.LetterSpacing = float64(s1.LetterSpacing)
7912 s.PixelFontSize = float64(s1.PixelFontSize)
7913 return nil
7914 }
7915
7916
7917
7918 type GoogleCloudDocumentaiV1beta3DocumentPageVisualElement struct {
7919
7920 DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7921
7922 Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7923
7924 Type string `json:"type,omitempty"`
7925
7926
7927
7928
7929
7930 ForceSendFields []string `json:"-"`
7931
7932
7933
7934
7935 NullFields []string `json:"-"`
7936 }
7937
7938 func (s *GoogleCloudDocumentaiV1beta3DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
7939 type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageVisualElement
7940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7941 }
7942
7943
7944
7945 type GoogleCloudDocumentaiV1beta3DocumentProvenance struct {
7946
7947
7948 Id int64 `json:"id,omitempty"`
7949
7950 Parents []*GoogleCloudDocumentaiV1beta3DocumentProvenanceParent `json:"parents,omitempty"`
7951
7952 Revision int64 `json:"revision,omitempty"`
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 Type string `json:"type,omitempty"`
7971
7972
7973
7974
7975
7976 ForceSendFields []string `json:"-"`
7977
7978
7979
7980
7981 NullFields []string `json:"-"`
7982 }
7983
7984 func (s *GoogleCloudDocumentaiV1beta3DocumentProvenance) MarshalJSON() ([]byte, error) {
7985 type NoMethod GoogleCloudDocumentaiV1beta3DocumentProvenance
7986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7987 }
7988
7989
7990
7991
7992 type GoogleCloudDocumentaiV1beta3DocumentProvenanceParent struct {
7993
7994 Id int64 `json:"id,omitempty"`
7995
7996
7997 Index int64 `json:"index,omitempty"`
7998
7999 Revision int64 `json:"revision,omitempty"`
8000
8001
8002
8003
8004
8005 ForceSendFields []string `json:"-"`
8006
8007
8008
8009
8010 NullFields []string `json:"-"`
8011 }
8012
8013 func (s *GoogleCloudDocumentaiV1beta3DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
8014 type NoMethod GoogleCloudDocumentaiV1beta3DocumentProvenanceParent
8015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8016 }
8017
8018
8019
8020 type GoogleCloudDocumentaiV1beta3DocumentRevision struct {
8021
8022
8023 Agent string `json:"agent,omitempty"`
8024
8025
8026 CreateTime string `json:"createTime,omitempty"`
8027
8028 HumanReview *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview `json:"humanReview,omitempty"`
8029
8030
8031 Id string `json:"id,omitempty"`
8032
8033
8034
8035 Parent []int64 `json:"parent,omitempty"`
8036
8037
8038
8039 ParentIds []string `json:"parentIds,omitempty"`
8040
8041
8042 Processor string `json:"processor,omitempty"`
8043
8044
8045
8046
8047
8048 ForceSendFields []string `json:"-"`
8049
8050
8051
8052
8053 NullFields []string `json:"-"`
8054 }
8055
8056 func (s *GoogleCloudDocumentaiV1beta3DocumentRevision) MarshalJSON() ([]byte, error) {
8057 type NoMethod GoogleCloudDocumentaiV1beta3DocumentRevision
8058 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8059 }
8060
8061
8062
8063 type GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview struct {
8064
8065 State string `json:"state,omitempty"`
8066
8067
8068 StateMessage string `json:"stateMessage,omitempty"`
8069
8070
8071
8072
8073
8074 ForceSendFields []string `json:"-"`
8075
8076
8077
8078
8079 NullFields []string `json:"-"`
8080 }
8081
8082 func (s *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
8083 type NoMethod GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview
8084 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8085 }
8086
8087
8088
8089 type GoogleCloudDocumentaiV1beta3DocumentSchema struct {
8090
8091 Description string `json:"description,omitempty"`
8092
8093 DisplayName string `json:"displayName,omitempty"`
8094
8095 EntityTypes []*GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType `json:"entityTypes,omitempty"`
8096
8097 Metadata *GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata `json:"metadata,omitempty"`
8098
8099
8100
8101
8102
8103 ForceSendFields []string `json:"-"`
8104
8105
8106
8107
8108 NullFields []string `json:"-"`
8109 }
8110
8111 func (s *GoogleCloudDocumentaiV1beta3DocumentSchema) MarshalJSON() ([]byte, error) {
8112 type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchema
8113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8114 }
8115
8116
8117
8118
8119
8120 type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType struct {
8121
8122
8123 BaseTypes []string `json:"baseTypes,omitempty"`
8124
8125 DisplayName string `json:"displayName,omitempty"`
8126
8127 EntityTypeMetadata *GoogleCloudDocumentaiV1beta3EntityTypeMetadata `json:"entityTypeMetadata,omitempty"`
8128
8129
8130
8131
8132 EnumValues *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues `json:"enumValues,omitempty"`
8133
8134
8135
8136
8137
8138
8139
8140
8141 Name string `json:"name,omitempty"`
8142
8143 Properties []*GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty `json:"properties,omitempty"`
8144
8145
8146
8147
8148
8149 ForceSendFields []string `json:"-"`
8150
8151
8152
8153
8154 NullFields []string `json:"-"`
8155 }
8156
8157 func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType) MarshalJSON() ([]byte, error) {
8158 type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType
8159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8160 }
8161
8162
8163
8164 type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues struct {
8165
8166 Values []string `json:"values,omitempty"`
8167
8168
8169
8170
8171
8172 ForceSendFields []string `json:"-"`
8173
8174
8175
8176
8177 NullFields []string `json:"-"`
8178 }
8179
8180 func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues) MarshalJSON() ([]byte, error) {
8181 type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues
8182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8183 }
8184
8185
8186
8187 type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct {
8188
8189 DisplayName string `json:"displayName,omitempty"`
8190
8191
8192 Name string `json:"name,omitempty"`
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 OccurrenceType string `json:"occurrenceType,omitempty"`
8205
8206
8207 PropertyMetadata *GoogleCloudDocumentaiV1beta3PropertyMetadata `json:"propertyMetadata,omitempty"`
8208
8209
8210 ValueType string `json:"valueType,omitempty"`
8211
8212
8213
8214
8215
8216 ForceSendFields []string `json:"-"`
8217
8218
8219
8220
8221 NullFields []string `json:"-"`
8222 }
8223
8224 func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty) MarshalJSON() ([]byte, error) {
8225 type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
8226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8227 }
8228
8229
8230
8231 type GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata struct {
8232
8233
8234 DocumentAllowMultipleLabels bool `json:"documentAllowMultipleLabels,omitempty"`
8235
8236
8237
8238 DocumentSplitter bool `json:"documentSplitter,omitempty"`
8239
8240
8241 PrefixedNamingOnProperties bool `json:"prefixedNamingOnProperties,omitempty"`
8242
8243
8244
8245 SkipNamingValidation bool `json:"skipNamingValidation,omitempty"`
8246
8247
8248
8249
8250
8251 ForceSendFields []string `json:"-"`
8252
8253
8254
8255
8256 NullFields []string `json:"-"`
8257 }
8258
8259 func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata) MarshalJSON() ([]byte, error) {
8260 type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata
8261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8262 }
8263
8264
8265
8266
8267 type GoogleCloudDocumentaiV1beta3DocumentShardInfo struct {
8268
8269 ShardCount int64 `json:"shardCount,omitempty,string"`
8270
8271 ShardIndex int64 `json:"shardIndex,omitempty,string"`
8272
8273
8274 TextOffset int64 `json:"textOffset,omitempty,string"`
8275
8276
8277
8278
8279
8280 ForceSendFields []string `json:"-"`
8281
8282
8283
8284
8285 NullFields []string `json:"-"`
8286 }
8287
8288 func (s *GoogleCloudDocumentaiV1beta3DocumentShardInfo) MarshalJSON() ([]byte, error) {
8289 type NoMethod GoogleCloudDocumentaiV1beta3DocumentShardInfo
8290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8291 }
8292
8293
8294
8295 type GoogleCloudDocumentaiV1beta3DocumentStyle struct {
8296
8297 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
8298
8299 Color *GoogleTypeColor `json:"color,omitempty"`
8300
8301
8302 FontFamily string `json:"fontFamily,omitempty"`
8303
8304 FontSize *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize `json:"fontSize,omitempty"`
8305
8306
8307
8308 FontWeight string `json:"fontWeight,omitempty"`
8309
8310 TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
8311
8312
8313
8314 TextDecoration string `json:"textDecoration,omitempty"`
8315
8316
8317
8318 TextStyle string `json:"textStyle,omitempty"`
8319
8320
8321
8322
8323
8324 ForceSendFields []string `json:"-"`
8325
8326
8327
8328
8329 NullFields []string `json:"-"`
8330 }
8331
8332 func (s *GoogleCloudDocumentaiV1beta3DocumentStyle) MarshalJSON() ([]byte, error) {
8333 type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyle
8334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8335 }
8336
8337
8338 type GoogleCloudDocumentaiV1beta3DocumentStyleFontSize struct {
8339
8340 Size float64 `json:"size,omitempty"`
8341
8342
8343 Unit string `json:"unit,omitempty"`
8344
8345
8346
8347
8348
8349 ForceSendFields []string `json:"-"`
8350
8351
8352
8353
8354 NullFields []string `json:"-"`
8355 }
8356
8357 func (s *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
8358 type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyleFontSize
8359 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8360 }
8361
8362 func (s *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
8363 type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyleFontSize
8364 var s1 struct {
8365 Size gensupport.JSONFloat64 `json:"size"`
8366 *NoMethod
8367 }
8368 s1.NoMethod = (*NoMethod)(s)
8369 if err := json.Unmarshal(data, &s1); err != nil {
8370 return err
8371 }
8372 s.Size = float64(s1.Size)
8373 return nil
8374 }
8375
8376
8377
8378 type GoogleCloudDocumentaiV1beta3DocumentTextAnchor struct {
8379
8380
8381 Content string `json:"content,omitempty"`
8382
8383 TextSegments []*GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
8384
8385
8386
8387
8388
8389 ForceSendFields []string `json:"-"`
8390
8391
8392
8393
8394 NullFields []string `json:"-"`
8395 }
8396
8397 func (s *GoogleCloudDocumentaiV1beta3DocumentTextAnchor) MarshalJSON() ([]byte, error) {
8398 type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextAnchor
8399 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8400 }
8401
8402
8403
8404
8405
8406 type GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment struct {
8407
8408 EndIndex int64 `json:"endIndex,omitempty,string"`
8409
8410 StartIndex int64 `json:"startIndex,omitempty,string"`
8411
8412
8413
8414
8415
8416 ForceSendFields []string `json:"-"`
8417
8418
8419
8420
8421 NullFields []string `json:"-"`
8422 }
8423
8424 func (s *GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
8425 type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment
8426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8427 }
8428
8429
8430
8431 type GoogleCloudDocumentaiV1beta3DocumentTextChange struct {
8432
8433
8434 ChangedText string `json:"changedText,omitempty"`
8435
8436 Provenance []*GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
8437
8438
8439
8440
8441 TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
8442
8443
8444
8445
8446
8447 ForceSendFields []string `json:"-"`
8448
8449
8450
8451
8452 NullFields []string `json:"-"`
8453 }
8454
8455 func (s *GoogleCloudDocumentaiV1beta3DocumentTextChange) MarshalJSON() ([]byte, error) {
8456 type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextChange
8457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8458 }
8459
8460
8461
8462 type GoogleCloudDocumentaiV1beta3EnableProcessorMetadata struct {
8463
8464 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8465
8466
8467
8468
8469
8470 ForceSendFields []string `json:"-"`
8471
8472
8473
8474
8475 NullFields []string `json:"-"`
8476 }
8477
8478 func (s *GoogleCloudDocumentaiV1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
8479 type NoMethod GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
8480 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8481 }
8482
8483
8484
8485 type GoogleCloudDocumentaiV1beta3EnableProcessorRequest struct {
8486 }
8487
8488
8489
8490
8491 type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct {
8492 }
8493
8494
8495
8496 type GoogleCloudDocumentaiV1beta3EntityTypeMetadata struct {
8497
8498 Inactive bool `json:"inactive,omitempty"`
8499
8500
8501
8502
8503
8504 ForceSendFields []string `json:"-"`
8505
8506
8507
8508
8509 NullFields []string `json:"-"`
8510 }
8511
8512 func (s *GoogleCloudDocumentaiV1beta3EntityTypeMetadata) MarshalJSON() ([]byte, error) {
8513 type NoMethod GoogleCloudDocumentaiV1beta3EntityTypeMetadata
8514 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8515 }
8516
8517
8518
8519 type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata struct {
8520
8521 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8522
8523
8524
8525
8526
8527 ForceSendFields []string `json:"-"`
8528
8529
8530
8531
8532 NullFields []string `json:"-"`
8533 }
8534
8535 func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8536 type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
8537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8538 }
8539
8540
8541
8542 type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest struct {
8543
8544
8545 EvaluationDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"evaluationDocuments,omitempty"`
8546
8547
8548
8549
8550
8551 ForceSendFields []string `json:"-"`
8552
8553
8554
8555
8556 NullFields []string `json:"-"`
8557 }
8558
8559 func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest) MarshalJSON() ([]byte, error) {
8560 type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest
8561 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8562 }
8563
8564
8565
8566 type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse struct {
8567
8568 Evaluation string `json:"evaluation,omitempty"`
8569
8570
8571
8572
8573
8574 ForceSendFields []string `json:"-"`
8575
8576
8577
8578
8579 NullFields []string `json:"-"`
8580 }
8581
8582 func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
8583 type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
8584 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8585 }
8586
8587
8588
8589 type GoogleCloudDocumentaiV1beta3Evaluation struct {
8590
8591 AllEntitiesMetrics *GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics `json:"allEntitiesMetrics,omitempty"`
8592
8593 CreateTime string `json:"createTime,omitempty"`
8594
8595 DocumentCounters *GoogleCloudDocumentaiV1beta3EvaluationCounters `json:"documentCounters,omitempty"`
8596
8597 EntityMetrics map[string]GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics `json:"entityMetrics,omitempty"`
8598
8599 KmsKeyName string `json:"kmsKeyName,omitempty"`
8600
8601 KmsKeyVersionName string `json:"kmsKeyVersionName,omitempty"`
8602
8603
8604
8605 Name string `json:"name,omitempty"`
8606
8607
8608 googleapi.ServerResponse `json:"-"`
8609
8610
8611
8612
8613
8614 ForceSendFields []string `json:"-"`
8615
8616
8617
8618
8619 NullFields []string `json:"-"`
8620 }
8621
8622 func (s *GoogleCloudDocumentaiV1beta3Evaluation) MarshalJSON() ([]byte, error) {
8623 type NoMethod GoogleCloudDocumentaiV1beta3Evaluation
8624 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8625 }
8626
8627
8628
8629 type GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics struct {
8630
8631 ConfidenceLevel float64 `json:"confidenceLevel,omitempty"`
8632
8633 Metrics *GoogleCloudDocumentaiV1beta3EvaluationMetrics `json:"metrics,omitempty"`
8634
8635
8636
8637
8638
8639 ForceSendFields []string `json:"-"`
8640
8641
8642
8643
8644 NullFields []string `json:"-"`
8645 }
8646
8647 func (s *GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics) MarshalJSON() ([]byte, error) {
8648 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics
8649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8650 }
8651
8652 func (s *GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics) UnmarshalJSON(data []byte) error {
8653 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics
8654 var s1 struct {
8655 ConfidenceLevel gensupport.JSONFloat64 `json:"confidenceLevel"`
8656 *NoMethod
8657 }
8658 s1.NoMethod = (*NoMethod)(s)
8659 if err := json.Unmarshal(data, &s1); err != nil {
8660 return err
8661 }
8662 s.ConfidenceLevel = float64(s1.ConfidenceLevel)
8663 return nil
8664 }
8665
8666
8667
8668 type GoogleCloudDocumentaiV1beta3EvaluationCounters struct {
8669
8670 EvaluatedDocumentsCount int64 `json:"evaluatedDocumentsCount,omitempty"`
8671
8672
8673 FailedDocumentsCount int64 `json:"failedDocumentsCount,omitempty"`
8674
8675 InputDocumentsCount int64 `json:"inputDocumentsCount,omitempty"`
8676
8677
8678 InvalidDocumentsCount int64 `json:"invalidDocumentsCount,omitempty"`
8679
8680
8681
8682
8683
8684 ForceSendFields []string `json:"-"`
8685
8686
8687
8688
8689 NullFields []string `json:"-"`
8690 }
8691
8692 func (s *GoogleCloudDocumentaiV1beta3EvaluationCounters) MarshalJSON() ([]byte, error) {
8693 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationCounters
8694 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8695 }
8696
8697
8698
8699 type GoogleCloudDocumentaiV1beta3EvaluationMetrics struct {
8700
8701 F1Score float64 `json:"f1Score,omitempty"`
8702
8703 FalseNegativesCount int64 `json:"falseNegativesCount,omitempty"`
8704
8705 FalsePositivesCount int64 `json:"falsePositivesCount,omitempty"`
8706
8707
8708 GroundTruthDocumentCount int64 `json:"groundTruthDocumentCount,omitempty"`
8709
8710
8711 GroundTruthOccurrencesCount int64 `json:"groundTruthOccurrencesCount,omitempty"`
8712
8713 Precision float64 `json:"precision,omitempty"`
8714
8715 PredictedDocumentCount int64 `json:"predictedDocumentCount,omitempty"`
8716
8717 PredictedOccurrencesCount int64 `json:"predictedOccurrencesCount,omitempty"`
8718
8719 Recall float64 `json:"recall,omitempty"`
8720
8721
8722 TotalDocumentsCount int64 `json:"totalDocumentsCount,omitempty"`
8723
8724 TruePositivesCount int64 `json:"truePositivesCount,omitempty"`
8725
8726
8727
8728
8729
8730 ForceSendFields []string `json:"-"`
8731
8732
8733
8734
8735 NullFields []string `json:"-"`
8736 }
8737
8738 func (s *GoogleCloudDocumentaiV1beta3EvaluationMetrics) MarshalJSON() ([]byte, error) {
8739 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMetrics
8740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8741 }
8742
8743 func (s *GoogleCloudDocumentaiV1beta3EvaluationMetrics) UnmarshalJSON(data []byte) error {
8744 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMetrics
8745 var s1 struct {
8746 F1Score gensupport.JSONFloat64 `json:"f1Score"`
8747 Precision gensupport.JSONFloat64 `json:"precision"`
8748 Recall gensupport.JSONFloat64 `json:"recall"`
8749 *NoMethod
8750 }
8751 s1.NoMethod = (*NoMethod)(s)
8752 if err := json.Unmarshal(data, &s1); err != nil {
8753 return err
8754 }
8755 s.F1Score = float64(s1.F1Score)
8756 s.Precision = float64(s1.Precision)
8757 s.Recall = float64(s1.Recall)
8758 return nil
8759 }
8760
8761
8762
8763 type GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics struct {
8764
8765
8766 Auprc float64 `json:"auprc,omitempty"`
8767
8768
8769 AuprcExact float64 `json:"auprcExact,omitempty"`
8770
8771
8772 ConfidenceLevelMetrics []*GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics `json:"confidenceLevelMetrics,omitempty"`
8773
8774
8775 ConfidenceLevelMetricsExact []*GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics `json:"confidenceLevelMetricsExact,omitempty"`
8776
8777
8778 EstimatedCalibrationError float64 `json:"estimatedCalibrationError,omitempty"`
8779
8780
8781 EstimatedCalibrationErrorExact float64 `json:"estimatedCalibrationErrorExact,omitempty"`
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793 MetricsType string `json:"metricsType,omitempty"`
8794
8795
8796
8797
8798
8799 ForceSendFields []string `json:"-"`
8800
8801
8802
8803
8804 NullFields []string `json:"-"`
8805 }
8806
8807 func (s *GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics) MarshalJSON() ([]byte, error) {
8808 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
8809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8810 }
8811
8812 func (s *GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics) UnmarshalJSON(data []byte) error {
8813 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
8814 var s1 struct {
8815 Auprc gensupport.JSONFloat64 `json:"auprc"`
8816 AuprcExact gensupport.JSONFloat64 `json:"auprcExact"`
8817 EstimatedCalibrationError gensupport.JSONFloat64 `json:"estimatedCalibrationError"`
8818 EstimatedCalibrationErrorExact gensupport.JSONFloat64 `json:"estimatedCalibrationErrorExact"`
8819 *NoMethod
8820 }
8821 s1.NoMethod = (*NoMethod)(s)
8822 if err := json.Unmarshal(data, &s1); err != nil {
8823 return err
8824 }
8825 s.Auprc = float64(s1.Auprc)
8826 s.AuprcExact = float64(s1.AuprcExact)
8827 s.EstimatedCalibrationError = float64(s1.EstimatedCalibrationError)
8828 s.EstimatedCalibrationErrorExact = float64(s1.EstimatedCalibrationErrorExact)
8829 return nil
8830 }
8831
8832
8833
8834 type GoogleCloudDocumentaiV1beta3EvaluationReference struct {
8835
8836
8837 AggregateMetrics *GoogleCloudDocumentaiV1beta3EvaluationMetrics `json:"aggregateMetrics,omitempty"`
8838
8839
8840 AggregateMetricsExact *GoogleCloudDocumentaiV1beta3EvaluationMetrics `json:"aggregateMetricsExact,omitempty"`
8841
8842 Evaluation string `json:"evaluation,omitempty"`
8843
8844
8845 Operation string `json:"operation,omitempty"`
8846
8847
8848
8849
8850
8851 ForceSendFields []string `json:"-"`
8852
8853
8854
8855
8856 NullFields []string `json:"-"`
8857 }
8858
8859 func (s *GoogleCloudDocumentaiV1beta3EvaluationReference) MarshalJSON() ([]byte, error) {
8860 type NoMethod GoogleCloudDocumentaiV1beta3EvaluationReference
8861 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8862 }
8863
8864
8865
8866 type GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse struct {
8867
8868 ProcessorTypes []*GoogleCloudDocumentaiV1beta3ProcessorType `json:"processorTypes,omitempty"`
8869
8870
8871 googleapi.ServerResponse `json:"-"`
8872
8873
8874
8875
8876
8877 ForceSendFields []string `json:"-"`
8878
8879
8880
8881
8882 NullFields []string `json:"-"`
8883 }
8884
8885 func (s *GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse) MarshalJSON() ([]byte, error) {
8886 type NoMethod GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
8887 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8888 }
8889
8890
8891
8892 type GoogleCloudDocumentaiV1beta3FieldExtractionMetadata struct {
8893
8894 SummaryOptions *GoogleCloudDocumentaiV1beta3SummaryOptions `json:"summaryOptions,omitempty"`
8895
8896
8897
8898
8899
8900 ForceSendFields []string `json:"-"`
8901
8902
8903
8904
8905 NullFields []string `json:"-"`
8906 }
8907
8908 func (s *GoogleCloudDocumentaiV1beta3FieldExtractionMetadata) MarshalJSON() ([]byte, error) {
8909 type NoMethod GoogleCloudDocumentaiV1beta3FieldExtractionMetadata
8910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8911 }
8912
8913
8914
8915 type GoogleCloudDocumentaiV1beta3GcsDocument struct {
8916
8917 GcsUri string `json:"gcsUri,omitempty"`
8918
8919 MimeType string `json:"mimeType,omitempty"`
8920
8921
8922
8923
8924
8925 ForceSendFields []string `json:"-"`
8926
8927
8928
8929
8930 NullFields []string `json:"-"`
8931 }
8932
8933 func (s *GoogleCloudDocumentaiV1beta3GcsDocument) MarshalJSON() ([]byte, error) {
8934 type NoMethod GoogleCloudDocumentaiV1beta3GcsDocument
8935 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8936 }
8937
8938
8939
8940 type GoogleCloudDocumentaiV1beta3GcsDocuments struct {
8941
8942 Documents []*GoogleCloudDocumentaiV1beta3GcsDocument `json:"documents,omitempty"`
8943
8944
8945
8946
8947
8948 ForceSendFields []string `json:"-"`
8949
8950
8951
8952
8953 NullFields []string `json:"-"`
8954 }
8955
8956 func (s *GoogleCloudDocumentaiV1beta3GcsDocuments) MarshalJSON() ([]byte, error) {
8957 type NoMethod GoogleCloudDocumentaiV1beta3GcsDocuments
8958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8959 }
8960
8961
8962
8963 type GoogleCloudDocumentaiV1beta3GcsPrefix struct {
8964
8965 GcsUriPrefix string `json:"gcsUriPrefix,omitempty"`
8966
8967
8968
8969
8970
8971 ForceSendFields []string `json:"-"`
8972
8973
8974
8975
8976 NullFields []string `json:"-"`
8977 }
8978
8979 func (s *GoogleCloudDocumentaiV1beta3GcsPrefix) MarshalJSON() ([]byte, error) {
8980 type NoMethod GoogleCloudDocumentaiV1beta3GcsPrefix
8981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8982 }
8983
8984 type GoogleCloudDocumentaiV1beta3GetDocumentResponse struct {
8985 Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
8986
8987
8988 googleapi.ServerResponse `json:"-"`
8989
8990
8991
8992
8993
8994 ForceSendFields []string `json:"-"`
8995
8996
8997
8998
8999 NullFields []string `json:"-"`
9000 }
9001
9002 func (s *GoogleCloudDocumentaiV1beta3GetDocumentResponse) MarshalJSON() ([]byte, error) {
9003 type NoMethod GoogleCloudDocumentaiV1beta3GetDocumentResponse
9004 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9005 }
9006
9007
9008
9009 type GoogleCloudDocumentaiV1beta3HumanReviewStatus struct {
9010
9011
9012
9013
9014 HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 State string `json:"state,omitempty"`
9030
9031 StateMessage string `json:"stateMessage,omitempty"`
9032
9033
9034
9035
9036
9037 ForceSendFields []string `json:"-"`
9038
9039
9040
9041
9042 NullFields []string `json:"-"`
9043 }
9044
9045 func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, error) {
9046 type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewStatus
9047 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9048 }
9049
9050
9051
9052 type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata struct {
9053
9054 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
9055
9056
9057 ImportConfigValidationResults []*GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult `json:"importConfigValidationResults,omitempty"`
9058
9059 IndividualImportStatuses []*GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"`
9060
9061
9062 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
9063
9064
9065
9066
9067
9068 ForceSendFields []string `json:"-"`
9069
9070
9071
9072
9073 NullFields []string `json:"-"`
9074 }
9075
9076 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
9077 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata
9078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9079 }
9080
9081
9082
9083
9084
9085 type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult struct {
9086
9087 InputGcsSource string `json:"inputGcsSource,omitempty"`
9088
9089 Status *GoogleRpcStatus `json:"status,omitempty"`
9090
9091
9092
9093
9094
9095 ForceSendFields []string `json:"-"`
9096
9097
9098
9099
9100 NullFields []string `json:"-"`
9101 }
9102
9103 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult) MarshalJSON() ([]byte, error) {
9104 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult
9105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9106 }
9107
9108
9109
9110 type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus struct {
9111
9112 InputGcsSource string `json:"inputGcsSource,omitempty"`
9113
9114
9115 OutputDocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"outputDocumentId,omitempty"`
9116
9117 Status *GoogleRpcStatus `json:"status,omitempty"`
9118
9119
9120
9121
9122
9123 ForceSendFields []string `json:"-"`
9124
9125
9126
9127
9128 NullFields []string `json:"-"`
9129 }
9130
9131 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) {
9132 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus
9133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9134 }
9135
9136 type GoogleCloudDocumentaiV1beta3ImportDocumentsRequest struct {
9137
9138
9139 BatchDocumentsImportConfigs []*GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig `json:"batchDocumentsImportConfigs,omitempty"`
9140
9141
9142
9143
9144
9145 ForceSendFields []string `json:"-"`
9146
9147
9148
9149
9150 NullFields []string `json:"-"`
9151 }
9152
9153 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
9154 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequest
9155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9156 }
9157
9158
9159
9160
9161
9162
9163 type GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig struct {
9164
9165
9166 AutoSplitConfig *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig `json:"autoSplitConfig,omitempty"`
9167
9168
9169 BatchInputConfig *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"batchInputConfig,omitempty"`
9170
9171
9172
9173
9174
9175
9176
9177 DatasetSplit string `json:"datasetSplit,omitempty"`
9178
9179
9180
9181
9182
9183 ForceSendFields []string `json:"-"`
9184
9185
9186
9187
9188 NullFields []string `json:"-"`
9189 }
9190
9191 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig) MarshalJSON() ([]byte, error) {
9192 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig
9193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9194 }
9195
9196
9197
9198 type GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig struct {
9199
9200 TrainingSplitRatio float64 `json:"trainingSplitRatio,omitempty"`
9201
9202
9203
9204
9205
9206 ForceSendFields []string `json:"-"`
9207
9208
9209
9210
9211 NullFields []string `json:"-"`
9212 }
9213
9214 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig) MarshalJSON() ([]byte, error) {
9215 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig
9216 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9217 }
9218
9219 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig) UnmarshalJSON(data []byte) error {
9220 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig
9221 var s1 struct {
9222 TrainingSplitRatio gensupport.JSONFloat64 `json:"trainingSplitRatio"`
9223 *NoMethod
9224 }
9225 s1.NoMethod = (*NoMethod)(s)
9226 if err := json.Unmarshal(data, &s1); err != nil {
9227 return err
9228 }
9229 s.TrainingSplitRatio = float64(s1.TrainingSplitRatio)
9230 return nil
9231 }
9232
9233
9234
9235 type GoogleCloudDocumentaiV1beta3ImportDocumentsResponse struct {
9236 }
9237
9238
9239
9240 type GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata struct {
9241
9242 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
9243
9244
9245
9246
9247
9248 ForceSendFields []string `json:"-"`
9249
9250
9251
9252
9253 NullFields []string `json:"-"`
9254 }
9255
9256 func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
9257 type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
9258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9259 }
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 type GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest struct {
9270
9271
9272
9273 ExternalProcessorVersionSource *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource `json:"externalProcessorVersionSource,omitempty"`
9274
9275
9276
9277
9278 ProcessorVersionSource string `json:"processorVersionSource,omitempty"`
9279
9280
9281
9282
9283
9284
9285 ForceSendFields []string `json:"-"`
9286
9287
9288
9289
9290 NullFields []string `json:"-"`
9291 }
9292
9293 func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest) MarshalJSON() ([]byte, error) {
9294 type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
9295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9296 }
9297
9298
9299
9300 type GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource struct {
9301
9302
9303
9304 ProcessorVersion string `json:"processorVersion,omitempty"`
9305
9306
9307 ServiceEndpoint string `json:"serviceEndpoint,omitempty"`
9308
9309
9310
9311
9312
9313 ForceSendFields []string `json:"-"`
9314
9315
9316
9317
9318 NullFields []string `json:"-"`
9319 }
9320
9321 func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource) MarshalJSON() ([]byte, error) {
9322 type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource
9323 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9324 }
9325
9326
9327
9328 type GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse struct {
9329
9330 ProcessorVersion string `json:"processorVersion,omitempty"`
9331
9332
9333
9334
9335
9336 ForceSendFields []string `json:"-"`
9337
9338
9339
9340
9341 NullFields []string `json:"-"`
9342 }
9343
9344 func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
9345 type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse
9346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9347 }
9348
9349 type GoogleCloudDocumentaiV1beta3ListDocumentsRequest struct {
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 Filter string `json:"filter,omitempty"`
9362
9363
9364
9365 PageSize int64 `json:"pageSize,omitempty"`
9366
9367
9368
9369
9370 PageToken string `json:"pageToken,omitempty"`
9371
9372
9373
9374 ReturnTotalSize bool `json:"returnTotalSize,omitempty"`
9375
9376
9377
9378
9379
9380
9381 Skip int64 `json:"skip,omitempty"`
9382
9383
9384
9385
9386
9387 ForceSendFields []string `json:"-"`
9388
9389
9390
9391
9392 NullFields []string `json:"-"`
9393 }
9394
9395 func (s *GoogleCloudDocumentaiV1beta3ListDocumentsRequest) MarshalJSON() ([]byte, error) {
9396 type NoMethod GoogleCloudDocumentaiV1beta3ListDocumentsRequest
9397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9398 }
9399
9400 type GoogleCloudDocumentaiV1beta3ListDocumentsResponse struct {
9401
9402 DocumentMetadata []*GoogleCloudDocumentaiV1beta3DocumentMetadata `json:"documentMetadata,omitempty"`
9403
9404
9405
9406 NextPageToken string `json:"nextPageToken,omitempty"`
9407
9408 TotalSize int64 `json:"totalSize,omitempty"`
9409
9410
9411 googleapi.ServerResponse `json:"-"`
9412
9413
9414
9415
9416
9417 ForceSendFields []string `json:"-"`
9418
9419
9420
9421
9422 NullFields []string `json:"-"`
9423 }
9424
9425 func (s *GoogleCloudDocumentaiV1beta3ListDocumentsResponse) MarshalJSON() ([]byte, error) {
9426 type NoMethod GoogleCloudDocumentaiV1beta3ListDocumentsResponse
9427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9428 }
9429
9430
9431
9432 type GoogleCloudDocumentaiV1beta3ListEvaluationsResponse struct {
9433
9434 Evaluations []*GoogleCloudDocumentaiV1beta3Evaluation `json:"evaluations,omitempty"`
9435
9436
9437 NextPageToken string `json:"nextPageToken,omitempty"`
9438
9439
9440 googleapi.ServerResponse `json:"-"`
9441
9442
9443
9444
9445
9446 ForceSendFields []string `json:"-"`
9447
9448
9449
9450
9451 NullFields []string `json:"-"`
9452 }
9453
9454 func (s *GoogleCloudDocumentaiV1beta3ListEvaluationsResponse) MarshalJSON() ([]byte, error) {
9455 type NoMethod GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
9456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9457 }
9458
9459
9460
9461 type GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse struct {
9462
9463 NextPageToken string `json:"nextPageToken,omitempty"`
9464
9465 ProcessorTypes []*GoogleCloudDocumentaiV1beta3ProcessorType `json:"processorTypes,omitempty"`
9466
9467
9468 googleapi.ServerResponse `json:"-"`
9469
9470
9471
9472
9473
9474 ForceSendFields []string `json:"-"`
9475
9476
9477
9478
9479 NullFields []string `json:"-"`
9480 }
9481
9482 func (s *GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse) MarshalJSON() ([]byte, error) {
9483 type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse
9484 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9485 }
9486
9487
9488
9489 type GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse struct {
9490
9491 NextPageToken string `json:"nextPageToken,omitempty"`
9492
9493 ProcessorVersions []*GoogleCloudDocumentaiV1beta3ProcessorVersion `json:"processorVersions,omitempty"`
9494
9495
9496 googleapi.ServerResponse `json:"-"`
9497
9498
9499
9500
9501
9502 ForceSendFields []string `json:"-"`
9503
9504
9505
9506
9507 NullFields []string `json:"-"`
9508 }
9509
9510 func (s *GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse) MarshalJSON() ([]byte, error) {
9511 type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse
9512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9513 }
9514
9515
9516
9517 type GoogleCloudDocumentaiV1beta3ListProcessorsResponse struct {
9518
9519 NextPageToken string `json:"nextPageToken,omitempty"`
9520
9521 Processors []*GoogleCloudDocumentaiV1beta3Processor `json:"processors,omitempty"`
9522
9523
9524 googleapi.ServerResponse `json:"-"`
9525
9526
9527
9528
9529
9530 ForceSendFields []string `json:"-"`
9531
9532
9533
9534
9535 NullFields []string `json:"-"`
9536 }
9537
9538 func (s *GoogleCloudDocumentaiV1beta3ListProcessorsResponse) MarshalJSON() ([]byte, error) {
9539 type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorsResponse
9540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9541 }
9542
9543
9544
9545
9546 type GoogleCloudDocumentaiV1beta3NormalizedVertex struct {
9547
9548 X float64 `json:"x,omitempty"`
9549
9550 Y float64 `json:"y,omitempty"`
9551
9552
9553
9554
9555
9556 ForceSendFields []string `json:"-"`
9557
9558
9559
9560
9561 NullFields []string `json:"-"`
9562 }
9563
9564 func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) MarshalJSON() ([]byte, error) {
9565 type NoMethod GoogleCloudDocumentaiV1beta3NormalizedVertex
9566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9567 }
9568
9569 func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) UnmarshalJSON(data []byte) error {
9570 type NoMethod GoogleCloudDocumentaiV1beta3NormalizedVertex
9571 var s1 struct {
9572 X gensupport.JSONFloat64 `json:"x"`
9573 Y gensupport.JSONFloat64 `json:"y"`
9574 *NoMethod
9575 }
9576 s1.NoMethod = (*NoMethod)(s)
9577 if err := json.Unmarshal(data, &s1); err != nil {
9578 return err
9579 }
9580 s.X = float64(s1.X)
9581 s.Y = float64(s1.Y)
9582 return nil
9583 }
9584
9585
9586 type GoogleCloudDocumentaiV1beta3OcrConfig struct {
9587
9588
9589
9590
9591
9592 AdvancedOcrOptions []string `json:"advancedOcrOptions,omitempty"`
9593
9594
9595 ComputeStyleInfo bool `json:"computeStyleInfo,omitempty"`
9596
9597
9598
9599 DisableCharacterBoxesDetection bool `json:"disableCharacterBoxesDetection,omitempty"`
9600
9601
9602
9603
9604 EnableImageQualityScores bool `json:"enableImageQualityScores,omitempty"`
9605
9606
9607 EnableNativePdfParsing bool `json:"enableNativePdfParsing,omitempty"`
9608
9609 EnableSymbol bool `json:"enableSymbol,omitempty"`
9610
9611 Hints *GoogleCloudDocumentaiV1beta3OcrConfigHints `json:"hints,omitempty"`
9612
9613 PremiumFeatures *GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures `json:"premiumFeatures,omitempty"`
9614
9615
9616
9617
9618
9619 ForceSendFields []string `json:"-"`
9620
9621
9622
9623
9624 NullFields []string `json:"-"`
9625 }
9626
9627 func (s *GoogleCloudDocumentaiV1beta3OcrConfig) MarshalJSON() ([]byte, error) {
9628 type NoMethod GoogleCloudDocumentaiV1beta3OcrConfig
9629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9630 }
9631
9632
9633 type GoogleCloudDocumentaiV1beta3OcrConfigHints struct {
9634
9635
9636
9637
9638
9639
9640 LanguageHints []string `json:"languageHints,omitempty"`
9641
9642
9643
9644
9645
9646 ForceSendFields []string `json:"-"`
9647
9648
9649
9650
9651 NullFields []string `json:"-"`
9652 }
9653
9654 func (s *GoogleCloudDocumentaiV1beta3OcrConfigHints) MarshalJSON() ([]byte, error) {
9655 type NoMethod GoogleCloudDocumentaiV1beta3OcrConfigHints
9656 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9657 }
9658
9659
9660
9661 type GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures struct {
9662
9663
9664 ComputeStyleInfo bool `json:"computeStyleInfo,omitempty"`
9665
9666 EnableMathOcr bool `json:"enableMathOcr,omitempty"`
9667
9668
9669 EnableSelectionMarkDetection bool `json:"enableSelectionMarkDetection,omitempty"`
9670
9671
9672
9673
9674
9675 ForceSendFields []string `json:"-"`
9676
9677
9678
9679
9680 NullFields []string `json:"-"`
9681 }
9682
9683 func (s *GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures) MarshalJSON() ([]byte, error) {
9684 type NoMethod GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures
9685 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9686 }
9687
9688
9689 type GoogleCloudDocumentaiV1beta3ProcessOptions struct {
9690
9691 FromEnd int64 `json:"fromEnd,omitempty"`
9692
9693
9694 FromStart int64 `json:"fromStart,omitempty"`
9695
9696 IndividualPageSelector *GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector `json:"individualPageSelector,omitempty"`
9697
9698
9699 LayoutConfig *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig `json:"layoutConfig,omitempty"`
9700
9701
9702 OcrConfig *GoogleCloudDocumentaiV1beta3OcrConfig `json:"ocrConfig,omitempty"`
9703
9704
9705
9706 SchemaOverride *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"schemaOverride,omitempty"`
9707
9708
9709
9710
9711
9712 ForceSendFields []string `json:"-"`
9713
9714
9715
9716
9717 NullFields []string `json:"-"`
9718 }
9719
9720 func (s *GoogleCloudDocumentaiV1beta3ProcessOptions) MarshalJSON() ([]byte, error) {
9721 type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptions
9722 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9723 }
9724
9725
9726
9727 type GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector struct {
9728
9729 Pages []int64 `json:"pages,omitempty"`
9730
9731
9732
9733
9734
9735 ForceSendFields []string `json:"-"`
9736
9737
9738
9739
9740 NullFields []string `json:"-"`
9741 }
9742
9743 func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector) MarshalJSON() ([]byte, error) {
9744 type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
9745 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9746 }
9747
9748
9749
9750 type GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig struct {
9751
9752 ChunkingConfig *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig `json:"chunkingConfig,omitempty"`
9753
9754
9755
9756
9757
9758 ForceSendFields []string `json:"-"`
9759
9760
9761
9762
9763 NullFields []string `json:"-"`
9764 }
9765
9766 func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig) MarshalJSON() ([]byte, error) {
9767 type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig
9768 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9769 }
9770
9771
9772
9773 type GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig struct {
9774
9775
9776
9777 BreakpointPercentileThreshold int64 `json:"breakpointPercentileThreshold,omitempty"`
9778
9779
9780 ChunkSize int64 `json:"chunkSize,omitempty"`
9781
9782
9783 IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
9784
9785
9786 SemanticChunkingGroupSize bool `json:"semanticChunkingGroupSize,omitempty"`
9787
9788
9789
9790
9791
9792 ForceSendFields []string `json:"-"`
9793
9794
9795
9796
9797 NullFields []string `json:"-"`
9798 }
9799
9800 func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig) MarshalJSON() ([]byte, error) {
9801 type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig
9802 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9803 }
9804
9805
9806
9807 type GoogleCloudDocumentaiV1beta3ProcessRequest struct {
9808
9809
9810 Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
9811
9812
9813
9814 FieldMask string `json:"fieldMask,omitempty"`
9815
9816 GcsDocument *GoogleCloudDocumentaiV1beta3GcsDocument `json:"gcsDocument,omitempty"`
9817
9818 InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"`
9819
9820
9821
9822
9823
9824 Labels map[string]string `json:"labels,omitempty"`
9825
9826 ProcessOptions *GoogleCloudDocumentaiV1beta3ProcessOptions `json:"processOptions,omitempty"`
9827
9828 RawDocument *GoogleCloudDocumentaiV1beta3RawDocument `json:"rawDocument,omitempty"`
9829
9830
9831 SkipHumanReview bool `json:"skipHumanReview,omitempty"`
9832
9833
9834
9835
9836
9837 ForceSendFields []string `json:"-"`
9838
9839
9840
9841
9842 NullFields []string `json:"-"`
9843 }
9844
9845 func (s *GoogleCloudDocumentaiV1beta3ProcessRequest) MarshalJSON() ([]byte, error) {
9846 type NoMethod GoogleCloudDocumentaiV1beta3ProcessRequest
9847 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9848 }
9849
9850
9851
9852 type GoogleCloudDocumentaiV1beta3ProcessResponse struct {
9853
9854
9855 Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
9856
9857
9858
9859
9860 HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
9861
9862 HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
9863
9864
9865 googleapi.ServerResponse `json:"-"`
9866
9867
9868
9869
9870
9871 ForceSendFields []string `json:"-"`
9872
9873
9874
9875
9876 NullFields []string `json:"-"`
9877 }
9878
9879 func (s *GoogleCloudDocumentaiV1beta3ProcessResponse) MarshalJSON() ([]byte, error) {
9880 type NoMethod GoogleCloudDocumentaiV1beta3ProcessResponse
9881 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9882 }
9883
9884
9885
9886
9887 type GoogleCloudDocumentaiV1beta3Processor struct {
9888
9889 CreateTime string `json:"createTime,omitempty"`
9890
9891 DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
9892
9893 DisplayName string `json:"displayName,omitempty"`
9894
9895
9896 KmsKeyName string `json:"kmsKeyName,omitempty"`
9897
9898
9899 Name string `json:"name,omitempty"`
9900
9901
9902 ProcessEndpoint string `json:"processEndpoint,omitempty"`
9903
9904 ProcessorVersionAliases []*GoogleCloudDocumentaiV1beta3ProcessorVersionAlias `json:"processorVersionAliases,omitempty"`
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 State string `json:"state,omitempty"`
9927
9928
9929 Type string `json:"type,omitempty"`
9930
9931
9932 googleapi.ServerResponse `json:"-"`
9933
9934
9935
9936
9937
9938 ForceSendFields []string `json:"-"`
9939
9940
9941
9942
9943 NullFields []string `json:"-"`
9944 }
9945
9946 func (s *GoogleCloudDocumentaiV1beta3Processor) MarshalJSON() ([]byte, error) {
9947 type NoMethod GoogleCloudDocumentaiV1beta3Processor
9948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9949 }
9950
9951
9952
9953
9954 type GoogleCloudDocumentaiV1beta3ProcessorType struct {
9955
9956
9957
9958 AllowCreation bool `json:"allowCreation,omitempty"`
9959
9960 AvailableLocations []*GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo `json:"availableLocations,omitempty"`
9961
9962 Category string `json:"category,omitempty"`
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 LaunchStage string `json:"launchStage,omitempty"`
9998
9999
10000 Name string `json:"name,omitempty"`
10001
10002
10003 SampleDocumentUris []string `json:"sampleDocumentUris,omitempty"`
10004
10005 Type string `json:"type,omitempty"`
10006
10007
10008 googleapi.ServerResponse `json:"-"`
10009
10010
10011
10012
10013
10014 ForceSendFields []string `json:"-"`
10015
10016
10017
10018
10019 NullFields []string `json:"-"`
10020 }
10021
10022 func (s *GoogleCloudDocumentaiV1beta3ProcessorType) MarshalJSON() ([]byte, error) {
10023 type NoMethod GoogleCloudDocumentaiV1beta3ProcessorType
10024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10025 }
10026
10027
10028
10029 type GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo struct {
10030
10031
10032 LocationId string `json:"locationId,omitempty"`
10033
10034
10035
10036
10037
10038 ForceSendFields []string `json:"-"`
10039
10040
10041
10042
10043 NullFields []string `json:"-"`
10044 }
10045
10046 func (s *GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo) MarshalJSON() ([]byte, error) {
10047 type NoMethod GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
10048 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10049 }
10050
10051
10052
10053
10054
10055
10056 type GoogleCloudDocumentaiV1beta3ProcessorVersion struct {
10057
10058 CreateTime string `json:"createTime,omitempty"`
10059
10060
10061 DeprecationInfo *GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo `json:"deprecationInfo,omitempty"`
10062
10063 DisplayName string `json:"displayName,omitempty"`
10064
10065 DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
10066
10067
10068 GoogleManaged bool `json:"googleManaged,omitempty"`
10069
10070 KmsKeyName string `json:"kmsKeyName,omitempty"`
10071
10072 KmsKeyVersionName string `json:"kmsKeyVersionName,omitempty"`
10073
10074
10075 LatestEvaluation *GoogleCloudDocumentaiV1beta3EvaluationReference `json:"latestEvaluation,omitempty"`
10076
10077
10078
10079
10080
10081
10082
10083 ModelType string `json:"modelType,omitempty"`
10084
10085
10086
10087 Name string `json:"name,omitempty"`
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 State string `json:"state,omitempty"`
10103
10104
10105 googleapi.ServerResponse `json:"-"`
10106
10107
10108
10109
10110
10111 ForceSendFields []string `json:"-"`
10112
10113
10114
10115
10116 NullFields []string `json:"-"`
10117 }
10118
10119 func (s *GoogleCloudDocumentaiV1beta3ProcessorVersion) MarshalJSON() ([]byte, error) {
10120 type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersion
10121 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10122 }
10123
10124
10125
10126 type GoogleCloudDocumentaiV1beta3ProcessorVersionAlias struct {
10127
10128 Alias string `json:"alias,omitempty"`
10129
10130 ProcessorVersion string `json:"processorVersion,omitempty"`
10131
10132
10133
10134
10135
10136 ForceSendFields []string `json:"-"`
10137
10138
10139
10140
10141 NullFields []string `json:"-"`
10142 }
10143
10144 func (s *GoogleCloudDocumentaiV1beta3ProcessorVersionAlias) MarshalJSON() ([]byte, error) {
10145 type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersionAlias
10146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10147 }
10148
10149
10150
10151 type GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo struct {
10152
10153
10154 DeprecationTime string `json:"deprecationTime,omitempty"`
10155
10156
10157 ReplacementProcessorVersion string `json:"replacementProcessorVersion,omitempty"`
10158
10159
10160
10161
10162
10163 ForceSendFields []string `json:"-"`
10164
10165
10166
10167
10168 NullFields []string `json:"-"`
10169 }
10170
10171 func (s *GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo) MarshalJSON() ([]byte, error) {
10172 type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo
10173 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10174 }
10175
10176
10177 type GoogleCloudDocumentaiV1beta3PropertyMetadata struct {
10178
10179 FieldExtractionMetadata *GoogleCloudDocumentaiV1beta3FieldExtractionMetadata `json:"fieldExtractionMetadata,omitempty"`
10180
10181 Inactive bool `json:"inactive,omitempty"`
10182
10183
10184
10185
10186
10187 ForceSendFields []string `json:"-"`
10188
10189
10190
10191
10192 NullFields []string `json:"-"`
10193 }
10194
10195 func (s *GoogleCloudDocumentaiV1beta3PropertyMetadata) MarshalJSON() ([]byte, error) {
10196 type NoMethod GoogleCloudDocumentaiV1beta3PropertyMetadata
10197 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10198 }
10199
10200
10201
10202 type GoogleCloudDocumentaiV1beta3RawDocument struct {
10203
10204 Content string `json:"content,omitempty"`
10205
10206
10207
10208
10209 DisplayName string `json:"displayName,omitempty"`
10210
10211
10212 MimeType string `json:"mimeType,omitempty"`
10213
10214
10215
10216
10217
10218 ForceSendFields []string `json:"-"`
10219
10220
10221
10222
10223 NullFields []string `json:"-"`
10224 }
10225
10226 func (s *GoogleCloudDocumentaiV1beta3RawDocument) MarshalJSON() ([]byte, error) {
10227 type NoMethod GoogleCloudDocumentaiV1beta3RawDocument
10228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10229 }
10230
10231
10232
10233 type GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata struct {
10234
10235 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
10236
10237 CreateTime string `json:"createTime,omitempty"`
10238
10239 QuestionId string `json:"questionId,omitempty"`
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 State string `json:"state,omitempty"`
10250
10251
10252 StateMessage string `json:"stateMessage,omitempty"`
10253
10254 UpdateTime string `json:"updateTime,omitempty"`
10255
10256
10257
10258
10259
10260 ForceSendFields []string `json:"-"`
10261
10262
10263
10264
10265 NullFields []string `json:"-"`
10266 }
10267
10268 func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
10269 type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
10270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10271 }
10272
10273
10274
10275 type GoogleCloudDocumentaiV1beta3ReviewDocumentRequest struct {
10276
10277 Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
10278
10279 DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
10280
10281
10282 EnableSchemaValidation bool `json:"enableSchemaValidation,omitempty"`
10283
10284 InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"`
10285
10286
10287
10288
10289
10290
10291 Priority string `json:"priority,omitempty"`
10292
10293
10294
10295
10296
10297 ForceSendFields []string `json:"-"`
10298
10299
10300
10301
10302 NullFields []string `json:"-"`
10303 }
10304
10305 func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest) MarshalJSON() ([]byte, error) {
10306 type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
10307 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10308 }
10309
10310
10311
10312 type GoogleCloudDocumentaiV1beta3ReviewDocumentResponse struct {
10313
10314
10315 GcsDestination string `json:"gcsDestination,omitempty"`
10316
10317 RejectionReason string `json:"rejectionReason,omitempty"`
10318
10319
10320
10321
10322
10323
10324
10325 State string `json:"state,omitempty"`
10326
10327
10328
10329
10330
10331 ForceSendFields []string `json:"-"`
10332
10333
10334
10335
10336 NullFields []string `json:"-"`
10337 }
10338
10339 func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
10340 type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
10341 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10342 }
10343
10344
10345
10346 type GoogleCloudDocumentaiV1beta3RevisionRef struct {
10347
10348
10349
10350
10351 LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"`
10352
10353
10354
10355
10356
10357
10358
10359
10360 RevisionCase string `json:"revisionCase,omitempty"`
10361
10362 RevisionId string `json:"revisionId,omitempty"`
10363
10364
10365
10366
10367
10368 ForceSendFields []string `json:"-"`
10369
10370
10371
10372
10373 NullFields []string `json:"-"`
10374 }
10375
10376 func (s *GoogleCloudDocumentaiV1beta3RevisionRef) MarshalJSON() ([]byte, error) {
10377 type NoMethod GoogleCloudDocumentaiV1beta3RevisionRef
10378 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10379 }
10380
10381
10382
10383 type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata struct {
10384
10385 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
10386
10387
10388
10389
10390
10391 ForceSendFields []string `json:"-"`
10392
10393
10394
10395
10396 NullFields []string `json:"-"`
10397 }
10398
10399 func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
10400 type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
10401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10402 }
10403
10404
10405
10406 type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest struct {
10407
10408
10409
10410
10411 DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
10412
10413
10414
10415
10416
10417 ForceSendFields []string `json:"-"`
10418
10419
10420
10421
10422 NullFields []string `json:"-"`
10423 }
10424
10425 func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest) MarshalJSON() ([]byte, error) {
10426 type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
10427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10428 }
10429
10430
10431
10432 type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse struct {
10433 }
10434
10435
10436
10437 type GoogleCloudDocumentaiV1beta3SummaryOptions struct {
10438
10439
10440
10441
10442
10443
10444 Format string `json:"format,omitempty"`
10445
10446
10447
10448
10449
10450
10451
10452 Length string `json:"length,omitempty"`
10453
10454
10455
10456
10457
10458 ForceSendFields []string `json:"-"`
10459
10460
10461
10462
10463 NullFields []string `json:"-"`
10464 }
10465
10466 func (s *GoogleCloudDocumentaiV1beta3SummaryOptions) MarshalJSON() ([]byte, error) {
10467 type NoMethod GoogleCloudDocumentaiV1beta3SummaryOptions
10468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10469 }
10470
10471
10472
10473 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata struct {
10474
10475 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
10476
10477 TestDatasetValidation *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
10478
10479 TrainingDatasetValidation *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
10480
10481
10482
10483
10484
10485 ForceSendFields []string `json:"-"`
10486
10487
10488
10489
10490 NullFields []string `json:"-"`
10491 }
10492
10493 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
10494 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
10495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10496 }
10497
10498
10499
10500
10501 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation struct {
10502
10503 DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
10504
10505
10506
10507 DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
10508
10509 DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
10510
10511
10512
10513 DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
10514
10515
10516
10517
10518
10519 ForceSendFields []string `json:"-"`
10520
10521
10522
10523
10524 NullFields []string `json:"-"`
10525 }
10526
10527 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
10528 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
10529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10530 }
10531
10532
10533
10534 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest struct {
10535
10536
10537
10538
10539 BaseProcessorVersion string `json:"baseProcessorVersion,omitempty"`
10540
10541
10542 CustomDocumentExtractionOptions *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions `json:"customDocumentExtractionOptions,omitempty"`
10543
10544
10545 DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
10546
10547
10548 FoundationModelTuningOptions *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions `json:"foundationModelTuningOptions,omitempty"`
10549
10550 InputData *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData `json:"inputData,omitempty"`
10551
10552 ProcessorVersion *GoogleCloudDocumentaiV1beta3ProcessorVersion `json:"processorVersion,omitempty"`
10553
10554
10555
10556
10557
10558 ForceSendFields []string `json:"-"`
10559
10560
10561
10562
10563 NullFields []string `json:"-"`
10564 }
10565
10566 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest) MarshalJSON() ([]byte, error) {
10567 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
10568 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10569 }
10570
10571
10572
10573
10574 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions struct {
10575
10576
10577
10578
10579
10580
10581 TrainingMethod string `json:"trainingMethod,omitempty"`
10582
10583
10584
10585
10586
10587 ForceSendFields []string `json:"-"`
10588
10589
10590
10591
10592 NullFields []string `json:"-"`
10593 }
10594
10595 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions) MarshalJSON() ([]byte, error) {
10596 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions
10597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10598 }
10599
10600
10601
10602 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions struct {
10603
10604
10605
10606 LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"`
10607
10608
10609
10610 TrainSteps int64 `json:"trainSteps,omitempty"`
10611
10612
10613
10614
10615
10616 ForceSendFields []string `json:"-"`
10617
10618
10619
10620
10621 NullFields []string `json:"-"`
10622 }
10623
10624 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions) MarshalJSON() ([]byte, error) {
10625 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
10626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10627 }
10628
10629 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions) UnmarshalJSON(data []byte) error {
10630 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
10631 var s1 struct {
10632 LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"`
10633 *NoMethod
10634 }
10635 s1.NoMethod = (*NoMethod)(s)
10636 if err := json.Unmarshal(data, &s1); err != nil {
10637 return err
10638 }
10639 s.LearningRateMultiplier = float64(s1.LearningRateMultiplier)
10640 return nil
10641 }
10642
10643
10644
10645 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData struct {
10646
10647 TestDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"testDocuments,omitempty"`
10648
10649 TrainingDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"trainingDocuments,omitempty"`
10650
10651
10652
10653
10654
10655 ForceSendFields []string `json:"-"`
10656
10657
10658
10659
10660 NullFields []string `json:"-"`
10661 }
10662
10663 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData) MarshalJSON() ([]byte, error) {
10664 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
10665 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10666 }
10667
10668
10669
10670 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse struct {
10671
10672
10673 ProcessorVersion string `json:"processorVersion,omitempty"`
10674
10675
10676
10677
10678
10679 ForceSendFields []string `json:"-"`
10680
10681
10682
10683
10684 NullFields []string `json:"-"`
10685 }
10686
10687 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
10688 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
10689 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10690 }
10691
10692
10693
10694 type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata struct {
10695
10696 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
10697
10698
10699
10700
10701
10702 ForceSendFields []string `json:"-"`
10703
10704
10705
10706
10707 NullFields []string `json:"-"`
10708 }
10709
10710 func (s *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
10711 type NoMethod GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
10712 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10713 }
10714
10715
10716
10717 type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest struct {
10718 }
10719
10720
10721
10722 type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse struct {
10723 }
10724
10725 type GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata struct {
10726
10727 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
10728
10729
10730
10731
10732
10733 ForceSendFields []string `json:"-"`
10734
10735
10736
10737
10738 NullFields []string `json:"-"`
10739 }
10740
10741 func (s *GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
10742 type NoMethod GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata
10743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10744 }
10745
10746
10747
10748
10749 type GoogleCloudDocumentaiV1beta3Vertex struct {
10750
10751 X int64 `json:"x,omitempty"`
10752
10753 Y int64 `json:"y,omitempty"`
10754
10755
10756
10757
10758
10759 ForceSendFields []string `json:"-"`
10760
10761
10762
10763
10764 NullFields []string `json:"-"`
10765 }
10766
10767 func (s *GoogleCloudDocumentaiV1beta3Vertex) MarshalJSON() ([]byte, error) {
10768 type NoMethod GoogleCloudDocumentaiV1beta3Vertex
10769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10770 }
10771
10772
10773
10774 type GoogleCloudLocationListLocationsResponse struct {
10775
10776
10777 Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
10778
10779 NextPageToken string `json:"nextPageToken,omitempty"`
10780
10781
10782 googleapi.ServerResponse `json:"-"`
10783
10784
10785
10786
10787
10788 ForceSendFields []string `json:"-"`
10789
10790
10791
10792
10793 NullFields []string `json:"-"`
10794 }
10795
10796 func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
10797 type NoMethod GoogleCloudLocationListLocationsResponse
10798 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10799 }
10800
10801
10802
10803 type GoogleCloudLocationLocation struct {
10804
10805
10806 DisplayName string `json:"displayName,omitempty"`
10807
10808
10809 Labels map[string]string `json:"labels,omitempty"`
10810
10811 LocationId string `json:"locationId,omitempty"`
10812
10813
10814 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
10815
10816
10817
10818 Name string `json:"name,omitempty"`
10819
10820
10821 googleapi.ServerResponse `json:"-"`
10822
10823
10824
10825
10826
10827 ForceSendFields []string `json:"-"`
10828
10829
10830
10831
10832 NullFields []string `json:"-"`
10833 }
10834
10835 func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
10836 type NoMethod GoogleCloudLocationLocation
10837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10838 }
10839
10840
10841
10842 type GoogleLongrunningListOperationsResponse struct {
10843
10844 NextPageToken string `json:"nextPageToken,omitempty"`
10845
10846
10847 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
10848
10849
10850 googleapi.ServerResponse `json:"-"`
10851
10852
10853
10854
10855
10856 ForceSendFields []string `json:"-"`
10857
10858
10859
10860
10861 NullFields []string `json:"-"`
10862 }
10863
10864 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
10865 type NoMethod GoogleLongrunningListOperationsResponse
10866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10867 }
10868
10869
10870
10871 type GoogleLongrunningOperation struct {
10872
10873
10874
10875 Done bool `json:"done,omitempty"`
10876
10877 Error *GoogleRpcStatus `json:"error,omitempty"`
10878
10879
10880
10881
10882 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
10883
10884
10885
10886 Name string `json:"name,omitempty"`
10887
10888
10889
10890
10891
10892
10893
10894 Response googleapi.RawMessage `json:"response,omitempty"`
10895
10896
10897 googleapi.ServerResponse `json:"-"`
10898
10899
10900
10901
10902
10903 ForceSendFields []string `json:"-"`
10904
10905
10906
10907
10908 NullFields []string `json:"-"`
10909 }
10910
10911 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
10912 type NoMethod GoogleLongrunningOperation
10913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10914 }
10915
10916
10917
10918
10919
10920
10921 type GoogleProtobufEmpty struct {
10922
10923 googleapi.ServerResponse `json:"-"`
10924 }
10925
10926
10927
10928
10929
10930
10931
10932 type GoogleRpcStatus struct {
10933
10934 Code int64 `json:"code,omitempty"`
10935
10936
10937 Details []googleapi.RawMessage `json:"details,omitempty"`
10938
10939
10940
10941 Message string `json:"message,omitempty"`
10942
10943
10944
10945
10946
10947 ForceSendFields []string `json:"-"`
10948
10949
10950
10951
10952 NullFields []string `json:"-"`
10953 }
10954
10955 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
10956 type NoMethod GoogleRpcStatus
10957 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10958 }
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008 type GoogleTypeColor struct {
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 Alpha float64 `json:"alpha,omitempty"`
11019
11020 Blue float64 `json:"blue,omitempty"`
11021
11022 Green float64 `json:"green,omitempty"`
11023
11024 Red float64 `json:"red,omitempty"`
11025
11026
11027
11028
11029
11030 ForceSendFields []string `json:"-"`
11031
11032
11033
11034
11035 NullFields []string `json:"-"`
11036 }
11037
11038 func (s *GoogleTypeColor) MarshalJSON() ([]byte, error) {
11039 type NoMethod GoogleTypeColor
11040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11041 }
11042
11043 func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error {
11044 type NoMethod GoogleTypeColor
11045 var s1 struct {
11046 Alpha gensupport.JSONFloat64 `json:"alpha"`
11047 Blue gensupport.JSONFloat64 `json:"blue"`
11048 Green gensupport.JSONFloat64 `json:"green"`
11049 Red gensupport.JSONFloat64 `json:"red"`
11050 *NoMethod
11051 }
11052 s1.NoMethod = (*NoMethod)(s)
11053 if err := json.Unmarshal(data, &s1); err != nil {
11054 return err
11055 }
11056 s.Alpha = float64(s1.Alpha)
11057 s.Blue = float64(s1.Blue)
11058 s.Green = float64(s1.Green)
11059 s.Red = float64(s1.Red)
11060 return nil
11061 }
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072 type GoogleTypeDate struct {
11073
11074
11075
11076 Day int64 `json:"day,omitempty"`
11077
11078
11079 Month int64 `json:"month,omitempty"`
11080
11081
11082 Year int64 `json:"year,omitempty"`
11083
11084
11085
11086
11087
11088 ForceSendFields []string `json:"-"`
11089
11090
11091
11092
11093 NullFields []string `json:"-"`
11094 }
11095
11096 func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
11097 type NoMethod GoogleTypeDate
11098 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11099 }
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116 type GoogleTypeDateTime struct {
11117
11118
11119 Day int64 `json:"day,omitempty"`
11120
11121
11122
11123 Hours int64 `json:"hours,omitempty"`
11124
11125
11126 Minutes int64 `json:"minutes,omitempty"`
11127
11128
11129 Month int64 `json:"month,omitempty"`
11130
11131
11132 Nanos int64 `json:"nanos,omitempty"`
11133
11134
11135
11136 Seconds int64 `json:"seconds,omitempty"`
11137
11138 TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"`
11139
11140
11141
11142 UtcOffset string `json:"utcOffset,omitempty"`
11143
11144
11145 Year int64 `json:"year,omitempty"`
11146
11147
11148
11149
11150
11151 ForceSendFields []string `json:"-"`
11152
11153
11154
11155
11156 NullFields []string `json:"-"`
11157 }
11158
11159 func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) {
11160 type NoMethod GoogleTypeDateTime
11161 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11162 }
11163
11164
11165 type GoogleTypeMoney struct {
11166
11167 CurrencyCode string `json:"currencyCode,omitempty"`
11168
11169
11170
11171
11172
11173 Nanos int64 `json:"nanos,omitempty"`
11174
11175
11176 Units int64 `json:"units,omitempty,string"`
11177
11178
11179
11180
11181
11182 ForceSendFields []string `json:"-"`
11183
11184
11185
11186
11187 NullFields []string `json:"-"`
11188 }
11189
11190 func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
11191 type NoMethod GoogleTypeMoney
11192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11193 }
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 type GoogleTypePostalAddress struct {
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224 AddressLines []string `json:"addressLines,omitempty"`
11225
11226
11227
11228
11229
11230
11231 AdministrativeArea string `json:"administrativeArea,omitempty"`
11232
11233
11234
11235
11236
11237
11238
11239
11240 LanguageCode string `json:"languageCode,omitempty"`
11241
11242
11243
11244
11245 Locality string `json:"locality,omitempty"`
11246
11247 Organization string `json:"organization,omitempty"`
11248
11249
11250
11251
11252 PostalCode string `json:"postalCode,omitempty"`
11253
11254
11255
11256 Recipients []string `json:"recipients,omitempty"`
11257
11258
11259
11260
11261
11262 RegionCode string `json:"regionCode,omitempty"`
11263
11264
11265
11266 Revision int64 `json:"revision,omitempty"`
11267
11268
11269
11270
11271
11272 SortingCode string `json:"sortingCode,omitempty"`
11273
11274
11275 Sublocality string `json:"sublocality,omitempty"`
11276
11277
11278
11279
11280
11281 ForceSendFields []string `json:"-"`
11282
11283
11284
11285
11286 NullFields []string `json:"-"`
11287 }
11288
11289 func (s *GoogleTypePostalAddress) MarshalJSON() ([]byte, error) {
11290 type NoMethod GoogleTypePostalAddress
11291 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11292 }
11293
11294
11295
11296 type GoogleTypeTimeZone struct {
11297
11298 Id string `json:"id,omitempty"`
11299
11300 Version string `json:"version,omitempty"`
11301
11302
11303
11304
11305
11306 ForceSendFields []string `json:"-"`
11307
11308
11309
11310
11311 NullFields []string `json:"-"`
11312 }
11313
11314 func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) {
11315 type NoMethod GoogleTypeTimeZone
11316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11317 }
11318
11319 type ProjectsLocationsFetchProcessorTypesCall struct {
11320 s *Service
11321 parent string
11322 urlParams_ gensupport.URLParams
11323 ifNoneMatch_ string
11324 ctx_ context.Context
11325 header_ http.Header
11326 }
11327
11328
11329
11330
11331
11332
11333 func (r *ProjectsLocationsService) FetchProcessorTypes(parent string) *ProjectsLocationsFetchProcessorTypesCall {
11334 c := &ProjectsLocationsFetchProcessorTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11335 c.parent = parent
11336 return c
11337 }
11338
11339
11340
11341
11342 func (c *ProjectsLocationsFetchProcessorTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFetchProcessorTypesCall {
11343 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11344 return c
11345 }
11346
11347
11348
11349
11350 func (c *ProjectsLocationsFetchProcessorTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFetchProcessorTypesCall {
11351 c.ifNoneMatch_ = entityTag
11352 return c
11353 }
11354
11355
11356 func (c *ProjectsLocationsFetchProcessorTypesCall) Context(ctx context.Context) *ProjectsLocationsFetchProcessorTypesCall {
11357 c.ctx_ = ctx
11358 return c
11359 }
11360
11361
11362
11363 func (c *ProjectsLocationsFetchProcessorTypesCall) Header() http.Header {
11364 if c.header_ == nil {
11365 c.header_ = make(http.Header)
11366 }
11367 return c.header_
11368 }
11369
11370 func (c *ProjectsLocationsFetchProcessorTypesCall) doRequest(alt string) (*http.Response, error) {
11371 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11372 if c.ifNoneMatch_ != "" {
11373 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11374 }
11375 var body io.Reader = nil
11376 c.urlParams_.Set("alt", alt)
11377 c.urlParams_.Set("prettyPrint", "false")
11378 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}:fetchProcessorTypes")
11379 urls += "?" + c.urlParams_.Encode()
11380 req, err := http.NewRequest("GET", urls, body)
11381 if err != nil {
11382 return nil, err
11383 }
11384 req.Header = reqHeaders
11385 googleapi.Expand(req.URL, map[string]string{
11386 "parent": c.parent,
11387 })
11388 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11389 }
11390
11391
11392
11393
11394
11395
11396
11397 func (c *ProjectsLocationsFetchProcessorTypesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse, error) {
11398 gensupport.SetOptions(c.urlParams_, opts...)
11399 res, err := c.doRequest("json")
11400 if res != nil && res.StatusCode == http.StatusNotModified {
11401 if res.Body != nil {
11402 res.Body.Close()
11403 }
11404 return nil, gensupport.WrapError(&googleapi.Error{
11405 Code: res.StatusCode,
11406 Header: res.Header,
11407 })
11408 }
11409 if err != nil {
11410 return nil, err
11411 }
11412 defer googleapi.CloseBody(res)
11413 if err := googleapi.CheckResponse(res); err != nil {
11414 return nil, gensupport.WrapError(err)
11415 }
11416 ret := &GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse{
11417 ServerResponse: googleapi.ServerResponse{
11418 Header: res.Header,
11419 HTTPStatusCode: res.StatusCode,
11420 },
11421 }
11422 target := &ret
11423 if err := gensupport.DecodeResponse(target, res); err != nil {
11424 return nil, err
11425 }
11426 return ret, nil
11427 }
11428
11429 type ProjectsLocationsGetCall struct {
11430 s *Service
11431 name string
11432 urlParams_ gensupport.URLParams
11433 ifNoneMatch_ string
11434 ctx_ context.Context
11435 header_ http.Header
11436 }
11437
11438
11439
11440
11441 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
11442 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11443 c.name = name
11444 return c
11445 }
11446
11447
11448
11449
11450 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
11451 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11452 return c
11453 }
11454
11455
11456
11457
11458 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
11459 c.ifNoneMatch_ = entityTag
11460 return c
11461 }
11462
11463
11464 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
11465 c.ctx_ = ctx
11466 return c
11467 }
11468
11469
11470
11471 func (c *ProjectsLocationsGetCall) Header() http.Header {
11472 if c.header_ == nil {
11473 c.header_ = make(http.Header)
11474 }
11475 return c.header_
11476 }
11477
11478 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
11479 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11480 if c.ifNoneMatch_ != "" {
11481 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11482 }
11483 var body io.Reader = nil
11484 c.urlParams_.Set("alt", alt)
11485 c.urlParams_.Set("prettyPrint", "false")
11486 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
11487 urls += "?" + c.urlParams_.Encode()
11488 req, err := http.NewRequest("GET", urls, body)
11489 if err != nil {
11490 return nil, err
11491 }
11492 req.Header = reqHeaders
11493 googleapi.Expand(req.URL, map[string]string{
11494 "name": c.name,
11495 })
11496 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11497 }
11498
11499
11500
11501
11502
11503
11504
11505 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
11506 gensupport.SetOptions(c.urlParams_, opts...)
11507 res, err := c.doRequest("json")
11508 if res != nil && res.StatusCode == http.StatusNotModified {
11509 if res.Body != nil {
11510 res.Body.Close()
11511 }
11512 return nil, gensupport.WrapError(&googleapi.Error{
11513 Code: res.StatusCode,
11514 Header: res.Header,
11515 })
11516 }
11517 if err != nil {
11518 return nil, err
11519 }
11520 defer googleapi.CloseBody(res)
11521 if err := googleapi.CheckResponse(res); err != nil {
11522 return nil, gensupport.WrapError(err)
11523 }
11524 ret := &GoogleCloudLocationLocation{
11525 ServerResponse: googleapi.ServerResponse{
11526 Header: res.Header,
11527 HTTPStatusCode: res.StatusCode,
11528 },
11529 }
11530 target := &ret
11531 if err := gensupport.DecodeResponse(target, res); err != nil {
11532 return nil, err
11533 }
11534 return ret, nil
11535 }
11536
11537 type ProjectsLocationsListCall struct {
11538 s *Service
11539 name string
11540 urlParams_ gensupport.URLParams
11541 ifNoneMatch_ string
11542 ctx_ context.Context
11543 header_ http.Header
11544 }
11545
11546
11547
11548
11549 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
11550 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11551 c.name = name
11552 return c
11553 }
11554
11555
11556
11557
11558
11559 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
11560 c.urlParams_.Set("filter", filter)
11561 return c
11562 }
11563
11564
11565
11566 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
11567 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11568 return c
11569 }
11570
11571
11572
11573
11574 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
11575 c.urlParams_.Set("pageToken", pageToken)
11576 return c
11577 }
11578
11579
11580
11581
11582 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
11583 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11584 return c
11585 }
11586
11587
11588
11589
11590 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
11591 c.ifNoneMatch_ = entityTag
11592 return c
11593 }
11594
11595
11596 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
11597 c.ctx_ = ctx
11598 return c
11599 }
11600
11601
11602
11603 func (c *ProjectsLocationsListCall) Header() http.Header {
11604 if c.header_ == nil {
11605 c.header_ = make(http.Header)
11606 }
11607 return c.header_
11608 }
11609
11610 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
11611 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11612 if c.ifNoneMatch_ != "" {
11613 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11614 }
11615 var body io.Reader = nil
11616 c.urlParams_.Set("alt", alt)
11617 c.urlParams_.Set("prettyPrint", "false")
11618 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}/locations")
11619 urls += "?" + c.urlParams_.Encode()
11620 req, err := http.NewRequest("GET", urls, body)
11621 if err != nil {
11622 return nil, err
11623 }
11624 req.Header = reqHeaders
11625 googleapi.Expand(req.URL, map[string]string{
11626 "name": c.name,
11627 })
11628 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11629 }
11630
11631
11632
11633
11634
11635
11636
11637 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
11638 gensupport.SetOptions(c.urlParams_, opts...)
11639 res, err := c.doRequest("json")
11640 if res != nil && res.StatusCode == http.StatusNotModified {
11641 if res.Body != nil {
11642 res.Body.Close()
11643 }
11644 return nil, gensupport.WrapError(&googleapi.Error{
11645 Code: res.StatusCode,
11646 Header: res.Header,
11647 })
11648 }
11649 if err != nil {
11650 return nil, err
11651 }
11652 defer googleapi.CloseBody(res)
11653 if err := googleapi.CheckResponse(res); err != nil {
11654 return nil, gensupport.WrapError(err)
11655 }
11656 ret := &GoogleCloudLocationListLocationsResponse{
11657 ServerResponse: googleapi.ServerResponse{
11658 Header: res.Header,
11659 HTTPStatusCode: res.StatusCode,
11660 },
11661 }
11662 target := &ret
11663 if err := gensupport.DecodeResponse(target, res); err != nil {
11664 return nil, err
11665 }
11666 return ret, nil
11667 }
11668
11669
11670
11671
11672 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
11673 c.ctx_ = ctx
11674 defer c.PageToken(c.urlParams_.Get("pageToken"))
11675 for {
11676 x, err := c.Do()
11677 if err != nil {
11678 return err
11679 }
11680 if err := f(x); err != nil {
11681 return err
11682 }
11683 if x.NextPageToken == "" {
11684 return nil
11685 }
11686 c.PageToken(x.NextPageToken)
11687 }
11688 }
11689
11690 type ProjectsLocationsOperationsCancelCall struct {
11691 s *Service
11692 name string
11693 urlParams_ gensupport.URLParams
11694 ctx_ context.Context
11695 header_ http.Header
11696 }
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
11710 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11711 c.name = name
11712 return c
11713 }
11714
11715
11716
11717
11718 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
11719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11720 return c
11721 }
11722
11723
11724 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
11725 c.ctx_ = ctx
11726 return c
11727 }
11728
11729
11730
11731 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
11732 if c.header_ == nil {
11733 c.header_ = make(http.Header)
11734 }
11735 return c.header_
11736 }
11737
11738 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
11739 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11740 var body io.Reader = nil
11741 c.urlParams_.Set("alt", alt)
11742 c.urlParams_.Set("prettyPrint", "false")
11743 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:cancel")
11744 urls += "?" + c.urlParams_.Encode()
11745 req, err := http.NewRequest("POST", urls, body)
11746 if err != nil {
11747 return nil, err
11748 }
11749 req.Header = reqHeaders
11750 googleapi.Expand(req.URL, map[string]string{
11751 "name": c.name,
11752 })
11753 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11754 }
11755
11756
11757
11758
11759
11760
11761
11762 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11763 gensupport.SetOptions(c.urlParams_, opts...)
11764 res, err := c.doRequest("json")
11765 if res != nil && res.StatusCode == http.StatusNotModified {
11766 if res.Body != nil {
11767 res.Body.Close()
11768 }
11769 return nil, gensupport.WrapError(&googleapi.Error{
11770 Code: res.StatusCode,
11771 Header: res.Header,
11772 })
11773 }
11774 if err != nil {
11775 return nil, err
11776 }
11777 defer googleapi.CloseBody(res)
11778 if err := googleapi.CheckResponse(res); err != nil {
11779 return nil, gensupport.WrapError(err)
11780 }
11781 ret := &GoogleProtobufEmpty{
11782 ServerResponse: googleapi.ServerResponse{
11783 Header: res.Header,
11784 HTTPStatusCode: res.StatusCode,
11785 },
11786 }
11787 target := &ret
11788 if err := gensupport.DecodeResponse(target, res); err != nil {
11789 return nil, err
11790 }
11791 return ret, nil
11792 }
11793
11794 type ProjectsLocationsOperationsGetCall struct {
11795 s *Service
11796 name string
11797 urlParams_ gensupport.URLParams
11798 ifNoneMatch_ string
11799 ctx_ context.Context
11800 header_ http.Header
11801 }
11802
11803
11804
11805
11806
11807
11808 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
11809 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11810 c.name = name
11811 return c
11812 }
11813
11814
11815
11816
11817 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
11818 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11819 return c
11820 }
11821
11822
11823
11824
11825 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
11826 c.ifNoneMatch_ = entityTag
11827 return c
11828 }
11829
11830
11831 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
11832 c.ctx_ = ctx
11833 return c
11834 }
11835
11836
11837
11838 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
11839 if c.header_ == nil {
11840 c.header_ = make(http.Header)
11841 }
11842 return c.header_
11843 }
11844
11845 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
11846 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11847 if c.ifNoneMatch_ != "" {
11848 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11849 }
11850 var body io.Reader = nil
11851 c.urlParams_.Set("alt", alt)
11852 c.urlParams_.Set("prettyPrint", "false")
11853 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
11854 urls += "?" + c.urlParams_.Encode()
11855 req, err := http.NewRequest("GET", urls, body)
11856 if err != nil {
11857 return nil, err
11858 }
11859 req.Header = reqHeaders
11860 googleapi.Expand(req.URL, map[string]string{
11861 "name": c.name,
11862 })
11863 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11864 }
11865
11866
11867
11868
11869
11870
11871
11872 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11873 gensupport.SetOptions(c.urlParams_, opts...)
11874 res, err := c.doRequest("json")
11875 if res != nil && res.StatusCode == http.StatusNotModified {
11876 if res.Body != nil {
11877 res.Body.Close()
11878 }
11879 return nil, gensupport.WrapError(&googleapi.Error{
11880 Code: res.StatusCode,
11881 Header: res.Header,
11882 })
11883 }
11884 if err != nil {
11885 return nil, err
11886 }
11887 defer googleapi.CloseBody(res)
11888 if err := googleapi.CheckResponse(res); err != nil {
11889 return nil, gensupport.WrapError(err)
11890 }
11891 ret := &GoogleLongrunningOperation{
11892 ServerResponse: googleapi.ServerResponse{
11893 Header: res.Header,
11894 HTTPStatusCode: res.StatusCode,
11895 },
11896 }
11897 target := &ret
11898 if err := gensupport.DecodeResponse(target, res); err != nil {
11899 return nil, err
11900 }
11901 return ret, nil
11902 }
11903
11904 type ProjectsLocationsOperationsListCall struct {
11905 s *Service
11906 name string
11907 urlParams_ gensupport.URLParams
11908 ifNoneMatch_ string
11909 ctx_ context.Context
11910 header_ http.Header
11911 }
11912
11913
11914
11915
11916
11917 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
11918 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11919 c.name = name
11920 return c
11921 }
11922
11923
11924 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
11925 c.urlParams_.Set("filter", filter)
11926 return c
11927 }
11928
11929
11930
11931 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
11932 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11933 return c
11934 }
11935
11936
11937
11938 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
11939 c.urlParams_.Set("pageToken", pageToken)
11940 return c
11941 }
11942
11943
11944
11945
11946 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
11947 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11948 return c
11949 }
11950
11951
11952
11953
11954 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
11955 c.ifNoneMatch_ = entityTag
11956 return c
11957 }
11958
11959
11960 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
11961 c.ctx_ = ctx
11962 return c
11963 }
11964
11965
11966
11967 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
11968 if c.header_ == nil {
11969 c.header_ = make(http.Header)
11970 }
11971 return c.header_
11972 }
11973
11974 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
11975 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11976 if c.ifNoneMatch_ != "" {
11977 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11978 }
11979 var body io.Reader = nil
11980 c.urlParams_.Set("alt", alt)
11981 c.urlParams_.Set("prettyPrint", "false")
11982 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
11983 urls += "?" + c.urlParams_.Encode()
11984 req, err := http.NewRequest("GET", urls, body)
11985 if err != nil {
11986 return nil, err
11987 }
11988 req.Header = reqHeaders
11989 googleapi.Expand(req.URL, map[string]string{
11990 "name": c.name,
11991 })
11992 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11993 }
11994
11995
11996
11997
11998
11999
12000
12001 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
12002 gensupport.SetOptions(c.urlParams_, opts...)
12003 res, err := c.doRequest("json")
12004 if res != nil && res.StatusCode == http.StatusNotModified {
12005 if res.Body != nil {
12006 res.Body.Close()
12007 }
12008 return nil, gensupport.WrapError(&googleapi.Error{
12009 Code: res.StatusCode,
12010 Header: res.Header,
12011 })
12012 }
12013 if err != nil {
12014 return nil, err
12015 }
12016 defer googleapi.CloseBody(res)
12017 if err := googleapi.CheckResponse(res); err != nil {
12018 return nil, gensupport.WrapError(err)
12019 }
12020 ret := &GoogleLongrunningListOperationsResponse{
12021 ServerResponse: googleapi.ServerResponse{
12022 Header: res.Header,
12023 HTTPStatusCode: res.StatusCode,
12024 },
12025 }
12026 target := &ret
12027 if err := gensupport.DecodeResponse(target, res); err != nil {
12028 return nil, err
12029 }
12030 return ret, nil
12031 }
12032
12033
12034
12035
12036 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
12037 c.ctx_ = ctx
12038 defer c.PageToken(c.urlParams_.Get("pageToken"))
12039 for {
12040 x, err := c.Do()
12041 if err != nil {
12042 return err
12043 }
12044 if err := f(x); err != nil {
12045 return err
12046 }
12047 if x.NextPageToken == "" {
12048 return nil
12049 }
12050 c.PageToken(x.NextPageToken)
12051 }
12052 }
12053
12054 type ProjectsLocationsProcessorTypesGetCall struct {
12055 s *Service
12056 name string
12057 urlParams_ gensupport.URLParams
12058 ifNoneMatch_ string
12059 ctx_ context.Context
12060 header_ http.Header
12061 }
12062
12063
12064
12065
12066 func (r *ProjectsLocationsProcessorTypesService) Get(name string) *ProjectsLocationsProcessorTypesGetCall {
12067 c := &ProjectsLocationsProcessorTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12068 c.name = name
12069 return c
12070 }
12071
12072
12073
12074
12075 func (c *ProjectsLocationsProcessorTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorTypesGetCall {
12076 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12077 return c
12078 }
12079
12080
12081
12082
12083 func (c *ProjectsLocationsProcessorTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorTypesGetCall {
12084 c.ifNoneMatch_ = entityTag
12085 return c
12086 }
12087
12088
12089 func (c *ProjectsLocationsProcessorTypesGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorTypesGetCall {
12090 c.ctx_ = ctx
12091 return c
12092 }
12093
12094
12095
12096 func (c *ProjectsLocationsProcessorTypesGetCall) Header() http.Header {
12097 if c.header_ == nil {
12098 c.header_ = make(http.Header)
12099 }
12100 return c.header_
12101 }
12102
12103 func (c *ProjectsLocationsProcessorTypesGetCall) doRequest(alt string) (*http.Response, error) {
12104 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12105 if c.ifNoneMatch_ != "" {
12106 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12107 }
12108 var body io.Reader = nil
12109 c.urlParams_.Set("alt", alt)
12110 c.urlParams_.Set("prettyPrint", "false")
12111 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
12112 urls += "?" + c.urlParams_.Encode()
12113 req, err := http.NewRequest("GET", urls, body)
12114 if err != nil {
12115 return nil, err
12116 }
12117 req.Header = reqHeaders
12118 googleapi.Expand(req.URL, map[string]string{
12119 "name": c.name,
12120 })
12121 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12122 }
12123
12124
12125
12126
12127
12128
12129
12130 func (c *ProjectsLocationsProcessorTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessorType, error) {
12131 gensupport.SetOptions(c.urlParams_, opts...)
12132 res, err := c.doRequest("json")
12133 if res != nil && res.StatusCode == http.StatusNotModified {
12134 if res.Body != nil {
12135 res.Body.Close()
12136 }
12137 return nil, gensupport.WrapError(&googleapi.Error{
12138 Code: res.StatusCode,
12139 Header: res.Header,
12140 })
12141 }
12142 if err != nil {
12143 return nil, err
12144 }
12145 defer googleapi.CloseBody(res)
12146 if err := googleapi.CheckResponse(res); err != nil {
12147 return nil, gensupport.WrapError(err)
12148 }
12149 ret := &GoogleCloudDocumentaiV1beta3ProcessorType{
12150 ServerResponse: googleapi.ServerResponse{
12151 Header: res.Header,
12152 HTTPStatusCode: res.StatusCode,
12153 },
12154 }
12155 target := &ret
12156 if err := gensupport.DecodeResponse(target, res); err != nil {
12157 return nil, err
12158 }
12159 return ret, nil
12160 }
12161
12162 type ProjectsLocationsProcessorTypesListCall struct {
12163 s *Service
12164 parent string
12165 urlParams_ gensupport.URLParams
12166 ifNoneMatch_ string
12167 ctx_ context.Context
12168 header_ http.Header
12169 }
12170
12171
12172
12173
12174
12175 func (r *ProjectsLocationsProcessorTypesService) List(parent string) *ProjectsLocationsProcessorTypesListCall {
12176 c := &ProjectsLocationsProcessorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12177 c.parent = parent
12178 return c
12179 }
12180
12181
12182
12183
12184
12185 func (c *ProjectsLocationsProcessorTypesListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorTypesListCall {
12186 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12187 return c
12188 }
12189
12190
12191
12192 func (c *ProjectsLocationsProcessorTypesListCall) PageToken(pageToken string) *ProjectsLocationsProcessorTypesListCall {
12193 c.urlParams_.Set("pageToken", pageToken)
12194 return c
12195 }
12196
12197
12198
12199
12200 func (c *ProjectsLocationsProcessorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorTypesListCall {
12201 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12202 return c
12203 }
12204
12205
12206
12207
12208 func (c *ProjectsLocationsProcessorTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorTypesListCall {
12209 c.ifNoneMatch_ = entityTag
12210 return c
12211 }
12212
12213
12214 func (c *ProjectsLocationsProcessorTypesListCall) Context(ctx context.Context) *ProjectsLocationsProcessorTypesListCall {
12215 c.ctx_ = ctx
12216 return c
12217 }
12218
12219
12220
12221 func (c *ProjectsLocationsProcessorTypesListCall) Header() http.Header {
12222 if c.header_ == nil {
12223 c.header_ = make(http.Header)
12224 }
12225 return c.header_
12226 }
12227
12228 func (c *ProjectsLocationsProcessorTypesListCall) doRequest(alt string) (*http.Response, error) {
12229 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12230 if c.ifNoneMatch_ != "" {
12231 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12232 }
12233 var body io.Reader = nil
12234 c.urlParams_.Set("alt", alt)
12235 c.urlParams_.Set("prettyPrint", "false")
12236 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorTypes")
12237 urls += "?" + c.urlParams_.Encode()
12238 req, err := http.NewRequest("GET", urls, body)
12239 if err != nil {
12240 return nil, err
12241 }
12242 req.Header = reqHeaders
12243 googleapi.Expand(req.URL, map[string]string{
12244 "parent": c.parent,
12245 })
12246 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12247 }
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257 func (c *ProjectsLocationsProcessorTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse, error) {
12258 gensupport.SetOptions(c.urlParams_, opts...)
12259 res, err := c.doRequest("json")
12260 if res != nil && res.StatusCode == http.StatusNotModified {
12261 if res.Body != nil {
12262 res.Body.Close()
12263 }
12264 return nil, gensupport.WrapError(&googleapi.Error{
12265 Code: res.StatusCode,
12266 Header: res.Header,
12267 })
12268 }
12269 if err != nil {
12270 return nil, err
12271 }
12272 defer googleapi.CloseBody(res)
12273 if err := googleapi.CheckResponse(res); err != nil {
12274 return nil, gensupport.WrapError(err)
12275 }
12276 ret := &GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse{
12277 ServerResponse: googleapi.ServerResponse{
12278 Header: res.Header,
12279 HTTPStatusCode: res.StatusCode,
12280 },
12281 }
12282 target := &ret
12283 if err := gensupport.DecodeResponse(target, res); err != nil {
12284 return nil, err
12285 }
12286 return ret, nil
12287 }
12288
12289
12290
12291
12292 func (c *ProjectsLocationsProcessorTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse) error) error {
12293 c.ctx_ = ctx
12294 defer c.PageToken(c.urlParams_.Get("pageToken"))
12295 for {
12296 x, err := c.Do()
12297 if err != nil {
12298 return err
12299 }
12300 if err := f(x); err != nil {
12301 return err
12302 }
12303 if x.NextPageToken == "" {
12304 return nil
12305 }
12306 c.PageToken(x.NextPageToken)
12307 }
12308 }
12309
12310 type ProjectsLocationsProcessorsBatchProcessCall struct {
12311 s *Service
12312 name string
12313 googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest
12314 urlParams_ gensupport.URLParams
12315 ctx_ context.Context
12316 header_ http.Header
12317 }
12318
12319
12320
12321
12322
12323
12324
12325
12326 func (r *ProjectsLocationsProcessorsService) BatchProcess(name string, googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest) *ProjectsLocationsProcessorsBatchProcessCall {
12327 c := &ProjectsLocationsProcessorsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12328 c.name = name
12329 c.googleclouddocumentaiv1beta3batchprocessrequest = googleclouddocumentaiv1beta3batchprocessrequest
12330 return c
12331 }
12332
12333
12334
12335
12336 func (c *ProjectsLocationsProcessorsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsBatchProcessCall {
12337 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12338 return c
12339 }
12340
12341
12342 func (c *ProjectsLocationsProcessorsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsBatchProcessCall {
12343 c.ctx_ = ctx
12344 return c
12345 }
12346
12347
12348
12349 func (c *ProjectsLocationsProcessorsBatchProcessCall) Header() http.Header {
12350 if c.header_ == nil {
12351 c.header_ = make(http.Header)
12352 }
12353 return c.header_
12354 }
12355
12356 func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
12357 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12358 var body io.Reader = nil
12359 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchprocessrequest)
12360 if err != nil {
12361 return nil, err
12362 }
12363 c.urlParams_.Set("alt", alt)
12364 c.urlParams_.Set("prettyPrint", "false")
12365 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:batchProcess")
12366 urls += "?" + c.urlParams_.Encode()
12367 req, err := http.NewRequest("POST", urls, body)
12368 if err != nil {
12369 return nil, err
12370 }
12371 req.Header = reqHeaders
12372 googleapi.Expand(req.URL, map[string]string{
12373 "name": c.name,
12374 })
12375 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12376 }
12377
12378
12379
12380
12381
12382
12383
12384 func (c *ProjectsLocationsProcessorsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12385 gensupport.SetOptions(c.urlParams_, opts...)
12386 res, err := c.doRequest("json")
12387 if res != nil && res.StatusCode == http.StatusNotModified {
12388 if res.Body != nil {
12389 res.Body.Close()
12390 }
12391 return nil, gensupport.WrapError(&googleapi.Error{
12392 Code: res.StatusCode,
12393 Header: res.Header,
12394 })
12395 }
12396 if err != nil {
12397 return nil, err
12398 }
12399 defer googleapi.CloseBody(res)
12400 if err := googleapi.CheckResponse(res); err != nil {
12401 return nil, gensupport.WrapError(err)
12402 }
12403 ret := &GoogleLongrunningOperation{
12404 ServerResponse: googleapi.ServerResponse{
12405 Header: res.Header,
12406 HTTPStatusCode: res.StatusCode,
12407 },
12408 }
12409 target := &ret
12410 if err := gensupport.DecodeResponse(target, res); err != nil {
12411 return nil, err
12412 }
12413 return ret, nil
12414 }
12415
12416 type ProjectsLocationsProcessorsCreateCall struct {
12417 s *Service
12418 parent string
12419 googleclouddocumentaiv1beta3processor *GoogleCloudDocumentaiV1beta3Processor
12420 urlParams_ gensupport.URLParams
12421 ctx_ context.Context
12422 header_ http.Header
12423 }
12424
12425
12426
12427
12428
12429
12430 func (r *ProjectsLocationsProcessorsService) Create(parent string, googleclouddocumentaiv1beta3processor *GoogleCloudDocumentaiV1beta3Processor) *ProjectsLocationsProcessorsCreateCall {
12431 c := &ProjectsLocationsProcessorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12432 c.parent = parent
12433 c.googleclouddocumentaiv1beta3processor = googleclouddocumentaiv1beta3processor
12434 return c
12435 }
12436
12437
12438
12439
12440 func (c *ProjectsLocationsProcessorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsCreateCall {
12441 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12442 return c
12443 }
12444
12445
12446 func (c *ProjectsLocationsProcessorsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessorsCreateCall {
12447 c.ctx_ = ctx
12448 return c
12449 }
12450
12451
12452
12453 func (c *ProjectsLocationsProcessorsCreateCall) Header() http.Header {
12454 if c.header_ == nil {
12455 c.header_ = make(http.Header)
12456 }
12457 return c.header_
12458 }
12459
12460 func (c *ProjectsLocationsProcessorsCreateCall) doRequest(alt string) (*http.Response, error) {
12461 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12462 var body io.Reader = nil
12463 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processor)
12464 if err != nil {
12465 return nil, err
12466 }
12467 c.urlParams_.Set("alt", alt)
12468 c.urlParams_.Set("prettyPrint", "false")
12469 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processors")
12470 urls += "?" + c.urlParams_.Encode()
12471 req, err := http.NewRequest("POST", urls, body)
12472 if err != nil {
12473 return nil, err
12474 }
12475 req.Header = reqHeaders
12476 googleapi.Expand(req.URL, map[string]string{
12477 "parent": c.parent,
12478 })
12479 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12480 }
12481
12482
12483
12484
12485
12486
12487
12488 func (c *ProjectsLocationsProcessorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Processor, error) {
12489 gensupport.SetOptions(c.urlParams_, opts...)
12490 res, err := c.doRequest("json")
12491 if res != nil && res.StatusCode == http.StatusNotModified {
12492 if res.Body != nil {
12493 res.Body.Close()
12494 }
12495 return nil, gensupport.WrapError(&googleapi.Error{
12496 Code: res.StatusCode,
12497 Header: res.Header,
12498 })
12499 }
12500 if err != nil {
12501 return nil, err
12502 }
12503 defer googleapi.CloseBody(res)
12504 if err := googleapi.CheckResponse(res); err != nil {
12505 return nil, gensupport.WrapError(err)
12506 }
12507 ret := &GoogleCloudDocumentaiV1beta3Processor{
12508 ServerResponse: googleapi.ServerResponse{
12509 Header: res.Header,
12510 HTTPStatusCode: res.StatusCode,
12511 },
12512 }
12513 target := &ret
12514 if err := gensupport.DecodeResponse(target, res); err != nil {
12515 return nil, err
12516 }
12517 return ret, nil
12518 }
12519
12520 type ProjectsLocationsProcessorsDeleteCall struct {
12521 s *Service
12522 name string
12523 urlParams_ gensupport.URLParams
12524 ctx_ context.Context
12525 header_ http.Header
12526 }
12527
12528
12529
12530
12531
12532 func (r *ProjectsLocationsProcessorsService) Delete(name string) *ProjectsLocationsProcessorsDeleteCall {
12533 c := &ProjectsLocationsProcessorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12534 c.name = name
12535 return c
12536 }
12537
12538
12539
12540
12541 func (c *ProjectsLocationsProcessorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDeleteCall {
12542 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12543 return c
12544 }
12545
12546
12547 func (c *ProjectsLocationsProcessorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDeleteCall {
12548 c.ctx_ = ctx
12549 return c
12550 }
12551
12552
12553
12554 func (c *ProjectsLocationsProcessorsDeleteCall) Header() http.Header {
12555 if c.header_ == nil {
12556 c.header_ = make(http.Header)
12557 }
12558 return c.header_
12559 }
12560
12561 func (c *ProjectsLocationsProcessorsDeleteCall) doRequest(alt string) (*http.Response, error) {
12562 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12563 var body io.Reader = nil
12564 c.urlParams_.Set("alt", alt)
12565 c.urlParams_.Set("prettyPrint", "false")
12566 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
12567 urls += "?" + c.urlParams_.Encode()
12568 req, err := http.NewRequest("DELETE", urls, body)
12569 if err != nil {
12570 return nil, err
12571 }
12572 req.Header = reqHeaders
12573 googleapi.Expand(req.URL, map[string]string{
12574 "name": c.name,
12575 })
12576 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12577 }
12578
12579
12580
12581
12582
12583
12584
12585 func (c *ProjectsLocationsProcessorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12586 gensupport.SetOptions(c.urlParams_, opts...)
12587 res, err := c.doRequest("json")
12588 if res != nil && res.StatusCode == http.StatusNotModified {
12589 if res.Body != nil {
12590 res.Body.Close()
12591 }
12592 return nil, gensupport.WrapError(&googleapi.Error{
12593 Code: res.StatusCode,
12594 Header: res.Header,
12595 })
12596 }
12597 if err != nil {
12598 return nil, err
12599 }
12600 defer googleapi.CloseBody(res)
12601 if err := googleapi.CheckResponse(res); err != nil {
12602 return nil, gensupport.WrapError(err)
12603 }
12604 ret := &GoogleLongrunningOperation{
12605 ServerResponse: googleapi.ServerResponse{
12606 Header: res.Header,
12607 HTTPStatusCode: res.StatusCode,
12608 },
12609 }
12610 target := &ret
12611 if err := gensupport.DecodeResponse(target, res); err != nil {
12612 return nil, err
12613 }
12614 return ret, nil
12615 }
12616
12617 type ProjectsLocationsProcessorsDisableCall struct {
12618 s *Service
12619 name string
12620 googleclouddocumentaiv1beta3disableprocessorrequest *GoogleCloudDocumentaiV1beta3DisableProcessorRequest
12621 urlParams_ gensupport.URLParams
12622 ctx_ context.Context
12623 header_ http.Header
12624 }
12625
12626
12627
12628
12629 func (r *ProjectsLocationsProcessorsService) Disable(name string, googleclouddocumentaiv1beta3disableprocessorrequest *GoogleCloudDocumentaiV1beta3DisableProcessorRequest) *ProjectsLocationsProcessorsDisableCall {
12630 c := &ProjectsLocationsProcessorsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12631 c.name = name
12632 c.googleclouddocumentaiv1beta3disableprocessorrequest = googleclouddocumentaiv1beta3disableprocessorrequest
12633 return c
12634 }
12635
12636
12637
12638
12639 func (c *ProjectsLocationsProcessorsDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDisableCall {
12640 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12641 return c
12642 }
12643
12644
12645 func (c *ProjectsLocationsProcessorsDisableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDisableCall {
12646 c.ctx_ = ctx
12647 return c
12648 }
12649
12650
12651
12652 func (c *ProjectsLocationsProcessorsDisableCall) Header() http.Header {
12653 if c.header_ == nil {
12654 c.header_ = make(http.Header)
12655 }
12656 return c.header_
12657 }
12658
12659 func (c *ProjectsLocationsProcessorsDisableCall) doRequest(alt string) (*http.Response, error) {
12660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12661 var body io.Reader = nil
12662 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3disableprocessorrequest)
12663 if err != nil {
12664 return nil, err
12665 }
12666 c.urlParams_.Set("alt", alt)
12667 c.urlParams_.Set("prettyPrint", "false")
12668 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:disable")
12669 urls += "?" + c.urlParams_.Encode()
12670 req, err := http.NewRequest("POST", urls, body)
12671 if err != nil {
12672 return nil, err
12673 }
12674 req.Header = reqHeaders
12675 googleapi.Expand(req.URL, map[string]string{
12676 "name": c.name,
12677 })
12678 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12679 }
12680
12681
12682
12683
12684
12685
12686
12687 func (c *ProjectsLocationsProcessorsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12688 gensupport.SetOptions(c.urlParams_, opts...)
12689 res, err := c.doRequest("json")
12690 if res != nil && res.StatusCode == http.StatusNotModified {
12691 if res.Body != nil {
12692 res.Body.Close()
12693 }
12694 return nil, gensupport.WrapError(&googleapi.Error{
12695 Code: res.StatusCode,
12696 Header: res.Header,
12697 })
12698 }
12699 if err != nil {
12700 return nil, err
12701 }
12702 defer googleapi.CloseBody(res)
12703 if err := googleapi.CheckResponse(res); err != nil {
12704 return nil, gensupport.WrapError(err)
12705 }
12706 ret := &GoogleLongrunningOperation{
12707 ServerResponse: googleapi.ServerResponse{
12708 Header: res.Header,
12709 HTTPStatusCode: res.StatusCode,
12710 },
12711 }
12712 target := &ret
12713 if err := gensupport.DecodeResponse(target, res); err != nil {
12714 return nil, err
12715 }
12716 return ret, nil
12717 }
12718
12719 type ProjectsLocationsProcessorsEnableCall struct {
12720 s *Service
12721 name string
12722 googleclouddocumentaiv1beta3enableprocessorrequest *GoogleCloudDocumentaiV1beta3EnableProcessorRequest
12723 urlParams_ gensupport.URLParams
12724 ctx_ context.Context
12725 header_ http.Header
12726 }
12727
12728
12729
12730
12731 func (r *ProjectsLocationsProcessorsService) Enable(name string, googleclouddocumentaiv1beta3enableprocessorrequest *GoogleCloudDocumentaiV1beta3EnableProcessorRequest) *ProjectsLocationsProcessorsEnableCall {
12732 c := &ProjectsLocationsProcessorsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12733 c.name = name
12734 c.googleclouddocumentaiv1beta3enableprocessorrequest = googleclouddocumentaiv1beta3enableprocessorrequest
12735 return c
12736 }
12737
12738
12739
12740
12741 func (c *ProjectsLocationsProcessorsEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsEnableCall {
12742 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12743 return c
12744 }
12745
12746
12747 func (c *ProjectsLocationsProcessorsEnableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsEnableCall {
12748 c.ctx_ = ctx
12749 return c
12750 }
12751
12752
12753
12754 func (c *ProjectsLocationsProcessorsEnableCall) Header() http.Header {
12755 if c.header_ == nil {
12756 c.header_ = make(http.Header)
12757 }
12758 return c.header_
12759 }
12760
12761 func (c *ProjectsLocationsProcessorsEnableCall) doRequest(alt string) (*http.Response, error) {
12762 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12763 var body io.Reader = nil
12764 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3enableprocessorrequest)
12765 if err != nil {
12766 return nil, err
12767 }
12768 c.urlParams_.Set("alt", alt)
12769 c.urlParams_.Set("prettyPrint", "false")
12770 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:enable")
12771 urls += "?" + c.urlParams_.Encode()
12772 req, err := http.NewRequest("POST", urls, body)
12773 if err != nil {
12774 return nil, err
12775 }
12776 req.Header = reqHeaders
12777 googleapi.Expand(req.URL, map[string]string{
12778 "name": c.name,
12779 })
12780 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12781 }
12782
12783
12784
12785
12786
12787
12788
12789 func (c *ProjectsLocationsProcessorsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12790 gensupport.SetOptions(c.urlParams_, opts...)
12791 res, err := c.doRequest("json")
12792 if res != nil && res.StatusCode == http.StatusNotModified {
12793 if res.Body != nil {
12794 res.Body.Close()
12795 }
12796 return nil, gensupport.WrapError(&googleapi.Error{
12797 Code: res.StatusCode,
12798 Header: res.Header,
12799 })
12800 }
12801 if err != nil {
12802 return nil, err
12803 }
12804 defer googleapi.CloseBody(res)
12805 if err := googleapi.CheckResponse(res); err != nil {
12806 return nil, gensupport.WrapError(err)
12807 }
12808 ret := &GoogleLongrunningOperation{
12809 ServerResponse: googleapi.ServerResponse{
12810 Header: res.Header,
12811 HTTPStatusCode: res.StatusCode,
12812 },
12813 }
12814 target := &ret
12815 if err := gensupport.DecodeResponse(target, res); err != nil {
12816 return nil, err
12817 }
12818 return ret, nil
12819 }
12820
12821 type ProjectsLocationsProcessorsGetCall struct {
12822 s *Service
12823 name string
12824 urlParams_ gensupport.URLParams
12825 ifNoneMatch_ string
12826 ctx_ context.Context
12827 header_ http.Header
12828 }
12829
12830
12831
12832
12833 func (r *ProjectsLocationsProcessorsService) Get(name string) *ProjectsLocationsProcessorsGetCall {
12834 c := &ProjectsLocationsProcessorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12835 c.name = name
12836 return c
12837 }
12838
12839
12840
12841
12842 func (c *ProjectsLocationsProcessorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsGetCall {
12843 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12844 return c
12845 }
12846
12847
12848
12849
12850 func (c *ProjectsLocationsProcessorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsGetCall {
12851 c.ifNoneMatch_ = entityTag
12852 return c
12853 }
12854
12855
12856 func (c *ProjectsLocationsProcessorsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsGetCall {
12857 c.ctx_ = ctx
12858 return c
12859 }
12860
12861
12862
12863 func (c *ProjectsLocationsProcessorsGetCall) Header() http.Header {
12864 if c.header_ == nil {
12865 c.header_ = make(http.Header)
12866 }
12867 return c.header_
12868 }
12869
12870 func (c *ProjectsLocationsProcessorsGetCall) doRequest(alt string) (*http.Response, error) {
12871 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12872 if c.ifNoneMatch_ != "" {
12873 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12874 }
12875 var body io.Reader = nil
12876 c.urlParams_.Set("alt", alt)
12877 c.urlParams_.Set("prettyPrint", "false")
12878 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
12879 urls += "?" + c.urlParams_.Encode()
12880 req, err := http.NewRequest("GET", urls, body)
12881 if err != nil {
12882 return nil, err
12883 }
12884 req.Header = reqHeaders
12885 googleapi.Expand(req.URL, map[string]string{
12886 "name": c.name,
12887 })
12888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12889 }
12890
12891
12892
12893
12894
12895
12896
12897 func (c *ProjectsLocationsProcessorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Processor, error) {
12898 gensupport.SetOptions(c.urlParams_, opts...)
12899 res, err := c.doRequest("json")
12900 if res != nil && res.StatusCode == http.StatusNotModified {
12901 if res.Body != nil {
12902 res.Body.Close()
12903 }
12904 return nil, gensupport.WrapError(&googleapi.Error{
12905 Code: res.StatusCode,
12906 Header: res.Header,
12907 })
12908 }
12909 if err != nil {
12910 return nil, err
12911 }
12912 defer googleapi.CloseBody(res)
12913 if err := googleapi.CheckResponse(res); err != nil {
12914 return nil, gensupport.WrapError(err)
12915 }
12916 ret := &GoogleCloudDocumentaiV1beta3Processor{
12917 ServerResponse: googleapi.ServerResponse{
12918 Header: res.Header,
12919 HTTPStatusCode: res.StatusCode,
12920 },
12921 }
12922 target := &ret
12923 if err := gensupport.DecodeResponse(target, res); err != nil {
12924 return nil, err
12925 }
12926 return ret, nil
12927 }
12928
12929 type ProjectsLocationsProcessorsListCall struct {
12930 s *Service
12931 parent string
12932 urlParams_ gensupport.URLParams
12933 ifNoneMatch_ string
12934 ctx_ context.Context
12935 header_ http.Header
12936 }
12937
12938
12939
12940
12941
12942 func (r *ProjectsLocationsProcessorsService) List(parent string) *ProjectsLocationsProcessorsListCall {
12943 c := &ProjectsLocationsProcessorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12944 c.parent = parent
12945 return c
12946 }
12947
12948
12949
12950
12951
12952 func (c *ProjectsLocationsProcessorsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsListCall {
12953 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12954 return c
12955 }
12956
12957
12958
12959
12960 func (c *ProjectsLocationsProcessorsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsListCall {
12961 c.urlParams_.Set("pageToken", pageToken)
12962 return c
12963 }
12964
12965
12966
12967
12968 func (c *ProjectsLocationsProcessorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsListCall {
12969 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12970 return c
12971 }
12972
12973
12974
12975
12976 func (c *ProjectsLocationsProcessorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsListCall {
12977 c.ifNoneMatch_ = entityTag
12978 return c
12979 }
12980
12981
12982 func (c *ProjectsLocationsProcessorsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsListCall {
12983 c.ctx_ = ctx
12984 return c
12985 }
12986
12987
12988
12989 func (c *ProjectsLocationsProcessorsListCall) Header() http.Header {
12990 if c.header_ == nil {
12991 c.header_ = make(http.Header)
12992 }
12993 return c.header_
12994 }
12995
12996 func (c *ProjectsLocationsProcessorsListCall) doRequest(alt string) (*http.Response, error) {
12997 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12998 if c.ifNoneMatch_ != "" {
12999 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13000 }
13001 var body io.Reader = nil
13002 c.urlParams_.Set("alt", alt)
13003 c.urlParams_.Set("prettyPrint", "false")
13004 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processors")
13005 urls += "?" + c.urlParams_.Encode()
13006 req, err := http.NewRequest("GET", urls, body)
13007 if err != nil {
13008 return nil, err
13009 }
13010 req.Header = reqHeaders
13011 googleapi.Expand(req.URL, map[string]string{
13012 "parent": c.parent,
13013 })
13014 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13015 }
13016
13017
13018
13019
13020
13021
13022
13023 func (c *ProjectsLocationsProcessorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorsResponse, error) {
13024 gensupport.SetOptions(c.urlParams_, opts...)
13025 res, err := c.doRequest("json")
13026 if res != nil && res.StatusCode == http.StatusNotModified {
13027 if res.Body != nil {
13028 res.Body.Close()
13029 }
13030 return nil, gensupport.WrapError(&googleapi.Error{
13031 Code: res.StatusCode,
13032 Header: res.Header,
13033 })
13034 }
13035 if err != nil {
13036 return nil, err
13037 }
13038 defer googleapi.CloseBody(res)
13039 if err := googleapi.CheckResponse(res); err != nil {
13040 return nil, gensupport.WrapError(err)
13041 }
13042 ret := &GoogleCloudDocumentaiV1beta3ListProcessorsResponse{
13043 ServerResponse: googleapi.ServerResponse{
13044 Header: res.Header,
13045 HTTPStatusCode: res.StatusCode,
13046 },
13047 }
13048 target := &ret
13049 if err := gensupport.DecodeResponse(target, res); err != nil {
13050 return nil, err
13051 }
13052 return ret, nil
13053 }
13054
13055
13056
13057
13058 func (c *ProjectsLocationsProcessorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorsResponse) error) error {
13059 c.ctx_ = ctx
13060 defer c.PageToken(c.urlParams_.Get("pageToken"))
13061 for {
13062 x, err := c.Do()
13063 if err != nil {
13064 return err
13065 }
13066 if err := f(x); err != nil {
13067 return err
13068 }
13069 if x.NextPageToken == "" {
13070 return nil
13071 }
13072 c.PageToken(x.NextPageToken)
13073 }
13074 }
13075
13076 type ProjectsLocationsProcessorsProcessCall struct {
13077 s *Service
13078 name string
13079 googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest
13080 urlParams_ gensupport.URLParams
13081 ctx_ context.Context
13082 header_ http.Header
13083 }
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093 func (r *ProjectsLocationsProcessorsService) Process(name string, googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest) *ProjectsLocationsProcessorsProcessCall {
13094 c := &ProjectsLocationsProcessorsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13095 c.name = name
13096 c.googleclouddocumentaiv1beta3processrequest = googleclouddocumentaiv1beta3processrequest
13097 return c
13098 }
13099
13100
13101
13102
13103 func (c *ProjectsLocationsProcessorsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessCall {
13104 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13105 return c
13106 }
13107
13108
13109 func (c *ProjectsLocationsProcessorsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessCall {
13110 c.ctx_ = ctx
13111 return c
13112 }
13113
13114
13115
13116 func (c *ProjectsLocationsProcessorsProcessCall) Header() http.Header {
13117 if c.header_ == nil {
13118 c.header_ = make(http.Header)
13119 }
13120 return c.header_
13121 }
13122
13123 func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Response, error) {
13124 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13125 var body io.Reader = nil
13126 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processrequest)
13127 if err != nil {
13128 return nil, err
13129 }
13130 c.urlParams_.Set("alt", alt)
13131 c.urlParams_.Set("prettyPrint", "false")
13132 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:process")
13133 urls += "?" + c.urlParams_.Encode()
13134 req, err := http.NewRequest("POST", urls, body)
13135 if err != nil {
13136 return nil, err
13137 }
13138 req.Header = reqHeaders
13139 googleapi.Expand(req.URL, map[string]string{
13140 "name": c.name,
13141 })
13142 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13143 }
13144
13145
13146
13147
13148
13149
13150
13151 func (c *ProjectsLocationsProcessorsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessResponse, error) {
13152 gensupport.SetOptions(c.urlParams_, opts...)
13153 res, err := c.doRequest("json")
13154 if res != nil && res.StatusCode == http.StatusNotModified {
13155 if res.Body != nil {
13156 res.Body.Close()
13157 }
13158 return nil, gensupport.WrapError(&googleapi.Error{
13159 Code: res.StatusCode,
13160 Header: res.Header,
13161 })
13162 }
13163 if err != nil {
13164 return nil, err
13165 }
13166 defer googleapi.CloseBody(res)
13167 if err := googleapi.CheckResponse(res); err != nil {
13168 return nil, gensupport.WrapError(err)
13169 }
13170 ret := &GoogleCloudDocumentaiV1beta3ProcessResponse{
13171 ServerResponse: googleapi.ServerResponse{
13172 Header: res.Header,
13173 HTTPStatusCode: res.StatusCode,
13174 },
13175 }
13176 target := &ret
13177 if err := gensupport.DecodeResponse(target, res); err != nil {
13178 return nil, err
13179 }
13180 return ret, nil
13181 }
13182
13183 type ProjectsLocationsProcessorsSetDefaultProcessorVersionCall struct {
13184 s *Service
13185 processor string
13186 googleclouddocumentaiv1beta3setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
13187 urlParams_ gensupport.URLParams
13188 ctx_ context.Context
13189 header_ http.Header
13190 }
13191
13192
13193
13194
13195
13196 func (r *ProjectsLocationsProcessorsService) SetDefaultProcessorVersion(processor string, googleclouddocumentaiv1beta3setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
13197 c := &ProjectsLocationsProcessorsSetDefaultProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13198 c.processor = processor
13199 c.googleclouddocumentaiv1beta3setdefaultprocessorversionrequest = googleclouddocumentaiv1beta3setdefaultprocessorversionrequest
13200 return c
13201 }
13202
13203
13204
13205
13206 func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
13207 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13208 return c
13209 }
13210
13211
13212 func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
13213 c.ctx_ = ctx
13214 return c
13215 }
13216
13217
13218
13219 func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Header() http.Header {
13220 if c.header_ == nil {
13221 c.header_ = make(http.Header)
13222 }
13223 return c.header_
13224 }
13225
13226 func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
13227 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13228 var body io.Reader = nil
13229 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3setdefaultprocessorversionrequest)
13230 if err != nil {
13231 return nil, err
13232 }
13233 c.urlParams_.Set("alt", alt)
13234 c.urlParams_.Set("prettyPrint", "false")
13235 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+processor}:setDefaultProcessorVersion")
13236 urls += "?" + c.urlParams_.Encode()
13237 req, err := http.NewRequest("POST", urls, body)
13238 if err != nil {
13239 return nil, err
13240 }
13241 req.Header = reqHeaders
13242 googleapi.Expand(req.URL, map[string]string{
13243 "processor": c.processor,
13244 })
13245 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13246 }
13247
13248
13249
13250
13251
13252
13253
13254 func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13255 gensupport.SetOptions(c.urlParams_, opts...)
13256 res, err := c.doRequest("json")
13257 if res != nil && res.StatusCode == http.StatusNotModified {
13258 if res.Body != nil {
13259 res.Body.Close()
13260 }
13261 return nil, gensupport.WrapError(&googleapi.Error{
13262 Code: res.StatusCode,
13263 Header: res.Header,
13264 })
13265 }
13266 if err != nil {
13267 return nil, err
13268 }
13269 defer googleapi.CloseBody(res)
13270 if err := googleapi.CheckResponse(res); err != nil {
13271 return nil, gensupport.WrapError(err)
13272 }
13273 ret := &GoogleLongrunningOperation{
13274 ServerResponse: googleapi.ServerResponse{
13275 Header: res.Header,
13276 HTTPStatusCode: res.StatusCode,
13277 },
13278 }
13279 target := &ret
13280 if err := gensupport.DecodeResponse(target, res); err != nil {
13281 return nil, err
13282 }
13283 return ret, nil
13284 }
13285
13286 type ProjectsLocationsProcessorsUpdateDatasetCall struct {
13287 s *Service
13288 name string
13289 googleclouddocumentaiv1beta3dataset *GoogleCloudDocumentaiV1beta3Dataset
13290 urlParams_ gensupport.URLParams
13291 ctx_ context.Context
13292 header_ http.Header
13293 }
13294
13295
13296
13297
13298
13299 func (r *ProjectsLocationsProcessorsService) UpdateDataset(name string, googleclouddocumentaiv1beta3dataset *GoogleCloudDocumentaiV1beta3Dataset) *ProjectsLocationsProcessorsUpdateDatasetCall {
13300 c := &ProjectsLocationsProcessorsUpdateDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13301 c.name = name
13302 c.googleclouddocumentaiv1beta3dataset = googleclouddocumentaiv1beta3dataset
13303 return c
13304 }
13305
13306
13307
13308 func (c *ProjectsLocationsProcessorsUpdateDatasetCall) UpdateMask(updateMask string) *ProjectsLocationsProcessorsUpdateDatasetCall {
13309 c.urlParams_.Set("updateMask", updateMask)
13310 return c
13311 }
13312
13313
13314
13315
13316 func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsUpdateDatasetCall {
13317 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13318 return c
13319 }
13320
13321
13322 func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsUpdateDatasetCall {
13323 c.ctx_ = ctx
13324 return c
13325 }
13326
13327
13328
13329 func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Header() http.Header {
13330 if c.header_ == nil {
13331 c.header_ = make(http.Header)
13332 }
13333 return c.header_
13334 }
13335
13336 func (c *ProjectsLocationsProcessorsUpdateDatasetCall) doRequest(alt string) (*http.Response, error) {
13337 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13338 var body io.Reader = nil
13339 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3dataset)
13340 if err != nil {
13341 return nil, err
13342 }
13343 c.urlParams_.Set("alt", alt)
13344 c.urlParams_.Set("prettyPrint", "false")
13345 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
13346 urls += "?" + c.urlParams_.Encode()
13347 req, err := http.NewRequest("PATCH", urls, body)
13348 if err != nil {
13349 return nil, err
13350 }
13351 req.Header = reqHeaders
13352 googleapi.Expand(req.URL, map[string]string{
13353 "name": c.name,
13354 })
13355 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13356 }
13357
13358
13359
13360
13361
13362
13363
13364 func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13365 gensupport.SetOptions(c.urlParams_, opts...)
13366 res, err := c.doRequest("json")
13367 if res != nil && res.StatusCode == http.StatusNotModified {
13368 if res.Body != nil {
13369 res.Body.Close()
13370 }
13371 return nil, gensupport.WrapError(&googleapi.Error{
13372 Code: res.StatusCode,
13373 Header: res.Header,
13374 })
13375 }
13376 if err != nil {
13377 return nil, err
13378 }
13379 defer googleapi.CloseBody(res)
13380 if err := googleapi.CheckResponse(res); err != nil {
13381 return nil, gensupport.WrapError(err)
13382 }
13383 ret := &GoogleLongrunningOperation{
13384 ServerResponse: googleapi.ServerResponse{
13385 Header: res.Header,
13386 HTTPStatusCode: res.StatusCode,
13387 },
13388 }
13389 target := &ret
13390 if err := gensupport.DecodeResponse(target, res); err != nil {
13391 return nil, err
13392 }
13393 return ret, nil
13394 }
13395
13396 type ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall struct {
13397 s *Service
13398 dataset string
13399 googleclouddocumentaiv1beta3batchdeletedocumentsrequest *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest
13400 urlParams_ gensupport.URLParams
13401 ctx_ context.Context
13402 header_ http.Header
13403 }
13404
13405
13406
13407
13408
13409 func (r *ProjectsLocationsProcessorsDatasetService) BatchDeleteDocuments(dataset string, googleclouddocumentaiv1beta3batchdeletedocumentsrequest *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest) *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall {
13410 c := &ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13411 c.dataset = dataset
13412 c.googleclouddocumentaiv1beta3batchdeletedocumentsrequest = googleclouddocumentaiv1beta3batchdeletedocumentsrequest
13413 return c
13414 }
13415
13416
13417
13418
13419 func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall {
13420 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13421 return c
13422 }
13423
13424
13425 func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall {
13426 c.ctx_ = ctx
13427 return c
13428 }
13429
13430
13431
13432 func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Header() http.Header {
13433 if c.header_ == nil {
13434 c.header_ = make(http.Header)
13435 }
13436 return c.header_
13437 }
13438
13439 func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) doRequest(alt string) (*http.Response, error) {
13440 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13441 var body io.Reader = nil
13442 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchdeletedocumentsrequest)
13443 if err != nil {
13444 return nil, err
13445 }
13446 c.urlParams_.Set("alt", alt)
13447 c.urlParams_.Set("prettyPrint", "false")
13448 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:batchDeleteDocuments")
13449 urls += "?" + c.urlParams_.Encode()
13450 req, err := http.NewRequest("POST", urls, body)
13451 if err != nil {
13452 return nil, err
13453 }
13454 req.Header = reqHeaders
13455 googleapi.Expand(req.URL, map[string]string{
13456 "dataset": c.dataset,
13457 })
13458 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13459 }
13460
13461
13462
13463
13464
13465
13466
13467 func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13468 gensupport.SetOptions(c.urlParams_, opts...)
13469 res, err := c.doRequest("json")
13470 if res != nil && res.StatusCode == http.StatusNotModified {
13471 if res.Body != nil {
13472 res.Body.Close()
13473 }
13474 return nil, gensupport.WrapError(&googleapi.Error{
13475 Code: res.StatusCode,
13476 Header: res.Header,
13477 })
13478 }
13479 if err != nil {
13480 return nil, err
13481 }
13482 defer googleapi.CloseBody(res)
13483 if err := googleapi.CheckResponse(res); err != nil {
13484 return nil, gensupport.WrapError(err)
13485 }
13486 ret := &GoogleLongrunningOperation{
13487 ServerResponse: googleapi.ServerResponse{
13488 Header: res.Header,
13489 HTTPStatusCode: res.StatusCode,
13490 },
13491 }
13492 target := &ret
13493 if err := gensupport.DecodeResponse(target, res); err != nil {
13494 return nil, err
13495 }
13496 return ret, nil
13497 }
13498
13499 type ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall struct {
13500 s *Service
13501 name string
13502 urlParams_ gensupport.URLParams
13503 ifNoneMatch_ string
13504 ctx_ context.Context
13505 header_ http.Header
13506 }
13507
13508
13509
13510
13511
13512
13513 func (r *ProjectsLocationsProcessorsDatasetService) GetDatasetSchema(name string) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
13514 c := &ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13515 c.name = name
13516 return c
13517 }
13518
13519
13520
13521 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) VisibleFieldsOnly(visibleFieldsOnly bool) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
13522 c.urlParams_.Set("visibleFieldsOnly", fmt.Sprint(visibleFieldsOnly))
13523 return c
13524 }
13525
13526
13527
13528
13529 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
13530 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13531 return c
13532 }
13533
13534
13535
13536
13537 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
13538 c.ifNoneMatch_ = entityTag
13539 return c
13540 }
13541
13542
13543 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
13544 c.ctx_ = ctx
13545 return c
13546 }
13547
13548
13549
13550 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Header() http.Header {
13551 if c.header_ == nil {
13552 c.header_ = make(http.Header)
13553 }
13554 return c.header_
13555 }
13556
13557 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) doRequest(alt string) (*http.Response, error) {
13558 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13559 if c.ifNoneMatch_ != "" {
13560 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13561 }
13562 var body io.Reader = nil
13563 c.urlParams_.Set("alt", alt)
13564 c.urlParams_.Set("prettyPrint", "false")
13565 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
13566 urls += "?" + c.urlParams_.Encode()
13567 req, err := http.NewRequest("GET", urls, body)
13568 if err != nil {
13569 return nil, err
13570 }
13571 req.Header = reqHeaders
13572 googleapi.Expand(req.URL, map[string]string{
13573 "name": c.name,
13574 })
13575 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13576 }
13577
13578
13579
13580
13581
13582
13583
13584 func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3DatasetSchema, error) {
13585 gensupport.SetOptions(c.urlParams_, opts...)
13586 res, err := c.doRequest("json")
13587 if res != nil && res.StatusCode == http.StatusNotModified {
13588 if res.Body != nil {
13589 res.Body.Close()
13590 }
13591 return nil, gensupport.WrapError(&googleapi.Error{
13592 Code: res.StatusCode,
13593 Header: res.Header,
13594 })
13595 }
13596 if err != nil {
13597 return nil, err
13598 }
13599 defer googleapi.CloseBody(res)
13600 if err := googleapi.CheckResponse(res); err != nil {
13601 return nil, gensupport.WrapError(err)
13602 }
13603 ret := &GoogleCloudDocumentaiV1beta3DatasetSchema{
13604 ServerResponse: googleapi.ServerResponse{
13605 Header: res.Header,
13606 HTTPStatusCode: res.StatusCode,
13607 },
13608 }
13609 target := &ret
13610 if err := gensupport.DecodeResponse(target, res); err != nil {
13611 return nil, err
13612 }
13613 return ret, nil
13614 }
13615
13616 type ProjectsLocationsProcessorsDatasetGetDocumentCall struct {
13617 s *Service
13618 dataset string
13619 urlParams_ gensupport.URLParams
13620 ifNoneMatch_ string
13621 ctx_ context.Context
13622 header_ http.Header
13623 }
13624
13625
13626
13627
13628
13629
13630 func (r *ProjectsLocationsProcessorsDatasetService) GetDocument(dataset string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13631 c := &ProjectsLocationsProcessorsDatasetGetDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13632 c.dataset = dataset
13633 return c
13634 }
13635
13636
13637
13638
13639 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdGcsManagedDocIdCwDocId(documentIdGcsManagedDocIdCwDocId string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13640 c.urlParams_.Set("documentId.gcsManagedDocId.cwDocId", documentIdGcsManagedDocIdCwDocId)
13641 return c
13642 }
13643
13644
13645
13646
13647 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdGcsManagedDocIdGcsUri(documentIdGcsManagedDocIdGcsUri string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13648 c.urlParams_.Set("documentId.gcsManagedDocId.gcsUri", documentIdGcsManagedDocIdGcsUri)
13649 return c
13650 }
13651
13652
13653
13654
13655
13656
13657
13658 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdRevisionRefLatestProcessorVersion(documentIdRevisionRefLatestProcessorVersion string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13659 c.urlParams_.Set("documentId.revisionRef.latestProcessorVersion", documentIdRevisionRefLatestProcessorVersion)
13660 return c
13661 }
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdRevisionRefRevisionCase(documentIdRevisionRefRevisionCase string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13677 c.urlParams_.Set("documentId.revisionRef.revisionCase", documentIdRevisionRefRevisionCase)
13678 return c
13679 }
13680
13681
13682
13683 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdRevisionRefRevisionId(documentIdRevisionRefRevisionId string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13684 c.urlParams_.Set("documentId.revisionRef.revisionId", documentIdRevisionRefRevisionId)
13685 return c
13686 }
13687
13688
13689
13690 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdUnmanagedDocIdDocId(documentIdUnmanagedDocIdDocId string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13691 c.urlParams_.Set("documentId.unmanagedDocId.docId", documentIdUnmanagedDocIdDocId)
13692 return c
13693 }
13694
13695
13696
13697 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) PageRangeEnd(pageRangeEnd int64) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13698 c.urlParams_.Set("pageRange.end", fmt.Sprint(pageRangeEnd))
13699 return c
13700 }
13701
13702
13703
13704 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) PageRangeStart(pageRangeStart int64) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13705 c.urlParams_.Set("pageRange.start", fmt.Sprint(pageRangeStart))
13706 return c
13707 }
13708
13709
13710
13711 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) ReadMask(readMask string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13712 c.urlParams_.Set("readMask", readMask)
13713 return c
13714 }
13715
13716
13717
13718
13719 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13720 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13721 return c
13722 }
13723
13724
13725
13726
13727 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13728 c.ifNoneMatch_ = entityTag
13729 return c
13730 }
13731
13732
13733 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
13734 c.ctx_ = ctx
13735 return c
13736 }
13737
13738
13739
13740 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Header() http.Header {
13741 if c.header_ == nil {
13742 c.header_ = make(http.Header)
13743 }
13744 return c.header_
13745 }
13746
13747 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) doRequest(alt string) (*http.Response, error) {
13748 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13749 if c.ifNoneMatch_ != "" {
13750 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13751 }
13752 var body io.Reader = nil
13753 c.urlParams_.Set("alt", alt)
13754 c.urlParams_.Set("prettyPrint", "false")
13755 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:getDocument")
13756 urls += "?" + c.urlParams_.Encode()
13757 req, err := http.NewRequest("GET", urls, body)
13758 if err != nil {
13759 return nil, err
13760 }
13761 req.Header = reqHeaders
13762 googleapi.Expand(req.URL, map[string]string{
13763 "dataset": c.dataset,
13764 })
13765 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13766 }
13767
13768
13769
13770
13771
13772
13773
13774 func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3GetDocumentResponse, error) {
13775 gensupport.SetOptions(c.urlParams_, opts...)
13776 res, err := c.doRequest("json")
13777 if res != nil && res.StatusCode == http.StatusNotModified {
13778 if res.Body != nil {
13779 res.Body.Close()
13780 }
13781 return nil, gensupport.WrapError(&googleapi.Error{
13782 Code: res.StatusCode,
13783 Header: res.Header,
13784 })
13785 }
13786 if err != nil {
13787 return nil, err
13788 }
13789 defer googleapi.CloseBody(res)
13790 if err := googleapi.CheckResponse(res); err != nil {
13791 return nil, gensupport.WrapError(err)
13792 }
13793 ret := &GoogleCloudDocumentaiV1beta3GetDocumentResponse{
13794 ServerResponse: googleapi.ServerResponse{
13795 Header: res.Header,
13796 HTTPStatusCode: res.StatusCode,
13797 },
13798 }
13799 target := &ret
13800 if err := gensupport.DecodeResponse(target, res); err != nil {
13801 return nil, err
13802 }
13803 return ret, nil
13804 }
13805
13806 type ProjectsLocationsProcessorsDatasetImportDocumentsCall struct {
13807 s *Service
13808 dataset string
13809 googleclouddocumentaiv1beta3importdocumentsrequest *GoogleCloudDocumentaiV1beta3ImportDocumentsRequest
13810 urlParams_ gensupport.URLParams
13811 ctx_ context.Context
13812 header_ http.Header
13813 }
13814
13815
13816
13817
13818
13819 func (r *ProjectsLocationsProcessorsDatasetService) ImportDocuments(dataset string, googleclouddocumentaiv1beta3importdocumentsrequest *GoogleCloudDocumentaiV1beta3ImportDocumentsRequest) *ProjectsLocationsProcessorsDatasetImportDocumentsCall {
13820 c := &ProjectsLocationsProcessorsDatasetImportDocumentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13821 c.dataset = dataset
13822 c.googleclouddocumentaiv1beta3importdocumentsrequest = googleclouddocumentaiv1beta3importdocumentsrequest
13823 return c
13824 }
13825
13826
13827
13828
13829 func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetImportDocumentsCall {
13830 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13831 return c
13832 }
13833
13834
13835 func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetImportDocumentsCall {
13836 c.ctx_ = ctx
13837 return c
13838 }
13839
13840
13841
13842 func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Header() http.Header {
13843 if c.header_ == nil {
13844 c.header_ = make(http.Header)
13845 }
13846 return c.header_
13847 }
13848
13849 func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) doRequest(alt string) (*http.Response, error) {
13850 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13851 var body io.Reader = nil
13852 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3importdocumentsrequest)
13853 if err != nil {
13854 return nil, err
13855 }
13856 c.urlParams_.Set("alt", alt)
13857 c.urlParams_.Set("prettyPrint", "false")
13858 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:importDocuments")
13859 urls += "?" + c.urlParams_.Encode()
13860 req, err := http.NewRequest("POST", urls, body)
13861 if err != nil {
13862 return nil, err
13863 }
13864 req.Header = reqHeaders
13865 googleapi.Expand(req.URL, map[string]string{
13866 "dataset": c.dataset,
13867 })
13868 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13869 }
13870
13871
13872
13873
13874
13875
13876
13877 func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13878 gensupport.SetOptions(c.urlParams_, opts...)
13879 res, err := c.doRequest("json")
13880 if res != nil && res.StatusCode == http.StatusNotModified {
13881 if res.Body != nil {
13882 res.Body.Close()
13883 }
13884 return nil, gensupport.WrapError(&googleapi.Error{
13885 Code: res.StatusCode,
13886 Header: res.Header,
13887 })
13888 }
13889 if err != nil {
13890 return nil, err
13891 }
13892 defer googleapi.CloseBody(res)
13893 if err := googleapi.CheckResponse(res); err != nil {
13894 return nil, gensupport.WrapError(err)
13895 }
13896 ret := &GoogleLongrunningOperation{
13897 ServerResponse: googleapi.ServerResponse{
13898 Header: res.Header,
13899 HTTPStatusCode: res.StatusCode,
13900 },
13901 }
13902 target := &ret
13903 if err := gensupport.DecodeResponse(target, res); err != nil {
13904 return nil, err
13905 }
13906 return ret, nil
13907 }
13908
13909 type ProjectsLocationsProcessorsDatasetListDocumentsCall struct {
13910 s *Service
13911 dataset string
13912 googleclouddocumentaiv1beta3listdocumentsrequest *GoogleCloudDocumentaiV1beta3ListDocumentsRequest
13913 urlParams_ gensupport.URLParams
13914 ctx_ context.Context
13915 header_ http.Header
13916 }
13917
13918
13919
13920
13921
13922 func (r *ProjectsLocationsProcessorsDatasetService) ListDocuments(dataset string, googleclouddocumentaiv1beta3listdocumentsrequest *GoogleCloudDocumentaiV1beta3ListDocumentsRequest) *ProjectsLocationsProcessorsDatasetListDocumentsCall {
13923 c := &ProjectsLocationsProcessorsDatasetListDocumentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13924 c.dataset = dataset
13925 c.googleclouddocumentaiv1beta3listdocumentsrequest = googleclouddocumentaiv1beta3listdocumentsrequest
13926 return c
13927 }
13928
13929
13930
13931
13932 func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetListDocumentsCall {
13933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13934 return c
13935 }
13936
13937
13938 func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetListDocumentsCall {
13939 c.ctx_ = ctx
13940 return c
13941 }
13942
13943
13944
13945 func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Header() http.Header {
13946 if c.header_ == nil {
13947 c.header_ = make(http.Header)
13948 }
13949 return c.header_
13950 }
13951
13952 func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) doRequest(alt string) (*http.Response, error) {
13953 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13954 var body io.Reader = nil
13955 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3listdocumentsrequest)
13956 if err != nil {
13957 return nil, err
13958 }
13959 c.urlParams_.Set("alt", alt)
13960 c.urlParams_.Set("prettyPrint", "false")
13961 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:listDocuments")
13962 urls += "?" + c.urlParams_.Encode()
13963 req, err := http.NewRequest("POST", urls, body)
13964 if err != nil {
13965 return nil, err
13966 }
13967 req.Header = reqHeaders
13968 googleapi.Expand(req.URL, map[string]string{
13969 "dataset": c.dataset,
13970 })
13971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13972 }
13973
13974
13975
13976
13977
13978
13979
13980 func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListDocumentsResponse, error) {
13981 gensupport.SetOptions(c.urlParams_, opts...)
13982 res, err := c.doRequest("json")
13983 if res != nil && res.StatusCode == http.StatusNotModified {
13984 if res.Body != nil {
13985 res.Body.Close()
13986 }
13987 return nil, gensupport.WrapError(&googleapi.Error{
13988 Code: res.StatusCode,
13989 Header: res.Header,
13990 })
13991 }
13992 if err != nil {
13993 return nil, err
13994 }
13995 defer googleapi.CloseBody(res)
13996 if err := googleapi.CheckResponse(res); err != nil {
13997 return nil, gensupport.WrapError(err)
13998 }
13999 ret := &GoogleCloudDocumentaiV1beta3ListDocumentsResponse{
14000 ServerResponse: googleapi.ServerResponse{
14001 Header: res.Header,
14002 HTTPStatusCode: res.StatusCode,
14003 },
14004 }
14005 target := &ret
14006 if err := gensupport.DecodeResponse(target, res); err != nil {
14007 return nil, err
14008 }
14009 return ret, nil
14010 }
14011
14012
14013
14014
14015 func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListDocumentsResponse) error) error {
14016 c.ctx_ = ctx
14017 defer func(pt string) { c.googleclouddocumentaiv1beta3listdocumentsrequest.PageToken = pt }(c.googleclouddocumentaiv1beta3listdocumentsrequest.PageToken)
14018 for {
14019 x, err := c.Do()
14020 if err != nil {
14021 return err
14022 }
14023 if err := f(x); err != nil {
14024 return err
14025 }
14026 if x.NextPageToken == "" {
14027 return nil
14028 }
14029 c.googleclouddocumentaiv1beta3listdocumentsrequest.PageToken = x.NextPageToken
14030 }
14031 }
14032
14033 type ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall struct {
14034 s *Service
14035 name string
14036 googleclouddocumentaiv1beta3datasetschema *GoogleCloudDocumentaiV1beta3DatasetSchema
14037 urlParams_ gensupport.URLParams
14038 ctx_ context.Context
14039 header_ http.Header
14040 }
14041
14042
14043
14044
14045
14046
14047 func (r *ProjectsLocationsProcessorsDatasetService) UpdateDatasetSchema(name string, googleclouddocumentaiv1beta3datasetschema *GoogleCloudDocumentaiV1beta3DatasetSchema) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
14048 c := &ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14049 c.name = name
14050 c.googleclouddocumentaiv1beta3datasetschema = googleclouddocumentaiv1beta3datasetschema
14051 return c
14052 }
14053
14054
14055
14056 func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) UpdateMask(updateMask string) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
14057 c.urlParams_.Set("updateMask", updateMask)
14058 return c
14059 }
14060
14061
14062
14063
14064 func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
14065 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14066 return c
14067 }
14068
14069
14070 func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
14071 c.ctx_ = ctx
14072 return c
14073 }
14074
14075
14076
14077 func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Header() http.Header {
14078 if c.header_ == nil {
14079 c.header_ = make(http.Header)
14080 }
14081 return c.header_
14082 }
14083
14084 func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) doRequest(alt string) (*http.Response, error) {
14085 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14086 var body io.Reader = nil
14087 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3datasetschema)
14088 if err != nil {
14089 return nil, err
14090 }
14091 c.urlParams_.Set("alt", alt)
14092 c.urlParams_.Set("prettyPrint", "false")
14093 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
14094 urls += "?" + c.urlParams_.Encode()
14095 req, err := http.NewRequest("PATCH", urls, body)
14096 if err != nil {
14097 return nil, err
14098 }
14099 req.Header = reqHeaders
14100 googleapi.Expand(req.URL, map[string]string{
14101 "name": c.name,
14102 })
14103 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14104 }
14105
14106
14107
14108
14109
14110
14111
14112 func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3DatasetSchema, error) {
14113 gensupport.SetOptions(c.urlParams_, opts...)
14114 res, err := c.doRequest("json")
14115 if res != nil && res.StatusCode == http.StatusNotModified {
14116 if res.Body != nil {
14117 res.Body.Close()
14118 }
14119 return nil, gensupport.WrapError(&googleapi.Error{
14120 Code: res.StatusCode,
14121 Header: res.Header,
14122 })
14123 }
14124 if err != nil {
14125 return nil, err
14126 }
14127 defer googleapi.CloseBody(res)
14128 if err := googleapi.CheckResponse(res); err != nil {
14129 return nil, gensupport.WrapError(err)
14130 }
14131 ret := &GoogleCloudDocumentaiV1beta3DatasetSchema{
14132 ServerResponse: googleapi.ServerResponse{
14133 Header: res.Header,
14134 HTTPStatusCode: res.StatusCode,
14135 },
14136 }
14137 target := &ret
14138 if err := gensupport.DecodeResponse(target, res); err != nil {
14139 return nil, err
14140 }
14141 return ret, nil
14142 }
14143
14144 type ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall struct {
14145 s *Service
14146 humanReviewConfig string
14147 googleclouddocumentaiv1beta3reviewdocumentrequest *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
14148 urlParams_ gensupport.URLParams
14149 ctx_ context.Context
14150 header_ http.Header
14151 }
14152
14153
14154
14155
14156
14157
14158 func (r *ProjectsLocationsProcessorsHumanReviewConfigService) ReviewDocument(humanReviewConfig string, googleclouddocumentaiv1beta3reviewdocumentrequest *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
14159 c := &ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14160 c.humanReviewConfig = humanReviewConfig
14161 c.googleclouddocumentaiv1beta3reviewdocumentrequest = googleclouddocumentaiv1beta3reviewdocumentrequest
14162 return c
14163 }
14164
14165
14166
14167
14168 func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
14169 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14170 return c
14171 }
14172
14173
14174 func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Context(ctx context.Context) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
14175 c.ctx_ = ctx
14176 return c
14177 }
14178
14179
14180
14181 func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Header() http.Header {
14182 if c.header_ == nil {
14183 c.header_ = make(http.Header)
14184 }
14185 return c.header_
14186 }
14187
14188 func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doRequest(alt string) (*http.Response, error) {
14189 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14190 var body io.Reader = nil
14191 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3reviewdocumentrequest)
14192 if err != nil {
14193 return nil, err
14194 }
14195 c.urlParams_.Set("alt", alt)
14196 c.urlParams_.Set("prettyPrint", "false")
14197 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+humanReviewConfig}:reviewDocument")
14198 urls += "?" + c.urlParams_.Encode()
14199 req, err := http.NewRequest("POST", urls, body)
14200 if err != nil {
14201 return nil, err
14202 }
14203 req.Header = reqHeaders
14204 googleapi.Expand(req.URL, map[string]string{
14205 "humanReviewConfig": c.humanReviewConfig,
14206 })
14207 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14208 }
14209
14210
14211
14212
14213
14214
14215
14216 func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14217 gensupport.SetOptions(c.urlParams_, opts...)
14218 res, err := c.doRequest("json")
14219 if res != nil && res.StatusCode == http.StatusNotModified {
14220 if res.Body != nil {
14221 res.Body.Close()
14222 }
14223 return nil, gensupport.WrapError(&googleapi.Error{
14224 Code: res.StatusCode,
14225 Header: res.Header,
14226 })
14227 }
14228 if err != nil {
14229 return nil, err
14230 }
14231 defer googleapi.CloseBody(res)
14232 if err := googleapi.CheckResponse(res); err != nil {
14233 return nil, gensupport.WrapError(err)
14234 }
14235 ret := &GoogleLongrunningOperation{
14236 ServerResponse: googleapi.ServerResponse{
14237 Header: res.Header,
14238 HTTPStatusCode: res.StatusCode,
14239 },
14240 }
14241 target := &ret
14242 if err := gensupport.DecodeResponse(target, res); err != nil {
14243 return nil, err
14244 }
14245 return ret, nil
14246 }
14247
14248 type ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall struct {
14249 s *Service
14250 name string
14251 googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest
14252 urlParams_ gensupport.URLParams
14253 ctx_ context.Context
14254 header_ http.Header
14255 }
14256
14257
14258
14259
14260
14261
14262
14263
14264 func (r *ProjectsLocationsProcessorsProcessorVersionsService) BatchProcess(name string, googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
14265 c := &ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14266 c.name = name
14267 c.googleclouddocumentaiv1beta3batchprocessrequest = googleclouddocumentaiv1beta3batchprocessrequest
14268 return c
14269 }
14270
14271
14272
14273
14274 func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
14275 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14276 return c
14277 }
14278
14279
14280 func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
14281 c.ctx_ = ctx
14282 return c
14283 }
14284
14285
14286
14287 func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Header() http.Header {
14288 if c.header_ == nil {
14289 c.header_ = make(http.Header)
14290 }
14291 return c.header_
14292 }
14293
14294 func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
14295 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14296 var body io.Reader = nil
14297 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchprocessrequest)
14298 if err != nil {
14299 return nil, err
14300 }
14301 c.urlParams_.Set("alt", alt)
14302 c.urlParams_.Set("prettyPrint", "false")
14303 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:batchProcess")
14304 urls += "?" + c.urlParams_.Encode()
14305 req, err := http.NewRequest("POST", urls, body)
14306 if err != nil {
14307 return nil, err
14308 }
14309 req.Header = reqHeaders
14310 googleapi.Expand(req.URL, map[string]string{
14311 "name": c.name,
14312 })
14313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14314 }
14315
14316
14317
14318
14319
14320
14321
14322 func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14323 gensupport.SetOptions(c.urlParams_, opts...)
14324 res, err := c.doRequest("json")
14325 if res != nil && res.StatusCode == http.StatusNotModified {
14326 if res.Body != nil {
14327 res.Body.Close()
14328 }
14329 return nil, gensupport.WrapError(&googleapi.Error{
14330 Code: res.StatusCode,
14331 Header: res.Header,
14332 })
14333 }
14334 if err != nil {
14335 return nil, err
14336 }
14337 defer googleapi.CloseBody(res)
14338 if err := googleapi.CheckResponse(res); err != nil {
14339 return nil, gensupport.WrapError(err)
14340 }
14341 ret := &GoogleLongrunningOperation{
14342 ServerResponse: googleapi.ServerResponse{
14343 Header: res.Header,
14344 HTTPStatusCode: res.StatusCode,
14345 },
14346 }
14347 target := &ret
14348 if err := gensupport.DecodeResponse(target, res); err != nil {
14349 return nil, err
14350 }
14351 return ret, nil
14352 }
14353
14354 type ProjectsLocationsProcessorsProcessorVersionsDeleteCall struct {
14355 s *Service
14356 name string
14357 urlParams_ gensupport.URLParams
14358 ctx_ context.Context
14359 header_ http.Header
14360 }
14361
14362
14363
14364
14365
14366 func (r *ProjectsLocationsProcessorsProcessorVersionsService) Delete(name string) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
14367 c := &ProjectsLocationsProcessorsProcessorVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14368 c.name = name
14369 return c
14370 }
14371
14372
14373
14374
14375 func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
14376 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14377 return c
14378 }
14379
14380
14381 func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
14382 c.ctx_ = ctx
14383 return c
14384 }
14385
14386
14387
14388 func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Header() http.Header {
14389 if c.header_ == nil {
14390 c.header_ = make(http.Header)
14391 }
14392 return c.header_
14393 }
14394
14395 func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
14396 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14397 var body io.Reader = nil
14398 c.urlParams_.Set("alt", alt)
14399 c.urlParams_.Set("prettyPrint", "false")
14400 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
14401 urls += "?" + c.urlParams_.Encode()
14402 req, err := http.NewRequest("DELETE", urls, body)
14403 if err != nil {
14404 return nil, err
14405 }
14406 req.Header = reqHeaders
14407 googleapi.Expand(req.URL, map[string]string{
14408 "name": c.name,
14409 })
14410 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14411 }
14412
14413
14414
14415
14416
14417
14418
14419 func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14420 gensupport.SetOptions(c.urlParams_, opts...)
14421 res, err := c.doRequest("json")
14422 if res != nil && res.StatusCode == http.StatusNotModified {
14423 if res.Body != nil {
14424 res.Body.Close()
14425 }
14426 return nil, gensupport.WrapError(&googleapi.Error{
14427 Code: res.StatusCode,
14428 Header: res.Header,
14429 })
14430 }
14431 if err != nil {
14432 return nil, err
14433 }
14434 defer googleapi.CloseBody(res)
14435 if err := googleapi.CheckResponse(res); err != nil {
14436 return nil, gensupport.WrapError(err)
14437 }
14438 ret := &GoogleLongrunningOperation{
14439 ServerResponse: googleapi.ServerResponse{
14440 Header: res.Header,
14441 HTTPStatusCode: res.StatusCode,
14442 },
14443 }
14444 target := &ret
14445 if err := gensupport.DecodeResponse(target, res); err != nil {
14446 return nil, err
14447 }
14448 return ret, nil
14449 }
14450
14451 type ProjectsLocationsProcessorsProcessorVersionsDeployCall struct {
14452 s *Service
14453 name string
14454 googleclouddocumentaiv1beta3deployprocessorversionrequest *GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest
14455 urlParams_ gensupport.URLParams
14456 ctx_ context.Context
14457 header_ http.Header
14458 }
14459
14460
14461
14462
14463 func (r *ProjectsLocationsProcessorsProcessorVersionsService) Deploy(name string, googleclouddocumentaiv1beta3deployprocessorversionrequest *GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
14464 c := &ProjectsLocationsProcessorsProcessorVersionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14465 c.name = name
14466 c.googleclouddocumentaiv1beta3deployprocessorversionrequest = googleclouddocumentaiv1beta3deployprocessorversionrequest
14467 return c
14468 }
14469
14470
14471
14472
14473 func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
14474 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14475 return c
14476 }
14477
14478
14479 func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
14480 c.ctx_ = ctx
14481 return c
14482 }
14483
14484
14485
14486 func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Header() http.Header {
14487 if c.header_ == nil {
14488 c.header_ = make(http.Header)
14489 }
14490 return c.header_
14491 }
14492
14493 func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) doRequest(alt string) (*http.Response, error) {
14494 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14495 var body io.Reader = nil
14496 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3deployprocessorversionrequest)
14497 if err != nil {
14498 return nil, err
14499 }
14500 c.urlParams_.Set("alt", alt)
14501 c.urlParams_.Set("prettyPrint", "false")
14502 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:deploy")
14503 urls += "?" + c.urlParams_.Encode()
14504 req, err := http.NewRequest("POST", urls, body)
14505 if err != nil {
14506 return nil, err
14507 }
14508 req.Header = reqHeaders
14509 googleapi.Expand(req.URL, map[string]string{
14510 "name": c.name,
14511 })
14512 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14513 }
14514
14515
14516
14517
14518
14519
14520
14521 func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14522 gensupport.SetOptions(c.urlParams_, opts...)
14523 res, err := c.doRequest("json")
14524 if res != nil && res.StatusCode == http.StatusNotModified {
14525 if res.Body != nil {
14526 res.Body.Close()
14527 }
14528 return nil, gensupport.WrapError(&googleapi.Error{
14529 Code: res.StatusCode,
14530 Header: res.Header,
14531 })
14532 }
14533 if err != nil {
14534 return nil, err
14535 }
14536 defer googleapi.CloseBody(res)
14537 if err := googleapi.CheckResponse(res); err != nil {
14538 return nil, gensupport.WrapError(err)
14539 }
14540 ret := &GoogleLongrunningOperation{
14541 ServerResponse: googleapi.ServerResponse{
14542 Header: res.Header,
14543 HTTPStatusCode: res.StatusCode,
14544 },
14545 }
14546 target := &ret
14547 if err := gensupport.DecodeResponse(target, res); err != nil {
14548 return nil, err
14549 }
14550 return ret, nil
14551 }
14552
14553 type ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall struct {
14554 s *Service
14555 processorVersion string
14556 googleclouddocumentaiv1beta3evaluateprocessorversionrequest *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest
14557 urlParams_ gensupport.URLParams
14558 ctx_ context.Context
14559 header_ http.Header
14560 }
14561
14562
14563
14564
14565
14566
14567
14568 func (r *ProjectsLocationsProcessorsProcessorVersionsService) EvaluateProcessorVersion(processorVersion string, googleclouddocumentaiv1beta3evaluateprocessorversionrequest *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall {
14569 c := &ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14570 c.processorVersion = processorVersion
14571 c.googleclouddocumentaiv1beta3evaluateprocessorversionrequest = googleclouddocumentaiv1beta3evaluateprocessorversionrequest
14572 return c
14573 }
14574
14575
14576
14577
14578 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall {
14579 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14580 return c
14581 }
14582
14583
14584 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall {
14585 c.ctx_ = ctx
14586 return c
14587 }
14588
14589
14590
14591 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Header() http.Header {
14592 if c.header_ == nil {
14593 c.header_ = make(http.Header)
14594 }
14595 return c.header_
14596 }
14597
14598 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
14599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14600 var body io.Reader = nil
14601 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3evaluateprocessorversionrequest)
14602 if err != nil {
14603 return nil, err
14604 }
14605 c.urlParams_.Set("alt", alt)
14606 c.urlParams_.Set("prettyPrint", "false")
14607 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+processorVersion}:evaluateProcessorVersion")
14608 urls += "?" + c.urlParams_.Encode()
14609 req, err := http.NewRequest("POST", urls, body)
14610 if err != nil {
14611 return nil, err
14612 }
14613 req.Header = reqHeaders
14614 googleapi.Expand(req.URL, map[string]string{
14615 "processorVersion": c.processorVersion,
14616 })
14617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14618 }
14619
14620
14621
14622
14623
14624
14625
14626 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14627 gensupport.SetOptions(c.urlParams_, opts...)
14628 res, err := c.doRequest("json")
14629 if res != nil && res.StatusCode == http.StatusNotModified {
14630 if res.Body != nil {
14631 res.Body.Close()
14632 }
14633 return nil, gensupport.WrapError(&googleapi.Error{
14634 Code: res.StatusCode,
14635 Header: res.Header,
14636 })
14637 }
14638 if err != nil {
14639 return nil, err
14640 }
14641 defer googleapi.CloseBody(res)
14642 if err := googleapi.CheckResponse(res); err != nil {
14643 return nil, gensupport.WrapError(err)
14644 }
14645 ret := &GoogleLongrunningOperation{
14646 ServerResponse: googleapi.ServerResponse{
14647 Header: res.Header,
14648 HTTPStatusCode: res.StatusCode,
14649 },
14650 }
14651 target := &ret
14652 if err := gensupport.DecodeResponse(target, res); err != nil {
14653 return nil, err
14654 }
14655 return ret, nil
14656 }
14657
14658 type ProjectsLocationsProcessorsProcessorVersionsGetCall struct {
14659 s *Service
14660 name string
14661 urlParams_ gensupport.URLParams
14662 ifNoneMatch_ string
14663 ctx_ context.Context
14664 header_ http.Header
14665 }
14666
14667
14668
14669
14670 func (r *ProjectsLocationsProcessorsProcessorVersionsService) Get(name string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
14671 c := &ProjectsLocationsProcessorsProcessorVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14672 c.name = name
14673 return c
14674 }
14675
14676
14677
14678
14679 func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
14680 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14681 return c
14682 }
14683
14684
14685
14686
14687 func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
14688 c.ifNoneMatch_ = entityTag
14689 return c
14690 }
14691
14692
14693 func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
14694 c.ctx_ = ctx
14695 return c
14696 }
14697
14698
14699
14700 func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Header() http.Header {
14701 if c.header_ == nil {
14702 c.header_ = make(http.Header)
14703 }
14704 return c.header_
14705 }
14706
14707 func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) doRequest(alt string) (*http.Response, error) {
14708 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14709 if c.ifNoneMatch_ != "" {
14710 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14711 }
14712 var body io.Reader = nil
14713 c.urlParams_.Set("alt", alt)
14714 c.urlParams_.Set("prettyPrint", "false")
14715 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
14716 urls += "?" + c.urlParams_.Encode()
14717 req, err := http.NewRequest("GET", urls, body)
14718 if err != nil {
14719 return nil, err
14720 }
14721 req.Header = reqHeaders
14722 googleapi.Expand(req.URL, map[string]string{
14723 "name": c.name,
14724 })
14725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14726 }
14727
14728
14729
14730
14731
14732
14733
14734 func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessorVersion, error) {
14735 gensupport.SetOptions(c.urlParams_, opts...)
14736 res, err := c.doRequest("json")
14737 if res != nil && res.StatusCode == http.StatusNotModified {
14738 if res.Body != nil {
14739 res.Body.Close()
14740 }
14741 return nil, gensupport.WrapError(&googleapi.Error{
14742 Code: res.StatusCode,
14743 Header: res.Header,
14744 })
14745 }
14746 if err != nil {
14747 return nil, err
14748 }
14749 defer googleapi.CloseBody(res)
14750 if err := googleapi.CheckResponse(res); err != nil {
14751 return nil, gensupport.WrapError(err)
14752 }
14753 ret := &GoogleCloudDocumentaiV1beta3ProcessorVersion{
14754 ServerResponse: googleapi.ServerResponse{
14755 Header: res.Header,
14756 HTTPStatusCode: res.StatusCode,
14757 },
14758 }
14759 target := &ret
14760 if err := gensupport.DecodeResponse(target, res); err != nil {
14761 return nil, err
14762 }
14763 return ret, nil
14764 }
14765
14766 type ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall struct {
14767 s *Service
14768 parent string
14769 googleclouddocumentaiv1beta3importprocessorversionrequest *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
14770 urlParams_ gensupport.URLParams
14771 ctx_ context.Context
14772 header_ http.Header
14773 }
14774
14775
14776
14777
14778
14779
14780 func (r *ProjectsLocationsProcessorsProcessorVersionsService) ImportProcessorVersion(parent string, googleclouddocumentaiv1beta3importprocessorversionrequest *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall {
14781 c := &ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14782 c.parent = parent
14783 c.googleclouddocumentaiv1beta3importprocessorversionrequest = googleclouddocumentaiv1beta3importprocessorversionrequest
14784 return c
14785 }
14786
14787
14788
14789
14790 func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall {
14791 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14792 return c
14793 }
14794
14795
14796 func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall {
14797 c.ctx_ = ctx
14798 return c
14799 }
14800
14801
14802
14803 func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Header() http.Header {
14804 if c.header_ == nil {
14805 c.header_ = make(http.Header)
14806 }
14807 return c.header_
14808 }
14809
14810 func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
14811 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14812 var body io.Reader = nil
14813 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3importprocessorversionrequest)
14814 if err != nil {
14815 return nil, err
14816 }
14817 c.urlParams_.Set("alt", alt)
14818 c.urlParams_.Set("prettyPrint", "false")
14819 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions:importProcessorVersion")
14820 urls += "?" + c.urlParams_.Encode()
14821 req, err := http.NewRequest("POST", urls, body)
14822 if err != nil {
14823 return nil, err
14824 }
14825 req.Header = reqHeaders
14826 googleapi.Expand(req.URL, map[string]string{
14827 "parent": c.parent,
14828 })
14829 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14830 }
14831
14832
14833
14834
14835
14836
14837
14838 func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14839 gensupport.SetOptions(c.urlParams_, opts...)
14840 res, err := c.doRequest("json")
14841 if res != nil && res.StatusCode == http.StatusNotModified {
14842 if res.Body != nil {
14843 res.Body.Close()
14844 }
14845 return nil, gensupport.WrapError(&googleapi.Error{
14846 Code: res.StatusCode,
14847 Header: res.Header,
14848 })
14849 }
14850 if err != nil {
14851 return nil, err
14852 }
14853 defer googleapi.CloseBody(res)
14854 if err := googleapi.CheckResponse(res); err != nil {
14855 return nil, gensupport.WrapError(err)
14856 }
14857 ret := &GoogleLongrunningOperation{
14858 ServerResponse: googleapi.ServerResponse{
14859 Header: res.Header,
14860 HTTPStatusCode: res.StatusCode,
14861 },
14862 }
14863 target := &ret
14864 if err := gensupport.DecodeResponse(target, res); err != nil {
14865 return nil, err
14866 }
14867 return ret, nil
14868 }
14869
14870 type ProjectsLocationsProcessorsProcessorVersionsListCall struct {
14871 s *Service
14872 parent string
14873 urlParams_ gensupport.URLParams
14874 ifNoneMatch_ string
14875 ctx_ context.Context
14876 header_ http.Header
14877 }
14878
14879
14880
14881
14882
14883 func (r *ProjectsLocationsProcessorsProcessorVersionsService) List(parent string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
14884 c := &ProjectsLocationsProcessorsProcessorVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14885 c.parent = parent
14886 return c
14887 }
14888
14889
14890
14891
14892
14893 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsProcessorVersionsListCall {
14894 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14895 return c
14896 }
14897
14898
14899
14900
14901 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
14902 c.urlParams_.Set("pageToken", pageToken)
14903 return c
14904 }
14905
14906
14907
14908
14909 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsListCall {
14910 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14911 return c
14912 }
14913
14914
14915
14916
14917 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
14918 c.ifNoneMatch_ = entityTag
14919 return c
14920 }
14921
14922
14923 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsListCall {
14924 c.ctx_ = ctx
14925 return c
14926 }
14927
14928
14929
14930 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Header() http.Header {
14931 if c.header_ == nil {
14932 c.header_ = make(http.Header)
14933 }
14934 return c.header_
14935 }
14936
14937 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) doRequest(alt string) (*http.Response, error) {
14938 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14939 if c.ifNoneMatch_ != "" {
14940 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14941 }
14942 var body io.Reader = nil
14943 c.urlParams_.Set("alt", alt)
14944 c.urlParams_.Set("prettyPrint", "false")
14945 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions")
14946 urls += "?" + c.urlParams_.Encode()
14947 req, err := http.NewRequest("GET", urls, body)
14948 if err != nil {
14949 return nil, err
14950 }
14951 req.Header = reqHeaders
14952 googleapi.Expand(req.URL, map[string]string{
14953 "parent": c.parent,
14954 })
14955 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14956 }
14957
14958
14959
14960
14961
14962
14963
14964 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse, error) {
14965 gensupport.SetOptions(c.urlParams_, opts...)
14966 res, err := c.doRequest("json")
14967 if res != nil && res.StatusCode == http.StatusNotModified {
14968 if res.Body != nil {
14969 res.Body.Close()
14970 }
14971 return nil, gensupport.WrapError(&googleapi.Error{
14972 Code: res.StatusCode,
14973 Header: res.Header,
14974 })
14975 }
14976 if err != nil {
14977 return nil, err
14978 }
14979 defer googleapi.CloseBody(res)
14980 if err := googleapi.CheckResponse(res); err != nil {
14981 return nil, gensupport.WrapError(err)
14982 }
14983 ret := &GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse{
14984 ServerResponse: googleapi.ServerResponse{
14985 Header: res.Header,
14986 HTTPStatusCode: res.StatusCode,
14987 },
14988 }
14989 target := &ret
14990 if err := gensupport.DecodeResponse(target, res); err != nil {
14991 return nil, err
14992 }
14993 return ret, nil
14994 }
14995
14996
14997
14998
14999 func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse) error) error {
15000 c.ctx_ = ctx
15001 defer c.PageToken(c.urlParams_.Get("pageToken"))
15002 for {
15003 x, err := c.Do()
15004 if err != nil {
15005 return err
15006 }
15007 if err := f(x); err != nil {
15008 return err
15009 }
15010 if x.NextPageToken == "" {
15011 return nil
15012 }
15013 c.PageToken(x.NextPageToken)
15014 }
15015 }
15016
15017 type ProjectsLocationsProcessorsProcessorVersionsProcessCall struct {
15018 s *Service
15019 name string
15020 googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest
15021 urlParams_ gensupport.URLParams
15022 ctx_ context.Context
15023 header_ http.Header
15024 }
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034 func (r *ProjectsLocationsProcessorsProcessorVersionsService) Process(name string, googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
15035 c := &ProjectsLocationsProcessorsProcessorVersionsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15036 c.name = name
15037 c.googleclouddocumentaiv1beta3processrequest = googleclouddocumentaiv1beta3processrequest
15038 return c
15039 }
15040
15041
15042
15043
15044 func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
15045 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15046 return c
15047 }
15048
15049
15050 func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
15051 c.ctx_ = ctx
15052 return c
15053 }
15054
15055
15056
15057 func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Header() http.Header {
15058 if c.header_ == nil {
15059 c.header_ = make(http.Header)
15060 }
15061 return c.header_
15062 }
15063
15064 func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) doRequest(alt string) (*http.Response, error) {
15065 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15066 var body io.Reader = nil
15067 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processrequest)
15068 if err != nil {
15069 return nil, err
15070 }
15071 c.urlParams_.Set("alt", alt)
15072 c.urlParams_.Set("prettyPrint", "false")
15073 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:process")
15074 urls += "?" + c.urlParams_.Encode()
15075 req, err := http.NewRequest("POST", urls, body)
15076 if err != nil {
15077 return nil, err
15078 }
15079 req.Header = reqHeaders
15080 googleapi.Expand(req.URL, map[string]string{
15081 "name": c.name,
15082 })
15083 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15084 }
15085
15086
15087
15088
15089
15090
15091
15092 func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessResponse, error) {
15093 gensupport.SetOptions(c.urlParams_, opts...)
15094 res, err := c.doRequest("json")
15095 if res != nil && res.StatusCode == http.StatusNotModified {
15096 if res.Body != nil {
15097 res.Body.Close()
15098 }
15099 return nil, gensupport.WrapError(&googleapi.Error{
15100 Code: res.StatusCode,
15101 Header: res.Header,
15102 })
15103 }
15104 if err != nil {
15105 return nil, err
15106 }
15107 defer googleapi.CloseBody(res)
15108 if err := googleapi.CheckResponse(res); err != nil {
15109 return nil, gensupport.WrapError(err)
15110 }
15111 ret := &GoogleCloudDocumentaiV1beta3ProcessResponse{
15112 ServerResponse: googleapi.ServerResponse{
15113 Header: res.Header,
15114 HTTPStatusCode: res.StatusCode,
15115 },
15116 }
15117 target := &ret
15118 if err := gensupport.DecodeResponse(target, res); err != nil {
15119 return nil, err
15120 }
15121 return ret, nil
15122 }
15123
15124 type ProjectsLocationsProcessorsProcessorVersionsTrainCall struct {
15125 s *Service
15126 parent string
15127 googleclouddocumentaiv1beta3trainprocessorversionrequest *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
15128 urlParams_ gensupport.URLParams
15129 ctx_ context.Context
15130 header_ http.Header
15131 }
15132
15133
15134
15135
15136
15137
15138
15139 func (r *ProjectsLocationsProcessorsProcessorVersionsService) Train(parent string, googleclouddocumentaiv1beta3trainprocessorversionrequest *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsTrainCall {
15140 c := &ProjectsLocationsProcessorsProcessorVersionsTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15141 c.parent = parent
15142 c.googleclouddocumentaiv1beta3trainprocessorversionrequest = googleclouddocumentaiv1beta3trainprocessorversionrequest
15143 return c
15144 }
15145
15146
15147
15148
15149 func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsTrainCall {
15150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15151 return c
15152 }
15153
15154
15155 func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsTrainCall {
15156 c.ctx_ = ctx
15157 return c
15158 }
15159
15160
15161
15162 func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Header() http.Header {
15163 if c.header_ == nil {
15164 c.header_ = make(http.Header)
15165 }
15166 return c.header_
15167 }
15168
15169 func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) doRequest(alt string) (*http.Response, error) {
15170 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15171 var body io.Reader = nil
15172 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3trainprocessorversionrequest)
15173 if err != nil {
15174 return nil, err
15175 }
15176 c.urlParams_.Set("alt", alt)
15177 c.urlParams_.Set("prettyPrint", "false")
15178 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions:train")
15179 urls += "?" + c.urlParams_.Encode()
15180 req, err := http.NewRequest("POST", urls, body)
15181 if err != nil {
15182 return nil, err
15183 }
15184 req.Header = reqHeaders
15185 googleapi.Expand(req.URL, map[string]string{
15186 "parent": c.parent,
15187 })
15188 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15189 }
15190
15191
15192
15193
15194
15195
15196
15197 func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15198 gensupport.SetOptions(c.urlParams_, opts...)
15199 res, err := c.doRequest("json")
15200 if res != nil && res.StatusCode == http.StatusNotModified {
15201 if res.Body != nil {
15202 res.Body.Close()
15203 }
15204 return nil, gensupport.WrapError(&googleapi.Error{
15205 Code: res.StatusCode,
15206 Header: res.Header,
15207 })
15208 }
15209 if err != nil {
15210 return nil, err
15211 }
15212 defer googleapi.CloseBody(res)
15213 if err := googleapi.CheckResponse(res); err != nil {
15214 return nil, gensupport.WrapError(err)
15215 }
15216 ret := &GoogleLongrunningOperation{
15217 ServerResponse: googleapi.ServerResponse{
15218 Header: res.Header,
15219 HTTPStatusCode: res.StatusCode,
15220 },
15221 }
15222 target := &ret
15223 if err := gensupport.DecodeResponse(target, res); err != nil {
15224 return nil, err
15225 }
15226 return ret, nil
15227 }
15228
15229 type ProjectsLocationsProcessorsProcessorVersionsUndeployCall struct {
15230 s *Service
15231 name string
15232 googleclouddocumentaiv1beta3undeployprocessorversionrequest *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest
15233 urlParams_ gensupport.URLParams
15234 ctx_ context.Context
15235 header_ http.Header
15236 }
15237
15238
15239
15240
15241 func (r *ProjectsLocationsProcessorsProcessorVersionsService) Undeploy(name string, googleclouddocumentaiv1beta3undeployprocessorversionrequest *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
15242 c := &ProjectsLocationsProcessorsProcessorVersionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15243 c.name = name
15244 c.googleclouddocumentaiv1beta3undeployprocessorversionrequest = googleclouddocumentaiv1beta3undeployprocessorversionrequest
15245 return c
15246 }
15247
15248
15249
15250
15251 func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
15252 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15253 return c
15254 }
15255
15256
15257 func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
15258 c.ctx_ = ctx
15259 return c
15260 }
15261
15262
15263
15264 func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Header() http.Header {
15265 if c.header_ == nil {
15266 c.header_ = make(http.Header)
15267 }
15268 return c.header_
15269 }
15270
15271 func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) doRequest(alt string) (*http.Response, error) {
15272 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15273 var body io.Reader = nil
15274 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3undeployprocessorversionrequest)
15275 if err != nil {
15276 return nil, err
15277 }
15278 c.urlParams_.Set("alt", alt)
15279 c.urlParams_.Set("prettyPrint", "false")
15280 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:undeploy")
15281 urls += "?" + c.urlParams_.Encode()
15282 req, err := http.NewRequest("POST", urls, body)
15283 if err != nil {
15284 return nil, err
15285 }
15286 req.Header = reqHeaders
15287 googleapi.Expand(req.URL, map[string]string{
15288 "name": c.name,
15289 })
15290 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15291 }
15292
15293
15294
15295
15296
15297
15298
15299 func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15300 gensupport.SetOptions(c.urlParams_, opts...)
15301 res, err := c.doRequest("json")
15302 if res != nil && res.StatusCode == http.StatusNotModified {
15303 if res.Body != nil {
15304 res.Body.Close()
15305 }
15306 return nil, gensupport.WrapError(&googleapi.Error{
15307 Code: res.StatusCode,
15308 Header: res.Header,
15309 })
15310 }
15311 if err != nil {
15312 return nil, err
15313 }
15314 defer googleapi.CloseBody(res)
15315 if err := googleapi.CheckResponse(res); err != nil {
15316 return nil, gensupport.WrapError(err)
15317 }
15318 ret := &GoogleLongrunningOperation{
15319 ServerResponse: googleapi.ServerResponse{
15320 Header: res.Header,
15321 HTTPStatusCode: res.StatusCode,
15322 },
15323 }
15324 target := &ret
15325 if err := gensupport.DecodeResponse(target, res); err != nil {
15326 return nil, err
15327 }
15328 return ret, nil
15329 }
15330
15331 type ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall struct {
15332 s *Service
15333 name string
15334 urlParams_ gensupport.URLParams
15335 ifNoneMatch_ string
15336 ctx_ context.Context
15337 header_ http.Header
15338 }
15339
15340
15341
15342
15343
15344
15345 func (r *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService) Get(name string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
15346 c := &ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15347 c.name = name
15348 return c
15349 }
15350
15351
15352
15353
15354 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
15355 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15356 return c
15357 }
15358
15359
15360
15361
15362 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
15363 c.ifNoneMatch_ = entityTag
15364 return c
15365 }
15366
15367
15368 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
15369 c.ctx_ = ctx
15370 return c
15371 }
15372
15373
15374
15375 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Header() http.Header {
15376 if c.header_ == nil {
15377 c.header_ = make(http.Header)
15378 }
15379 return c.header_
15380 }
15381
15382 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
15383 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15384 if c.ifNoneMatch_ != "" {
15385 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15386 }
15387 var body io.Reader = nil
15388 c.urlParams_.Set("alt", alt)
15389 c.urlParams_.Set("prettyPrint", "false")
15390 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
15391 urls += "?" + c.urlParams_.Encode()
15392 req, err := http.NewRequest("GET", urls, body)
15393 if err != nil {
15394 return nil, err
15395 }
15396 req.Header = reqHeaders
15397 googleapi.Expand(req.URL, map[string]string{
15398 "name": c.name,
15399 })
15400 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15401 }
15402
15403
15404
15405
15406
15407
15408
15409 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Evaluation, error) {
15410 gensupport.SetOptions(c.urlParams_, opts...)
15411 res, err := c.doRequest("json")
15412 if res != nil && res.StatusCode == http.StatusNotModified {
15413 if res.Body != nil {
15414 res.Body.Close()
15415 }
15416 return nil, gensupport.WrapError(&googleapi.Error{
15417 Code: res.StatusCode,
15418 Header: res.Header,
15419 })
15420 }
15421 if err != nil {
15422 return nil, err
15423 }
15424 defer googleapi.CloseBody(res)
15425 if err := googleapi.CheckResponse(res); err != nil {
15426 return nil, gensupport.WrapError(err)
15427 }
15428 ret := &GoogleCloudDocumentaiV1beta3Evaluation{
15429 ServerResponse: googleapi.ServerResponse{
15430 Header: res.Header,
15431 HTTPStatusCode: res.StatusCode,
15432 },
15433 }
15434 target := &ret
15435 if err := gensupport.DecodeResponse(target, res); err != nil {
15436 return nil, err
15437 }
15438 return ret, nil
15439 }
15440
15441 type ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall struct {
15442 s *Service
15443 parent string
15444 urlParams_ gensupport.URLParams
15445 ifNoneMatch_ string
15446 ctx_ context.Context
15447 header_ http.Header
15448 }
15449
15450
15451
15452
15453
15454
15455 func (r *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService) List(parent string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
15456 c := &ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15457 c.parent = parent
15458 return c
15459 }
15460
15461
15462
15463
15464 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
15465 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15466 return c
15467 }
15468
15469
15470
15471
15472 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
15473 c.urlParams_.Set("pageToken", pageToken)
15474 return c
15475 }
15476
15477
15478
15479
15480 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
15481 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15482 return c
15483 }
15484
15485
15486
15487
15488 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
15489 c.ifNoneMatch_ = entityTag
15490 return c
15491 }
15492
15493
15494 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
15495 c.ctx_ = ctx
15496 return c
15497 }
15498
15499
15500
15501 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Header() http.Header {
15502 if c.header_ == nil {
15503 c.header_ = make(http.Header)
15504 }
15505 return c.header_
15506 }
15507
15508 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
15509 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15510 if c.ifNoneMatch_ != "" {
15511 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15512 }
15513 var body io.Reader = nil
15514 c.urlParams_.Set("alt", alt)
15515 c.urlParams_.Set("prettyPrint", "false")
15516 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/evaluations")
15517 urls += "?" + c.urlParams_.Encode()
15518 req, err := http.NewRequest("GET", urls, body)
15519 if err != nil {
15520 return nil, err
15521 }
15522 req.Header = reqHeaders
15523 googleapi.Expand(req.URL, map[string]string{
15524 "parent": c.parent,
15525 })
15526 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15527 }
15528
15529
15530
15531
15532
15533
15534
15535 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListEvaluationsResponse, error) {
15536 gensupport.SetOptions(c.urlParams_, opts...)
15537 res, err := c.doRequest("json")
15538 if res != nil && res.StatusCode == http.StatusNotModified {
15539 if res.Body != nil {
15540 res.Body.Close()
15541 }
15542 return nil, gensupport.WrapError(&googleapi.Error{
15543 Code: res.StatusCode,
15544 Header: res.Header,
15545 })
15546 }
15547 if err != nil {
15548 return nil, err
15549 }
15550 defer googleapi.CloseBody(res)
15551 if err := googleapi.CheckResponse(res); err != nil {
15552 return nil, gensupport.WrapError(err)
15553 }
15554 ret := &GoogleCloudDocumentaiV1beta3ListEvaluationsResponse{
15555 ServerResponse: googleapi.ServerResponse{
15556 Header: res.Header,
15557 HTTPStatusCode: res.StatusCode,
15558 },
15559 }
15560 target := &ret
15561 if err := gensupport.DecodeResponse(target, res); err != nil {
15562 return nil, err
15563 }
15564 return ret, nil
15565 }
15566
15567
15568
15569
15570 func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListEvaluationsResponse) error) error {
15571 c.ctx_ = ctx
15572 defer c.PageToken(c.urlParams_.Get("pageToken"))
15573 for {
15574 x, err := c.Do()
15575 if err != nil {
15576 return err
15577 }
15578 if err := f(x); err != nil {
15579 return err
15580 }
15581 if x.NextPageToken == "" {
15582 return nil
15583 }
15584 c.PageToken(x.NextPageToken)
15585 }
15586 }
15587
View as plain text