1// Copyright 2021 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package documentai provides access to the Cloud Document AI API.
8//
9// For product documentation, see: https://cloud.google.com/document-ai/docs/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/documentai/v1"
16//   ...
17//   ctx := context.Background()
18//   documentaiService, err := documentai.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   documentaiService, err := documentai.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   documentaiService, err := documentai.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package documentai // import "google.golang.org/api/documentai/v1"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	googleapi "google.golang.org/api/googleapi"
53	gensupport "google.golang.org/api/internal/gensupport"
54	option "google.golang.org/api/option"
55	internaloption "google.golang.org/api/option/internaloption"
56	htransport "google.golang.org/api/transport/http"
57)
58
59// Always reference these packages, just in case the auto-generated code
60// below doesn't.
61var _ = bytes.NewBuffer
62var _ = strconv.Itoa
63var _ = fmt.Sprintf
64var _ = json.NewDecoder
65var _ = io.Copy
66var _ = url.Parse
67var _ = gensupport.MarshalJSON
68var _ = googleapi.Version
69var _ = errors.New
70var _ = strings.Replace
71var _ = context.Canceled
72var _ = internaloption.WithDefaultEndpoint
73
74const apiId = "documentai:v1"
75const apiName = "documentai"
76const apiVersion = "v1"
77const basePath = "https://documentai.googleapis.com/"
78const mtlsBasePath = "https://documentai.mtls.googleapis.com/"
79
80// OAuth2 scopes used by this API.
81const (
82	// See, edit, configure, and delete your Google Cloud data and see the
83	// email address for your Google Account.
84	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
85)
86
87// NewService creates a new Service.
88func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
89	scopesOption := option.WithScopes(
90		"https://www.googleapis.com/auth/cloud-platform",
91	)
92	// NOTE: prepend, so we don't override user-specified scopes.
93	opts = append([]option.ClientOption{scopesOption}, opts...)
94	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
95	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
96	client, endpoint, err := htransport.NewClient(ctx, opts...)
97	if err != nil {
98		return nil, err
99	}
100	s, err := New(client)
101	if err != nil {
102		return nil, err
103	}
104	if endpoint != "" {
105		s.BasePath = endpoint
106	}
107	return s, nil
108}
109
110// New creates a new Service. It uses the provided http.Client for requests.
111//
112// Deprecated: please use NewService instead.
113// To provide a custom HTTP client, use option.WithHTTPClient.
114// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
115func New(client *http.Client) (*Service, error) {
116	if client == nil {
117		return nil, errors.New("client is nil")
118	}
119	s := &Service{client: client, BasePath: basePath}
120	s.Operations = NewOperationsService(s)
121	s.Projects = NewProjectsService(s)
122	s.Uiv1beta3 = NewUiv1beta3Service(s)
123	return s, nil
124}
125
126type Service struct {
127	client    *http.Client
128	BasePath  string // API endpoint base URL
129	UserAgent string // optional additional User-Agent fragment
130
131	Operations *OperationsService
132
133	Projects *ProjectsService
134
135	Uiv1beta3 *Uiv1beta3Service
136}
137
138func (s *Service) userAgent() string {
139	if s.UserAgent == "" {
140		return googleapi.UserAgent
141	}
142	return googleapi.UserAgent + " " + s.UserAgent
143}
144
145func NewOperationsService(s *Service) *OperationsService {
146	rs := &OperationsService{s: s}
147	return rs
148}
149
150type OperationsService struct {
151	s *Service
152}
153
154func NewProjectsService(s *Service) *ProjectsService {
155	rs := &ProjectsService{s: s}
156	rs.Locations = NewProjectsLocationsService(s)
157	rs.Operations = NewProjectsOperationsService(s)
158	return rs
159}
160
161type ProjectsService struct {
162	s *Service
163
164	Locations *ProjectsLocationsService
165
166	Operations *ProjectsOperationsService
167}
168
169func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
170	rs := &ProjectsLocationsService{s: s}
171	rs.Operations = NewProjectsLocationsOperationsService(s)
172	rs.Processors = NewProjectsLocationsProcessorsService(s)
173	return rs
174}
175
176type ProjectsLocationsService struct {
177	s *Service
178
179	Operations *ProjectsLocationsOperationsService
180
181	Processors *ProjectsLocationsProcessorsService
182}
183
184func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
185	rs := &ProjectsLocationsOperationsService{s: s}
186	return rs
187}
188
189type ProjectsLocationsOperationsService struct {
190	s *Service
191}
192
193func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService {
194	rs := &ProjectsLocationsProcessorsService{s: s}
195	rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s)
196	rs.ProcessorVersions = NewProjectsLocationsProcessorsProcessorVersionsService(s)
197	return rs
198}
199
200type ProjectsLocationsProcessorsService struct {
201	s *Service
202
203	HumanReviewConfig *ProjectsLocationsProcessorsHumanReviewConfigService
204
205	ProcessorVersions *ProjectsLocationsProcessorsProcessorVersionsService
206}
207
208func NewProjectsLocationsProcessorsHumanReviewConfigService(s *Service) *ProjectsLocationsProcessorsHumanReviewConfigService {
209	rs := &ProjectsLocationsProcessorsHumanReviewConfigService{s: s}
210	return rs
211}
212
213type ProjectsLocationsProcessorsHumanReviewConfigService struct {
214	s *Service
215}
216
217func NewProjectsLocationsProcessorsProcessorVersionsService(s *Service) *ProjectsLocationsProcessorsProcessorVersionsService {
218	rs := &ProjectsLocationsProcessorsProcessorVersionsService{s: s}
219	return rs
220}
221
222type ProjectsLocationsProcessorsProcessorVersionsService struct {
223	s *Service
224}
225
226func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
227	rs := &ProjectsOperationsService{s: s}
228	return rs
229}
230
231type ProjectsOperationsService struct {
232	s *Service
233}
234
235func NewUiv1beta3Service(s *Service) *Uiv1beta3Service {
236	rs := &Uiv1beta3Service{s: s}
237	rs.Projects = NewUiv1beta3ProjectsService(s)
238	return rs
239}
240
241type Uiv1beta3Service struct {
242	s *Service
243
244	Projects *Uiv1beta3ProjectsService
245}
246
247func NewUiv1beta3ProjectsService(s *Service) *Uiv1beta3ProjectsService {
248	rs := &Uiv1beta3ProjectsService{s: s}
249	rs.Locations = NewUiv1beta3ProjectsLocationsService(s)
250	return rs
251}
252
253type Uiv1beta3ProjectsService struct {
254	s *Service
255
256	Locations *Uiv1beta3ProjectsLocationsService
257}
258
259func NewUiv1beta3ProjectsLocationsService(s *Service) *Uiv1beta3ProjectsLocationsService {
260	rs := &Uiv1beta3ProjectsLocationsService{s: s}
261	rs.Operations = NewUiv1beta3ProjectsLocationsOperationsService(s)
262	return rs
263}
264
265type Uiv1beta3ProjectsLocationsService struct {
266	s *Service
267
268	Operations *Uiv1beta3ProjectsLocationsOperationsService
269}
270
271func NewUiv1beta3ProjectsLocationsOperationsService(s *Service) *Uiv1beta3ProjectsLocationsOperationsService {
272	rs := &Uiv1beta3ProjectsLocationsOperationsService{s: s}
273	return rs
274}
275
276type Uiv1beta3ProjectsLocationsOperationsService struct {
277	s *Service
278}
279
280type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct {
281	// CommonMetadata: The basic metadata of the long running operation.
282	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
283
284	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
285	// unconditionally include in API requests. By default, fields with
286	// empty or default values are omitted from API requests. However, any
287	// non-pointer, non-interface field appearing in ForceSendFields will be
288	// sent to the server regardless of whether the field is empty or not.
289	// This may be used to include empty fields in Patch requests.
290	ForceSendFields []string `json:"-"`
291
292	// NullFields is a list of field names (e.g. "CommonMetadata") to
293	// include in API requests with the JSON null value. By default, fields
294	// with empty values are omitted from API requests. However, any field
295	// with an empty value appearing in NullFields will be sent to the
296	// server as null. It is an error if a field in this list has a
297	// non-empty value. This may be used to include null fields in Patch
298	// requests.
299	NullFields []string `json:"-"`
300}
301
302func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) {
303	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
304	raw := NoMethod(*s)
305	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
306}
307
308// GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse: Response
309// of the delete documents operation.
310type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse struct {
311}
312
313type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata struct {
314	// CommonMetadata: The basic metadata of the long running operation.
315	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
316
317	// DestDatasetType: The destination dataset split type.
318	//
319	// Possible values:
320	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not
321	// set. go/protodosdonts#do-include-an-unspecified-value-in-an-enum
322	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
323	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
324	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
325	DestDatasetType string `json:"destDatasetType,omitempty"`
326
327	// IndividualBatchMoveStatuses: The list of response details of each
328	// document.
329	IndividualBatchMoveStatuses []*GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus `json:"individualBatchMoveStatuses,omitempty"`
330
331	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
332	// unconditionally include in API requests. By default, fields with
333	// empty or default values are omitted from API requests. However, any
334	// non-pointer, non-interface field appearing in ForceSendFields will be
335	// sent to the server regardless of whether the field is empty or not.
336	// This may be used to include empty fields in Patch requests.
337	ForceSendFields []string `json:"-"`
338
339	// NullFields is a list of field names (e.g. "CommonMetadata") to
340	// include in API requests with the JSON null value. By default, fields
341	// with empty values are omitted from API requests. However, any field
342	// with an empty value appearing in NullFields will be sent to the
343	// server as null. It is an error if a field in this list has a
344	// non-empty value. This may be used to include null fields in Patch
345	// requests.
346	NullFields []string `json:"-"`
347}
348
349func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata) MarshalJSON() ([]byte, error) {
350	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata
351	raw := NoMethod(*s)
352	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
353}
354
355// GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatc
356// hMoveStatus: The status of each individual document in the batch move
357// process.
358type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus struct {
359	// DocumentId: The document id of the document.
360	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
361
362	// Status: The status of moving the document.
363	Status *GoogleRpcStatus `json:"status,omitempty"`
364
365	// ForceSendFields is a list of field names (e.g. "DocumentId") to
366	// unconditionally include in API requests. By default, fields with
367	// empty or default values are omitted from API requests. However, any
368	// non-pointer, non-interface field appearing in ForceSendFields will be
369	// sent to the server regardless of whether the field is empty or not.
370	// This may be used to include empty fields in Patch requests.
371	ForceSendFields []string `json:"-"`
372
373	// NullFields is a list of field names (e.g. "DocumentId") to include in
374	// API requests with the JSON null value. By default, fields with empty
375	// values are omitted from API requests. However, any field with an
376	// empty value appearing in NullFields will be sent to the server as
377	// null. It is an error if a field in this list has a non-empty value.
378	// This may be used to include null fields in Patch requests.
379	NullFields []string `json:"-"`
380}
381
382func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus) MarshalJSON() ([]byte, error) {
383	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
384	raw := NoMethod(*s)
385	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
386}
387
388// GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse: Response of
389// the batch move documents operation.
390type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse struct {
391}
392
393// GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata: The common
394// metadata for long running operations.
395type GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata struct {
396	// CreateTime: The creation time of the operation.
397	CreateTime string `json:"createTime,omitempty"`
398
399	// Resource: A related resource to this operation.
400	Resource string `json:"resource,omitempty"`
401
402	// State: The state of the operation.
403	//
404	// Possible values:
405	//   "STATE_UNSPECIFIED" - Unspecified state.
406	//   "RUNNING" - Operation is still running.
407	//   "CANCELLING" - Operation is being cancelled.
408	//   "SUCCEEDED" - Operation succeeded.
409	//   "FAILED" - Operation failed.
410	//   "CANCELLED" - Operation is cancelled.
411	State string `json:"state,omitempty"`
412
413	// StateMessage: A message providing more details about the current
414	// state of processing.
415	StateMessage string `json:"stateMessage,omitempty"`
416
417	// UpdateTime: The last update time of the operation.
418	UpdateTime string `json:"updateTime,omitempty"`
419
420	// ForceSendFields is a list of field names (e.g. "CreateTime") to
421	// unconditionally include in API requests. By default, fields with
422	// empty or default values are omitted from API requests. However, any
423	// non-pointer, non-interface field appearing in ForceSendFields will be
424	// sent to the server regardless of whether the field is empty or not.
425	// This may be used to include empty fields in Patch requests.
426	ForceSendFields []string `json:"-"`
427
428	// NullFields is a list of field names (e.g. "CreateTime") to include in
429	// API requests with the JSON null value. By default, fields with empty
430	// values are omitted from API requests. However, any field with an
431	// empty value appearing in NullFields will be sent to the server as
432	// null. It is an error if a field in this list has a non-empty value.
433	// This may be used to include null fields in Patch requests.
434	NullFields []string `json:"-"`
435}
436
437func (s *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
438	type NoMethod GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
439	raw := NoMethod(*s)
440	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
441}
442
443// GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata: The
444// long running operation metadata for CreateLabelerPool.
445type GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata struct {
446	// CommonMetadata: The basic metadata of the long running operation.
447	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
448
449	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
450	// unconditionally include in API requests. By default, fields with
451	// empty or default values are omitted from API requests. However, any
452	// non-pointer, non-interface field appearing in ForceSendFields will be
453	// sent to the server regardless of whether the field is empty or not.
454	// This may be used to include empty fields in Patch requests.
455	ForceSendFields []string `json:"-"`
456
457	// NullFields is a list of field names (e.g. "CommonMetadata") to
458	// include in API requests with the JSON null value. By default, fields
459	// with empty values are omitted from API requests. However, any field
460	// with an empty value appearing in NullFields will be sent to the
461	// server as null. It is an error if a field in this list has a
462	// non-empty value. This may be used to include null fields in Patch
463	// requests.
464	NullFields []string `json:"-"`
465}
466
467func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
468	type NoMethod GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
469	raw := NoMethod(*s)
470	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
471}
472
473// GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The
474// long running operation metadata for DeleteLabelerPool.
475type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct {
476	// CommonMetadata: The basic metadata of the long running operation.
477	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
478
479	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
480	// unconditionally include in API requests. By default, fields with
481	// empty or default values are omitted from API requests. However, any
482	// non-pointer, non-interface field appearing in ForceSendFields will be
483	// sent to the server regardless of whether the field is empty or not.
484	// This may be used to include empty fields in Patch requests.
485	ForceSendFields []string `json:"-"`
486
487	// NullFields is a list of field names (e.g. "CommonMetadata") to
488	// include in API requests with the JSON null value. By default, fields
489	// with empty values are omitted from API requests. However, any field
490	// with an empty value appearing in NullFields will be sent to the
491	// server as null. It is an error if a field in this list has a
492	// non-empty value. This may be used to include null fields in Patch
493	// requests.
494	NullFields []string `json:"-"`
495}
496
497func (s *GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
498	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
499	raw := NoMethod(*s)
500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
501}
502
503// GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata: The long
504// running operation metadata for delete processor method.
505type GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata struct {
506	// CommonMetadata: The basic metadata of the long running operation.
507	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
508
509	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
510	// unconditionally include in API requests. By default, fields with
511	// empty or default values are omitted from API requests. However, any
512	// non-pointer, non-interface field appearing in ForceSendFields will be
513	// sent to the server regardless of whether the field is empty or not.
514	// This may be used to include empty fields in Patch requests.
515	ForceSendFields []string `json:"-"`
516
517	// NullFields is a list of field names (e.g. "CommonMetadata") to
518	// include in API requests with the JSON null value. By default, fields
519	// with empty values are omitted from API requests. However, any field
520	// with an empty value appearing in NullFields will be sent to the
521	// server as null. It is an error if a field in this list has a
522	// non-empty value. This may be used to include null fields in Patch
523	// requests.
524	NullFields []string `json:"-"`
525}
526
527func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
528	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
529	raw := NoMethod(*s)
530	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
531}
532
533// GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata: The
534// long running operation metadata for delete processor version method.
535type GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata struct {
536	// CommonMetadata: The basic metadata of the long running operation.
537	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
538
539	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
540	// unconditionally include in API requests. By default, fields with
541	// empty or default values are omitted from API requests. However, any
542	// non-pointer, non-interface field appearing in ForceSendFields will be
543	// sent to the server regardless of whether the field is empty or not.
544	// This may be used to include empty fields in Patch requests.
545	ForceSendFields []string `json:"-"`
546
547	// NullFields is a list of field names (e.g. "CommonMetadata") to
548	// include in API requests with the JSON null value. By default, fields
549	// with empty values are omitted from API requests. However, any field
550	// with an empty value appearing in NullFields will be sent to the
551	// server as null. It is an error if a field in this list has a
552	// non-empty value. This may be used to include null fields in Patch
553	// requests.
554	NullFields []string `json:"-"`
555}
556
557func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
558	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
559	raw := NoMethod(*s)
560	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
561}
562
563// GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata: The
564// long running operation metadata for deploy processor version method.
565type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata struct {
566	// CommonMetadata: The basic metadata of the long running operation.
567	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
568
569	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
570	// unconditionally include in API requests. By default, fields with
571	// empty or default values are omitted from API requests. However, any
572	// non-pointer, non-interface field appearing in ForceSendFields will be
573	// sent to the server regardless of whether the field is empty or not.
574	// This may be used to include empty fields in Patch requests.
575	ForceSendFields []string `json:"-"`
576
577	// NullFields is a list of field names (e.g. "CommonMetadata") to
578	// include in API requests with the JSON null value. By default, fields
579	// with empty values are omitted from API requests. However, any field
580	// with an empty value appearing in NullFields will be sent to the
581	// server as null. It is an error if a field in this list has a
582	// non-empty value. This may be used to include null fields in Patch
583	// requests.
584	NullFields []string `json:"-"`
585}
586
587func (s *GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
588	type NoMethod GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
589	raw := NoMethod(*s)
590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
591}
592
593// GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse:
594// Response message for the deploy processor version method.
595type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse struct {
596}
597
598// GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata: The long
599// running operation metadata for disable processor method.
600type GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata struct {
601	// CommonMetadata: The basic metadata of the long running operation.
602	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
603
604	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
605	// unconditionally include in API requests. By default, fields with
606	// empty or default values are omitted from API requests. However, any
607	// non-pointer, non-interface field appearing in ForceSendFields will be
608	// sent to the server regardless of whether the field is empty or not.
609	// This may be used to include empty fields in Patch requests.
610	ForceSendFields []string `json:"-"`
611
612	// NullFields is a list of field names (e.g. "CommonMetadata") to
613	// include in API requests with the JSON null value. By default, fields
614	// with empty values are omitted from API requests. However, any field
615	// with an empty value appearing in NullFields will be sent to the
616	// server as null. It is an error if a field in this list has a
617	// non-empty value. This may be used to include null fields in Patch
618	// requests.
619	NullFields []string `json:"-"`
620}
621
622func (s *GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
623	type NoMethod GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
624	raw := NoMethod(*s)
625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
626}
627
628// GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse: Response
629// message for the disable processor method. Intentionally empty proto
630// for adding fields in future.
631type GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse struct {
632}
633
634// GoogleCloudDocumentaiUiv1beta3DocumentId: Document Identifier.
635type GoogleCloudDocumentaiUiv1beta3DocumentId struct {
636	GcsManagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"`
637
638	// RevisionReference: Points to a specific revision of the document if
639	// set.
640	RevisionReference *GoogleCloudDocumentaiUiv1beta3RevisionReference `json:"revisionReference,omitempty"`
641
642	// ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to
643	// unconditionally include in API requests. By default, fields with
644	// empty or default values are omitted from API requests. However, any
645	// non-pointer, non-interface field appearing in ForceSendFields will be
646	// sent to the server regardless of whether the field is empty or not.
647	// This may be used to include empty fields in Patch requests.
648	ForceSendFields []string `json:"-"`
649
650	// NullFields is a list of field names (e.g. "GcsManagedDocId") to
651	// include in API requests with the JSON null value. By default, fields
652	// with empty values are omitted from API requests. However, any field
653	// with an empty value appearing in NullFields will be sent to the
654	// server as null. It is an error if a field in this list has a
655	// non-empty value. This may be used to include null fields in Patch
656	// requests.
657	NullFields []string `json:"-"`
658}
659
660func (s *GoogleCloudDocumentaiUiv1beta3DocumentId) MarshalJSON() ([]byte, error) {
661	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentId
662	raw := NoMethod(*s)
663	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
664}
665
666// GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId:
667// Identifies a document uniquely within the scope of a dataset in the
668// GCS-based option.
669type GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId struct {
670	// CwDocId: Optional. Id of the document (indexed) managed by Content
671	// Warehouse.
672	CwDocId string `json:"cwDocId,omitempty"`
673
674	// GcsUri: Required. The Cloud Storage uri where the actual document is
675	// stored.
676	GcsUri string `json:"gcsUri,omitempty"`
677
678	// ForceSendFields is a list of field names (e.g. "CwDocId") to
679	// unconditionally include in API requests. By default, fields with
680	// empty or default values are omitted from API requests. However, any
681	// non-pointer, non-interface field appearing in ForceSendFields will be
682	// sent to the server regardless of whether the field is empty or not.
683	// This may be used to include empty fields in Patch requests.
684	ForceSendFields []string `json:"-"`
685
686	// NullFields is a list of field names (e.g. "CwDocId") to include in
687	// API requests with the JSON null value. By default, fields with empty
688	// values are omitted from API requests. However, any field with an
689	// empty value appearing in NullFields will be sent to the server as
690	// null. It is an error if a field in this list has a non-empty value.
691	// This may be used to include null fields in Patch requests.
692	NullFields []string `json:"-"`
693}
694
695func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) {
696	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId
697	raw := NoMethod(*s)
698	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
699}
700
701// GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata: The long
702// running operation metadata for enable processor method.
703type GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata struct {
704	// CommonMetadata: The basic metadata of the long running operation.
705	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
706
707	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
708	// unconditionally include in API requests. By default, fields with
709	// empty or default values are omitted from API requests. However, any
710	// non-pointer, non-interface field appearing in ForceSendFields will be
711	// sent to the server regardless of whether the field is empty or not.
712	// This may be used to include empty fields in Patch requests.
713	ForceSendFields []string `json:"-"`
714
715	// NullFields is a list of field names (e.g. "CommonMetadata") to
716	// include in API requests with the JSON null value. By default, fields
717	// with empty values are omitted from API requests. However, any field
718	// with an empty value appearing in NullFields will be sent to the
719	// server as null. It is an error if a field in this list has a
720	// non-empty value. This may be used to include null fields in Patch
721	// requests.
722	NullFields []string `json:"-"`
723}
724
725func (s *GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
726	type NoMethod GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
727	raw := NoMethod(*s)
728	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
729}
730
731// GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse: Response
732// message for the enable processor method. Intentionally empty proto
733// for adding fields in future.
734type GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse struct {
735}
736
737// GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata:
738// Metadata of the EvaluateProcessorVersion method.
739type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata struct {
740	// CommonMetadata: The basic metadata of the long running operation.
741	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
742
743	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
744	// unconditionally include in API requests. By default, fields with
745	// empty or default values are omitted from API requests. However, any
746	// non-pointer, non-interface field appearing in ForceSendFields will be
747	// sent to the server regardless of whether the field is empty or not.
748	// This may be used to include empty fields in Patch requests.
749	ForceSendFields []string `json:"-"`
750
751	// NullFields is a list of field names (e.g. "CommonMetadata") to
752	// include in API requests with the JSON null value. By default, fields
753	// with empty values are omitted from API requests. However, any field
754	// with an empty value appearing in NullFields will be sent to the
755	// server as null. It is an error if a field in this list has a
756	// non-empty value. This may be used to include null fields in Patch
757	// requests.
758	NullFields []string `json:"-"`
759}
760
761func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
762	type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
763	raw := NoMethod(*s)
764	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
765}
766
767// GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse:
768// Metadata of the EvaluateProcessorVersion method.
769type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse struct {
770	// Evaluation: The resource name of the created evaluation.
771	Evaluation string `json:"evaluation,omitempty"`
772
773	// ForceSendFields is a list of field names (e.g. "Evaluation") to
774	// unconditionally include in API requests. By default, fields with
775	// empty or default values are omitted from API requests. However, any
776	// non-pointer, non-interface field appearing in ForceSendFields will be
777	// sent to the server regardless of whether the field is empty or not.
778	// This may be used to include empty fields in Patch requests.
779	ForceSendFields []string `json:"-"`
780
781	// NullFields is a list of field names (e.g. "Evaluation") to include in
782	// API requests with the JSON null value. By default, fields with empty
783	// values are omitted from API requests. However, any field with an
784	// empty value appearing in NullFields will be sent to the server as
785	// null. It is an error if a field in this list has a non-empty value.
786	// This may be used to include null fields in Patch requests.
787	NullFields []string `json:"-"`
788}
789
790func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
791	type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
792	raw := NoMethod(*s)
793	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
794}
795
796// GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata:
797// Metadata message associated with the ExportProcessorVersion
798// operation.
799type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata struct {
800	// CommonMetadata: The common metadata about the operation.
801	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
802
803	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
804	// unconditionally include in API requests. By default, fields with
805	// empty or default values are omitted from API requests. However, any
806	// non-pointer, non-interface field appearing in ForceSendFields will be
807	// sent to the server regardless of whether the field is empty or not.
808	// This may be used to include empty fields in Patch requests.
809	ForceSendFields []string `json:"-"`
810
811	// NullFields is a list of field names (e.g. "CommonMetadata") to
812	// include in API requests with the JSON null value. By default, fields
813	// with empty values are omitted from API requests. However, any field
814	// with an empty value appearing in NullFields will be sent to the
815	// server as null. It is an error if a field in this list has a
816	// non-empty value. This may be used to include null fields in Patch
817	// requests.
818	NullFields []string `json:"-"`
819}
820
821func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
822	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
823	raw := NoMethod(*s)
824	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
825}
826
827// GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse:
828// Response message associated with the ExportProcessorVersion
829// operation.
830type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse struct {
831	// GcsUri: The Cloud Storage URI containing the output artifacts.
832	GcsUri string `json:"gcsUri,omitempty"`
833
834	// ForceSendFields is a list of field names (e.g. "GcsUri") to
835	// unconditionally include in API requests. By default, fields with
836	// empty or default values are omitted from API requests. However, any
837	// non-pointer, non-interface field appearing in ForceSendFields will be
838	// sent to the server regardless of whether the field is empty or not.
839	// This may be used to include empty fields in Patch requests.
840	ForceSendFields []string `json:"-"`
841
842	// NullFields is a list of field names (e.g. "GcsUri") to include in API
843	// requests with the JSON null value. By default, fields with empty
844	// values are omitted from API requests. However, any field with an
845	// empty value appearing in NullFields will be sent to the server as
846	// null. It is an error if a field in this list has a non-empty value.
847	// This may be used to include null fields in Patch requests.
848	NullFields []string `json:"-"`
849}
850
851func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
852	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
853	raw := NoMethod(*s)
854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
855}
856
857// GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata: Metadata of
858// the import document operation.
859type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata struct {
860	// CommonMetadata: The basic metadata of the long running operation.
861	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
862
863	// IndividualImportStatuses: The list of response details of each
864	// document.
865	IndividualImportStatuses []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"`
866
867	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
868	// unconditionally include in API requests. By default, fields with
869	// empty or default values are omitted from API requests. However, any
870	// non-pointer, non-interface field appearing in ForceSendFields will be
871	// sent to the server regardless of whether the field is empty or not.
872	// This may be used to include empty fields in Patch requests.
873	ForceSendFields []string `json:"-"`
874
875	// NullFields is a list of field names (e.g. "CommonMetadata") to
876	// include in API requests with the JSON null value. By default, fields
877	// with empty values are omitted from API requests. However, any field
878	// with an empty value appearing in NullFields will be sent to the
879	// server as null. It is an error if a field in this list has a
880	// non-empty value. This may be used to include null fields in Patch
881	// requests.
882	NullFields []string `json:"-"`
883}
884
885func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
886	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata
887	raw := NoMethod(*s)
888	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
889}
890
891// GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportS
892// tatus: The status of each individual document in the import process.
893type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus struct {
894	// InputGcsSource: The source Cloud Storage URI of the document.
895	InputGcsSource string `json:"inputGcsSource,omitempty"`
896
897	// OutputGcsDestination: The output_gcs_destination of the processed
898	// document if it was successful, otherwise empty.
899	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
900
901	// Status: The status of the importing of the document.
902	Status *GoogleRpcStatus `json:"status,omitempty"`
903
904	// ForceSendFields is a list of field names (e.g. "InputGcsSource") to
905	// unconditionally include in API requests. By default, fields with
906	// empty or default values are omitted from API requests. However, any
907	// non-pointer, non-interface field appearing in ForceSendFields will be
908	// sent to the server regardless of whether the field is empty or not.
909	// This may be used to include empty fields in Patch requests.
910	ForceSendFields []string `json:"-"`
911
912	// NullFields is a list of field names (e.g. "InputGcsSource") to
913	// include in API requests with the JSON null value. By default, fields
914	// with empty values are omitted from API requests. However, any field
915	// with an empty value appearing in NullFields will be sent to the
916	// server as null. It is an error if a field in this list has a
917	// non-empty value. This may be used to include null fields in Patch
918	// requests.
919	NullFields []string `json:"-"`
920}
921
922func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) {
923	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
924	raw := NoMethod(*s)
925	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
926}
927
928// GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse: Response of
929// the import document operation.
930type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct {
931}
932
933// GoogleCloudDocumentaiUiv1beta3RevisionReference: The revision
934// reference specifies which revision on the document to read.
935type GoogleCloudDocumentaiUiv1beta3RevisionReference struct {
936	// LatestProcessorVersion: Read the revision generated by the processor
937	// version, returns error if it does not exist.
938	LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"`
939
940	// RevisionCase: Read the revision by the predefined case.
941	//
942	// Possible values:
943	//   "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read
944	// the first (OCR) revision.
945	//   "LATEST_HUMAN_REVIEW" - The latest revision made by a human.
946	//   "LATEST_TIMESTAMP" - The latest revision based on timestamp.
947	RevisionCase string `json:"revisionCase,omitempty"`
948
949	// RevisionId: Read the revision given by the id, returns error if it
950	// does not exist.
951	RevisionId string `json:"revisionId,omitempty"`
952
953	// ForceSendFields is a list of field names (e.g.
954	// "LatestProcessorVersion") to unconditionally include in API requests.
955	// By default, fields with empty or default values are omitted from API
956	// requests. However, any non-pointer, non-interface field appearing in
957	// ForceSendFields will be sent to the server regardless of whether the
958	// field is empty or not. This may be used to include empty fields in
959	// Patch requests.
960	ForceSendFields []string `json:"-"`
961
962	// NullFields is a list of field names (e.g. "LatestProcessorVersion")
963	// to include in API requests with the JSON null value. By default,
964	// fields with empty values are omitted from API requests. However, any
965	// field with an empty value appearing in NullFields will be sent to the
966	// server as null. It is an error if a field in this list has a
967	// non-empty value. This may be used to include null fields in Patch
968	// requests.
969	NullFields []string `json:"-"`
970}
971
972func (s *GoogleCloudDocumentaiUiv1beta3RevisionReference) MarshalJSON() ([]byte, error) {
973	type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionReference
974	raw := NoMethod(*s)
975	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
976}
977
978// GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The
979// long running operation metadata for set default processor version
980// method.
981type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata struct {
982	// CommonMetadata: The basic metadata of the long running operation.
983	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
984
985	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
986	// unconditionally include in API requests. By default, fields with
987	// empty or default values are omitted from API requests. However, any
988	// non-pointer, non-interface field appearing in ForceSendFields will be
989	// sent to the server regardless of whether the field is empty or not.
990	// This may be used to include empty fields in Patch requests.
991	ForceSendFields []string `json:"-"`
992
993	// NullFields is a list of field names (e.g. "CommonMetadata") to
994	// include in API requests with the JSON null value. By default, fields
995	// with empty values are omitted from API requests. However, any field
996	// with an empty value appearing in NullFields will be sent to the
997	// server as null. It is an error if a field in this list has a
998	// non-empty value. This may be used to include null fields in Patch
999	// requests.
1000	NullFields []string `json:"-"`
1001}
1002
1003func (s *GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1004	type NoMethod GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1005	raw := NoMethod(*s)
1006	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1007}
1008
1009// GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse:
1010// Response message for set default processor version method.
1011type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse struct {
1012}
1013
1014// GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata: The
1015// metadata that represents a processor version being created.
1016type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata struct {
1017	// CommonMetadata: The basic metadata of the long running operation.
1018	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1019
1020	// TestDatasetValidation: The test dataset validation information.
1021	TestDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
1022
1023	// TrainingDatasetValidation: The training dataset validation
1024	// information.
1025	TrainingDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
1026
1027	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1028	// unconditionally include in API requests. By default, fields with
1029	// empty or default values are omitted from API requests. However, any
1030	// non-pointer, non-interface field appearing in ForceSendFields will be
1031	// sent to the server regardless of whether the field is empty or not.
1032	// This may be used to include empty fields in Patch requests.
1033	ForceSendFields []string `json:"-"`
1034
1035	// NullFields is a list of field names (e.g. "CommonMetadata") to
1036	// include in API requests with the JSON null value. By default, fields
1037	// with empty values are omitted from API requests. However, any field
1038	// with an empty value appearing in NullFields will be sent to the
1039	// server as null. It is an error if a field in this list has a
1040	// non-empty value. This may be used to include null fields in Patch
1041	// requests.
1042	NullFields []string `json:"-"`
1043}
1044
1045func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1046	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
1047	raw := NoMethod(*s)
1048	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1049}
1050
1051// GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetVali
1052// dation: The dataset validation information. This includes any and all
1053// errors with documents and the dataset.
1054type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation struct {
1055	// DatasetErrorCount: The total number of dataset errors.
1056	DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
1057
1058	// DatasetErrors: Error information for the dataset as a whole. A
1059	// maximum of 10 dataset errors will be returned. A single dataset error
1060	// is terminal for training.
1061	DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
1062
1063	// DocumentErrorCount: The total number of document errors.
1064	DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
1065
1066	// DocumentErrors: Error information pertaining to specific documents. A
1067	// maximum of 10 document errors will be returned. Any document with
1068	// errors will not be used throughout training.
1069	DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
1070
1071	// ForceSendFields is a list of field names (e.g. "DatasetErrorCount")
1072	// to unconditionally include in API requests. By default, fields with
1073	// empty or default values are omitted from API requests. However, any
1074	// non-pointer, non-interface field appearing in ForceSendFields will be
1075	// sent to the server regardless of whether the field is empty or not.
1076	// This may be used to include empty fields in Patch requests.
1077	ForceSendFields []string `json:"-"`
1078
1079	// NullFields is a list of field names (e.g. "DatasetErrorCount") to
1080	// include in API requests with the JSON null value. By default, fields
1081	// with empty values are omitted from API requests. However, any field
1082	// with an empty value appearing in NullFields will be sent to the
1083	// server as null. It is an error if a field in this list has a
1084	// non-empty value. This may be used to include null fields in Patch
1085	// requests.
1086	NullFields []string `json:"-"`
1087}
1088
1089func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
1090	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
1091	raw := NoMethod(*s)
1092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1093}
1094
1095// GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse: The
1096// response for the TrainProcessorVersion method.
1097type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse struct {
1098	// ProcessorVersion: The resource name of the processor version produced
1099	// by training.
1100	ProcessorVersion string `json:"processorVersion,omitempty"`
1101
1102	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
1103	// unconditionally include in API requests. By default, fields with
1104	// empty or default values are omitted from API requests. However, any
1105	// non-pointer, non-interface field appearing in ForceSendFields will be
1106	// sent to the server regardless of whether the field is empty or not.
1107	// This may be used to include empty fields in Patch requests.
1108	ForceSendFields []string `json:"-"`
1109
1110	// NullFields is a list of field names (e.g. "ProcessorVersion") to
1111	// include in API requests with the JSON null value. By default, fields
1112	// with empty values are omitted from API requests. However, any field
1113	// with an empty value appearing in NullFields will be sent to the
1114	// server as null. It is an error if a field in this list has a
1115	// non-empty value. This may be used to include null fields in Patch
1116	// requests.
1117	NullFields []string `json:"-"`
1118}
1119
1120func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
1121	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
1122	raw := NoMethod(*s)
1123	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1124}
1125
1126// GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata: The
1127// long running operation metadata for the undeploy processor version
1128// method.
1129type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata struct {
1130	// CommonMetadata: The basic metadata of the long running operation.
1131	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1132
1133	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1134	// unconditionally include in API requests. By default, fields with
1135	// empty or default values are omitted from API requests. However, any
1136	// non-pointer, non-interface field appearing in ForceSendFields will be
1137	// sent to the server regardless of whether the field is empty or not.
1138	// This may be used to include empty fields in Patch requests.
1139	ForceSendFields []string `json:"-"`
1140
1141	// NullFields is a list of field names (e.g. "CommonMetadata") to
1142	// include in API requests with the JSON null value. By default, fields
1143	// with empty values are omitted from API requests. However, any field
1144	// with an empty value appearing in NullFields will be sent to the
1145	// server as null. It is an error if a field in this list has a
1146	// non-empty value. This may be used to include null fields in Patch
1147	// requests.
1148	NullFields []string `json:"-"`
1149}
1150
1151func (s *GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1152	type NoMethod GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
1153	raw := NoMethod(*s)
1154	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1155}
1156
1157// GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse:
1158// Response message for the undeploy processor version method.
1159type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse struct {
1160}
1161
1162type GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata struct {
1163	// CommonMetadata: The basic metadata of the long running operation.
1164	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1165
1166	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1167	// unconditionally include in API requests. By default, fields with
1168	// empty or default values are omitted from API requests. However, any
1169	// non-pointer, non-interface field appearing in ForceSendFields will be
1170	// sent to the server regardless of whether the field is empty or not.
1171	// This may be used to include empty fields in Patch requests.
1172	ForceSendFields []string `json:"-"`
1173
1174	// NullFields is a list of field names (e.g. "CommonMetadata") to
1175	// include in API requests with the JSON null value. By default, fields
1176	// with empty values are omitted from API requests. However, any field
1177	// with an empty value appearing in NullFields will be sent to the
1178	// server as null. It is an error if a field in this list has a
1179	// non-empty value. This may be used to include null fields in Patch
1180	// requests.
1181	NullFields []string `json:"-"`
1182}
1183
1184func (s *GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
1185	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata
1186	raw := NoMethod(*s)
1187	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1188}
1189
1190// GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata: The
1191// long running operation metadata for updating the human review
1192// configuration.
1193type GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata struct {
1194	// CommonMetadata: The basic metadata of the long running operation.
1195	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1196
1197	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1198	// unconditionally include in API requests. By default, fields with
1199	// empty or default values are omitted from API requests. However, any
1200	// non-pointer, non-interface field appearing in ForceSendFields will be
1201	// sent to the server regardless of whether the field is empty or not.
1202	// This may be used to include empty fields in Patch requests.
1203	ForceSendFields []string `json:"-"`
1204
1205	// NullFields is a list of field names (e.g. "CommonMetadata") to
1206	// include in API requests with the JSON null value. By default, fields
1207	// with empty values are omitted from API requests. However, any field
1208	// with an empty value appearing in NullFields will be sent to the
1209	// server as null. It is an error if a field in this list has a
1210	// non-empty value. This may be used to include null fields in Patch
1211	// requests.
1212	NullFields []string `json:"-"`
1213}
1214
1215func (s *GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata) MarshalJSON() ([]byte, error) {
1216	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
1217	raw := NoMethod(*s)
1218	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1219}
1220
1221// GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata: The
1222// long running operation metadata for UpdateLabelerPool.
1223type GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata struct {
1224	// CommonMetadata: The basic metadata of the long running operation.
1225	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1226
1227	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1228	// unconditionally include in API requests. By default, fields with
1229	// empty or default values are omitted from API requests. However, any
1230	// non-pointer, non-interface field appearing in ForceSendFields will be
1231	// sent to the server regardless of whether the field is empty or not.
1232	// This may be used to include empty fields in Patch requests.
1233	ForceSendFields []string `json:"-"`
1234
1235	// NullFields is a list of field names (e.g. "CommonMetadata") to
1236	// include in API requests with the JSON null value. By default, fields
1237	// with empty values are omitted from API requests. However, any field
1238	// with an empty value appearing in NullFields will be sent to the
1239	// server as null. It is an error if a field in this list has a
1240	// non-empty value. This may be used to include null fields in Patch
1241	// requests.
1242	NullFields []string `json:"-"`
1243}
1244
1245func (s *GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
1246	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
1247	raw := NoMethod(*s)
1248	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1249}
1250
1251// GoogleCloudDocumentaiV1BatchDocumentsInputConfig: The common config
1252// to specify a set of documents used as input.
1253type GoogleCloudDocumentaiV1BatchDocumentsInputConfig struct {
1254	// GcsDocuments: The set of documents individually specified on Cloud
1255	// Storage.
1256	GcsDocuments *GoogleCloudDocumentaiV1GcsDocuments `json:"gcsDocuments,omitempty"`
1257
1258	// GcsPrefix: The set of documents that match the specified Cloud
1259	// Storage [gcs_prefix].
1260	GcsPrefix *GoogleCloudDocumentaiV1GcsPrefix `json:"gcsPrefix,omitempty"`
1261
1262	// ForceSendFields is a list of field names (e.g. "GcsDocuments") to
1263	// unconditionally include in API requests. By default, fields with
1264	// empty or default values are omitted from API requests. However, any
1265	// non-pointer, non-interface field appearing in ForceSendFields will be
1266	// sent to the server regardless of whether the field is empty or not.
1267	// This may be used to include empty fields in Patch requests.
1268	ForceSendFields []string `json:"-"`
1269
1270	// NullFields is a list of field names (e.g. "GcsDocuments") to include
1271	// in API requests with the JSON null value. By default, fields with
1272	// empty values are omitted from API requests. However, any field with
1273	// an empty value appearing in NullFields will be sent to the server as
1274	// null. It is an error if a field in this list has a non-empty value.
1275	// This may be used to include null fields in Patch requests.
1276	NullFields []string `json:"-"`
1277}
1278
1279func (s *GoogleCloudDocumentaiV1BatchDocumentsInputConfig) MarshalJSON() ([]byte, error) {
1280	type NoMethod GoogleCloudDocumentaiV1BatchDocumentsInputConfig
1281	raw := NoMethod(*s)
1282	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1283}
1284
1285// GoogleCloudDocumentaiV1BatchProcessMetadata: The long running
1286// operation metadata for batch process method.
1287type GoogleCloudDocumentaiV1BatchProcessMetadata struct {
1288	// CreateTime: The creation time of the operation.
1289	CreateTime string `json:"createTime,omitempty"`
1290
1291	// IndividualProcessStatuses: The list of response details of each
1292	// document.
1293	IndividualProcessStatuses []*GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
1294
1295	// State: The state of the current batch processing.
1296	//
1297	// Possible values:
1298	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
1299	// state is omitted.
1300	//   "WAITING" - Request operation is waiting for scheduling.
1301	//   "RUNNING" - Request is being processed.
1302	//   "SUCCEEDED" - The batch processing completed successfully.
1303	//   "CANCELLING" - The batch processing was being cancelled.
1304	//   "CANCELLED" - The batch processing was cancelled.
1305	//   "FAILED" - The batch processing has failed.
1306	State string `json:"state,omitempty"`
1307
1308	// StateMessage: A message providing more details about the current
1309	// state of processing. For example, the error message if the operation
1310	// is failed.
1311	StateMessage string `json:"stateMessage,omitempty"`
1312
1313	// UpdateTime: The last update time of the operation.
1314	UpdateTime string `json:"updateTime,omitempty"`
1315
1316	// ForceSendFields is a list of field names (e.g. "CreateTime") to
1317	// unconditionally include in API requests. By default, fields with
1318	// empty or default values are omitted from API requests. However, any
1319	// non-pointer, non-interface field appearing in ForceSendFields will be
1320	// sent to the server regardless of whether the field is empty or not.
1321	// This may be used to include empty fields in Patch requests.
1322	ForceSendFields []string `json:"-"`
1323
1324	// NullFields is a list of field names (e.g. "CreateTime") to include in
1325	// API requests with the JSON null value. By default, fields with empty
1326	// values are omitted from API requests. However, any field with an
1327	// empty value appearing in NullFields will be sent to the server as
1328	// null. It is an error if a field in this list has a non-empty value.
1329	// This may be used to include null fields in Patch requests.
1330	NullFields []string `json:"-"`
1331}
1332
1333func (s *GoogleCloudDocumentaiV1BatchProcessMetadata) MarshalJSON() ([]byte, error) {
1334	type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadata
1335	raw := NoMethod(*s)
1336	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1337}
1338
1339// GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus:
1340// The status of a each individual document in the batch process.
1341type GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus struct {
1342	// HumanReviewStatus: The status of human review on the processed
1343	// document.
1344	HumanReviewStatus *GoogleCloudDocumentaiV1HumanReviewStatus `json:"humanReviewStatus,omitempty"`
1345
1346	// InputGcsSource: The source of the document, same as the
1347	// [input_gcs_source] field in the request when the batch process
1348	// started. The batch process is started by take snapshot of that
1349	// document, since a user can move or change that document during the
1350	// process.
1351	InputGcsSource string `json:"inputGcsSource,omitempty"`
1352
1353	// OutputGcsDestination: The output_gcs_destination (in the request as
1354	// 'output_gcs_destination') of the processed document if it was
1355	// successful, otherwise empty.
1356	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
1357
1358	// Status: The status of the processing of the document.
1359	Status *GoogleRpcStatus `json:"status,omitempty"`
1360
1361	// ForceSendFields is a list of field names (e.g. "HumanReviewStatus")
1362	// to unconditionally include in API requests. By default, fields with
1363	// empty or default values are omitted from API requests. However, any
1364	// non-pointer, non-interface field appearing in ForceSendFields will be
1365	// sent to the server regardless of whether the field is empty or not.
1366	// This may be used to include empty fields in Patch requests.
1367	ForceSendFields []string `json:"-"`
1368
1369	// NullFields is a list of field names (e.g. "HumanReviewStatus") to
1370	// include in API requests with the JSON null value. By default, fields
1371	// with empty values are omitted from API requests. However, any field
1372	// with an empty value appearing in NullFields will be sent to the
1373	// server as null. It is an error if a field in this list has a
1374	// non-empty value. This may be used to include null fields in Patch
1375	// requests.
1376	NullFields []string `json:"-"`
1377}
1378
1379func (s *GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
1380	type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
1381	raw := NoMethod(*s)
1382	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1383}
1384
1385// GoogleCloudDocumentaiV1BatchProcessRequest: Request message for batch
1386// process document method.
1387type GoogleCloudDocumentaiV1BatchProcessRequest struct {
1388	// DocumentOutputConfig: The overall output config for batch process.
1389	DocumentOutputConfig *GoogleCloudDocumentaiV1DocumentOutputConfig `json:"documentOutputConfig,omitempty"`
1390
1391	// InputDocuments: The input documents for batch process.
1392	InputDocuments *GoogleCloudDocumentaiV1BatchDocumentsInputConfig `json:"inputDocuments,omitempty"`
1393
1394	// SkipHumanReview: Whether Human Review feature should be skipped for
1395	// this request. Default to false.
1396	SkipHumanReview bool `json:"skipHumanReview,omitempty"`
1397
1398	// ForceSendFields is a list of field names (e.g.
1399	// "DocumentOutputConfig") to unconditionally include in API requests.
1400	// By default, fields with empty or default values are omitted from API
1401	// requests. However, any non-pointer, non-interface field appearing in
1402	// ForceSendFields will be sent to the server regardless of whether the
1403	// field is empty or not. This may be used to include empty fields in
1404	// Patch requests.
1405	ForceSendFields []string `json:"-"`
1406
1407	// NullFields is a list of field names (e.g. "DocumentOutputConfig") to
1408	// include in API requests with the JSON null value. By default, fields
1409	// with empty values are omitted from API requests. However, any field
1410	// with an empty value appearing in NullFields will be sent to the
1411	// server as null. It is an error if a field in this list has a
1412	// non-empty value. This may be used to include null fields in Patch
1413	// requests.
1414	NullFields []string `json:"-"`
1415}
1416
1417func (s *GoogleCloudDocumentaiV1BatchProcessRequest) MarshalJSON() ([]byte, error) {
1418	type NoMethod GoogleCloudDocumentaiV1BatchProcessRequest
1419	raw := NoMethod(*s)
1420	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1421}
1422
1423// GoogleCloudDocumentaiV1BatchProcessResponse: Response message for
1424// batch process document method.
1425type GoogleCloudDocumentaiV1BatchProcessResponse struct {
1426}
1427
1428// GoogleCloudDocumentaiV1BoundingPoly: A bounding polygon for the
1429// detected image annotation.
1430type GoogleCloudDocumentaiV1BoundingPoly struct {
1431	// NormalizedVertices: The bounding polygon normalized vertices.
1432	NormalizedVertices []*GoogleCloudDocumentaiV1NormalizedVertex `json:"normalizedVertices,omitempty"`
1433
1434	// Vertices: The bounding polygon vertices.
1435	Vertices []*GoogleCloudDocumentaiV1Vertex `json:"vertices,omitempty"`
1436
1437	// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
1438	// to unconditionally include in API requests. By default, fields with
1439	// empty or default values are omitted from API requests. However, any
1440	// non-pointer, non-interface field appearing in ForceSendFields will be
1441	// sent to the server regardless of whether the field is empty or not.
1442	// This may be used to include empty fields in Patch requests.
1443	ForceSendFields []string `json:"-"`
1444
1445	// NullFields is a list of field names (e.g. "NormalizedVertices") to
1446	// include in API requests with the JSON null value. By default, fields
1447	// with empty values are omitted from API requests. However, any field
1448	// with an empty value appearing in NullFields will be sent to the
1449	// server as null. It is an error if a field in this list has a
1450	// non-empty value. This may be used to include null fields in Patch
1451	// requests.
1452	NullFields []string `json:"-"`
1453}
1454
1455func (s *GoogleCloudDocumentaiV1BoundingPoly) MarshalJSON() ([]byte, error) {
1456	type NoMethod GoogleCloudDocumentaiV1BoundingPoly
1457	raw := NoMethod(*s)
1458	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1459}
1460
1461// GoogleCloudDocumentaiV1CommonOperationMetadata: The common metadata
1462// for long running operations.
1463type GoogleCloudDocumentaiV1CommonOperationMetadata struct {
1464	// CreateTime: The creation time of the operation.
1465	CreateTime string `json:"createTime,omitempty"`
1466
1467	// Resource: A related resource to this operation.
1468	Resource string `json:"resource,omitempty"`
1469
1470	// State: The state of the operation.
1471	//
1472	// Possible values:
1473	//   "STATE_UNSPECIFIED" - Unspecified state.
1474	//   "RUNNING" - Operation is still running.
1475	//   "CANCELLING" - Operation is being cancelled.
1476	//   "SUCCEEDED" - Operation succeeded.
1477	//   "FAILED" - Operation failed.
1478	//   "CANCELLED" - Operation is cancelled.
1479	State string `json:"state,omitempty"`
1480
1481	// StateMessage: A message providing more details about the current
1482	// state of processing.
1483	StateMessage string `json:"stateMessage,omitempty"`
1484
1485	// UpdateTime: The last update time of the operation.
1486	UpdateTime string `json:"updateTime,omitempty"`
1487
1488	// ForceSendFields is a list of field names (e.g. "CreateTime") to
1489	// unconditionally include in API requests. By default, fields with
1490	// empty or default values are omitted from API requests. However, any
1491	// non-pointer, non-interface field appearing in ForceSendFields will be
1492	// sent to the server regardless of whether the field is empty or not.
1493	// This may be used to include empty fields in Patch requests.
1494	ForceSendFields []string `json:"-"`
1495
1496	// NullFields is a list of field names (e.g. "CreateTime") to include in
1497	// API requests with the JSON null value. By default, fields with empty
1498	// values are omitted from API requests. However, any field with an
1499	// empty value appearing in NullFields will be sent to the server as
1500	// null. It is an error if a field in this list has a non-empty value.
1501	// This may be used to include null fields in Patch requests.
1502	NullFields []string `json:"-"`
1503}
1504
1505func (s *GoogleCloudDocumentaiV1CommonOperationMetadata) MarshalJSON() ([]byte, error) {
1506	type NoMethod GoogleCloudDocumentaiV1CommonOperationMetadata
1507	raw := NoMethod(*s)
1508	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1509}
1510
1511// GoogleCloudDocumentaiV1DeleteProcessorMetadata: The long running
1512// operation metadata for delete processor method.
1513type GoogleCloudDocumentaiV1DeleteProcessorMetadata struct {
1514	// CommonMetadata: The basic metadata of the long running operation.
1515	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1516
1517	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1518	// unconditionally include in API requests. By default, fields with
1519	// empty or default values are omitted from API requests. However, any
1520	// non-pointer, non-interface field appearing in ForceSendFields will be
1521	// sent to the server regardless of whether the field is empty or not.
1522	// This may be used to include empty fields in Patch requests.
1523	ForceSendFields []string `json:"-"`
1524
1525	// NullFields is a list of field names (e.g. "CommonMetadata") to
1526	// include in API requests with the JSON null value. By default, fields
1527	// with empty values are omitted from API requests. However, any field
1528	// with an empty value appearing in NullFields will be sent to the
1529	// server as null. It is an error if a field in this list has a
1530	// non-empty value. This may be used to include null fields in Patch
1531	// requests.
1532	NullFields []string `json:"-"`
1533}
1534
1535func (s *GoogleCloudDocumentaiV1DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
1536	type NoMethod GoogleCloudDocumentaiV1DeleteProcessorMetadata
1537	raw := NoMethod(*s)
1538	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1539}
1540
1541// GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata: The long
1542// running operation metadata for delete processor version method.
1543type GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata struct {
1544	// CommonMetadata: The basic metadata of the long running operation.
1545	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1546
1547	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1548	// unconditionally include in API requests. By default, fields with
1549	// empty or default values are omitted from API requests. However, any
1550	// non-pointer, non-interface field appearing in ForceSendFields will be
1551	// sent to the server regardless of whether the field is empty or not.
1552	// This may be used to include empty fields in Patch requests.
1553	ForceSendFields []string `json:"-"`
1554
1555	// NullFields is a list of field names (e.g. "CommonMetadata") to
1556	// include in API requests with the JSON null value. By default, fields
1557	// with empty values are omitted from API requests. However, any field
1558	// with an empty value appearing in NullFields will be sent to the
1559	// server as null. It is an error if a field in this list has a
1560	// non-empty value. This may be used to include null fields in Patch
1561	// requests.
1562	NullFields []string `json:"-"`
1563}
1564
1565func (s *GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1566	type NoMethod GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata
1567	raw := NoMethod(*s)
1568	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1569}
1570
1571// GoogleCloudDocumentaiV1DeployProcessorVersionMetadata: The long
1572// running operation metadata for deploy processor version method.
1573type GoogleCloudDocumentaiV1DeployProcessorVersionMetadata struct {
1574	// CommonMetadata: The basic metadata of the long running operation.
1575	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1576
1577	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1578	// unconditionally include in API requests. By default, fields with
1579	// empty or default values are omitted from API requests. However, any
1580	// non-pointer, non-interface field appearing in ForceSendFields will be
1581	// sent to the server regardless of whether the field is empty or not.
1582	// This may be used to include empty fields in Patch requests.
1583	ForceSendFields []string `json:"-"`
1584
1585	// NullFields is a list of field names (e.g. "CommonMetadata") to
1586	// include in API requests with the JSON null value. By default, fields
1587	// with empty values are omitted from API requests. However, any field
1588	// with an empty value appearing in NullFields will be sent to the
1589	// server as null. It is an error if a field in this list has a
1590	// non-empty value. This may be used to include null fields in Patch
1591	// requests.
1592	NullFields []string `json:"-"`
1593}
1594
1595func (s *GoogleCloudDocumentaiV1DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1596	type NoMethod GoogleCloudDocumentaiV1DeployProcessorVersionMetadata
1597	raw := NoMethod(*s)
1598	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1599}
1600
1601// GoogleCloudDocumentaiV1DeployProcessorVersionRequest: Request message
1602// for the deploy processor version method.
1603type GoogleCloudDocumentaiV1DeployProcessorVersionRequest struct {
1604}
1605
1606// GoogleCloudDocumentaiV1DeployProcessorVersionResponse: Response
1607// message for the deploy processor version method.
1608type GoogleCloudDocumentaiV1DeployProcessorVersionResponse struct {
1609}
1610
1611// GoogleCloudDocumentaiV1DisableProcessorMetadata: The long running
1612// operation metadata for disable processor method.
1613type GoogleCloudDocumentaiV1DisableProcessorMetadata struct {
1614	// CommonMetadata: The basic metadata of the long running operation.
1615	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1616
1617	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1618	// unconditionally include in API requests. By default, fields with
1619	// empty or default values are omitted from API requests. However, any
1620	// non-pointer, non-interface field appearing in ForceSendFields will be
1621	// sent to the server regardless of whether the field is empty or not.
1622	// This may be used to include empty fields in Patch requests.
1623	ForceSendFields []string `json:"-"`
1624
1625	// NullFields is a list of field names (e.g. "CommonMetadata") to
1626	// include in API requests with the JSON null value. By default, fields
1627	// with empty values are omitted from API requests. However, any field
1628	// with an empty value appearing in NullFields will be sent to the
1629	// server as null. It is an error if a field in this list has a
1630	// non-empty value. This may be used to include null fields in Patch
1631	// requests.
1632	NullFields []string `json:"-"`
1633}
1634
1635func (s *GoogleCloudDocumentaiV1DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
1636	type NoMethod GoogleCloudDocumentaiV1DisableProcessorMetadata
1637	raw := NoMethod(*s)
1638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1639}
1640
1641// GoogleCloudDocumentaiV1DisableProcessorRequest: Request message for
1642// the disable processor method.
1643type GoogleCloudDocumentaiV1DisableProcessorRequest struct {
1644}
1645
1646// GoogleCloudDocumentaiV1DisableProcessorResponse: Response message for
1647// the disable processor method. Intentionally empty proto for adding
1648// fields in future.
1649type GoogleCloudDocumentaiV1DisableProcessorResponse struct {
1650}
1651
1652// GoogleCloudDocumentaiV1Document: Document represents the canonical
1653// document resource in Document Understanding AI. It is an interchange
1654// format that provides insights into documents and allows for
1655// collaboration between users and Document Understanding AI to iterate
1656// and optimize for quality.
1657type GoogleCloudDocumentaiV1Document struct {
1658	// Content: Optional. Inline document content, represented as a stream
1659	// of bytes. Note: As with all `bytes` fields, protobuffers use a pure
1660	// binary representation, whereas JSON representations use base64.
1661	Content string `json:"content,omitempty"`
1662
1663	// Entities: A list of entities detected on Document.text. For document
1664	// shards, entities in this list may cross shard boundaries.
1665	Entities []*GoogleCloudDocumentaiV1DocumentEntity `json:"entities,omitempty"`
1666
1667	// EntityRelations: Relationship among Document.entities.
1668	EntityRelations []*GoogleCloudDocumentaiV1DocumentEntityRelation `json:"entityRelations,omitempty"`
1669
1670	// Error: Any error that occurred while processing this document.
1671	Error *GoogleRpcStatus `json:"error,omitempty"`
1672
1673	// MimeType: An IANA published MIME type (also referred to as media
1674	// type). For more information, see
1675	// https://www.iana.org/assignments/media-types/media-types.xhtml.
1676	MimeType string `json:"mimeType,omitempty"`
1677
1678	// Pages: Visual page layout for the Document.
1679	Pages []*GoogleCloudDocumentaiV1DocumentPage `json:"pages,omitempty"`
1680
1681	// Revisions: Revision history of this document.
1682	Revisions []*GoogleCloudDocumentaiV1DocumentRevision `json:"revisions,omitempty"`
1683
1684	// ShardInfo: Information about the sharding if this document is sharded
1685	// part of a larger document. If the document is not sharded, this
1686	// message is not specified.
1687	ShardInfo *GoogleCloudDocumentaiV1DocumentShardInfo `json:"shardInfo,omitempty"`
1688
1689	// Text: Optional. UTF-8 encoded text in reading order from the
1690	// document.
1691	Text string `json:"text,omitempty"`
1692
1693	// TextChanges: A list of text corrections made to [Document.text]. This
1694	// is usually used for annotating corrections to OCR mistakes. Text
1695	// changes for a given revision may not overlap with each other.
1696	TextChanges []*GoogleCloudDocumentaiV1DocumentTextChange `json:"textChanges,omitempty"`
1697
1698	// TextStyles: Styles for the Document.text.
1699	TextStyles []*GoogleCloudDocumentaiV1DocumentStyle `json:"textStyles,omitempty"`
1700
1701	// Uri: Optional. Currently supports Google Cloud Storage URI of the
1702	// form `gs://bucket_name/object_name`. Object versioning is not
1703	// supported. See Google Cloud Storage Request URIs
1704	// (https://cloud.google.com/storage/docs/reference-uris) for more info.
1705	Uri string `json:"uri,omitempty"`
1706
1707	// ForceSendFields is a list of field names (e.g. "Content") to
1708	// unconditionally include in API requests. By default, fields with
1709	// empty or default values are omitted from API requests. However, any
1710	// non-pointer, non-interface field appearing in ForceSendFields will be
1711	// sent to the server regardless of whether the field is empty or not.
1712	// This may be used to include empty fields in Patch requests.
1713	ForceSendFields []string `json:"-"`
1714
1715	// NullFields is a list of field names (e.g. "Content") to include in
1716	// API requests with the JSON null value. By default, fields with empty
1717	// values are omitted from API requests. However, any field with an
1718	// empty value appearing in NullFields will be sent to the server as
1719	// null. It is an error if a field in this list has a non-empty value.
1720	// This may be used to include null fields in Patch requests.
1721	NullFields []string `json:"-"`
1722}
1723
1724func (s *GoogleCloudDocumentaiV1Document) MarshalJSON() ([]byte, error) {
1725	type NoMethod GoogleCloudDocumentaiV1Document
1726	raw := NoMethod(*s)
1727	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1728}
1729
1730// GoogleCloudDocumentaiV1DocumentEntity: An entity that could be a
1731// phrase in the text or a property belongs to the document. It is a
1732// known entity type, such as a person, an organization, or location.
1733type GoogleCloudDocumentaiV1DocumentEntity struct {
1734	// Confidence: Optional. Confidence of detected Schema entity. Range [0,
1735	// 1].
1736	Confidence float64 `json:"confidence,omitempty"`
1737
1738	// Id: Optional. Canonical id. This will be a unique value in the entity
1739	// list for this document.
1740	Id string `json:"id,omitempty"`
1741
1742	// MentionId: Optional. Deprecated. Use `id` field instead.
1743	MentionId string `json:"mentionId,omitempty"`
1744
1745	// MentionText: Optional. Text value in the document e.g. `1600
1746	// Amphitheatre Pkwy`. If the entity is not present in the document,
1747	// this field will be empty.
1748	MentionText string `json:"mentionText,omitempty"`
1749
1750	// NormalizedValue: Optional. Normalized entity value. Absent if the
1751	// extracted value could not be converted or the type (e.g. address) is
1752	// not supported for certain parsers. This field is also only populated
1753	// for certain supported document types.
1754	NormalizedValue *GoogleCloudDocumentaiV1DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
1755
1756	// PageAnchor: Optional. Represents the provenance of this entity wrt.
1757	// the location on the page where it was found.
1758	PageAnchor *GoogleCloudDocumentaiV1DocumentPageAnchor `json:"pageAnchor,omitempty"`
1759
1760	// Properties: Optional. Entities can be nested to form a hierarchical
1761	// data structure representing the content in the document.
1762	Properties []*GoogleCloudDocumentaiV1DocumentEntity `json:"properties,omitempty"`
1763
1764	// Provenance: Optional. The history of this annotation.
1765	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
1766
1767	// Redacted: Optional. Whether the entity will be redacted for
1768	// de-identification purposes.
1769	Redacted bool `json:"redacted,omitempty"`
1770
1771	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing
1772	// into the Document.text.
1773	TextAnchor *GoogleCloudDocumentaiV1DocumentTextAnchor `json:"textAnchor,omitempty"`
1774
1775	// Type: Entity type from a schema e.g. `Address`.
1776	Type string `json:"type,omitempty"`
1777
1778	// ForceSendFields is a list of field names (e.g. "Confidence") to
1779	// unconditionally include in API requests. By default, fields with
1780	// empty or default values are omitted from API requests. However, any
1781	// non-pointer, non-interface field appearing in ForceSendFields will be
1782	// sent to the server regardless of whether the field is empty or not.
1783	// This may be used to include empty fields in Patch requests.
1784	ForceSendFields []string `json:"-"`
1785
1786	// NullFields is a list of field names (e.g. "Confidence") to include in
1787	// API requests with the JSON null value. By default, fields with empty
1788	// values are omitted from API requests. However, any field with an
1789	// empty value appearing in NullFields will be sent to the server as
1790	// null. It is an error if a field in this list has a non-empty value.
1791	// This may be used to include null fields in Patch requests.
1792	NullFields []string `json:"-"`
1793}
1794
1795func (s *GoogleCloudDocumentaiV1DocumentEntity) MarshalJSON() ([]byte, error) {
1796	type NoMethod GoogleCloudDocumentaiV1DocumentEntity
1797	raw := NoMethod(*s)
1798	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1799}
1800
1801func (s *GoogleCloudDocumentaiV1DocumentEntity) UnmarshalJSON(data []byte) error {
1802	type NoMethod GoogleCloudDocumentaiV1DocumentEntity
1803	var s1 struct {
1804		Confidence gensupport.JSONFloat64 `json:"confidence"`
1805		*NoMethod
1806	}
1807	s1.NoMethod = (*NoMethod)(s)
1808	if err := json.Unmarshal(data, &s1); err != nil {
1809		return err
1810	}
1811	s.Confidence = float64(s1.Confidence)
1812	return nil
1813}
1814
1815// GoogleCloudDocumentaiV1DocumentEntityNormalizedValue: Parsed and
1816// normalized entity value.
1817type GoogleCloudDocumentaiV1DocumentEntityNormalizedValue struct {
1818	// AddressValue: Postal address. See also:
1819	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
1820	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
1821
1822	// BooleanValue: Boolean value. Can be used for entities with binary
1823	// values, or for checkboxes.
1824	BooleanValue bool `json:"booleanValue,omitempty"`
1825
1826	// DateValue: Date value. Includes year, month, day. See also:
1827	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
1828	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
1829
1830	// DatetimeValue: DateTime value. Includes date, time, and timezone. See
1831	// also:
1832	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
1833	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
1834
1835	// FloatValue: Float value.
1836	FloatValue float64 `json:"floatValue,omitempty"`
1837
1838	// IntegerValue: Integer value.
1839	IntegerValue int64 `json:"integerValue,omitempty"`
1840
1841	// MoneyValue: Money value. See also:
1842	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
1843	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
1844
1845	// Text: Optional. An optional field to store a normalized string. For
1846	// some entity types, one of respective 'structured_value' fields may
1847	// also be populated. Also not all the types of 'structured_value' will
1848	// be normalized. For example, some processors may not generate float or
1849	// int normalized text by default. Below are sample formats mapped to
1850	// structured values. - Money/Currency type (`money_value`) is in the
1851	// ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601
1852	// text format. - Datetime type (`datetime_value`) is in the ISO 8601
1853	// text format.
1854	Text string `json:"text,omitempty"`
1855
1856	// ForceSendFields is a list of field names (e.g. "AddressValue") to
1857	// unconditionally include in API requests. By default, fields with
1858	// empty or default values are omitted from API requests. However, any
1859	// non-pointer, non-interface field appearing in ForceSendFields will be
1860	// sent to the server regardless of whether the field is empty or not.
1861	// This may be used to include empty fields in Patch requests.
1862	ForceSendFields []string `json:"-"`
1863
1864	// NullFields is a list of field names (e.g. "AddressValue") to include
1865	// in API requests with the JSON null value. By default, fields with
1866	// empty values are omitted from API requests. However, any field with
1867	// an empty value appearing in NullFields will be sent to the server as
1868	// null. It is an error if a field in this list has a non-empty value.
1869	// This may be used to include null fields in Patch requests.
1870	NullFields []string `json:"-"`
1871}
1872
1873func (s *GoogleCloudDocumentaiV1DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
1874	type NoMethod GoogleCloudDocumentaiV1DocumentEntityNormalizedValue
1875	raw := NoMethod(*s)
1876	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1877}
1878
1879func (s *GoogleCloudDocumentaiV1DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
1880	type NoMethod GoogleCloudDocumentaiV1DocumentEntityNormalizedValue
1881	var s1 struct {
1882		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
1883		*NoMethod
1884	}
1885	s1.NoMethod = (*NoMethod)(s)
1886	if err := json.Unmarshal(data, &s1); err != nil {
1887		return err
1888	}
1889	s.FloatValue = float64(s1.FloatValue)
1890	return nil
1891}
1892
1893// GoogleCloudDocumentaiV1DocumentEntityRelation: Relationship between
1894// Entities.
1895type GoogleCloudDocumentaiV1DocumentEntityRelation struct {
1896	// ObjectId: Object entity id.
1897	ObjectId string `json:"objectId,omitempty"`
1898
1899	// Relation: Relationship description.
1900	Relation string `json:"relation,omitempty"`
1901
1902	// SubjectId: Subject entity id.
1903	SubjectId string `json:"subjectId,omitempty"`
1904
1905	// ForceSendFields is a list of field names (e.g. "ObjectId") to
1906	// unconditionally include in API requests. By default, fields with
1907	// empty or default values are omitted from API requests. However, any
1908	// non-pointer, non-interface field appearing in ForceSendFields will be
1909	// sent to the server regardless of whether the field is empty or not.
1910	// This may be used to include empty fields in Patch requests.
1911	ForceSendFields []string `json:"-"`
1912
1913	// NullFields is a list of field names (e.g. "ObjectId") to include in
1914	// API requests with the JSON null value. By default, fields with empty
1915	// values are omitted from API requests. However, any field with an
1916	// empty value appearing in NullFields will be sent to the server as
1917	// null. It is an error if a field in this list has a non-empty value.
1918	// This may be used to include null fields in Patch requests.
1919	NullFields []string `json:"-"`
1920}
1921
1922func (s *GoogleCloudDocumentaiV1DocumentEntityRelation) MarshalJSON() ([]byte, error) {
1923	type NoMethod GoogleCloudDocumentaiV1DocumentEntityRelation
1924	raw := NoMethod(*s)
1925	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1926}
1927
1928// GoogleCloudDocumentaiV1DocumentOutputConfig: Config that controls the
1929// output of documents. All documents will be written as a JSON file.
1930type GoogleCloudDocumentaiV1DocumentOutputConfig struct {
1931	// GcsOutputConfig: Output config to write the results to Cloud Storage.
1932	GcsOutputConfig *GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig `json:"gcsOutputConfig,omitempty"`
1933
1934	// ForceSendFields is a list of field names (e.g. "GcsOutputConfig") to
1935	// unconditionally include in API requests. By default, fields with
1936	// empty or default values are omitted from API requests. However, any
1937	// non-pointer, non-interface field appearing in ForceSendFields will be
1938	// sent to the server regardless of whether the field is empty or not.
1939	// This may be used to include empty fields in Patch requests.
1940	ForceSendFields []string `json:"-"`
1941
1942	// NullFields is a list of field names (e.g. "GcsOutputConfig") to
1943	// include in API requests with the JSON null value. By default, fields
1944	// with empty values are omitted from API requests. However, any field
1945	// with an empty value appearing in NullFields will be sent to the
1946	// server as null. It is an error if a field in this list has a
1947	// non-empty value. This may be used to include null fields in Patch
1948	// requests.
1949	NullFields []string `json:"-"`
1950}
1951
1952func (s *GoogleCloudDocumentaiV1DocumentOutputConfig) MarshalJSON() ([]byte, error) {
1953	type NoMethod GoogleCloudDocumentaiV1DocumentOutputConfig
1954	raw := NoMethod(*s)
1955	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1956}
1957
1958// GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig: The
1959// configuration used when outputting documents.
1960type GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig struct {
1961	// GcsUri: The Cloud Storage uri (a directory) of the output.
1962	GcsUri string `json:"gcsUri,omitempty"`
1963
1964	// ForceSendFields is a list of field names (e.g. "GcsUri") to
1965	// unconditionally include in API requests. By default, fields with
1966	// empty or default values are omitted from API requests. However, any
1967	// non-pointer, non-interface field appearing in ForceSendFields will be
1968	// sent to the server regardless of whether the field is empty or not.
1969	// This may be used to include empty fields in Patch requests.
1970	ForceSendFields []string `json:"-"`
1971
1972	// NullFields is a list of field names (e.g. "GcsUri") to include in API
1973	// requests with the JSON null value. By default, fields with empty
1974	// values are omitted from API requests. However, any field with an
1975	// empty value appearing in NullFields will be sent to the server as
1976	// null. It is an error if a field in this list has a non-empty value.
1977	// This may be used to include null fields in Patch requests.
1978	NullFields []string `json:"-"`
1979}
1980
1981func (s *GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig) MarshalJSON() ([]byte, error) {
1982	type NoMethod GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig
1983	raw := NoMethod(*s)
1984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1985}
1986
1987// GoogleCloudDocumentaiV1DocumentPage: A page in a Document.
1988type GoogleCloudDocumentaiV1DocumentPage struct {
1989	// Blocks: A list of visually detected text blocks on the page. A block
1990	// has a set of lines (collected into paragraphs) that have a common
1991	// line-spacing and orientation.
1992	Blocks []*GoogleCloudDocumentaiV1DocumentPageBlock `json:"blocks,omitempty"`
1993
1994	// DetectedLanguages: A list of detected languages together with
1995	// confidence.
1996	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
1997
1998	// Dimension: Physical dimension of the page.
1999	Dimension *GoogleCloudDocumentaiV1DocumentPageDimension `json:"dimension,omitempty"`
2000
2001	// FormFields: A list of visually detected form fields on the page.
2002	FormFields []*GoogleCloudDocumentaiV1DocumentPageFormField `json:"formFields,omitempty"`
2003
2004	// Image: Rendered image for this page. This image is preprocessed to
2005	// remove any skew, rotation, and distortions such that the annotation
2006	// bounding boxes can be upright and axis-aligned.
2007	Image *GoogleCloudDocumentaiV1DocumentPageImage `json:"image,omitempty"`
2008
2009	// Layout: Layout for the page.
2010	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2011
2012	// Lines: A list of visually detected text lines on the page. A
2013	// collection of tokens that a human would perceive as a line.
2014	Lines []*GoogleCloudDocumentaiV1DocumentPageLine `json:"lines,omitempty"`
2015
2016	// PageNumber: 1-based index for current Page in a parent Document.
2017	// Useful when a page is taken out of a Document for individual
2018	// processing.
2019	PageNumber int64 `json:"pageNumber,omitempty"`
2020
2021	// Paragraphs: A list of visually detected text paragraphs on the page.
2022	// A collection of lines that a human would perceive as a paragraph.
2023	Paragraphs []*GoogleCloudDocumentaiV1DocumentPageParagraph `json:"paragraphs,omitempty"`
2024
2025	// Provenance: The history of this page.
2026	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
2027
2028	// Tables: A list of visually detected tables on the page.
2029	Tables []*GoogleCloudDocumentaiV1DocumentPageTable `json:"tables,omitempty"`
2030
2031	// Tokens: A list of visually detected tokens on the page.
2032	Tokens []*GoogleCloudDocumentaiV1DocumentPageToken `json:"tokens,omitempty"`
2033
2034	// Transforms: Transformation matrices that were applied to the original
2035	// document image to produce Page.image.
2036	Transforms []*GoogleCloudDocumentaiV1DocumentPageMatrix `json:"transforms,omitempty"`
2037
2038	// VisualElements: A list of detected non-text visual elements e.g.
2039	// checkbox, signature etc. on the page.
2040	VisualElements []*GoogleCloudDocumentaiV1DocumentPageVisualElement `json:"visualElements,omitempty"`
2041
2042	// ForceSendFields is a list of field names (e.g. "Blocks") to
2043	// unconditionally include in API requests. By default, fields with
2044	// empty or default values are omitted from API requests. However, any
2045	// non-pointer, non-interface field appearing in ForceSendFields will be
2046	// sent to the server regardless of whether the field is empty or not.
2047	// This may be used to include empty fields in Patch requests.
2048	ForceSendFields []string `json:"-"`
2049
2050	// NullFields is a list of field names (e.g. "Blocks") to include in API
2051	// requests with the JSON null value. By default, fields with empty
2052	// values are omitted from API requests. However, any field with an
2053	// empty value appearing in NullFields will be sent to the server as
2054	// null. It is an error if a field in this list has a non-empty value.
2055	// This may be used to include null fields in Patch requests.
2056	NullFields []string `json:"-"`
2057}
2058
2059func (s *GoogleCloudDocumentaiV1DocumentPage) MarshalJSON() ([]byte, error) {
2060	type NoMethod GoogleCloudDocumentaiV1DocumentPage
2061	raw := NoMethod(*s)
2062	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2063}
2064
2065// GoogleCloudDocumentaiV1DocumentPageAnchor: Referencing the visual
2066// context of the entity in the Document.pages. Page anchors can be
2067// cross-page, consist of multiple bounding polygons and optionally
2068// reference specific layout element types.
2069type GoogleCloudDocumentaiV1DocumentPageAnchor struct {
2070	// PageRefs: One or more references to visual page elements
2071	PageRefs []*GoogleCloudDocumentaiV1DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
2072
2073	// ForceSendFields is a list of field names (e.g. "PageRefs") to
2074	// unconditionally include in API requests. By default, fields with
2075	// empty or default values are omitted from API requests. However, any
2076	// non-pointer, non-interface field appearing in ForceSendFields will be
2077	// sent to the server regardless of whether the field is empty or not.
2078	// This may be used to include empty fields in Patch requests.
2079	ForceSendFields []string `json:"-"`
2080
2081	// NullFields is a list of field names (e.g. "PageRefs") to include in
2082	// API requests with the JSON null value. By default, fields with empty
2083	// values are omitted from API requests. However, any field with an
2084	// empty value appearing in NullFields will be sent to the server as
2085	// null. It is an error if a field in this list has a non-empty value.
2086	// This may be used to include null fields in Patch requests.
2087	NullFields []string `json:"-"`
2088}
2089
2090func (s *GoogleCloudDocumentaiV1DocumentPageAnchor) MarshalJSON() ([]byte, error) {
2091	type NoMethod GoogleCloudDocumentaiV1DocumentPageAnchor
2092	raw := NoMethod(*s)
2093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2094}
2095
2096// GoogleCloudDocumentaiV1DocumentPageAnchorPageRef: Represents a weak
2097// reference to a page element within a document.
2098type GoogleCloudDocumentaiV1DocumentPageAnchorPageRef struct {
2099	// BoundingPoly: Optional. Identifies the bounding polygon of a layout
2100	// element on the page.
2101	BoundingPoly *GoogleCloudDocumentaiV1BoundingPoly `json:"boundingPoly,omitempty"`
2102
2103	// Confidence: Optional. Confidence of detected page element, if
2104	// applicable. Range [0, 1].
2105	Confidence float64 `json:"confidence,omitempty"`
2106
2107	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
2108	LayoutId string `json:"layoutId,omitempty"`
2109
2110	// LayoutType: Optional. The type of the layout element that is being
2111	// referenced if any.
2112	//
2113	// Possible values:
2114	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
2115	//   "BLOCK" - References a Page.blocks element.
2116	//   "PARAGRAPH" - References a Page.paragraphs element.
2117	//   "LINE" - References a Page.lines element.
2118	//   "TOKEN" - References a Page.tokens element.
2119	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
2120	//   "TABLE" - Refrrences a Page.tables element.
2121	//   "FORM_FIELD" - References a Page.form_fields element.
2122	LayoutType string `json:"layoutType,omitempty"`
2123
2124	// Page: Required. Index into the Document.pages element, for example
2125	// using Document.pages to locate the related page element. This field
2126	// is skipped when its value is the default 0. See
2127	// https://developers.google.com/protocol-buffers/docs/proto3#json.
2128	Page int64 `json:"page,omitempty,string"`
2129
2130	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
2131	// unconditionally include in API requests. By default, fields with
2132	// empty or default values are omitted from API requests. However, any
2133	// non-pointer, non-interface field appearing in ForceSendFields will be
2134	// sent to the server regardless of whether the field is empty or not.
2135	// This may be used to include empty fields in Patch requests.
2136	ForceSendFields []string `json:"-"`
2137
2138	// NullFields is a list of field names (e.g. "BoundingPoly") to include
2139	// in API requests with the JSON null value. By default, fields with
2140	// empty values are omitted from API requests. However, any field with
2141	// an empty value appearing in NullFields will be sent to the server as
2142	// null. It is an error if a field in this list has a non-empty value.
2143	// This may be used to include null fields in Patch requests.
2144	NullFields []string `json:"-"`
2145}
2146
2147func (s *GoogleCloudDocumentaiV1DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
2148	type NoMethod GoogleCloudDocumentaiV1DocumentPageAnchorPageRef
2149	raw := NoMethod(*s)
2150	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2151}
2152
2153func (s *GoogleCloudDocumentaiV1DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
2154	type NoMethod GoogleCloudDocumentaiV1DocumentPageAnchorPageRef
2155	var s1 struct {
2156		Confidence gensupport.JSONFloat64 `json:"confidence"`
2157		*NoMethod
2158	}
2159	s1.NoMethod = (*NoMethod)(s)
2160	if err := json.Unmarshal(data, &s1); err != nil {
2161		return err
2162	}
2163	s.Confidence = float64(s1.Confidence)
2164	return nil
2165}
2166
2167// GoogleCloudDocumentaiV1DocumentPageBlock: A block has a set of lines
2168// (collected into paragraphs) that have a common line-spacing and
2169// orientation.
2170type GoogleCloudDocumentaiV1DocumentPageBlock struct {
2171	// DetectedLanguages: A list of detected languages together with
2172	// confidence.
2173	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2174
2175	// Layout: Layout for Block.
2176	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2177
2178	// Provenance: The history of this annotation.
2179	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
2180
2181	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2182	// to unconditionally include in API requests. By default, fields with
2183	// empty or default values are omitted from API requests. However, any
2184	// non-pointer, non-interface field appearing in ForceSendFields will be
2185	// sent to the server regardless of whether the field is empty or not.
2186	// This may be used to include empty fields in Patch requests.
2187	ForceSendFields []string `json:"-"`
2188
2189	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2190	// include in API requests with the JSON null value. By default, fields
2191	// with empty values are omitted from API requests. However, any field
2192	// with an empty value appearing in NullFields will be sent to the
2193	// server as null. It is an error if a field in this list has a
2194	// non-empty value. This may be used to include null fields in Patch
2195	// requests.
2196	NullFields []string `json:"-"`
2197}
2198
2199func (s *GoogleCloudDocumentaiV1DocumentPageBlock) MarshalJSON() ([]byte, error) {
2200	type NoMethod GoogleCloudDocumentaiV1DocumentPageBlock
2201	raw := NoMethod(*s)
2202	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2203}
2204
2205// GoogleCloudDocumentaiV1DocumentPageDetectedLanguage: Detected
2206// language for a structural component.
2207type GoogleCloudDocumentaiV1DocumentPageDetectedLanguage struct {
2208	// Confidence: Confidence of detected language. Range [0, 1].
2209	Confidence float64 `json:"confidence,omitempty"`
2210
2211	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn".
2212	// For more information, see
2213	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2214	LanguageCode string `json:"languageCode,omitempty"`
2215
2216	// ForceSendFields is a list of field names (e.g. "Confidence") to
2217	// unconditionally include in API requests. By default, fields with
2218	// empty or default values are omitted from API requests. However, any
2219	// non-pointer, non-interface field appearing in ForceSendFields will be
2220	// sent to the server regardless of whether the field is empty or not.
2221	// This may be used to include empty fields in Patch requests.
2222	ForceSendFields []string `json:"-"`
2223
2224	// NullFields is a list of field names (e.g. "Confidence") to include in
2225	// API requests with the JSON null value. By default, fields with empty
2226	// values are omitted from API requests. However, any field with an
2227	// empty value appearing in NullFields will be sent to the server as
2228	// null. It is an error if a field in this list has a non-empty value.
2229	// This may be used to include null fields in Patch requests.
2230	NullFields []string `json:"-"`
2231}
2232
2233func (s *GoogleCloudDocumentaiV1DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
2234	type NoMethod GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
2235	raw := NoMethod(*s)
2236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2237}
2238
2239func (s *GoogleCloudDocumentaiV1DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
2240	type NoMethod GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
2241	var s1 struct {
2242		Confidence gensupport.JSONFloat64 `json:"confidence"`
2243		*NoMethod
2244	}
2245	s1.NoMethod = (*NoMethod)(s)
2246	if err := json.Unmarshal(data, &s1); err != nil {
2247		return err
2248	}
2249	s.Confidence = float64(s1.Confidence)
2250	return nil
2251}
2252
2253// GoogleCloudDocumentaiV1DocumentPageDimension: Dimension for the page.
2254type GoogleCloudDocumentaiV1DocumentPageDimension struct {
2255	// Height: Page height.
2256	Height float64 `json:"height,omitempty"`
2257
2258	// Unit: Dimension unit.
2259	Unit string `json:"unit,omitempty"`
2260
2261	// Width: Page width.
2262	Width float64 `json:"width,omitempty"`
2263
2264	// ForceSendFields is a list of field names (e.g. "Height") to
2265	// unconditionally include in API requests. By default, fields with
2266	// empty or default values are omitted from API requests. However, any
2267	// non-pointer, non-interface field appearing in ForceSendFields will be
2268	// sent to the server regardless of whether the field is empty or not.
2269	// This may be used to include empty fields in Patch requests.
2270	ForceSendFields []string `json:"-"`
2271
2272	// NullFields is a list of field names (e.g. "Height") to include in API
2273	// requests with the JSON null value. By default, fields with empty
2274	// values are omitted from API requests. However, any field with an
2275	// empty value appearing in NullFields will be sent to the server as
2276	// null. It is an error if a field in this list has a non-empty value.
2277	// This may be used to include null fields in Patch requests.
2278	NullFields []string `json:"-"`
2279}
2280
2281func (s *GoogleCloudDocumentaiV1DocumentPageDimension) MarshalJSON() ([]byte, error) {
2282	type NoMethod GoogleCloudDocumentaiV1DocumentPageDimension
2283	raw := NoMethod(*s)
2284	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2285}
2286
2287func (s *GoogleCloudDocumentaiV1DocumentPageDimension) UnmarshalJSON(data []byte) error {
2288	type NoMethod GoogleCloudDocumentaiV1DocumentPageDimension
2289	var s1 struct {
2290		Height gensupport.JSONFloat64 `json:"height"`
2291		Width  gensupport.JSONFloat64 `json:"width"`
2292		*NoMethod
2293	}
2294	s1.NoMethod = (*NoMethod)(s)
2295	if err := json.Unmarshal(data, &s1); err != nil {
2296		return err
2297	}
2298	s.Height = float64(s1.Height)
2299	s.Width = float64(s1.Width)
2300	return nil
2301}
2302
2303// GoogleCloudDocumentaiV1DocumentPageFormField: A form field detected
2304// on the page.
2305type GoogleCloudDocumentaiV1DocumentPageFormField struct {
2306	// CorrectedKeyText: Created for Labeling UI to export key text. If
2307	// corrections were made to the text identified by the
2308	// `field_name.text_anchor`, this field will contain the correction.
2309	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
2310
2311	// CorrectedValueText: Created for Labeling UI to export value text. If
2312	// corrections were made to the text identified by the
2313	// `field_value.text_anchor`, this field will contain the correction.
2314	CorrectedValueText string `json:"correctedValueText,omitempty"`
2315
2316	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`,
2317	// `Grand total`, `Phone number`, etc.
2318	FieldName *GoogleCloudDocumentaiV1DocumentPageLayout `json:"fieldName,omitempty"`
2319
2320	// FieldValue: Layout for the FormField value.
2321	FieldValue *GoogleCloudDocumentaiV1DocumentPageLayout `json:"fieldValue,omitempty"`
2322
2323	// NameDetectedLanguages: A list of detected languages for name together
2324	// with confidence.
2325	NameDetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
2326
2327	// Provenance: The history of this annotation.
2328	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
2329
2330	// ValueDetectedLanguages: A list of detected languages for value
2331	// together with confidence.
2332	ValueDetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
2333
2334	// ValueType: If the value is non-textual, this field represents the
2335	// type. Current valid values are: - blank (this indicates the
2336	// field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
2337	ValueType string `json:"valueType,omitempty"`
2338
2339	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
2340	// unconditionally include in API requests. By default, fields with
2341	// empty or default values are omitted from API requests. However, any
2342	// non-pointer, non-interface field appearing in ForceSendFields will be
2343	// sent to the server regardless of whether the field is empty or not.
2344	// This may be used to include empty fields in Patch requests.
2345	ForceSendFields []string `json:"-"`
2346
2347	// NullFields is a list of field names (e.g. "CorrectedKeyText") to
2348	// include in API requests with the JSON null value. By default, fields
2349	// with empty values are omitted from API requests. However, any field
2350	// with an empty value appearing in NullFields will be sent to the
2351	// server as null. It is an error if a field in this list has a
2352	// non-empty value. This may be used to include null fields in Patch
2353	// requests.
2354	NullFields []string `json:"-"`
2355}
2356
2357func (s *GoogleCloudDocumentaiV1DocumentPageFormField) MarshalJSON() ([]byte, error) {
2358	type NoMethod GoogleCloudDocumentaiV1DocumentPageFormField
2359	raw := NoMethod(*s)
2360	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2361}
2362
2363// GoogleCloudDocumentaiV1DocumentPageImage: Rendered image contents for
2364// this page.
2365type GoogleCloudDocumentaiV1DocumentPageImage struct {
2366	// Content: Raw byte content of the image.
2367	Content string `json:"content,omitempty"`
2368
2369	// Height: Height of the image in pixels.
2370	Height int64 `json:"height,omitempty"`
2371
2372	// MimeType: Encoding mime type for the image.
2373	MimeType string `json:"mimeType,omitempty"`
2374
2375	// Width: Width of the image in pixels.
2376	Width int64 `json:"width,omitempty"`
2377
2378	// ForceSendFields is a list of field names (e.g. "Content") to
2379	// unconditionally include in API requests. By default, fields with
2380	// empty or default values are omitted from API requests. However, any
2381	// non-pointer, non-interface field appearing in ForceSendFields will be
2382	// sent to the server regardless of whether the field is empty or not.
2383	// This may be used to include empty fields in Patch requests.
2384	ForceSendFields []string `json:"-"`
2385
2386	// NullFields is a list of field names (e.g. "Content") to include in
2387	// API requests with the JSON null value. By default, fields with empty
2388	// values are omitted from API requests. However, any field with an
2389	// empty value appearing in NullFields will be sent to the server as
2390	// null. It is an error if a field in this list has a non-empty value.
2391	// This may be used to include null fields in Patch requests.
2392	NullFields []string `json:"-"`
2393}
2394
2395func (s *GoogleCloudDocumentaiV1DocumentPageImage) MarshalJSON() ([]byte, error) {
2396	type NoMethod GoogleCloudDocumentaiV1DocumentPageImage
2397	raw := NoMethod(*s)
2398	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2399}
2400
2401// GoogleCloudDocumentaiV1DocumentPageLayout: Visual element describing
2402// a layout unit on a page.
2403type GoogleCloudDocumentaiV1DocumentPageLayout struct {
2404	// BoundingPoly: The bounding polygon for the Layout.
2405	BoundingPoly *GoogleCloudDocumentaiV1BoundingPoly `json:"boundingPoly,omitempty"`
2406
2407	// Confidence: Confidence of the current Layout within context of the
2408	// object this layout is for. e.g. confidence can be for a single token,
2409	// a table, a visual element, etc. depending on context. Range [0, 1].
2410	Confidence float64 `json:"confidence,omitempty"`
2411
2412	// Orientation: Detected orientation for the Layout.
2413	//
2414	// Possible values:
2415	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
2416	//   "PAGE_UP" - Orientation is aligned with page up.
2417	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the
2418	// head 90 degrees clockwise from upright to read.
2419	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head
2420	// 180 degrees from upright to read.
2421	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head
2422	// 90 degrees counterclockwise from upright to read.
2423	Orientation string `json:"orientation,omitempty"`
2424
2425	// TextAnchor: Text anchor indexing into the Document.text.
2426	TextAnchor *GoogleCloudDocumentaiV1DocumentTextAnchor `json:"textAnchor,omitempty"`
2427
2428	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
2429	// unconditionally include in API requests. By default, fields with
2430	// empty or default values are omitted from API requests. However, any
2431	// non-pointer, non-interface field appearing in ForceSendFields will be
2432	// sent to the server regardless of whether the field is empty or not.
2433	// This may be used to include empty fields in Patch requests.
2434	ForceSendFields []string `json:"-"`
2435
2436	// NullFields is a list of field names (e.g. "BoundingPoly") to include
2437	// in API requests with the JSON null value. By default, fields with
2438	// empty values are omitted from API requests. However, any field with
2439	// an empty value appearing in NullFields will be sent to the server as
2440	// null. It is an error if a field in this list has a non-empty value.
2441	// This may be used to include null fields in Patch requests.
2442	NullFields []string `json:"-"`
2443}
2444
2445func (s *GoogleCloudDocumentaiV1DocumentPageLayout) MarshalJSON() ([]byte, error) {
2446	type NoMethod GoogleCloudDocumentaiV1DocumentPageLayout
2447	raw := NoMethod(*s)
2448	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2449}
2450
2451func (s *GoogleCloudDocumentaiV1DocumentPageLayout) UnmarshalJSON(data []byte) error {
2452	type NoMethod GoogleCloudDocumentaiV1DocumentPageLayout
2453	var s1 struct {
2454		Confidence gensupport.JSONFloat64 `json:"confidence"`
2455		*NoMethod
2456	}
2457	s1.NoMethod = (*NoMethod)(s)
2458	if err := json.Unmarshal(data, &s1); err != nil {
2459		return err
2460	}
2461	s.Confidence = float64(s1.Confidence)
2462	return nil
2463}
2464
2465// GoogleCloudDocumentaiV1DocumentPageLine: A collection of tokens that
2466// a human would perceive as a line. Does not cross column boundaries,
2467// can be horizontal, vertical, etc.
2468type GoogleCloudDocumentaiV1DocumentPageLine struct {
2469	// DetectedLanguages: A list of detected languages together with
2470	// confidence.
2471	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2472
2473	// Layout: Layout for Line.
2474	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2475
2476	// Provenance: The history of this annotation.
2477	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
2478
2479	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2480	// to unconditionally include in API requests. By default, fields with
2481	// empty or default values are omitted from API requests. However, any
2482	// non-pointer, non-interface field appearing in ForceSendFields will be
2483	// sent to the server regardless of whether the field is empty or not.
2484	// This may be used to include empty fields in Patch requests.
2485	ForceSendFields []string `json:"-"`
2486
2487	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2488	// include in API requests with the JSON null value. By default, fields
2489	// with empty values are omitted from API requests. However, any field
2490	// with an empty value appearing in NullFields will be sent to the
2491	// server as null. It is an error if a field in this list has a
2492	// non-empty value. This may be used to include null fields in Patch
2493	// requests.
2494	NullFields []string `json:"-"`
2495}
2496
2497func (s *GoogleCloudDocumentaiV1DocumentPageLine) MarshalJSON() ([]byte, error) {
2498	type NoMethod GoogleCloudDocumentaiV1DocumentPageLine
2499	raw := NoMethod(*s)
2500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2501}
2502
2503// GoogleCloudDocumentaiV1DocumentPageMatrix: Representation for
2504// transformation matrix, intended to be compatible and used with OpenCV
2505// format for image manipulation.
2506type GoogleCloudDocumentaiV1DocumentPageMatrix struct {
2507	// Cols: Number of columns in the matrix.
2508	Cols int64 `json:"cols,omitempty"`
2509
2510	// Data: The matrix data.
2511	Data string `json:"data,omitempty"`
2512
2513	// Rows: Number of rows in the matrix.
2514	Rows int64 `json:"rows,omitempty"`
2515
2516	// Type: This encodes information about what data type the matrix uses.
2517	// For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
2518	// of OpenCV primitive data types, please refer to
2519	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
2520	Type int64 `json:"type,omitempty"`
2521
2522	// ForceSendFields is a list of field names (e.g. "Cols") to
2523	// unconditionally include in API requests. By default, fields with
2524	// empty or default values are omitted from API requests. However, any
2525	// non-pointer, non-interface field appearing in ForceSendFields will be
2526	// sent to the server regardless of whether the field is empty or not.
2527	// This may be used to include empty fields in Patch requests.
2528	ForceSendFields []string `json:"-"`
2529
2530	// NullFields is a list of field names (e.g. "Cols") to include in API
2531	// requests with the JSON null value. By default, fields with empty
2532	// values are omitted from API requests. However, any field with an
2533	// empty value appearing in NullFields will be sent to the server as
2534	// null. It is an error if a field in this list has a non-empty value.
2535	// This may be used to include null fields in Patch requests.
2536	NullFields []string `json:"-"`
2537}
2538
2539func (s *GoogleCloudDocumentaiV1DocumentPageMatrix) MarshalJSON() ([]byte, error) {
2540	type NoMethod GoogleCloudDocumentaiV1DocumentPageMatrix
2541	raw := NoMethod(*s)
2542	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2543}
2544
2545// GoogleCloudDocumentaiV1DocumentPageParagraph: A collection of lines
2546// that a human would perceive as a paragraph.
2547type GoogleCloudDocumentaiV1DocumentPageParagraph struct {
2548	// DetectedLanguages: A list of detected languages together with
2549	// confidence.
2550	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2551
2552	// Layout: Layout for Paragraph.
2553	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2554
2555	// Provenance: The history of this annotation.
2556	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
2557
2558	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2559	// to unconditionally include in API requests. By default, fields with
2560	// empty or default values are omitted from API requests. However, any
2561	// non-pointer, non-interface field appearing in ForceSendFields will be
2562	// sent to the server regardless of whether the field is empty or not.
2563	// This may be used to include empty fields in Patch requests.
2564	ForceSendFields []string `json:"-"`
2565
2566	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2567	// include in API requests with the JSON null value. By default, fields
2568	// with empty values are omitted from API requests. However, any field
2569	// with an empty value appearing in NullFields will be sent to the
2570	// server as null. It is an error if a field in this list has a
2571	// non-empty value. This may be used to include null fields in Patch
2572	// requests.
2573	NullFields []string `json:"-"`
2574}
2575
2576func (s *GoogleCloudDocumentaiV1DocumentPageParagraph) MarshalJSON() ([]byte, error) {
2577	type NoMethod GoogleCloudDocumentaiV1DocumentPageParagraph
2578	raw := NoMethod(*s)
2579	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2580}
2581
2582// GoogleCloudDocumentaiV1DocumentPageTable: A table representation
2583// similar to HTML table structure.
2584type GoogleCloudDocumentaiV1DocumentPageTable struct {
2585	// BodyRows: Body rows of the table.
2586	BodyRows []*GoogleCloudDocumentaiV1DocumentPageTableTableRow `json:"bodyRows,omitempty"`
2587
2588	// DetectedLanguages: A list of detected languages together with
2589	// confidence.
2590	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2591
2592	// HeaderRows: Header rows of the table.
2593	HeaderRows []*GoogleCloudDocumentaiV1DocumentPageTableTableRow `json:"headerRows,omitempty"`
2594
2595	// Layout: Layout for Table.
2596	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2597
2598	// ForceSendFields is a list of field names (e.g. "BodyRows") to
2599	// unconditionally include in API requests. By default, fields with
2600	// empty or default values are omitted from API requests. However, any
2601	// non-pointer, non-interface field appearing in ForceSendFields will be
2602	// sent to the server regardless of whether the field is empty or not.
2603	// This may be used to include empty fields in Patch requests.
2604	ForceSendFields []string `json:"-"`
2605
2606	// NullFields is a list of field names (e.g. "BodyRows") to include in
2607	// API requests with the JSON null value. By default, fields with empty
2608	// values are omitted from API requests. However, any field with an
2609	// empty value appearing in NullFields will be sent to the server as
2610	// null. It is an error if a field in this list has a non-empty value.
2611	// This may be used to include null fields in Patch requests.
2612	NullFields []string `json:"-"`
2613}
2614
2615func (s *GoogleCloudDocumentaiV1DocumentPageTable) MarshalJSON() ([]byte, error) {
2616	type NoMethod GoogleCloudDocumentaiV1DocumentPageTable
2617	raw := NoMethod(*s)
2618	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2619}
2620
2621// GoogleCloudDocumentaiV1DocumentPageTableTableCell: A cell
2622// representation inside the table.
2623type GoogleCloudDocumentaiV1DocumentPageTableTableCell struct {
2624	// ColSpan: How many columns this cell spans.
2625	ColSpan int64 `json:"colSpan,omitempty"`
2626
2627	// DetectedLanguages: A list of detected languages together with
2628	// confidence.
2629	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2630
2631	// Layout: Layout for TableCell.
2632	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2633
2634	// RowSpan: How many rows this cell spans.
2635	RowSpan int64 `json:"rowSpan,omitempty"`
2636
2637	// ForceSendFields is a list of field names (e.g. "ColSpan") to
2638	// unconditionally include in API requests. By default, fields with
2639	// empty or default values are omitted from API requests. However, any
2640	// non-pointer, non-interface field appearing in ForceSendFields will be
2641	// sent to the server regardless of whether the field is empty or not.
2642	// This may be used to include empty fields in Patch requests.
2643	ForceSendFields []string `json:"-"`
2644
2645	// NullFields is a list of field names (e.g. "ColSpan") to include in
2646	// API requests with the JSON null value. By default, fields with empty
2647	// values are omitted from API requests. However, any field with an
2648	// empty value appearing in NullFields will be sent to the server as
2649	// null. It is an error if a field in this list has a non-empty value.
2650	// This may be used to include null fields in Patch requests.
2651	NullFields []string `json:"-"`
2652}
2653
2654func (s *GoogleCloudDocumentaiV1DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
2655	type NoMethod GoogleCloudDocumentaiV1DocumentPageTableTableCell
2656	raw := NoMethod(*s)
2657	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2658}
2659
2660// GoogleCloudDocumentaiV1DocumentPageTableTableRow: A row of table
2661// cells.
2662type GoogleCloudDocumentaiV1DocumentPageTableTableRow struct {
2663	// Cells: Cells that make up this row.
2664	Cells []*GoogleCloudDocumentaiV1DocumentPageTableTableCell `json:"cells,omitempty"`
2665
2666	// ForceSendFields is a list of field names (e.g. "Cells") to
2667	// unconditionally include in API requests. By default, fields with
2668	// empty or default values are omitted from API requests. However, any
2669	// non-pointer, non-interface field appearing in ForceSendFields will be
2670	// sent to the server regardless of whether the field is empty or not.
2671	// This may be used to include empty fields in Patch requests.
2672	ForceSendFields []string `json:"-"`
2673
2674	// NullFields is a list of field names (e.g. "Cells") to include in API
2675	// requests with the JSON null value. By default, fields with empty
2676	// values are omitted from API requests. However, any field with an
2677	// empty value appearing in NullFields will be sent to the server as
2678	// null. It is an error if a field in this list has a non-empty value.
2679	// This may be used to include null fields in Patch requests.
2680	NullFields []string `json:"-"`
2681}
2682
2683func (s *GoogleCloudDocumentaiV1DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
2684	type NoMethod GoogleCloudDocumentaiV1DocumentPageTableTableRow
2685	raw := NoMethod(*s)
2686	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2687}
2688
2689// GoogleCloudDocumentaiV1DocumentPageToken: A detected token.
2690type GoogleCloudDocumentaiV1DocumentPageToken struct {
2691	// DetectedBreak: Detected break at the end of a Token.
2692	DetectedBreak *GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
2693
2694	// DetectedLanguages: A list of detected languages together with
2695	// confidence.
2696	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2697
2698	// Layout: Layout for Token.
2699	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2700
2701	// Provenance: The history of this annotation.
2702	Provenance *GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
2703
2704	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
2705	// unconditionally include in API requests. By default, fields with
2706	// empty or default values are omitted from API requests. However, any
2707	// non-pointer, non-interface field appearing in ForceSendFields will be
2708	// sent to the server regardless of whether the field is empty or not.
2709	// This may be used to include empty fields in Patch requests.
2710	ForceSendFields []string `json:"-"`
2711
2712	// NullFields is a list of field names (e.g. "DetectedBreak") to include
2713	// in API requests with the JSON null value. By default, fields with
2714	// empty values are omitted from API requests. However, any field with
2715	// an empty value appearing in NullFields will be sent to the server as
2716	// null. It is an error if a field in this list has a non-empty value.
2717	// This may be used to include null fields in Patch requests.
2718	NullFields []string `json:"-"`
2719}
2720
2721func (s *GoogleCloudDocumentaiV1DocumentPageToken) MarshalJSON() ([]byte, error) {
2722	type NoMethod GoogleCloudDocumentaiV1DocumentPageToken
2723	raw := NoMethod(*s)
2724	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2725}
2726
2727// GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak: Detected break
2728// at the end of a Token.
2729type GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak struct {
2730	// Type: Detected break type.
2731	//
2732	// Possible values:
2733	//   "TYPE_UNSPECIFIED" - Unspecified break type.
2734	//   "SPACE" - A single whitespace.
2735	//   "WIDE_SPACE" - A wider whitespace.
2736	//   "HYPHEN" - A hyphen that indicates that a token has been split
2737	// across lines.
2738	Type string `json:"type,omitempty"`
2739
2740	// ForceSendFields is a list of field names (e.g. "Type") to
2741	// unconditionally include in API requests. By default, fields with
2742	// empty or default values are omitted from API requests. However, any
2743	// non-pointer, non-interface field appearing in ForceSendFields will be
2744	// sent to the server regardless of whether the field is empty or not.
2745	// This may be used to include empty fields in Patch requests.
2746	ForceSendFields []string `json:"-"`
2747
2748	// NullFields is a list of field names (e.g. "Type") to include in API
2749	// requests with the JSON null value. By default, fields with empty
2750	// values are omitted from API requests. However, any field with an
2751	// empty value appearing in NullFields will be sent to the server as
2752	// null. It is an error if a field in this list has a non-empty value.
2753	// This may be used to include null fields in Patch requests.
2754	NullFields []string `json:"-"`
2755}
2756
2757func (s *GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
2758	type NoMethod GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak
2759	raw := NoMethod(*s)
2760	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2761}
2762
2763// GoogleCloudDocumentaiV1DocumentPageVisualElement: Detected non-text
2764// visual elements e.g. checkbox, signature etc. on the page.
2765type GoogleCloudDocumentaiV1DocumentPageVisualElement struct {
2766	// DetectedLanguages: A list of detected languages together with
2767	// confidence.
2768	DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2769
2770	// Layout: Layout for VisualElement.
2771	Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"`
2772
2773	// Type: Type of the VisualElement.
2774	Type string `json:"type,omitempty"`
2775
2776	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2777	// to unconditionally include in API requests. By default, fields with
2778	// empty or default values are omitted from API requests. However, any
2779	// non-pointer, non-interface field appearing in ForceSendFields will be
2780	// sent to the server regardless of whether the field is empty or not.
2781	// This may be used to include empty fields in Patch requests.
2782	ForceSendFields []string `json:"-"`
2783
2784	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2785	// include in API requests with the JSON null value. By default, fields
2786	// with empty values are omitted from API requests. However, any field
2787	// with an empty value appearing in NullFields will be sent to the
2788	// server as null. It is an error if a field in this list has a
2789	// non-empty value. This may be used to include null fields in Patch
2790	// requests.
2791	NullFields []string `json:"-"`
2792}
2793
2794func (s *GoogleCloudDocumentaiV1DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
2795	type NoMethod GoogleCloudDocumentaiV1DocumentPageVisualElement
2796	raw := NoMethod(*s)
2797	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2798}
2799
2800// GoogleCloudDocumentaiV1DocumentProvenance: Structure to identify
2801// provenance relationships between annotations in different revisions.
2802type GoogleCloudDocumentaiV1DocumentProvenance struct {
2803	// Id: The Id of this operation. Needs to be unique within the scope of
2804	// the revision.
2805	Id int64 `json:"id,omitempty"`
2806
2807	// Parents: References to the original elements that are replaced.
2808	Parents []*GoogleCloudDocumentaiV1DocumentProvenanceParent `json:"parents,omitempty"`
2809
2810	// Revision: The index of the revision that produced this element.
2811	Revision int64 `json:"revision,omitempty"`
2812
2813	// Type: The type of provenance operation.
2814	//
2815	// Possible values:
2816	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified.
2817	//   "ADD" - Add an element. Implicit if no `parents` are set for the
2818	// provenance.
2819	//   "REMOVE" - The element is removed. No `parents` should be set.
2820	//   "REPLACE" - Explicitly replaces the element(s) identified by
2821	// `parents`.
2822	//   "EVAL_REQUESTED" - Element is requested for human review.
2823	//   "EVAL_APPROVED" - Element is reviewed and approved at human review,
2824	// confidence will be set to 1.0.
2825	//   "EVAL_SKIPPED" - Element is skipped in the validation process.
2826	Type string `json:"type,omitempty"`
2827
2828	// ForceSendFields is a list of field names (e.g. "Id") to
2829	// unconditionally include in API requests. By default, fields with
2830	// empty or default values are omitted from API requests. However, any
2831	// non-pointer, non-interface field appearing in ForceSendFields will be
2832	// sent to the server regardless of whether the field is empty or not.
2833	// This may be used to include empty fields in Patch requests.
2834	ForceSendFields []string `json:"-"`
2835
2836	// NullFields is a list of field names (e.g. "Id") to include in API
2837	// requests with the JSON null value. By default, fields with empty
2838	// values are omitted from API requests. However, any field with an
2839	// empty value appearing in NullFields will be sent to the server as
2840	// null. It is an error if a field in this list has a non-empty value.
2841	// This may be used to include null fields in Patch requests.
2842	NullFields []string `json:"-"`
2843}
2844
2845func (s *GoogleCloudDocumentaiV1DocumentProvenance) MarshalJSON() ([]byte, error) {
2846	type NoMethod GoogleCloudDocumentaiV1DocumentProvenance
2847	raw := NoMethod(*s)
2848	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2849}
2850
2851// GoogleCloudDocumentaiV1DocumentProvenanceParent: Structure for
2852// referencing parent provenances. When an element replaces one of more
2853// other elements parent references identify the elements that are
2854// replaced.
2855type GoogleCloudDocumentaiV1DocumentProvenanceParent struct {
2856	// Id: The id of the parent provenance.
2857	Id int64 `json:"id,omitempty"`
2858
2859	// Index: The index of the parent item in the corresponding item list
2860	// (eg. list of entities, properties within entities, etc.) on parent
2861	// revision.
2862	Index int64 `json:"index,omitempty"`
2863
2864	// Revision: The index of the [Document.revisions] identifying the
2865	// parent revision.
2866	Revision int64 `json:"revision,omitempty"`
2867
2868	// ForceSendFields is a list of field names (e.g. "Id") to
2869	// unconditionally include in API requests. By default, fields with
2870	// empty or default values are omitted from API requests. However, any
2871	// non-pointer, non-interface field appearing in ForceSendFields will be
2872	// sent to the server regardless of whether the field is empty or not.
2873	// This may be used to include empty fields in Patch requests.
2874	ForceSendFields []string `json:"-"`
2875
2876	// NullFields is a list of field names (e.g. "Id") to include in API
2877	// requests with the JSON null value. By default, fields with empty
2878	// values are omitted from API requests. However, any field with an
2879	// empty value appearing in NullFields will be sent to the server as
2880	// null. It is an error if a field in this list has a non-empty value.
2881	// This may be used to include null fields in Patch requests.
2882	NullFields []string `json:"-"`
2883}
2884
2885func (s *GoogleCloudDocumentaiV1DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
2886	type NoMethod GoogleCloudDocumentaiV1DocumentProvenanceParent
2887	raw := NoMethod(*s)
2888	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2889}
2890
2891// GoogleCloudDocumentaiV1DocumentRevision: Contains past or forward
2892// revisions of this document.
2893type GoogleCloudDocumentaiV1DocumentRevision struct {
2894	// Agent: If the change was made by a person specify the name or id of
2895	// that person.
2896	Agent string `json:"agent,omitempty"`
2897
2898	// CreateTime: The time that the revision was created.
2899	CreateTime string `json:"createTime,omitempty"`
2900
2901	// HumanReview: Human Review information of this revision.
2902	HumanReview *GoogleCloudDocumentaiV1DocumentRevisionHumanReview `json:"humanReview,omitempty"`
2903
2904	// Id: Id of the revision. Unique within the context of the document.
2905	Id string `json:"id,omitempty"`
2906
2907	// Parent: The revisions that this revision is based on. This can
2908	// include one or more parent (when documents are merged.) This field
2909	// represents the index into the `revisions` field.
2910	Parent []int64 `json:"parent,omitempty"`
2911
2912	// Processor: If the annotation was made by processor identify the
2913	// processor by its resource name.
2914	Processor string `json:"processor,omitempty"`
2915
2916	// ForceSendFields is a list of field names (e.g. "Agent") to
2917	// unconditionally include in API requests. By default, fields with
2918	// empty or default values are omitted from API requests. However, any
2919	// non-pointer, non-interface field appearing in ForceSendFields will be
2920	// sent to the server regardless of whether the field is empty or not.
2921	// This may be used to include empty fields in Patch requests.
2922	ForceSendFields []string `json:"-"`
2923
2924	// NullFields is a list of field names (e.g. "Agent") to include in API
2925	// requests with the JSON null value. By default, fields with empty
2926	// values are omitted from API requests. However, any field with an
2927	// empty value appearing in NullFields will be sent to the server as
2928	// null. It is an error if a field in this list has a non-empty value.
2929	// This may be used to include null fields in Patch requests.
2930	NullFields []string `json:"-"`
2931}
2932
2933func (s *GoogleCloudDocumentaiV1DocumentRevision) MarshalJSON() ([]byte, error) {
2934	type NoMethod GoogleCloudDocumentaiV1DocumentRevision
2935	raw := NoMethod(*s)
2936	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2937}
2938
2939// GoogleCloudDocumentaiV1DocumentRevisionHumanReview: Human Review
2940// information of the document.
2941type GoogleCloudDocumentaiV1DocumentRevisionHumanReview struct {
2942	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
2943	State string `json:"state,omitempty"`
2944
2945	// StateMessage: A message providing more details about the current
2946	// state of processing. For example, the rejection reason when the state
2947	// is `rejected`.
2948	StateMessage string `json:"stateMessage,omitempty"`
2949
2950	// ForceSendFields is a list of field names (e.g. "State") to
2951	// unconditionally include in API requests. By default, fields with
2952	// empty or default values are omitted from API requests. However, any
2953	// non-pointer, non-interface field appearing in ForceSendFields will be
2954	// sent to the server regardless of whether the field is empty or not.
2955	// This may be used to include empty fields in Patch requests.
2956	ForceSendFields []string `json:"-"`
2957
2958	// NullFields is a list of field names (e.g. "State") to include in API
2959	// requests with the JSON null value. By default, fields with empty
2960	// values are omitted from API requests. However, any field with an
2961	// empty value appearing in NullFields will be sent to the server as
2962	// null. It is an error if a field in this list has a non-empty value.
2963	// This may be used to include null fields in Patch requests.
2964	NullFields []string `json:"-"`
2965}
2966
2967func (s *GoogleCloudDocumentaiV1DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
2968	type NoMethod GoogleCloudDocumentaiV1DocumentRevisionHumanReview
2969	raw := NoMethod(*s)
2970	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2971}
2972
2973// GoogleCloudDocumentaiV1DocumentShardInfo: For a large document,
2974// sharding may be performed to produce several document shards. Each
2975// document shard contains this field to detail which shard it is.
2976type GoogleCloudDocumentaiV1DocumentShardInfo struct {
2977	// ShardCount: Total number of shards.
2978	ShardCount int64 `json:"shardCount,omitempty,string"`
2979
2980	// ShardIndex: The 0-based index of this shard.
2981	ShardIndex int64 `json:"shardIndex,omitempty,string"`
2982
2983	// TextOffset: The index of the first character in Document.text in the
2984	// overall document global text.
2985	TextOffset int64 `json:"textOffset,omitempty,string"`
2986
2987	// ForceSendFields is a list of field names (e.g. "ShardCount") to
2988	// unconditionally include in API requests. By default, fields with
2989	// empty or default values are omitted from API requests. However, any
2990	// non-pointer, non-interface field appearing in ForceSendFields will be
2991	// sent to the server regardless of whether the field is empty or not.
2992	// This may be used to include empty fields in Patch requests.
2993	ForceSendFields []string `json:"-"`
2994
2995	// NullFields is a list of field names (e.g. "ShardCount") to include in
2996	// API requests with the JSON null value. By default, fields with empty
2997	// values are omitted from API requests. However, any field with an
2998	// empty value appearing in NullFields will be sent to the server as
2999	// null. It is an error if a field in this list has a non-empty value.
3000	// This may be used to include null fields in Patch requests.
3001	NullFields []string `json:"-"`
3002}
3003
3004func (s *GoogleCloudDocumentaiV1DocumentShardInfo) MarshalJSON() ([]byte, error) {
3005	type NoMethod GoogleCloudDocumentaiV1DocumentShardInfo
3006	raw := NoMethod(*s)
3007	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3008}
3009
3010// GoogleCloudDocumentaiV1DocumentStyle: Annotation for common text
3011// style attributes. This adheres to CSS conventions as much as
3012// possible.
3013type GoogleCloudDocumentaiV1DocumentStyle struct {
3014	// BackgroundColor: Text background color.
3015	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
3016
3017	// Color: Text color.
3018	Color *GoogleTypeColor `json:"color,omitempty"`
3019
3020	// FontSize: Font size.
3021	FontSize *GoogleCloudDocumentaiV1DocumentStyleFontSize `json:"fontSize,omitempty"`
3022
3023	// FontWeight: Font weight. Possible values are normal, bold, bolder,
3024	// and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
3025	FontWeight string `json:"fontWeight,omitempty"`
3026
3027	// TextAnchor: Text anchor indexing into the Document.text.
3028	TextAnchor *GoogleCloudDocumentaiV1DocumentTextAnchor `json:"textAnchor,omitempty"`
3029
3030	// TextDecoration: Text decoration. Follows CSS standard.
3031	// https://www.w3schools.com/cssref/pr_text_text-decoration.asp
3032	TextDecoration string `json:"textDecoration,omitempty"`
3033
3034	// TextStyle: Text style. Possible values are normal, italic, and
3035	// oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
3036	TextStyle string `json:"textStyle,omitempty"`
3037
3038	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
3039	// unconditionally include in API requests. By default, fields with
3040	// empty or default values are omitted from API requests. However, any
3041	// non-pointer, non-interface field appearing in ForceSendFields will be
3042	// sent to the server regardless of whether the field is empty or not.
3043	// This may be used to include empty fields in Patch requests.
3044	ForceSendFields []string `json:"-"`
3045
3046	// NullFields is a list of field names (e.g. "BackgroundColor") to
3047	// include in API requests with the JSON null value. By default, fields
3048	// with empty values are omitted from API requests. However, any field
3049	// with an empty value appearing in NullFields will be sent to the
3050	// server as null. It is an error if a field in this list has a
3051	// non-empty value. This may be used to include null fields in Patch
3052	// requests.
3053	NullFields []string `json:"-"`
3054}
3055
3056func (s *GoogleCloudDocumentaiV1DocumentStyle) MarshalJSON() ([]byte, error) {
3057	type NoMethod GoogleCloudDocumentaiV1DocumentStyle
3058	raw := NoMethod(*s)
3059	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3060}
3061
3062// GoogleCloudDocumentaiV1DocumentStyleFontSize: Font size with unit.
3063type GoogleCloudDocumentaiV1DocumentStyleFontSize struct {
3064	// Size: Font size for the text.
3065	Size float64 `json:"size,omitempty"`
3066
3067	// Unit: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
3068	Unit string `json:"unit,omitempty"`
3069
3070	// ForceSendFields is a list of field names (e.g. "Size") to
3071	// unconditionally include in API requests. By default, fields with
3072	// empty or default values are omitted from API requests. However, any
3073	// non-pointer, non-interface field appearing in ForceSendFields will be
3074	// sent to the server regardless of whether the field is empty or not.
3075	// This may be used to include empty fields in Patch requests.
3076	ForceSendFields []string `json:"-"`
3077
3078	// NullFields is a list of field names (e.g. "Size") to include in API
3079	// requests with the JSON null value. By default, fields with empty
3080	// values are omitted from API requests. However, any field with an
3081	// empty value appearing in NullFields will be sent to the server as
3082	// null. It is an error if a field in this list has a non-empty value.
3083	// This may be used to include null fields in Patch requests.
3084	NullFields []string `json:"-"`
3085}
3086
3087func (s *GoogleCloudDocumentaiV1DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
3088	type NoMethod GoogleCloudDocumentaiV1DocumentStyleFontSize
3089	raw := NoMethod(*s)
3090	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3091}
3092
3093func (s *GoogleCloudDocumentaiV1DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
3094	type NoMethod GoogleCloudDocumentaiV1DocumentStyleFontSize
3095	var s1 struct {
3096		Size gensupport.JSONFloat64 `json:"size"`
3097		*NoMethod
3098	}
3099	s1.NoMethod = (*NoMethod)(s)
3100	if err := json.Unmarshal(data, &s1); err != nil {
3101		return err
3102	}
3103	s.Size = float64(s1.Size)
3104	return nil
3105}
3106
3107// GoogleCloudDocumentaiV1DocumentTextAnchor: Text reference indexing
3108// into the Document.text.
3109type GoogleCloudDocumentaiV1DocumentTextAnchor struct {
3110	// Content: Contains the content of the text span so that users do not
3111	// have to look it up in the text_segments.
3112	Content string `json:"content,omitempty"`
3113
3114	// TextSegments: The text segments from the Document.text.
3115	TextSegments []*GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
3116
3117	// ForceSendFields is a list of field names (e.g. "Content") to
3118	// unconditionally include in API requests. By default, fields with
3119	// empty or default values are omitted from API requests. However, any
3120	// non-pointer, non-interface field appearing in ForceSendFields will be
3121	// sent to the server regardless of whether the field is empty or not.
3122	// This may be used to include empty fields in Patch requests.
3123	ForceSendFields []string `json:"-"`
3124
3125	// NullFields is a list of field names (e.g. "Content") to include in
3126	// API requests with the JSON null value. By default, fields with empty
3127	// values are omitted from API requests. However, any field with an
3128	// empty value appearing in NullFields will be sent to the server as
3129	// null. It is an error if a field in this list has a non-empty value.
3130	// This may be used to include null fields in Patch requests.
3131	NullFields []string `json:"-"`
3132}
3133
3134func (s *GoogleCloudDocumentaiV1DocumentTextAnchor) MarshalJSON() ([]byte, error) {
3135	type NoMethod GoogleCloudDocumentaiV1DocumentTextAnchor
3136	raw := NoMethod(*s)
3137	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3138}
3139
3140// GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment: A text segment
3141// in the Document.text. The indices may be out of bounds which indicate
3142// that the text extends into another document shard for large sharded
3143// documents. See ShardInfo.text_offset
3144type GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment struct {
3145	// EndIndex: TextSegment half open end UTF-8 char index in the
3146	// Document.text.
3147	EndIndex int64 `json:"endIndex,omitempty,string"`
3148
3149	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
3150	StartIndex int64 `json:"startIndex,omitempty,string"`
3151
3152	// ForceSendFields is a list of field names (e.g. "EndIndex") to
3153	// unconditionally include in API requests. By default, fields with
3154	// empty or default values are omitted from API requests. However, any
3155	// non-pointer, non-interface field appearing in ForceSendFields will be
3156	// sent to the server regardless of whether the field is empty or not.
3157	// This may be used to include empty fields in Patch requests.
3158	ForceSendFields []string `json:"-"`
3159
3160	// NullFields is a list of field names (e.g. "EndIndex") to include in
3161	// API requests with the JSON null value. By default, fields with empty
3162	// values are omitted from API requests. However, any field with an
3163	// empty value appearing in NullFields will be sent to the server as
3164	// null. It is an error if a field in this list has a non-empty value.
3165	// This may be used to include null fields in Patch requests.
3166	NullFields []string `json:"-"`
3167}
3168
3169func (s *GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
3170	type NoMethod GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment
3171	raw := NoMethod(*s)
3172	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3173}
3174
3175// GoogleCloudDocumentaiV1DocumentTextChange: This message is used for
3176// text changes aka. OCR corrections.
3177type GoogleCloudDocumentaiV1DocumentTextChange struct {
3178	// ChangedText: The text that replaces the text identified in the
3179	// `text_anchor`.
3180	ChangedText string `json:"changedText,omitempty"`
3181
3182	// Provenance: The history of this annotation.
3183	Provenance []*GoogleCloudDocumentaiV1DocumentProvenance `json:"provenance,omitempty"`
3184
3185	// TextAnchor: Provenance of the correction. Text anchor indexing into
3186	// the Document.text. There can only be a single
3187	// `TextAnchor.text_segments` element. If the start and end index of the
3188	// text segment are the same, the text change is inserted before that
3189	// index.
3190	TextAnchor *GoogleCloudDocumentaiV1DocumentTextAnchor `json:"textAnchor,omitempty"`
3191
3192	// ForceSendFields is a list of field names (e.g. "ChangedText") to
3193	// unconditionally include in API requests. By default, fields with
3194	// empty or default values are omitted from API requests. However, any
3195	// non-pointer, non-interface field appearing in ForceSendFields will be
3196	// sent to the server regardless of whether the field is empty or not.
3197	// This may be used to include empty fields in Patch requests.
3198	ForceSendFields []string `json:"-"`
3199
3200	// NullFields is a list of field names (e.g. "ChangedText") to include
3201	// in API requests with the JSON null value. By default, fields with
3202	// empty values are omitted from API requests. However, any field with
3203	// an empty value appearing in NullFields will be sent to the server as
3204	// null. It is an error if a field in this list has a non-empty value.
3205	// This may be used to include null fields in Patch requests.
3206	NullFields []string `json:"-"`
3207}
3208
3209func (s *GoogleCloudDocumentaiV1DocumentTextChange) MarshalJSON() ([]byte, error) {
3210	type NoMethod GoogleCloudDocumentaiV1DocumentTextChange
3211	raw := NoMethod(*s)
3212	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3213}
3214
3215// GoogleCloudDocumentaiV1EnableProcessorMetadata: The long running
3216// operation metadata for enable processor method.
3217type GoogleCloudDocumentaiV1EnableProcessorMetadata struct {
3218	// CommonMetadata: The basic metadata of the long running operation.
3219	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
3220
3221	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
3222	// unconditionally include in API requests. By default, fields with
3223	// empty or default values are omitted from API requests. However, any
3224	// non-pointer, non-interface field appearing in ForceSendFields will be
3225	// sent to the server regardless of whether the field is empty or not.
3226	// This may be used to include empty fields in Patch requests.
3227	ForceSendFields []string `json:"-"`
3228
3229	// NullFields is a list of field names (e.g. "CommonMetadata") to
3230	// include in API requests with the JSON null value. By default, fields
3231	// with empty values are omitted from API requests. However, any field
3232	// with an empty value appearing in NullFields will be sent to the
3233	// server as null. It is an error if a field in this list has a
3234	// non-empty value. This may be used to include null fields in Patch
3235	// requests.
3236	NullFields []string `json:"-"`
3237}
3238
3239func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
3240	type NoMethod GoogleCloudDocumentaiV1EnableProcessorMetadata
3241	raw := NoMethod(*s)
3242	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3243}
3244
3245// GoogleCloudDocumentaiV1EnableProcessorRequest: Request message for
3246// the enable processor method.
3247type GoogleCloudDocumentaiV1EnableProcessorRequest struct {
3248}
3249
3250// GoogleCloudDocumentaiV1EnableProcessorResponse: Response message for
3251// the enable processor method. Intentionally empty proto for adding
3252// fields in future.
3253type GoogleCloudDocumentaiV1EnableProcessorResponse struct {
3254}
3255
3256// GoogleCloudDocumentaiV1FetchProcessorTypesResponse: Response message
3257// for fetch processor types.
3258type GoogleCloudDocumentaiV1FetchProcessorTypesResponse struct {
3259	// ProcessorTypes: The list of processor types.
3260	ProcessorTypes []*GoogleCloudDocumentaiV1ProcessorType `json:"processorTypes,omitempty"`
3261
3262	// ServerResponse contains the HTTP response code and headers from the
3263	// server.
3264	googleapi.ServerResponse `json:"-"`
3265
3266	// ForceSendFields is a list of field names (e.g. "ProcessorTypes") to
3267	// unconditionally include in API requests. By default, fields with
3268	// empty or default values are omitted from API requests. However, any
3269	// non-pointer, non-interface field appearing in ForceSendFields will be
3270	// sent to the server regardless of whether the field is empty or not.
3271	// This may be used to include empty fields in Patch requests.
3272	ForceSendFields []string `json:"-"`
3273
3274	// NullFields is a list of field names (e.g. "ProcessorTypes") to
3275	// include in API requests with the JSON null value. By default, fields
3276	// with empty values are omitted from API requests. However, any field
3277	// with an empty value appearing in NullFields will be sent to the
3278	// server as null. It is an error if a field in this list has a
3279	// non-empty value. This may be used to include null fields in Patch
3280	// requests.
3281	NullFields []string `json:"-"`
3282}
3283
3284func (s *GoogleCloudDocumentaiV1FetchProcessorTypesResponse) MarshalJSON() ([]byte, error) {
3285	type NoMethod GoogleCloudDocumentaiV1FetchProcessorTypesResponse
3286	raw := NoMethod(*s)
3287	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3288}
3289
3290// GoogleCloudDocumentaiV1GcsDocument: Specifies a document stored on
3291// Cloud Storage.
3292type GoogleCloudDocumentaiV1GcsDocument struct {
3293	// GcsUri: The Cloud Storage object uri.
3294	GcsUri string `json:"gcsUri,omitempty"`
3295
3296	// MimeType: An IANA MIME type (RFC6838) of the content.
3297	MimeType string `json:"mimeType,omitempty"`
3298
3299	// ForceSendFields is a list of field names (e.g. "GcsUri") to
3300	// unconditionally include in API requests. By default, fields with
3301	// empty or default values are omitted from API requests. However, any
3302	// non-pointer, non-interface field appearing in ForceSendFields will be
3303	// sent to the server regardless of whether the field is empty or not.
3304	// This may be used to include empty fields in Patch requests.
3305	ForceSendFields []string `json:"-"`
3306
3307	// NullFields is a list of field names (e.g. "GcsUri") to include in API
3308	// requests with the JSON null value. By default, fields with empty
3309	// values are omitted from API requests. However, any field with an
3310	// empty value appearing in NullFields will be sent to the server as
3311	// null. It is an error if a field in this list has a non-empty value.
3312	// This may be used to include null fields in Patch requests.
3313	NullFields []string `json:"-"`
3314}
3315
3316func (s *GoogleCloudDocumentaiV1GcsDocument) MarshalJSON() ([]byte, error) {
3317	type NoMethod GoogleCloudDocumentaiV1GcsDocument
3318	raw := NoMethod(*s)
3319	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3320}
3321
3322// GoogleCloudDocumentaiV1GcsDocuments: Specifies a set of documents on
3323// Cloud Storage.
3324type GoogleCloudDocumentaiV1GcsDocuments struct {
3325	// Documents: The list of documents.
3326	Documents []*GoogleCloudDocumentaiV1GcsDocument `json:"documents,omitempty"`
3327
3328	// ForceSendFields is a list of field names (e.g. "Documents") to
3329	// unconditionally include in API requests. By default, fields with
3330	// empty or default values are omitted from API requests. However, any
3331	// non-pointer, non-interface field appearing in ForceSendFields will be
3332	// sent to the server regardless of whether the field is empty or not.
3333	// This may be used to include empty fields in Patch requests.
3334	ForceSendFields []string `json:"-"`
3335
3336	// NullFields is a list of field names (e.g. "Documents") to include in
3337	// API requests with the JSON null value. By default, fields with empty
3338	// values are omitted from API requests. However, any field with an
3339	// empty value appearing in NullFields will be sent to the server as
3340	// null. It is an error if a field in this list has a non-empty value.
3341	// This may be used to include null fields in Patch requests.
3342	NullFields []string `json:"-"`
3343}
3344
3345func (s *GoogleCloudDocumentaiV1GcsDocuments) MarshalJSON() ([]byte, error) {
3346	type NoMethod GoogleCloudDocumentaiV1GcsDocuments
3347	raw := NoMethod(*s)
3348	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3349}
3350
3351// GoogleCloudDocumentaiV1GcsPrefix: Specifies all documents on Cloud
3352// Storage with a common prefix.
3353type GoogleCloudDocumentaiV1GcsPrefix struct {
3354	// GcsUriPrefix: The URI prefix.
3355	GcsUriPrefix string `json:"gcsUriPrefix,omitempty"`
3356
3357	// ForceSendFields is a list of field names (e.g. "GcsUriPrefix") to
3358	// unconditionally include in API requests. By default, fields with
3359	// empty or default values are omitted from API requests. However, any
3360	// non-pointer, non-interface field appearing in ForceSendFields will be
3361	// sent to the server regardless of whether the field is empty or not.
3362	// This may be used to include empty fields in Patch requests.
3363	ForceSendFields []string `json:"-"`
3364
3365	// NullFields is a list of field names (e.g. "GcsUriPrefix") to include
3366	// in API requests with the JSON null value. By default, fields with
3367	// empty values are omitted from API requests. However, any field with
3368	// an empty value appearing in NullFields will be sent to the server as
3369	// null. It is an error if a field in this list has a non-empty value.
3370	// This may be used to include null fields in Patch requests.
3371	NullFields []string `json:"-"`
3372}
3373
3374func (s *GoogleCloudDocumentaiV1GcsPrefix) MarshalJSON() ([]byte, error) {
3375	type NoMethod GoogleCloudDocumentaiV1GcsPrefix
3376	raw := NoMethod(*s)
3377	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3378}
3379
3380// GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review
3381// on a processed document.
3382type GoogleCloudDocumentaiV1HumanReviewStatus struct {
3383	// HumanReviewOperation: The name of the operation triggered by the
3384	// processed document. This field is populated only when the [state] is
3385	// [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
3386	// metadata as the long running operation returned by [ReviewDocument]
3387	// method.
3388	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
3389
3390	// State: The state of human review on the processing request.
3391	//
3392	// Possible values:
3393	//   "STATE_UNSPECIFIED" - Human review state is unspecified. Most
3394	// likely due to an internal error.
3395	//   "SKIPPED" - Human review is skipped for the document. This can
3396	// happen because human review is not enabled on the processor or the
3397	// processing request has been set to skip this document.
3398	//   "VALIDATION_PASSED" - Human review validation is triggered and
3399	// passed, so no review is needed.
3400	//   "IN_PROGRESS" - Human review validation is triggered and the
3401	// document is under review.
3402	//   "ERROR" - Some error happened during triggering human review, see
3403	// the [state_message] for details.
3404	State string `json:"state,omitempty"`
3405
3406	// StateMessage: A message providing more details about the human review
3407	// state.
3408	StateMessage string `json:"stateMessage,omitempty"`
3409
3410	// ForceSendFields is a list of field names (e.g.
3411	// "HumanReviewOperation") to unconditionally include in API requests.
3412	// By default, fields with empty or default values are omitted from API
3413	// requests. However, any non-pointer, non-interface field appearing in
3414	// ForceSendFields will be sent to the server regardless of whether the
3415	// field is empty or not. This may be used to include empty fields in
3416	// Patch requests.
3417	ForceSendFields []string `json:"-"`
3418
3419	// NullFields is a list of field names (e.g. "HumanReviewOperation") to
3420	// include in API requests with the JSON null value. By default, fields
3421	// with empty values are omitted from API requests. However, any field
3422	// with an empty value appearing in NullFields will be sent to the
3423	// server as null. It is an error if a field in this list has a
3424	// non-empty value. This may be used to include null fields in Patch
3425	// requests.
3426	NullFields []string `json:"-"`
3427}
3428
3429func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) {
3430	type NoMethod GoogleCloudDocumentaiV1HumanReviewStatus
3431	raw := NoMethod(*s)
3432	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3433}
3434
3435// GoogleCloudDocumentaiV1ListProcessorVersionsResponse: Response
3436// message for list processors.
3437type GoogleCloudDocumentaiV1ListProcessorVersionsResponse struct {
3438	// NextPageToken: Points to the next processor, otherwise empty.
3439	NextPageToken string `json:"nextPageToken,omitempty"`
3440
3441	// ProcessorVersions: The list of processors.
3442	ProcessorVersions []*GoogleCloudDocumentaiV1ProcessorVersion `json:"processorVersions,omitempty"`
3443
3444	// ServerResponse contains the HTTP response code and headers from the
3445	// server.
3446	googleapi.ServerResponse `json:"-"`
3447
3448	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
3449	// unconditionally include in API requests. By default, fields with
3450	// empty or default values are omitted from API requests. However, any
3451	// non-pointer, non-interface field appearing in ForceSendFields will be
3452	// sent to the server regardless of whether the field is empty or not.
3453	// This may be used to include empty fields in Patch requests.
3454	ForceSendFields []string `json:"-"`
3455
3456	// NullFields is a list of field names (e.g. "NextPageToken") to include
3457	// in API requests with the JSON null value. By default, fields with
3458	// empty values are omitted from API requests. However, any field with
3459	// an empty value appearing in NullFields will be sent to the server as
3460	// null. It is an error if a field in this list has a non-empty value.
3461	// This may be used to include null fields in Patch requests.
3462	NullFields []string `json:"-"`
3463}
3464
3465func (s *GoogleCloudDocumentaiV1ListProcessorVersionsResponse) MarshalJSON() ([]byte, error) {
3466	type NoMethod GoogleCloudDocumentaiV1ListProcessorVersionsResponse
3467	raw := NoMethod(*s)
3468	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3469}
3470
3471// GoogleCloudDocumentaiV1ListProcessorsResponse: Response message for
3472// list processors.
3473type GoogleCloudDocumentaiV1ListProcessorsResponse struct {
3474	// NextPageToken: Points to the next processor, otherwise empty.
3475	NextPageToken string `json:"nextPageToken,omitempty"`
3476
3477	// Processors: The list of processors.
3478	Processors []*GoogleCloudDocumentaiV1Processor `json:"processors,omitempty"`
3479
3480	// ServerResponse contains the HTTP response code and headers from the
3481	// server.
3482	googleapi.ServerResponse `json:"-"`
3483
3484	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
3485	// unconditionally include in API requests. By default, fields with
3486	// empty or default values are omitted from API requests. However, any
3487	// non-pointer, non-interface field appearing in ForceSendFields will be
3488	// sent to the server regardless of whether the field is empty or not.
3489	// This may be used to include empty fields in Patch requests.
3490	ForceSendFields []string `json:"-"`
3491
3492	// NullFields is a list of field names (e.g. "NextPageToken") to include
3493	// in API requests with the JSON null value. By default, fields with
3494	// empty values are omitted from API requests. However, any field with
3495	// an empty value appearing in NullFields will be sent to the server as
3496	// null. It is an error if a field in this list has a non-empty value.
3497	// This may be used to include null fields in Patch requests.
3498	NullFields []string `json:"-"`
3499}
3500
3501func (s *GoogleCloudDocumentaiV1ListProcessorsResponse) MarshalJSON() ([]byte, error) {
3502	type NoMethod GoogleCloudDocumentaiV1ListProcessorsResponse
3503	raw := NoMethod(*s)
3504	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3505}
3506
3507// GoogleCloudDocumentaiV1NormalizedVertex: A vertex represents a 2D
3508// point in the image. NOTE: the normalized vertex coordinates are
3509// relative to the original image and range from 0 to 1.
3510type GoogleCloudDocumentaiV1NormalizedVertex struct {
3511	// X: X coordinate.
3512	X float64 `json:"x,omitempty"`
3513
3514	// Y: Y coordinate (starts from the top of the image).
3515	Y float64 `json:"y,omitempty"`
3516
3517	// ForceSendFields is a list of field names (e.g. "X") to
3518	// unconditionally include in API requests. By default, fields with
3519	// empty or default values are omitted from API requests. However, any
3520	// non-pointer, non-interface field appearing in ForceSendFields will be
3521	// sent to the server regardless of whether the field is empty or not.
3522	// This may be used to include empty fields in Patch requests.
3523	ForceSendFields []string `json:"-"`
3524
3525	// NullFields is a list of field names (e.g. "X") to include in API
3526	// requests with the JSON null value. By default, fields with empty
3527	// values are omitted from API requests. However, any field with an
3528	// empty value appearing in NullFields will be sent to the server as
3529	// null. It is an error if a field in this list has a non-empty value.
3530	// This may be used to include null fields in Patch requests.
3531	NullFields []string `json:"-"`
3532}
3533
3534func (s *GoogleCloudDocumentaiV1NormalizedVertex) MarshalJSON() ([]byte, error) {
3535	type NoMethod GoogleCloudDocumentaiV1NormalizedVertex
3536	raw := NoMethod(*s)
3537	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3538}
3539
3540func (s *GoogleCloudDocumentaiV1NormalizedVertex) UnmarshalJSON(data []byte) error {
3541	type NoMethod GoogleCloudDocumentaiV1NormalizedVertex
3542	var s1 struct {
3543		X gensupport.JSONFloat64 `json:"x"`
3544		Y gensupport.JSONFloat64 `json:"y"`
3545		*NoMethod
3546	}
3547	s1.NoMethod = (*NoMethod)(s)
3548	if err := json.Unmarshal(data, &s1); err != nil {
3549		return err
3550	}
3551	s.X = float64(s1.X)
3552	s.Y = float64(s1.Y)
3553	return nil
3554}
3555
3556// GoogleCloudDocumentaiV1ProcessRequest: Request message for the
3557// process document method.
3558type GoogleCloudDocumentaiV1ProcessRequest struct {
3559	// InlineDocument: An inline document proto.
3560	InlineDocument *GoogleCloudDocumentaiV1Document `json:"inlineDocument,omitempty"`
3561
3562	// RawDocument: A raw document content (bytes).
3563	RawDocument *GoogleCloudDocumentaiV1RawDocument `json:"rawDocument,omitempty"`
3564
3565	// SkipHumanReview: Whether Human Review feature should be skipped for
3566	// this request. Default to false.
3567	SkipHumanReview bool `json:"skipHumanReview,omitempty"`
3568
3569	// ForceSendFields is a list of field names (e.g. "InlineDocument") to
3570	// unconditionally include in API requests. By default, fields with
3571	// empty or default values are omitted from API requests. However, any
3572	// non-pointer, non-interface field appearing in ForceSendFields will be
3573	// sent to the server regardless of whether the field is empty or not.
3574	// This may be used to include empty fields in Patch requests.
3575	ForceSendFields []string `json:"-"`
3576
3577	// NullFields is a list of field names (e.g. "InlineDocument") to
3578	// include in API requests with the JSON null value. By default, fields
3579	// with empty values are omitted from API requests. However, any field
3580	// with an empty value appearing in NullFields will be sent to the
3581	// server as null. It is an error if a field in this list has a
3582	// non-empty value. This may be used to include null fields in Patch
3583	// requests.
3584	NullFields []string `json:"-"`
3585}
3586
3587func (s *GoogleCloudDocumentaiV1ProcessRequest) MarshalJSON() ([]byte, error) {
3588	type NoMethod GoogleCloudDocumentaiV1ProcessRequest
3589	raw := NoMethod(*s)
3590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3591}
3592
3593// GoogleCloudDocumentaiV1ProcessResponse: Response message for the
3594// process document method.
3595type GoogleCloudDocumentaiV1ProcessResponse struct {
3596	// Document: The document payload, will populate fields based on the
3597	// processor's behavior.
3598	Document *GoogleCloudDocumentaiV1Document `json:"document,omitempty"`
3599
3600	// HumanReviewStatus: The status of human review on the processed
3601	// document.
3602	HumanReviewStatus *GoogleCloudDocumentaiV1HumanReviewStatus `json:"humanReviewStatus,omitempty"`
3603
3604	// ServerResponse contains the HTTP response code and headers from the
3605	// server.
3606	googleapi.ServerResponse `json:"-"`
3607
3608	// ForceSendFields is a list of field names (e.g. "Document") to
3609	// unconditionally include in API requests. By default, fields with
3610	// empty or default values are omitted from API requests. However, any
3611	// non-pointer, non-interface field appearing in ForceSendFields will be
3612	// sent to the server regardless of whether the field is empty or not.
3613	// This may be used to include empty fields in Patch requests.
3614	ForceSendFields []string `json:"-"`
3615
3616	// NullFields is a list of field names (e.g. "Document") to include in
3617	// API requests with the JSON null value. By default, fields with empty
3618	// values are omitted from API requests. However, any field with an
3619	// empty value appearing in NullFields will be sent to the server as
3620	// null. It is an error if a field in this list has a non-empty value.
3621	// This may be used to include null fields in Patch requests.
3622	NullFields []string `json:"-"`
3623}
3624
3625func (s *GoogleCloudDocumentaiV1ProcessResponse) MarshalJSON() ([]byte, error) {
3626	type NoMethod GoogleCloudDocumentaiV1ProcessResponse
3627	raw := NoMethod(*s)
3628	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3629}
3630
3631// GoogleCloudDocumentaiV1Processor: The first-class citizen for DAI.
3632// Each processor defines how to extract structural information from a
3633// document.
3634type GoogleCloudDocumentaiV1Processor struct {
3635	// CreateTime: The time the processor was created.
3636	CreateTime string `json:"createTime,omitempty"`
3637
3638	// DefaultProcessorVersion: The default processor version.
3639	DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
3640
3641	// DisplayName: The display name of the processor.
3642	DisplayName string `json:"displayName,omitempty"`
3643
3644	// KmsKeyName: The KMS key used for encryption/decryption in CMEK
3645	// scenarios. See https://cloud.google.com/security-key-management.
3646	KmsKeyName string `json:"kmsKeyName,omitempty"`
3647
3648	// Name: Output only. Immutable. The resource name of the processor.
3649	// Format:
3650	// projects/{project}/locations/{location}/processors/{processor}
3651	Name string `json:"name,omitempty"`
3652
3653	// ProcessEndpoint: Output only. Immutable. The http endpoint that can
3654	// be called to invoke processing.
3655	ProcessEndpoint string `json:"processEndpoint,omitempty"`
3656
3657	// State: Output only. The state of the processor.
3658	//
3659	// Possible values:
3660	//   "STATE_UNSPECIFIED" - The processor is in an unspecified state.
3661	//   "ENABLED" - The processor is enabled, i.e, has an enabled version
3662	// which can currently serve processing requests and all the feature
3663	// dependencies have been successfully initialized.
3664	//   "DISABLED" - The processor is disabled.
3665	//   "ENABLING" - The processor is being enabled, will become ENABLED if
3666	// successful.
3667	//   "DISABLING" - The processor is being disabled, will become DISABLED
3668	// if successful.
3669	//   "CREATING" - The processor is being created, will become either
3670	// ENABLED (for successful creation) or FAILED (for failed ones). Once a
3671	// processor is in this state, it can then be used for document
3672	// processing, but the feature dependencies of the processor might not
3673	// be fully created yet.
3674	//   "FAILED" - The processor failed during creation or initialization
3675	// of feature dependencies. The user should delete the processor and
3676	// recreate one as all the functionalities of the processor are
3677	// disabled.
3678	//   "DELETING" - The processor is being deleted, will be removed if
3679	// successful.
3680	State string `json:"state,omitempty"`
3681
3682	// Type: The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc.
3683	Type string `json:"type,omitempty"`
3684
3685	// ServerResponse contains the HTTP response code and headers from the
3686	// server.
3687	googleapi.ServerResponse `json:"-"`
3688
3689	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3690	// unconditionally include in API requests. By default, fields with
3691	// empty or default values are omitted from API requests. However, any
3692	// non-pointer, non-interface field appearing in ForceSendFields will be
3693	// sent to the server regardless of whether the field is empty or not.
3694	// This may be used to include empty fields in Patch requests.
3695	ForceSendFields []string `json:"-"`
3696
3697	// NullFields is a list of field names (e.g. "CreateTime") to include in
3698	// API requests with the JSON null value. By default, fields with empty
3699	// values are omitted from API requests. However, any field with an
3700	// empty value appearing in NullFields will be sent to the server as
3701	// null. It is an error if a field in this list has a non-empty value.
3702	// This may be used to include null fields in Patch requests.
3703	NullFields []string `json:"-"`
3704}
3705
3706func (s *GoogleCloudDocumentaiV1Processor) MarshalJSON() ([]byte, error) {
3707	type NoMethod GoogleCloudDocumentaiV1Processor
3708	raw := NoMethod(*s)
3709	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3710}
3711
3712// GoogleCloudDocumentaiV1ProcessorType: A processor type is responsible
3713// for performing a certain document understanding task on a certain
3714// type of document. All processor types are created by the documentai
3715// service internally. User will only list all available processor types
3716// via UI. For different users (projects), the available processor types
3717// may be different since we'll expose the access of some types via EAP
3718// whitelisting. We make the ProcessorType a resource under location so
3719// we have a unified API and keep the possibility that UI will load
3720// different available processor types from different regions. But for
3721// alpha the behavior is that the user will always get the union of all
3722// available processor types among all regions no matter which
3723// regionalized endpoint is called, and then we use the
3724// 'available_locations' field to show under which regions a processor
3725// type is available. For example, users can call either the 'US' or
3726// 'EU' endpoint to feach processor types. In the return, we will have
3727// an 'invoice parsing' processor with 'available_locations' field only
3728// containing 'US'. So the user can try to create an 'invoice parsing'
3729// processor under the location 'US'. Such attempt of creating under the
3730// location 'EU' will fail. Next ID: 9.
3731type GoogleCloudDocumentaiV1ProcessorType struct {
3732	// AllowCreation: Whether the processor type allows creation. If yes,
3733	// user can create a processor of this processor type. Otherwise, user
3734	// needs to request access.
3735	AllowCreation bool `json:"allowCreation,omitempty"`
3736
3737	// AvailableLocations: The locations in which this processor is
3738	// available.
3739	AvailableLocations []*GoogleCloudDocumentaiV1ProcessorTypeLocationInfo `json:"availableLocations,omitempty"`
3740
3741	// Category: The processor category, used by UI to group processor
3742	// types.
3743	Category string `json:"category,omitempty"`
3744
3745	// LaunchStage: Launch stage of the processor type
3746	//
3747	// Possible values:
3748	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
3749	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not
3750	// use it.
3751	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
3752	// visible internally.
3753	//   "EARLY_ACCESS" - Early Access features are limited to a closed
3754	// group of testers. To use these features, you must sign up in advance
3755	// and sign a Trusted Tester agreement (which includes confidentiality
3756	// provisions). These features may be unstable, changed in
3757	// backward-incompatible ways, and are not guaranteed to be released.
3758	//   "ALPHA" - Alpha is a limited availability test for releases before
3759	// they are cleared for widespread use. By Alpha, all significant design
3760	// issues are resolved and we are in the process of verifying
3761	// functionality. Alpha customers need to apply for access, agree to
3762	// applicable terms, and have their projects allowlisted. Alpha releases
3763	// don’t have to be feature complete, no SLAs are provided, and there
3764	// are no technical support obligations, but they will be far enough
3765	// along that customers can actually use them in test environments or
3766	// for limited-use tests -- just like they would in normal production
3767	// cases.
3768	//   "BETA" - Beta is the point at which we are ready to open a release
3769	// for any customer to use. There are no SLA or technical support
3770	// obligations in a Beta release. Products will be complete from a
3771	// feature perspective, but may have some open outstanding issues. Beta
3772	// releases are suitable for limited production use cases.
3773	//   "GA" - GA features are open to all developers and are considered
3774	// stable and fully qualified for production use.
3775	//   "DEPRECATED" - Deprecated features are scheduled to be shut down
3776	// and removed. For more information, see the “Deprecation Policy”
3777	// section of our [Terms of Service](https://cloud.google.com/terms/)
3778	// and the [Google Cloud Platform Subject to the Deprecation
3779	// Policy](https://cloud.google.com/terms/deprecation) documentation.
3780	LaunchStage string `json:"launchStage,omitempty"`
3781
3782	// Name: The resource name of the processor type. Format:
3783	// projects/{project}/processorTypes/{processor_type}
3784	Name string `json:"name,omitempty"`
3785
3786	// Type: The type of the processor, e.g., "invoice_parsing".
3787	Type string `json:"type,omitempty"`
3788
3789	// ForceSendFields is a list of field names (e.g. "AllowCreation") to
3790	// unconditionally include in API requests. By default, fields with
3791	// empty or default values are omitted from API requests. However, any
3792	// non-pointer, non-interface field appearing in ForceSendFields will be
3793	// sent to the server regardless of whether the field is empty or not.
3794	// This may be used to include empty fields in Patch requests.
3795	ForceSendFields []string `json:"-"`
3796
3797	// NullFields is a list of field names (e.g. "AllowCreation") to include
3798	// in API requests with the JSON null value. By default, fields with
3799	// empty values are omitted from API requests. However, any field with
3800	// an empty value appearing in NullFields will be sent to the server as
3801	// null. It is an error if a field in this list has a non-empty value.
3802	// This may be used to include null fields in Patch requests.
3803	NullFields []string `json:"-"`
3804}
3805
3806func (s *GoogleCloudDocumentaiV1ProcessorType) MarshalJSON() ([]byte, error) {
3807	type NoMethod GoogleCloudDocumentaiV1ProcessorType
3808	raw := NoMethod(*s)
3809	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3810}
3811
3812// GoogleCloudDocumentaiV1ProcessorTypeLocationInfo: The location
3813// information about where the processor is available.
3814type GoogleCloudDocumentaiV1ProcessorTypeLocationInfo struct {
3815	// LocationId: The location id, currently must be one of [us, eu].
3816	LocationId string `json:"locationId,omitempty"`
3817
3818	// ForceSendFields is a list of field names (e.g. "LocationId") to
3819	// unconditionally include in API requests. By default, fields with
3820	// empty or default values are omitted from API requests. However, any
3821	// non-pointer, non-interface field appearing in ForceSendFields will be
3822	// sent to the server regardless of whether the field is empty or not.
3823	// This may be used to include empty fields in Patch requests.
3824	ForceSendFields []string `json:"-"`
3825
3826	// NullFields is a list of field names (e.g. "LocationId") to include in
3827	// API requests with the JSON null value. By default, fields with empty
3828	// values are omitted from API requests. However, any field with an
3829	// empty value appearing in NullFields will be sent to the server as
3830	// null. It is an error if a field in this list has a non-empty value.
3831	// This may be used to include null fields in Patch requests.
3832	NullFields []string `json:"-"`
3833}
3834
3835func (s *GoogleCloudDocumentaiV1ProcessorTypeLocationInfo) MarshalJSON() ([]byte, error) {
3836	type NoMethod GoogleCloudDocumentaiV1ProcessorTypeLocationInfo
3837	raw := NoMethod(*s)
3838	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3839}
3840
3841// GoogleCloudDocumentaiV1ProcessorVersion: A processor version is an
3842// implementation of a processor. Each processor can have multiple
3843// versions, pre-trained by Google internally or up-trained by the
3844// customer. At a time, a processor can only have one default version
3845// version. So the processor's behavior (when processing documents) is
3846// defined by a default version.
3847type GoogleCloudDocumentaiV1ProcessorVersion struct {
3848	// CreateTime: The time the processor version was created.
3849	CreateTime string `json:"createTime,omitempty"`
3850
3851	// DisplayName: The display name of the processor version.
3852	DisplayName string `json:"displayName,omitempty"`
3853
3854	// Name: The resource name of the processor version. Format:
3855	// projects/{project}/locations/{location}/processors/{processor}/process
3856	// orVersions/{processor_version}
3857	Name string `json:"name,omitempty"`
3858
3859	// State: The state of the processor version.
3860	//
3861	// Possible values:
3862	//   "STATE_UNSPECIFIED" - The processor version is in an unspecified
3863	// state.
3864	//   "DEPLOYED" - The processor version is deployed and can be used for
3865	// processing.
3866	//   "DEPLOYING" - The processor version is being deployed.
3867	//   "UNDEPLOYED" - The processor version is not deployed and cannot be
3868	// used for processing.
3869	//   "UNDEPLOYING" - The processor version is being undeployed.
3870	//   "CREATING" - The processor version is being created.
3871	//   "DELETING" - The processor version is being deleted.
3872	//   "FAILED" - The processor version failed and is in an indeterminate
3873	// state.
3874	State string `json:"state,omitempty"`
3875
3876	// ServerResponse contains the HTTP response code and headers from the
3877	// server.
3878	googleapi.ServerResponse `json:"-"`
3879
3880	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3881	// unconditionally include in API requests. By default, fields with
3882	// empty or default values are omitted from API requests. However, any
3883	// non-pointer, non-interface field appearing in ForceSendFields will be
3884	// sent to the server regardless of whether the field is empty or not.
3885	// This may be used to include empty fields in Patch requests.
3886	ForceSendFields []string `json:"-"`
3887
3888	// NullFields is a list of field names (e.g. "CreateTime") to include in
3889	// API requests with the JSON null value. By default, fields with empty
3890	// values are omitted from API requests. However, any field with an
3891	// empty value appearing in NullFields will be sent to the server as
3892	// null. It is an error if a field in this list has a non-empty value.
3893	// This may be used to include null fields in Patch requests.
3894	NullFields []string `json:"-"`
3895}
3896
3897func (s *GoogleCloudDocumentaiV1ProcessorVersion) MarshalJSON() ([]byte, error) {
3898	type NoMethod GoogleCloudDocumentaiV1ProcessorVersion
3899	raw := NoMethod(*s)
3900	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3901}
3902
3903// GoogleCloudDocumentaiV1RawDocument: Payload message of raw document
3904// content (bytes).
3905type GoogleCloudDocumentaiV1RawDocument struct {
3906	// Content: Inline document content.
3907	Content string `json:"content,omitempty"`
3908
3909	// MimeType: An IANA MIME type (RFC6838) indicating the nature and
3910	// format of the [content].
3911	MimeType string `json:"mimeType,omitempty"`
3912
3913	// ForceSendFields is a list of field names (e.g. "Content") to
3914	// unconditionally include in API requests. By default, fields with
3915	// empty or default values are omitted from API requests. However, any
3916	// non-pointer, non-interface field appearing in ForceSendFields will be
3917	// sent to the server regardless of whether the field is empty or not.
3918	// This may be used to include empty fields in Patch requests.
3919	ForceSendFields []string `json:"-"`
3920
3921	// NullFields is a list of field names (e.g. "Content") to include in
3922	// API requests with the JSON null value. By default, fields with empty
3923	// values are omitted from API requests. However, any field with an
3924	// empty value appearing in NullFields will be sent to the server as
3925	// null. It is an error if a field in this list has a non-empty value.
3926	// This may be used to include null fields in Patch requests.
3927	NullFields []string `json:"-"`
3928}
3929
3930func (s *GoogleCloudDocumentaiV1RawDocument) MarshalJSON() ([]byte, error) {
3931	type NoMethod GoogleCloudDocumentaiV1RawDocument
3932	raw := NoMethod(*s)
3933	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3934}
3935
3936// GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata: The long
3937// running operation metadata for review document method.
3938type GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata struct {
3939	// CommonMetadata: The basic metadata of the long running operation.
3940	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
3941
3942	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
3943	// unconditionally include in API requests. By default, fields with
3944	// empty or default values are omitted from API requests. However, any
3945	// non-pointer, non-interface field appearing in ForceSendFields will be
3946	// sent to the server regardless of whether the field is empty or not.
3947	// This may be used to include empty fields in Patch requests.
3948	ForceSendFields []string `json:"-"`
3949
3950	// NullFields is a list of field names (e.g. "CommonMetadata") to
3951	// include in API requests with the JSON null value. By default, fields
3952	// with empty values are omitted from API requests. However, any field
3953	// with an empty value appearing in NullFields will be sent to the
3954	// server as null. It is an error if a field in this list has a
3955	// non-empty value. This may be used to include null fields in Patch
3956	// requests.
3957	NullFields []string `json:"-"`
3958}
3959
3960func (s *GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3961	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
3962	raw := NoMethod(*s)
3963	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3964}
3965
3966// GoogleCloudDocumentaiV1ReviewDocumentRequest: Request message for
3967// review document method. Next Id: 6.
3968type GoogleCloudDocumentaiV1ReviewDocumentRequest struct {
3969	// EnableSchemaValidation: Whether the validation should be performed on
3970	// the ad-hoc review request.
3971	EnableSchemaValidation bool `json:"enableSchemaValidation,omitempty"`
3972
3973	// InlineDocument: An inline document proto.
3974	InlineDocument *GoogleCloudDocumentaiV1Document `json:"inlineDocument,omitempty"`
3975
3976	// Priority: The priority of the human review task.
3977	//
3978	// Possible values:
3979	//   "DEFAULT" - The default priority level.
3980	//   "URGENT" - The urgent priority level. The labeling manager should
3981	// allocate labeler resource to the urgent task queue to respect this
3982	// priority level.
3983	Priority string `json:"priority,omitempty"`
3984
3985	// ForceSendFields is a list of field names (e.g.
3986	// "EnableSchemaValidation") to unconditionally include in API requests.
3987	// By default, fields with empty or default values are omitted from API
3988	// requests. However, any non-pointer, non-interface field appearing in
3989	// ForceSendFields will be sent to the server regardless of whether the
3990	// field is empty or not. This may be used to include empty fields in
3991	// Patch requests.
3992	ForceSendFields []string `json:"-"`
3993
3994	// NullFields is a list of field names (e.g. "EnableSchemaValidation")
3995	// to include in API requests with the JSON null value. By default,
3996	// fields with empty values are omitted from API requests. However, any
3997	// field with an empty value appearing in NullFields will be sent to the
3998	// server as null. It is an error if a field in this list has a
3999	// non-empty value. This may be used to include null fields in Patch
4000	// requests.
4001	NullFields []string `json:"-"`
4002}
4003
4004func (s *GoogleCloudDocumentaiV1ReviewDocumentRequest) MarshalJSON() ([]byte, error) {
4005	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentRequest
4006	raw := NoMethod(*s)
4007	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4008}
4009
4010// GoogleCloudDocumentaiV1ReviewDocumentResponse: Response message for
4011// review document method.
4012type GoogleCloudDocumentaiV1ReviewDocumentResponse struct {
4013	// GcsDestination: The Cloud Storage uri for the human reviewed
4014	// document.
4015	GcsDestination string `json:"gcsDestination,omitempty"`
4016
4017	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
4018	// unconditionally include in API requests. By default, fields with
4019	// empty or default values are omitted from API requests. However, any
4020	// non-pointer, non-interface field appearing in ForceSendFields will be
4021	// sent to the server regardless of whether the field is empty or not.
4022	// This may be used to include empty fields in Patch requests.
4023	ForceSendFields []string `json:"-"`
4024
4025	// NullFields is a list of field names (e.g. "GcsDestination") to
4026	// include in API requests with the JSON null value. By default, fields
4027	// with empty values are omitted from API requests. However, any field
4028	// with an empty value appearing in NullFields will be sent to the
4029	// server as null. It is an error if a field in this list has a
4030	// non-empty value. This may be used to include null fields in Patch
4031	// requests.
4032	NullFields []string `json:"-"`
4033}
4034
4035func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
4036	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentResponse
4037	raw := NoMethod(*s)
4038	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4039}
4040
4041// GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata: The long
4042// running operation metadata for set default processor version method.
4043type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct {
4044	// CommonMetadata: The basic metadata of the long running operation.
4045	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
4046
4047	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
4048	// unconditionally include in API requests. By default, fields with
4049	// empty or default values are omitted from API requests. However, any
4050	// non-pointer, non-interface field appearing in ForceSendFields will be
4051	// sent to the server regardless of whether the field is empty or not.
4052	// This may be used to include empty fields in Patch requests.
4053	ForceSendFields []string `json:"-"`
4054
4055	// NullFields is a list of field names (e.g. "CommonMetadata") to
4056	// include in API requests with the JSON null value. By default, fields
4057	// with empty values are omitted from API requests. However, any field
4058	// with an empty value appearing in NullFields will be sent to the
4059	// server as null. It is an error if a field in this list has a
4060	// non-empty value. This may be used to include null fields in Patch
4061	// requests.
4062	NullFields []string `json:"-"`
4063}
4064
4065func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
4066	type NoMethod GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
4067	raw := NoMethod(*s)
4068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4069}
4070
4071// GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest: Request
4072// message for the set default processor version method.
4073type GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest struct {
4074	// DefaultProcessorVersion: Required. The resource name of child
4075	// ProcessorVersion to use as default.
4076	DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
4077
4078	// ForceSendFields is a list of field names (e.g.
4079	// "DefaultProcessorVersion") to unconditionally include in API
4080	// requests. By default, fields with empty or default values are omitted
4081	// from API requests. However, any non-pointer, non-interface field
4082	// appearing in ForceSendFields will be sent to the server regardless of
4083	// whether the field is empty or not. This may be used to include empty
4084	// fields in Patch requests.
4085	ForceSendFields []string `json:"-"`
4086
4087	// NullFields is a list of field names (e.g. "DefaultProcessorVersion")
4088	// to include in API requests with the JSON null value. By default,
4089	// fields with empty values are omitted from API requests. However, any
4090	// field with an empty value appearing in NullFields will be sent to the
4091	// server as null. It is an error if a field in this list has a
4092	// non-empty value. This may be used to include null fields in Patch
4093	// requests.
4094	NullFields []string `json:"-"`
4095}
4096
4097func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest) MarshalJSON() ([]byte, error) {
4098	type NoMethod GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest
4099	raw := NoMethod(*s)
4100	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4101}
4102
4103// GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse: Response
4104// message for set default processor version method.
4105type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct {
4106}
4107
4108// GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long
4109// running operation metadata for the undeploy processor version method.
4110type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct {
4111	// CommonMetadata: The basic metadata of the long running operation.
4112	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
4113
4114	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
4115	// unconditionally include in API requests. By default, fields with
4116	// empty or default values are omitted from API requests. However, any
4117	// non-pointer, non-interface field appearing in ForceSendFields will be
4118	// sent to the server regardless of whether the field is empty or not.
4119	// This may be used to include empty fields in Patch requests.
4120	ForceSendFields []string `json:"-"`
4121
4122	// NullFields is a list of field names (e.g. "CommonMetadata") to
4123	// include in API requests with the JSON null value. By default, fields
4124	// with empty values are omitted from API requests. However, any field
4125	// with an empty value appearing in NullFields will be sent to the
4126	// server as null. It is an error if a field in this list has a
4127	// non-empty value. This may be used to include null fields in Patch
4128	// requests.
4129	NullFields []string `json:"-"`
4130}
4131
4132func (s *GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
4133	type NoMethod GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
4134	raw := NoMethod(*s)
4135	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4136}
4137
4138// GoogleCloudDocumentaiV1UndeployProcessorVersionRequest: Request
4139// message for the undeploy processor version method.
4140type GoogleCloudDocumentaiV1UndeployProcessorVersionRequest struct {
4141}
4142
4143// GoogleCloudDocumentaiV1UndeployProcessorVersionResponse: Response
4144// message for the undeploy processor version method.
4145type GoogleCloudDocumentaiV1UndeployProcessorVersionResponse struct {
4146}
4147
4148// GoogleCloudDocumentaiV1Vertex: A vertex represents a 2D point in the
4149// image. NOTE: the vertex coordinates are in the same scale as the
4150// original image.
4151type GoogleCloudDocumentaiV1Vertex struct {
4152	// X: X coordinate.
4153	X int64 `json:"x,omitempty"`
4154
4155	// Y: Y coordinate (starts from the top of the image).
4156	Y int64 `json:"y,omitempty"`
4157
4158	// ForceSendFields is a list of field names (e.g. "X") to
4159	// unconditionally include in API requests. By default, fields with
4160	// empty or default values are omitted from API requests. However, any
4161	// non-pointer, non-interface field appearing in ForceSendFields will be
4162	// sent to the server regardless of whether the field is empty or not.
4163	// This may be used to include empty fields in Patch requests.
4164	ForceSendFields []string `json:"-"`
4165
4166	// NullFields is a list of field names (e.g. "X") to include in API
4167	// requests with the JSON null value. By default, fields with empty
4168	// values are omitted from API requests. However, any field with an
4169	// empty value appearing in NullFields will be sent to the server as
4170	// null. It is an error if a field in this list has a non-empty value.
4171	// This may be used to include null fields in Patch requests.
4172	NullFields []string `json:"-"`
4173}
4174
4175func (s *GoogleCloudDocumentaiV1Vertex) MarshalJSON() ([]byte, error) {
4176	type NoMethod GoogleCloudDocumentaiV1Vertex
4177	raw := NoMethod(*s)
4178	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4179}
4180
4181// GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response
4182// to an batch document processing request. This is returned in the LRO
4183// Operation after the operation is complete.
4184type GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse struct {
4185	// Responses: Responses for each individual document.
4186	Responses []*GoogleCloudDocumentaiV1beta1ProcessDocumentResponse `json:"responses,omitempty"`
4187
4188	// ForceSendFields is a list of field names (e.g. "Responses") to
4189	// unconditionally include in API requests. By default, fields with
4190	// empty or default values are omitted from API requests. However, any
4191	// non-pointer, non-interface field appearing in ForceSendFields will be
4192	// sent to the server regardless of whether the field is empty or not.
4193	// This may be used to include empty fields in Patch requests.
4194	ForceSendFields []string `json:"-"`
4195
4196	// NullFields is a list of field names (e.g. "Responses") to include in
4197	// API requests with the JSON null value. By default, fields with empty
4198	// values are omitted from API requests. However, any field with an
4199	// empty value appearing in NullFields will be sent to the server as
4200	// null. It is an error if a field in this list has a non-empty value.
4201	// This may be used to include null fields in Patch requests.
4202	NullFields []string `json:"-"`
4203}
4204
4205func (s *GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
4206	type NoMethod GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
4207	raw := NoMethod(*s)
4208	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4209}
4210
4211// GoogleCloudDocumentaiV1beta1BoundingPoly: A bounding polygon for the
4212// detected image annotation.
4213type GoogleCloudDocumentaiV1beta1BoundingPoly struct {
4214	// NormalizedVertices: The bounding polygon normalized vertices.
4215	NormalizedVertices []*GoogleCloudDocumentaiV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
4216
4217	// Vertices: The bounding polygon vertices.
4218	Vertices []*GoogleCloudDocumentaiV1beta1Vertex `json:"vertices,omitempty"`
4219
4220	// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
4221	// to unconditionally include in API requests. By default, fields with
4222	// empty or default values are omitted from API requests. However, any
4223	// non-pointer, non-interface field appearing in ForceSendFields will be
4224	// sent to the server regardless of whether the field is empty or not.
4225	// This may be used to include empty fields in Patch requests.
4226	ForceSendFields []string `json:"-"`
4227
4228	// NullFields is a list of field names (e.g. "NormalizedVertices") to
4229	// include in API requests with the JSON null value. By default, fields
4230	// with empty values are omitted from API requests. However, any field
4231	// with an empty value appearing in NullFields will be sent to the
4232	// server as null. It is an error if a field in this list has a
4233	// non-empty value. This may be used to include null fields in Patch
4234	// requests.
4235	NullFields []string `json:"-"`
4236}
4237
4238func (s *GoogleCloudDocumentaiV1beta1BoundingPoly) MarshalJSON() ([]byte, error) {
4239	type NoMethod GoogleCloudDocumentaiV1beta1BoundingPoly
4240	raw := NoMethod(*s)
4241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4242}
4243
4244// GoogleCloudDocumentaiV1beta1Document: Document represents the
4245// canonical document resource in Document Understanding AI. It is an
4246// interchange format that provides insights into documents and allows
4247// for collaboration between users and Document Understanding AI to
4248// iterate and optimize for quality.
4249type GoogleCloudDocumentaiV1beta1Document struct {
4250	// Content: Optional. Inline document content, represented as a stream
4251	// of bytes. Note: As with all `bytes` fields, protobuffers use a pure
4252	// binary representation, whereas JSON representations use base64.
4253	Content string `json:"content,omitempty"`
4254
4255	// Entities: A list of entities detected on Document.text. For document
4256	// shards, entities in this list may cross shard boundaries.
4257	Entities []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"entities,omitempty"`
4258
4259	// EntityRelations: Relationship among Document.entities.
4260	EntityRelations []*GoogleCloudDocumentaiV1beta1DocumentEntityRelation `json:"entityRelations,omitempty"`
4261
4262	// Error: Any error that occurred while processing this document.
4263	Error *GoogleRpcStatus `json:"error,omitempty"`
4264
4265	// MimeType: An IANA published MIME type (also referred to as media
4266	// type). For more information, see
4267	// https://www.iana.org/assignments/media-types/media-types.xhtml.
4268	MimeType string `json:"mimeType,omitempty"`
4269
4270	// Pages: Visual page layout for the Document.
4271	Pages []*GoogleCloudDocumentaiV1beta1DocumentPage `json:"pages,omitempty"`
4272
4273	// Revisions: Revision history of this document.
4274	Revisions []*GoogleCloudDocumentaiV1beta1DocumentRevision `json:"revisions,omitempty"`
4275
4276	// ShardInfo: Information about the sharding if this document is sharded
4277	// part of a larger document. If the document is not sharded, this
4278	// message is not specified.
4279	ShardInfo *GoogleCloudDocumentaiV1beta1DocumentShardInfo `json:"shardInfo,omitempty"`
4280
4281	// Text: Optional. UTF-8 encoded text in reading order from the
4282	// document.
4283	Text string `json:"text,omitempty"`
4284
4285	// TextChanges: A list of text corrections made to [Document.text]. This
4286	// is usually used for annotating corrections to OCR mistakes. Text
4287	// changes for a given revision may not overlap with each other.
4288	TextChanges []*GoogleCloudDocumentaiV1beta1DocumentTextChange `json:"textChanges,omitempty"`
4289
4290	// TextStyles: Styles for the Document.text.
4291	TextStyles []*GoogleCloudDocumentaiV1beta1DocumentStyle `json:"textStyles,omitempty"`
4292
4293	// Uri: Optional. Currently supports Google Cloud Storage URI of the
4294	// form `gs://bucket_name/object_name`. Object versioning is not
4295	// supported. See Google Cloud Storage Request URIs
4296	// (https://cloud.google.com/storage/docs/reference-uris) for more info.
4297	Uri string `json:"uri,omitempty"`
4298
4299	// ForceSendFields is a list of field names (e.g. "Content") to
4300	// unconditionally include in API requests. By default, fields with
4301	// empty or default values are omitted from API requests. However, any
4302	// non-pointer, non-interface field appearing in ForceSendFields will be
4303	// sent to the server regardless of whether the field is empty or not.
4304	// This may be used to include empty fields in Patch requests.
4305	ForceSendFields []string `json:"-"`
4306
4307	// NullFields is a list of field names (e.g. "Content") to include in
4308	// API requests with the JSON null value. By default, fields with empty
4309	// values are omitted from API requests. However, any field with an
4310	// empty value appearing in NullFields will be sent to the server as
4311	// null. It is an error if a field in this list has a non-empty value.
4312	// This may be used to include null fields in Patch requests.
4313	NullFields []string `json:"-"`
4314}
4315
4316func (s *GoogleCloudDocumentaiV1beta1Document) MarshalJSON() ([]byte, error) {
4317	type NoMethod GoogleCloudDocumentaiV1beta1Document
4318	raw := NoMethod(*s)
4319	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4320}
4321
4322// GoogleCloudDocumentaiV1beta1DocumentEntity: An entity that could be a
4323// phrase in the text or a property belongs to the document. It is a
4324// known entity type, such as a person, an organization, or location.
4325type GoogleCloudDocumentaiV1beta1DocumentEntity struct {
4326	// Confidence: Optional. Confidence of detected Schema entity. Range [0,
4327	// 1].
4328	Confidence float64 `json:"confidence,omitempty"`
4329
4330	// Id: Optional. Canonical id. This will be a unique value in the entity
4331	// list for this document.
4332	Id string `json:"id,omitempty"`
4333
4334	// MentionId: Optional. Deprecated. Use `id` field instead.
4335	MentionId string `json:"mentionId,omitempty"`
4336
4337	// MentionText: Optional. Text value in the document e.g. `1600
4338	// Amphitheatre Pkwy`. If the entity is not present in the document,
4339	// this field will be empty.
4340	MentionText string `json:"mentionText,omitempty"`
4341
4342	// NormalizedValue: Optional. Normalized entity value. Absent if the
4343	// extracted value could not be converted or the type (e.g. address) is
4344	// not supported for certain parsers. This field is also only populated
4345	// for certain supported document types.
4346	NormalizedValue *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
4347
4348	// PageAnchor: Optional. Represents the provenance of this entity wrt.
4349	// the location on the page where it was found.
4350	PageAnchor *GoogleCloudDocumentaiV1beta1DocumentPageAnchor `json:"pageAnchor,omitempty"`
4351
4352	// Properties: Optional. Entities can be nested to form a hierarchical
4353	// data structure representing the content in the document.
4354	Properties []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"properties,omitempty"`
4355
4356	// Provenance: Optional. The history of this annotation.
4357	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
4358
4359	// Redacted: Optional. Whether the entity will be redacted for
4360	// de-identification purposes.
4361	Redacted bool `json:"redacted,omitempty"`
4362
4363	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing
4364	// into the Document.text.
4365	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
4366
4367	// Type: Entity type from a schema e.g. `Address`.
4368	Type string `json:"type,omitempty"`
4369
4370	// ForceSendFields is a list of field names (e.g. "Confidence") to
4371	// unconditionally include in API requests. By default, fields with
4372	// empty or default values are omitted from API requests. However, any
4373	// non-pointer, non-interface field appearing in ForceSendFields will be
4374	// sent to the server regardless of whether the field is empty or not.
4375	// This may be used to include empty fields in Patch requests.
4376	ForceSendFields []string `json:"-"`
4377
4378	// NullFields is a list of field names (e.g. "Confidence") to include in
4379	// API requests with the JSON null value. By default, fields with empty
4380	// values are omitted from API requests. However, any field with an
4381	// empty value appearing in NullFields will be sent to the server as
4382	// null. It is an error if a field in this list has a non-empty value.
4383	// This may be used to include null fields in Patch requests.
4384	NullFields []string `json:"-"`
4385}
4386
4387func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) MarshalJSON() ([]byte, error) {
4388	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
4389	raw := NoMethod(*s)
4390	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4391}
4392
4393func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) UnmarshalJSON(data []byte) error {
4394	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
4395	var s1 struct {
4396		Confidence gensupport.JSONFloat64 `json:"confidence"`
4397		*NoMethod
4398	}
4399	s1.NoMethod = (*NoMethod)(s)
4400	if err := json.Unmarshal(data, &s1); err != nil {
4401		return err
4402	}
4403	s.Confidence = float64(s1.Confidence)
4404	return nil
4405}
4406
4407// GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue: Parsed and
4408// normalized entity value.
4409type GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue struct {
4410	// AddressValue: Postal address. See also:
4411	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
4412	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
4413
4414	// BooleanValue: Boolean value. Can be used for entities with binary
4415	// values, or for checkboxes.
4416	BooleanValue bool `json:"booleanValue,omitempty"`
4417
4418	// DateValue: Date value. Includes year, month, day. See also:
4419	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
4420	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
4421
4422	// DatetimeValue: DateTime value. Includes date, time, and timezone. See
4423	// also:
4424	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
4425	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
4426
4427	// FloatValue: Float value.
4428	FloatValue float64 `json:"floatValue,omitempty"`
4429
4430	// IntegerValue: Integer value.
4431	IntegerValue int64 `json:"integerValue,omitempty"`
4432
4433	// MoneyValue: Money value. See also:
4434	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
4435	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
4436
4437	// Text: Optional. An optional field to store a normalized string. For
4438	// some entity types, one of respective 'structured_value' fields may
4439	// also be populated. Also not all the types of 'structured_value' will
4440	// be normalized. For example, some processors may not generate float or
4441	// int normalized text by default. Below are sample formats mapped to
4442	// structured values. - Money/Currency type (`money_value`) is in the
4443	// ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601
4444	// text format. - Datetime type (`datetime_value`) is in the ISO 8601
4445	// text format.
4446	Text string `json:"text,omitempty"`
4447
4448	// ForceSendFields is a list of field names (e.g. "AddressValue") to
4449	// unconditionally include in API requests. By default, fields with
4450	// empty or default values are omitted from API requests. However, any
4451	// non-pointer, non-interface field appearing in ForceSendFields will be
4452	// sent to the server regardless of whether the field is empty or not.
4453	// This may be used to include empty fields in Patch requests.
4454	ForceSendFields []string `json:"-"`
4455
4456	// NullFields is a list of field names (e.g. "AddressValue") to include
4457	// in API requests with the JSON null value. By default, fields with
4458	// empty values are omitted from API requests. However, any field with
4459	// an empty value appearing in NullFields will be sent to the server as
4460	// null. It is an error if a field in this list has a non-empty value.
4461	// This may be used to include null fields in Patch requests.
4462	NullFields []string `json:"-"`
4463}
4464
4465func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
4466	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
4467	raw := NoMethod(*s)
4468	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4469}
4470
4471func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
4472	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
4473	var s1 struct {
4474		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
4475		*NoMethod
4476	}
4477	s1.NoMethod = (*NoMethod)(s)
4478	if err := json.Unmarshal(data, &s1); err != nil {
4479		return err
4480	}
4481	s.FloatValue = float64(s1.FloatValue)
4482	return nil
4483}
4484
4485// GoogleCloudDocumentaiV1beta1DocumentEntityRelation: Relationship
4486// between Entities.
4487type GoogleCloudDocumentaiV1beta1DocumentEntityRelation struct {
4488	// ObjectId: Object entity id.
4489	ObjectId string `json:"objectId,omitempty"`
4490
4491	// Relation: Relationship description.
4492	Relation string `json:"relation,omitempty"`
4493
4494	// SubjectId: Subject entity id.
4495	SubjectId string `json:"subjectId,omitempty"`
4496
4497	// ForceSendFields is a list of field names (e.g. "ObjectId") to
4498	// unconditionally include in API requests. By default, fields with
4499	// empty or default values are omitted from API requests. However, any
4500	// non-pointer, non-interface field appearing in ForceSendFields will be
4501	// sent to the server regardless of whether the field is empty or not.
4502	// This may be used to include empty fields in Patch requests.
4503	ForceSendFields []string `json:"-"`
4504
4505	// NullFields is a list of field names (e.g. "ObjectId") to include in
4506	// API requests with the JSON null value. By default, fields with empty
4507	// values are omitted from API requests. However, any field with an
4508	// empty value appearing in NullFields will be sent to the server as
4509	// null. It is an error if a field in this list has a non-empty value.
4510	// This may be used to include null fields in Patch requests.
4511	NullFields []string `json:"-"`
4512}
4513
4514func (s *GoogleCloudDocumentaiV1beta1DocumentEntityRelation) MarshalJSON() ([]byte, error) {
4515	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityRelation
4516	raw := NoMethod(*s)
4517	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4518}
4519
4520// GoogleCloudDocumentaiV1beta1DocumentPage: A page in a Document.
4521type GoogleCloudDocumentaiV1beta1DocumentPage struct {
4522	// Blocks: A list of visually detected text blocks on the page. A block
4523	// has a set of lines (collected into paragraphs) that have a common
4524	// line-spacing and orientation.
4525	Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"`
4526
4527	// DetectedLanguages: A list of detected languages together with
4528	// confidence.
4529	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4530
4531	// Dimension: Physical dimension of the page.
4532	Dimension *GoogleCloudDocumentaiV1beta1DocumentPageDimension `json:"dimension,omitempty"`
4533
4534	// FormFields: A list of visually detected form fields on the page.
4535	FormFields []*GoogleCloudDocumentaiV1beta1DocumentPageFormField `json:"formFields,omitempty"`
4536
4537	// Image: Rendered image for this page. This image is preprocessed to
4538	// remove any skew, rotation, and distortions such that the annotation
4539	// bounding boxes can be upright and axis-aligned.
4540	Image *GoogleCloudDocumentaiV1beta1DocumentPageImage `json:"image,omitempty"`
4541
4542	// Layout: Layout for the page.
4543	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
4544
4545	// Lines: A list of visually detected text lines on the page. A
4546	// collection of tokens that a human would perceive as a line.
4547	Lines []*GoogleCloudDocumentaiV1beta1DocumentPageLine `json:"lines,omitempty"`
4548
4549	// PageNumber: 1-based index for current Page in a parent Document.
4550	// Useful when a page is taken out of a Document for individual
4551	// processing.
4552	PageNumber int64 `json:"pageNumber,omitempty"`
4553
4554	// Paragraphs: A list of visually detected text paragraphs on the page.
4555	// A collection of lines that a human would perceive as a paragraph.
4556	Paragraphs []*GoogleCloudDocumentaiV1beta1DocumentPageParagraph `json:"paragraphs,omitempty"`
4557
4558	// Provenance: The history of this page.
4559	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
4560
4561	// Tables: A list of visually detected tables on the page.
4562	Tables []*GoogleCloudDocumentaiV1beta1DocumentPageTable `json:"tables,omitempty"`
4563
4564	// Tokens: A list of visually detected tokens on the page.
4565	Tokens []*GoogleCloudDocumentaiV1beta1DocumentPageToken `json:"tokens,omitempty"`
4566
4567	// Transforms: Transformation matrices that were applied to the original
4568	// document image to produce Page.image.
4569	Transforms []*GoogleCloudDocumentaiV1beta1DocumentPageMatrix `json:"transforms,omitempty"`
4570
4571	// VisualElements: A list of detected non-text visual elements e.g.
4572	// checkbox, signature etc. on the page.
4573	VisualElements []*GoogleCloudDocumentaiV1beta1DocumentPageVisualElement `json:"visualElements,omitempty"`
4574
4575	// ForceSendFields is a list of field names (e.g. "Blocks") to
4576	// unconditionally include in API requests. By default, fields with
4577	// empty or default values are omitted from API requests. However, any
4578	// non-pointer, non-interface field appearing in ForceSendFields will be
4579	// sent to the server regardless of whether the field is empty or not.
4580	// This may be used to include empty fields in Patch requests.
4581	ForceSendFields []string `json:"-"`
4582
4583	// NullFields is a list of field names (e.g. "Blocks") to include in API
4584	// requests with the JSON null value. By default, fields with empty
4585	// values are omitted from API requests. However, any field with an
4586	// empty value appearing in NullFields will be sent to the server as
4587	// null. It is an error if a field in this list has a non-empty value.
4588	// This may be used to include null fields in Patch requests.
4589	NullFields []string `json:"-"`
4590}
4591
4592func (s *GoogleCloudDocumentaiV1beta1DocumentPage) MarshalJSON() ([]byte, error) {
4593	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPage
4594	raw := NoMethod(*s)
4595	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4596}
4597
4598// GoogleCloudDocumentaiV1beta1DocumentPageAnchor: Referencing the
4599// visual context of the entity in the Document.pages. Page anchors can
4600// be cross-page, consist of multiple bounding polygons and optionally
4601// reference specific layout element types.
4602type GoogleCloudDocumentaiV1beta1DocumentPageAnchor struct {
4603	// PageRefs: One or more references to visual page elements
4604	PageRefs []*GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
4605
4606	// ForceSendFields is a list of field names (e.g. "PageRefs") to
4607	// unconditionally include in API requests. By default, fields with
4608	// empty or default values are omitted from API requests. However, any
4609	// non-pointer, non-interface field appearing in ForceSendFields will be
4610	// sent to the server regardless of whether the field is empty or not.
4611	// This may be used to include empty fields in Patch requests.
4612	ForceSendFields []string `json:"-"`
4613
4614	// NullFields is a list of field names (e.g. "PageRefs") to include in
4615	// API requests with the JSON null value. By default, fields with empty
4616	// values are omitted from API requests. However, any field with an
4617	// empty value appearing in NullFields will be sent to the server as
4618	// null. It is an error if a field in this list has a non-empty value.
4619	// This may be used to include null fields in Patch requests.
4620	NullFields []string `json:"-"`
4621}
4622
4623func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, error) {
4624	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchor
4625	raw := NoMethod(*s)
4626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4627}
4628
4629// GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef: Represents a
4630// weak reference to a page element within a document.
4631type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct {
4632	// BoundingPoly: Optional. Identifies the bounding polygon of a layout
4633	// element on the page.
4634	BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
4635
4636	// Confidence: Optional. Confidence of detected page element, if
4637	// applicable. Range [0, 1].
4638	Confidence float64 `json:"confidence,omitempty"`
4639
4640	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
4641	LayoutId string `json:"layoutId,omitempty"`
4642
4643	// LayoutType: Optional. The type of the layout element that is being
4644	// referenced if any.
4645	//
4646	// Possible values:
4647	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
4648	//   "BLOCK" - References a Page.blocks element.
4649	//   "PARAGRAPH" - References a Page.paragraphs element.
4650	//   "LINE" - References a Page.lines element.
4651	//   "TOKEN" - References a Page.tokens element.
4652	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
4653	//   "TABLE" - Refrrences a Page.tables element.
4654	//   "FORM_FIELD" - References a Page.form_fields element.
4655	LayoutType string `json:"layoutType,omitempty"`
4656
4657	// Page: Required. Index into the Document.pages element, for example
4658	// using Document.pages to locate the related page element. This field
4659	// is skipped when its value is the default 0. See
4660	// https://developers.google.com/protocol-buffers/docs/proto3#json.
4661	Page int64 `json:"page,omitempty,string"`
4662
4663	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
4664	// unconditionally include in API requests. By default, fields with
4665	// empty or default values are omitted from API requests. However, any
4666	// non-pointer, non-interface field appearing in ForceSendFields will be
4667	// sent to the server regardless of whether the field is empty or not.
4668	// This may be used to include empty fields in Patch requests.
4669	ForceSendFields []string `json:"-"`
4670
4671	// NullFields is a list of field names (e.g. "BoundingPoly") to include
4672	// in API requests with the JSON null value. By default, fields with
4673	// empty values are omitted from API requests. However, any field with
4674	// an empty value appearing in NullFields will be sent to the server as
4675	// null. It is an error if a field in this list has a non-empty value.
4676	// This may be used to include null fields in Patch requests.
4677	NullFields []string `json:"-"`
4678}
4679
4680func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
4681	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
4682	raw := NoMethod(*s)
4683	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4684}
4685
4686func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
4687	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
4688	var s1 struct {
4689		Confidence gensupport.JSONFloat64 `json:"confidence"`
4690		*NoMethod
4691	}
4692	s1.NoMethod = (*NoMethod)(s)
4693	if err := json.Unmarshal(data, &s1); err != nil {
4694		return err
4695	}
4696	s.Confidence = float64(s1.Confidence)
4697	return nil
4698}
4699
4700// GoogleCloudDocumentaiV1beta1DocumentPageBlock: A block has a set of
4701// lines (collected into paragraphs) that have a common line-spacing and
4702// orientation.
4703type GoogleCloudDocumentaiV1beta1DocumentPageBlock struct {
4704	// DetectedLanguages: A list of detected languages together with
4705	// confidence.
4706	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4707
4708	// Layout: Layout for Block.
4709	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
4710
4711	// Provenance: The history of this annotation.
4712	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
4713
4714	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
4715	// to unconditionally include in API requests. By default, fields with
4716	// empty or default values are omitted from API requests. However, any
4717	// non-pointer, non-interface field appearing in ForceSendFields will be
4718	// sent to the server regardless of whether the field is empty or not.
4719	// This may be used to include empty fields in Patch requests.
4720	ForceSendFields []string `json:"-"`
4721
4722	// NullFields is a list of field names (e.g. "DetectedLanguages") to
4723	// include in API requests with the JSON null value. By default, fields
4724	// with empty values are omitted from API requests. However, any field
4725	// with an empty value appearing in NullFields will be sent to the
4726	// server as null. It is an error if a field in this list has a
4727	// non-empty value. This may be used to include null fields in Patch
4728	// requests.
4729	NullFields []string `json:"-"`
4730}
4731
4732func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, error) {
4733	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageBlock
4734	raw := NoMethod(*s)
4735	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4736}
4737
4738// GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected
4739// language for a structural component.
4740type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct {
4741	// Confidence: Confidence of detected language. Range [0, 1].
4742	Confidence float64 `json:"confidence,omitempty"`
4743
4744	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn".
4745	// For more information, see
4746	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4747	LanguageCode string `json:"languageCode,omitempty"`
4748
4749	// ForceSendFields is a list of field names (e.g. "Confidence") to
4750	// unconditionally include in API requests. By default, fields with
4751	// empty or default values are omitted from API requests. However, any
4752	// non-pointer, non-interface field appearing in ForceSendFields will be
4753	// sent to the server regardless of whether the field is empty or not.
4754	// This may be used to include empty fields in Patch requests.
4755	ForceSendFields []string `json:"-"`
4756
4757	// NullFields is a list of field names (e.g. "Confidence") to include in
4758	// API requests with the JSON null value. By default, fields with empty
4759	// values are omitted from API requests. However, any field with an
4760	// empty value appearing in NullFields will be sent to the server as
4761	// null. It is an error if a field in this list has a non-empty value.
4762	// This may be used to include null fields in Patch requests.
4763	NullFields []string `json:"-"`
4764}
4765
4766func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
4767	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
4768	raw := NoMethod(*s)
4769	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4770}
4771
4772func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
4773	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
4774	var s1 struct {
4775		Confidence gensupport.JSONFloat64 `json:"confidence"`
4776		*NoMethod
4777	}
4778	s1.NoMethod = (*NoMethod)(s)
4779	if err := json.Unmarshal(data, &s1); err != nil {
4780		return err
4781	}
4782	s.Confidence = float64(s1.Confidence)
4783	return nil
4784}
4785
4786// GoogleCloudDocumentaiV1beta1DocumentPageDimension: Dimension for the
4787// page.
4788type GoogleCloudDocumentaiV1beta1DocumentPageDimension struct {
4789	// Height: Page height.
4790	Height float64 `json:"height,omitempty"`
4791
4792	// Unit: Dimension unit.
4793	Unit string `json:"unit,omitempty"`
4794
4795	// Width: Page width.
4796	Width float64 `json:"width,omitempty"`
4797
4798	// ForceSendFields is a list of field names (e.g. "Height") to
4799	// unconditionally include in API requests. By default, fields with
4800	// empty or default values are omitted from API requests. However, any
4801	// non-pointer, non-interface field appearing in ForceSendFields will be
4802	// sent to the server regardless of whether the field is empty or not.
4803	// This may be used to include empty fields in Patch requests.
4804	ForceSendFields []string `json:"-"`
4805
4806	// NullFields is a list of field names (e.g. "Height") to include in API
4807	// requests with the JSON null value. By default, fields with empty
4808	// values are omitted from API requests. However, any field with an
4809	// empty value appearing in NullFields will be sent to the server as
4810	// null. It is an error if a field in this list has a non-empty value.
4811	// This may be used to include null fields in Patch requests.
4812	NullFields []string `json:"-"`
4813}
4814
4815func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) MarshalJSON() ([]byte, error) {
4816	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
4817	raw := NoMethod(*s)
4818	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4819}
4820
4821func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) UnmarshalJSON(data []byte) error {
4822	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
4823	var s1 struct {
4824		Height gensupport.JSONFloat64 `json:"height"`
4825		Width  gensupport.JSONFloat64 `json:"width"`
4826		*NoMethod
4827	}
4828	s1.NoMethod = (*NoMethod)(s)
4829	if err := json.Unmarshal(data, &s1); err != nil {
4830		return err
4831	}
4832	s.Height = float64(s1.Height)
4833	s.Width = float64(s1.Width)
4834	return nil
4835}
4836
4837// GoogleCloudDocumentaiV1beta1DocumentPageFormField: A form field
4838// detected on the page.
4839type GoogleCloudDocumentaiV1beta1DocumentPageFormField struct {
4840	// CorrectedKeyText: Created for Labeling UI to export key text. If
4841	// corrections were made to the text identified by the
4842	// `field_name.text_anchor`, this field will contain the correction.
4843	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
4844
4845	// CorrectedValueText: Created for Labeling UI to export value text. If
4846	// corrections were made to the text identified by the
4847	// `field_value.text_anchor`, this field will contain the correction.
4848	CorrectedValueText string `json:"correctedValueText,omitempty"`
4849
4850	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`,
4851	// `Grand total`, `Phone number`, etc.
4852	FieldName *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldName,omitempty"`
4853
4854	// FieldValue: Layout for the FormField value.
4855	FieldValue *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldValue,omitempty"`
4856
4857	// NameDetectedLanguages: A list of detected languages for name together
4858	// with confidence.
4859	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
4860
4861	// Provenance: The history of this annotation.
4862	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
4863
4864	// ValueDetectedLanguages: A list of detected languages for value
4865	// together with confidence.
4866	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
4867
4868	// ValueType: If the value is non-textual, this field represents the
4869	// type. Current valid values are: - blank (this indicates the
4870	// field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
4871	ValueType string `json:"valueType,omitempty"`
4872
4873	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
4874	// unconditionally include in API requests. By default, fields with
4875	// empty or default values are omitted from API requests. However, any
4876	// non-pointer, non-interface field appearing in ForceSendFields will be
4877	// sent to the server regardless of whether the field is empty or not.
4878	// This may be used to include empty fields in Patch requests.
4879	ForceSendFields []string `json:"-"`
4880
4881	// NullFields is a list of field names (e.g. "CorrectedKeyText") to
4882	// include in API requests with the JSON null value. By default, fields
4883	// with empty values are omitted from API requests. However, any field
4884	// with an empty value appearing in NullFields will be sent to the
4885	// server as null. It is an error if a field in this list has a
4886	// non-empty value. This may be used to include null fields in Patch
4887	// requests.
4888	NullFields []string `json:"-"`
4889}
4890
4891func (s *GoogleCloudDocumentaiV1beta1DocumentPageFormField) MarshalJSON() ([]byte, error) {
4892	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageFormField
4893	raw := NoMethod(*s)
4894	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4895}
4896
4897// GoogleCloudDocumentaiV1beta1DocumentPageImage: Rendered image
4898// contents for this page.
4899type GoogleCloudDocumentaiV1beta1DocumentPageImage struct {
4900	// Content: Raw byte content of the image.
4901	Content string `json:"content,omitempty"`
4902
4903	// Height: Height of the image in pixels.
4904	Height int64 `json:"height,omitempty"`
4905
4906	// MimeType: Encoding mime type for the image.
4907	MimeType string `json:"mimeType,omitempty"`
4908
4909	// Width: Width of the image in pixels.
4910	Width int64 `json:"width,omitempty"`
4911
4912	// ForceSendFields is a list of field names (e.g. "Content") to
4913	// unconditionally include in API requests. By default, fields with
4914	// empty or default values are omitted from API requests. However, any
4915	// non-pointer, non-interface field appearing in ForceSendFields will be
4916	// sent to the server regardless of whether the field is empty or not.
4917	// This may be used to include empty fields in Patch requests.
4918	ForceSendFields []string `json:"-"`
4919
4920	// NullFields is a list of field names (e.g. "Content") to include in
4921	// API requests with the JSON null value. By default, fields with empty
4922	// values are omitted from API requests. However, any field with an
4923	// empty value appearing in NullFields will be sent to the server as
4924	// null. It is an error if a field in this list has a non-empty value.
4925	// This may be used to include null fields in Patch requests.
4926	NullFields []string `json:"-"`
4927}
4928
4929func (s *GoogleCloudDocumentaiV1beta1DocumentPageImage) MarshalJSON() ([]byte, error) {
4930	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImage
4931	raw := NoMethod(*s)
4932	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4933}
4934
4935// GoogleCloudDocumentaiV1beta1DocumentPageLayout: Visual element
4936// describing a layout unit on a page.
4937type GoogleCloudDocumentaiV1beta1DocumentPageLayout struct {
4938	// BoundingPoly: The bounding polygon for the Layout.
4939	BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
4940
4941	// Confidence: Confidence of the current Layout within context of the
4942	// object this layout is for. e.g. confidence can be for a single token,
4943	// a table, a visual element, etc. depending on context. Range [0, 1].
4944	Confidence float64 `json:"confidence,omitempty"`
4945
4946	// Orientation: Detected orientation for the Layout.
4947	//
4948	// Possible values:
4949	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
4950	//   "PAGE_UP" - Orientation is aligned with page up.
4951	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the
4952	// head 90 degrees clockwise from upright to read.
4953	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head
4954	// 180 degrees from upright to read.
4955	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head
4956	// 90 degrees counterclockwise from upright to read.
4957	Orientation string `json:"orientation,omitempty"`
4958
4959	// TextAnchor: Text anchor indexing into the Document.text.
4960	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
4961
4962	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
4963	// unconditionally include in API requests. By default, fields with
4964	// empty or default values are omitted from API requests. However, any
4965	// non-pointer, non-interface field appearing in ForceSendFields will be
4966	// sent to the server regardless of whether the field is empty or not.
4967	// This may be used to include empty fields in Patch requests.
4968	ForceSendFields []string `json:"-"`
4969
4970	// NullFields is a list of field names (e.g. "BoundingPoly") to include
4971	// in API requests with the JSON null value. By default, fields with
4972	// empty values are omitted from API requests. However, any field with
4973	// an empty value appearing in NullFields will be sent to the server as
4974	// null. It is an error if a field in this list has a non-empty value.
4975	// This may be used to include null fields in Patch requests.
4976	NullFields []string `json:"-"`
4977}
4978
4979func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) MarshalJSON() ([]byte, error) {
4980	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
4981	raw := NoMethod(*s)
4982	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4983}
4984
4985func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) UnmarshalJSON(data []byte) error {
4986	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
4987	var s1 struct {
4988		Confidence gensupport.JSONFloat64 `json:"confidence"`
4989		*NoMethod
4990	}
4991	s1.NoMethod = (*NoMethod)(s)
4992	if err := json.Unmarshal(data, &s1); err != nil {
4993		return err
4994	}
4995	s.Confidence = float64(s1.Confidence)
4996	return nil
4997}
4998
4999// GoogleCloudDocumentaiV1beta1DocumentPageLine: A collection of tokens
5000// that a human would perceive as a line. Does not cross column
5001// boundaries, can be horizontal, vertical, etc.
5002type GoogleCloudDocumentaiV1beta1DocumentPageLine struct {
5003	// DetectedLanguages: A list of detected languages together with
5004	// confidence.
5005	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5006
5007	// Layout: Layout for Line.
5008	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
5009
5010	// Provenance: The history of this annotation.
5011	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
5012
5013	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
5014	// to unconditionally include in API requests. By default, fields with
5015	// empty or default values are omitted from API requests. However, any
5016	// non-pointer, non-interface field appearing in ForceSendFields will be
5017	// sent to the server regardless of whether the field is empty or not.
5018	// This may be used to include empty fields in Patch requests.
5019	ForceSendFields []string `json:"-"`
5020
5021	// NullFields is a list of field names (e.g. "DetectedLanguages") to
5022	// include in API requests with the JSON null value. By default, fields
5023	// with empty values are omitted from API requests. However, any field
5024	// with an empty value appearing in NullFields will be sent to the
5025	// server as null. It is an error if a field in this list has a
5026	// non-empty value. This may be used to include null fields in Patch
5027	// requests.
5028	NullFields []string `json:"-"`
5029}
5030
5031func (s *GoogleCloudDocumentaiV1beta1DocumentPageLine) MarshalJSON() ([]byte, error) {
5032	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLine
5033	raw := NoMethod(*s)
5034	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5035}
5036
5037// GoogleCloudDocumentaiV1beta1DocumentPageMatrix: Representation for
5038// transformation matrix, intended to be compatible and used with OpenCV
5039// format for image manipulation.
5040type GoogleCloudDocumentaiV1beta1DocumentPageMatrix struct {
5041	// Cols: Number of columns in the matrix.
5042	Cols int64 `json:"cols,omitempty"`
5043
5044	// Data: The matrix data.
5045	Data string `json:"data,omitempty"`
5046
5047	// Rows: Number of rows in the matrix.
5048	Rows int64 `json:"rows,omitempty"`
5049
5050	// Type: This encodes information about what data type the matrix uses.
5051	// For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
5052	// of OpenCV primitive data types, please refer to
5053	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
5054	Type int64 `json:"type,omitempty"`
5055
5056	// ForceSendFields is a list of field names (e.g. "Cols") to
5057	// unconditionally include in API requests. By default, fields with
5058	// empty or default values are omitted from API requests. However, any
5059	// non-pointer, non-interface field appearing in ForceSendFields will be
5060	// sent to the server regardless of whether the field is empty or not.
5061	// This may be used to include empty fields in Patch requests.
5062	ForceSendFields []string `json:"-"`
5063
5064	// NullFields is a list of field names (e.g. "Cols") to include in API
5065	// requests with the JSON null value. By default, fields with empty
5066	// values are omitted from API requests. However, any field with an
5067	// empty value appearing in NullFields will be sent to the server as
5068	// null. It is an error if a field in this list has a non-empty value.
5069	// This may be used to include null fields in Patch requests.
5070	NullFields []string `json:"-"`
5071}
5072
5073func (s *GoogleCloudDocumentaiV1beta1DocumentPageMatrix) MarshalJSON() ([]byte, error) {
5074	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageMatrix
5075	raw := NoMethod(*s)
5076	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5077}
5078
5079// GoogleCloudDocumentaiV1beta1DocumentPageParagraph: A collection of
5080// lines that a human would perceive as a paragraph.
5081type GoogleCloudDocumentaiV1beta1DocumentPageParagraph struct {
5082	// DetectedLanguages: A list of detected languages together with
5083	// confidence.
5084	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5085
5086	// Layout: Layout for Paragraph.
5087	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
5088
5089	// Provenance: The history of this annotation.
5090	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
5091
5092	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
5093	// to unconditionally include in API requests. By default, fields with
5094	// empty or default values are omitted from API requests. However, any
5095	// non-pointer, non-interface field appearing in ForceSendFields will be
5096	// sent to the server regardless of whether the field is empty or not.
5097	// This may be used to include empty fields in Patch requests.
5098	ForceSendFields []string `json:"-"`
5099
5100	// NullFields is a list of field names (e.g. "DetectedLanguages") to
5101	// include in API requests with the JSON null value. By default, fields
5102	// with empty values are omitted from API requests. However, any field
5103	// with an empty value appearing in NullFields will be sent to the
5104	// server as null. It is an error if a field in this list has a
5105	// non-empty value. This may be used to include null fields in Patch
5106	// requests.
5107	NullFields []string `json:"-"`
5108}
5109
5110func (s *GoogleCloudDocumentaiV1beta1DocumentPageParagraph) MarshalJSON() ([]byte, error) {
5111	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageParagraph
5112	raw := NoMethod(*s)
5113	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5114}
5115
5116// GoogleCloudDocumentaiV1beta1DocumentPageTable: A table representation
5117// similar to HTML table structure.
5118type GoogleCloudDocumentaiV1beta1DocumentPageTable struct {
5119	// BodyRows: Body rows of the table.
5120	BodyRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"bodyRows,omitempty"`
5121
5122	// DetectedLanguages: A list of detected languages together with
5123	// confidence.
5124	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5125
5126	// HeaderRows: Header rows of the table.
5127	HeaderRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"headerRows,omitempty"`
5128
5129	// Layout: Layout for Table.
5130	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
5131
5132	// ForceSendFields is a list of field names (e.g. "BodyRows") to
5133	// unconditionally include in API requests. By default, fields with
5134	// empty or default values are omitted from API requests. However, any
5135	// non-pointer, non-interface field appearing in ForceSendFields will be
5136	// sent to the server regardless of whether the field is empty or not.
5137	// This may be used to include empty fields in Patch requests.
5138	ForceSendFields []string `json:"-"`
5139
5140	// NullFields is a list of field names (e.g. "BodyRows") to include in
5141	// API requests with the JSON null value. By default, fields with empty
5142	// values are omitted from API requests. However, any field with an
5143	// empty value appearing in NullFields will be sent to the server as
5144	// null. It is an error if a field in this list has a non-empty value.
5145	// This may be used to include null fields in Patch requests.
5146	NullFields []string `json:"-"`
5147}
5148
5149func (s *GoogleCloudDocumentaiV1beta1DocumentPageTable) MarshalJSON() ([]byte, error) {
5150	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTable
5151	raw := NoMethod(*s)
5152	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5153}
5154
5155// GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell: A cell
5156// representation inside the table.
5157type GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell struct {
5158	// ColSpan: How many columns this cell spans.
5159	ColSpan int64 `json:"colSpan,omitempty"`
5160
5161	// DetectedLanguages: A list of detected languages together with
5162	// confidence.
5163	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5164
5165	// Layout: Layout for TableCell.
5166	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
5167
5168	// RowSpan: How many rows this cell spans.
5169	RowSpan int64 `json:"rowSpan,omitempty"`
5170
5171	// ForceSendFields is a list of field names (e.g. "ColSpan") to
5172	// unconditionally include in API requests. By default, fields with
5173	// empty or default values are omitted from API requests. However, any
5174	// non-pointer, non-interface field appearing in ForceSendFields will be
5175	// sent to the server regardless of whether the field is empty or not.
5176	// This may be used to include empty fields in Patch requests.
5177	ForceSendFields []string `json:"-"`
5178
5179	// NullFields is a list of field names (e.g. "ColSpan") to include in
5180	// API requests with the JSON null value. By default, fields with empty
5181	// values are omitted from API requests. However, any field with an
5182	// empty value appearing in NullFields will be sent to the server as
5183	// null. It is an error if a field in this list has a non-empty value.
5184	// This may be used to include null fields in Patch requests.
5185	NullFields []string `json:"-"`
5186}
5187
5188func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
5189	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
5190	raw := NoMethod(*s)
5191	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5192}
5193
5194// GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow: A row of table
5195// cells.
5196type GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow struct {
5197	// Cells: Cells that make up this row.
5198	Cells []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell `json:"cells,omitempty"`
5199
5200	// ForceSendFields is a list of field names (e.g. "Cells") to
5201	// unconditionally include in API requests. By default, fields with
5202	// empty or default values are omitted from API requests. However, any
5203	// non-pointer, non-interface field appearing in ForceSendFields will be
5204	// sent to the server regardless of whether the field is empty or not.
5205	// This may be used to include empty fields in Patch requests.
5206	ForceSendFields []string `json:"-"`
5207
5208	// NullFields is a list of field names (e.g. "Cells") to include in API
5209	// requests with the JSON null value. By default, fields with empty
5210	// values are omitted from API requests. However, any field with an
5211	// empty value appearing in NullFields will be sent to the server as
5212	// null. It is an error if a field in this list has a non-empty value.
5213	// This may be used to include null fields in Patch requests.
5214	NullFields []string `json:"-"`
5215}
5216
5217func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
5218	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
5219	raw := NoMethod(*s)
5220	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5221}
5222
5223// GoogleCloudDocumentaiV1beta1DocumentPageToken: A detected token.
5224type GoogleCloudDocumentaiV1beta1DocumentPageToken struct {
5225	// DetectedBreak: Detected break at the end of a Token.
5226	DetectedBreak *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
5227
5228	// DetectedLanguages: A list of detected languages together with
5229	// confidence.
5230	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5231
5232	// Layout: Layout for Token.
5233	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
5234
5235	// Provenance: The history of this annotation.
5236	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
5237
5238	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
5239	// unconditionally include in API requests. By default, fields with
5240	// empty or default values are omitted from API requests. However, any
5241	// non-pointer, non-interface field appearing in ForceSendFields will be
5242	// sent to the server regardless of whether the field is empty or not.
5243	// This may be used to include empty fields in Patch requests.
5244	ForceSendFields []string `json:"-"`
5245
5246	// NullFields is a list of field names (e.g. "DetectedBreak") to include
5247	// in API requests with the JSON null value. By default, fields with
5248	// empty values are omitted from API requests. However, any field with
5249	// an empty value appearing in NullFields will be sent to the server as
5250	// null. It is an error if a field in this list has a non-empty value.
5251	// This may be used to include null fields in Patch requests.
5252	NullFields []string `json:"-"`
5253}
5254
5255func (s *GoogleCloudDocumentaiV1beta1DocumentPageToken) MarshalJSON() ([]byte, error) {
5256	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageToken
5257	raw := NoMethod(*s)
5258	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5259}
5260
5261// GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak: Detected
5262// break at the end of a Token.
5263type GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak struct {
5264	// Type: Detected break type.
5265	//
5266	// Possible values:
5267	//   "TYPE_UNSPECIFIED" - Unspecified break type.
5268	//   "SPACE" - A single whitespace.
5269	//   "WIDE_SPACE" - A wider whitespace.
5270	//   "HYPHEN" - A hyphen that indicates that a token has been split
5271	// across lines.
5272	Type string `json:"type,omitempty"`
5273
5274	// ForceSendFields is a list of field names (e.g. "Type") to
5275	// unconditionally include in API requests. By default, fields with
5276	// empty or default values are omitted from API requests. However, any
5277	// non-pointer, non-interface field appearing in ForceSendFields will be
5278	// sent to the server regardless of whether the field is empty or not.
5279	// This may be used to include empty fields in Patch requests.
5280	ForceSendFields []string `json:"-"`
5281
5282	// NullFields is a list of field names (e.g. "Type") to include in API
5283	// requests with the JSON null value. By default, fields with empty
5284	// values are omitted from API requests. However, any field with an
5285	// empty value appearing in NullFields will be sent to the server as
5286	// null. It is an error if a field in this list has a non-empty value.
5287	// This may be used to include null fields in Patch requests.
5288	NullFields []string `json:"-"`
5289}
5290
5291func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
5292	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
5293	raw := NoMethod(*s)
5294	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5295}
5296
5297// GoogleCloudDocumentaiV1beta1DocumentPageVisualElement: Detected
5298// non-text visual elements e.g. checkbox, signature etc. on the page.
5299type GoogleCloudDocumentaiV1beta1DocumentPageVisualElement struct {
5300	// DetectedLanguages: A list of detected languages together with
5301	// confidence.
5302	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
5303
5304	// Layout: Layout for VisualElement.
5305	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
5306
5307	// Type: Type of the VisualElement.
5308	Type string `json:"type,omitempty"`
5309
5310	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
5311	// to unconditionally include in API requests. By default, fields with
5312	// empty or default values are omitted from API requests. However, any
5313	// non-pointer, non-interface field appearing in ForceSendFields will be
5314	// sent to the server regardless of whether the field is empty or not.
5315	// This may be used to include empty fields in Patch requests.
5316	ForceSendFields []string `json:"-"`
5317
5318	// NullFields is a list of field names (e.g. "DetectedLanguages") to
5319	// include in API requests with the JSON null value. By default, fields
5320	// with empty values are omitted from API requests. However, any field
5321	// with an empty value appearing in NullFields will be sent to the
5322	// server as null. It is an error if a field in this list has a
5323	// non-empty value. This may be used to include null fields in Patch
5324	// requests.
5325	NullFields []string `json:"-"`
5326}
5327
5328func (s *GoogleCloudDocumentaiV1beta1DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
5329	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
5330	raw := NoMethod(*s)
5331	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5332}
5333
5334// GoogleCloudDocumentaiV1beta1DocumentProvenance: Structure to identify
5335// provenance relationships between annotations in different revisions.
5336type GoogleCloudDocumentaiV1beta1DocumentProvenance struct {
5337	// Id: The Id of this operation. Needs to be unique within the scope of
5338	// the revision.
5339	Id int64 `json:"id,omitempty"`
5340
5341	// Parents: References to the original elements that are replaced.
5342	Parents []*GoogleCloudDocumentaiV1beta1DocumentProvenanceParent `json:"parents,omitempty"`
5343
5344	// Revision: The index of the revision that produced this element.
5345	Revision int64 `json:"revision,omitempty"`
5346
5347	// Type: The type of provenance operation.
5348	//
5349	// Possible values:
5350	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified.
5351	//   "ADD" - Add an element. Implicit if no `parents` are set for the
5352	// provenance.
5353	//   "REMOVE" - The element is removed. No `parents` should be set.
5354	//   "REPLACE" - Explicitly replaces the element(s) identified by
5355	// `parents`.
5356	//   "EVAL_REQUESTED" - Element is requested for human review.
5357	//   "EVAL_APPROVED" - Element is reviewed and approved at human review,
5358	// confidence will be set to 1.0.
5359	//   "EVAL_SKIPPED" - Element is skipped in the validation process.
5360	Type string `json:"type,omitempty"`
5361
5362	// ForceSendFields is a list of field names (e.g. "Id") to
5363	// unconditionally include in API requests. By default, fields with
5364	// empty or default values are omitted from API requests. However, any
5365	// non-pointer, non-interface field appearing in ForceSendFields will be
5366	// sent to the server regardless of whether the field is empty or not.
5367	// This may be used to include empty fields in Patch requests.
5368	ForceSendFields []string `json:"-"`
5369
5370	// NullFields is a list of field names (e.g. "Id") to include in API
5371	// requests with the JSON null value. By default, fields with empty
5372	// values are omitted from API requests. However, any field with an
5373	// empty value appearing in NullFields will be sent to the server as
5374	// null. It is an error if a field in this list has a non-empty value.
5375	// This may be used to include null fields in Patch requests.
5376	NullFields []string `json:"-"`
5377}
5378
5379func (s *GoogleCloudDocumentaiV1beta1DocumentProvenance) MarshalJSON() ([]byte, error) {
5380	type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenance
5381	raw := NoMethod(*s)
5382	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5383}
5384
5385// GoogleCloudDocumentaiV1beta1DocumentProvenanceParent: Structure for
5386// referencing parent provenances. When an element replaces one of more
5387// other elements parent references identify the elements that are
5388// replaced.
5389type GoogleCloudDocumentaiV1beta1DocumentProvenanceParent struct {
5390	// Id: The id of the parent provenance.
5391	Id int64 `json:"id,omitempty"`
5392
5393	// Index: The index of the parent item in the corresponding item list
5394	// (eg. list of entities, properties within entities, etc.) on parent
5395	// revision.
5396	Index int64 `json:"index,omitempty"`
5397
5398	// Revision: The index of the [Document.revisions] identifying the
5399	// parent revision.
5400	Revision int64 `json:"revision,omitempty"`
5401
5402	// ForceSendFields is a list of field names (e.g. "Id") to
5403	// unconditionally include in API requests. By default, fields with
5404	// empty or default values are omitted from API requests. However, any
5405	// non-pointer, non-interface field appearing in ForceSendFields will be
5406	// sent to the server regardless of whether the field is empty or not.
5407	// This may be used to include empty fields in Patch requests.
5408	ForceSendFields []string `json:"-"`
5409
5410	// NullFields is a list of field names (e.g. "Id") to include in API
5411	// requests with the JSON null value. By default, fields with empty
5412	// values are omitted from API requests. However, any field with an
5413	// empty value appearing in NullFields will be sent to the server as
5414	// null. It is an error if a field in this list has a non-empty value.
5415	// This may be used to include null fields in Patch requests.
5416	NullFields []string `json:"-"`
5417}
5418
5419func (s *GoogleCloudDocumentaiV1beta1DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
5420	type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
5421	raw := NoMethod(*s)
5422	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5423}
5424
5425// GoogleCloudDocumentaiV1beta1DocumentRevision: Contains past or
5426// forward revisions of this document.
5427type GoogleCloudDocumentaiV1beta1DocumentRevision struct {
5428	// Agent: If the change was made by a person specify the name or id of
5429	// that person.
5430	Agent string `json:"agent,omitempty"`
5431
5432	// CreateTime: The time that the revision was created.
5433	CreateTime string `json:"createTime,omitempty"`
5434
5435	// HumanReview: Human Review information of this revision.
5436	HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"`
5437
5438	// Id: Id of the revision. Unique within the context of the document.
5439	Id string `json:"id,omitempty"`
5440
5441	// Parent: The revisions that this revision is based on. This can
5442	// include one or more parent (when documents are merged.) This field
5443	// represents the index into the `revisions` field.
5444	Parent []int64 `json:"parent,omitempty"`
5445
5446	// Processor: If the annotation was made by processor identify the
5447	// processor by its resource name.
5448	Processor string `json:"processor,omitempty"`
5449
5450	// ForceSendFields is a list of field names (e.g. "Agent") to
5451	// unconditionally include in API requests. By default, fields with
5452	// empty or default values are omitted from API requests. However, any
5453	// non-pointer, non-interface field appearing in ForceSendFields will be
5454	// sent to the server regardless of whether the field is empty or not.
5455	// This may be used to include empty fields in Patch requests.
5456	ForceSendFields []string `json:"-"`
5457
5458	// NullFields is a list of field names (e.g. "Agent") to include in API
5459	// requests with the JSON null value. By default, fields with empty
5460	// values are omitted from API requests. However, any field with an
5461	// empty value appearing in NullFields will be sent to the server as
5462	// null. It is an error if a field in this list has a non-empty value.
5463	// This may be used to include null fields in Patch requests.
5464	NullFields []string `json:"-"`
5465}
5466
5467func (s *GoogleCloudDocumentaiV1beta1DocumentRevision) MarshalJSON() ([]byte, error) {
5468	type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevision
5469	raw := NoMethod(*s)
5470	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5471}
5472
5473// GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview: Human Review
5474// information of the document.
5475type GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview struct {
5476	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
5477	State string `json:"state,omitempty"`
5478
5479	// StateMessage: A message providing more details about the current
5480	// state of processing. For example, the rejection reason when the state
5481	// is `rejected`.
5482	StateMessage string `json:"stateMessage,omitempty"`
5483
5484	// ForceSendFields is a list of field names (e.g. "State") to
5485	// unconditionally include in API requests. By default, fields with
5486	// empty or default values are omitted from API requests. However, any
5487	// non-pointer, non-interface field appearing in ForceSendFields will be
5488	// sent to the server regardless of whether the field is empty or not.
5489	// This may be used to include empty fields in Patch requests.
5490	ForceSendFields []string `json:"-"`
5491
5492	// NullFields is a list of field names (e.g. "State") to include in API
5493	// requests with the JSON null value. By default, fields with empty
5494	// values are omitted from API requests. However, any field with an
5495	// empty value appearing in NullFields will be sent to the server as
5496	// null. It is an error if a field in this list has a non-empty value.
5497	// This may be used to include null fields in Patch requests.
5498	NullFields []string `json:"-"`
5499}
5500
5501func (s *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
5502	type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
5503	raw := NoMethod(*s)
5504	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5505}
5506
5507// GoogleCloudDocumentaiV1beta1DocumentShardInfo: For a large document,
5508// sharding may be performed to produce several document shards. Each
5509// document shard contains this field to detail which shard it is.
5510type GoogleCloudDocumentaiV1beta1DocumentShardInfo struct {
5511	// ShardCount: Total number of shards.
5512	ShardCount int64 `json:"shardCount,omitempty,string"`
5513
5514	// ShardIndex: The 0-based index of this shard.
5515	ShardIndex int64 `json:"shardIndex,omitempty,string"`
5516
5517	// TextOffset: The index of the first character in Document.text in the
5518	// overall document global text.
5519	TextOffset int64 `json:"textOffset,omitempty,string"`
5520
5521	// ForceSendFields is a list of field names (e.g. "ShardCount") to
5522	// unconditionally include in API requests. By default, fields with
5523	// empty or default values are omitted from API requests. However, any
5524	// non-pointer, non-interface field appearing in ForceSendFields will be
5525	// sent to the server regardless of whether the field is empty or not.
5526	// This may be used to include empty fields in Patch requests.
5527	ForceSendFields []string `json:"-"`
5528
5529	// NullFields is a list of field names (e.g. "ShardCount") to include in
5530	// API requests with the JSON null value. By default, fields with empty
5531	// values are omitted from API requests. However, any field with an
5532	// empty value appearing in NullFields will be sent to the server as
5533	// null. It is an error if a field in this list has a non-empty value.
5534	// This may be used to include null fields in Patch requests.
5535	NullFields []string `json:"-"`
5536}
5537
5538func (s *GoogleCloudDocumentaiV1beta1DocumentShardInfo) MarshalJSON() ([]byte, error) {
5539	type NoMethod GoogleCloudDocumentaiV1beta1DocumentShardInfo
5540	raw := NoMethod(*s)
5541	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5542}
5543
5544// GoogleCloudDocumentaiV1beta1DocumentStyle: Annotation for common text
5545// style attributes. This adheres to CSS conventions as much as
5546// possible.
5547type GoogleCloudDocumentaiV1beta1DocumentStyle struct {
5548	// BackgroundColor: Text background color.
5549	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
5550
5551	// Color: Text color.
5552	Color *GoogleTypeColor `json:"color,omitempty"`
5553
5554	// FontSize: Font size.
5555	FontSize *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize `json:"fontSize,omitempty"`
5556
5557	// FontWeight: Font weight. Possible values are normal, bold, bolder,
5558	// and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
5559	FontWeight string `json:"fontWeight,omitempty"`
5560
5561	// TextAnchor: Text anchor indexing into the Document.text.
5562	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
5563
5564	// TextDecoration: Text decoration. Follows CSS standard.
5565	// https://www.w3schools.com/cssref/pr_text_text-decoration.asp
5566	TextDecoration string `json:"textDecoration,omitempty"`
5567
5568	// TextStyle: Text style. Possible values are normal, italic, and
5569	// oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
5570	TextStyle string `json:"textStyle,omitempty"`
5571
5572	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
5573	// unconditionally include in API requests. By default, fields with
5574	// empty or default values are omitted from API requests. However, any
5575	// non-pointer, non-interface field appearing in ForceSendFields will be
5576	// sent to the server regardless of whether the field is empty or not.
5577	// This may be used to include empty fields in Patch requests.
5578	ForceSendFields []string `json:"-"`
5579
5580	// NullFields is a list of field names (e.g. "BackgroundColor") to
5581	// include in API requests with the JSON null value. By default, fields
5582	// with empty values are omitted from API requests. However, any field
5583	// with an empty value appearing in NullFields will be sent to the
5584	// server as null. It is an error if a field in this list has a
5585	// non-empty value. This may be used to include null fields in Patch
5586	// requests.
5587	NullFields []string `json:"-"`
5588}
5589
5590func (s *GoogleCloudDocumentaiV1beta1DocumentStyle) MarshalJSON() ([]byte, error) {
5591	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyle
5592	raw := NoMethod(*s)
5593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5594}
5595
5596// GoogleCloudDocumentaiV1beta1DocumentStyleFontSize: Font size with
5597// unit.
5598type GoogleCloudDocumentaiV1beta1DocumentStyleFontSize struct {
5599	// Size: Font size for the text.
5600	Size float64 `json:"size,omitempty"`
5601
5602	// Unit: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
5603	Unit string `json:"unit,omitempty"`
5604
5605	// ForceSendFields is a list of field names (e.g. "Size") to
5606	// unconditionally include in API requests. By default, fields with
5607	// empty or default values are omitted from API requests. However, any
5608	// non-pointer, non-interface field appearing in ForceSendFields will be
5609	// sent to the server regardless of whether the field is empty or not.
5610	// This may be used to include empty fields in Patch requests.
5611	ForceSendFields []string `json:"-"`
5612
5613	// NullFields is a list of field names (e.g. "Size") to include in API
5614	// requests with the JSON null value. By default, fields with empty
5615	// values are omitted from API requests. However, any field with an
5616	// empty value appearing in NullFields will be sent to the server as
5617	// null. It is an error if a field in this list has a non-empty value.
5618	// This may be used to include null fields in Patch requests.
5619	NullFields []string `json:"-"`
5620}
5621
5622func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
5623	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
5624	raw := NoMethod(*s)
5625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5626}
5627
5628func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
5629	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
5630	var s1 struct {
5631		Size gensupport.JSONFloat64 `json:"size"`
5632		*NoMethod
5633	}
5634	s1.NoMethod = (*NoMethod)(s)
5635	if err := json.Unmarshal(data, &s1); err != nil {
5636		return err
5637	}
5638	s.Size = float64(s1.Size)
5639	return nil
5640}
5641
5642// GoogleCloudDocumentaiV1beta1DocumentTextAnchor: Text reference
5643// indexing into the Document.text.
5644type GoogleCloudDocumentaiV1beta1DocumentTextAnchor struct {
5645	// Content: Contains the content of the text span so that users do not
5646	// have to look it up in the text_segments.
5647	Content string `json:"content,omitempty"`
5648
5649	// TextSegments: The text segments from the Document.text.
5650	TextSegments []*GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
5651
5652	// ForceSendFields is a list of field names (e.g. "Content") to
5653	// unconditionally include in API requests. By default, fields with
5654	// empty or default values are omitted from API requests. However, any
5655	// non-pointer, non-interface field appearing in ForceSendFields will be
5656	// sent to the server regardless of whether the field is empty or not.
5657	// This may be used to include empty fields in Patch requests.
5658	ForceSendFields []string `json:"-"`
5659
5660	// NullFields is a list of field names (e.g. "Content") to include in
5661	// API requests with the JSON null value. By default, fields with empty
5662	// values are omitted from API requests. However, any field with an
5663	// empty value appearing in NullFields will be sent to the server as
5664	// null. It is an error if a field in this list has a non-empty value.
5665	// This may be used to include null fields in Patch requests.
5666	NullFields []string `json:"-"`
5667}
5668
5669func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchor) MarshalJSON() ([]byte, error) {
5670	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchor
5671	raw := NoMethod(*s)
5672	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5673}
5674
5675// GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment: A text
5676// segment in the Document.text. The indices may be out of bounds which
5677// indicate that the text extends into another document shard for large
5678// sharded documents. See ShardInfo.text_offset
5679type GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment struct {
5680	// EndIndex: TextSegment half open end UTF-8 char index in the
5681	// Document.text.
5682	EndIndex int64 `json:"endIndex,omitempty,string"`
5683
5684	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
5685	StartIndex int64 `json:"startIndex,omitempty,string"`
5686
5687	// ForceSendFields is a list of field names (e.g. "EndIndex") to
5688	// unconditionally include in API requests. By default, fields with
5689	// empty or default values are omitted from API requests. However, any
5690	// non-pointer, non-interface field appearing in ForceSendFields will be
5691	// sent to the server regardless of whether the field is empty or not.
5692	// This may be used to include empty fields in Patch requests.
5693	ForceSendFields []string `json:"-"`
5694
5695	// NullFields is a list of field names (e.g. "EndIndex") to include in
5696	// API requests with the JSON null value. By default, fields with empty
5697	// values are omitted from API requests. However, any field with an
5698	// empty value appearing in NullFields will be sent to the server as
5699	// null. It is an error if a field in this list has a non-empty value.
5700	// This may be used to include null fields in Patch requests.
5701	NullFields []string `json:"-"`
5702}
5703
5704func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
5705	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
5706	raw := NoMethod(*s)
5707	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5708}
5709
5710// GoogleCloudDocumentaiV1beta1DocumentTextChange: This message is used
5711// for text changes aka. OCR corrections.
5712type GoogleCloudDocumentaiV1beta1DocumentTextChange struct {
5713	// ChangedText: The text that replaces the text identified in the
5714	// `text_anchor`.
5715	ChangedText string `json:"changedText,omitempty"`
5716
5717	// Provenance: The history of this annotation.
5718	Provenance []*GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
5719
5720	// TextAnchor: Provenance of the correction. Text anchor indexing into
5721	// the Document.text. There can only be a single
5722	// `TextAnchor.text_segments` element. If the start and end index of the
5723	// text segment are the same, the text change is inserted before that
5724	// index.
5725	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
5726
5727	// ForceSendFields is a list of field names (e.g. "ChangedText") to
5728	// unconditionally include in API requests. By default, fields with
5729	// empty or default values are omitted from API requests. However, any
5730	// non-pointer, non-interface field appearing in ForceSendFields will be
5731	// sent to the server regardless of whether the field is empty or not.
5732	// This may be used to include empty fields in Patch requests.
5733	ForceSendFields []string `json:"-"`
5734
5735	// NullFields is a list of field names (e.g. "ChangedText") to include
5736	// in API requests with the JSON null value. By default, fields with
5737	// empty values are omitted from API requests. However, any field with
5738	// an empty value appearing in NullFields will be sent to the server as
5739	// null. It is an error if a field in this list has a non-empty value.
5740	// This may be used to include null fields in Patch requests.
5741	NullFields []string `json:"-"`
5742}
5743
5744func (s *GoogleCloudDocumentaiV1beta1DocumentTextChange) MarshalJSON() ([]byte, error) {
5745	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextChange
5746	raw := NoMethod(*s)
5747	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5748}
5749
5750// GoogleCloudDocumentaiV1beta1GcsDestination: The Google Cloud Storage
5751// location where the output file will be written to.
5752type GoogleCloudDocumentaiV1beta1GcsDestination struct {
5753	Uri string `json:"uri,omitempty"`
5754
5755	// ForceSendFields is a list of field names (e.g. "Uri") to
5756	// unconditionally include in API requests. By default, fields with
5757	// empty or default values are omitted from API requests. However, any
5758	// non-pointer, non-interface field appearing in ForceSendFields will be
5759	// sent to the server regardless of whether the field is empty or not.
5760	// This may be used to include empty fields in Patch requests.
5761	ForceSendFields []string `json:"-"`
5762
5763	// NullFields is a list of field names (e.g. "Uri") to include in API
5764	// requests with the JSON null value. By default, fields with empty
5765	// values are omitted from API requests. However, any field with an
5766	// empty value appearing in NullFields will be sent to the server as
5767	// null. It is an error if a field in this list has a non-empty value.
5768	// This may be used to include null fields in Patch requests.
5769	NullFields []string `json:"-"`
5770}
5771
5772func (s *GoogleCloudDocumentaiV1beta1GcsDestination) MarshalJSON() ([]byte, error) {
5773	type NoMethod GoogleCloudDocumentaiV1beta1GcsDestination
5774	raw := NoMethod(*s)
5775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5776}
5777
5778// GoogleCloudDocumentaiV1beta1GcsSource: The Google Cloud Storage
5779// location where the input file will be read from.
5780type GoogleCloudDocumentaiV1beta1GcsSource struct {
5781	Uri string `json:"uri,omitempty"`
5782
5783	// ForceSendFields is a list of field names (e.g. "Uri") to
5784	// unconditionally include in API requests. By default, fields with
5785	// empty or default values are omitted from API requests. However, any
5786	// non-pointer, non-interface field appearing in ForceSendFields will be
5787	// sent to the server regardless of whether the field is empty or not.
5788	// This may be used to include empty fields in Patch requests.
5789	ForceSendFields []string `json:"-"`
5790
5791	// NullFields is a list of field names (e.g. "Uri") to include in API
5792	// requests with the JSON null value. By default, fields with empty
5793	// values are omitted from API requests. However, any field with an
5794	// empty value appearing in NullFields will be sent to the server as
5795	// null. It is an error if a field in this list has a non-empty value.
5796	// This may be used to include null fields in Patch requests.
5797	NullFields []string `json:"-"`
5798}
5799
5800func (s *GoogleCloudDocumentaiV1beta1GcsSource) MarshalJSON() ([]byte, error) {
5801	type NoMethod GoogleCloudDocumentaiV1beta1GcsSource
5802	raw := NoMethod(*s)
5803	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5804}
5805
5806// GoogleCloudDocumentaiV1beta1InputConfig: The desired input location
5807// and metadata.
5808type GoogleCloudDocumentaiV1beta1InputConfig struct {
5809	// GcsSource: The Google Cloud Storage location to read the input from.
5810	// This must be a single file.
5811	GcsSource *GoogleCloudDocumentaiV1beta1GcsSource `json:"gcsSource,omitempty"`
5812
5813	// MimeType: Required. Mimetype of the input. Current supported
5814	// mimetypes are application/pdf, image/tiff, and image/gif. In
5815	// addition, application/json type is supported for requests with
5816	// ProcessDocumentRequest.automl_params field set. The JSON file needs
5817	// to be in Document format.
5818	MimeType string `json:"mimeType,omitempty"`
5819
5820	// ForceSendFields is a list of field names (e.g. "GcsSource") to
5821	// unconditionally include in API requests. By default, fields with
5822	// empty or default values are omitted from API requests. However, any
5823	// non-pointer, non-interface field appearing in ForceSendFields will be
5824	// sent to the server regardless of whether the field is empty or not.
5825	// This may be used to include empty fields in Patch requests.
5826	ForceSendFields []string `json:"-"`
5827
5828	// NullFields is a list of field names (e.g. "GcsSource") to include in
5829	// API requests with the JSON null value. By default, fields with empty
5830	// values are omitted from API requests. However, any field with an
5831	// empty value appearing in NullFields will be sent to the server as
5832	// null. It is an error if a field in this list has a non-empty value.
5833	// This may be used to include null fields in Patch requests.
5834	NullFields []string `json:"-"`
5835}
5836
5837func (s *GoogleCloudDocumentaiV1beta1InputConfig) MarshalJSON() ([]byte, error) {
5838	type NoMethod GoogleCloudDocumentaiV1beta1InputConfig
5839	raw := NoMethod(*s)
5840	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5841}
5842
5843// GoogleCloudDocumentaiV1beta1NormalizedVertex: A vertex represents a
5844// 2D point in the image. NOTE: the normalized vertex coordinates are
5845// relative to the original image and range from 0 to 1.
5846type GoogleCloudDocumentaiV1beta1NormalizedVertex struct {
5847	// X: X coordinate.
5848	X float64 `json:"x,omitempty"`
5849
5850	// Y: Y coordinate (starts from the top of the image).
5851	Y float64 `json:"y,omitempty"`
5852
5853	// ForceSendFields is a list of field names (e.g. "X") to
5854	// unconditionally include in API requests. By default, fields with
5855	// empty or default values are omitted from API requests. However, any
5856	// non-pointer, non-interface field appearing in ForceSendFields will be
5857	// sent to the server regardless of whether the field is empty or not.
5858	// This may be used to include empty fields in Patch requests.
5859	ForceSendFields []string `json:"-"`
5860
5861	// NullFields is a list of field names (e.g. "X") to include in API
5862	// requests with the JSON null value. By default, fields with empty
5863	// values are omitted from API requests. However, any field with an
5864	// empty value appearing in NullFields will be sent to the server as
5865	// null. It is an error if a field in this list has a non-empty value.
5866	// This may be used to include null fields in Patch requests.
5867	NullFields []string `json:"-"`
5868}
5869
5870func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
5871	type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
5872	raw := NoMethod(*s)
5873	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5874}
5875
5876func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
5877	type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
5878	var s1 struct {
5879		X gensupport.JSONFloat64 `json:"x"`
5880		Y gensupport.JSONFloat64 `json:"y"`
5881		*NoMethod
5882	}
5883	s1.NoMethod = (*NoMethod)(s)
5884	if err := json.Unmarshal(data, &s1); err != nil {
5885		return err
5886	}
5887	s.X = float64(s1.X)
5888	s.Y = float64(s1.Y)
5889	return nil
5890}
5891
5892// GoogleCloudDocumentaiV1beta1OperationMetadata: Contains metadata for
5893// the BatchProcessDocuments operation.
5894type GoogleCloudDocumentaiV1beta1OperationMetadata struct {
5895	// CreateTime: The creation time of the operation.
5896	CreateTime string `json:"createTime,omitempty"`
5897
5898	// State: The state of the current batch processing.
5899	//
5900	// Possible values:
5901	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
5902	// state is omitted.
5903	//   "ACCEPTED" - Request is received.
5904	//   "WAITING" - Request operation is waiting for scheduling.
5905	//   "RUNNING" - Request is being processed.
5906	//   "SUCCEEDED" - The batch processing completed successfully.
5907	//   "CANCELLED" - The batch processing was cancelled.
5908	//   "FAILED" - The batch processing has failed.
5909	State string `json:"state,omitempty"`
5910
5911	// StateMessage: A message providing more details about the current
5912	// state of processing.
5913	StateMessage string `json:"stateMessage,omitempty"`
5914
5915	// UpdateTime: The last update time of the operation.
5916	UpdateTime string `json:"updateTime,omitempty"`
5917
5918	// ForceSendFields is a list of field names (e.g. "CreateTime") to
5919	// unconditionally include in API requests. By default, fields with
5920	// empty or default values are omitted from API requests. However, any
5921	// non-pointer, non-interface field appearing in ForceSendFields will be
5922	// sent to the server regardless of whether the field is empty or not.
5923	// This may be used to include empty fields in Patch requests.
5924	ForceSendFields []string `json:"-"`
5925
5926	// NullFields is a list of field names (e.g. "CreateTime") to include in
5927	// API requests with the JSON null value. By default, fields with empty
5928	// values are omitted from API requests. However, any field with an
5929	// empty value appearing in NullFields will be sent to the server as
5930	// null. It is an error if a field in this list has a non-empty value.
5931	// This may be used to include null fields in Patch requests.
5932	NullFields []string `json:"-"`
5933}
5934
5935func (s *GoogleCloudDocumentaiV1beta1OperationMetadata) MarshalJSON() ([]byte, error) {
5936	type NoMethod GoogleCloudDocumentaiV1beta1OperationMetadata
5937	raw := NoMethod(*s)
5938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5939}
5940
5941// GoogleCloudDocumentaiV1beta1OutputConfig: The desired output location
5942// and metadata.
5943type GoogleCloudDocumentaiV1beta1OutputConfig struct {
5944	// GcsDestination: The Google Cloud Storage location to write the output
5945	// to.
5946	GcsDestination *GoogleCloudDocumentaiV1beta1GcsDestination `json:"gcsDestination,omitempty"`
5947
5948	// PagesPerShard: The max number of pages to include into each output
5949	// Document shard JSON on Google Cloud Storage. The valid range is [1,
5950	// 100]. If not specified, the default value is 20. For example, for one
5951	// pdf file with 100 pages, 100 parsed pages will be produced. If
5952	// `pages_per_shard` = 20, then 5 Document shard JSON files each
5953	// containing 20 parsed pages will be written under the prefix
5954	// OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x
5955	// and y are 1-indexed page numbers. Example GCS outputs with 157 pages
5956	// and pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json
5957	// pages-101-to-150.json pages-151-to-157.json
5958	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
5959
5960	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
5961	// unconditionally include in API requests. By default, fields with
5962	// empty or default values are omitted from API requests. However, any
5963	// non-pointer, non-interface field appearing in ForceSendFields will be
5964	// sent to the server regardless of whether the field is empty or not.
5965	// This may be used to include empty fields in Patch requests.
5966	ForceSendFields []string `json:"-"`
5967
5968	// NullFields is a list of field names (e.g. "GcsDestination") to
5969	// include in API requests with the JSON null value. By default, fields
5970	// with empty values are omitted from API requests. However, any field
5971	// with an empty value appearing in NullFields will be sent to the
5972	// server as null. It is an error if a field in this list has a
5973	// non-empty value. This may be used to include null fields in Patch
5974	// requests.
5975	NullFields []string `json:"-"`
5976}
5977
5978func (s *GoogleCloudDocumentaiV1beta1OutputConfig) MarshalJSON() ([]byte, error) {
5979	type NoMethod GoogleCloudDocumentaiV1beta1OutputConfig
5980	raw := NoMethod(*s)
5981	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5982}
5983
5984// GoogleCloudDocumentaiV1beta1ProcessDocumentResponse: Response to a
5985// single document processing request.
5986type GoogleCloudDocumentaiV1beta1ProcessDocumentResponse struct {
5987	// InputConfig: Information about the input file. This is the same as
5988	// the corresponding input config in the request.
5989	InputConfig *GoogleCloudDocumentaiV1beta1InputConfig `json:"inputConfig,omitempty"`
5990
5991	// OutputConfig: The output location of the parsed responses. The
5992	// responses are written to this location as JSON-serialized `Document`
5993	// objects.
5994	OutputConfig *GoogleCloudDocumentaiV1beta1OutputConfig `json:"outputConfig,omitempty"`
5995
5996	// ForceSendFields is a list of field names (e.g. "InputConfig") to
5997	// unconditionally include in API requests. By default, fields with
5998	// empty or default values are omitted from API requests. However, any
5999	// non-pointer, non-interface field appearing in ForceSendFields will be
6000	// sent to the server regardless of whether the field is empty or not.
6001	// This may be used to include empty fields in Patch requests.
6002	ForceSendFields []string `json:"-"`
6003
6004	// NullFields is a list of field names (e.g. "InputConfig") to include
6005	// in API requests with the JSON null value. By default, fields with
6006	// empty values are omitted from API requests. However, any field with
6007	// an empty value appearing in NullFields will be sent to the server as
6008	// null. It is an error if a field in this list has a non-empty value.
6009	// This may be used to include null fields in Patch requests.
6010	NullFields []string `json:"-"`
6011}
6012
6013func (s *GoogleCloudDocumentaiV1beta1ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
6014	type NoMethod GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
6015	raw := NoMethod(*s)
6016	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6017}
6018
6019// GoogleCloudDocumentaiV1beta1Vertex: A vertex represents a 2D point in
6020// the image. NOTE: the vertex coordinates are in the same scale as the
6021// original image.
6022type GoogleCloudDocumentaiV1beta1Vertex struct {
6023	// X: X coordinate.
6024	X int64 `json:"x,omitempty"`
6025
6026	// Y: Y coordinate (starts from the top of the image).
6027	Y int64 `json:"y,omitempty"`
6028
6029	// ForceSendFields is a list of field names (e.g. "X") to
6030	// unconditionally include in API requests. By default, fields with
6031	// empty or default values are omitted from API requests. However, any
6032	// non-pointer, non-interface field appearing in ForceSendFields will be
6033	// sent to the server regardless of whether the field is empty or not.
6034	// This may be used to include empty fields in Patch requests.
6035	ForceSendFields []string `json:"-"`
6036
6037	// NullFields is a list of field names (e.g. "X") to include in API
6038	// requests with the JSON null value. By default, fields with empty
6039	// values are omitted from API requests. However, any field with an
6040	// empty value appearing in NullFields will be sent to the server as
6041	// null. It is an error if a field in this list has a non-empty value.
6042	// This may be used to include null fields in Patch requests.
6043	NullFields []string `json:"-"`
6044}
6045
6046func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) {
6047	type NoMethod GoogleCloudDocumentaiV1beta1Vertex
6048	raw := NoMethod(*s)
6049	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6050}
6051
6052// GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse: Response
6053// to an batch document processing request. This is returned in the LRO
6054// Operation after the operation is complete.
6055type GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse struct {
6056	// Responses: Responses for each individual document.
6057	Responses []*GoogleCloudDocumentaiV1beta2ProcessDocumentResponse `json:"responses,omitempty"`
6058
6059	// ForceSendFields is a list of field names (e.g. "Responses") to
6060	// unconditionally include in API requests. By default, fields with
6061	// empty or default values are omitted from API requests. However, any
6062	// non-pointer, non-interface field appearing in ForceSendFields will be
6063	// sent to the server regardless of whether the field is empty or not.
6064	// This may be used to include empty fields in Patch requests.
6065	ForceSendFields []string `json:"-"`
6066
6067	// NullFields is a list of field names (e.g. "Responses") to include in
6068	// API requests with the JSON null value. By default, fields with empty
6069	// values are omitted from API requests. However, any field with an
6070	// empty value appearing in NullFields will be sent to the server as
6071	// null. It is an error if a field in this list has a non-empty value.
6072	// This may be used to include null fields in Patch requests.
6073	NullFields []string `json:"-"`
6074}
6075
6076func (s *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
6077	type NoMethod GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
6078	raw := NoMethod(*s)
6079	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6080}
6081
6082// GoogleCloudDocumentaiV1beta2BoundingPoly: A bounding polygon for the
6083// detected image annotation.
6084type GoogleCloudDocumentaiV1beta2BoundingPoly struct {
6085	// NormalizedVertices: The bounding polygon normalized vertices.
6086	NormalizedVertices []*GoogleCloudDocumentaiV1beta2NormalizedVertex `json:"normalizedVertices,omitempty"`
6087
6088	// Vertices: The bounding polygon vertices.
6089	Vertices []*GoogleCloudDocumentaiV1beta2Vertex `json:"vertices,omitempty"`
6090
6091	// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
6092	// to unconditionally include in API requests. By default, fields with
6093	// empty or default values are omitted from API requests. However, any
6094	// non-pointer, non-interface field appearing in ForceSendFields will be
6095	// sent to the server regardless of whether the field is empty or not.
6096	// This may be used to include empty fields in Patch requests.
6097	ForceSendFields []string `json:"-"`
6098
6099	// NullFields is a list of field names (e.g. "NormalizedVertices") to
6100	// include in API requests with the JSON null value. By default, fields
6101	// with empty values are omitted from API requests. However, any field
6102	// with an empty value appearing in NullFields will be sent to the
6103	// server as null. It is an error if a field in this list has a
6104	// non-empty value. This may be used to include null fields in Patch
6105	// requests.
6106	NullFields []string `json:"-"`
6107}
6108
6109func (s *GoogleCloudDocumentaiV1beta2BoundingPoly) MarshalJSON() ([]byte, error) {
6110	type NoMethod GoogleCloudDocumentaiV1beta2BoundingPoly
6111	raw := NoMethod(*s)
6112	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6113}
6114
6115// GoogleCloudDocumentaiV1beta2Document: Document represents the
6116// canonical document resource in Document Understanding AI. It is an
6117// interchange format that provides insights into documents and allows
6118// for collaboration between users and Document Understanding AI to
6119// iterate and optimize for quality.
6120type GoogleCloudDocumentaiV1beta2Document struct {
6121	// Content: Optional. Inline document content, represented as a stream
6122	// of bytes. Note: As with all `bytes` fields, protobuffers use a pure
6123	// binary representation, whereas JSON representations use base64.
6124	Content string `json:"content,omitempty"`
6125
6126	// Entities: A list of entities detected on Document.text. For document
6127	// shards, entities in this list may cross shard boundaries.
6128	Entities []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"entities,omitempty"`
6129
6130	// EntityRelations: Relationship among Document.entities.
6131	EntityRelations []*GoogleCloudDocumentaiV1beta2DocumentEntityRelation `json:"entityRelations,omitempty"`
6132
6133	// Error: Any error that occurred while processing this document.
6134	Error *GoogleRpcStatus `json:"error,omitempty"`
6135
6136	// Labels: Labels for this document.
6137	Labels []*GoogleCloudDocumentaiV1beta2DocumentLabel `json:"labels,omitempty"`
6138
6139	// MimeType: An IANA published MIME type (also referred to as media
6140	// type). For more information, see
6141	// https://www.iana.org/assignments/media-types/media-types.xhtml.
6142	MimeType string `json:"mimeType,omitempty"`
6143
6144	// Pages: Visual page layout for the Document.
6145	Pages []*GoogleCloudDocumentaiV1beta2DocumentPage `json:"pages,omitempty"`
6146
6147	// Revisions: Revision history of this document.
6148	Revisions []*GoogleCloudDocumentaiV1beta2DocumentRevision `json:"revisions,omitempty"`
6149
6150	// ShardInfo: Information about the sharding if this document is sharded
6151	// part of a larger document. If the document is not sharded, this
6152	// message is not specified.
6153	ShardInfo *GoogleCloudDocumentaiV1beta2DocumentShardInfo `json:"shardInfo,omitempty"`
6154
6155	// Text: Optional. UTF-8 encoded text in reading order from the
6156	// document.
6157	Text string `json:"text,omitempty"`
6158
6159	// TextChanges: A list of text corrections made to [Document.text]. This
6160	// is usually used for annotating corrections to OCR mistakes. Text
6161	// changes for a given revision may not overlap with each other.
6162	TextChanges []*GoogleCloudDocumentaiV1beta2DocumentTextChange `json:"textChanges,omitempty"`
6163
6164	// TextStyles: Styles for the Document.text.
6165	TextStyles []*GoogleCloudDocumentaiV1beta2DocumentStyle `json:"textStyles,omitempty"`
6166
6167	// Uri: Optional. Currently supports Google Cloud Storage URI of the
6168	// form `gs://bucket_name/object_name`. Object versioning is not
6169	// supported. See Google Cloud Storage Request URIs
6170	// (https://cloud.google.com/storage/docs/reference-uris) for more info.
6171	Uri string `json:"uri,omitempty"`
6172
6173	// ForceSendFields is a list of field names (e.g. "Content") to
6174	// unconditionally include in API requests. By default, fields with
6175	// empty or default values are omitted from API requests. However, any
6176	// non-pointer, non-interface field appearing in ForceSendFields will be
6177	// sent to the server regardless of whether the field is empty or not.
6178	// This may be used to include empty fields in Patch requests.
6179	ForceSendFields []string `json:"-"`
6180
6181	// NullFields is a list of field names (e.g. "Content") to include in
6182	// API requests with the JSON null value. By default, fields with empty
6183	// values are omitted from API requests. However, any field with an
6184	// empty value appearing in NullFields will be sent to the server as
6185	// null. It is an error if a field in this list has a non-empty value.
6186	// This may be used to include null fields in Patch requests.
6187	NullFields []string `json:"-"`
6188}
6189
6190func (s *GoogleCloudDocumentaiV1beta2Document) MarshalJSON() ([]byte, error) {
6191	type NoMethod GoogleCloudDocumentaiV1beta2Document
6192	raw := NoMethod(*s)
6193	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6194}
6195
6196// GoogleCloudDocumentaiV1beta2DocumentEntity: An entity that could be a
6197// phrase in the text or a property belongs to the document. It is a
6198// known entity type, such as a person, an organization, or location.
6199type GoogleCloudDocumentaiV1beta2DocumentEntity struct {
6200	// Confidence: Optional. Confidence of detected Schema entity. Range [0,
6201	// 1].
6202	Confidence float64 `json:"confidence,omitempty"`
6203
6204	// Id: Optional. Canonical id. This will be a unique value in the entity
6205	// list for this document.
6206	Id string `json:"id,omitempty"`
6207
6208	// MentionId: Optional. Deprecated. Use `id` field instead.
6209	MentionId string `json:"mentionId,omitempty"`
6210
6211	// MentionText: Optional. Text value in the document e.g. `1600
6212	// Amphitheatre Pkwy`. If the entity is not present in the document,
6213	// this field will be empty.
6214	MentionText string `json:"mentionText,omitempty"`
6215
6216	// NormalizedValue: Optional. Normalized entity value. Absent if the
6217	// extracted value could not be converted or the type (e.g. address) is
6218	// not supported for certain parsers. This field is also only populated
6219	// for certain supported document types.
6220	NormalizedValue *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
6221
6222	// PageAnchor: Optional. Represents the provenance of this entity wrt.
6223	// the location on the page where it was found.
6224	PageAnchor *GoogleCloudDocumentaiV1beta2DocumentPageAnchor `json:"pageAnchor,omitempty"`
6225
6226	// Properties: Optional. Entities can be nested to form a hierarchical
6227	// data structure representing the content in the document.
6228	Properties []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"properties,omitempty"`
6229
6230	// Provenance: Optional. The history of this annotation.
6231	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
6232
6233	// Redacted: Optional. Whether the entity will be redacted for
6234	// de-identification purposes.
6235	Redacted bool `json:"redacted,omitempty"`
6236
6237	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing
6238	// into the Document.text.
6239	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
6240
6241	// Type: Entity type from a schema e.g. `Address`.
6242	Type string `json:"type,omitempty"`
6243
6244	// ForceSendFields is a list of field names (e.g. "Confidence") to
6245	// unconditionally include in API requests. By default, fields with
6246	// empty or default values are omitted from API requests. However, any
6247	// non-pointer, non-interface field appearing in ForceSendFields will be
6248	// sent to the server regardless of whether the field is empty or not.
6249	// This may be used to include empty fields in Patch requests.
6250	ForceSendFields []string `json:"-"`
6251
6252	// NullFields is a list of field names (e.g. "Confidence") to include in
6253	// API requests with the JSON null value. By default, fields with empty
6254	// values are omitted from API requests. However, any field with an
6255	// empty value appearing in NullFields will be sent to the server as
6256	// null. It is an error if a field in this list has a non-empty value.
6257	// This may be used to include null fields in Patch requests.
6258	NullFields []string `json:"-"`
6259}
6260
6261func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) MarshalJSON() ([]byte, error) {
6262	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
6263	raw := NoMethod(*s)
6264	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6265}
6266
6267func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) UnmarshalJSON(data []byte) error {
6268	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
6269	var s1 struct {
6270		Confidence gensupport.JSONFloat64 `json:"confidence"`
6271		*NoMethod
6272	}
6273	s1.NoMethod = (*NoMethod)(s)
6274	if err := json.Unmarshal(data, &s1); err != nil {
6275		return err
6276	}
6277	s.Confidence = float64(s1.Confidence)
6278	return nil
6279}
6280
6281// GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue: Parsed and
6282// normalized entity value.
6283type GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue struct {
6284	// AddressValue: Postal address. See also:
6285	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
6286	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
6287
6288	// BooleanValue: Boolean value. Can be used for entities with binary
6289	// values, or for checkboxes.
6290	BooleanValue bool `json:"booleanValue,omitempty"`
6291
6292	// DateValue: Date value. Includes year, month, day. See also:
6293	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
6294	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
6295
6296	// DatetimeValue: DateTime value. Includes date, time, and timezone. See
6297	// also:
6298	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
6299	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
6300
6301	// FloatValue: Float value.
6302	FloatValue float64 `json:"floatValue,omitempty"`
6303
6304	// IntegerValue: Integer value.
6305	IntegerValue int64 `json:"integerValue,omitempty"`
6306
6307	// MoneyValue: Money value. See also:
6308	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
6309	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
6310
6311	// Text: Optional. An optional field to store a normalized string. For
6312	// some entity types, one of respective 'structured_value' fields may
6313	// also be populated. Also not all the types of 'structured_value' will
6314	// be normalized. For example, some processors may not generate float or
6315	// int normalized text by default. Below are sample formats mapped to
6316	// structured values. - Money/Currency type (`money_value`) is in the
6317	// ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601
6318	// text format. - Datetime type (`datetime_value`) is in the ISO 8601
6319	// text format.
6320	Text string `json:"text,omitempty"`
6321
6322	// ForceSendFields is a list of field names (e.g. "AddressValue") to
6323	// unconditionally include in API requests. By default, fields with
6324	// empty or default values are omitted from API requests. However, any
6325	// non-pointer, non-interface field appearing in ForceSendFields will be
6326	// sent to the server regardless of whether the field is empty or not.
6327	// This may be used to include empty fields in Patch requests.
6328	ForceSendFields []string `json:"-"`
6329
6330	// NullFields is a list of field names (e.g. "AddressValue") to include
6331	// in API requests with the JSON null value. By default, fields with
6332	// empty values are omitted from API requests. However, any field with
6333	// an empty value appearing in NullFields will be sent to the server as
6334	// null. It is an error if a field in this list has a non-empty value.
6335	// This may be used to include null fields in Patch requests.
6336	NullFields []string `json:"-"`
6337}
6338
6339func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
6340	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
6341	raw := NoMethod(*s)
6342	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6343}
6344
6345func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
6346	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
6347	var s1 struct {
6348		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
6349		*NoMethod
6350	}
6351	s1.NoMethod = (*NoMethod)(s)
6352	if err := json.Unmarshal(data, &s1); err != nil {
6353		return err
6354	}
6355	s.FloatValue = float64(s1.FloatValue)
6356	return nil
6357}
6358
6359// GoogleCloudDocumentaiV1beta2DocumentEntityRelation: Relationship
6360// between Entities.
6361type GoogleCloudDocumentaiV1beta2DocumentEntityRelation struct {
6362	// ObjectId: Object entity id.
6363	ObjectId string `json:"objectId,omitempty"`
6364
6365	// Relation: Relationship description.
6366	Relation string `json:"relation,omitempty"`
6367
6368	// SubjectId: Subject entity id.
6369	SubjectId string `json:"subjectId,omitempty"`
6370
6371	// ForceSendFields is a list of field names (e.g. "ObjectId") to
6372	// unconditionally include in API requests. By default, fields with
6373	// empty or default values are omitted from API requests. However, any
6374	// non-pointer, non-interface field appearing in ForceSendFields will be
6375	// sent to the server regardless of whether the field is empty or not.
6376	// This may be used to include empty fields in Patch requests.
6377	ForceSendFields []string `json:"-"`
6378
6379	// NullFields is a list of field names (e.g. "ObjectId") to include in
6380	// API requests with the JSON null value. By default, fields with empty
6381	// values are omitted from API requests. However, any field with an
6382	// empty value appearing in NullFields will be sent to the server as
6383	// null. It is an error if a field in this list has a non-empty value.
6384	// This may be used to include null fields in Patch requests.
6385	NullFields []string `json:"-"`
6386}
6387
6388func (s *GoogleCloudDocumentaiV1beta2DocumentEntityRelation) MarshalJSON() ([]byte, error) {
6389	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityRelation
6390	raw := NoMethod(*s)
6391	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6392}
6393
6394// GoogleCloudDocumentaiV1beta2DocumentLabel: Label attaches schema
6395// information and/or other metadata to segments within a Document.
6396// Multiple Labels on a single field can denote either different labels,
6397// different instances of the same label created at different times, or
6398// some combination of both.
6399type GoogleCloudDocumentaiV1beta2DocumentLabel struct {
6400	// AutomlModel: Label is generated AutoML model. This field stores the
6401	// full resource name of the AutoML model. Format:
6402	// `projects/{project-id}/locations/{location-id}/models/{model-id}`
6403	AutomlModel string `json:"automlModel,omitempty"`
6404
6405	// Confidence: Confidence score between 0 and 1 for label assignment.
6406	Confidence float64 `json:"confidence,omitempty"`
6407
6408	// Name: Name of the label. When the label is generated from AutoML Text
6409	// Classification model, this field represents the name of the category.
6410	Name string `json:"name,omitempty"`
6411
6412	// ForceSendFields is a list of field names (e.g. "AutomlModel") to
6413	// unconditionally include in API requests. By default, fields with
6414	// empty or default values are omitted from API requests. However, any
6415	// non-pointer, non-interface field appearing in ForceSendFields will be
6416	// sent to the server regardless of whether the field is empty or not.
6417	// This may be used to include empty fields in Patch requests.
6418	ForceSendFields []string `json:"-"`
6419
6420	// NullFields is a list of field names (e.g. "AutomlModel") to include
6421	// in API requests with the JSON null value. By default, fields with
6422	// empty values are omitted from API requests. However, any field with
6423	// an empty value appearing in NullFields will be sent to the server as
6424	// null. It is an error if a field in this list has a non-empty value.
6425	// This may be used to include null fields in Patch requests.
6426	NullFields []string `json:"-"`
6427}
6428
6429func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) MarshalJSON() ([]byte, error) {
6430	type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
6431	raw := NoMethod(*s)
6432	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6433}
6434
6435func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) UnmarshalJSON(data []byte) error {
6436	type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
6437	var s1 struct {
6438		Confidence gensupport.JSONFloat64 `json:"confidence"`
6439		*NoMethod
6440	}
6441	s1.NoMethod = (*NoMethod)(s)
6442	if err := json.Unmarshal(data, &s1); err != nil {
6443		return err
6444	}
6445	s.Confidence = float64(s1.Confidence)
6446	return nil
6447}
6448
6449// GoogleCloudDocumentaiV1beta2DocumentPage: A page in a Document.
6450type GoogleCloudDocumentaiV1beta2DocumentPage struct {
6451	// Blocks: A list of visually detected text blocks on the page. A block
6452	// has a set of lines (collected into paragraphs) that have a common
6453	// line-spacing and orientation.
6454	Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"`
6455
6456	// DetectedLanguages: A list of detected languages together with
6457	// confidence.
6458	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6459
6460	// Dimension: Physical dimension of the page.
6461	Dimension *GoogleCloudDocumentaiV1beta2DocumentPageDimension `json:"dimension,omitempty"`
6462
6463	// FormFields: A list of visually detected form fields on the page.
6464	FormFields []*GoogleCloudDocumentaiV1beta2DocumentPageFormField `json:"formFields,omitempty"`
6465
6466	// Image: Rendered image for this page. This image is preprocessed to
6467	// remove any skew, rotation, and distortions such that the annotation
6468	// bounding boxes can be upright and axis-aligned.
6469	Image *GoogleCloudDocumentaiV1beta2DocumentPageImage `json:"image,omitempty"`
6470
6471	// Layout: Layout for the page.
6472	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
6473
6474	// Lines: A list of visually detected text lines on the page. A
6475	// collection of tokens that a human would perceive as a line.
6476	Lines []*GoogleCloudDocumentaiV1beta2DocumentPageLine `json:"lines,omitempty"`
6477
6478	// PageNumber: 1-based index for current Page in a parent Document.
6479	// Useful when a page is taken out of a Document for individual
6480	// processing.
6481	PageNumber int64 `json:"pageNumber,omitempty"`
6482
6483	// Paragraphs: A list of visually detected text paragraphs on the page.
6484	// A collection of lines that a human would perceive as a paragraph.
6485	Paragraphs []*GoogleCloudDocumentaiV1beta2DocumentPageParagraph `json:"paragraphs,omitempty"`
6486
6487	// Provenance: The history of this page.
6488	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
6489
6490	// Tables: A list of visually detected tables on the page.
6491	Tables []*GoogleCloudDocumentaiV1beta2DocumentPageTable `json:"tables,omitempty"`
6492
6493	// Tokens: A list of visually detected tokens on the page.
6494	Tokens []*GoogleCloudDocumentaiV1beta2DocumentPageToken `json:"tokens,omitempty"`
6495
6496	// Transforms: Transformation matrices that were applied to the original
6497	// document image to produce Page.image.
6498	Transforms []*GoogleCloudDocumentaiV1beta2DocumentPageMatrix `json:"transforms,omitempty"`
6499
6500	// VisualElements: A list of detected non-text visual elements e.g.
6501	// checkbox, signature etc. on the page.
6502	VisualElements []*GoogleCloudDocumentaiV1beta2DocumentPageVisualElement `json:"visualElements,omitempty"`
6503
6504	// ForceSendFields is a list of field names (e.g. "Blocks") to
6505	// unconditionally include in API requests. By default, fields with
6506	// empty or default values are omitted from API requests. However, any
6507	// non-pointer, non-interface field appearing in ForceSendFields will be
6508	// sent to the server regardless of whether the field is empty or not.
6509	// This may be used to include empty fields in Patch requests.
6510	ForceSendFields []string `json:"-"`
6511
6512	// NullFields is a list of field names (e.g. "Blocks") to include in API
6513	// requests with the JSON null value. By default, fields with empty
6514	// values are omitted from API requests. However, any field with an
6515	// empty value appearing in NullFields will be sent to the server as
6516	// null. It is an error if a field in this list has a non-empty value.
6517	// This may be used to include null fields in Patch requests.
6518	NullFields []string `json:"-"`
6519}
6520
6521func (s *GoogleCloudDocumentaiV1beta2DocumentPage) MarshalJSON() ([]byte, error) {
6522	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPage
6523	raw := NoMethod(*s)
6524	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6525}
6526
6527// GoogleCloudDocumentaiV1beta2DocumentPageAnchor: Referencing the
6528// visual context of the entity in the Document.pages. Page anchors can
6529// be cross-page, consist of multiple bounding polygons and optionally
6530// reference specific layout element types.
6531type GoogleCloudDocumentaiV1beta2DocumentPageAnchor struct {
6532	// PageRefs: One or more references to visual page elements
6533	PageRefs []*GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
6534
6535	// ForceSendFields is a list of field names (e.g. "PageRefs") to
6536	// unconditionally include in API requests. By default, fields with
6537	// empty or default values are omitted from API requests. However, any
6538	// non-pointer, non-interface field appearing in ForceSendFields will be
6539	// sent to the server regardless of whether the field is empty or not.
6540	// This may be used to include empty fields in Patch requests.
6541	ForceSendFields []string `json:"-"`
6542
6543	// NullFields is a list of field names (e.g. "PageRefs") to include in
6544	// API requests with the JSON null value. By default, fields with empty
6545	// values are omitted from API requests. However, any field with an
6546	// empty value appearing in NullFields will be sent to the server as
6547	// null. It is an error if a field in this list has a non-empty value.
6548	// This may be used to include null fields in Patch requests.
6549	NullFields []string `json:"-"`
6550}
6551
6552func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, error) {
6553	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchor
6554	raw := NoMethod(*s)
6555	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6556}
6557
6558// GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef: Represents a
6559// weak reference to a page element within a document.
6560type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct {
6561	// BoundingPoly: Optional. Identifies the bounding polygon of a layout
6562	// element on the page.
6563	BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
6564
6565	// Confidence: Optional. Confidence of detected page element, if
6566	// applicable. Range [0, 1].
6567	Confidence float64 `json:"confidence,omitempty"`
6568
6569	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
6570	LayoutId string `json:"layoutId,omitempty"`
6571
6572	// LayoutType: Optional. The type of the layout element that is being
6573	// referenced if any.
6574	//
6575	// Possible values:
6576	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
6577	//   "BLOCK" - References a Page.blocks element.
6578	//   "PARAGRAPH" - References a Page.paragraphs element.
6579	//   "LINE" - References a Page.lines element.
6580	//   "TOKEN" - References a Page.tokens element.
6581	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
6582	//   "TABLE" - Refrrences a Page.tables element.
6583	//   "FORM_FIELD" - References a Page.form_fields element.
6584	LayoutType string `json:"layoutType,omitempty"`
6585
6586	// Page: Required. Index into the Document.pages element, for example
6587	// using Document.pages to locate the related page element. This field
6588	// is skipped when its value is the default 0. See
6589	// https://developers.google.com/protocol-buffers/docs/proto3#json.
6590	Page int64 `json:"page,omitempty,string"`
6591
6592	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
6593	// unconditionally include in API requests. By default, fields with
6594	// empty or default values are omitted from API requests. However, any
6595	// non-pointer, non-interface field appearing in ForceSendFields will be
6596	// sent to the server regardless of whether the field is empty or not.
6597	// This may be used to include empty fields in Patch requests.
6598	ForceSendFields []string `json:"-"`
6599
6600	// NullFields is a list of field names (e.g. "BoundingPoly") to include
6601	// in API requests with the JSON null value. By default, fields with
6602	// empty values are omitted from API requests. However, any field with
6603	// an empty value appearing in NullFields will be sent to the server as
6604	// null. It is an error if a field in this list has a non-empty value.
6605	// This may be used to include null fields in Patch requests.
6606	NullFields []string `json:"-"`
6607}
6608
6609func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
6610	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
6611	raw := NoMethod(*s)
6612	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6613}
6614
6615func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
6616	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
6617	var s1 struct {
6618		Confidence gensupport.JSONFloat64 `json:"confidence"`
6619		*NoMethod
6620	}
6621	s1.NoMethod = (*NoMethod)(s)
6622	if err := json.Unmarshal(data, &s1); err != nil {
6623		return err
6624	}
6625	s.Confidence = float64(s1.Confidence)
6626	return nil
6627}
6628
6629// GoogleCloudDocumentaiV1beta2DocumentPageBlock: A block has a set of
6630// lines (collected into paragraphs) that have a common line-spacing and
6631// orientation.
6632type GoogleCloudDocumentaiV1beta2DocumentPageBlock struct {
6633	// DetectedLanguages: A list of detected languages together with
6634	// confidence.
6635	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6636
6637	// Layout: Layout for Block.
6638	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
6639
6640	// Provenance: The history of this annotation.
6641	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
6642
6643	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
6644	// to unconditionally include in API requests. By default, fields with
6645	// empty or default values are omitted from API requests. However, any
6646	// non-pointer, non-interface field appearing in ForceSendFields will be
6647	// sent to the server regardless of whether the field is empty or not.
6648	// This may be used to include empty fields in Patch requests.
6649	ForceSendFields []string `json:"-"`
6650
6651	// NullFields is a list of field names (e.g. "DetectedLanguages") to
6652	// include in API requests with the JSON null value. By default, fields
6653	// with empty values are omitted from API requests. However, any field
6654	// with an empty value appearing in NullFields will be sent to the
6655	// server as null. It is an error if a field in this list has a
6656	// non-empty value. This may be used to include null fields in Patch
6657	// requests.
6658	NullFields []string `json:"-"`
6659}
6660
6661func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, error) {
6662	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageBlock
6663	raw := NoMethod(*s)
6664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6665}
6666
6667// GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected
6668// language for a structural component.
6669type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct {
6670	// Confidence: Confidence of detected language. Range [0, 1].
6671	Confidence float64 `json:"confidence,omitempty"`
6672
6673	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn".
6674	// For more information, see
6675	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6676	LanguageCode string `json:"languageCode,omitempty"`
6677
6678	// ForceSendFields is a list of field names (e.g. "Confidence") to
6679	// unconditionally include in API requests. By default, fields with
6680	// empty or default values are omitted from API requests. However, any
6681	// non-pointer, non-interface field appearing in ForceSendFields will be
6682	// sent to the server regardless of whether the field is empty or not.
6683	// This may be used to include empty fields in Patch requests.
6684	ForceSendFields []string `json:"-"`
6685
6686	// NullFields is a list of field names (e.g. "Confidence") to include in
6687	// API requests with the JSON null value. By default, fields with empty
6688	// values are omitted from API requests. However, any field with an
6689	// empty value appearing in NullFields will be sent to the server as
6690	// null. It is an error if a field in this list has a non-empty value.
6691	// This may be used to include null fields in Patch requests.
6692	NullFields []string `json:"-"`
6693}
6694
6695func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
6696	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
6697	raw := NoMethod(*s)
6698	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6699}
6700
6701func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
6702	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
6703	var s1 struct {
6704		Confidence gensupport.JSONFloat64 `json:"confidence"`
6705		*NoMethod
6706	}
6707	s1.NoMethod = (*NoMethod)(s)
6708	if err := json.Unmarshal(data, &s1); err != nil {
6709		return err
6710	}
6711	s.Confidence = float64(s1.Confidence)
6712	return nil
6713}
6714
6715// GoogleCloudDocumentaiV1beta2DocumentPageDimension: Dimension for the
6716// page.
6717type GoogleCloudDocumentaiV1beta2DocumentPageDimension struct {
6718	// Height: Page height.
6719	Height float64 `json:"height,omitempty"`
6720
6721	// Unit: Dimension unit.
6722	Unit string `json:"unit,omitempty"`
6723
6724	// Width: Page width.
6725	Width float64 `json:"width,omitempty"`
6726
6727	// ForceSendFields is a list of field names (e.g. "Height") to
6728	// unconditionally include in API requests. By default, fields with
6729	// empty or default values are omitted from API requests. However, any
6730	// non-pointer, non-interface field appearing in ForceSendFields will be
6731	// sent to the server regardless of whether the field is empty or not.
6732	// This may be used to include empty fields in Patch requests.
6733	ForceSendFields []string `json:"-"`
6734
6735	// NullFields is a list of field names (e.g. "Height") to include in API
6736	// requests with the JSON null value. By default, fields with empty
6737	// values are omitted from API requests. However, any field with an
6738	// empty value appearing in NullFields will be sent to the server as
6739	// null. It is an error if a field in this list has a non-empty value.
6740	// This may be used to include null fields in Patch requests.
6741	NullFields []string `json:"-"`
6742}
6743
6744func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) MarshalJSON() ([]byte, error) {
6745	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
6746	raw := NoMethod(*s)
6747	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6748}
6749
6750func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) UnmarshalJSON(data []byte) error {
6751	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
6752	var s1 struct {
6753		Height gensupport.JSONFloat64 `json:"height"`
6754		Width  gensupport.JSONFloat64 `json:"width"`
6755		*NoMethod
6756	}
6757	s1.NoMethod = (*NoMethod)(s)
6758	if err := json.Unmarshal(data, &s1); err != nil {
6759		return err
6760	}
6761	s.Height = float64(s1.Height)
6762	s.Width = float64(s1.Width)
6763	return nil
6764}
6765
6766// GoogleCloudDocumentaiV1beta2DocumentPageFormField: A form field
6767// detected on the page.
6768type GoogleCloudDocumentaiV1beta2DocumentPageFormField struct {
6769	// CorrectedKeyText: Created for Labeling UI to export key text. If
6770	// corrections were made to the text identified by the
6771	// `field_name.text_anchor`, this field will contain the correction.
6772	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
6773
6774	// CorrectedValueText: Created for Labeling UI to export value text. If
6775	// corrections were made to the text identified by the
6776	// `field_value.text_anchor`, this field will contain the correction.
6777	CorrectedValueText string `json:"correctedValueText,omitempty"`
6778
6779	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`,
6780	// `Grand total`, `Phone number`, etc.
6781	FieldName *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldName,omitempty"`
6782
6783	// FieldValue: Layout for the FormField value.
6784	FieldValue *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldValue,omitempty"`
6785
6786	// NameDetectedLanguages: A list of detected languages for name together
6787	// with confidence.
6788	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
6789
6790	// Provenance: The history of this annotation.
6791	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
6792
6793	// ValueDetectedLanguages: A list of detected languages for value
6794	// together with confidence.
6795	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
6796
6797	// ValueType: If the value is non-textual, this field represents the
6798	// type. Current valid values are: - blank (this indicates the
6799	// field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
6800	ValueType string `json:"valueType,omitempty"`
6801
6802	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
6803	// unconditionally include in API requests. By default, fields with
6804	// empty or default values are omitted from API requests. However, any
6805	// non-pointer, non-interface field appearing in ForceSendFields will be
6806	// sent to the server regardless of whether the field is empty or not.
6807	// This may be used to include empty fields in Patch requests.
6808	ForceSendFields []string `json:"-"`
6809
6810	// NullFields is a list of field names (e.g. "CorrectedKeyText") to
6811	// include in API requests with the JSON null value. By default, fields
6812	// with empty values are omitted from API requests. However, any field
6813	// with an empty value appearing in NullFields will be sent to the
6814	// server as null. It is an error if a field in this list has a
6815	// non-empty value. This may be used to include null fields in Patch
6816	// requests.
6817	NullFields []string `json:"-"`
6818}
6819
6820func (s *GoogleCloudDocumentaiV1beta2DocumentPageFormField) MarshalJSON() ([]byte, error) {
6821	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageFormField
6822	raw := NoMethod(*s)
6823	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6824}
6825
6826// GoogleCloudDocumentaiV1beta2DocumentPageImage: Rendered image
6827// contents for this page.
6828type GoogleCloudDocumentaiV1beta2DocumentPageImage struct {
6829	// Content: Raw byte content of the image.
6830	Content string `json:"content,omitempty"`
6831
6832	// Height: Height of the image in pixels.
6833	Height int64 `json:"height,omitempty"`
6834
6835	// MimeType: Encoding mime type for the image.
6836	MimeType string `json:"mimeType,omitempty"`
6837
6838	// Width: Width of the image in pixels.
6839	Width int64 `json:"width,omitempty"`
6840
6841	// ForceSendFields is a list of field names (e.g. "Content") to
6842	// unconditionally include in API requests. By default, fields with
6843	// empty or default values are omitted from API requests. However, any
6844	// non-pointer, non-interface field appearing in ForceSendFields will be
6845	// sent to the server regardless of whether the field is empty or not.
6846	// This may be used to include empty fields in Patch requests.
6847	ForceSendFields []string `json:"-"`
6848
6849	// NullFields is a list of field names (e.g. "Content") to include in
6850	// API requests with the JSON null value. By default, fields with empty
6851	// values are omitted from API requests. However, any field with an
6852	// empty value appearing in NullFields will be sent to the server as
6853	// null. It is an error if a field in this list has a non-empty value.
6854	// This may be used to include null fields in Patch requests.
6855	NullFields []string `json:"-"`
6856}
6857
6858func (s *GoogleCloudDocumentaiV1beta2DocumentPageImage) MarshalJSON() ([]byte, error) {
6859	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImage
6860	raw := NoMethod(*s)
6861	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6862}
6863
6864// GoogleCloudDocumentaiV1beta2DocumentPageLayout: Visual element
6865// describing a layout unit on a page.
6866type GoogleCloudDocumentaiV1beta2DocumentPageLayout struct {
6867	// BoundingPoly: The bounding polygon for the Layout.
6868	BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
6869
6870	// Confidence: Confidence of the current Layout within context of the
6871	// object this layout is for. e.g. confidence can be for a single token,
6872	// a table, a visual element, etc. depending on context. Range [0, 1].
6873	Confidence float64 `json:"confidence,omitempty"`
6874
6875	// Orientation: Detected orientation for the Layout.
6876	//
6877	// Possible values:
6878	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
6879	//   "PAGE_UP" - Orientation is aligned with page up.
6880	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the
6881	// head 90 degrees clockwise from upright to read.
6882	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head
6883	// 180 degrees from upright to read.
6884	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head
6885	// 90 degrees counterclockwise from upright to read.
6886	Orientation string `json:"orientation,omitempty"`
6887
6888	// TextAnchor: Text anchor indexing into the Document.text.
6889	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
6890
6891	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
6892	// unconditionally include in API requests. By default, fields with
6893	// empty or default values are omitted from API requests. However, any
6894	// non-pointer, non-interface field appearing in ForceSendFields will be
6895	// sent to the server regardless of whether the field is empty or not.
6896	// This may be used to include empty fields in Patch requests.
6897	ForceSendFields []string `json:"-"`
6898
6899	// NullFields is a list of field names (e.g. "BoundingPoly") to include
6900	// in API requests with the JSON null value. By default, fields with
6901	// empty values are omitted from API requests. However, any field with
6902	// an empty value appearing in NullFields will be sent to the server as
6903	// null. It is an error if a field in this list has a non-empty value.
6904	// This may be used to include null fields in Patch requests.
6905	NullFields []string `json:"-"`
6906}
6907
6908func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) MarshalJSON() ([]byte, error) {
6909	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
6910	raw := NoMethod(*s)
6911	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6912}
6913
6914func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) UnmarshalJSON(data []byte) error {
6915	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
6916	var s1 struct {
6917		Confidence gensupport.JSONFloat64 `json:"confidence"`
6918		*NoMethod
6919	}
6920	s1.NoMethod = (*NoMethod)(s)
6921	if err := json.Unmarshal(data, &s1); err != nil {
6922		return err
6923	}
6924	s.Confidence = float64(s1.Confidence)
6925	return nil
6926}
6927
6928// GoogleCloudDocumentaiV1beta2DocumentPageLine: A collection of tokens
6929// that a human would perceive as a line. Does not cross column
6930// boundaries, can be horizontal, vertical, etc.
6931type GoogleCloudDocumentaiV1beta2DocumentPageLine struct {
6932	// DetectedLanguages: A list of detected languages together with
6933	// confidence.
6934	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6935
6936	// Layout: Layout for Line.
6937	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
6938
6939	// Provenance: The history of this annotation.
6940	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
6941
6942	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
6943	// to unconditionally include in API requests. By default, fields with
6944	// empty or default values are omitted from API requests. However, any
6945	// non-pointer, non-interface field appearing in ForceSendFields will be
6946	// sent to the server regardless of whether the field is empty or not.
6947	// This may be used to include empty fields in Patch requests.
6948	ForceSendFields []string `json:"-"`
6949
6950	// NullFields is a list of field names (e.g. "DetectedLanguages") to
6951	// include in API requests with the JSON null value. By default, fields
6952	// with empty values are omitted from API requests. However, any field
6953	// with an empty value appearing in NullFields will be sent to the
6954	// server as null. It is an error if a field in this list has a
6955	// non-empty value. This may be used to include null fields in Patch
6956	// requests.
6957	NullFields []string `json:"-"`
6958}
6959
6960func (s *GoogleCloudDocumentaiV1beta2DocumentPageLine) MarshalJSON() ([]byte, error) {
6961	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLine
6962	raw := NoMethod(*s)
6963	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6964}
6965
6966// GoogleCloudDocumentaiV1beta2DocumentPageMatrix: Representation for
6967// transformation matrix, intended to be compatible and used with OpenCV
6968// format for image manipulation.
6969type GoogleCloudDocumentaiV1beta2DocumentPageMatrix struct {
6970	// Cols: Number of columns in the matrix.
6971	Cols int64 `json:"cols,omitempty"`
6972
6973	// Data: The matrix data.
6974	Data string `json:"data,omitempty"`
6975
6976	// Rows: Number of rows in the matrix.
6977	Rows int64 `json:"rows,omitempty"`
6978
6979	// Type: This encodes information about what data type the matrix uses.
6980	// For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
6981	// of OpenCV primitive data types, please refer to
6982	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
6983	Type int64 `json:"type,omitempty"`
6984
6985	// ForceSendFields is a list of field names (e.g. "Cols") to
6986	// unconditionally include in API requests. By default, fields with
6987	// empty or default values are omitted from API requests. However, any
6988	// non-pointer, non-interface field appearing in ForceSendFields will be
6989	// sent to the server regardless of whether the field is empty or not.
6990	// This may be used to include empty fields in Patch requests.
6991	ForceSendFields []string `json:"-"`
6992
6993	// NullFields is a list of field names (e.g. "Cols") to include in API
6994	// requests with the JSON null value. By default, fields with empty
6995	// values are omitted from API requests. However, any field with an
6996	// empty value appearing in NullFields will be sent to the server as
6997	// null. It is an error if a field in this list has a non-empty value.
6998	// This may be used to include null fields in Patch requests.
6999	NullFields []string `json:"-"`
7000}
7001
7002func (s *GoogleCloudDocumentaiV1beta2DocumentPageMatrix) MarshalJSON() ([]byte, error) {
7003	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageMatrix
7004	raw := NoMethod(*s)
7005	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7006}
7007
7008// GoogleCloudDocumentaiV1beta2DocumentPageParagraph: A collection of
7009// lines that a human would perceive as a paragraph.
7010type GoogleCloudDocumentaiV1beta2DocumentPageParagraph struct {
7011	// DetectedLanguages: A list of detected languages together with
7012	// confidence.
7013	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7014
7015	// Layout: Layout for Paragraph.
7016	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
7017
7018	// Provenance: The history of this annotation.
7019	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
7020
7021	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
7022	// to unconditionally include in API requests. By default, fields with
7023	// empty or default values are omitted from API requests. However, any
7024	// non-pointer, non-interface field appearing in ForceSendFields will be
7025	// sent to the server regardless of whether the field is empty or not.
7026	// This may be used to include empty fields in Patch requests.
7027	ForceSendFields []string `json:"-"`
7028
7029	// NullFields is a list of field names (e.g. "DetectedLanguages") to
7030	// include in API requests with the JSON null value. By default, fields
7031	// with empty values are omitted from API requests. However, any field
7032	// with an empty value appearing in NullFields will be sent to the
7033	// server as null. It is an error if a field in this list has a
7034	// non-empty value. This may be used to include null fields in Patch
7035	// requests.
7036	NullFields []string `json:"-"`
7037}
7038
7039func (s *GoogleCloudDocumentaiV1beta2DocumentPageParagraph) MarshalJSON() ([]byte, error) {
7040	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageParagraph
7041	raw := NoMethod(*s)
7042	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7043}
7044
7045// GoogleCloudDocumentaiV1beta2DocumentPageTable: A table representation
7046// similar to HTML table structure.
7047type GoogleCloudDocumentaiV1beta2DocumentPageTable struct {
7048	// BodyRows: Body rows of the table.
7049	BodyRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"bodyRows,omitempty"`
7050
7051	// DetectedLanguages: A list of detected languages together with
7052	// confidence.
7053	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7054
7055	// HeaderRows: Header rows of the table.
7056	HeaderRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"headerRows,omitempty"`
7057
7058	// Layout: Layout for Table.
7059	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
7060
7061	// ForceSendFields is a list of field names (e.g. "BodyRows") to
7062	// unconditionally include in API requests. By default, fields with
7063	// empty or default values are omitted from API requests. However, any
7064	// non-pointer, non-interface field appearing in ForceSendFields will be
7065	// sent to the server regardless of whether the field is empty or not.
7066	// This may be used to include empty fields in Patch requests.
7067	ForceSendFields []string `json:"-"`
7068
7069	// NullFields is a list of field names (e.g. "BodyRows") to include in
7070	// API requests with the JSON null value. By default, fields with empty
7071	// values are omitted from API requests. However, any field with an
7072	// empty value appearing in NullFields will be sent to the server as
7073	// null. It is an error if a field in this list has a non-empty value.
7074	// This may be used to include null fields in Patch requests.
7075	NullFields []string `json:"-"`
7076}
7077
7078func (s *GoogleCloudDocumentaiV1beta2DocumentPageTable) MarshalJSON() ([]byte, error) {
7079	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTable
7080	raw := NoMethod(*s)
7081	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7082}
7083
7084// GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell: A cell
7085// representation inside the table.
7086type GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell struct {
7087	// ColSpan: How many columns this cell spans.
7088	ColSpan int64 `json:"colSpan,omitempty"`
7089
7090	// DetectedLanguages: A list of detected languages together with
7091	// confidence.
7092	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7093
7094	// Layout: Layout for TableCell.
7095	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
7096
7097	// RowSpan: How many rows this cell spans.
7098	RowSpan int64 `json:"rowSpan,omitempty"`
7099
7100	// ForceSendFields is a list of field names (e.g. "ColSpan") to
7101	// unconditionally include in API requests. By default, fields with
7102	// empty or default values are omitted from API requests. However, any
7103	// non-pointer, non-interface field appearing in ForceSendFields will be
7104	// sent to the server regardless of whether the field is empty or not.
7105	// This may be used to include empty fields in Patch requests.
7106	ForceSendFields []string `json:"-"`
7107
7108	// NullFields is a list of field names (e.g. "ColSpan") to include in
7109	// API requests with the JSON null value. By default, fields with empty
7110	// values are omitted from API requests. However, any field with an
7111	// empty value appearing in NullFields will be sent to the server as
7112	// null. It is an error if a field in this list has a non-empty value.
7113	// This may be used to include null fields in Patch requests.
7114	NullFields []string `json:"-"`
7115}
7116
7117func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
7118	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell
7119	raw := NoMethod(*s)
7120	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7121}
7122
7123// GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow: A row of table
7124// cells.
7125type GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow struct {
7126	// Cells: Cells that make up this row.
7127	Cells []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell `json:"cells,omitempty"`
7128
7129	// ForceSendFields is a list of field names (e.g. "Cells") to
7130	// unconditionally include in API requests. By default, fields with
7131	// empty or default values are omitted from API requests. However, any
7132	// non-pointer, non-interface field appearing in ForceSendFields will be
7133	// sent to the server regardless of whether the field is empty or not.
7134	// This may be used to include empty fields in Patch requests.
7135	ForceSendFields []string `json:"-"`
7136
7137	// NullFields is a list of field names (e.g. "Cells") to include in API
7138	// requests with the JSON null value. By default, fields with empty
7139	// values are omitted from API requests. However, any field with an
7140	// empty value appearing in NullFields will be sent to the server as
7141	// null. It is an error if a field in this list has a non-empty value.
7142	// This may be used to include null fields in Patch requests.
7143	NullFields []string `json:"-"`
7144}
7145
7146func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
7147	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
7148	raw := NoMethod(*s)
7149	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7150}
7151
7152// GoogleCloudDocumentaiV1beta2DocumentPageToken: A detected token.
7153type GoogleCloudDocumentaiV1beta2DocumentPageToken struct {
7154	// DetectedBreak: Detected break at the end of a Token.
7155	DetectedBreak *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
7156
7157	// DetectedLanguages: A list of detected languages together with
7158	// confidence.
7159	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7160
7161	// Layout: Layout for Token.
7162	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
7163
7164	// Provenance: The history of this annotation.
7165	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
7166
7167	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
7168	// unconditionally include in API requests. By default, fields with
7169	// empty or default values are omitted from API requests. However, any
7170	// non-pointer, non-interface field appearing in ForceSendFields will be
7171	// sent to the server regardless of whether the field is empty or not.
7172	// This may be used to include empty fields in Patch requests.
7173	ForceSendFields []string `json:"-"`
7174
7175	// NullFields is a list of field names (e.g. "DetectedBreak") to include
7176	// in API requests with the JSON null value. By default, fields with
7177	// empty values are omitted from API requests. However, any field with
7178	// an empty value appearing in NullFields will be sent to the server as
7179	// null. It is an error if a field in this list has a non-empty value.
7180	// This may be used to include null fields in Patch requests.
7181	NullFields []string `json:"-"`
7182}
7183
7184func (s *GoogleCloudDocumentaiV1beta2DocumentPageToken) MarshalJSON() ([]byte, error) {
7185	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageToken
7186	raw := NoMethod(*s)
7187	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7188}
7189
7190// GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak: Detected
7191// break at the end of a Token.
7192type GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak struct {
7193	// Type: Detected break type.
7194	//
7195	// Possible values:
7196	//   "TYPE_UNSPECIFIED" - Unspecified break type.
7197	//   "SPACE" - A single whitespace.
7198	//   "WIDE_SPACE" - A wider whitespace.
7199	//   "HYPHEN" - A hyphen that indicates that a token has been split
7200	// across lines.
7201	Type string `json:"type,omitempty"`
7202
7203	// ForceSendFields is a list of field names (e.g. "Type") to
7204	// unconditionally include in API requests. By default, fields with
7205	// empty or default values are omitted from API requests. However, any
7206	// non-pointer, non-interface field appearing in ForceSendFields will be
7207	// sent to the server regardless of whether the field is empty or not.
7208	// This may be used to include empty fields in Patch requests.
7209	ForceSendFields []string `json:"-"`
7210
7211	// NullFields is a list of field names (e.g. "Type") to include in API
7212	// requests with the JSON null value. By default, fields with empty
7213	// values are omitted from API requests. However, any field with an
7214	// empty value appearing in NullFields will be sent to the server as
7215	// null. It is an error if a field in this list has a non-empty value.
7216	// This may be used to include null fields in Patch requests.
7217	NullFields []string `json:"-"`
7218}
7219
7220func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
7221	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
7222	raw := NoMethod(*s)
7223	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7224}
7225
7226// GoogleCloudDocumentaiV1beta2DocumentPageVisualElement: Detected
7227// non-text visual elements e.g. checkbox, signature etc. on the page.
7228type GoogleCloudDocumentaiV1beta2DocumentPageVisualElement struct {
7229	// DetectedLanguages: A list of detected languages together with
7230	// confidence.
7231	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7232
7233	// Layout: Layout for VisualElement.
7234	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
7235
7236	// Type: Type of the VisualElement.
7237	Type string `json:"type,omitempty"`
7238
7239	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
7240	// to unconditionally include in API requests. By default, fields with
7241	// empty or default values are omitted from API requests. However, any
7242	// non-pointer, non-interface field appearing in ForceSendFields will be
7243	// sent to the server regardless of whether the field is empty or not.
7244	// This may be used to include empty fields in Patch requests.
7245	ForceSendFields []string `json:"-"`
7246
7247	// NullFields is a list of field names (e.g. "DetectedLanguages") to
7248	// include in API requests with the JSON null value. By default, fields
7249	// with empty values are omitted from API requests. However, any field
7250	// with an empty value appearing in NullFields will be sent to the
7251	// server as null. It is an error if a field in this list has a
7252	// non-empty value. This may be used to include null fields in Patch
7253	// requests.
7254	NullFields []string `json:"-"`
7255}
7256
7257func (s *GoogleCloudDocumentaiV1beta2DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
7258	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
7259	raw := NoMethod(*s)
7260	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7261}
7262
7263// GoogleCloudDocumentaiV1beta2DocumentProvenance: Structure to identify
7264// provenance relationships between annotations in different revisions.
7265type GoogleCloudDocumentaiV1beta2DocumentProvenance struct {
7266	// Id: The Id of this operation. Needs to be unique within the scope of
7267	// the revision.
7268	Id int64 `json:"id,omitempty"`
7269
7270	// Parents: References to the original elements that are replaced.
7271	Parents []*GoogleCloudDocumentaiV1beta2DocumentProvenanceParent `json:"parents,omitempty"`
7272
7273	// Revision: The index of the revision that produced this element.
7274	Revision int64 `json:"revision,omitempty"`
7275
7276	// Type: The type of provenance operation.
7277	//
7278	// Possible values:
7279	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified.
7280	//   "ADD" - Add an element. Implicit if no `parents` are set for the
7281	// provenance.
7282	//   "REMOVE" - The element is removed. No `parents` should be set.
7283	//   "REPLACE" - Explicitly replaces the element(s) identified by
7284	// `parents`.
7285	//   "EVAL_REQUESTED" - Element is requested for human review.
7286	//   "EVAL_APPROVED" - Element is reviewed and approved at human review,
7287	// confidence will be set to 1.0.
7288	//   "EVAL_SKIPPED" - Element is skipped in the validation process.
7289	Type string `json:"type,omitempty"`
7290
7291	// ForceSendFields is a list of field names (e.g. "Id") to
7292	// unconditionally include in API requests. By default, fields with
7293	// empty or default values are omitted from API requests. However, any
7294	// non-pointer, non-interface field appearing in ForceSendFields will be
7295	// sent to the server regardless of whether the field is empty or not.
7296	// This may be used to include empty fields in Patch requests.
7297	ForceSendFields []string `json:"-"`
7298
7299	// NullFields is a list of field names (e.g. "Id") to include in API
7300	// requests with the JSON null value. By default, fields with empty
7301	// values are omitted from API requests. However, any field with an
7302	// empty value appearing in NullFields will be sent to the server as
7303	// null. It is an error if a field in this list has a non-empty value.
7304	// This may be used to include null fields in Patch requests.
7305	NullFields []string `json:"-"`
7306}
7307
7308func (s *GoogleCloudDocumentaiV1beta2DocumentProvenance) MarshalJSON() ([]byte, error) {
7309	type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenance
7310	raw := NoMethod(*s)
7311	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7312}
7313
7314// GoogleCloudDocumentaiV1beta2DocumentProvenanceParent: Structure for
7315// referencing parent provenances. When an element replaces one of more
7316// other elements parent references identify the elements that are
7317// replaced.
7318type GoogleCloudDocumentaiV1beta2DocumentProvenanceParent struct {
7319	// Id: The id of the parent provenance.
7320	Id int64 `json:"id,omitempty"`
7321
7322	// Index: The index of the parent item in the corresponding item list
7323	// (eg. list of entities, properties within entities, etc.) on parent
7324	// revision.
7325	Index int64 `json:"index,omitempty"`
7326
7327	// Revision: The index of the [Document.revisions] identifying the
7328	// parent revision.
7329	Revision int64 `json:"revision,omitempty"`
7330
7331	// ForceSendFields is a list of field names (e.g. "Id") to
7332	// unconditionally include in API requests. By default, fields with
7333	// empty or default values are omitted from API requests. However, any
7334	// non-pointer, non-interface field appearing in ForceSendFields will be
7335	// sent to the server regardless of whether the field is empty or not.
7336	// This may be used to include empty fields in Patch requests.
7337	ForceSendFields []string `json:"-"`
7338
7339	// NullFields is a list of field names (e.g. "Id") to include in API
7340	// requests with the JSON null value. By default, fields with empty
7341	// values are omitted from API requests. However, any field with an
7342	// empty value appearing in NullFields will be sent to the server as
7343	// null. It is an error if a field in this list has a non-empty value.
7344	// This may be used to include null fields in Patch requests.
7345	NullFields []string `json:"-"`
7346}
7347
7348func (s *GoogleCloudDocumentaiV1beta2DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
7349	type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
7350	raw := NoMethod(*s)
7351	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7352}
7353
7354// GoogleCloudDocumentaiV1beta2DocumentRevision: Contains past or
7355// forward revisions of this document.
7356type GoogleCloudDocumentaiV1beta2DocumentRevision struct {
7357	// Agent: If the change was made by a person specify the name or id of
7358	// that person.
7359	Agent string `json:"agent,omitempty"`
7360
7361	// CreateTime: The time that the revision was created.
7362	CreateTime string `json:"createTime,omitempty"`
7363
7364	// HumanReview: Human Review information of this revision.
7365	HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"`
7366
7367	// Id: Id of the revision. Unique within the context of the document.
7368	Id string `json:"id,omitempty"`
7369
7370	// Parent: The revisions that this revision is based on. This can
7371	// include one or more parent (when documents are merged.) This field
7372	// represents the index into the `revisions` field.
7373	Parent []int64 `json:"parent,omitempty"`
7374
7375	// Processor: If the annotation was made by processor identify the
7376	// processor by its resource name.
7377	Processor string `json:"processor,omitempty"`
7378
7379	// ForceSendFields is a list of field names (e.g. "Agent") to
7380	// unconditionally include in API requests. By default, fields with
7381	// empty or default values are omitted from API requests. However, any
7382	// non-pointer, non-interface field appearing in ForceSendFields will be
7383	// sent to the server regardless of whether the field is empty or not.
7384	// This may be used to include empty fields in Patch requests.
7385	ForceSendFields []string `json:"-"`
7386
7387	// NullFields is a list of field names (e.g. "Agent") to include in API
7388	// requests with the JSON null value. By default, fields with empty
7389	// values are omitted from API requests. However, any field with an
7390	// empty value appearing in NullFields will be sent to the server as
7391	// null. It is an error if a field in this list has a non-empty value.
7392	// This may be used to include null fields in Patch requests.
7393	NullFields []string `json:"-"`
7394}
7395
7396func (s *GoogleCloudDocumentaiV1beta2DocumentRevision) MarshalJSON() ([]byte, error) {
7397	type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevision
7398	raw := NoMethod(*s)
7399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7400}
7401
7402// GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview: Human Review
7403// information of the document.
7404type GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview struct {
7405	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
7406	State string `json:"state,omitempty"`
7407
7408	// StateMessage: A message providing more details about the current
7409	// state of processing. For example, the rejection reason when the state
7410	// is `rejected`.
7411	StateMessage string `json:"stateMessage,omitempty"`
7412
7413	// ForceSendFields is a list of field names (e.g. "State") to
7414	// unconditionally include in API requests. By default, fields with
7415	// empty or default values are omitted from API requests. However, any
7416	// non-pointer, non-interface field appearing in ForceSendFields will be
7417	// sent to the server regardless of whether the field is empty or not.
7418	// This may be used to include empty fields in Patch requests.
7419	ForceSendFields []string `json:"-"`
7420
7421	// NullFields is a list of field names (e.g. "State") to include in API
7422	// requests with the JSON null value. By default, fields with empty
7423	// values are omitted from API requests. However, any field with an
7424	// empty value appearing in NullFields will be sent to the server as
7425	// null. It is an error if a field in this list has a non-empty value.
7426	// This may be used to include null fields in Patch requests.
7427	NullFields []string `json:"-"`
7428}
7429
7430func (s *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
7431	type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview
7432	raw := NoMethod(*s)
7433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7434}
7435
7436// GoogleCloudDocumentaiV1beta2DocumentShardInfo: For a large document,
7437// sharding may be performed to produce several document shards. Each
7438// document shard contains this field to detail which shard it is.
7439type GoogleCloudDocumentaiV1beta2DocumentShardInfo struct {
7440	// ShardCount: Total number of shards.
7441	ShardCount int64 `json:"shardCount,omitempty,string"`
7442
7443	// ShardIndex: The 0-based index of this shard.
7444	ShardIndex int64 `json:"shardIndex,omitempty,string"`
7445
7446	// TextOffset: The index of the first character in Document.text in the
7447	// overall document global text.
7448	TextOffset int64 `json:"textOffset,omitempty,string"`
7449
7450	// ForceSendFields is a list of field names (e.g. "ShardCount") to
7451	// unconditionally include in API requests. By default, fields with
7452	// empty or default values are omitted from API requests. However, any
7453	// non-pointer, non-interface field appearing in ForceSendFields will be
7454	// sent to the server regardless of whether the field is empty or not.
7455	// This may be used to include empty fields in Patch requests.
7456	ForceSendFields []string `json:"-"`
7457
7458	// NullFields is a list of field names (e.g. "ShardCount") to include in
7459	// API requests with the JSON null value. By default, fields with empty
7460	// values are omitted from API requests. However, any field with an
7461	// empty value appearing in NullFields will be sent to the server as
7462	// null. It is an error if a field in this list has a non-empty value.
7463	// This may be used to include null fields in Patch requests.
7464	NullFields []string `json:"-"`
7465}
7466
7467func (s *GoogleCloudDocumentaiV1beta2DocumentShardInfo) MarshalJSON() ([]byte, error) {
7468	type NoMethod GoogleCloudDocumentaiV1beta2DocumentShardInfo
7469	raw := NoMethod(*s)
7470	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7471}
7472
7473// GoogleCloudDocumentaiV1beta2DocumentStyle: Annotation for common text
7474// style attributes. This adheres to CSS conventions as much as
7475// possible.
7476type GoogleCloudDocumentaiV1beta2DocumentStyle struct {
7477	// BackgroundColor: Text background color.
7478	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
7479
7480	// Color: Text color.
7481	Color *GoogleTypeColor `json:"color,omitempty"`
7482
7483	// FontSize: Font size.
7484	FontSize *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize `json:"fontSize,omitempty"`
7485
7486	// FontWeight: Font weight. Possible values are normal, bold, bolder,
7487	// and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
7488	FontWeight string `json:"fontWeight,omitempty"`
7489
7490	// TextAnchor: Text anchor indexing into the Document.text.
7491	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
7492
7493	// TextDecoration: Text decoration. Follows CSS standard.
7494	// https://www.w3schools.com/cssref/pr_text_text-decoration.asp
7495	TextDecoration string `json:"textDecoration,omitempty"`
7496
7497	// TextStyle: Text style. Possible values are normal, italic, and
7498	// oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
7499	TextStyle string `json:"textStyle,omitempty"`
7500
7501	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
7502	// unconditionally include in API requests. By default, fields with
7503	// empty or default values are omitted from API requests. However, any
7504	// non-pointer, non-interface field appearing in ForceSendFields will be
7505	// sent to the server regardless of whether the field is empty or not.
7506	// This may be used to include empty fields in Patch requests.
7507	ForceSendFields []string `json:"-"`
7508
7509	// NullFields is a list of field names (e.g. "BackgroundColor") to
7510	// include in API requests with the JSON null value. By default, fields
7511	// with empty values are omitted from API requests. However, any field
7512	// with an empty value appearing in NullFields will be sent to the
7513	// server as null. It is an error if a field in this list has a
7514	// non-empty value. This may be used to include null fields in Patch
7515	// requests.
7516	NullFields []string `json:"-"`
7517}
7518
7519func (s *GoogleCloudDocumentaiV1beta2DocumentStyle) MarshalJSON() ([]byte, error) {
7520	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyle
7521	raw := NoMethod(*s)
7522	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7523}
7524
7525// GoogleCloudDocumentaiV1beta2DocumentStyleFontSize: Font size with
7526// unit.
7527type GoogleCloudDocumentaiV1beta2DocumentStyleFontSize struct {
7528	// Size: Font size for the text.
7529	Size float64 `json:"size,omitempty"`
7530
7531	// Unit: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
7532	Unit string `json:"unit,omitempty"`
7533
7534	// ForceSendFields is a list of field names (e.g. "Size") to
7535	// unconditionally include in API requests. By default, fields with
7536	// empty or default values are omitted from API requests. However, any
7537	// non-pointer, non-interface field appearing in ForceSendFields will be
7538	// sent to the server regardless of whether the field is empty or not.
7539	// This may be used to include empty fields in Patch requests.
7540	ForceSendFields []string `json:"-"`
7541
7542	// NullFields is a list of field names (e.g. "Size") to include in API
7543	// requests with the JSON null value. By default, fields with empty
7544	// values are omitted from API requests. However, any field with an
7545	// empty value appearing in NullFields will be sent to the server as
7546	// null. It is an error if a field in this list has a non-empty value.
7547	// This may be used to include null fields in Patch requests.
7548	NullFields []string `json:"-"`
7549}
7550
7551func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
7552	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
7553	raw := NoMethod(*s)
7554	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7555}
7556
7557func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
7558	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
7559	var s1 struct {
7560		Size gensupport.JSONFloat64 `json:"size"`
7561		*NoMethod
7562	}
7563	s1.NoMethod = (*NoMethod)(s)
7564	if err := json.Unmarshal(data, &s1); err != nil {
7565		return err
7566	}
7567	s.Size = float64(s1.Size)
7568	return nil
7569}
7570
7571// GoogleCloudDocumentaiV1beta2DocumentTextAnchor: Text reference
7572// indexing into the Document.text.
7573type GoogleCloudDocumentaiV1beta2DocumentTextAnchor struct {
7574	// Content: Contains the content of the text span so that users do not
7575	// have to look it up in the text_segments.
7576	Content string `json:"content,omitempty"`
7577
7578	// TextSegments: The text segments from the Document.text.
7579	TextSegments []*GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
7580
7581	// ForceSendFields is a list of field names (e.g. "Content") to
7582	// unconditionally include in API requests. By default, fields with
7583	// empty or default values are omitted from API requests. However, any
7584	// non-pointer, non-interface field appearing in ForceSendFields will be
7585	// sent to the server regardless of whether the field is empty or not.
7586	// This may be used to include empty fields in Patch requests.
7587	ForceSendFields []string `json:"-"`
7588
7589	// NullFields is a list of field names (e.g. "Content") to include in
7590	// API requests with the JSON null value. By default, fields with empty
7591	// values are omitted from API requests. However, any field with an
7592	// empty value appearing in NullFields will be sent to the server as
7593	// null. It is an error if a field in this list has a non-empty value.
7594	// This may be used to include null fields in Patch requests.
7595	NullFields []string `json:"-"`
7596}
7597
7598func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchor) MarshalJSON() ([]byte, error) {
7599	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchor
7600	raw := NoMethod(*s)
7601	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7602}
7603
7604// GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment: A text
7605// segment in the Document.text. The indices may be out of bounds which
7606// indicate that the text extends into another document shard for large
7607// sharded documents. See ShardInfo.text_offset
7608type GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment struct {
7609	// EndIndex: TextSegment half open end UTF-8 char index in the
7610	// Document.text.
7611	EndIndex int64 `json:"endIndex,omitempty,string"`
7612
7613	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
7614	StartIndex int64 `json:"startIndex,omitempty,string"`
7615
7616	// ForceSendFields is a list of field names (e.g. "EndIndex") to
7617	// unconditionally include in API requests. By default, fields with
7618	// empty or default values are omitted from API requests. However, any
7619	// non-pointer, non-interface field appearing in ForceSendFields will be
7620	// sent to the server regardless of whether the field is empty or not.
7621	// This may be used to include empty fields in Patch requests.
7622	ForceSendFields []string `json:"-"`
7623
7624	// NullFields is a list of field names (e.g. "EndIndex") to include in
7625	// API requests with the JSON null value. By default, fields with empty
7626	// values are omitted from API requests. However, any field with an
7627	// empty value appearing in NullFields will be sent to the server as
7628	// null. It is an error if a field in this list has a non-empty value.
7629	// This may be used to include null fields in Patch requests.
7630	NullFields []string `json:"-"`
7631}
7632
7633func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
7634	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
7635	raw := NoMethod(*s)
7636	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7637}
7638
7639// GoogleCloudDocumentaiV1beta2DocumentTextChange: This message is used
7640// for text changes aka. OCR corrections.
7641type GoogleCloudDocumentaiV1beta2DocumentTextChange struct {
7642	// ChangedText: The text that replaces the text identified in the
7643	// `text_anchor`.
7644	ChangedText string `json:"changedText,omitempty"`
7645
7646	// Provenance: The history of this annotation.
7647	Provenance []*GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
7648
7649	// TextAnchor: Provenance of the correction. Text anchor indexing into
7650	// the Document.text. There can only be a single
7651	// `TextAnchor.text_segments` element. If the start and end index of the
7652	// text segment are the same, the text change is inserted before that
7653	// index.
7654	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
7655
7656	// ForceSendFields is a list of field names (e.g. "ChangedText") to
7657	// unconditionally include in API requests. By default, fields with
7658	// empty or default values are omitted from API requests. However, any
7659	// non-pointer, non-interface field appearing in ForceSendFields will be
7660	// sent to the server regardless of whether the field is empty or not.
7661	// This may be used to include empty fields in Patch requests.
7662	ForceSendFields []string `json:"-"`
7663
7664	// NullFields is a list of field names (e.g. "ChangedText") to include
7665	// in API requests with the JSON null value. By default, fields with
7666	// empty values are omitted from API requests. However, any field with
7667	// an empty value appearing in NullFields will be sent to the server as
7668	// null. It is an error if a field in this list has a non-empty value.
7669	// This may be used to include null fields in Patch requests.
7670	NullFields []string `json:"-"`
7671}
7672
7673func (s *GoogleCloudDocumentaiV1beta2DocumentTextChange) MarshalJSON() ([]byte, error) {
7674	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextChange
7675	raw := NoMethod(*s)
7676	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7677}
7678
7679// GoogleCloudDocumentaiV1beta2GcsDestination: The Google Cloud Storage
7680// location where the output file will be written to.
7681type GoogleCloudDocumentaiV1beta2GcsDestination struct {
7682	Uri string `json:"uri,omitempty"`
7683
7684	// ForceSendFields is a list of field names (e.g. "Uri") to
7685	// unconditionally include in API requests. By default, fields with
7686	// empty or default values are omitted from API requests. However, any
7687	// non-pointer, non-interface field appearing in ForceSendFields will be
7688	// sent to the server regardless of whether the field is empty or not.
7689	// This may be used to include empty fields in Patch requests.
7690	ForceSendFields []string `json:"-"`
7691
7692	// NullFields is a list of field names (e.g. "Uri") to include in API
7693	// requests with the JSON null value. By default, fields with empty
7694	// values are omitted from API requests. However, any field with an
7695	// empty value appearing in NullFields will be sent to the server as
7696	// null. It is an error if a field in this list has a non-empty value.
7697	// This may be used to include null fields in Patch requests.
7698	NullFields []string `json:"-"`
7699}
7700
7701func (s *GoogleCloudDocumentaiV1beta2GcsDestination) MarshalJSON() ([]byte, error) {
7702	type NoMethod GoogleCloudDocumentaiV1beta2GcsDestination
7703	raw := NoMethod(*s)
7704	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7705}
7706
7707// GoogleCloudDocumentaiV1beta2GcsSource: The Google Cloud Storage
7708// location where the input file will be read from.
7709type GoogleCloudDocumentaiV1beta2GcsSource struct {
7710	Uri string `json:"uri,omitempty"`
7711
7712	// ForceSendFields is a list of field names (e.g. "Uri") to
7713	// unconditionally include in API requests. By default, fields with
7714	// empty or default values are omitted from API requests. However, any
7715	// non-pointer, non-interface field appearing in ForceSendFields will be
7716	// sent to the server regardless of whether the field is empty or not.
7717	// This may be used to include empty fields in Patch requests.
7718	ForceSendFields []string `json:"-"`
7719
7720	// NullFields is a list of field names (e.g. "Uri") to include in API
7721	// requests with the JSON null value. By default, fields with empty
7722	// values are omitted from API requests. However, any field with an
7723	// empty value appearing in NullFields will be sent to the server as
7724	// null. It is an error if a field in this list has a non-empty value.
7725	// This may be used to include null fields in Patch requests.
7726	NullFields []string `json:"-"`
7727}
7728
7729func (s *GoogleCloudDocumentaiV1beta2GcsSource) MarshalJSON() ([]byte, error) {
7730	type NoMethod GoogleCloudDocumentaiV1beta2GcsSource
7731	raw := NoMethod(*s)
7732	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7733}
7734
7735// GoogleCloudDocumentaiV1beta2InputConfig: The desired input location
7736// and metadata.
7737type GoogleCloudDocumentaiV1beta2InputConfig struct {
7738	// Contents: Content in bytes, represented as a stream of bytes. Note:
7739	// As with all `bytes` fields, proto buffer messages use a pure binary
7740	// representation, whereas JSON representations use base64. This field
7741	// only works for synchronous ProcessDocument method.
7742	Contents string `json:"contents,omitempty"`
7743
7744	// GcsSource: The Google Cloud Storage location to read the input from.
7745	// This must be a single file.
7746	GcsSource *GoogleCloudDocumentaiV1beta2GcsSource `json:"gcsSource,omitempty"`
7747
7748	// MimeType: Required. Mimetype of the input. Current supported
7749	// mimetypes are application/pdf, image/tiff, and image/gif. In
7750	// addition, application/json type is supported for requests with
7751	// ProcessDocumentRequest.automl_params field set. The JSON file needs
7752	// to be in Document format.
7753	MimeType string `json:"mimeType,omitempty"`
7754
7755	// ForceSendFields is a list of field names (e.g. "Contents") to
7756	// unconditionally include in API requests. By default, fields with
7757	// empty or default values are omitted from API requests. However, any
7758	// non-pointer, non-interface field appearing in ForceSendFields will be
7759	// sent to the server regardless of whether the field is empty or not.
7760	// This may be used to include empty fields in Patch requests.
7761	ForceSendFields []string `json:"-"`
7762
7763	// NullFields is a list of field names (e.g. "Contents") to include in
7764	// API requests with the JSON null value. By default, fields with empty
7765	// values are omitted from API requests. However, any field with an
7766	// empty value appearing in NullFields will be sent to the server as
7767	// null. It is an error if a field in this list has a non-empty value.
7768	// This may be used to include null fields in Patch requests.
7769	NullFields []string `json:"-"`
7770}
7771
7772func (s *GoogleCloudDocumentaiV1beta2InputConfig) MarshalJSON() ([]byte, error) {
7773	type NoMethod GoogleCloudDocumentaiV1beta2InputConfig
7774	raw := NoMethod(*s)
7775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7776}
7777
7778// GoogleCloudDocumentaiV1beta2NormalizedVertex: A vertex represents a
7779// 2D point in the image. NOTE: the normalized vertex coordinates are
7780// relative to the original image and range from 0 to 1.
7781type GoogleCloudDocumentaiV1beta2NormalizedVertex struct {
7782	// X: X coordinate.
7783	X float64 `json:"x,omitempty"`
7784
7785	// Y: Y coordinate (starts from the top of the image).
7786	Y float64 `json:"y,omitempty"`
7787
7788	// ForceSendFields is a list of field names (e.g. "X") to
7789	// unconditionally include in API requests. By default, fields with
7790	// empty or default values are omitted from API requests. However, any
7791	// non-pointer, non-interface field appearing in ForceSendFields will be
7792	// sent to the server regardless of whether the field is empty or not.
7793	// This may be used to include empty fields in Patch requests.
7794	ForceSendFields []string `json:"-"`
7795
7796	// NullFields is a list of field names (e.g. "X") to include in API
7797	// requests with the JSON null value. By default, fields with empty
7798	// values are omitted from API requests. However, any field with an
7799	// empty value appearing in NullFields will be sent to the server as
7800	// null. It is an error if a field in this list has a non-empty value.
7801	// This may be used to include null fields in Patch requests.
7802	NullFields []string `json:"-"`
7803}
7804
7805func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) MarshalJSON() ([]byte, error) {
7806	type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
7807	raw := NoMethod(*s)
7808	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7809}
7810
7811func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) UnmarshalJSON(data []byte) error {
7812	type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
7813	var s1 struct {
7814		X gensupport.JSONFloat64 `json:"x"`
7815		Y gensupport.JSONFloat64 `json:"y"`
7816		*NoMethod
7817	}
7818	s1.NoMethod = (*NoMethod)(s)
7819	if err := json.Unmarshal(data, &s1); err != nil {
7820		return err
7821	}
7822	s.X = float64(s1.X)
7823	s.Y = float64(s1.Y)
7824	return nil
7825}
7826
7827// GoogleCloudDocumentaiV1beta2OperationMetadata: Contains metadata for
7828// the BatchProcessDocuments operation.
7829type GoogleCloudDocumentaiV1beta2OperationMetadata struct {
7830	// CreateTime: The creation time of the operation.
7831	CreateTime string `json:"createTime,omitempty"`
7832
7833	// State: The state of the current batch processing.
7834	//
7835	// Possible values:
7836	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
7837	// state is omitted.
7838	//   "ACCEPTED" - Request is received.
7839	//   "WAITING" - Request operation is waiting for scheduling.
7840	//   "RUNNING" - Request is being processed.
7841	//   "SUCCEEDED" - The batch processing completed successfully.
7842	//   "CANCELLED" - The batch processing was cancelled.
7843	//   "FAILED" - The batch processing has failed.
7844	State string `json:"state,omitempty"`
7845
7846	// StateMessage: A message providing more details about the current
7847	// state of processing.
7848	StateMessage string `json:"stateMessage,omitempty"`
7849
7850	// UpdateTime: The last update time of the operation.
7851	UpdateTime string `json:"updateTime,omitempty"`
7852
7853	// ForceSendFields is a list of field names (e.g. "CreateTime") to
7854	// unconditionally include in API requests. By default, fields with
7855	// empty or default values are omitted from API requests. However, any
7856	// non-pointer, non-interface field appearing in ForceSendFields will be
7857	// sent to the server regardless of whether the field is empty or not.
7858	// This may be used to include empty fields in Patch requests.
7859	ForceSendFields []string `json:"-"`
7860
7861	// NullFields is a list of field names (e.g. "CreateTime") to include in
7862	// API requests with the JSON null value. By default, fields with empty
7863	// values are omitted from API requests. However, any field with an
7864	// empty value appearing in NullFields will be sent to the server as
7865	// null. It is an error if a field in this list has a non-empty value.
7866	// This may be used to include null fields in Patch requests.
7867	NullFields []string `json:"-"`
7868}
7869
7870func (s *GoogleCloudDocumentaiV1beta2OperationMetadata) MarshalJSON() ([]byte, error) {
7871	type NoMethod GoogleCloudDocumentaiV1beta2OperationMetadata
7872	raw := NoMethod(*s)
7873	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7874}
7875
7876// GoogleCloudDocumentaiV1beta2OutputConfig: The desired output location
7877// and metadata.
7878type GoogleCloudDocumentaiV1beta2OutputConfig struct {
7879	// GcsDestination: The Google Cloud Storage location to write the output
7880	// to.
7881	GcsDestination *GoogleCloudDocumentaiV1beta2GcsDestination `json:"gcsDestination,omitempty"`
7882
7883	// PagesPerShard: The max number of pages to include into each output
7884	// Document shard JSON on Google Cloud Storage. The valid range is [1,
7885	// 100]. If not specified, the default value is 20. For example, for one
7886	// pdf file with 100 pages, 100 parsed pages will be produced. If
7887	// `pages_per_shard` = 20, then 5 Document shard JSON files each
7888	// containing 20 parsed pages will be written under the prefix
7889	// OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x
7890	// and y are 1-indexed page numbers. Example GCS outputs with 157 pages
7891	// and pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json
7892	// pages-101-to-150.json pages-151-to-157.json
7893	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
7894
7895	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
7896	// unconditionally include in API requests. By default, fields with
7897	// empty or default values are omitted from API requests. However, any
7898	// non-pointer, non-interface field appearing in ForceSendFields will be
7899	// sent to the server regardless of whether the field is empty or not.
7900	// This may be used to include empty fields in Patch requests.
7901	ForceSendFields []string `json:"-"`
7902
7903	// NullFields is a list of field names (e.g. "GcsDestination") to
7904	// include in API requests with the JSON null value. By default, fields
7905	// with empty values are omitted from API requests. However, any field
7906	// with an empty value appearing in NullFields will be sent to the
7907	// server as null. It is an error if a field in this list has a
7908	// non-empty value. This may be used to include null fields in Patch
7909	// requests.
7910	NullFields []string `json:"-"`
7911}
7912
7913func (s *GoogleCloudDocumentaiV1beta2OutputConfig) MarshalJSON() ([]byte, error) {
7914	type NoMethod GoogleCloudDocumentaiV1beta2OutputConfig
7915	raw := NoMethod(*s)
7916	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7917}
7918
7919// GoogleCloudDocumentaiV1beta2ProcessDocumentResponse: Response to a
7920// single document processing request.
7921type GoogleCloudDocumentaiV1beta2ProcessDocumentResponse struct {
7922	// InputConfig: Information about the input file. This is the same as
7923	// the corresponding input config in the request.
7924	InputConfig *GoogleCloudDocumentaiV1beta2InputConfig `json:"inputConfig,omitempty"`
7925
7926	// OutputConfig: The output location of the parsed responses. The
7927	// responses are written to this location as JSON-serialized `Document`
7928	// objects.
7929	OutputConfig *GoogleCloudDocumentaiV1beta2OutputConfig `json:"outputConfig,omitempty"`
7930
7931	// ForceSendFields is a list of field names (e.g. "InputConfig") to
7932	// unconditionally include in API requests. By default, fields with
7933	// empty or default values are omitted from API requests. However, any
7934	// non-pointer, non-interface field appearing in ForceSendFields will be
7935	// sent to the server regardless of whether the field is empty or not.
7936	// This may be used to include empty fields in Patch requests.
7937	ForceSendFields []string `json:"-"`
7938
7939	// NullFields is a list of field names (e.g. "InputConfig") to include
7940	// in API requests with the JSON null value. By default, fields with
7941	// empty values are omitted from API requests. However, any field with
7942	// an empty value appearing in NullFields will be sent to the server as
7943	// null. It is an error if a field in this list has a non-empty value.
7944	// This may be used to include null fields in Patch requests.
7945	NullFields []string `json:"-"`
7946}
7947
7948func (s *GoogleCloudDocumentaiV1beta2ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
7949	type NoMethod GoogleCloudDocumentaiV1beta2ProcessDocumentResponse
7950	raw := NoMethod(*s)
7951	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7952}
7953
7954// GoogleCloudDocumentaiV1beta2Vertex: A vertex represents a 2D point in
7955// the image. NOTE: the vertex coordinates are in the same scale as the
7956// original image.
7957type GoogleCloudDocumentaiV1beta2Vertex struct {
7958	// X: X coordinate.
7959	X int64 `json:"x,omitempty"`
7960
7961	// Y: Y coordinate (starts from the top of the image).
7962	Y int64 `json:"y,omitempty"`
7963
7964	// ForceSendFields is a list of field names (e.g. "X") to
7965	// unconditionally include in API requests. By default, fields with
7966	// empty or default values are omitted from API requests. However, any
7967	// non-pointer, non-interface field appearing in ForceSendFields will be
7968	// sent to the server regardless of whether the field is empty or not.
7969	// This may be used to include empty fields in Patch requests.
7970	ForceSendFields []string `json:"-"`
7971
7972	// NullFields is a list of field names (e.g. "X") to include in API
7973	// requests with the JSON null value. By default, fields with empty
7974	// values are omitted from API requests. However, any field with an
7975	// empty value appearing in NullFields will be sent to the server as
7976	// null. It is an error if a field in this list has a non-empty value.
7977	// This may be used to include null fields in Patch requests.
7978	NullFields []string `json:"-"`
7979}
7980
7981func (s *GoogleCloudDocumentaiV1beta2Vertex) MarshalJSON() ([]byte, error) {
7982	type NoMethod GoogleCloudDocumentaiV1beta2Vertex
7983	raw := NoMethod(*s)
7984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7985}
7986
7987// GoogleCloudDocumentaiV1beta3BatchProcessMetadata: The long running
7988// operation metadata for batch process method.
7989type GoogleCloudDocumentaiV1beta3BatchProcessMetadata struct {
7990	// CreateTime: The creation time of the operation.
7991	CreateTime string `json:"createTime,omitempty"`
7992
7993	// IndividualProcessStatuses: The list of response details of each
7994	// document.
7995	IndividualProcessStatuses []*GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
7996
7997	// State: The state of the current batch processing.
7998	//
7999	// Possible values:
8000	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
8001	// state is omitted.
8002	//   "WAITING" - Request operation is waiting for scheduling.
8003	//   "RUNNING" - Request is being processed.
8004	//   "SUCCEEDED" - The batch processing completed successfully.
8005	//   "CANCELLING" - The batch processing was being cancelled.
8006	//   "CANCELLED" - The batch processing was cancelled.
8007	//   "FAILED" - The batch processing has failed.
8008	State string `json:"state,omitempty"`
8009
8010	// StateMessage: A message providing more details about the current
8011	// state of processing. For example, the error message if the operation
8012	// is failed.
8013	StateMessage string `json:"stateMessage,omitempty"`
8014
8015	// UpdateTime: The last update time of the operation.
8016	UpdateTime string `json:"updateTime,omitempty"`
8017
8018	// ForceSendFields is a list of field names (e.g. "CreateTime") to
8019	// unconditionally include in API requests. By default, fields with
8020	// empty or default values are omitted from API requests. However, any
8021	// non-pointer, non-interface field appearing in ForceSendFields will be
8022	// sent to the server regardless of whether the field is empty or not.
8023	// This may be used to include empty fields in Patch requests.
8024	ForceSendFields []string `json:"-"`
8025
8026	// NullFields is a list of field names (e.g. "CreateTime") to include in
8027	// API requests with the JSON null value. By default, fields with empty
8028	// values are omitted from API requests. However, any field with an
8029	// empty value appearing in NullFields will be sent to the server as
8030	// null. It is an error if a field in this list has a non-empty value.
8031	// This may be used to include null fields in Patch requests.
8032	NullFields []string `json:"-"`
8033}
8034
8035func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadata) MarshalJSON() ([]byte, error) {
8036	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadata
8037	raw := NoMethod(*s)
8038	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8039}
8040
8041// GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatu
8042// s: The status of a each individual document in the batch process.
8043type GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus struct {
8044	// HumanReviewOperation: The name of the operation triggered by the
8045	// processed document. If the human review process is not triggered,
8046	// this field will be empty. It has the same response type and metadata
8047	// as the long running operation returned by ReviewDocument method.
8048	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
8049
8050	// HumanReviewStatus: The status of human review on the processed
8051	// document.
8052	HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
8053
8054	// InputGcsSource: The source of the document, same as the
8055	// [input_gcs_source] field in the request when the batch process
8056	// started. The batch process is started by take snapshot of that
8057	// document, since a user can move or change that document during the
8058	// process.
8059	InputGcsSource string `json:"inputGcsSource,omitempty"`
8060
8061	// OutputGcsDestination: The output_gcs_destination (in the request as
8062	// 'output_gcs_destination') of the processed document if it was
8063	// successful, otherwise empty.
8064	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
8065
8066	// Status: The status of the processing of the document.
8067	Status *GoogleRpcStatus `json:"status,omitempty"`
8068
8069	// ForceSendFields is a list of field names (e.g.
8070	// "HumanReviewOperation") to unconditionally include in API requests.
8071	// By default, fields with empty or default values are omitted from API
8072	// requests. However, any non-pointer, non-interface field appearing in
8073	// ForceSendFields will be sent to the server regardless of whether the
8074	// field is empty or not. This may be used to include empty fields in
8075	// Patch requests.
8076	ForceSendFields []string `json:"-"`
8077
8078	// NullFields is a list of field names (e.g. "HumanReviewOperation") to
8079	// include in API requests with the JSON null value. By default, fields
8080	// with empty values are omitted from API requests. However, any field
8081	// with an empty value appearing in NullFields will be sent to the
8082	// server as null. It is an error if a field in this list has a
8083	// non-empty value. This may be used to include null fields in Patch
8084	// requests.
8085	NullFields []string `json:"-"`
8086}
8087
8088func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
8089	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
8090	raw := NoMethod(*s)
8091	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8092}
8093
8094// GoogleCloudDocumentaiV1beta3BatchProcessResponse: Response message
8095// for batch process document method.
8096type GoogleCloudDocumentaiV1beta3BatchProcessResponse struct {
8097}
8098
8099// GoogleCloudDocumentaiV1beta3CommonOperationMetadata: The common
8100// metadata for long running operations.
8101type GoogleCloudDocumentaiV1beta3CommonOperationMetadata struct {
8102	// CreateTime: The creation time of the operation.
8103	CreateTime string `json:"createTime,omitempty"`
8104
8105	// Resource: A related resource to this operation.
8106	Resource string `json:"resource,omitempty"`
8107
8108	// State: The state of the operation.
8109	//
8110	// Possible values:
8111	//   "STATE_UNSPECIFIED" - Unspecified state.
8112	//   "RUNNING" - Operation is still running.
8113	//   "CANCELLING" - Operation is being cancelled.
8114	//   "SUCCEEDED" - Operation succeeded.
8115	//   "FAILED" - Operation failed.
8116	//   "CANCELLED" - Operation is cancelled.
8117	State string `json:"state,omitempty"`
8118
8119	// StateMessage: A message providing more details about the current
8120	// state of processing.
8121	StateMessage string `json:"stateMessage,omitempty"`
8122
8123	// UpdateTime: The last update time of the operation.
8124	UpdateTime string `json:"updateTime,omitempty"`
8125
8126	// ForceSendFields is a list of field names (e.g. "CreateTime") to
8127	// unconditionally include in API requests. By default, fields with
8128	// empty or default values are omitted from API requests. However, any
8129	// non-pointer, non-interface field appearing in ForceSendFields will be
8130	// sent to the server regardless of whether the field is empty or not.
8131	// This may be used to include empty fields in Patch requests.
8132	ForceSendFields []string `json:"-"`
8133
8134	// NullFields is a list of field names (e.g. "CreateTime") to include in
8135	// API requests with the JSON null value. By default, fields with empty
8136	// values are omitted from API requests. However, any field with an
8137	// empty value appearing in NullFields will be sent to the server as
8138	// null. It is an error if a field in this list has a non-empty value.
8139	// This may be used to include null fields in Patch requests.
8140	NullFields []string `json:"-"`
8141}
8142
8143func (s *GoogleCloudDocumentaiV1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
8144	type NoMethod GoogleCloudDocumentaiV1beta3CommonOperationMetadata
8145	raw := NoMethod(*s)
8146	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8147}
8148
8149// GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata: The long running
8150// operation metadata for delete processor method.
8151type GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata struct {
8152	// CommonMetadata: The basic metadata of the long running operation.
8153	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8154
8155	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8156	// unconditionally include in API requests. By default, fields with
8157	// empty or default values are omitted from API requests. However, any
8158	// non-pointer, non-interface field appearing in ForceSendFields will be
8159	// sent to the server regardless of whether the field is empty or not.
8160	// This may be used to include empty fields in Patch requests.
8161	ForceSendFields []string `json:"-"`
8162
8163	// NullFields is a list of field names (e.g. "CommonMetadata") to
8164	// include in API requests with the JSON null value. By default, fields
8165	// with empty values are omitted from API requests. However, any field
8166	// with an empty value appearing in NullFields will be sent to the
8167	// server as null. It is an error if a field in this list has a
8168	// non-empty value. This may be used to include null fields in Patch
8169	// requests.
8170	NullFields []string `json:"-"`
8171}
8172
8173func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
8174	type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
8175	raw := NoMethod(*s)
8176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8177}
8178
8179// GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata: The long
8180// running operation metadata for delete processor version method.
8181type GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata struct {
8182	// CommonMetadata: The basic metadata of the long running operation.
8183	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8184
8185	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8186	// unconditionally include in API requests. By default, fields with
8187	// empty or default values are omitted from API requests. However, any
8188	// non-pointer, non-interface field appearing in ForceSendFields will be
8189	// sent to the server regardless of whether the field is empty or not.
8190	// This may be used to include empty fields in Patch requests.
8191	ForceSendFields []string `json:"-"`
8192
8193	// NullFields is a list of field names (e.g. "CommonMetadata") to
8194	// include in API requests with the JSON null value. By default, fields
8195	// with empty values are omitted from API requests. However, any field
8196	// with an empty value appearing in NullFields will be sent to the
8197	// server as null. It is an error if a field in this list has a
8198	// non-empty value. This may be used to include null fields in Patch
8199	// requests.
8200	NullFields []string `json:"-"`
8201}
8202
8203func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8204	type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata
8205	raw := NoMethod(*s)
8206	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8207}
8208
8209// GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata: The long
8210// running operation metadata for deploy processor version method.
8211type GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata struct {
8212	// CommonMetadata: The basic metadata of the long running operation.
8213	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8214
8215	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8216	// unconditionally include in API requests. By default, fields with
8217	// empty or default values are omitted from API requests. However, any
8218	// non-pointer, non-interface field appearing in ForceSendFields will be
8219	// sent to the server regardless of whether the field is empty or not.
8220	// This may be used to include empty fields in Patch requests.
8221	ForceSendFields []string `json:"-"`
8222
8223	// NullFields is a list of field names (e.g. "CommonMetadata") to
8224	// include in API requests with the JSON null value. By default, fields
8225	// with empty values are omitted from API requests. However, any field
8226	// with an empty value appearing in NullFields will be sent to the
8227	// server as null. It is an error if a field in this list has a
8228	// non-empty value. This may be used to include null fields in Patch
8229	// requests.
8230	NullFields []string `json:"-"`
8231}
8232
8233func (s *GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8234	type NoMethod GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata
8235	raw := NoMethod(*s)
8236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8237}
8238
8239// GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse: Response
8240// message for the deploy processor version method.
8241type GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse struct {
8242}
8243
8244// GoogleCloudDocumentaiV1beta3DisableProcessorMetadata: The long
8245// running operation metadata for disable processor method.
8246type GoogleCloudDocumentaiV1beta3DisableProcessorMetadata struct {
8247	// CommonMetadata: The basic metadata of the long running operation.
8248	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8249
8250	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8251	// unconditionally include in API requests. By default, fields with
8252	// empty or default values are omitted from API requests. However, any
8253	// non-pointer, non-interface field appearing in ForceSendFields will be
8254	// sent to the server regardless of whether the field is empty or not.
8255	// This may be used to include empty fields in Patch requests.
8256	ForceSendFields []string `json:"-"`
8257
8258	// NullFields is a list of field names (e.g. "CommonMetadata") to
8259	// include in API requests with the JSON null value. By default, fields
8260	// with empty values are omitted from API requests. However, any field
8261	// with an empty value appearing in NullFields will be sent to the
8262	// server as null. It is an error if a field in this list has a
8263	// non-empty value. This may be used to include null fields in Patch
8264	// requests.
8265	NullFields []string `json:"-"`
8266}
8267
8268func (s *GoogleCloudDocumentaiV1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
8269	type NoMethod GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
8270	raw := NoMethod(*s)
8271	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8272}
8273
8274// GoogleCloudDocumentaiV1beta3DisableProcessorResponse: Response
8275// message for the disable processor method. Intentionally empty proto
8276// for adding fields in future.
8277type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct {
8278}
8279
8280// GoogleCloudDocumentaiV1beta3EnableProcessorMetadata: The long running
8281// operation metadata for enable processor method.
8282type GoogleCloudDocumentaiV1beta3EnableProcessorMetadata struct {
8283	// CommonMetadata: The basic metadata of the long running operation.
8284	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8285
8286	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8287	// unconditionally include in API requests. By default, fields with
8288	// empty or default values are omitted from API requests. However, any
8289	// non-pointer, non-interface field appearing in ForceSendFields will be
8290	// sent to the server regardless of whether the field is empty or not.
8291	// This may be used to include empty fields in Patch requests.
8292	ForceSendFields []string `json:"-"`
8293
8294	// NullFields is a list of field names (e.g. "CommonMetadata") to
8295	// include in API requests with the JSON null value. By default, fields
8296	// with empty values are omitted from API requests. However, any field
8297	// with an empty value appearing in NullFields will be sent to the
8298	// server as null. It is an error if a field in this list has a
8299	// non-empty value. This may be used to include null fields in Patch
8300	// requests.
8301	NullFields []string `json:"-"`
8302}
8303
8304func (s *GoogleCloudDocumentaiV1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
8305	type NoMethod GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
8306	raw := NoMethod(*s)
8307	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8308}
8309
8310// GoogleCloudDocumentaiV1beta3EnableProcessorResponse: Response message
8311// for the enable processor method. Intentionally empty proto for adding
8312// fields in future.
8313type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct {
8314}
8315
8316// GoogleCloudDocumentaiV1beta3HumanReviewStatus: The status of human
8317// review on a processed document.
8318type GoogleCloudDocumentaiV1beta3HumanReviewStatus struct {
8319	// HumanReviewOperation: The name of the operation triggered by the
8320	// processed document. This field is populated only when the [state] is
8321	// [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
8322	// metadata as the long running operation returned by [ReviewDocument]
8323	// method.
8324	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
8325
8326	// State: The state of human review on the processing request.
8327	//
8328	// Possible values:
8329	//   "STATE_UNSPECIFIED" - Human review state is unspecified. Most
8330	// likely due to an internal error.
8331	//   "SKIPPED" - Human review is skipped for the document. This can
8332	// happen because human review is not enabled on the processor or the
8333	// processing request has been set to skip this document.
8334	//   "VALIDATION_PASSED" - Human review validation is triggered and
8335	// passed, so no review is needed.
8336	//   "IN_PROGRESS" - Human review validation is triggered and the
8337	// document is under review.
8338	//   "ERROR" - Some error happened during triggering human review, see
8339	// the [state_message] for details.
8340	State string `json:"state,omitempty"`
8341
8342	// StateMessage: A message providing more details about the human review
8343	// state.
8344	StateMessage string `json:"stateMessage,omitempty"`
8345
8346	// ForceSendFields is a list of field names (e.g.
8347	// "HumanReviewOperation") to unconditionally include in API requests.
8348	// By default, fields with empty or default values are omitted from API
8349	// requests. However, any non-pointer, non-interface field appearing in
8350	// ForceSendFields will be sent to the server regardless of whether the
8351	// field is empty or not. This may be used to include empty fields in
8352	// Patch requests.
8353	ForceSendFields []string `json:"-"`
8354
8355	// NullFields is a list of field names (e.g. "HumanReviewOperation") to
8356	// include in API requests with the JSON null value. By default, fields
8357	// with empty values are omitted from API requests. However, any field
8358	// with an empty value appearing in NullFields will be sent to the
8359	// server as null. It is an error if a field in this list has a
8360	// non-empty value. This may be used to include null fields in Patch
8361	// requests.
8362	NullFields []string `json:"-"`
8363}
8364
8365func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, error) {
8366	type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewStatus
8367	raw := NoMethod(*s)
8368	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8369}
8370
8371// GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata: The long
8372// running operation metadata for review document method.
8373type GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata struct {
8374	// CommonMetadata: The basic metadata of the long running operation.
8375	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8376
8377	// CreateTime: The creation time of the operation.
8378	CreateTime string `json:"createTime,omitempty"`
8379
8380	// State: Used only when Operation.done is false.
8381	//
8382	// Possible values:
8383	//   "STATE_UNSPECIFIED" - Unspecified state.
8384	//   "RUNNING" - Operation is still running.
8385	//   "CANCELLING" - Operation is being cancelled.
8386	//   "SUCCEEDED" - Operation succeeded.
8387	//   "FAILED" - Operation failed.
8388	//   "CANCELLED" - Operation is cancelled.
8389	State string `json:"state,omitempty"`
8390
8391	// StateMessage: A message providing more details about the current
8392	// state of processing. For example, the error message if the operation
8393	// is failed.
8394	StateMessage string `json:"stateMessage,omitempty"`
8395
8396	// UpdateTime: The last update time of the operation.
8397	UpdateTime string `json:"updateTime,omitempty"`
8398
8399	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8400	// unconditionally include in API requests. By default, fields with
8401	// empty or default values are omitted from API requests. However, any
8402	// non-pointer, non-interface field appearing in ForceSendFields will be
8403	// sent to the server regardless of whether the field is empty or not.
8404	// This may be used to include empty fields in Patch requests.
8405	ForceSendFields []string `json:"-"`
8406
8407	// NullFields is a list of field names (e.g. "CommonMetadata") to
8408	// include in API requests with the JSON null value. By default, fields
8409	// with empty values are omitted from API requests. However, any field
8410	// with an empty value appearing in NullFields will be sent to the
8411	// server as null. It is an error if a field in this list has a
8412	// non-empty value. This may be used to include null fields in Patch
8413	// requests.
8414	NullFields []string `json:"-"`
8415}
8416
8417func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
8418	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
8419	raw := NoMethod(*s)
8420	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8421}
8422
8423// GoogleCloudDocumentaiV1beta3ReviewDocumentResponse: Response message
8424// for review document method.
8425type GoogleCloudDocumentaiV1beta3ReviewDocumentResponse struct {
8426	// GcsDestination: The Cloud Storage uri for the human reviewed
8427	// document.
8428	GcsDestination string `json:"gcsDestination,omitempty"`
8429
8430	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
8431	// unconditionally include in API requests. By default, fields with
8432	// empty or default values are omitted from API requests. However, any
8433	// non-pointer, non-interface field appearing in ForceSendFields will be
8434	// sent to the server regardless of whether the field is empty or not.
8435	// This may be used to include empty fields in Patch requests.
8436	ForceSendFields []string `json:"-"`
8437
8438	// NullFields is a list of field names (e.g. "GcsDestination") to
8439	// include in API requests with the JSON null value. By default, fields
8440	// with empty values are omitted from API requests. However, any field
8441	// with an empty value appearing in NullFields will be sent to the
8442	// server as null. It is an error if a field in this list has a
8443	// non-empty value. This may be used to include null fields in Patch
8444	// requests.
8445	NullFields []string `json:"-"`
8446}
8447
8448func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
8449	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
8450	raw := NoMethod(*s)
8451	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8452}
8453
8454// GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata: The
8455// long running operation metadata for set default processor version
8456// method.
8457type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata struct {
8458	// CommonMetadata: The basic metadata of the long running operation.
8459	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8460
8461	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8462	// unconditionally include in API requests. By default, fields with
8463	// empty or default values are omitted from API requests. However, any
8464	// non-pointer, non-interface field appearing in ForceSendFields will be
8465	// sent to the server regardless of whether the field is empty or not.
8466	// This may be used to include empty fields in Patch requests.
8467	ForceSendFields []string `json:"-"`
8468
8469	// NullFields is a list of field names (e.g. "CommonMetadata") to
8470	// include in API requests with the JSON null value. By default, fields
8471	// with empty values are omitted from API requests. However, any field
8472	// with an empty value appearing in NullFields will be sent to the
8473	// server as null. It is an error if a field in this list has a
8474	// non-empty value. This may be used to include null fields in Patch
8475	// requests.
8476	NullFields []string `json:"-"`
8477}
8478
8479func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8480	type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
8481	raw := NoMethod(*s)
8482	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8483}
8484
8485// GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse:
8486// Response message for set default processor version method.
8487type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse struct {
8488}
8489
8490// GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata: The
8491// long running operation metadata for the undeploy processor version
8492// method.
8493type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata struct {
8494	// CommonMetadata: The basic metadata of the long running operation.
8495	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8496
8497	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8498	// unconditionally include in API requests. By default, fields with
8499	// empty or default values are omitted from API requests. However, any
8500	// non-pointer, non-interface field appearing in ForceSendFields will be
8501	// sent to the server regardless of whether the field is empty or not.
8502	// This may be used to include empty fields in Patch requests.
8503	ForceSendFields []string `json:"-"`
8504
8505	// NullFields is a list of field names (e.g. "CommonMetadata") to
8506	// include in API requests with the JSON null value. By default, fields
8507	// with empty values are omitted from API requests. However, any field
8508	// with an empty value appearing in NullFields will be sent to the
8509	// server as null. It is an error if a field in this list has a
8510	// non-empty value. This may be used to include null fields in Patch
8511	// requests.
8512	NullFields []string `json:"-"`
8513}
8514
8515func (s *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8516	type NoMethod GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
8517	raw := NoMethod(*s)
8518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8519}
8520
8521// GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse:
8522// Response message for the undeploy processor version method.
8523type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse struct {
8524}
8525
8526// GoogleCloudLocationListLocationsResponse: The response message for
8527// Locations.ListLocations.
8528type GoogleCloudLocationListLocationsResponse struct {
8529	// Locations: A list of locations that matches the specified filter in
8530	// the request.
8531	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
8532
8533	// NextPageToken: The standard List next-page token.
8534	NextPageToken string `json:"nextPageToken,omitempty"`
8535
8536	// ServerResponse contains the HTTP response code and headers from the
8537	// server.
8538	googleapi.ServerResponse `json:"-"`
8539
8540	// ForceSendFields is a list of field names (e.g. "Locations") to
8541	// unconditionally include in API requests. By default, fields with
8542	// empty or default values are omitted from API requests. However, any
8543	// non-pointer, non-interface field appearing in ForceSendFields will be
8544	// sent to the server regardless of whether the field is empty or not.
8545	// This may be used to include empty fields in Patch requests.
8546	ForceSendFields []string `json:"-"`
8547
8548	// NullFields is a list of field names (e.g. "Locations") to include in
8549	// API requests with the JSON null value. By default, fields with empty
8550	// values are omitted from API requests. However, any field with an
8551	// empty value appearing in NullFields will be sent to the server as
8552	// null. It is an error if a field in this list has a non-empty value.
8553	// This may be used to include null fields in Patch requests.
8554	NullFields []string `json:"-"`
8555}
8556
8557func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
8558	type NoMethod GoogleCloudLocationListLocationsResponse
8559	raw := NoMethod(*s)
8560	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8561}
8562
8563// GoogleCloudLocationLocation: A resource that represents Google Cloud
8564// Platform location.
8565type GoogleCloudLocationLocation struct {
8566	// DisplayName: The friendly name for this location, typically a nearby
8567	// city name. For example, "Tokyo".
8568	DisplayName string `json:"displayName,omitempty"`
8569
8570	// Labels: Cross-service attributes for the location. For example
8571	// {"cloud.googleapis.com/region": "us-east1"}
8572	Labels map[string]string `json:"labels,omitempty"`
8573
8574	// LocationId: The canonical id for this location. For example:
8575	// "us-east1".
8576	LocationId string `json:"locationId,omitempty"`
8577
8578	// Metadata: Service-specific metadata. For example the available
8579	// capacity at the given location.
8580	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
8581
8582	// Name: Resource name for the location, which may vary between
8583	// implementations. For example:
8584	// "projects/example-project/locations/us-east1"
8585	Name string `json:"name,omitempty"`
8586
8587	// ServerResponse contains the HTTP response code and headers from the
8588	// server.
8589	googleapi.ServerResponse `json:"-"`
8590
8591	// ForceSendFields is a list of field names (e.g. "DisplayName") to
8592	// unconditionally include in API requests. By default, fields with
8593	// empty or default values are omitted from API requests. However, any
8594	// non-pointer, non-interface field appearing in ForceSendFields will be
8595	// sent to the server regardless of whether the field is empty or not.
8596	// This may be used to include empty fields in Patch requests.
8597	ForceSendFields []string `json:"-"`
8598
8599	// NullFields is a list of field names (e.g. "DisplayName") to include
8600	// in API requests with the JSON null value. By default, fields with
8601	// empty values are omitted from API requests. However, any field with
8602	// an empty value appearing in NullFields will be sent to the server as
8603	// null. It is an error if a field in this list has a non-empty value.
8604	// This may be used to include null fields in Patch requests.
8605	NullFields []string `json:"-"`
8606}
8607
8608func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
8609	type NoMethod GoogleCloudLocationLocation
8610	raw := NoMethod(*s)
8611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8612}
8613
8614// GoogleLongrunningListOperationsResponse: The response message for
8615// Operations.ListOperations.
8616type GoogleLongrunningListOperationsResponse struct {
8617	// NextPageToken: The standard List next-page token.
8618	NextPageToken string `json:"nextPageToken,omitempty"`
8619
8620	// Operations: A list of operations that matches the specified filter in
8621	// the request.
8622	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
8623
8624	// ServerResponse contains the HTTP response code and headers from the
8625	// server.
8626	googleapi.ServerResponse `json:"-"`
8627
8628	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
8629	// unconditionally include in API requests. By default, fields with
8630	// empty or default values are omitted from API requests. However, any
8631	// non-pointer, non-interface field appearing in ForceSendFields will be
8632	// sent to the server regardless of whether the field is empty or not.
8633	// This may be used to include empty fields in Patch requests.
8634	ForceSendFields []string `json:"-"`
8635
8636	// NullFields is a list of field names (e.g. "NextPageToken") to include
8637	// in API requests with the JSON null value. By default, fields with
8638	// empty values are omitted from API requests. However, any field with
8639	// an empty value appearing in NullFields will be sent to the server as
8640	// null. It is an error if a field in this list has a non-empty value.
8641	// This may be used to include null fields in Patch requests.
8642	NullFields []string `json:"-"`
8643}
8644
8645func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
8646	type NoMethod GoogleLongrunningListOperationsResponse
8647	raw := NoMethod(*s)
8648	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8649}
8650
8651// GoogleLongrunningOperation: This resource represents a long-running
8652// operation that is the result of a network API call.
8653type GoogleLongrunningOperation struct {
8654	// Done: If the value is `false`, it means the operation is still in
8655	// progress. If `true`, the operation is completed, and either `error`
8656	// or `response` is available.
8657	Done bool `json:"done,omitempty"`
8658
8659	// Error: The error result of the operation in case of failure or
8660	// cancellation.
8661	Error *GoogleRpcStatus `json:"error,omitempty"`
8662
8663	// Metadata: Service-specific metadata associated with the operation. It
8664	// typically contains progress information and common metadata such as
8665	// create time. Some services might not provide such metadata. Any
8666	// method that returns a long-running operation should document the
8667	// metadata type, if any.
8668	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
8669
8670	// Name: The server-assigned name, which is only unique within the same
8671	// service that originally returns it. If you use the default HTTP
8672	// mapping, the `name` should be a resource name ending with
8673	// `operations/{unique_id}`.
8674	Name string `json:"name,omitempty"`
8675
8676	// Response: The normal response of the operation in case of success. If
8677	// the original method returns no data on success, such as `Delete`, the
8678	// response is `google.protobuf.Empty`. If the original method is
8679	// standard `Get`/`Create`/`Update`, the response should be the
8680	// resource. For other methods, the response should have the type
8681	// `XxxResponse`, where `Xxx` is the original method name. For example,
8682	// if the original method name is `TakeSnapshot()`, the inferred
8683	// response type is `TakeSnapshotResponse`.
8684	Response googleapi.RawMessage `json:"response,omitempty"`
8685
8686	// ServerResponse contains the HTTP response code and headers from the
8687	// server.
8688	googleapi.ServerResponse `json:"-"`
8689
8690	// ForceSendFields is a list of field names (e.g. "Done") to
8691	// unconditionally include in API requests. By default, fields with
8692	// empty or default values are omitted from API requests. However, any
8693	// non-pointer, non-interface field appearing in ForceSendFields will be
8694	// sent to the server regardless of whether the field is empty or not.
8695	// This may be used to include empty fields in Patch requests.
8696	ForceSendFields []string `json:"-"`
8697
8698	// NullFields is a list of field names (e.g. "Done") to include in API
8699	// requests with the JSON null value. By default, fields with empty
8700	// values are omitted from API requests. However, any field with an
8701	// empty value appearing in NullFields will be sent to the server as
8702	// null. It is an error if a field in this list has a non-empty value.
8703	// This may be used to include null fields in Patch requests.
8704	NullFields []string `json:"-"`
8705}
8706
8707func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
8708	type NoMethod GoogleLongrunningOperation
8709	raw := NoMethod(*s)
8710	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8711}
8712
8713// GoogleProtobufEmpty: A generic empty message that you can re-use to
8714// avoid defining duplicated empty messages in your APIs. A typical
8715// example is to use it as the request or the response type of an API
8716// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
8717// returns (google.protobuf.Empty); } The JSON representation for
8718// `Empty` is empty JSON object `{}`.
8719type GoogleProtobufEmpty struct {
8720	// ServerResponse contains the HTTP response code and headers from the
8721	// server.
8722	googleapi.ServerResponse `json:"-"`
8723}
8724
8725// GoogleRpcStatus: The `Status` type defines a logical error model that
8726// is suitable for different programming environments, including REST
8727// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
8728// `Status` message contains three pieces of data: error code, error
8729// message, and error details. You can find out more about this error
8730// model and how to work with it in the API Design Guide
8731// (https://cloud.google.com/apis/design/errors).
8732type GoogleRpcStatus struct {
8733	// Code: The status code, which should be an enum value of
8734	// google.rpc.Code.
8735	Code int64 `json:"code,omitempty"`
8736
8737	// Details: A list of messages that carry the error details. There is a
8738	// common set of message types for APIs to use.
8739	Details []googleapi.RawMessage `json:"details,omitempty"`
8740
8741	// Message: A developer-facing error message, which should be in
8742	// English. Any user-facing error message should be localized and sent
8743	// in the google.rpc.Status.details field, or localized by the client.
8744	Message string `json:"message,omitempty"`
8745
8746	// ForceSendFields is a list of field names (e.g. "Code") to
8747	// unconditionally include in API requests. By default, fields with
8748	// empty or default values are omitted from API requests. However, any
8749	// non-pointer, non-interface field appearing in ForceSendFields will be
8750	// sent to the server regardless of whether the field is empty or not.
8751	// This may be used to include empty fields in Patch requests.
8752	ForceSendFields []string `json:"-"`
8753
8754	// NullFields is a list of field names (e.g. "Code") to include in API
8755	// requests with the JSON null value. By default, fields with empty
8756	// values are omitted from API requests. However, any field with an
8757	// empty value appearing in NullFields will be sent to the server as
8758	// null. It is an error if a field in this list has a non-empty value.
8759	// This may be used to include null fields in Patch requests.
8760	NullFields []string `json:"-"`
8761}
8762
8763func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
8764	type NoMethod GoogleRpcStatus
8765	raw := NoMethod(*s)
8766	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8767}
8768
8769// GoogleTypeColor: Represents a color in the RGBA color space. This
8770// representation is designed for simplicity of conversion to/from color
8771// representations in various languages over compactness. For example,
8772// the fields of this representation can be trivially provided to the
8773// constructor of `java.awt.Color` in Java; it can also be trivially
8774// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS;
8775// and, with just a little work, it can be easily formatted into a CSS
8776// `rgba()` string in JavaScript. This reference page doesn't carry
8777// information about the absolute color space that should be used to
8778// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020,
8779// etc.). By default, applications should assume the sRGB color space.
8780// When color equality needs to be decided, implementations, unless
8781// documented otherwise, treat two colors as equal if all their red,
8782// green, blue, and alpha values each differ by at most 1e-5. Example
8783// (Java): import com.google.type.Color; // ... public static
8784// java.awt.Color fromProto(Color protocolor) { float alpha =
8785// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0;
8786// return new java.awt.Color( protocolor.getRed(),
8787// protocolor.getGreen(), protocolor.getBlue(), alpha); } public static
8788// Color toProto(java.awt.Color color) { float red = (float)
8789// color.getRed(); float green = (float) color.getGreen(); float blue =
8790// (float) color.getBlue(); float denominator = 255.0; Color.Builder
8791// resultBuilder = Color .newBuilder() .setRed(red / denominator)
8792// .setGreen(green / denominator) .setBlue(blue / denominator); int
8793// alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha(
8794// FloatValue .newBuilder() .setValue(((float) alpha) / denominator)
8795// .build()); } return resultBuilder.build(); } // ... Example (iOS /
8796// Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float
8797// red = [protocolor red]; float green = [protocolor green]; float blue
8798// = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha];
8799// float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper
8800// value]; } return [UIColor colorWithRed:red green:green blue:blue
8801// alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red,
8802// green, blue, alpha; if (![color getRed:&red green:&green blue:&blue
8803// alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init];
8804// [result setRed:red]; [result setGreen:green]; [result setBlue:blue];
8805// if (alpha <= 0.9999) { [result
8806// setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease];
8807// return result; } // ... Example (JavaScript): // ... var
8808// protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red
8809// || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac =
8810// rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green
8811// = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255);
8812// if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green,
8813// blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams
8814// = [red, green, blue].join(','); return ['rgba(', rgbParams, ',',
8815// alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green,
8816// blue) { var rgbNumber = new Number((red << 16) | (green << 8) |
8817// blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 -
8818// hexString.length; var resultBuilder = ['#']; for (var i = 0; i <
8819// missingZeros; i++) { resultBuilder.push('0'); }
8820// resultBuilder.push(hexString); return resultBuilder.join(''); }; //
8821// ...
8822type GoogleTypeColor struct {
8823	// Alpha: The fraction of this color that should be applied to the
8824	// pixel. That is, the final pixel color is defined by the equation:
8825	// `pixel color = alpha * (this color) + (1.0 - alpha) * (background
8826	// color)` This means that a value of 1.0 corresponds to a solid color,
8827	// whereas a value of 0.0 corresponds to a completely transparent color.
8828	// This uses a wrapper message rather than a simple float scalar so that
8829	// it is possible to distinguish between a default value and the value
8830	// being unset. If omitted, this color object is rendered as a solid
8831	// color (as if the alpha value had been explicitly given a value of
8832	// 1.0).
8833	Alpha float64 `json:"alpha,omitempty"`
8834
8835	// Blue: The amount of blue in the color as a value in the interval [0,
8836	// 1].
8837	Blue float64 `json:"blue,omitempty"`
8838
8839	// Green: The amount of green in the color as a value in the interval
8840	// [0, 1].
8841	Green float64 `json:"green,omitempty"`
8842
8843	// Red: The amount of red in the color as a value in the interval [0,
8844	// 1].
8845	Red float64 `json:"red,omitempty"`
8846
8847	// ForceSendFields is a list of field names (e.g. "Alpha") to
8848	// unconditionally include in API requests. By default, fields with
8849	// empty or default values are omitted from API requests. However, any
8850	// non-pointer, non-interface field appearing in ForceSendFields will be
8851	// sent to the server regardless of whether the field is empty or not.
8852	// This may be used to include empty fields in Patch requests.
8853	ForceSendFields []string `json:"-"`
8854
8855	// NullFields is a list of field names (e.g. "Alpha") to include in API
8856	// requests with the JSON null value. By default, fields with empty
8857	// values are omitted from API requests. However, any field with an
8858	// empty value appearing in NullFields will be sent to the server as
8859	// null. It is an error if a field in this list has a non-empty value.
8860	// This may be used to include null fields in Patch requests.
8861	NullFields []string `json:"-"`
8862}
8863
8864func (s *GoogleTypeColor) MarshalJSON() ([]byte, error) {
8865	type NoMethod GoogleTypeColor
8866	raw := NoMethod(*s)
8867	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8868}
8869
8870func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error {
8871	type NoMethod GoogleTypeColor
8872	var s1 struct {
8873		Alpha gensupport.JSONFloat64 `json:"alpha"`
8874		Blue  gensupport.JSONFloat64 `json:"blue"`
8875		Green gensupport.JSONFloat64 `json:"green"`
8876		Red   gensupport.JSONFloat64 `json:"red"`
8877		*NoMethod
8878	}
8879	s1.NoMethod = (*NoMethod)(s)
8880	if err := json.Unmarshal(data, &s1); err != nil {
8881		return err
8882	}
8883	s.Alpha = float64(s1.Alpha)
8884	s.Blue = float64(s1.Blue)
8885	s.Green = float64(s1.Green)
8886	s.Red = float64(s1.Red)
8887	return nil
8888}
8889
8890// GoogleTypeDate: Represents a whole or partial calendar date, such as
8891// a birthday. The time of day and time zone are either specified
8892// elsewhere or are insignificant. The date is relative to the Gregorian
8893// Calendar. This can represent one of the following: * A full date,
8894// with non-zero year, month, and day values * A month and day value,
8895// with a zero year, such as an anniversary * A year on its own, with
8896// zero month and day values * A year and month value, with a zero day,
8897// such as a credit card expiration date Related types are
8898// google.type.TimeOfDay and `google.protobuf.Timestamp`.
8899type GoogleTypeDate struct {
8900	// Day: Day of a month. Must be from 1 to 31 and valid for the year and
8901	// month, or 0 to specify a year by itself or a year and month where the
8902	// day isn't significant.
8903	Day int64 `json:"day,omitempty"`
8904
8905	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year
8906	// without a month and day.
8907	Month int64 `json:"month,omitempty"`
8908
8909	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a
8910	// date without a year.
8911	Year int64 `json:"year,omitempty"`
8912
8913	// ForceSendFields is a list of field names (e.g. "Day") to
8914	// unconditionally include in API requests. By default, fields with
8915	// empty or default values are omitted from API requests. However, any
8916	// non-pointer, non-interface field appearing in ForceSendFields will be
8917	// sent to the server regardless of whether the field is empty or not.
8918	// This may be used to include empty fields in Patch requests.
8919	ForceSendFields []string `json:"-"`
8920
8921	// NullFields is a list of field names (e.g. "Day") to include in API
8922	// requests with the JSON null value. By default, fields with empty
8923	// values are omitted from API requests. However, any field with an
8924	// empty value appearing in NullFields will be sent to the server as
8925	// null. It is an error if a field in this list has a non-empty value.
8926	// This may be used to include null fields in Patch requests.
8927	NullFields []string `json:"-"`
8928}
8929
8930func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
8931	type NoMethod GoogleTypeDate
8932	raw := NoMethod(*s)
8933	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8934}
8935
8936// GoogleTypeDateTime: Represents civil time (or occasionally physical
8937// time). This type can represent a civil time in one of a few possible
8938// ways: * When utc_offset is set and time_zone is unset: a civil time
8939// on a calendar day with a particular offset from UTC. * When time_zone
8940// is set and utc_offset is unset: a civil time on a calendar day in a
8941// particular time zone. * When neither time_zone nor utc_offset is set:
8942// a civil time on a calendar day in local time. The date is relative to
8943// the Proleptic Gregorian Calendar. If year is 0, the DateTime is
8944// considered not to have a specific year. month and day must have
8945// valid, non-zero values. This type may also be used to represent a
8946// physical time if all the date and time fields are set and either case
8947// of the `time_offset` oneof is set. Consider using `Timestamp` message
8948// for physical time instead. If your use case also would like to store
8949// the user's timezone, that can be done in another field. This type is
8950// more flexible than some applications may want. Make sure to document
8951// and validate your application's limitations.
8952type GoogleTypeDateTime struct {
8953	// Day: Required. Day of month. Must be from 1 to 31 and valid for the
8954	// year and month.
8955	Day int64 `json:"day,omitempty"`
8956
8957	// Hours: Required. Hours of day in 24 hour format. Should be from 0 to
8958	// 23. An API may choose to allow the value "24:00:00" for scenarios
8959	// like business closing time.
8960	Hours int64 `json:"hours,omitempty"`
8961
8962	// Minutes: Required. Minutes of hour of day. Must be from 0 to 59.
8963	Minutes int64 `json:"minutes,omitempty"`
8964
8965	// Month: Required. Month of year. Must be from 1 to 12.
8966	Month int64 `json:"month,omitempty"`
8967
8968	// Nanos: Required. Fractions of seconds in nanoseconds. Must be from 0
8969	// to 999,999,999.
8970	Nanos int64 `json:"nanos,omitempty"`
8971
8972	// Seconds: Required. Seconds of minutes of the time. Must normally be
8973	// from 0 to 59. An API may allow the value 60 if it allows
8974	// leap-seconds.
8975	Seconds int64 `json:"seconds,omitempty"`
8976
8977	// TimeZone: Time zone.
8978	TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"`
8979
8980	// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and
8981	// +18 hours. For example, a UTC offset of -4:00 would be represented as
8982	// { seconds: -14400 }.
8983	UtcOffset string `json:"utcOffset,omitempty"`
8984
8985	// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if
8986	// specifying a datetime without a year.
8987	Year int64 `json:"year,omitempty"`
8988
8989	// ForceSendFields is a list of field names (e.g. "Day") to
8990	// unconditionally include in API requests. By default, fields with
8991	// empty or default values are omitted from API requests. However, any
8992	// non-pointer, non-interface field appearing in ForceSendFields will be
8993	// sent to the server regardless of whether the field is empty or not.
8994	// This may be used to include empty fields in Patch requests.
8995	ForceSendFields []string `json:"-"`
8996
8997	// NullFields is a list of field names (e.g. "Day") to include in API
8998	// requests with the JSON null value. By default, fields with empty
8999	// values are omitted from API requests. However, any field with an
9000	// empty value appearing in NullFields will be sent to the server as
9001	// null. It is an error if a field in this list has a non-empty value.
9002	// This may be used to include null fields in Patch requests.
9003	NullFields []string `json:"-"`
9004}
9005
9006func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) {
9007	type NoMethod GoogleTypeDateTime
9008	raw := NoMethod(*s)
9009	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9010}
9011
9012// GoogleTypeMoney: Represents an amount of money with its currency
9013// type.
9014type GoogleTypeMoney struct {
9015	// CurrencyCode: The three-letter currency code defined in ISO 4217.
9016	CurrencyCode string `json:"currencyCode,omitempty"`
9017
9018	// Nanos: Number of nano (10^-9) units of the amount. The value must be
9019	// between -999,999,999 and +999,999,999 inclusive. If `units` is
9020	// positive, `nanos` must be positive or zero. If `units` is zero,
9021	// `nanos` can be positive, zero, or negative. If `units` is negative,
9022	// `nanos` must be negative or zero. For example $-1.75 is represented
9023	// as `units`=-1 and `nanos`=-750,000,000.
9024	Nanos int64 `json:"nanos,omitempty"`
9025
9026	// Units: The whole units of the amount. For example if `currencyCode`
9027	// is "USD", then 1 unit is one US dollar.
9028	Units int64 `json:"units,omitempty,string"`
9029
9030	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
9031	// unconditionally include in API requests. By default, fields with
9032	// empty or default values are omitted from API requests. However, any
9033	// non-pointer, non-interface field appearing in ForceSendFields will be
9034	// sent to the server regardless of whether the field is empty or not.
9035	// This may be used to include empty fields in Patch requests.
9036	ForceSendFields []string `json:"-"`
9037
9038	// NullFields is a list of field names (e.g. "CurrencyCode") to include
9039	// in API requests with the JSON null value. By default, fields with
9040	// empty values are omitted from API requests. However, any field with
9041	// an empty value appearing in NullFields will be sent to the server as
9042	// null. It is an error if a field in this list has a non-empty value.
9043	// This may be used to include null fields in Patch requests.
9044	NullFields []string `json:"-"`
9045}
9046
9047func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
9048	type NoMethod GoogleTypeMoney
9049	raw := NoMethod(*s)
9050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9051}
9052
9053// GoogleTypePostalAddress: Represents a postal address, e.g. for postal
9054// delivery or payments addresses. Given a postal address, a postal
9055// service can deliver items to a premise, P.O. Box or similar. It is
9056// not intended to model geographical locations (roads, towns,
9057// mountains). In typical usage an address would be created via user
9058// input or from importing existing data, depending on the type of
9059// process. Advice on address input / editing: - Use an i18n-ready
9060// address widget such as https://github.com/google/libaddressinput) -
9061// Users should not be presented with UI elements for input or editing
9062// of fields outside countries where that field is used. For more
9063// guidance on how to use this schema, please see:
9064// https://support.google.com/business/answer/6397478
9065type GoogleTypePostalAddress struct {
9066	// AddressLines: Unstructured address lines describing the lower levels
9067	// of an address. Because values in address_lines do not have type
9068	// information and may sometimes contain multiple values in a single
9069	// field (e.g. "Austin, TX"), it is important that the line order is
9070	// clear. The order of address lines should be "envelope order" for the
9071	// country/region of the address. In places where this can vary (e.g.
9072	// Japan), address_language is used to make it explicit (e.g. "ja" for
9073	// large-to-small ordering and "ja-Latn" or "en" for small-to-large).
9074	// This way, the most specific line of an address can be selected based
9075	// on the language. The minimum permitted structural representation of
9076	// an address consists of a region_code with all remaining information
9077	// placed in the address_lines. It would be possible to format such an
9078	// address very approximately without geocoding, but no semantic
9079	// reasoning could be made about any of the address components until it
9080	// was at least partially resolved. Creating an address only containing
9081	// a region_code and address_lines, and then geocoding is the
9082	// recommended way to handle completely unstructured addresses (as
9083	// opposed to guessing which parts of the address should be localities
9084	// or administrative areas).
9085	AddressLines []string `json:"addressLines,omitempty"`
9086
9087	// AdministrativeArea: Optional. Highest administrative subdivision
9088	// which is used for postal addresses of a country or region. For
9089	// example, this can be a state, a province, an oblast, or a prefecture.
9090	// Specifically, for Spain this is the province and not the autonomous
9091	// community (e.g. "Barcelona" and not "Catalonia"). Many countries
9092	// don't use an administrative area in postal addresses. E.g. in
9093	// Switzerland this should be left unpopulated.
9094	AdministrativeArea string `json:"administrativeArea,omitempty"`
9095
9096	// LanguageCode: Optional. BCP-47 language code of the contents of this
9097	// address (if known). This is often the UI language of the input form
9098	// or is expected to match one of the languages used in the address'
9099	// country/region, or their transliterated equivalents. This can affect
9100	// formatting in certain countries, but is not critical to the
9101	// correctness of the data and will never affect any validation or other
9102	// non-formatting related operations. If this value is not known, it
9103	// should be omitted (rather than specifying a possibly incorrect
9104	// default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
9105	LanguageCode string `json:"languageCode,omitempty"`
9106
9107	// Locality: Optional. Generally refers to the city/town portion of the
9108	// address. Examples: US city, IT comune, UK post town. In regions of
9109	// the world where localities are not well defined or do not fit into
9110	// this structure well, leave locality empty and use address_lines.
9111	Locality string `json:"locality,omitempty"`
9112
9113	// Organization: Optional. The name of the organization at the address.
9114	Organization string `json:"organization,omitempty"`
9115
9116	// PostalCode: Optional. Postal code of the address. Not all countries
9117	// use or require postal codes to be present, but where they are used,
9118	// they may trigger additional validation with other parts of the
9119	// address (e.g. state/zip validation in the U.S.A.).
9120	PostalCode string `json:"postalCode,omitempty"`
9121
9122	// Recipients: Optional. The recipient at the address. This field may,
9123	// under certain circumstances, contain multiline information. For
9124	// example, it might contain "care of" information.
9125	Recipients []string `json:"recipients,omitempty"`
9126
9127	// RegionCode: Required. CLDR region code of the country/region of the
9128	// address. This is never inferred and it is up to the user to ensure
9129	// the value is correct. See http://cldr.unicode.org/ and
9130	// http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
9131	// for details. Example: "CH" for Switzerland.
9132	RegionCode string `json:"regionCode,omitempty"`
9133
9134	// Revision: The schema revision of the `PostalAddress`. This must be
9135	// set to 0, which is the latest revision. All new revisions **must** be
9136	// backward compatible with old revisions.
9137	Revision int64 `json:"revision,omitempty"`
9138
9139	// SortingCode: Optional. Additional, country-specific, sorting code.
9140	// This is not used in most regions. Where it is used, the value is
9141	// either a string like "CEDEX", optionally followed by a number (e.g.
9142	// "CEDEX 7"), or just a number alone, representing the "sector code"
9143	// (Jamaica), "delivery area indicator" (Malawi) or "post office
9144	// indicator" (e.g. Côte d'Ivoire).
9145	SortingCode string `json:"sortingCode,omitempty"`
9146
9147	// Sublocality: Optional. Sublocality of the address. For example, this
9148	// can be neighborhoods, boroughs, districts.
9149	Sublocality string `json:"sublocality,omitempty"`
9150
9151	// ForceSendFields is a list of field names (e.g. "AddressLines") to
9152	// unconditionally include in API requests. By default, fields with
9153	// empty or default values are omitted from API requests. However, any
9154	// non-pointer, non-interface field appearing in ForceSendFields will be
9155	// sent to the server regardless of whether the field is empty or not.
9156	// This may be used to include empty fields in Patch requests.
9157	ForceSendFields []string `json:"-"`
9158
9159	// NullFields is a list of field names (e.g. "AddressLines") to include
9160	// in API requests with the JSON null value. By default, fields with
9161	// empty values are omitted from API requests. However, any field with
9162	// an empty value appearing in NullFields will be sent to the server as
9163	// null. It is an error if a field in this list has a non-empty value.
9164	// This may be used to include null fields in Patch requests.
9165	NullFields []string `json:"-"`
9166}
9167
9168func (s *GoogleTypePostalAddress) MarshalJSON() ([]byte, error) {
9169	type NoMethod GoogleTypePostalAddress
9170	raw := NoMethod(*s)
9171	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9172}
9173
9174// GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone
9175// Database (https://www.iana.org/time-zones).
9176type GoogleTypeTimeZone struct {
9177	// Id: IANA Time Zone Database time zone, e.g. "America/New_York".
9178	Id string `json:"id,omitempty"`
9179
9180	// Version: Optional. IANA Time Zone Database version number, e.g.
9181	// "2019a".
9182	Version string `json:"version,omitempty"`
9183
9184	// ForceSendFields is a list of field names (e.g. "Id") to
9185	// unconditionally include in API requests. By default, fields with
9186	// empty or default values are omitted from API requests. However, any
9187	// non-pointer, non-interface field appearing in ForceSendFields will be
9188	// sent to the server regardless of whether the field is empty or not.
9189	// This may be used to include empty fields in Patch requests.
9190	ForceSendFields []string `json:"-"`
9191
9192	// NullFields is a list of field names (e.g. "Id") to include in API
9193	// requests with the JSON null value. By default, fields with empty
9194	// values are omitted from API requests. However, any field with an
9195	// empty value appearing in NullFields will be sent to the server as
9196	// null. It is an error if a field in this list has a non-empty value.
9197	// This may be used to include null fields in Patch requests.
9198	NullFields []string `json:"-"`
9199}
9200
9201func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) {
9202	type NoMethod GoogleTypeTimeZone
9203	raw := NoMethod(*s)
9204	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9205}
9206
9207// method id "documentai.operations.delete":
9208
9209type OperationsDeleteCall struct {
9210	s          *Service
9211	name       string
9212	urlParams_ gensupport.URLParams
9213	ctx_       context.Context
9214	header_    http.Header
9215}
9216
9217// Delete: Deletes a long-running operation. This method indicates that
9218// the client is no longer interested in the operation result. It does
9219// not cancel the operation. If the server doesn't support this method,
9220// it returns `google.rpc.Code.UNIMPLEMENTED`.
9221//
9222// - name: The name of the operation resource to be deleted.
9223func (r *OperationsService) Delete(name string) *OperationsDeleteCall {
9224	c := &OperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9225	c.name = name
9226	return c
9227}
9228
9229// Fields allows partial responses to be retrieved. See
9230// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9231// for more information.
9232func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall {
9233	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9234	return c
9235}
9236
9237// Context sets the context to be used in this call's Do method. Any
9238// pending HTTP request will be aborted if the provided context is
9239// canceled.
9240func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall {
9241	c.ctx_ = ctx
9242	return c
9243}
9244
9245// Header returns an http.Header that can be modified by the caller to
9246// add HTTP headers to the request.
9247func (c *OperationsDeleteCall) Header() http.Header {
9248	if c.header_ == nil {
9249		c.header_ = make(http.Header)
9250	}
9251	return c.header_
9252}
9253
9254func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
9255	reqHeaders := make(http.Header)
9256	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9257	for k, v := range c.header_ {
9258		reqHeaders[k] = v
9259	}
9260	reqHeaders.Set("User-Agent", c.s.userAgent())
9261	var body io.Reader = nil
9262	c.urlParams_.Set("alt", alt)
9263	c.urlParams_.Set("prettyPrint", "false")
9264	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9265	urls += "?" + c.urlParams_.Encode()
9266	req, err := http.NewRequest("DELETE", urls, body)
9267	if err != nil {
9268		return nil, err
9269	}
9270	req.Header = reqHeaders
9271	googleapi.Expand(req.URL, map[string]string{
9272		"name": c.name,
9273	})
9274	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9275}
9276
9277// Do executes the "documentai.operations.delete" call.
9278// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
9279// non-2xx status code is an error. Response headers are in either
9280// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
9281// returned at all) in error.(*googleapi.Error).Header. Use
9282// googleapi.IsNotModified to check whether the returned error was
9283// because http.StatusNotModified was returned.
9284func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
9285	gensupport.SetOptions(c.urlParams_, opts...)
9286	res, err := c.doRequest("json")
9287	if res != nil && res.StatusCode == http.StatusNotModified {
9288		if res.Body != nil {
9289			res.Body.Close()
9290		}
9291		return nil, &googleapi.Error{
9292			Code:   res.StatusCode,
9293			Header: res.Header,
9294		}
9295	}
9296	if err != nil {
9297		return nil, err
9298	}
9299	defer googleapi.CloseBody(res)
9300	if err := googleapi.CheckResponse(res); err != nil {
9301		return nil, err
9302	}
9303	ret := &GoogleProtobufEmpty{
9304		ServerResponse: googleapi.ServerResponse{
9305			Header:         res.Header,
9306			HTTPStatusCode: res.StatusCode,
9307		},
9308	}
9309	target := &ret
9310	if err := gensupport.DecodeResponse(target, res); err != nil {
9311		return nil, err
9312	}
9313	return ret, nil
9314	// {
9315	//   "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
9316	//   "flatPath": "v1/operations/{operationsId}",
9317	//   "httpMethod": "DELETE",
9318	//   "id": "documentai.operations.delete",
9319	//   "parameterOrder": [
9320	//     "name"
9321	//   ],
9322	//   "parameters": {
9323	//     "name": {
9324	//       "description": "The name of the operation resource to be deleted.",
9325	//       "location": "path",
9326	//       "pattern": "^operations/.*$",
9327	//       "required": true,
9328	//       "type": "string"
9329	//     }
9330	//   },
9331	//   "path": "v1/{+name}",
9332	//   "response": {
9333	//     "$ref": "GoogleProtobufEmpty"
9334	//   },
9335	//   "scopes": [
9336	//     "https://www.googleapis.com/auth/cloud-platform"
9337	//   ]
9338	// }
9339
9340}
9341
9342// method id "documentai.projects.locations.fetchProcessorTypes":
9343
9344type ProjectsLocationsFetchProcessorTypesCall struct {
9345	s            *Service
9346	parent       string
9347	urlParams_   gensupport.URLParams
9348	ifNoneMatch_ string
9349	ctx_         context.Context
9350	header_      http.Header
9351}
9352
9353// FetchProcessorTypes: Fetches processor types.
9354//
9355// - parent: The project of processor type to list. The available
9356//   processor types may depend on the whitelisting on projects. Format:
9357//   projects/{project}/locations/{location}.
9358func (r *ProjectsLocationsService) FetchProcessorTypes(parent string) *ProjectsLocationsFetchProcessorTypesCall {
9359	c := &ProjectsLocationsFetchProcessorTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9360	c.parent = parent
9361	return c
9362}
9363
9364// Fields allows partial responses to be retrieved. See
9365// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9366// for more information.
9367func (c *ProjectsLocationsFetchProcessorTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFetchProcessorTypesCall {
9368	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9369	return c
9370}
9371
9372// IfNoneMatch sets the optional parameter which makes the operation
9373// fail if the object's ETag matches the given value. This is useful for
9374// getting updates only after the object has changed since the last
9375// request. Use googleapi.IsNotModified to check whether the response
9376// error from Do is the result of In-None-Match.
9377func (c *ProjectsLocationsFetchProcessorTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFetchProcessorTypesCall {
9378	c.ifNoneMatch_ = entityTag
9379	return c
9380}
9381
9382// Context sets the context to be used in this call's Do method. Any
9383// pending HTTP request will be aborted if the provided context is
9384// canceled.
9385func (c *ProjectsLocationsFetchProcessorTypesCall) Context(ctx context.Context) *ProjectsLocationsFetchProcessorTypesCall {
9386	c.ctx_ = ctx
9387	return c
9388}
9389
9390// Header returns an http.Header that can be modified by the caller to
9391// add HTTP headers to the request.
9392func (c *ProjectsLocationsFetchProcessorTypesCall) Header() http.Header {
9393	if c.header_ == nil {
9394		c.header_ = make(http.Header)
9395	}
9396	return c.header_
9397}
9398
9399func (c *ProjectsLocationsFetchProcessorTypesCall) doRequest(alt string) (*http.Response, error) {
9400	reqHeaders := make(http.Header)
9401	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9402	for k, v := range c.header_ {
9403		reqHeaders[k] = v
9404	}
9405	reqHeaders.Set("User-Agent", c.s.userAgent())
9406	if c.ifNoneMatch_ != "" {
9407		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9408	}
9409	var body io.Reader = nil
9410	c.urlParams_.Set("alt", alt)
9411	c.urlParams_.Set("prettyPrint", "false")
9412	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:fetchProcessorTypes")
9413	urls += "?" + c.urlParams_.Encode()
9414	req, err := http.NewRequest("GET", urls, body)
9415	if err != nil {
9416		return nil, err
9417	}
9418	req.Header = reqHeaders
9419	googleapi.Expand(req.URL, map[string]string{
9420		"parent": c.parent,
9421	})
9422	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9423}
9424
9425// Do executes the "documentai.projects.locations.fetchProcessorTypes" call.
9426// Exactly one of *GoogleCloudDocumentaiV1FetchProcessorTypesResponse or
9427// error will be non-nil. Any non-2xx status code is an error. Response
9428// headers are in either
9429// *GoogleCloudDocumentaiV1FetchProcessorTypesResponse.ServerResponse.Hea
9430// der or (if a response was returned at all) in
9431// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9432// whether the returned error was because http.StatusNotModified was
9433// returned.
9434func (c *ProjectsLocationsFetchProcessorTypesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1FetchProcessorTypesResponse, error) {
9435	gensupport.SetOptions(c.urlParams_, opts...)
9436	res, err := c.doRequest("json")
9437	if res != nil && res.StatusCode == http.StatusNotModified {
9438		if res.Body != nil {
9439			res.Body.Close()
9440		}
9441		return nil, &googleapi.Error{
9442			Code:   res.StatusCode,
9443			Header: res.Header,
9444		}
9445	}
9446	if err != nil {
9447		return nil, err
9448	}
9449	defer googleapi.CloseBody(res)
9450	if err := googleapi.CheckResponse(res); err != nil {
9451		return nil, err
9452	}
9453	ret := &GoogleCloudDocumentaiV1FetchProcessorTypesResponse{
9454		ServerResponse: googleapi.ServerResponse{
9455			Header:         res.Header,
9456			HTTPStatusCode: res.StatusCode,
9457		},
9458	}
9459	target := &ret
9460	if err := gensupport.DecodeResponse(target, res); err != nil {
9461		return nil, err
9462	}
9463	return ret, nil
9464	// {
9465	//   "description": "Fetches processor types.",
9466	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:fetchProcessorTypes",
9467	//   "httpMethod": "GET",
9468	//   "id": "documentai.projects.locations.fetchProcessorTypes",
9469	//   "parameterOrder": [
9470	//     "parent"
9471	//   ],
9472	//   "parameters": {
9473	//     "parent": {
9474	//       "description": "Required. The project of processor type to list. The available processor types may depend on the whitelisting on projects. Format: projects/{project}/locations/{location}",
9475	//       "location": "path",
9476	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
9477	//       "required": true,
9478	//       "type": "string"
9479	//     }
9480	//   },
9481	//   "path": "v1/{+parent}:fetchProcessorTypes",
9482	//   "response": {
9483	//     "$ref": "GoogleCloudDocumentaiV1FetchProcessorTypesResponse"
9484	//   },
9485	//   "scopes": [
9486	//     "https://www.googleapis.com/auth/cloud-platform"
9487	//   ]
9488	// }
9489
9490}
9491
9492// method id "documentai.projects.locations.get":
9493
9494type ProjectsLocationsGetCall struct {
9495	s            *Service
9496	name         string
9497	urlParams_   gensupport.URLParams
9498	ifNoneMatch_ string
9499	ctx_         context.Context
9500	header_      http.Header
9501}
9502
9503// Get: Gets information about a location.
9504//
9505// - name: Resource name for the location.
9506func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
9507	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9508	c.name = name
9509	return c
9510}
9511
9512// Fields allows partial responses to be retrieved. See
9513// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9514// for more information.
9515func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
9516	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9517	return c
9518}
9519
9520// IfNoneMatch sets the optional parameter which makes the operation
9521// fail if the object's ETag matches the given value. This is useful for
9522// getting updates only after the object has changed since the last
9523// request. Use googleapi.IsNotModified to check whether the response
9524// error from Do is the result of In-None-Match.
9525func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
9526	c.ifNoneMatch_ = entityTag
9527	return c
9528}
9529
9530// Context sets the context to be used in this call's Do method. Any
9531// pending HTTP request will be aborted if the provided context is
9532// canceled.
9533func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
9534	c.ctx_ = ctx
9535	return c
9536}
9537
9538// Header returns an http.Header that can be modified by the caller to
9539// add HTTP headers to the request.
9540func (c *ProjectsLocationsGetCall) Header() http.Header {
9541	if c.header_ == nil {
9542		c.header_ = make(http.Header)
9543	}
9544	return c.header_
9545}
9546
9547func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
9548	reqHeaders := make(http.Header)
9549	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9550	for k, v := range c.header_ {
9551		reqHeaders[k] = v
9552	}
9553	reqHeaders.Set("User-Agent", c.s.userAgent())
9554	if c.ifNoneMatch_ != "" {
9555		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9556	}
9557	var body io.Reader = nil
9558	c.urlParams_.Set("alt", alt)
9559	c.urlParams_.Set("prettyPrint", "false")
9560	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9561	urls += "?" + c.urlParams_.Encode()
9562	req, err := http.NewRequest("GET", urls, body)
9563	if err != nil {
9564		return nil, err
9565	}
9566	req.Header = reqHeaders
9567	googleapi.Expand(req.URL, map[string]string{
9568		"name": c.name,
9569	})
9570	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9571}
9572
9573// Do executes the "documentai.projects.locations.get" call.
9574// Exactly one of *GoogleCloudLocationLocation or error will be non-nil.
9575// Any non-2xx status code is an error. Response headers are in either
9576// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response
9577// was returned at all) in error.(*googleapi.Error).Header. Use
9578// googleapi.IsNotModified to check whether the returned error was
9579// because http.StatusNotModified was returned.
9580func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
9581	gensupport.SetOptions(c.urlParams_, opts...)
9582	res, err := c.doRequest("json")
9583	if res != nil && res.StatusCode == http.StatusNotModified {
9584		if res.Body != nil {
9585			res.Body.Close()
9586		}
9587		return nil, &googleapi.Error{
9588			Code:   res.StatusCode,
9589			Header: res.Header,
9590		}
9591	}
9592	if err != nil {
9593		return nil, err
9594	}
9595	defer googleapi.CloseBody(res)
9596	if err := googleapi.CheckResponse(res); err != nil {
9597		return nil, err
9598	}
9599	ret := &GoogleCloudLocationLocation{
9600		ServerResponse: googleapi.ServerResponse{
9601			Header:         res.Header,
9602			HTTPStatusCode: res.StatusCode,
9603		},
9604	}
9605	target := &ret
9606	if err := gensupport.DecodeResponse(target, res); err != nil {
9607		return nil, err
9608	}
9609	return ret, nil
9610	// {
9611	//   "description": "Gets information about a location.",
9612	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
9613	//   "httpMethod": "GET",
9614	//   "id": "documentai.projects.locations.get",
9615	//   "parameterOrder": [
9616	//     "name"
9617	//   ],
9618	//   "parameters": {
9619	//     "name": {
9620	//       "description": "Resource name for the location.",
9621	//       "location": "path",
9622	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
9623	//       "required": true,
9624	//       "type": "string"
9625	//     }
9626	//   },
9627	//   "path": "v1/{+name}",
9628	//   "response": {
9629	//     "$ref": "GoogleCloudLocationLocation"
9630	//   },
9631	//   "scopes": [
9632	//     "https://www.googleapis.com/auth/cloud-platform"
9633	//   ]
9634	// }
9635
9636}
9637
9638// method id "documentai.projects.locations.list":
9639
9640type ProjectsLocationsListCall struct {
9641	s            *Service
9642	name         string
9643	urlParams_   gensupport.URLParams
9644	ifNoneMatch_ string
9645	ctx_         context.Context
9646	header_      http.Header
9647}
9648
9649// List: Lists information about the supported locations for this
9650// service.
9651//
9652// - name: The resource that owns the locations collection, if
9653//   applicable.
9654func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
9655	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9656	c.name = name
9657	return c
9658}
9659
9660// Filter sets the optional parameter "filter": A filter to narrow down
9661// results to a preferred subset. The filtering language accepts strings
9662// like "displayName=tokyo", and is documented in more detail in AIP-160
9663// (https://google.aip.dev/160).
9664func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
9665	c.urlParams_.Set("filter", filter)
9666	return c
9667}
9668
9669// PageSize sets the optional parameter "pageSize": The maximum number
9670// of results to return. If not set, the service selects a default.
9671func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
9672	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9673	return c
9674}
9675
9676// PageToken sets the optional parameter "pageToken": A page token
9677// received from the `next_page_token` field in the response. Send that
9678// page token to receive the subsequent page.
9679func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
9680	c.urlParams_.Set("pageToken", pageToken)
9681	return c
9682}
9683
9684// Fields allows partial responses to be retrieved. See
9685// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9686// for more information.
9687func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
9688	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9689	return c
9690}
9691
9692// IfNoneMatch sets the optional parameter which makes the operation
9693// fail if the object's ETag matches the given value. This is useful for
9694// getting updates only after the object has changed since the last
9695// request. Use googleapi.IsNotModified to check whether the response
9696// error from Do is the result of In-None-Match.
9697func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
9698	c.ifNoneMatch_ = entityTag
9699	return c
9700}
9701
9702// Context sets the context to be used in this call's Do method. Any
9703// pending HTTP request will be aborted if the provided context is
9704// canceled.
9705func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
9706	c.ctx_ = ctx
9707	return c
9708}
9709
9710// Header returns an http.Header that can be modified by the caller to
9711// add HTTP headers to the request.
9712func (c *ProjectsLocationsListCall) Header() http.Header {
9713	if c.header_ == nil {
9714		c.header_ = make(http.Header)
9715	}
9716	return c.header_
9717}
9718
9719func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
9720	reqHeaders := make(http.Header)
9721	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9722	for k, v := range c.header_ {
9723		reqHeaders[k] = v
9724	}
9725	reqHeaders.Set("User-Agent", c.s.userAgent())
9726	if c.ifNoneMatch_ != "" {
9727		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9728	}
9729	var body io.Reader = nil
9730	c.urlParams_.Set("alt", alt)
9731	c.urlParams_.Set("prettyPrint", "false")
9732	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
9733	urls += "?" + c.urlParams_.Encode()
9734	req, err := http.NewRequest("GET", urls, body)
9735	if err != nil {
9736		return nil, err
9737	}
9738	req.Header = reqHeaders
9739	googleapi.Expand(req.URL, map[string]string{
9740		"name": c.name,
9741	})
9742	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9743}
9744
9745// Do executes the "documentai.projects.locations.list" call.
9746// Exactly one of *GoogleCloudLocationListLocationsResponse or error
9747// will be non-nil. Any non-2xx status code is an error. Response
9748// headers are in either
9749// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or
9750// (if a response was returned at all) in
9751// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9752// whether the returned error was because http.StatusNotModified was
9753// returned.
9754func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
9755	gensupport.SetOptions(c.urlParams_, opts...)
9756	res, err := c.doRequest("json")
9757	if res != nil && res.StatusCode == http.StatusNotModified {
9758		if res.Body != nil {
9759			res.Body.Close()
9760		}
9761		return nil, &googleapi.Error{
9762			Code:   res.StatusCode,
9763			Header: res.Header,
9764		}
9765	}
9766	if err != nil {
9767		return nil, err
9768	}
9769	defer googleapi.CloseBody(res)
9770	if err := googleapi.CheckResponse(res); err != nil {
9771		return nil, err
9772	}
9773	ret := &GoogleCloudLocationListLocationsResponse{
9774		ServerResponse: googleapi.ServerResponse{
9775			Header:         res.Header,
9776			HTTPStatusCode: res.StatusCode,
9777		},
9778	}
9779	target := &ret
9780	if err := gensupport.DecodeResponse(target, res); err != nil {
9781		return nil, err
9782	}
9783	return ret, nil
9784	// {
9785	//   "description": "Lists information about the supported locations for this service.",
9786	//   "flatPath": "v1/projects/{projectsId}/locations",
9787	//   "httpMethod": "GET",
9788	//   "id": "documentai.projects.locations.list",
9789	//   "parameterOrder": [
9790	//     "name"
9791	//   ],
9792	//   "parameters": {
9793	//     "filter": {
9794	//       "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
9795	//       "location": "query",
9796	//       "type": "string"
9797	//     },
9798	//     "name": {
9799	//       "description": "The resource that owns the locations collection, if applicable.",
9800	//       "location": "path",
9801	//       "pattern": "^projects/[^/]+$",
9802	//       "required": true,
9803	//       "type": "string"
9804	//     },
9805	//     "pageSize": {
9806	//       "description": "The maximum number of results to return. If not set, the service selects a default.",
9807	//       "format": "int32",
9808	//       "location": "query",
9809	//       "type": "integer"
9810	//     },
9811	//     "pageToken": {
9812	//       "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
9813	//       "location": "query",
9814	//       "type": "string"
9815	//     }
9816	//   },
9817	//   "path": "v1/{+name}/locations",
9818	//   "response": {
9819	//     "$ref": "GoogleCloudLocationListLocationsResponse"
9820	//   },
9821	//   "scopes": [
9822	//     "https://www.googleapis.com/auth/cloud-platform"
9823	//   ]
9824	// }
9825
9826}
9827
9828// Pages invokes f for each page of results.
9829// A non-nil error returned from f will halt the iteration.
9830// The provided context supersedes any context provided to the Context method.
9831func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
9832	c.ctx_ = ctx
9833	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
9834	for {
9835		x, err := c.Do()
9836		if err != nil {
9837			return err
9838		}
9839		if err := f(x); err != nil {
9840			return err
9841		}
9842		if x.NextPageToken == "" {
9843			return nil
9844		}
9845		c.PageToken(x.NextPageToken)
9846	}
9847}
9848
9849// method id "documentai.projects.locations.operations.cancel":
9850
9851type ProjectsLocationsOperationsCancelCall struct {
9852	s          *Service
9853	name       string
9854	urlParams_ gensupport.URLParams
9855	ctx_       context.Context
9856	header_    http.Header
9857}
9858
9859// Cancel: Starts asynchronous cancellation on a long-running operation.
9860// The server makes a best effort to cancel the operation, but success
9861// is not guaranteed. If the server doesn't support this method, it
9862// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
9863// Operations.GetOperation or other methods to check whether the
9864// cancellation succeeded or whether the operation completed despite
9865// cancellation. On successful cancellation, the operation is not
9866// deleted; instead, it becomes an operation with an Operation.error
9867// value with a google.rpc.Status.code of 1, corresponding to
9868// `Code.CANCELLED`.
9869//
9870// - name: The name of the operation resource to be cancelled.
9871func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
9872	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9873	c.name = name
9874	return c
9875}
9876
9877// Fields allows partial responses to be retrieved. See
9878// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9879// for more information.
9880func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
9881	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9882	return c
9883}
9884
9885// Context sets the context to be used in this call's Do method. Any
9886// pending HTTP request will be aborted if the provided context is
9887// canceled.
9888func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
9889	c.ctx_ = ctx
9890	return c
9891}
9892
9893// Header returns an http.Header that can be modified by the caller to
9894// add HTTP headers to the request.
9895func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
9896	if c.header_ == nil {
9897		c.header_ = make(http.Header)
9898	}
9899	return c.header_
9900}
9901
9902func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
9903	reqHeaders := make(http.Header)
9904	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9905	for k, v := range c.header_ {
9906		reqHeaders[k] = v
9907	}
9908	reqHeaders.Set("User-Agent", c.s.userAgent())
9909	var body io.Reader = nil
9910	c.urlParams_.Set("alt", alt)
9911	c.urlParams_.Set("prettyPrint", "false")
9912	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
9913	urls += "?" + c.urlParams_.Encode()
9914	req, err := http.NewRequest("POST", urls, body)
9915	if err != nil {
9916		return nil, err
9917	}
9918	req.Header = reqHeaders
9919	googleapi.Expand(req.URL, map[string]string{
9920		"name": c.name,
9921	})
9922	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9923}
9924
9925// Do executes the "documentai.projects.locations.operations.cancel" call.
9926// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
9927// non-2xx status code is an error. Response headers are in either
9928// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
9929// returned at all) in error.(*googleapi.Error).Header. Use
9930// googleapi.IsNotModified to check whether the returned error was
9931// because http.StatusNotModified was returned.
9932func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
9933	gensupport.SetOptions(c.urlParams_, opts...)
9934	res, err := c.doRequest("json")
9935	if res != nil && res.StatusCode == http.StatusNotModified {
9936		if res.Body != nil {
9937			res.Body.Close()
9938		}
9939		return nil, &googleapi.Error{
9940			Code:   res.StatusCode,
9941			Header: res.Header,
9942		}
9943	}
9944	if err != nil {
9945		return nil, err
9946	}
9947	defer googleapi.CloseBody(res)
9948	if err := googleapi.CheckResponse(res); err != nil {
9949		return nil, err
9950	}
9951	ret := &GoogleProtobufEmpty{
9952		ServerResponse: googleapi.ServerResponse{
9953			Header:         res.Header,
9954			HTTPStatusCode: res.StatusCode,
9955		},
9956	}
9957	target := &ret
9958	if err := gensupport.DecodeResponse(target, res); err != nil {
9959		return nil, err
9960	}
9961	return ret, nil
9962	// {
9963	//   "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
9964	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
9965	//   "httpMethod": "POST",
9966	//   "id": "documentai.projects.locations.operations.cancel",
9967	//   "parameterOrder": [
9968	//     "name"
9969	//   ],
9970	//   "parameters": {
9971	//     "name": {
9972	//       "description": "The name of the operation resource to be cancelled.",
9973	//       "location": "path",
9974	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
9975	//       "required": true,
9976	//       "type": "string"
9977	//     }
9978	//   },
9979	//   "path": "v1/{+name}:cancel",
9980	//   "response": {
9981	//     "$ref": "GoogleProtobufEmpty"
9982	//   },
9983	//   "scopes": [
9984	//     "https://www.googleapis.com/auth/cloud-platform"
9985	//   ]
9986	// }
9987
9988}
9989
9990// method id "documentai.projects.locations.operations.get":
9991
9992type ProjectsLocationsOperationsGetCall struct {
9993	s            *Service
9994	name         string
9995	urlParams_   gensupport.URLParams
9996	ifNoneMatch_ string
9997	ctx_         context.Context
9998	header_      http.Header
9999}
10000
10001// Get: Gets the latest state of a long-running operation. Clients can
10002// use this method to poll the operation result at intervals as
10003// recommended by the API service.
10004//
10005// - name: The name of the operation resource.
10006func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
10007	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10008	c.name = name
10009	return c
10010}
10011
10012// Fields allows partial responses to be retrieved. See
10013// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10014// for more information.
10015func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
10016	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10017	return c
10018}
10019
10020// IfNoneMatch sets the optional parameter which makes the operation
10021// fail if the object's ETag matches the given value. This is useful for
10022// getting updates only after the object has changed since the last
10023// request. Use googleapi.IsNotModified to check whether the response
10024// error from Do is the result of In-None-Match.
10025func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
10026	c.ifNoneMatch_ = entityTag
10027	return c
10028}
10029
10030// Context sets the context to be used in this call's Do method. Any
10031// pending HTTP request will be aborted if the provided context is
10032// canceled.
10033func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
10034	c.ctx_ = ctx
10035	return c
10036}
10037
10038// Header returns an http.Header that can be modified by the caller to
10039// add HTTP headers to the request.
10040func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
10041	if c.header_ == nil {
10042		c.header_ = make(http.Header)
10043	}
10044	return c.header_
10045}
10046
10047func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
10048	reqHeaders := make(http.Header)
10049	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10050	for k, v := range c.header_ {
10051		reqHeaders[k] = v
10052	}
10053	reqHeaders.Set("User-Agent", c.s.userAgent())
10054	if c.ifNoneMatch_ != "" {
10055		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10056	}
10057	var body io.Reader = nil
10058	c.urlParams_.Set("alt", alt)
10059	c.urlParams_.Set("prettyPrint", "false")
10060	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10061	urls += "?" + c.urlParams_.Encode()
10062	req, err := http.NewRequest("GET", urls, body)
10063	if err != nil {
10064		return nil, err
10065	}
10066	req.Header = reqHeaders
10067	googleapi.Expand(req.URL, map[string]string{
10068		"name": c.name,
10069	})
10070	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10071}
10072
10073// Do executes the "documentai.projects.locations.operations.get" call.
10074// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10075// Any non-2xx status code is an error. Response headers are in either
10076// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10077// was returned at all) in error.(*googleapi.Error).Header. Use
10078// googleapi.IsNotModified to check whether the returned error was
10079// because http.StatusNotModified was returned.
10080func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10081	gensupport.SetOptions(c.urlParams_, opts...)
10082	res, err := c.doRequest("json")
10083	if res != nil && res.StatusCode == http.StatusNotModified {
10084		if res.Body != nil {
10085			res.Body.Close()
10086		}
10087		return nil, &googleapi.Error{
10088			Code:   res.StatusCode,
10089			Header: res.Header,
10090		}
10091	}
10092	if err != nil {
10093		return nil, err
10094	}
10095	defer googleapi.CloseBody(res)
10096	if err := googleapi.CheckResponse(res); err != nil {
10097		return nil, err
10098	}
10099	ret := &GoogleLongrunningOperation{
10100		ServerResponse: googleapi.ServerResponse{
10101			Header:         res.Header,
10102			HTTPStatusCode: res.StatusCode,
10103		},
10104	}
10105	target := &ret
10106	if err := gensupport.DecodeResponse(target, res); err != nil {
10107		return nil, err
10108	}
10109	return ret, nil
10110	// {
10111	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
10112	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
10113	//   "httpMethod": "GET",
10114	//   "id": "documentai.projects.locations.operations.get",
10115	//   "parameterOrder": [
10116	//     "name"
10117	//   ],
10118	//   "parameters": {
10119	//     "name": {
10120	//       "description": "The name of the operation resource.",
10121	//       "location": "path",
10122	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
10123	//       "required": true,
10124	//       "type": "string"
10125	//     }
10126	//   },
10127	//   "path": "v1/{+name}",
10128	//   "response": {
10129	//     "$ref": "GoogleLongrunningOperation"
10130	//   },
10131	//   "scopes": [
10132	//     "https://www.googleapis.com/auth/cloud-platform"
10133	//   ]
10134	// }
10135
10136}
10137
10138// method id "documentai.projects.locations.operations.list":
10139
10140type ProjectsLocationsOperationsListCall struct {
10141	s            *Service
10142	name         string
10143	urlParams_   gensupport.URLParams
10144	ifNoneMatch_ string
10145	ctx_         context.Context
10146	header_      http.Header
10147}
10148
10149// List: Lists operations that match the specified filter in the
10150// request. If the server doesn't support this method, it returns
10151// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
10152// override the binding to use different resource name schemes, such as
10153// `users/*/operations`. To override the binding, API services can add a
10154// binding such as "/v1/{name=users/*}/operations" to their service
10155// configuration. For backwards compatibility, the default name includes
10156// the operations collection id, however overriding users must ensure
10157// the name binding is the parent resource, without the operations
10158// collection id.
10159//
10160// - name: The name of the operation's parent resource.
10161func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
10162	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10163	c.name = name
10164	return c
10165}
10166
10167// Filter sets the optional parameter "filter": The standard list
10168// filter.
10169func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
10170	c.urlParams_.Set("filter", filter)
10171	return c
10172}
10173
10174// PageSize sets the optional parameter "pageSize": The standard list
10175// page size.
10176func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
10177	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10178	return c
10179}
10180
10181// PageToken sets the optional parameter "pageToken": The standard list
10182// page token.
10183func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
10184	c.urlParams_.Set("pageToken", pageToken)
10185	return c
10186}
10187
10188// Fields allows partial responses to be retrieved. See
10189// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10190// for more information.
10191func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
10192	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10193	return c
10194}
10195
10196// IfNoneMatch sets the optional parameter which makes the operation
10197// fail if the object's ETag matches the given value. This is useful for
10198// getting updates only after the object has changed since the last
10199// request. Use googleapi.IsNotModified to check whether the response
10200// error from Do is the result of In-None-Match.
10201func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
10202	c.ifNoneMatch_ = entityTag
10203	return c
10204}
10205
10206// Context sets the context to be used in this call's Do method. Any
10207// pending HTTP request will be aborted if the provided context is
10208// canceled.
10209func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
10210	c.ctx_ = ctx
10211	return c
10212}
10213
10214// Header returns an http.Header that can be modified by the caller to
10215// add HTTP headers to the request.
10216func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
10217	if c.header_ == nil {
10218		c.header_ = make(http.Header)
10219	}
10220	return c.header_
10221}
10222
10223func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
10224	reqHeaders := make(http.Header)
10225	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10226	for k, v := range c.header_ {
10227		reqHeaders[k] = v
10228	}
10229	reqHeaders.Set("User-Agent", c.s.userAgent())
10230	if c.ifNoneMatch_ != "" {
10231		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10232	}
10233	var body io.Reader = nil
10234	c.urlParams_.Set("alt", alt)
10235	c.urlParams_.Set("prettyPrint", "false")
10236	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10237	urls += "?" + c.urlParams_.Encode()
10238	req, err := http.NewRequest("GET", urls, body)
10239	if err != nil {
10240		return nil, err
10241	}
10242	req.Header = reqHeaders
10243	googleapi.Expand(req.URL, map[string]string{
10244		"name": c.name,
10245	})
10246	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10247}
10248
10249// Do executes the "documentai.projects.locations.operations.list" call.
10250// Exactly one of *GoogleLongrunningListOperationsResponse or error will
10251// be non-nil. Any non-2xx status code is an error. Response headers are
10252// in either
10253// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
10254// a response was returned at all) in error.(*googleapi.Error).Header.
10255// Use googleapi.IsNotModified to check whether the returned error was
10256// because http.StatusNotModified was returned.
10257func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
10258	gensupport.SetOptions(c.urlParams_, opts...)
10259	res, err := c.doRequest("json")
10260	if res != nil && res.StatusCode == http.StatusNotModified {
10261		if res.Body != nil {
10262			res.Body.Close()
10263		}
10264		return nil, &googleapi.Error{
10265			Code:   res.StatusCode,
10266			Header: res.Header,
10267		}
10268	}
10269	if err != nil {
10270		return nil, err
10271	}
10272	defer googleapi.CloseBody(res)
10273	if err := googleapi.CheckResponse(res); err != nil {
10274		return nil, err
10275	}
10276	ret := &GoogleLongrunningListOperationsResponse{
10277		ServerResponse: googleapi.ServerResponse{
10278			Header:         res.Header,
10279			HTTPStatusCode: res.StatusCode,
10280		},
10281	}
10282	target := &ret
10283	if err := gensupport.DecodeResponse(target, res); err != nil {
10284		return nil, err
10285	}
10286	return ret, nil
10287	// {
10288	//   "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
10289	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations",
10290	//   "httpMethod": "GET",
10291	//   "id": "documentai.projects.locations.operations.list",
10292	//   "parameterOrder": [
10293	//     "name"
10294	//   ],
10295	//   "parameters": {
10296	//     "filter": {
10297	//       "description": "The standard list filter.",
10298	//       "location": "query",
10299	//       "type": "string"
10300	//     },
10301	//     "name": {
10302	//       "description": "The name of the operation's parent resource.",
10303	//       "location": "path",
10304	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations$",
10305	//       "required": true,
10306	//       "type": "string"
10307	//     },
10308	//     "pageSize": {
10309	//       "description": "The standard list page size.",
10310	//       "format": "int32",
10311	//       "location": "query",
10312	//       "type": "integer"
10313	//     },
10314	//     "pageToken": {
10315	//       "description": "The standard list page token.",
10316	//       "location": "query",
10317	//       "type": "string"
10318	//     }
10319	//   },
10320	//   "path": "v1/{+name}",
10321	//   "response": {
10322	//     "$ref": "GoogleLongrunningListOperationsResponse"
10323	//   },
10324	//   "scopes": [
10325	//     "https://www.googleapis.com/auth/cloud-platform"
10326	//   ]
10327	// }
10328
10329}
10330
10331// Pages invokes f for each page of results.
10332// A non-nil error returned from f will halt the iteration.
10333// The provided context supersedes any context provided to the Context method.
10334func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
10335	c.ctx_ = ctx
10336	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
10337	for {
10338		x, err := c.Do()
10339		if err != nil {
10340			return err
10341		}
10342		if err := f(x); err != nil {
10343			return err
10344		}
10345		if x.NextPageToken == "" {
10346			return nil
10347		}
10348		c.PageToken(x.NextPageToken)
10349	}
10350}
10351
10352// method id "documentai.projects.locations.processors.batchProcess":
10353
10354type ProjectsLocationsProcessorsBatchProcessCall struct {
10355	s                                          *Service
10356	name                                       string
10357	googleclouddocumentaiv1batchprocessrequest *GoogleCloudDocumentaiV1BatchProcessRequest
10358	urlParams_                                 gensupport.URLParams
10359	ctx_                                       context.Context
10360	header_                                    http.Header
10361}
10362
10363// BatchProcess: LRO endpoint to batch process many documents. The
10364// output is written to Cloud Storage as JSON in the [Document] format.
10365//
10366// - name: The resource name of Processor or ProcessorVersion. Format:
10367//   projects/{project}/locations/{location}/processors/{processor}, or
10368//   projects/{project}/locations/{location}/processors/{processor}/proce
10369//   ssorVersions/{processorVersion}.
10370func (r *ProjectsLocationsProcessorsService) BatchProcess(name string, googleclouddocumentaiv1batchprocessrequest *GoogleCloudDocumentaiV1BatchProcessRequest) *ProjectsLocationsProcessorsBatchProcessCall {
10371	c := &ProjectsLocationsProcessorsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10372	c.name = name
10373	c.googleclouddocumentaiv1batchprocessrequest = googleclouddocumentaiv1batchprocessrequest
10374	return c
10375}
10376
10377// Fields allows partial responses to be retrieved. See
10378// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10379// for more information.
10380func (c *ProjectsLocationsProcessorsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsBatchProcessCall {
10381	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10382	return c
10383}
10384
10385// Context sets the context to be used in this call's Do method. Any
10386// pending HTTP request will be aborted if the provided context is
10387// canceled.
10388func (c *ProjectsLocationsProcessorsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsBatchProcessCall {
10389	c.ctx_ = ctx
10390	return c
10391}
10392
10393// Header returns an http.Header that can be modified by the caller to
10394// add HTTP headers to the request.
10395func (c *ProjectsLocationsProcessorsBatchProcessCall) Header() http.Header {
10396	if c.header_ == nil {
10397		c.header_ = make(http.Header)
10398	}
10399	return c.header_
10400}
10401
10402func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
10403	reqHeaders := make(http.Header)
10404	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10405	for k, v := range c.header_ {
10406		reqHeaders[k] = v
10407	}
10408	reqHeaders.Set("User-Agent", c.s.userAgent())
10409	var body io.Reader = nil
10410	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1batchprocessrequest)
10411	if err != nil {
10412		return nil, err
10413	}
10414	reqHeaders.Set("Content-Type", "application/json")
10415	c.urlParams_.Set("alt", alt)
10416	c.urlParams_.Set("prettyPrint", "false")
10417	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:batchProcess")
10418	urls += "?" + c.urlParams_.Encode()
10419	req, err := http.NewRequest("POST", urls, body)
10420	if err != nil {
10421		return nil, err
10422	}
10423	req.Header = reqHeaders
10424	googleapi.Expand(req.URL, map[string]string{
10425		"name": c.name,
10426	})
10427	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10428}
10429
10430// Do executes the "documentai.projects.locations.processors.batchProcess" call.
10431// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10432// Any non-2xx status code is an error. Response headers are in either
10433// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10434// was returned at all) in error.(*googleapi.Error).Header. Use
10435// googleapi.IsNotModified to check whether the returned error was
10436// because http.StatusNotModified was returned.
10437func (c *ProjectsLocationsProcessorsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10438	gensupport.SetOptions(c.urlParams_, opts...)
10439	res, err := c.doRequest("json")
10440	if res != nil && res.StatusCode == http.StatusNotModified {
10441		if res.Body != nil {
10442			res.Body.Close()
10443		}
10444		return nil, &googleapi.Error{
10445			Code:   res.StatusCode,
10446			Header: res.Header,
10447		}
10448	}
10449	if err != nil {
10450		return nil, err
10451	}
10452	defer googleapi.CloseBody(res)
10453	if err := googleapi.CheckResponse(res); err != nil {
10454		return nil, err
10455	}
10456	ret := &GoogleLongrunningOperation{
10457		ServerResponse: googleapi.ServerResponse{
10458			Header:         res.Header,
10459			HTTPStatusCode: res.StatusCode,
10460		},
10461	}
10462	target := &ret
10463	if err := gensupport.DecodeResponse(target, res); err != nil {
10464		return nil, err
10465	}
10466	return ret, nil
10467	// {
10468	//   "description": "LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.",
10469	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:batchProcess",
10470	//   "httpMethod": "POST",
10471	//   "id": "documentai.projects.locations.processors.batchProcess",
10472	//   "parameterOrder": [
10473	//     "name"
10474	//   ],
10475	//   "parameters": {
10476	//     "name": {
10477	//       "description": "Required. The resource name of Processor or ProcessorVersion. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}",
10478	//       "location": "path",
10479	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10480	//       "required": true,
10481	//       "type": "string"
10482	//     }
10483	//   },
10484	//   "path": "v1/{+name}:batchProcess",
10485	//   "request": {
10486	//     "$ref": "GoogleCloudDocumentaiV1BatchProcessRequest"
10487	//   },
10488	//   "response": {
10489	//     "$ref": "GoogleLongrunningOperation"
10490	//   },
10491	//   "scopes": [
10492	//     "https://www.googleapis.com/auth/cloud-platform"
10493	//   ]
10494	// }
10495
10496}
10497
10498// method id "documentai.projects.locations.processors.create":
10499
10500type ProjectsLocationsProcessorsCreateCall struct {
10501	s                                *Service
10502	parent                           string
10503	googleclouddocumentaiv1processor *GoogleCloudDocumentaiV1Processor
10504	urlParams_                       gensupport.URLParams
10505	ctx_                             context.Context
10506	header_                          http.Header
10507}
10508
10509// Create: Creates a processor from the type processor that the user
10510// chose. The processor will be at "ENABLED" state by default after its
10511// creation.
10512//
10513// - parent: The parent (project and location) under which to create the
10514//   processor. Format: projects/{project}/locations/{location}.
10515func (r *ProjectsLocationsProcessorsService) Create(parent string, googleclouddocumentaiv1processor *GoogleCloudDocumentaiV1Processor) *ProjectsLocationsProcessorsCreateCall {
10516	c := &ProjectsLocationsProcessorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10517	c.parent = parent
10518	c.googleclouddocumentaiv1processor = googleclouddocumentaiv1processor
10519	return c
10520}
10521
10522// Fields allows partial responses to be retrieved. See
10523// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10524// for more information.
10525func (c *ProjectsLocationsProcessorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsCreateCall {
10526	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10527	return c
10528}
10529
10530// Context sets the context to be used in this call's Do method. Any
10531// pending HTTP request will be aborted if the provided context is
10532// canceled.
10533func (c *ProjectsLocationsProcessorsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessorsCreateCall {
10534	c.ctx_ = ctx
10535	return c
10536}
10537
10538// Header returns an http.Header that can be modified by the caller to
10539// add HTTP headers to the request.
10540func (c *ProjectsLocationsProcessorsCreateCall) Header() http.Header {
10541	if c.header_ == nil {
10542		c.header_ = make(http.Header)
10543	}
10544	return c.header_
10545}
10546
10547func (c *ProjectsLocationsProcessorsCreateCall) doRequest(alt string) (*http.Response, error) {
10548	reqHeaders := make(http.Header)
10549	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10550	for k, v := range c.header_ {
10551		reqHeaders[k] = v
10552	}
10553	reqHeaders.Set("User-Agent", c.s.userAgent())
10554	var body io.Reader = nil
10555	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1processor)
10556	if err != nil {
10557		return nil, err
10558	}
10559	reqHeaders.Set("Content-Type", "application/json")
10560	c.urlParams_.Set("alt", alt)
10561	c.urlParams_.Set("prettyPrint", "false")
10562	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/processors")
10563	urls += "?" + c.urlParams_.Encode()
10564	req, err := http.NewRequest("POST", urls, body)
10565	if err != nil {
10566		return nil, err
10567	}
10568	req.Header = reqHeaders
10569	googleapi.Expand(req.URL, map[string]string{
10570		"parent": c.parent,
10571	})
10572	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10573}
10574
10575// Do executes the "documentai.projects.locations.processors.create" call.
10576// Exactly one of *GoogleCloudDocumentaiV1Processor or error will be
10577// non-nil. Any non-2xx status code is an error. Response headers are in
10578// either *GoogleCloudDocumentaiV1Processor.ServerResponse.Header or (if
10579// a response was returned at all) in error.(*googleapi.Error).Header.
10580// Use googleapi.IsNotModified to check whether the returned error was
10581// because http.StatusNotModified was returned.
10582func (c *ProjectsLocationsProcessorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1Processor, error) {
10583	gensupport.SetOptions(c.urlParams_, opts...)
10584	res, err := c.doRequest("json")
10585	if res != nil && res.StatusCode == http.StatusNotModified {
10586		if res.Body != nil {
10587			res.Body.Close()
10588		}
10589		return nil, &googleapi.Error{
10590			Code:   res.StatusCode,
10591			Header: res.Header,
10592		}
10593	}
10594	if err != nil {
10595		return nil, err
10596	}
10597	defer googleapi.CloseBody(res)
10598	if err := googleapi.CheckResponse(res); err != nil {
10599		return nil, err
10600	}
10601	ret := &GoogleCloudDocumentaiV1Processor{
10602		ServerResponse: googleapi.ServerResponse{
10603			Header:         res.Header,
10604			HTTPStatusCode: res.StatusCode,
10605		},
10606	}
10607	target := &ret
10608	if err := gensupport.DecodeResponse(target, res); err != nil {
10609		return nil, err
10610	}
10611	return ret, nil
10612	// {
10613	//   "description": "Creates a processor from the type processor that the user chose. The processor will be at \"ENABLED\" state by default after its creation.",
10614	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors",
10615	//   "httpMethod": "POST",
10616	//   "id": "documentai.projects.locations.processors.create",
10617	//   "parameterOrder": [
10618	//     "parent"
10619	//   ],
10620	//   "parameters": {
10621	//     "parent": {
10622	//       "description": "Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location}",
10623	//       "location": "path",
10624	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
10625	//       "required": true,
10626	//       "type": "string"
10627	//     }
10628	//   },
10629	//   "path": "v1/{+parent}/processors",
10630	//   "request": {
10631	//     "$ref": "GoogleCloudDocumentaiV1Processor"
10632	//   },
10633	//   "response": {
10634	//     "$ref": "GoogleCloudDocumentaiV1Processor"
10635	//   },
10636	//   "scopes": [
10637	//     "https://www.googleapis.com/auth/cloud-platform"
10638	//   ]
10639	// }
10640
10641}
10642
10643// method id "documentai.projects.locations.processors.delete":
10644
10645type ProjectsLocationsProcessorsDeleteCall struct {
10646	s          *Service
10647	name       string
10648	urlParams_ gensupport.URLParams
10649	ctx_       context.Context
10650	header_    http.Header
10651}
10652
10653// Delete: Deletes the processor, unloads all deployed model artifacts
10654// if it was enabled and then deletes all artifacts associated with this
10655// processor.
10656//
10657// - name: The processor resource name to be deleted.
10658func (r *ProjectsLocationsProcessorsService) Delete(name string) *ProjectsLocationsProcessorsDeleteCall {
10659	c := &ProjectsLocationsProcessorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10660	c.name = name
10661	return c
10662}
10663
10664// Fields allows partial responses to be retrieved. See
10665// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10666// for more information.
10667func (c *ProjectsLocationsProcessorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDeleteCall {
10668	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10669	return c
10670}
10671
10672// Context sets the context to be used in this call's Do method. Any
10673// pending HTTP request will be aborted if the provided context is
10674// canceled.
10675func (c *ProjectsLocationsProcessorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDeleteCall {
10676	c.ctx_ = ctx
10677	return c
10678}
10679
10680// Header returns an http.Header that can be modified by the caller to
10681// add HTTP headers to the request.
10682func (c *ProjectsLocationsProcessorsDeleteCall) Header() http.Header {
10683	if c.header_ == nil {
10684		c.header_ = make(http.Header)
10685	}
10686	return c.header_
10687}
10688
10689func (c *ProjectsLocationsProcessorsDeleteCall) doRequest(alt string) (*http.Response, error) {
10690	reqHeaders := make(http.Header)
10691	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10692	for k, v := range c.header_ {
10693		reqHeaders[k] = v
10694	}
10695	reqHeaders.Set("User-Agent", c.s.userAgent())
10696	var body io.Reader = nil
10697	c.urlParams_.Set("alt", alt)
10698	c.urlParams_.Set("prettyPrint", "false")
10699	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10700	urls += "?" + c.urlParams_.Encode()
10701	req, err := http.NewRequest("DELETE", urls, body)
10702	if err != nil {
10703		return nil, err
10704	}
10705	req.Header = reqHeaders
10706	googleapi.Expand(req.URL, map[string]string{
10707		"name": c.name,
10708	})
10709	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10710}
10711
10712// Do executes the "documentai.projects.locations.processors.delete" call.
10713// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10714// Any non-2xx status code is an error. Response headers are in either
10715// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10716// was returned at all) in error.(*googleapi.Error).Header. Use
10717// googleapi.IsNotModified to check whether the returned error was
10718// because http.StatusNotModified was returned.
10719func (c *ProjectsLocationsProcessorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10720	gensupport.SetOptions(c.urlParams_, opts...)
10721	res, err := c.doRequest("json")
10722	if res != nil && res.StatusCode == http.StatusNotModified {
10723		if res.Body != nil {
10724			res.Body.Close()
10725		}
10726		return nil, &googleapi.Error{
10727			Code:   res.StatusCode,
10728			Header: res.Header,
10729		}
10730	}
10731	if err != nil {
10732		return nil, err
10733	}
10734	defer googleapi.CloseBody(res)
10735	if err := googleapi.CheckResponse(res); err != nil {
10736		return nil, err
10737	}
10738	ret := &GoogleLongrunningOperation{
10739		ServerResponse: googleapi.ServerResponse{
10740			Header:         res.Header,
10741			HTTPStatusCode: res.StatusCode,
10742		},
10743	}
10744	target := &ret
10745	if err := gensupport.DecodeResponse(target, res); err != nil {
10746		return nil, err
10747	}
10748	return ret, nil
10749	// {
10750	//   "description": "Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.",
10751	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}",
10752	//   "httpMethod": "DELETE",
10753	//   "id": "documentai.projects.locations.processors.delete",
10754	//   "parameterOrder": [
10755	//     "name"
10756	//   ],
10757	//   "parameters": {
10758	//     "name": {
10759	//       "description": "Required. The processor resource name to be deleted.",
10760	//       "location": "path",
10761	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10762	//       "required": true,
10763	//       "type": "string"
10764	//     }
10765	//   },
10766	//   "path": "v1/{+name}",
10767	//   "response": {
10768	//     "$ref": "GoogleLongrunningOperation"
10769	//   },
10770	//   "scopes": [
10771	//     "https://www.googleapis.com/auth/cloud-platform"
10772	//   ]
10773	// }
10774
10775}
10776
10777// method id "documentai.projects.locations.processors.disable":
10778
10779type ProjectsLocationsProcessorsDisableCall struct {
10780	s                                              *Service
10781	name                                           string
10782	googleclouddocumentaiv1disableprocessorrequest *GoogleCloudDocumentaiV1DisableProcessorRequest
10783	urlParams_                                     gensupport.URLParams
10784	ctx_                                           context.Context
10785	header_                                        http.Header
10786}
10787
10788// Disable: Disables a processor
10789//
10790// - name: The processor resource name to be disabled.
10791func (r *ProjectsLocationsProcessorsService) Disable(name string, googleclouddocumentaiv1disableprocessorrequest *GoogleCloudDocumentaiV1DisableProcessorRequest) *ProjectsLocationsProcessorsDisableCall {
10792	c := &ProjectsLocationsProcessorsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10793	c.name = name
10794	c.googleclouddocumentaiv1disableprocessorrequest = googleclouddocumentaiv1disableprocessorrequest
10795	return c
10796}
10797
10798// Fields allows partial responses to be retrieved. See
10799// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10800// for more information.
10801func (c *ProjectsLocationsProcessorsDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDisableCall {
10802	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10803	return c
10804}
10805
10806// Context sets the context to be used in this call's Do method. Any
10807// pending HTTP request will be aborted if the provided context is
10808// canceled.
10809func (c *ProjectsLocationsProcessorsDisableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDisableCall {
10810	c.ctx_ = ctx
10811	return c
10812}
10813
10814// Header returns an http.Header that can be modified by the caller to
10815// add HTTP headers to the request.
10816func (c *ProjectsLocationsProcessorsDisableCall) Header() http.Header {
10817	if c.header_ == nil {
10818		c.header_ = make(http.Header)
10819	}
10820	return c.header_
10821}
10822
10823func (c *ProjectsLocationsProcessorsDisableCall) doRequest(alt string) (*http.Response, error) {
10824	reqHeaders := make(http.Header)
10825	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10826	for k, v := range c.header_ {
10827		reqHeaders[k] = v
10828	}
10829	reqHeaders.Set("User-Agent", c.s.userAgent())
10830	var body io.Reader = nil
10831	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1disableprocessorrequest)
10832	if err != nil {
10833		return nil, err
10834	}
10835	reqHeaders.Set("Content-Type", "application/json")
10836	c.urlParams_.Set("alt", alt)
10837	c.urlParams_.Set("prettyPrint", "false")
10838	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:disable")
10839	urls += "?" + c.urlParams_.Encode()
10840	req, err := http.NewRequest("POST", urls, body)
10841	if err != nil {
10842		return nil, err
10843	}
10844	req.Header = reqHeaders
10845	googleapi.Expand(req.URL, map[string]string{
10846		"name": c.name,
10847	})
10848	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10849}
10850
10851// Do executes the "documentai.projects.locations.processors.disable" call.
10852// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10853// Any non-2xx status code is an error. Response headers are in either
10854// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10855// was returned at all) in error.(*googleapi.Error).Header. Use
10856// googleapi.IsNotModified to check whether the returned error was
10857// because http.StatusNotModified was returned.
10858func (c *ProjectsLocationsProcessorsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10859	gensupport.SetOptions(c.urlParams_, opts...)
10860	res, err := c.doRequest("json")
10861	if res != nil && res.StatusCode == http.StatusNotModified {
10862		if res.Body != nil {
10863			res.Body.Close()
10864		}
10865		return nil, &googleapi.Error{
10866			Code:   res.StatusCode,
10867			Header: res.Header,
10868		}
10869	}
10870	if err != nil {
10871		return nil, err
10872	}
10873	defer googleapi.CloseBody(res)
10874	if err := googleapi.CheckResponse(res); err != nil {
10875		return nil, err
10876	}
10877	ret := &GoogleLongrunningOperation{
10878		ServerResponse: googleapi.ServerResponse{
10879			Header:         res.Header,
10880			HTTPStatusCode: res.StatusCode,
10881		},
10882	}
10883	target := &ret
10884	if err := gensupport.DecodeResponse(target, res); err != nil {
10885		return nil, err
10886	}
10887	return ret, nil
10888	// {
10889	//   "description": "Disables a processor",
10890	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:disable",
10891	//   "httpMethod": "POST",
10892	//   "id": "documentai.projects.locations.processors.disable",
10893	//   "parameterOrder": [
10894	//     "name"
10895	//   ],
10896	//   "parameters": {
10897	//     "name": {
10898	//       "description": "Required. The processor resource name to be disabled.",
10899	//       "location": "path",
10900	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10901	//       "required": true,
10902	//       "type": "string"
10903	//     }
10904	//   },
10905	//   "path": "v1/{+name}:disable",
10906	//   "request": {
10907	//     "$ref": "GoogleCloudDocumentaiV1DisableProcessorRequest"
10908	//   },
10909	//   "response": {
10910	//     "$ref": "GoogleLongrunningOperation"
10911	//   },
10912	//   "scopes": [
10913	//     "https://www.googleapis.com/auth/cloud-platform"
10914	//   ]
10915	// }
10916
10917}
10918
10919// method id "documentai.projects.locations.processors.enable":
10920
10921type ProjectsLocationsProcessorsEnableCall struct {
10922	s                                             *Service
10923	name                                          string
10924	googleclouddocumentaiv1enableprocessorrequest *GoogleCloudDocumentaiV1EnableProcessorRequest
10925	urlParams_                                    gensupport.URLParams
10926	ctx_                                          context.Context
10927	header_                                       http.Header
10928}
10929
10930// Enable: Enables a processor
10931//
10932// - name: The processor resource name to be enabled.
10933func (r *ProjectsLocationsProcessorsService) Enable(name string, googleclouddocumentaiv1enableprocessorrequest *GoogleCloudDocumentaiV1EnableProcessorRequest) *ProjectsLocationsProcessorsEnableCall {
10934	c := &ProjectsLocationsProcessorsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10935	c.name = name
10936	c.googleclouddocumentaiv1enableprocessorrequest = googleclouddocumentaiv1enableprocessorrequest
10937	return c
10938}
10939
10940// Fields allows partial responses to be retrieved. See
10941// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10942// for more information.
10943func (c *ProjectsLocationsProcessorsEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsEnableCall {
10944	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10945	return c
10946}
10947
10948// Context sets the context to be used in this call's Do method. Any
10949// pending HTTP request will be aborted if the provided context is
10950// canceled.
10951func (c *ProjectsLocationsProcessorsEnableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsEnableCall {
10952	c.ctx_ = ctx
10953	return c
10954}
10955
10956// Header returns an http.Header that can be modified by the caller to
10957// add HTTP headers to the request.
10958func (c *ProjectsLocationsProcessorsEnableCall) Header() http.Header {
10959	if c.header_ == nil {
10960		c.header_ = make(http.Header)
10961	}
10962	return c.header_
10963}
10964
10965func (c *ProjectsLocationsProcessorsEnableCall) doRequest(alt string) (*http.Response, error) {
10966	reqHeaders := make(http.Header)
10967	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10968	for k, v := range c.header_ {
10969		reqHeaders[k] = v
10970	}
10971	reqHeaders.Set("User-Agent", c.s.userAgent())
10972	var body io.Reader = nil
10973	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1enableprocessorrequest)
10974	if err != nil {
10975		return nil, err
10976	}
10977	reqHeaders.Set("Content-Type", "application/json")
10978	c.urlParams_.Set("alt", alt)
10979	c.urlParams_.Set("prettyPrint", "false")
10980	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:enable")
10981	urls += "?" + c.urlParams_.Encode()
10982	req, err := http.NewRequest("POST", urls, body)
10983	if err != nil {
10984		return nil, err
10985	}
10986	req.Header = reqHeaders
10987	googleapi.Expand(req.URL, map[string]string{
10988		"name": c.name,
10989	})
10990	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10991}
10992
10993// Do executes the "documentai.projects.locations.processors.enable" call.
10994// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10995// Any non-2xx status code is an error. Response headers are in either
10996// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10997// was returned at all) in error.(*googleapi.Error).Header. Use
10998// googleapi.IsNotModified to check whether the returned error was
10999// because http.StatusNotModified was returned.
11000func (c *ProjectsLocationsProcessorsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11001	gensupport.SetOptions(c.urlParams_, opts...)
11002	res, err := c.doRequest("json")
11003	if res != nil && res.StatusCode == http.StatusNotModified {
11004		if res.Body != nil {
11005			res.Body.Close()
11006		}
11007		return nil, &googleapi.Error{
11008			Code:   res.StatusCode,
11009			Header: res.Header,
11010		}
11011	}
11012	if err != nil {
11013		return nil, err
11014	}
11015	defer googleapi.CloseBody(res)
11016	if err := googleapi.CheckResponse(res); err != nil {
11017		return nil, err
11018	}
11019	ret := &GoogleLongrunningOperation{
11020		ServerResponse: googleapi.ServerResponse{
11021			Header:         res.Header,
11022			HTTPStatusCode: res.StatusCode,
11023		},
11024	}
11025	target := &ret
11026	if err := gensupport.DecodeResponse(target, res); err != nil {
11027		return nil, err
11028	}
11029	return ret, nil
11030	// {
11031	//   "description": "Enables a processor",
11032	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:enable",
11033	//   "httpMethod": "POST",
11034	//   "id": "documentai.projects.locations.processors.enable",
11035	//   "parameterOrder": [
11036	//     "name"
11037	//   ],
11038	//   "parameters": {
11039	//     "name": {
11040	//       "description": "Required. The processor resource name to be enabled.",
11041	//       "location": "path",
11042	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11043	//       "required": true,
11044	//       "type": "string"
11045	//     }
11046	//   },
11047	//   "path": "v1/{+name}:enable",
11048	//   "request": {
11049	//     "$ref": "GoogleCloudDocumentaiV1EnableProcessorRequest"
11050	//   },
11051	//   "response": {
11052	//     "$ref": "GoogleLongrunningOperation"
11053	//   },
11054	//   "scopes": [
11055	//     "https://www.googleapis.com/auth/cloud-platform"
11056	//   ]
11057	// }
11058
11059}
11060
11061// method id "documentai.projects.locations.processors.get":
11062
11063type ProjectsLocationsProcessorsGetCall struct {
11064	s            *Service
11065	name         string
11066	urlParams_   gensupport.URLParams
11067	ifNoneMatch_ string
11068	ctx_         context.Context
11069	header_      http.Header
11070}
11071
11072// Get: Gets a processor detail.
11073//
11074// - name: The processor resource name.
11075func (r *ProjectsLocationsProcessorsService) Get(name string) *ProjectsLocationsProcessorsGetCall {
11076	c := &ProjectsLocationsProcessorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11077	c.name = name
11078	return c
11079}
11080
11081// Fields allows partial responses to be retrieved. See
11082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11083// for more information.
11084func (c *ProjectsLocationsProcessorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsGetCall {
11085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11086	return c
11087}
11088
11089// IfNoneMatch sets the optional parameter which makes the operation
11090// fail if the object's ETag matches the given value. This is useful for
11091// getting updates only after the object has changed since the last
11092// request. Use googleapi.IsNotModified to check whether the response
11093// error from Do is the result of In-None-Match.
11094func (c *ProjectsLocationsProcessorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsGetCall {
11095	c.ifNoneMatch_ = entityTag
11096	return c
11097}
11098
11099// Context sets the context to be used in this call's Do method. Any
11100// pending HTTP request will be aborted if the provided context is
11101// canceled.
11102func (c *ProjectsLocationsProcessorsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsGetCall {
11103	c.ctx_ = ctx
11104	return c
11105}
11106
11107// Header returns an http.Header that can be modified by the caller to
11108// add HTTP headers to the request.
11109func (c *ProjectsLocationsProcessorsGetCall) Header() http.Header {
11110	if c.header_ == nil {
11111		c.header_ = make(http.Header)
11112	}
11113	return c.header_
11114}
11115
11116func (c *ProjectsLocationsProcessorsGetCall) doRequest(alt string) (*http.Response, error) {
11117	reqHeaders := make(http.Header)
11118	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11119	for k, v := range c.header_ {
11120		reqHeaders[k] = v
11121	}
11122	reqHeaders.Set("User-Agent", c.s.userAgent())
11123	if c.ifNoneMatch_ != "" {
11124		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11125	}
11126	var body io.Reader = nil
11127	c.urlParams_.Set("alt", alt)
11128	c.urlParams_.Set("prettyPrint", "false")
11129	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11130	urls += "?" + c.urlParams_.Encode()
11131	req, err := http.NewRequest("GET", urls, body)
11132	if err != nil {
11133		return nil, err
11134	}
11135	req.Header = reqHeaders
11136	googleapi.Expand(req.URL, map[string]string{
11137		"name": c.name,
11138	})
11139	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11140}
11141
11142// Do executes the "documentai.projects.locations.processors.get" call.
11143// Exactly one of *GoogleCloudDocumentaiV1Processor or error will be
11144// non-nil. Any non-2xx status code is an error. Response headers are in
11145// either *GoogleCloudDocumentaiV1Processor.ServerResponse.Header or (if
11146// a response was returned at all) in error.(*googleapi.Error).Header.
11147// Use googleapi.IsNotModified to check whether the returned error was
11148// because http.StatusNotModified was returned.
11149func (c *ProjectsLocationsProcessorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1Processor, error) {
11150	gensupport.SetOptions(c.urlParams_, opts...)
11151	res, err := c.doRequest("json")
11152	if res != nil && res.StatusCode == http.StatusNotModified {
11153		if res.Body != nil {
11154			res.Body.Close()
11155		}
11156		return nil, &googleapi.Error{
11157			Code:   res.StatusCode,
11158			Header: res.Header,
11159		}
11160	}
11161	if err != nil {
11162		return nil, err
11163	}
11164	defer googleapi.CloseBody(res)
11165	if err := googleapi.CheckResponse(res); err != nil {
11166		return nil, err
11167	}
11168	ret := &GoogleCloudDocumentaiV1Processor{
11169		ServerResponse: googleapi.ServerResponse{
11170			Header:         res.Header,
11171			HTTPStatusCode: res.StatusCode,
11172		},
11173	}
11174	target := &ret
11175	if err := gensupport.DecodeResponse(target, res); err != nil {
11176		return nil, err
11177	}
11178	return ret, nil
11179	// {
11180	//   "description": "Gets a processor detail.",
11181	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}",
11182	//   "httpMethod": "GET",
11183	//   "id": "documentai.projects.locations.processors.get",
11184	//   "parameterOrder": [
11185	//     "name"
11186	//   ],
11187	//   "parameters": {
11188	//     "name": {
11189	//       "description": "Required. The processor resource name.",
11190	//       "location": "path",
11191	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11192	//       "required": true,
11193	//       "type": "string"
11194	//     }
11195	//   },
11196	//   "path": "v1/{+name}",
11197	//   "response": {
11198	//     "$ref": "GoogleCloudDocumentaiV1Processor"
11199	//   },
11200	//   "scopes": [
11201	//     "https://www.googleapis.com/auth/cloud-platform"
11202	//   ]
11203	// }
11204
11205}
11206
11207// method id "documentai.projects.locations.processors.list":
11208
11209type ProjectsLocationsProcessorsListCall struct {
11210	s            *Service
11211	parent       string
11212	urlParams_   gensupport.URLParams
11213	ifNoneMatch_ string
11214	ctx_         context.Context
11215	header_      http.Header
11216}
11217
11218// List: Lists all processors which belong to this project.
11219//
11220// - parent: The parent (project and location) which owns this
11221//   collection of Processors. Format:
11222//   projects/{project}/locations/{location}.
11223func (r *ProjectsLocationsProcessorsService) List(parent string) *ProjectsLocationsProcessorsListCall {
11224	c := &ProjectsLocationsProcessorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11225	c.parent = parent
11226	return c
11227}
11228
11229// PageSize sets the optional parameter "pageSize": The maximum number
11230// of processors to return. If unspecified, at most 50 processors will
11231// be returned. The maximum value is 100; values above 100 will be
11232// coerced to 100.
11233func (c *ProjectsLocationsProcessorsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsListCall {
11234	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11235	return c
11236}
11237
11238// PageToken sets the optional parameter "pageToken": We will return the
11239// processors sorted by creation time. The page token will point to the
11240// next processor.
11241func (c *ProjectsLocationsProcessorsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsListCall {
11242	c.urlParams_.Set("pageToken", pageToken)
11243	return c
11244}
11245
11246// Fields allows partial responses to be retrieved. See
11247// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11248// for more information.
11249func (c *ProjectsLocationsProcessorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsListCall {
11250	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11251	return c
11252}
11253
11254// IfNoneMatch sets the optional parameter which makes the operation
11255// fail if the object's ETag matches the given value. This is useful for
11256// getting updates only after the object has changed since the last
11257// request. Use googleapi.IsNotModified to check whether the response
11258// error from Do is the result of In-None-Match.
11259func (c *ProjectsLocationsProcessorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsListCall {
11260	c.ifNoneMatch_ = entityTag
11261	return c
11262}
11263
11264// Context sets the context to be used in this call's Do method. Any
11265// pending HTTP request will be aborted if the provided context is
11266// canceled.
11267func (c *ProjectsLocationsProcessorsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsListCall {
11268	c.ctx_ = ctx
11269	return c
11270}
11271
11272// Header returns an http.Header that can be modified by the caller to
11273// add HTTP headers to the request.
11274func (c *ProjectsLocationsProcessorsListCall) Header() http.Header {
11275	if c.header_ == nil {
11276		c.header_ = make(http.Header)
11277	}
11278	return c.header_
11279}
11280
11281func (c *ProjectsLocationsProcessorsListCall) doRequest(alt string) (*http.Response, error) {
11282	reqHeaders := make(http.Header)
11283	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11284	for k, v := range c.header_ {
11285		reqHeaders[k] = v
11286	}
11287	reqHeaders.Set("User-Agent", c.s.userAgent())
11288	if c.ifNoneMatch_ != "" {
11289		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11290	}
11291	var body io.Reader = nil
11292	c.urlParams_.Set("alt", alt)
11293	c.urlParams_.Set("prettyPrint", "false")
11294	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/processors")
11295	urls += "?" + c.urlParams_.Encode()
11296	req, err := http.NewRequest("GET", urls, body)
11297	if err != nil {
11298		return nil, err
11299	}
11300	req.Header = reqHeaders
11301	googleapi.Expand(req.URL, map[string]string{
11302		"parent": c.parent,
11303	})
11304	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11305}
11306
11307// Do executes the "documentai.projects.locations.processors.list" call.
11308// Exactly one of *GoogleCloudDocumentaiV1ListProcessorsResponse or
11309// error will be non-nil. Any non-2xx status code is an error. Response
11310// headers are in either
11311// *GoogleCloudDocumentaiV1ListProcessorsResponse.ServerResponse.Header
11312// or (if a response was returned at all) in
11313// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11314// whether the returned error was because http.StatusNotModified was
11315// returned.
11316func (c *ProjectsLocationsProcessorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1ListProcessorsResponse, error) {
11317	gensupport.SetOptions(c.urlParams_, opts...)
11318	res, err := c.doRequest("json")
11319	if res != nil && res.StatusCode == http.StatusNotModified {
11320		if res.Body != nil {
11321			res.Body.Close()
11322		}
11323		return nil, &googleapi.Error{
11324			Code:   res.StatusCode,
11325			Header: res.Header,
11326		}
11327	}
11328	if err != nil {
11329		return nil, err
11330	}
11331	defer googleapi.CloseBody(res)
11332	if err := googleapi.CheckResponse(res); err != nil {
11333		return nil, err
11334	}
11335	ret := &GoogleCloudDocumentaiV1ListProcessorsResponse{
11336		ServerResponse: googleapi.ServerResponse{
11337			Header:         res.Header,
11338			HTTPStatusCode: res.StatusCode,
11339		},
11340	}
11341	target := &ret
11342	if err := gensupport.DecodeResponse(target, res); err != nil {
11343		return nil, err
11344	}
11345	return ret, nil
11346	// {
11347	//   "description": "Lists all processors which belong to this project.",
11348	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors",
11349	//   "httpMethod": "GET",
11350	//   "id": "documentai.projects.locations.processors.list",
11351	//   "parameterOrder": [
11352	//     "parent"
11353	//   ],
11354	//   "parameters": {
11355	//     "pageSize": {
11356	//       "description": "The maximum number of processors to return. If unspecified, at most 50 processors will be returned. The maximum value is 100; values above 100 will be coerced to 100.",
11357	//       "format": "int32",
11358	//       "location": "query",
11359	//       "type": "integer"
11360	//     },
11361	//     "pageToken": {
11362	//       "description": "We will return the processors sorted by creation time. The page token will point to the next processor.",
11363	//       "location": "query",
11364	//       "type": "string"
11365	//     },
11366	//     "parent": {
11367	//       "description": "Required. The parent (project and location) which owns this collection of Processors. Format: projects/{project}/locations/{location}",
11368	//       "location": "path",
11369	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
11370	//       "required": true,
11371	//       "type": "string"
11372	//     }
11373	//   },
11374	//   "path": "v1/{+parent}/processors",
11375	//   "response": {
11376	//     "$ref": "GoogleCloudDocumentaiV1ListProcessorsResponse"
11377	//   },
11378	//   "scopes": [
11379	//     "https://www.googleapis.com/auth/cloud-platform"
11380	//   ]
11381	// }
11382
11383}
11384
11385// Pages invokes f for each page of results.
11386// A non-nil error returned from f will halt the iteration.
11387// The provided context supersedes any context provided to the Context method.
11388func (c *ProjectsLocationsProcessorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1ListProcessorsResponse) error) error {
11389	c.ctx_ = ctx
11390	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
11391	for {
11392		x, err := c.Do()
11393		if err != nil {
11394			return err
11395		}
11396		if err := f(x); err != nil {
11397			return err
11398		}
11399		if x.NextPageToken == "" {
11400			return nil
11401		}
11402		c.PageToken(x.NextPageToken)
11403	}
11404}
11405
11406// method id "documentai.projects.locations.processors.process":
11407
11408type ProjectsLocationsProcessorsProcessCall struct {
11409	s                                     *Service
11410	name                                  string
11411	googleclouddocumentaiv1processrequest *GoogleCloudDocumentaiV1ProcessRequest
11412	urlParams_                            gensupport.URLParams
11413	ctx_                                  context.Context
11414	header_                               http.Header
11415}
11416
11417// Process: Processes a single document.
11418//
11419// - name: The resource name of the Processor or ProcessorVersion to use
11420//   for processing. If a Processor is specified, the server will use
11421//   its default version. Format:
11422//   projects/{project}/locations/{location}/processors/{processor}, or
11423//   projects/{project}/locations/{location}/processors/{processor}/proce
11424//   ssorVersions/{processorVersion}.
11425func (r *ProjectsLocationsProcessorsService) Process(name string, googleclouddocumentaiv1processrequest *GoogleCloudDocumentaiV1ProcessRequest) *ProjectsLocationsProcessorsProcessCall {
11426	c := &ProjectsLocationsProcessorsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11427	c.name = name
11428	c.googleclouddocumentaiv1processrequest = googleclouddocumentaiv1processrequest
11429	return c
11430}
11431
11432// Fields allows partial responses to be retrieved. See
11433// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11434// for more information.
11435func (c *ProjectsLocationsProcessorsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessCall {
11436	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11437	return c
11438}
11439
11440// Context sets the context to be used in this call's Do method. Any
11441// pending HTTP request will be aborted if the provided context is
11442// canceled.
11443func (c *ProjectsLocationsProcessorsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessCall {
11444	c.ctx_ = ctx
11445	return c
11446}
11447
11448// Header returns an http.Header that can be modified by the caller to
11449// add HTTP headers to the request.
11450func (c *ProjectsLocationsProcessorsProcessCall) Header() http.Header {
11451	if c.header_ == nil {
11452		c.header_ = make(http.Header)
11453	}
11454	return c.header_
11455}
11456
11457func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Response, error) {
11458	reqHeaders := make(http.Header)
11459	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11460	for k, v := range c.header_ {
11461		reqHeaders[k] = v
11462	}
11463	reqHeaders.Set("User-Agent", c.s.userAgent())
11464	var body io.Reader = nil
11465	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1processrequest)
11466	if err != nil {
11467		return nil, err
11468	}
11469	reqHeaders.Set("Content-Type", "application/json")
11470	c.urlParams_.Set("alt", alt)
11471	c.urlParams_.Set("prettyPrint", "false")
11472	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:process")
11473	urls += "?" + c.urlParams_.Encode()
11474	req, err := http.NewRequest("POST", urls, body)
11475	if err != nil {
11476		return nil, err
11477	}
11478	req.Header = reqHeaders
11479	googleapi.Expand(req.URL, map[string]string{
11480		"name": c.name,
11481	})
11482	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11483}
11484
11485// Do executes the "documentai.projects.locations.processors.process" call.
11486// Exactly one of *GoogleCloudDocumentaiV1ProcessResponse or error will
11487// be non-nil. Any non-2xx status code is an error. Response headers are
11488// in either
11489// *GoogleCloudDocumentaiV1ProcessResponse.ServerResponse.Header or (if
11490// a response was returned at all) in error.(*googleapi.Error).Header.
11491// Use googleapi.IsNotModified to check whether the returned error was
11492// because http.StatusNotModified was returned.
11493func (c *ProjectsLocationsProcessorsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1ProcessResponse, error) {
11494	gensupport.SetOptions(c.urlParams_, opts...)
11495	res, err := c.doRequest("json")
11496	if res != nil && res.StatusCode == http.StatusNotModified {
11497		if res.Body != nil {
11498			res.Body.Close()
11499		}
11500		return nil, &googleapi.Error{
11501			Code:   res.StatusCode,
11502			Header: res.Header,
11503		}
11504	}
11505	if err != nil {
11506		return nil, err
11507	}
11508	defer googleapi.CloseBody(res)
11509	if err := googleapi.CheckResponse(res); err != nil {
11510		return nil, err
11511	}
11512	ret := &GoogleCloudDocumentaiV1ProcessResponse{
11513		ServerResponse: googleapi.ServerResponse{
11514			Header:         res.Header,
11515			HTTPStatusCode: res.StatusCode,
11516		},
11517	}
11518	target := &ret
11519	if err := gensupport.DecodeResponse(target, res); err != nil {
11520		return nil, err
11521	}
11522	return ret, nil
11523	// {
11524	//   "description": "Processes a single document.",
11525	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:process",
11526	//   "httpMethod": "POST",
11527	//   "id": "documentai.projects.locations.processors.process",
11528	//   "parameterOrder": [
11529	//     "name"
11530	//   ],
11531	//   "parameters": {
11532	//     "name": {
11533	//       "description": "Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}",
11534	//       "location": "path",
11535	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11536	//       "required": true,
11537	//       "type": "string"
11538	//     }
11539	//   },
11540	//   "path": "v1/{+name}:process",
11541	//   "request": {
11542	//     "$ref": "GoogleCloudDocumentaiV1ProcessRequest"
11543	//   },
11544	//   "response": {
11545	//     "$ref": "GoogleCloudDocumentaiV1ProcessResponse"
11546	//   },
11547	//   "scopes": [
11548	//     "https://www.googleapis.com/auth/cloud-platform"
11549	//   ]
11550	// }
11551
11552}
11553
11554// method id "documentai.projects.locations.processors.setDefaultProcessorVersion":
11555
11556type ProjectsLocationsProcessorsSetDefaultProcessorVersionCall struct {
11557	s                                                        *Service
11558	processor                                                string
11559	googleclouddocumentaiv1setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest
11560	urlParams_                                               gensupport.URLParams
11561	ctx_                                                     context.Context
11562	header_                                                  http.Header
11563}
11564
11565// SetDefaultProcessorVersion: Set the default (active) version of a
11566// Processor that will be used in ProcessDocument and
11567// BatchProcessDocuments.
11568//
11569// - processor: The resource name of the Processor to change default
11570//   version.
11571func (r *ProjectsLocationsProcessorsService) SetDefaultProcessorVersion(processor string, googleclouddocumentaiv1setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
11572	c := &ProjectsLocationsProcessorsSetDefaultProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11573	c.processor = processor
11574	c.googleclouddocumentaiv1setdefaultprocessorversionrequest = googleclouddocumentaiv1setdefaultprocessorversionrequest
11575	return c
11576}
11577
11578// Fields allows partial responses to be retrieved. See
11579// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11580// for more information.
11581func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
11582	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11583	return c
11584}
11585
11586// Context sets the context to be used in this call's Do method. Any
11587// pending HTTP request will be aborted if the provided context is
11588// canceled.
11589func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
11590	c.ctx_ = ctx
11591	return c
11592}
11593
11594// Header returns an http.Header that can be modified by the caller to
11595// add HTTP headers to the request.
11596func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Header() http.Header {
11597	if c.header_ == nil {
11598		c.header_ = make(http.Header)
11599	}
11600	return c.header_
11601}
11602
11603func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
11604	reqHeaders := make(http.Header)
11605	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11606	for k, v := range c.header_ {
11607		reqHeaders[k] = v
11608	}
11609	reqHeaders.Set("User-Agent", c.s.userAgent())
11610	var body io.Reader = nil
11611	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1setdefaultprocessorversionrequest)
11612	if err != nil {
11613		return nil, err
11614	}
11615	reqHeaders.Set("Content-Type", "application/json")
11616	c.urlParams_.Set("alt", alt)
11617	c.urlParams_.Set("prettyPrint", "false")
11618	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+processor}:setDefaultProcessorVersion")
11619	urls += "?" + c.urlParams_.Encode()
11620	req, err := http.NewRequest("POST", urls, body)
11621	if err != nil {
11622		return nil, err
11623	}
11624	req.Header = reqHeaders
11625	googleapi.Expand(req.URL, map[string]string{
11626		"processor": c.processor,
11627	})
11628	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11629}
11630
11631// Do executes the "documentai.projects.locations.processors.setDefaultProcessorVersion" call.
11632// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11633// Any non-2xx status code is an error. Response headers are in either
11634// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11635// was returned at all) in error.(*googleapi.Error).Header. Use
11636// googleapi.IsNotModified to check whether the returned error was
11637// because http.StatusNotModified was returned.
11638func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11639	gensupport.SetOptions(c.urlParams_, opts...)
11640	res, err := c.doRequest("json")
11641	if res != nil && res.StatusCode == http.StatusNotModified {
11642		if res.Body != nil {
11643			res.Body.Close()
11644		}
11645		return nil, &googleapi.Error{
11646			Code:   res.StatusCode,
11647			Header: res.Header,
11648		}
11649	}
11650	if err != nil {
11651		return nil, err
11652	}
11653	defer googleapi.CloseBody(res)
11654	if err := googleapi.CheckResponse(res); err != nil {
11655		return nil, err
11656	}
11657	ret := &GoogleLongrunningOperation{
11658		ServerResponse: googleapi.ServerResponse{
11659			Header:         res.Header,
11660			HTTPStatusCode: res.StatusCode,
11661		},
11662	}
11663	target := &ret
11664	if err := gensupport.DecodeResponse(target, res); err != nil {
11665		return nil, err
11666	}
11667	return ret, nil
11668	// {
11669	//   "description": "Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.",
11670	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:setDefaultProcessorVersion",
11671	//   "httpMethod": "POST",
11672	//   "id": "documentai.projects.locations.processors.setDefaultProcessorVersion",
11673	//   "parameterOrder": [
11674	//     "processor"
11675	//   ],
11676	//   "parameters": {
11677	//     "processor": {
11678	//       "description": "Required. The resource name of the Processor to change default version.",
11679	//       "location": "path",
11680	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11681	//       "required": true,
11682	//       "type": "string"
11683	//     }
11684	//   },
11685	//   "path": "v1/{+processor}:setDefaultProcessorVersion",
11686	//   "request": {
11687	//     "$ref": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest"
11688	//   },
11689	//   "response": {
11690	//     "$ref": "GoogleLongrunningOperation"
11691	//   },
11692	//   "scopes": [
11693	//     "https://www.googleapis.com/auth/cloud-platform"
11694	//   ]
11695	// }
11696
11697}
11698
11699// method id "documentai.projects.locations.processors.humanReviewConfig.reviewDocument":
11700
11701type ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall struct {
11702	s                                            *Service
11703	humanReviewConfig                            string
11704	googleclouddocumentaiv1reviewdocumentrequest *GoogleCloudDocumentaiV1ReviewDocumentRequest
11705	urlParams_                                   gensupport.URLParams
11706	ctx_                                         context.Context
11707	header_                                      http.Header
11708}
11709
11710// ReviewDocument: Send a document for Human Review. The input document
11711// should be processed by the specified processor.
11712//
11713// - humanReviewConfig: The resource name of the HumanReviewConfig that
11714//   the document will be reviewed with.
11715func (r *ProjectsLocationsProcessorsHumanReviewConfigService) ReviewDocument(humanReviewConfig string, googleclouddocumentaiv1reviewdocumentrequest *GoogleCloudDocumentaiV1ReviewDocumentRequest) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
11716	c := &ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11717	c.humanReviewConfig = humanReviewConfig
11718	c.googleclouddocumentaiv1reviewdocumentrequest = googleclouddocumentaiv1reviewdocumentrequest
11719	return c
11720}
11721
11722// Fields allows partial responses to be retrieved. See
11723// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11724// for more information.
11725func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
11726	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11727	return c
11728}
11729
11730// Context sets the context to be used in this call's Do method. Any
11731// pending HTTP request will be aborted if the provided context is
11732// canceled.
11733func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Context(ctx context.Context) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
11734	c.ctx_ = ctx
11735	return c
11736}
11737
11738// Header returns an http.Header that can be modified by the caller to
11739// add HTTP headers to the request.
11740func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Header() http.Header {
11741	if c.header_ == nil {
11742		c.header_ = make(http.Header)
11743	}
11744	return c.header_
11745}
11746
11747func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doRequest(alt string) (*http.Response, error) {
11748	reqHeaders := make(http.Header)
11749	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11750	for k, v := range c.header_ {
11751		reqHeaders[k] = v
11752	}
11753	reqHeaders.Set("User-Agent", c.s.userAgent())
11754	var body io.Reader = nil
11755	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1reviewdocumentrequest)
11756	if err != nil {
11757		return nil, err
11758	}
11759	reqHeaders.Set("Content-Type", "application/json")
11760	c.urlParams_.Set("alt", alt)
11761	c.urlParams_.Set("prettyPrint", "false")
11762	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+humanReviewConfig}:reviewDocument")
11763	urls += "?" + c.urlParams_.Encode()
11764	req, err := http.NewRequest("POST", urls, body)
11765	if err != nil {
11766		return nil, err
11767	}
11768	req.Header = reqHeaders
11769	googleapi.Expand(req.URL, map[string]string{
11770		"humanReviewConfig": c.humanReviewConfig,
11771	})
11772	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11773}
11774
11775// Do executes the "documentai.projects.locations.processors.humanReviewConfig.reviewDocument" call.
11776// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11777// Any non-2xx status code is an error. Response headers are in either
11778// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11779// was returned at all) in error.(*googleapi.Error).Header. Use
11780// googleapi.IsNotModified to check whether the returned error was
11781// because http.StatusNotModified was returned.
11782func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11783	gensupport.SetOptions(c.urlParams_, opts...)
11784	res, err := c.doRequest("json")
11785	if res != nil && res.StatusCode == http.StatusNotModified {
11786		if res.Body != nil {
11787			res.Body.Close()
11788		}
11789		return nil, &googleapi.Error{
11790			Code:   res.StatusCode,
11791			Header: res.Header,
11792		}
11793	}
11794	if err != nil {
11795		return nil, err
11796	}
11797	defer googleapi.CloseBody(res)
11798	if err := googleapi.CheckResponse(res); err != nil {
11799		return nil, err
11800	}
11801	ret := &GoogleLongrunningOperation{
11802		ServerResponse: googleapi.ServerResponse{
11803			Header:         res.Header,
11804			HTTPStatusCode: res.StatusCode,
11805		},
11806	}
11807	target := &ret
11808	if err := gensupport.DecodeResponse(target, res); err != nil {
11809		return nil, err
11810	}
11811	return ret, nil
11812	// {
11813	//   "description": "Send a document for Human Review. The input document should be processed by the specified processor.",
11814	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/humanReviewConfig:reviewDocument",
11815	//   "httpMethod": "POST",
11816	//   "id": "documentai.projects.locations.processors.humanReviewConfig.reviewDocument",
11817	//   "parameterOrder": [
11818	//     "humanReviewConfig"
11819	//   ],
11820	//   "parameters": {
11821	//     "humanReviewConfig": {
11822	//       "description": "Required. The resource name of the HumanReviewConfig that the document will be reviewed with.",
11823	//       "location": "path",
11824	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/humanReviewConfig$",
11825	//       "required": true,
11826	//       "type": "string"
11827	//     }
11828	//   },
11829	//   "path": "v1/{+humanReviewConfig}:reviewDocument",
11830	//   "request": {
11831	//     "$ref": "GoogleCloudDocumentaiV1ReviewDocumentRequest"
11832	//   },
11833	//   "response": {
11834	//     "$ref": "GoogleLongrunningOperation"
11835	//   },
11836	//   "scopes": [
11837	//     "https://www.googleapis.com/auth/cloud-platform"
11838	//   ]
11839	// }
11840
11841}
11842
11843// method id "documentai.projects.locations.processors.processorVersions.batchProcess":
11844
11845type ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall struct {
11846	s                                          *Service
11847	name                                       string
11848	googleclouddocumentaiv1batchprocessrequest *GoogleCloudDocumentaiV1BatchProcessRequest
11849	urlParams_                                 gensupport.URLParams
11850	ctx_                                       context.Context
11851	header_                                    http.Header
11852}
11853
11854// BatchProcess: LRO endpoint to batch process many documents. The
11855// output is written to Cloud Storage as JSON in the [Document] format.
11856//
11857// - name: The resource name of Processor or ProcessorVersion. Format:
11858//   projects/{project}/locations/{location}/processors/{processor}, or
11859//   projects/{project}/locations/{location}/processors/{processor}/proce
11860//   ssorVersions/{processorVersion}.
11861func (r *ProjectsLocationsProcessorsProcessorVersionsService) BatchProcess(name string, googleclouddocumentaiv1batchprocessrequest *GoogleCloudDocumentaiV1BatchProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
11862	c := &ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11863	c.name = name
11864	c.googleclouddocumentaiv1batchprocessrequest = googleclouddocumentaiv1batchprocessrequest
11865	return c
11866}
11867
11868// Fields allows partial responses to be retrieved. See
11869// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11870// for more information.
11871func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
11872	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11873	return c
11874}
11875
11876// Context sets the context to be used in this call's Do method. Any
11877// pending HTTP request will be aborted if the provided context is
11878// canceled.
11879func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
11880	c.ctx_ = ctx
11881	return c
11882}
11883
11884// Header returns an http.Header that can be modified by the caller to
11885// add HTTP headers to the request.
11886func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Header() http.Header {
11887	if c.header_ == nil {
11888		c.header_ = make(http.Header)
11889	}
11890	return c.header_
11891}
11892
11893func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
11894	reqHeaders := make(http.Header)
11895	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11896	for k, v := range c.header_ {
11897		reqHeaders[k] = v
11898	}
11899	reqHeaders.Set("User-Agent", c.s.userAgent())
11900	var body io.Reader = nil
11901	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1batchprocessrequest)
11902	if err != nil {
11903		return nil, err
11904	}
11905	reqHeaders.Set("Content-Type", "application/json")
11906	c.urlParams_.Set("alt", alt)
11907	c.urlParams_.Set("prettyPrint", "false")
11908	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:batchProcess")
11909	urls += "?" + c.urlParams_.Encode()
11910	req, err := http.NewRequest("POST", urls, body)
11911	if err != nil {
11912		return nil, err
11913	}
11914	req.Header = reqHeaders
11915	googleapi.Expand(req.URL, map[string]string{
11916		"name": c.name,
11917	})
11918	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11919}
11920
11921// Do executes the "documentai.projects.locations.processors.processorVersions.batchProcess" call.
11922// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11923// Any non-2xx status code is an error. Response headers are in either
11924// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11925// was returned at all) in error.(*googleapi.Error).Header. Use
11926// googleapi.IsNotModified to check whether the returned error was
11927// because http.StatusNotModified was returned.
11928func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11929	gensupport.SetOptions(c.urlParams_, opts...)
11930	res, err := c.doRequest("json")
11931	if res != nil && res.StatusCode == http.StatusNotModified {
11932		if res.Body != nil {
11933			res.Body.Close()
11934		}
11935		return nil, &googleapi.Error{
11936			Code:   res.StatusCode,
11937			Header: res.Header,
11938		}
11939	}
11940	if err != nil {
11941		return nil, err
11942	}
11943	defer googleapi.CloseBody(res)
11944	if err := googleapi.CheckResponse(res); err != nil {
11945		return nil, err
11946	}
11947	ret := &GoogleLongrunningOperation{
11948		ServerResponse: googleapi.ServerResponse{
11949			Header:         res.Header,
11950			HTTPStatusCode: res.StatusCode,
11951		},
11952	}
11953	target := &ret
11954	if err := gensupport.DecodeResponse(target, res); err != nil {
11955		return nil, err
11956	}
11957	return ret, nil
11958	// {
11959	//   "description": "LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.",
11960	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:batchProcess",
11961	//   "httpMethod": "POST",
11962	//   "id": "documentai.projects.locations.processors.processorVersions.batchProcess",
11963	//   "parameterOrder": [
11964	//     "name"
11965	//   ],
11966	//   "parameters": {
11967	//     "name": {
11968	//       "description": "Required. The resource name of Processor or ProcessorVersion. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}",
11969	//       "location": "path",
11970	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
11971	//       "required": true,
11972	//       "type": "string"
11973	//     }
11974	//   },
11975	//   "path": "v1/{+name}:batchProcess",
11976	//   "request": {
11977	//     "$ref": "GoogleCloudDocumentaiV1BatchProcessRequest"
11978	//   },
11979	//   "response": {
11980	//     "$ref": "GoogleLongrunningOperation"
11981	//   },
11982	//   "scopes": [
11983	//     "https://www.googleapis.com/auth/cloud-platform"
11984	//   ]
11985	// }
11986
11987}
11988
11989// method id "documentai.projects.locations.processors.processorVersions.delete":
11990
11991type ProjectsLocationsProcessorsProcessorVersionsDeleteCall struct {
11992	s          *Service
11993	name       string
11994	urlParams_ gensupport.URLParams
11995	ctx_       context.Context
11996	header_    http.Header
11997}
11998
11999// Delete: Deletes the processor version, all artifacts under the
12000// processor version will be deleted.
12001//
12002// - name: The processor version resource name to be deleted.
12003func (r *ProjectsLocationsProcessorsProcessorVersionsService) Delete(name string) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
12004	c := &ProjectsLocationsProcessorsProcessorVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12005	c.name = name
12006	return c
12007}
12008
12009// Fields allows partial responses to be retrieved. See
12010// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12011// for more information.
12012func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
12013	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12014	return c
12015}
12016
12017// Context sets the context to be used in this call's Do method. Any
12018// pending HTTP request will be aborted if the provided context is
12019// canceled.
12020func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
12021	c.ctx_ = ctx
12022	return c
12023}
12024
12025// Header returns an http.Header that can be modified by the caller to
12026// add HTTP headers to the request.
12027func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Header() http.Header {
12028	if c.header_ == nil {
12029		c.header_ = make(http.Header)
12030	}
12031	return c.header_
12032}
12033
12034func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
12035	reqHeaders := make(http.Header)
12036	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12037	for k, v := range c.header_ {
12038		reqHeaders[k] = v
12039	}
12040	reqHeaders.Set("User-Agent", c.s.userAgent())
12041	var body io.Reader = nil
12042	c.urlParams_.Set("alt", alt)
12043	c.urlParams_.Set("prettyPrint", "false")
12044	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12045	urls += "?" + c.urlParams_.Encode()
12046	req, err := http.NewRequest("DELETE", urls, body)
12047	if err != nil {
12048		return nil, err
12049	}
12050	req.Header = reqHeaders
12051	googleapi.Expand(req.URL, map[string]string{
12052		"name": c.name,
12053	})
12054	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12055}
12056
12057// Do executes the "documentai.projects.locations.processors.processorVersions.delete" call.
12058// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
12059// Any non-2xx status code is an error. Response headers are in either
12060// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
12061// was returned at all) in error.(*googleapi.Error).Header. Use
12062// googleapi.IsNotModified to check whether the returned error was
12063// because http.StatusNotModified was returned.
12064func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12065	gensupport.SetOptions(c.urlParams_, opts...)
12066	res, err := c.doRequest("json")
12067	if res != nil && res.StatusCode == http.StatusNotModified {
12068		if res.Body != nil {
12069			res.Body.Close()
12070		}
12071		return nil, &googleapi.Error{
12072			Code:   res.StatusCode,
12073			Header: res.Header,
12074		}
12075	}
12076	if err != nil {
12077		return nil, err
12078	}
12079	defer googleapi.CloseBody(res)
12080	if err := googleapi.CheckResponse(res); err != nil {
12081		return nil, err
12082	}
12083	ret := &GoogleLongrunningOperation{
12084		ServerResponse: googleapi.ServerResponse{
12085			Header:         res.Header,
12086			HTTPStatusCode: res.StatusCode,
12087		},
12088	}
12089	target := &ret
12090	if err := gensupport.DecodeResponse(target, res); err != nil {
12091		return nil, err
12092	}
12093	return ret, nil
12094	// {
12095	//   "description": "Deletes the processor version, all artifacts under the processor version will be deleted.",
12096	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}",
12097	//   "httpMethod": "DELETE",
12098	//   "id": "documentai.projects.locations.processors.processorVersions.delete",
12099	//   "parameterOrder": [
12100	//     "name"
12101	//   ],
12102	//   "parameters": {
12103	//     "name": {
12104	//       "description": "Required. The processor version resource name to be deleted.",
12105	//       "location": "path",
12106	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12107	//       "required": true,
12108	//       "type": "string"
12109	//     }
12110	//   },
12111	//   "path": "v1/{+name}",
12112	//   "response": {
12113	//     "$ref": "GoogleLongrunningOperation"
12114	//   },
12115	//   "scopes": [
12116	//     "https://www.googleapis.com/auth/cloud-platform"
12117	//   ]
12118	// }
12119
12120}
12121
12122// method id "documentai.projects.locations.processors.processorVersions.deploy":
12123
12124type ProjectsLocationsProcessorsProcessorVersionsDeployCall struct {
12125	s                                                    *Service
12126	name                                                 string
12127	googleclouddocumentaiv1deployprocessorversionrequest *GoogleCloudDocumentaiV1DeployProcessorVersionRequest
12128	urlParams_                                           gensupport.URLParams
12129	ctx_                                                 context.Context
12130	header_                                              http.Header
12131}
12132
12133// Deploy: Deploys the processor version.
12134//
12135// - name: The processor version resource name to be deployed.
12136func (r *ProjectsLocationsProcessorsProcessorVersionsService) Deploy(name string, googleclouddocumentaiv1deployprocessorversionrequest *GoogleCloudDocumentaiV1DeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
12137	c := &ProjectsLocationsProcessorsProcessorVersionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12138	c.name = name
12139	c.googleclouddocumentaiv1deployprocessorversionrequest = googleclouddocumentaiv1deployprocessorversionrequest
12140	return c
12141}
12142
12143// Fields allows partial responses to be retrieved. See
12144// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12145// for more information.
12146func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
12147	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12148	return c
12149}
12150
12151// Context sets the context to be used in this call's Do method. Any
12152// pending HTTP request will be aborted if the provided context is
12153// canceled.
12154func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
12155	c.ctx_ = ctx
12156	return c
12157}
12158
12159// Header returns an http.Header that can be modified by the caller to
12160// add HTTP headers to the request.
12161func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Header() http.Header {
12162	if c.header_ == nil {
12163		c.header_ = make(http.Header)
12164	}
12165	return c.header_
12166}
12167
12168func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) doRequest(alt string) (*http.Response, error) {
12169	reqHeaders := make(http.Header)
12170	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12171	for k, v := range c.header_ {
12172		reqHeaders[k] = v
12173	}
12174	reqHeaders.Set("User-Agent", c.s.userAgent())
12175	var body io.Reader = nil
12176	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1deployprocessorversionrequest)
12177	if err != nil {
12178		return nil, err
12179	}
12180	reqHeaders.Set("Content-Type", "application/json")
12181	c.urlParams_.Set("alt", alt)
12182	c.urlParams_.Set("prettyPrint", "false")
12183	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deploy")
12184	urls += "?" + c.urlParams_.Encode()
12185	req, err := http.NewRequest("POST", urls, body)
12186	if err != nil {
12187		return nil, err
12188	}
12189	req.Header = reqHeaders
12190	googleapi.Expand(req.URL, map[string]string{
12191		"name": c.name,
12192	})
12193	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12194}
12195
12196// Do executes the "documentai.projects.locations.processors.processorVersions.deploy" call.
12197// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
12198// Any non-2xx status code is an error. Response headers are in either
12199// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
12200// was returned at all) in error.(*googleapi.Error).Header. Use
12201// googleapi.IsNotModified to check whether the returned error was
12202// because http.StatusNotModified was returned.
12203func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12204	gensupport.SetOptions(c.urlParams_, opts...)
12205	res, err := c.doRequest("json")
12206	if res != nil && res.StatusCode == http.StatusNotModified {
12207		if res.Body != nil {
12208			res.Body.Close()
12209		}
12210		return nil, &googleapi.Error{
12211			Code:   res.StatusCode,
12212			Header: res.Header,
12213		}
12214	}
12215	if err != nil {
12216		return nil, err
12217	}
12218	defer googleapi.CloseBody(res)
12219	if err := googleapi.CheckResponse(res); err != nil {
12220		return nil, err
12221	}
12222	ret := &GoogleLongrunningOperation{
12223		ServerResponse: googleapi.ServerResponse{
12224			Header:         res.Header,
12225			HTTPStatusCode: res.StatusCode,
12226		},
12227	}
12228	target := &ret
12229	if err := gensupport.DecodeResponse(target, res); err != nil {
12230		return nil, err
12231	}
12232	return ret, nil
12233	// {
12234	//   "description": "Deploys the processor version.",
12235	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:deploy",
12236	//   "httpMethod": "POST",
12237	//   "id": "documentai.projects.locations.processors.processorVersions.deploy",
12238	//   "parameterOrder": [
12239	//     "name"
12240	//   ],
12241	//   "parameters": {
12242	//     "name": {
12243	//       "description": "Required. The processor version resource name to be deployed.",
12244	//       "location": "path",
12245	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12246	//       "required": true,
12247	//       "type": "string"
12248	//     }
12249	//   },
12250	//   "path": "v1/{+name}:deploy",
12251	//   "request": {
12252	//     "$ref": "GoogleCloudDocumentaiV1DeployProcessorVersionRequest"
12253	//   },
12254	//   "response": {
12255	//     "$ref": "GoogleLongrunningOperation"
12256	//   },
12257	//   "scopes": [
12258	//     "https://www.googleapis.com/auth/cloud-platform"
12259	//   ]
12260	// }
12261
12262}
12263
12264// method id "documentai.projects.locations.processors.processorVersions.get":
12265
12266type ProjectsLocationsProcessorsProcessorVersionsGetCall struct {
12267	s            *Service
12268	name         string
12269	urlParams_   gensupport.URLParams
12270	ifNoneMatch_ string
12271	ctx_         context.Context
12272	header_      http.Header
12273}
12274
12275// Get: Gets a processor version detail.
12276//
12277// - name: The processor resource name.
12278func (r *ProjectsLocationsProcessorsProcessorVersionsService) Get(name string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12279	c := &ProjectsLocationsProcessorsProcessorVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12280	c.name = name
12281	return c
12282}
12283
12284// Fields allows partial responses to be retrieved. See
12285// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12286// for more information.
12287func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12288	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12289	return c
12290}
12291
12292// IfNoneMatch sets the optional parameter which makes the operation
12293// fail if the object's ETag matches the given value. This is useful for
12294// getting updates only after the object has changed since the last
12295// request. Use googleapi.IsNotModified to check whether the response
12296// error from Do is the result of In-None-Match.
12297func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12298	c.ifNoneMatch_ = entityTag
12299	return c
12300}
12301
12302// Context sets the context to be used in this call's Do method. Any
12303// pending HTTP request will be aborted if the provided context is
12304// canceled.
12305func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12306	c.ctx_ = ctx
12307	return c
12308}
12309
12310// Header returns an http.Header that can be modified by the caller to
12311// add HTTP headers to the request.
12312func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Header() http.Header {
12313	if c.header_ == nil {
12314		c.header_ = make(http.Header)
12315	}
12316	return c.header_
12317}
12318
12319func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) doRequest(alt string) (*http.Response, error) {
12320	reqHeaders := make(http.Header)
12321	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12322	for k, v := range c.header_ {
12323		reqHeaders[k] = v
12324	}
12325	reqHeaders.Set("User-Agent", c.s.userAgent())
12326	if c.ifNoneMatch_ != "" {
12327		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12328	}
12329	var body io.Reader = nil
12330	c.urlParams_.Set("alt", alt)
12331	c.urlParams_.Set("prettyPrint", "false")
12332	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12333	urls += "?" + c.urlParams_.Encode()
12334	req, err := http.NewRequest("GET", urls, body)
12335	if err != nil {
12336		return nil, err
12337	}
12338	req.Header = reqHeaders
12339	googleapi.Expand(req.URL, map[string]string{
12340		"name": c.name,
12341	})
12342	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12343}
12344
12345// Do executes the "documentai.projects.locations.processors.processorVersions.get" call.
12346// Exactly one of *GoogleCloudDocumentaiV1ProcessorVersion or error will
12347// be non-nil. Any non-2xx status code is an error. Response headers are
12348// in either
12349// *GoogleCloudDocumentaiV1ProcessorVersion.ServerResponse.Header or (if
12350// a response was returned at all) in error.(*googleapi.Error).Header.
12351// Use googleapi.IsNotModified to check whether the returned error was
12352// because http.StatusNotModified was returned.
12353func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1ProcessorVersion, error) {
12354	gensupport.SetOptions(c.urlParams_, opts...)
12355	res, err := c.doRequest("json")
12356	if res != nil && res.StatusCode == http.StatusNotModified {
12357		if res.Body != nil {
12358			res.Body.Close()
12359		}
12360		return nil, &googleapi.Error{
12361			Code:   res.StatusCode,
12362			Header: res.Header,
12363		}
12364	}
12365	if err != nil {
12366		return nil, err
12367	}
12368	defer googleapi.CloseBody(res)
12369	if err := googleapi.CheckResponse(res); err != nil {
12370		return nil, err
12371	}
12372	ret := &GoogleCloudDocumentaiV1ProcessorVersion{
12373		ServerResponse: googleapi.ServerResponse{
12374			Header:         res.Header,
12375			HTTPStatusCode: res.StatusCode,
12376		},
12377	}
12378	target := &ret
12379	if err := gensupport.DecodeResponse(target, res); err != nil {
12380		return nil, err
12381	}
12382	return ret, nil
12383	// {
12384	//   "description": "Gets a processor version detail.",
12385	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}",
12386	//   "httpMethod": "GET",
12387	//   "id": "documentai.projects.locations.processors.processorVersions.get",
12388	//   "parameterOrder": [
12389	//     "name"
12390	//   ],
12391	//   "parameters": {
12392	//     "name": {
12393	//       "description": "Required. The processor resource name.",
12394	//       "location": "path",
12395	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12396	//       "required": true,
12397	//       "type": "string"
12398	//     }
12399	//   },
12400	//   "path": "v1/{+name}",
12401	//   "response": {
12402	//     "$ref": "GoogleCloudDocumentaiV1ProcessorVersion"
12403	//   },
12404	//   "scopes": [
12405	//     "https://www.googleapis.com/auth/cloud-platform"
12406	//   ]
12407	// }
12408
12409}
12410
12411// method id "documentai.projects.locations.processors.processorVersions.list":
12412
12413type ProjectsLocationsProcessorsProcessorVersionsListCall struct {
12414	s            *Service
12415	parent       string
12416	urlParams_   gensupport.URLParams
12417	ifNoneMatch_ string
12418	ctx_         context.Context
12419	header_      http.Header
12420}
12421
12422// List: Lists all versions of a processor.
12423//
12424// - parent: The parent (project, location and processor) to list all
12425//   versions. Format:
12426//   projects/{project}/locations/{location}/processors/{processor}.
12427func (r *ProjectsLocationsProcessorsProcessorVersionsService) List(parent string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12428	c := &ProjectsLocationsProcessorsProcessorVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12429	c.parent = parent
12430	return c
12431}
12432
12433// PageSize sets the optional parameter "pageSize": The maximum number
12434// of processor versions to return. If unspecified, at most 10 processor
12435// versions will be returned. The maximum value is 20; values above 20
12436// will be coerced to 20.
12437func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12438	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12439	return c
12440}
12441
12442// PageToken sets the optional parameter "pageToken": We will return the
12443// processor versions sorted by creation time. The page token will point
12444// to the next processor version.
12445func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12446	c.urlParams_.Set("pageToken", pageToken)
12447	return c
12448}
12449
12450// Fields allows partial responses to be retrieved. See
12451// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12452// for more information.
12453func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12454	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12455	return c
12456}
12457
12458// IfNoneMatch sets the optional parameter which makes the operation
12459// fail if the object's ETag matches the given value. This is useful for
12460// getting updates only after the object has changed since the last
12461// request. Use googleapi.IsNotModified to check whether the response
12462// error from Do is the result of In-None-Match.
12463func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12464	c.ifNoneMatch_ = entityTag
12465	return c
12466}
12467
12468// Context sets the context to be used in this call's Do method. Any
12469// pending HTTP request will be aborted if the provided context is
12470// canceled.
12471func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12472	c.ctx_ = ctx
12473	return c
12474}
12475
12476// Header returns an http.Header that can be modified by the caller to
12477// add HTTP headers to the request.
12478func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Header() http.Header {
12479	if c.header_ == nil {
12480		c.header_ = make(http.Header)
12481	}
12482	return c.header_
12483}
12484
12485func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) doRequest(alt string) (*http.Response, error) {
12486	reqHeaders := make(http.Header)
12487	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12488	for k, v := range c.header_ {
12489		reqHeaders[k] = v
12490	}
12491	reqHeaders.Set("User-Agent", c.s.userAgent())
12492	if c.ifNoneMatch_ != "" {
12493		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12494	}
12495	var body io.Reader = nil
12496	c.urlParams_.Set("alt", alt)
12497	c.urlParams_.Set("prettyPrint", "false")
12498	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/processorVersions")
12499	urls += "?" + c.urlParams_.Encode()
12500	req, err := http.NewRequest("GET", urls, body)
12501	if err != nil {
12502		return nil, err
12503	}
12504	req.Header = reqHeaders
12505	googleapi.Expand(req.URL, map[string]string{
12506		"parent": c.parent,
12507	})
12508	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12509}
12510
12511// Do executes the "documentai.projects.locations.processors.processorVersions.list" call.
12512// Exactly one of *GoogleCloudDocumentaiV1ListProcessorVersionsResponse
12513// or error will be non-nil. Any non-2xx status code is an error.
12514// Response headers are in either
12515// *GoogleCloudDocumentaiV1ListProcessorVersionsResponse.ServerResponse.H
12516// eader or (if a response was returned at all) in
12517// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12518// whether the returned error was because http.StatusNotModified was
12519// returned.
12520func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1ListProcessorVersionsResponse, error) {
12521	gensupport.SetOptions(c.urlParams_, opts...)
12522	res, err := c.doRequest("json")
12523	if res != nil && res.StatusCode == http.StatusNotModified {
12524		if res.Body != nil {
12525			res.Body.Close()
12526		}
12527		return nil, &googleapi.Error{
12528			Code:   res.StatusCode,
12529			Header: res.Header,
12530		}
12531	}
12532	if err != nil {
12533		return nil, err
12534	}
12535	defer googleapi.CloseBody(res)
12536	if err := googleapi.CheckResponse(res); err != nil {
12537		return nil, err
12538	}
12539	ret := &GoogleCloudDocumentaiV1ListProcessorVersionsResponse{
12540		ServerResponse: googleapi.ServerResponse{
12541			Header:         res.Header,
12542			HTTPStatusCode: res.StatusCode,
12543		},
12544	}
12545	target := &ret
12546	if err := gensupport.DecodeResponse(target, res); err != nil {
12547		return nil, err
12548	}
12549	return ret, nil
12550	// {
12551	//   "description": "Lists all versions of a processor.",
12552	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions",
12553	//   "httpMethod": "GET",
12554	//   "id": "documentai.projects.locations.processors.processorVersions.list",
12555	//   "parameterOrder": [
12556	//     "parent"
12557	//   ],
12558	//   "parameters": {
12559	//     "pageSize": {
12560	//       "description": "The maximum number of processor versions to return. If unspecified, at most 10 processor versions will be returned. The maximum value is 20; values above 20 will be coerced to 20.",
12561	//       "format": "int32",
12562	//       "location": "query",
12563	//       "type": "integer"
12564	//     },
12565	//     "pageToken": {
12566	//       "description": "We will return the processor versions sorted by creation time. The page token will point to the next processor version.",
12567	//       "location": "query",
12568	//       "type": "string"
12569	//     },
12570	//     "parent": {
12571	//       "description": "Required. The parent (project, location and processor) to list all versions. Format: projects/{project}/locations/{location}/processors/{processor}",
12572	//       "location": "path",
12573	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
12574	//       "required": true,
12575	//       "type": "string"
12576	//     }
12577	//   },
12578	//   "path": "v1/{+parent}/processorVersions",
12579	//   "response": {
12580	//     "$ref": "GoogleCloudDocumentaiV1ListProcessorVersionsResponse"
12581	//   },
12582	//   "scopes": [
12583	//     "https://www.googleapis.com/auth/cloud-platform"
12584	//   ]
12585	// }
12586
12587}
12588
12589// Pages invokes f for each page of results.
12590// A non-nil error returned from f will halt the iteration.
12591// The provided context supersedes any context provided to the Context method.
12592func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1ListProcessorVersionsResponse) error) error {
12593	c.ctx_ = ctx
12594	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
12595	for {
12596		x, err := c.Do()
12597		if err != nil {
12598			return err
12599		}
12600		if err := f(x); err != nil {
12601			return err
12602		}
12603		if x.NextPageToken == "" {
12604			return nil
12605		}
12606		c.PageToken(x.NextPageToken)
12607	}
12608}
12609
12610// method id "documentai.projects.locations.processors.processorVersions.process":
12611
12612type ProjectsLocationsProcessorsProcessorVersionsProcessCall struct {
12613	s                                     *Service
12614	name                                  string
12615	googleclouddocumentaiv1processrequest *GoogleCloudDocumentaiV1ProcessRequest
12616	urlParams_                            gensupport.URLParams
12617	ctx_                                  context.Context
12618	header_                               http.Header
12619}
12620
12621// Process: Processes a single document.
12622//
12623// - name: The resource name of the Processor or ProcessorVersion to use
12624//   for processing. If a Processor is specified, the server will use
12625//   its default version. Format:
12626//   projects/{project}/locations/{location}/processors/{processor}, or
12627//   projects/{project}/locations/{location}/processors/{processor}/proce
12628//   ssorVersions/{processorVersion}.
12629func (r *ProjectsLocationsProcessorsProcessorVersionsService) Process(name string, googleclouddocumentaiv1processrequest *GoogleCloudDocumentaiV1ProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
12630	c := &ProjectsLocationsProcessorsProcessorVersionsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12631	c.name = name
12632	c.googleclouddocumentaiv1processrequest = googleclouddocumentaiv1processrequest
12633	return c
12634}
12635
12636// Fields allows partial responses to be retrieved. See
12637// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12638// for more information.
12639func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
12640	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12641	return c
12642}
12643
12644// Context sets the context to be used in this call's Do method. Any
12645// pending HTTP request will be aborted if the provided context is
12646// canceled.
12647func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
12648	c.ctx_ = ctx
12649	return c
12650}
12651
12652// Header returns an http.Header that can be modified by the caller to
12653// add HTTP headers to the request.
12654func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Header() http.Header {
12655	if c.header_ == nil {
12656		c.header_ = make(http.Header)
12657	}
12658	return c.header_
12659}
12660
12661func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) doRequest(alt string) (*http.Response, error) {
12662	reqHeaders := make(http.Header)
12663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12664	for k, v := range c.header_ {
12665		reqHeaders[k] = v
12666	}
12667	reqHeaders.Set("User-Agent", c.s.userAgent())
12668	var body io.Reader = nil
12669	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1processrequest)
12670	if err != nil {
12671		return nil, err
12672	}
12673	reqHeaders.Set("Content-Type", "application/json")
12674	c.urlParams_.Set("alt", alt)
12675	c.urlParams_.Set("prettyPrint", "false")
12676	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:process")
12677	urls += "?" + c.urlParams_.Encode()
12678	req, err := http.NewRequest("POST", urls, body)
12679	if err != nil {
12680		return nil, err
12681	}
12682	req.Header = reqHeaders
12683	googleapi.Expand(req.URL, map[string]string{
12684		"name": c.name,
12685	})
12686	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12687}
12688
12689// Do executes the "documentai.projects.locations.processors.processorVersions.process" call.
12690// Exactly one of *GoogleCloudDocumentaiV1ProcessResponse or error will
12691// be non-nil. Any non-2xx status code is an error. Response headers are
12692// in either
12693// *GoogleCloudDocumentaiV1ProcessResponse.ServerResponse.Header or (if
12694// a response was returned at all) in error.(*googleapi.Error).Header.
12695// Use googleapi.IsNotModified to check whether the returned error was
12696// because http.StatusNotModified was returned.
12697func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1ProcessResponse, error) {
12698	gensupport.SetOptions(c.urlParams_, opts...)
12699	res, err := c.doRequest("json")
12700	if res != nil && res.StatusCode == http.StatusNotModified {
12701		if res.Body != nil {
12702			res.Body.Close()
12703		}
12704		return nil, &googleapi.Error{
12705			Code:   res.StatusCode,
12706			Header: res.Header,
12707		}
12708	}
12709	if err != nil {
12710		return nil, err
12711	}
12712	defer googleapi.CloseBody(res)
12713	if err := googleapi.CheckResponse(res); err != nil {
12714		return nil, err
12715	}
12716	ret := &GoogleCloudDocumentaiV1ProcessResponse{
12717		ServerResponse: googleapi.ServerResponse{
12718			Header:         res.Header,
12719			HTTPStatusCode: res.StatusCode,
12720		},
12721	}
12722	target := &ret
12723	if err := gensupport.DecodeResponse(target, res); err != nil {
12724		return nil, err
12725	}
12726	return ret, nil
12727	// {
12728	//   "description": "Processes a single document.",
12729	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:process",
12730	//   "httpMethod": "POST",
12731	//   "id": "documentai.projects.locations.processors.processorVersions.process",
12732	//   "parameterOrder": [
12733	//     "name"
12734	//   ],
12735	//   "parameters": {
12736	//     "name": {
12737	//       "description": "Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}",
12738	//       "location": "path",
12739	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12740	//       "required": true,
12741	//       "type": "string"
12742	//     }
12743	//   },
12744	//   "path": "v1/{+name}:process",
12745	//   "request": {
12746	//     "$ref": "GoogleCloudDocumentaiV1ProcessRequest"
12747	//   },
12748	//   "response": {
12749	//     "$ref": "GoogleCloudDocumentaiV1ProcessResponse"
12750	//   },
12751	//   "scopes": [
12752	//     "https://www.googleapis.com/auth/cloud-platform"
12753	//   ]
12754	// }
12755
12756}
12757
12758// method id "documentai.projects.locations.processors.processorVersions.undeploy":
12759
12760type ProjectsLocationsProcessorsProcessorVersionsUndeployCall struct {
12761	s                                                      *Service
12762	name                                                   string
12763	googleclouddocumentaiv1undeployprocessorversionrequest *GoogleCloudDocumentaiV1UndeployProcessorVersionRequest
12764	urlParams_                                             gensupport.URLParams
12765	ctx_                                                   context.Context
12766	header_                                                http.Header
12767}
12768
12769// Undeploy: Undeploys the processor version.
12770//
12771// - name: The processor version resource name to be undeployed.
12772func (r *ProjectsLocationsProcessorsProcessorVersionsService) Undeploy(name string, googleclouddocumentaiv1undeployprocessorversionrequest *GoogleCloudDocumentaiV1UndeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
12773	c := &ProjectsLocationsProcessorsProcessorVersionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12774	c.name = name
12775	c.googleclouddocumentaiv1undeployprocessorversionrequest = googleclouddocumentaiv1undeployprocessorversionrequest
12776	return c
12777}
12778
12779// Fields allows partial responses to be retrieved. See
12780// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12781// for more information.
12782func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
12783	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12784	return c
12785}
12786
12787// Context sets the context to be used in this call's Do method. Any
12788// pending HTTP request will be aborted if the provided context is
12789// canceled.
12790func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
12791	c.ctx_ = ctx
12792	return c
12793}
12794
12795// Header returns an http.Header that can be modified by the caller to
12796// add HTTP headers to the request.
12797func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Header() http.Header {
12798	if c.header_ == nil {
12799		c.header_ = make(http.Header)
12800	}
12801	return c.header_
12802}
12803
12804func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) doRequest(alt string) (*http.Response, error) {
12805	reqHeaders := make(http.Header)
12806	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12807	for k, v := range c.header_ {
12808		reqHeaders[k] = v
12809	}
12810	reqHeaders.Set("User-Agent", c.s.userAgent())
12811	var body io.Reader = nil
12812	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1undeployprocessorversionrequest)
12813	if err != nil {
12814		return nil, err
12815	}
12816	reqHeaders.Set("Content-Type", "application/json")
12817	c.urlParams_.Set("alt", alt)
12818	c.urlParams_.Set("prettyPrint", "false")
12819	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undeploy")
12820	urls += "?" + c.urlParams_.Encode()
12821	req, err := http.NewRequest("POST", urls, body)
12822	if err != nil {
12823		return nil, err
12824	}
12825	req.Header = reqHeaders
12826	googleapi.Expand(req.URL, map[string]string{
12827		"name": c.name,
12828	})
12829	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12830}
12831
12832// Do executes the "documentai.projects.locations.processors.processorVersions.undeploy" call.
12833// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
12834// Any non-2xx status code is an error. Response headers are in either
12835// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
12836// was returned at all) in error.(*googleapi.Error).Header. Use
12837// googleapi.IsNotModified to check whether the returned error was
12838// because http.StatusNotModified was returned.
12839func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12840	gensupport.SetOptions(c.urlParams_, opts...)
12841	res, err := c.doRequest("json")
12842	if res != nil && res.StatusCode == http.StatusNotModified {
12843		if res.Body != nil {
12844			res.Body.Close()
12845		}
12846		return nil, &googleapi.Error{
12847			Code:   res.StatusCode,
12848			Header: res.Header,
12849		}
12850	}
12851	if err != nil {
12852		return nil, err
12853	}
12854	defer googleapi.CloseBody(res)
12855	if err := googleapi.CheckResponse(res); err != nil {
12856		return nil, err
12857	}
12858	ret := &GoogleLongrunningOperation{
12859		ServerResponse: googleapi.ServerResponse{
12860			Header:         res.Header,
12861			HTTPStatusCode: res.StatusCode,
12862		},
12863	}
12864	target := &ret
12865	if err := gensupport.DecodeResponse(target, res); err != nil {
12866		return nil, err
12867	}
12868	return ret, nil
12869	// {
12870	//   "description": "Undeploys the processor version.",
12871	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:undeploy",
12872	//   "httpMethod": "POST",
12873	//   "id": "documentai.projects.locations.processors.processorVersions.undeploy",
12874	//   "parameterOrder": [
12875	//     "name"
12876	//   ],
12877	//   "parameters": {
12878	//     "name": {
12879	//       "description": "Required. The processor version resource name to be undeployed.",
12880	//       "location": "path",
12881	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12882	//       "required": true,
12883	//       "type": "string"
12884	//     }
12885	//   },
12886	//   "path": "v1/{+name}:undeploy",
12887	//   "request": {
12888	//     "$ref": "GoogleCloudDocumentaiV1UndeployProcessorVersionRequest"
12889	//   },
12890	//   "response": {
12891	//     "$ref": "GoogleLongrunningOperation"
12892	//   },
12893	//   "scopes": [
12894	//     "https://www.googleapis.com/auth/cloud-platform"
12895	//   ]
12896	// }
12897
12898}
12899
12900// method id "documentai.projects.operations.get":
12901
12902type ProjectsOperationsGetCall struct {
12903	s            *Service
12904	name         string
12905	urlParams_   gensupport.URLParams
12906	ifNoneMatch_ string
12907	ctx_         context.Context
12908	header_      http.Header
12909}
12910
12911// Get: Gets the latest state of a long-running operation. Clients can
12912// use this method to poll the operation result at intervals as
12913// recommended by the API service.
12914//
12915// - name: The name of the operation resource.
12916func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
12917	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12918	c.name = name
12919	return c
12920}
12921
12922// Fields allows partial responses to be retrieved. See
12923// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12924// for more information.
12925func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
12926	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12927	return c
12928}
12929
12930// IfNoneMatch sets the optional parameter which makes the operation
12931// fail if the object's ETag matches the given value. This is useful for
12932// getting updates only after the object has changed since the last
12933// request. Use googleapi.IsNotModified to check whether the response
12934// error from Do is the result of In-None-Match.
12935func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
12936	c.ifNoneMatch_ = entityTag
12937	return c
12938}
12939
12940// Context sets the context to be used in this call's Do method. Any
12941// pending HTTP request will be aborted if the provided context is
12942// canceled.
12943func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
12944	c.ctx_ = ctx
12945	return c
12946}
12947
12948// Header returns an http.Header that can be modified by the caller to
12949// add HTTP headers to the request.
12950func (c *ProjectsOperationsGetCall) Header() http.Header {
12951	if c.header_ == nil {
12952		c.header_ = make(http.Header)
12953	}
12954	return c.header_
12955}
12956
12957func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
12958	reqHeaders := make(http.Header)
12959	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12960	for k, v := range c.header_ {
12961		reqHeaders[k] = v
12962	}
12963	reqHeaders.Set("User-Agent", c.s.userAgent())
12964	if c.ifNoneMatch_ != "" {
12965		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12966	}
12967	var body io.Reader = nil
12968	c.urlParams_.Set("alt", alt)
12969	c.urlParams_.Set("prettyPrint", "false")
12970	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12971	urls += "?" + c.urlParams_.Encode()
12972	req, err := http.NewRequest("GET", urls, body)
12973	if err != nil {
12974		return nil, err
12975	}
12976	req.Header = reqHeaders
12977	googleapi.Expand(req.URL, map[string]string{
12978		"name": c.name,
12979	})
12980	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12981}
12982
12983// Do executes the "documentai.projects.operations.get" call.
12984// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
12985// Any non-2xx status code is an error. Response headers are in either
12986// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
12987// was returned at all) in error.(*googleapi.Error).Header. Use
12988// googleapi.IsNotModified to check whether the returned error was
12989// because http.StatusNotModified was returned.
12990func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12991	gensupport.SetOptions(c.urlParams_, opts...)
12992	res, err := c.doRequest("json")
12993	if res != nil && res.StatusCode == http.StatusNotModified {
12994		if res.Body != nil {
12995			res.Body.Close()
12996		}
12997		return nil, &googleapi.Error{
12998			Code:   res.StatusCode,
12999			Header: res.Header,
13000		}
13001	}
13002	if err != nil {
13003		return nil, err
13004	}
13005	defer googleapi.CloseBody(res)
13006	if err := googleapi.CheckResponse(res); err != nil {
13007		return nil, err
13008	}
13009	ret := &GoogleLongrunningOperation{
13010		ServerResponse: googleapi.ServerResponse{
13011			Header:         res.Header,
13012			HTTPStatusCode: res.StatusCode,
13013		},
13014	}
13015	target := &ret
13016	if err := gensupport.DecodeResponse(target, res); err != nil {
13017		return nil, err
13018	}
13019	return ret, nil
13020	// {
13021	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
13022	//   "flatPath": "v1/projects/{projectsId}/operations/{operationsId}",
13023	//   "httpMethod": "GET",
13024	//   "id": "documentai.projects.operations.get",
13025	//   "parameterOrder": [
13026	//     "name"
13027	//   ],
13028	//   "parameters": {
13029	//     "name": {
13030	//       "description": "The name of the operation resource.",
13031	//       "location": "path",
13032	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
13033	//       "required": true,
13034	//       "type": "string"
13035	//     }
13036	//   },
13037	//   "path": "v1/{+name}",
13038	//   "response": {
13039	//     "$ref": "GoogleLongrunningOperation"
13040	//   },
13041	//   "scopes": [
13042	//     "https://www.googleapis.com/auth/cloud-platform"
13043	//   ]
13044	// }
13045
13046}
13047
13048// method id "documentai.uiv1beta3.projects.locations.get":
13049
13050type Uiv1beta3ProjectsLocationsGetCall struct {
13051	s            *Service
13052	name         string
13053	urlParams_   gensupport.URLParams
13054	ifNoneMatch_ string
13055	ctx_         context.Context
13056	header_      http.Header
13057}
13058
13059// Get: Gets information about a location.
13060//
13061// - name: Resource name for the location.
13062func (r *Uiv1beta3ProjectsLocationsService) Get(name string) *Uiv1beta3ProjectsLocationsGetCall {
13063	c := &Uiv1beta3ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13064	c.name = name
13065	return c
13066}
13067
13068// Fields allows partial responses to be retrieved. See
13069// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13070// for more information.
13071func (c *Uiv1beta3ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *Uiv1beta3ProjectsLocationsGetCall {
13072	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13073	return c
13074}
13075
13076// IfNoneMatch sets the optional parameter which makes the operation
13077// fail if the object's ETag matches the given value. This is useful for
13078// getting updates only after the object has changed since the last
13079// request. Use googleapi.IsNotModified to check whether the response
13080// error from Do is the result of In-None-Match.
13081func (c *Uiv1beta3ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *Uiv1beta3ProjectsLocationsGetCall {
13082	c.ifNoneMatch_ = entityTag
13083	return c
13084}
13085
13086// Context sets the context to be used in this call's Do method. Any
13087// pending HTTP request will be aborted if the provided context is
13088// canceled.
13089func (c *Uiv1beta3ProjectsLocationsGetCall) Context(ctx context.Context) *Uiv1beta3ProjectsLocationsGetCall {
13090	c.ctx_ = ctx
13091	return c
13092}
13093
13094// Header returns an http.Header that can be modified by the caller to
13095// add HTTP headers to the request.
13096func (c *Uiv1beta3ProjectsLocationsGetCall) Header() http.Header {
13097	if c.header_ == nil {
13098		c.header_ = make(http.Header)
13099	}
13100	return c.header_
13101}
13102
13103func (c *Uiv1beta3ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
13104	reqHeaders := make(http.Header)
13105	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
13106	for k, v := range c.header_ {
13107		reqHeaders[k] = v
13108	}
13109	reqHeaders.Set("User-Agent", c.s.userAgent())
13110	if c.ifNoneMatch_ != "" {
13111		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13112	}
13113	var body io.Reader = nil
13114	c.urlParams_.Set("alt", alt)
13115	c.urlParams_.Set("prettyPrint", "false")
13116	urls := googleapi.ResolveRelative(c.s.BasePath, "uiv1beta3/{+name}")
13117	urls += "?" + c.urlParams_.Encode()
13118	req, err := http.NewRequest("GET", urls, body)
13119	if err != nil {
13120		return nil, err
13121	}
13122	req.Header = reqHeaders
13123	googleapi.Expand(req.URL, map[string]string{
13124		"name": c.name,
13125	})
13126	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13127}
13128
13129// Do executes the "documentai.uiv1beta3.projects.locations.get" call.
13130// Exactly one of *GoogleCloudLocationLocation or error will be non-nil.
13131// Any non-2xx status code is an error. Response headers are in either
13132// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response
13133// was returned at all) in error.(*googleapi.Error).Header. Use
13134// googleapi.IsNotModified to check whether the returned error was
13135// because http.StatusNotModified was returned.
13136func (c *Uiv1beta3ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
13137	gensupport.SetOptions(c.urlParams_, opts...)
13138	res, err := c.doRequest("json")
13139	if res != nil && res.StatusCode == http.StatusNotModified {
13140		if res.Body != nil {
13141			res.Body.Close()
13142		}
13143		return nil, &googleapi.Error{
13144			Code:   res.StatusCode,
13145			Header: res.Header,
13146		}
13147	}
13148	if err != nil {
13149		return nil, err
13150	}
13151	defer googleapi.CloseBody(res)
13152	if err := googleapi.CheckResponse(res); err != nil {
13153		return nil, err
13154	}
13155	ret := &GoogleCloudLocationLocation{
13156		ServerResponse: googleapi.ServerResponse{
13157			Header:         res.Header,
13158			HTTPStatusCode: res.StatusCode,
13159		},
13160	}
13161	target := &ret
13162	if err := gensupport.DecodeResponse(target, res); err != nil {
13163		return nil, err
13164	}
13165	return ret, nil
13166	// {
13167	//   "description": "Gets information about a location.",
13168	//   "flatPath": "uiv1beta3/projects/{projectsId}/locations/{locationsId}",
13169	//   "httpMethod": "GET",
13170	//   "id": "documentai.uiv1beta3.projects.locations.get",
13171	//   "parameterOrder": [
13172	//     "name"
13173	//   ],
13174	//   "parameters": {
13175	//     "name": {
13176	//       "description": "Resource name for the location.",
13177	//       "location": "path",
13178	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
13179	//       "required": true,
13180	//       "type": "string"
13181	//     }
13182	//   },
13183	//   "path": "uiv1beta3/{+name}",
13184	//   "response": {
13185	//     "$ref": "GoogleCloudLocationLocation"
13186	//   },
13187	//   "scopes": [
13188	//     "https://www.googleapis.com/auth/cloud-platform"
13189	//   ]
13190	// }
13191
13192}
13193
13194// method id "documentai.uiv1beta3.projects.locations.list":
13195
13196type Uiv1beta3ProjectsLocationsListCall struct {
13197	s            *Service
13198	name         string
13199	urlParams_   gensupport.URLParams
13200	ifNoneMatch_ string
13201	ctx_         context.Context
13202	header_      http.Header
13203}
13204
13205// List: Lists information about the supported locations for this
13206// service.
13207//
13208// - name: The resource that owns the locations collection, if
13209//   applicable.
13210func (r *Uiv1beta3ProjectsLocationsService) List(name string) *Uiv1beta3ProjectsLocationsListCall {
13211	c := &Uiv1beta3ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13212	c.name = name
13213	return c
13214}
13215
13216// Filter sets the optional parameter "filter": A filter to narrow down
13217// results to a preferred subset. The filtering language accepts strings
13218// like "displayName=tokyo", and is documented in more detail in AIP-160
13219// (https://google.aip.dev/160).
13220func (c *Uiv1beta3ProjectsLocationsListCall) Filter(filter string) *Uiv1beta3ProjectsLocationsListCall {
13221	c.urlParams_.Set("filter", filter)
13222	return c
13223}
13224
13225// PageSize sets the optional parameter "pageSize": The maximum number
13226// of results to return. If not set, the service selects a default.
13227func (c *Uiv1beta3ProjectsLocationsListCall) PageSize(pageSize int64) *Uiv1beta3ProjectsLocationsListCall {
13228	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13229	return c
13230}
13231
13232// PageToken sets the optional parameter "pageToken": A page token
13233// received from the `next_page_token` field in the response. Send that
13234// page token to receive the subsequent page.
13235func (c *Uiv1beta3ProjectsLocationsListCall) PageToken(pageToken string) *Uiv1beta3ProjectsLocationsListCall {
13236	c.urlParams_.Set("pageToken", pageToken)
13237	return c
13238}
13239
13240// Fields allows partial responses to be retrieved. See
13241// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13242// for more information.
13243func (c *Uiv1beta3ProjectsLocationsListCall) Fields(s ...googleapi.Field) *Uiv1beta3ProjectsLocationsListCall {
13244	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13245	return c
13246}
13247
13248// IfNoneMatch sets the optional parameter which makes the operation
13249// fail if the object's ETag matches the given value. This is useful for
13250// getting updates only after the object has changed since the last
13251// request. Use googleapi.IsNotModified to check whether the response
13252// error from Do is the result of In-None-Match.
13253func (c *Uiv1beta3ProjectsLocationsListCall) IfNoneMatch(entityTag string) *Uiv1beta3ProjectsLocationsListCall {
13254	c.ifNoneMatch_ = entityTag
13255	return c
13256}
13257
13258// Context sets the context to be used in this call's Do method. Any
13259// pending HTTP request will be aborted if the provided context is
13260// canceled.
13261func (c *Uiv1beta3ProjectsLocationsListCall) Context(ctx context.Context) *Uiv1beta3ProjectsLocationsListCall {
13262	c.ctx_ = ctx
13263	return c
13264}
13265
13266// Header returns an http.Header that can be modified by the caller to
13267// add HTTP headers to the request.
13268func (c *Uiv1beta3ProjectsLocationsListCall) Header() http.Header {
13269	if c.header_ == nil {
13270		c.header_ = make(http.Header)
13271	}
13272	return c.header_
13273}
13274
13275func (c *Uiv1beta3ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
13276	reqHeaders := make(http.Header)
13277	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
13278	for k, v := range c.header_ {
13279		reqHeaders[k] = v
13280	}
13281	reqHeaders.Set("User-Agent", c.s.userAgent())
13282	if c.ifNoneMatch_ != "" {
13283		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13284	}
13285	var body io.Reader = nil
13286	c.urlParams_.Set("alt", alt)
13287	c.urlParams_.Set("prettyPrint", "false")
13288	urls := googleapi.ResolveRelative(c.s.BasePath, "uiv1beta3/{+name}/locations")
13289	urls += "?" + c.urlParams_.Encode()
13290	req, err := http.NewRequest("GET", urls, body)
13291	if err != nil {
13292		return nil, err
13293	}
13294	req.Header = reqHeaders
13295	googleapi.Expand(req.URL, map[string]string{
13296		"name": c.name,
13297	})
13298	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13299}
13300
13301// Do executes the "documentai.uiv1beta3.projects.locations.list" call.
13302// Exactly one of *GoogleCloudLocationListLocationsResponse or error
13303// will be non-nil. Any non-2xx status code is an error. Response
13304// headers are in either
13305// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or
13306// (if a response was returned at all) in
13307// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13308// whether the returned error was because http.StatusNotModified was
13309// returned.
13310func (c *Uiv1beta3ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
13311	gensupport.SetOptions(c.urlParams_, opts...)
13312	res, err := c.doRequest("json")
13313	if res != nil && res.StatusCode == http.StatusNotModified {
13314		if res.Body != nil {
13315			res.Body.Close()
13316		}
13317		return nil, &googleapi.Error{
13318			Code:   res.StatusCode,
13319			Header: res.Header,
13320		}
13321	}
13322	if err != nil {
13323		return nil, err
13324	}
13325	defer googleapi.CloseBody(res)
13326	if err := googleapi.CheckResponse(res); err != nil {
13327		return nil, err
13328	}
13329	ret := &GoogleCloudLocationListLocationsResponse{
13330		ServerResponse: googleapi.ServerResponse{
13331			Header:         res.Header,
13332			HTTPStatusCode: res.StatusCode,
13333		},
13334	}
13335	target := &ret
13336	if err := gensupport.DecodeResponse(target, res); err != nil {
13337		return nil, err
13338	}
13339	return ret, nil
13340	// {
13341	//   "description": "Lists information about the supported locations for this service.",
13342	//   "flatPath": "uiv1beta3/projects/{projectsId}/locations",
13343	//   "httpMethod": "GET",
13344	//   "id": "documentai.uiv1beta3.projects.locations.list",
13345	//   "parameterOrder": [
13346	//     "name"
13347	//   ],
13348	//   "parameters": {
13349	//     "filter": {
13350	//       "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
13351	//       "location": "query",
13352	//       "type": "string"
13353	//     },
13354	//     "name": {
13355	//       "description": "The resource that owns the locations collection, if applicable.",
13356	//       "location": "path",
13357	//       "pattern": "^projects/[^/]+$",
13358	//       "required": true,
13359	//       "type": "string"
13360	//     },
13361	//     "pageSize": {
13362	//       "description": "The maximum number of results to return. If not set, the service selects a default.",
13363	//       "format": "int32",
13364	//       "location": "query",
13365	//       "type": "integer"
13366	//     },
13367	//     "pageToken": {
13368	//       "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
13369	//       "location": "query",
13370	//       "type": "string"
13371	//     }
13372	//   },
13373	//   "path": "uiv1beta3/{+name}/locations",
13374	//   "response": {
13375	//     "$ref": "GoogleCloudLocationListLocationsResponse"
13376	//   },
13377	//   "scopes": [
13378	//     "https://www.googleapis.com/auth/cloud-platform"
13379	//   ]
13380	// }
13381
13382}
13383
13384// Pages invokes f for each page of results.
13385// A non-nil error returned from f will halt the iteration.
13386// The provided context supersedes any context provided to the Context method.
13387func (c *Uiv1beta3ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
13388	c.ctx_ = ctx
13389	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
13390	for {
13391		x, err := c.Do()
13392		if err != nil {
13393			return err
13394		}
13395		if err := f(x); err != nil {
13396			return err
13397		}
13398		if x.NextPageToken == "" {
13399			return nil
13400		}
13401		c.PageToken(x.NextPageToken)
13402	}
13403}
13404
13405// method id "documentai.uiv1beta3.projects.locations.operations.cancel":
13406
13407type Uiv1beta3ProjectsLocationsOperationsCancelCall struct {
13408	s          *Service
13409	name       string
13410	urlParams_ gensupport.URLParams
13411	ctx_       context.Context
13412	header_    http.Header
13413}
13414
13415// Cancel: Starts asynchronous cancellation on a long-running operation.
13416// The server makes a best effort to cancel the operation, but success
13417// is not guaranteed. If the server doesn't support this method, it
13418// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
13419// Operations.GetOperation or other methods to check whether the
13420// cancellation succeeded or whether the operation completed despite
13421// cancellation. On successful cancellation, the operation is not
13422// deleted; instead, it becomes an operation with an Operation.error
13423// value with a google.rpc.Status.code of 1, corresponding to
13424// `Code.CANCELLED`.
13425//
13426// - name: The name of the operation resource to be cancelled.
13427func (r *Uiv1beta3ProjectsLocationsOperationsService) Cancel(name string) *Uiv1beta3ProjectsLocationsOperationsCancelCall {
13428	c := &Uiv1beta3ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13429	c.name = name
13430	return c
13431}
13432
13433// Fields allows partial responses to be retrieved. See
13434// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13435// for more information.
13436func (c *Uiv1beta3ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *Uiv1beta3ProjectsLocationsOperationsCancelCall {
13437	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13438	return c
13439}
13440
13441// Context sets the context to be used in this call's Do method. Any
13442// pending HTTP request will be aborted if the provided context is
13443// canceled.
13444func (c *Uiv1beta3ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *Uiv1beta3ProjectsLocationsOperationsCancelCall {
13445	c.ctx_ = ctx
13446	return c
13447}
13448
13449// Header returns an http.Header that can be modified by the caller to
13450// add HTTP headers to the request.
13451func (c *Uiv1beta3ProjectsLocationsOperationsCancelCall) Header() http.Header {
13452	if c.header_ == nil {
13453		c.header_ = make(http.Header)
13454	}
13455	return c.header_
13456}
13457
13458func (c *Uiv1beta3ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
13459	reqHeaders := make(http.Header)
13460	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
13461	for k, v := range c.header_ {
13462		reqHeaders[k] = v
13463	}
13464	reqHeaders.Set("User-Agent", c.s.userAgent())
13465	var body io.Reader = nil
13466	c.urlParams_.Set("alt", alt)
13467	c.urlParams_.Set("prettyPrint", "false")
13468	urls := googleapi.ResolveRelative(c.s.BasePath, "uiv1beta3/{+name}:cancel")
13469	urls += "?" + c.urlParams_.Encode()
13470	req, err := http.NewRequest("POST", urls, body)
13471	if err != nil {
13472		return nil, err
13473	}
13474	req.Header = reqHeaders
13475	googleapi.Expand(req.URL, map[string]string{
13476		"name": c.name,
13477	})
13478	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13479}
13480
13481// Do executes the "documentai.uiv1beta3.projects.locations.operations.cancel" call.
13482// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
13483// non-2xx status code is an error. Response headers are in either
13484// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
13485// returned at all) in error.(*googleapi.Error).Header. Use
13486// googleapi.IsNotModified to check whether the returned error was
13487// because http.StatusNotModified was returned.
13488func (c *Uiv1beta3ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
13489	gensupport.SetOptions(c.urlParams_, opts...)
13490	res, err := c.doRequest("json")
13491	if res != nil && res.StatusCode == http.StatusNotModified {
13492		if res.Body != nil {
13493			res.Body.Close()
13494		}
13495		return nil, &googleapi.Error{
13496			Code:   res.StatusCode,
13497			Header: res.Header,
13498		}
13499	}
13500	if err != nil {
13501		return nil, err
13502	}
13503	defer googleapi.CloseBody(res)
13504	if err := googleapi.CheckResponse(res); err != nil {
13505		return nil, err
13506	}
13507	ret := &GoogleProtobufEmpty{
13508		ServerResponse: googleapi.ServerResponse{
13509			Header:         res.Header,
13510			HTTPStatusCode: res.StatusCode,
13511		},
13512	}
13513	target := &ret
13514	if err := gensupport.DecodeResponse(target, res); err != nil {
13515		return nil, err
13516	}
13517	return ret, nil
13518	// {
13519	//   "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
13520	//   "flatPath": "uiv1beta3/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
13521	//   "httpMethod": "POST",
13522	//   "id": "documentai.uiv1beta3.projects.locations.operations.cancel",
13523	//   "parameterOrder": [
13524	//     "name"
13525	//   ],
13526	//   "parameters": {
13527	//     "name": {
13528	//       "description": "The name of the operation resource to be cancelled.",
13529	//       "location": "path",
13530	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
13531	//       "required": true,
13532	//       "type": "string"
13533	//     }
13534	//   },
13535	//   "path": "uiv1beta3/{+name}:cancel",
13536	//   "response": {
13537	//     "$ref": "GoogleProtobufEmpty"
13538	//   },
13539	//   "scopes": [
13540	//     "https://www.googleapis.com/auth/cloud-platform"
13541	//   ]
13542	// }
13543
13544}
13545
13546// method id "documentai.uiv1beta3.projects.locations.operations.get":
13547
13548type Uiv1beta3ProjectsLocationsOperationsGetCall struct {
13549	s            *Service
13550	name         string
13551	urlParams_   gensupport.URLParams
13552	ifNoneMatch_ string
13553	ctx_         context.Context
13554	header_      http.Header
13555}
13556
13557// Get: Gets the latest state of a long-running operation. Clients can
13558// use this method to poll the operation result at intervals as
13559// recommended by the API service.
13560//
13561// - name: The name of the operation resource.
13562func (r *Uiv1beta3ProjectsLocationsOperationsService) Get(name string) *Uiv1beta3ProjectsLocationsOperationsGetCall {
13563	c := &Uiv1beta3ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13564	c.name = name
13565	return c
13566}
13567
13568// Fields allows partial responses to be retrieved. See
13569// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13570// for more information.
13571func (c *Uiv1beta3ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *Uiv1beta3ProjectsLocationsOperationsGetCall {
13572	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13573	return c
13574}
13575
13576// IfNoneMatch sets the optional parameter which makes the operation
13577// fail if the object's ETag matches the given value. This is useful for
13578// getting updates only after the object has changed since the last
13579// request. Use googleapi.IsNotModified to check whether the response
13580// error from Do is the result of In-None-Match.
13581func (c *Uiv1beta3ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *Uiv1beta3ProjectsLocationsOperationsGetCall {
13582	c.ifNoneMatch_ = entityTag
13583	return c
13584}
13585
13586// Context sets the context to be used in this call's Do method. Any
13587// pending HTTP request will be aborted if the provided context is
13588// canceled.
13589func (c *Uiv1beta3ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *Uiv1beta3ProjectsLocationsOperationsGetCall {
13590	c.ctx_ = ctx
13591	return c
13592}
13593
13594// Header returns an http.Header that can be modified by the caller to
13595// add HTTP headers to the request.
13596func (c *Uiv1beta3ProjectsLocationsOperationsGetCall) Header() http.Header {
13597	if c.header_ == nil {
13598		c.header_ = make(http.Header)
13599	}
13600	return c.header_
13601}
13602
13603func (c *Uiv1beta3ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
13604	reqHeaders := make(http.Header)
13605	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
13606	for k, v := range c.header_ {
13607		reqHeaders[k] = v
13608	}
13609	reqHeaders.Set("User-Agent", c.s.userAgent())
13610	if c.ifNoneMatch_ != "" {
13611		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13612	}
13613	var body io.Reader = nil
13614	c.urlParams_.Set("alt", alt)
13615	c.urlParams_.Set("prettyPrint", "false")
13616	urls := googleapi.ResolveRelative(c.s.BasePath, "uiv1beta3/{+name}")
13617	urls += "?" + c.urlParams_.Encode()
13618	req, err := http.NewRequest("GET", urls, body)
13619	if err != nil {
13620		return nil, err
13621	}
13622	req.Header = reqHeaders
13623	googleapi.Expand(req.URL, map[string]string{
13624		"name": c.name,
13625	})
13626	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13627}
13628
13629// Do executes the "documentai.uiv1beta3.projects.locations.operations.get" call.
13630// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
13631// Any non-2xx status code is an error. Response headers are in either
13632// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
13633// was returned at all) in error.(*googleapi.Error).Header. Use
13634// googleapi.IsNotModified to check whether the returned error was
13635// because http.StatusNotModified was returned.
13636func (c *Uiv1beta3ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13637	gensupport.SetOptions(c.urlParams_, opts...)
13638	res, err := c.doRequest("json")
13639	if res != nil && res.StatusCode == http.StatusNotModified {
13640		if res.Body != nil {
13641			res.Body.Close()
13642		}
13643		return nil, &googleapi.Error{
13644			Code:   res.StatusCode,
13645			Header: res.Header,
13646		}
13647	}
13648	if err != nil {
13649		return nil, err
13650	}
13651	defer googleapi.CloseBody(res)
13652	if err := googleapi.CheckResponse(res); err != nil {
13653		return nil, err
13654	}
13655	ret := &GoogleLongrunningOperation{
13656		ServerResponse: googleapi.ServerResponse{
13657			Header:         res.Header,
13658			HTTPStatusCode: res.StatusCode,
13659		},
13660	}
13661	target := &ret
13662	if err := gensupport.DecodeResponse(target, res); err != nil {
13663		return nil, err
13664	}
13665	return ret, nil
13666	// {
13667	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
13668	//   "flatPath": "uiv1beta3/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
13669	//   "httpMethod": "GET",
13670	//   "id": "documentai.uiv1beta3.projects.locations.operations.get",
13671	//   "parameterOrder": [
13672	//     "name"
13673	//   ],
13674	//   "parameters": {
13675	//     "name": {
13676	//       "description": "The name of the operation resource.",
13677	//       "location": "path",
13678	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
13679	//       "required": true,
13680	//       "type": "string"
13681	//     }
13682	//   },
13683	//   "path": "uiv1beta3/{+name}",
13684	//   "response": {
13685	//     "$ref": "GoogleLongrunningOperation"
13686	//   },
13687	//   "scopes": [
13688	//     "https://www.googleapis.com/auth/cloud-platform"
13689	//   ]
13690	// }
13691
13692}
13693
13694// method id "documentai.uiv1beta3.projects.locations.operations.list":
13695
13696type Uiv1beta3ProjectsLocationsOperationsListCall struct {
13697	s            *Service
13698	name         string
13699	urlParams_   gensupport.URLParams
13700	ifNoneMatch_ string
13701	ctx_         context.Context
13702	header_      http.Header
13703}
13704
13705// List: Lists operations that match the specified filter in the
13706// request. If the server doesn't support this method, it returns
13707// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
13708// override the binding to use different resource name schemes, such as
13709// `users/*/operations`. To override the binding, API services can add a
13710// binding such as "/v1/{name=users/*}/operations" to their service
13711// configuration. For backwards compatibility, the default name includes
13712// the operations collection id, however overriding users must ensure
13713// the name binding is the parent resource, without the operations
13714// collection id.
13715//
13716// - name: The name of the operation's parent resource.
13717func (r *Uiv1beta3ProjectsLocationsOperationsService) List(name string) *Uiv1beta3ProjectsLocationsOperationsListCall {
13718	c := &Uiv1beta3ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13719	c.name = name
13720	return c
13721}
13722
13723// Filter sets the optional parameter "filter": The standard list
13724// filter.
13725func (c *Uiv1beta3ProjectsLocationsOperationsListCall) Filter(filter string) *Uiv1beta3ProjectsLocationsOperationsListCall {
13726	c.urlParams_.Set("filter", filter)
13727	return c
13728}
13729
13730// PageSize sets the optional parameter "pageSize": The standard list
13731// page size.
13732func (c *Uiv1beta3ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *Uiv1beta3ProjectsLocationsOperationsListCall {
13733	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13734	return c
13735}
13736
13737// PageToken sets the optional parameter "pageToken": The standard list
13738// page token.
13739func (c *Uiv1beta3ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Uiv1beta3ProjectsLocationsOperationsListCall {
13740	c.urlParams_.Set("pageToken", pageToken)
13741	return c
13742}
13743
13744// Fields allows partial responses to be retrieved. See
13745// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13746// for more information.
13747func (c *Uiv1beta3ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Uiv1beta3ProjectsLocationsOperationsListCall {
13748	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13749	return c
13750}
13751
13752// IfNoneMatch sets the optional parameter which makes the operation
13753// fail if the object's ETag matches the given value. This is useful for
13754// getting updates only after the object has changed since the last
13755// request. Use googleapi.IsNotModified to check whether the response
13756// error from Do is the result of In-None-Match.
13757func (c *Uiv1beta3ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *Uiv1beta3ProjectsLocationsOperationsListCall {
13758	c.ifNoneMatch_ = entityTag
13759	return c
13760}
13761
13762// Context sets the context to be used in this call's Do method. Any
13763// pending HTTP request will be aborted if the provided context is
13764// canceled.
13765func (c *Uiv1beta3ProjectsLocationsOperationsListCall) Context(ctx context.Context) *Uiv1beta3ProjectsLocationsOperationsListCall {
13766	c.ctx_ = ctx
13767	return c
13768}
13769
13770// Header returns an http.Header that can be modified by the caller to
13771// add HTTP headers to the request.
13772func (c *Uiv1beta3ProjectsLocationsOperationsListCall) Header() http.Header {
13773	if c.header_ == nil {
13774		c.header_ = make(http.Header)
13775	}
13776	return c.header_
13777}
13778
13779func (c *Uiv1beta3ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
13780	reqHeaders := make(http.Header)
13781	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
13782	for k, v := range c.header_ {
13783		reqHeaders[k] = v
13784	}
13785	reqHeaders.Set("User-Agent", c.s.userAgent())
13786	if c.ifNoneMatch_ != "" {
13787		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13788	}
13789	var body io.Reader = nil
13790	c.urlParams_.Set("alt", alt)
13791	c.urlParams_.Set("prettyPrint", "false")
13792	urls := googleapi.ResolveRelative(c.s.BasePath, "uiv1beta3/{+name}")
13793	urls += "?" + c.urlParams_.Encode()
13794	req, err := http.NewRequest("GET", urls, body)
13795	if err != nil {
13796		return nil, err
13797	}
13798	req.Header = reqHeaders
13799	googleapi.Expand(req.URL, map[string]string{
13800		"name": c.name,
13801	})
13802	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13803}
13804
13805// Do executes the "documentai.uiv1beta3.projects.locations.operations.list" call.
13806// Exactly one of *GoogleLongrunningListOperationsResponse or error will
13807// be non-nil. Any non-2xx status code is an error. Response headers are
13808// in either
13809// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
13810// a response was returned at all) in error.(*googleapi.Error).Header.
13811// Use googleapi.IsNotModified to check whether the returned error was
13812// because http.StatusNotModified was returned.
13813func (c *Uiv1beta3ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
13814	gensupport.SetOptions(c.urlParams_, opts...)
13815	res, err := c.doRequest("json")
13816	if res != nil && res.StatusCode == http.StatusNotModified {
13817		if res.Body != nil {
13818			res.Body.Close()
13819		}
13820		return nil, &googleapi.Error{
13821			Code:   res.StatusCode,
13822			Header: res.Header,
13823		}
13824	}
13825	if err != nil {
13826		return nil, err
13827	}
13828	defer googleapi.CloseBody(res)
13829	if err := googleapi.CheckResponse(res); err != nil {
13830		return nil, err
13831	}
13832	ret := &GoogleLongrunningListOperationsResponse{
13833		ServerResponse: googleapi.ServerResponse{
13834			Header:         res.Header,
13835			HTTPStatusCode: res.StatusCode,
13836		},
13837	}
13838	target := &ret
13839	if err := gensupport.DecodeResponse(target, res); err != nil {
13840		return nil, err
13841	}
13842	return ret, nil
13843	// {
13844	//   "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
13845	//   "flatPath": "uiv1beta3/projects/{projectsId}/locations/{locationsId}/operations",
13846	//   "httpMethod": "GET",
13847	//   "id": "documentai.uiv1beta3.projects.locations.operations.list",
13848	//   "parameterOrder": [
13849	//     "name"
13850	//   ],
13851	//   "parameters": {
13852	//     "filter": {
13853	//       "description": "The standard list filter.",
13854	//       "location": "query",
13855	//       "type": "string"
13856	//     },
13857	//     "name": {
13858	//       "description": "The name of the operation's parent resource.",
13859	//       "location": "path",
13860	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations$",
13861	//       "required": true,
13862	//       "type": "string"
13863	//     },
13864	//     "pageSize": {
13865	//       "description": "The standard list page size.",
13866	//       "format": "int32",
13867	//       "location": "query",
13868	//       "type": "integer"
13869	//     },
13870	//     "pageToken": {
13871	//       "description": "The standard list page token.",
13872	//       "location": "query",
13873	//       "type": "string"
13874	//     }
13875	//   },
13876	//   "path": "uiv1beta3/{+name}",
13877	//   "response": {
13878	//     "$ref": "GoogleLongrunningListOperationsResponse"
13879	//   },
13880	//   "scopes": [
13881	//     "https://www.googleapis.com/auth/cloud-platform"
13882	//   ]
13883	// }
13884
13885}
13886
13887// Pages invokes f for each page of results.
13888// A non-nil error returned from f will halt the iteration.
13889// The provided context supersedes any context provided to the Context method.
13890func (c *Uiv1beta3ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
13891	c.ctx_ = ctx
13892	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
13893	for {
13894		x, err := c.Do()
13895		if err != nil {
13896			return err
13897		}
13898		if err := f(x); err != nil {
13899			return err
13900		}
13901		if x.NextPageToken == "" {
13902			return nil
13903		}
13904		c.PageToken(x.NextPageToken)
13905	}
13906}
13907