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/v1beta3"
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/v1beta3"
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:v1beta3"
75const apiName = "documentai"
76const apiVersion = "v1beta3"
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.Projects = NewProjectsService(s)
121	return s, nil
122}
123
124type Service struct {
125	client    *http.Client
126	BasePath  string // API endpoint base URL
127	UserAgent string // optional additional User-Agent fragment
128
129	Projects *ProjectsService
130}
131
132func (s *Service) userAgent() string {
133	if s.UserAgent == "" {
134		return googleapi.UserAgent
135	}
136	return googleapi.UserAgent + " " + s.UserAgent
137}
138
139func NewProjectsService(s *Service) *ProjectsService {
140	rs := &ProjectsService{s: s}
141	rs.Locations = NewProjectsLocationsService(s)
142	return rs
143}
144
145type ProjectsService struct {
146	s *Service
147
148	Locations *ProjectsLocationsService
149}
150
151func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
152	rs := &ProjectsLocationsService{s: s}
153	rs.Operations = NewProjectsLocationsOperationsService(s)
154	rs.Processors = NewProjectsLocationsProcessorsService(s)
155	return rs
156}
157
158type ProjectsLocationsService struct {
159	s *Service
160
161	Operations *ProjectsLocationsOperationsService
162
163	Processors *ProjectsLocationsProcessorsService
164}
165
166func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
167	rs := &ProjectsLocationsOperationsService{s: s}
168	return rs
169}
170
171type ProjectsLocationsOperationsService struct {
172	s *Service
173}
174
175func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService {
176	rs := &ProjectsLocationsProcessorsService{s: s}
177	rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s)
178	rs.ProcessorVersions = NewProjectsLocationsProcessorsProcessorVersionsService(s)
179	return rs
180}
181
182type ProjectsLocationsProcessorsService struct {
183	s *Service
184
185	HumanReviewConfig *ProjectsLocationsProcessorsHumanReviewConfigService
186
187	ProcessorVersions *ProjectsLocationsProcessorsProcessorVersionsService
188}
189
190func NewProjectsLocationsProcessorsHumanReviewConfigService(s *Service) *ProjectsLocationsProcessorsHumanReviewConfigService {
191	rs := &ProjectsLocationsProcessorsHumanReviewConfigService{s: s}
192	return rs
193}
194
195type ProjectsLocationsProcessorsHumanReviewConfigService struct {
196	s *Service
197}
198
199func NewProjectsLocationsProcessorsProcessorVersionsService(s *Service) *ProjectsLocationsProcessorsProcessorVersionsService {
200	rs := &ProjectsLocationsProcessorsProcessorVersionsService{s: s}
201	return rs
202}
203
204type ProjectsLocationsProcessorsProcessorVersionsService struct {
205	s *Service
206}
207
208type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct {
209	// CommonMetadata: The basic metadata of the long running operation.
210	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
211
212	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
213	// unconditionally include in API requests. By default, fields with
214	// empty or default values are omitted from API requests. However, any
215	// non-pointer, non-interface field appearing in ForceSendFields will be
216	// sent to the server regardless of whether the field is empty or not.
217	// This may be used to include empty fields in Patch requests.
218	ForceSendFields []string `json:"-"`
219
220	// NullFields is a list of field names (e.g. "CommonMetadata") to
221	// include in API requests with the JSON null value. By default, fields
222	// with empty values are omitted from API requests. However, any field
223	// with an empty value appearing in NullFields will be sent to the
224	// server as null. It is an error if a field in this list has a
225	// non-empty value. This may be used to include null fields in Patch
226	// requests.
227	NullFields []string `json:"-"`
228}
229
230func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) {
231	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
232	raw := NoMethod(*s)
233	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
234}
235
236// GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse: Response
237// of the delete documents operation.
238type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse struct {
239}
240
241type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata struct {
242	// CommonMetadata: The basic metadata of the long running operation.
243	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
244
245	// DestDatasetType: The destination dataset split type.
246	//
247	// Possible values:
248	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not
249	// set. go/protodosdonts#do-include-an-unspecified-value-in-an-enum
250	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
251	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
252	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
253	DestDatasetType string `json:"destDatasetType,omitempty"`
254
255	// IndividualBatchMoveStatuses: The list of response details of each
256	// document.
257	IndividualBatchMoveStatuses []*GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus `json:"individualBatchMoveStatuses,omitempty"`
258
259	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
260	// unconditionally include in API requests. By default, fields with
261	// empty or default values are omitted from API requests. However, any
262	// non-pointer, non-interface field appearing in ForceSendFields will be
263	// sent to the server regardless of whether the field is empty or not.
264	// This may be used to include empty fields in Patch requests.
265	ForceSendFields []string `json:"-"`
266
267	// NullFields is a list of field names (e.g. "CommonMetadata") to
268	// include in API requests with the JSON null value. By default, fields
269	// with empty values are omitted from API requests. However, any field
270	// with an empty value appearing in NullFields will be sent to the
271	// server as null. It is an error if a field in this list has a
272	// non-empty value. This may be used to include null fields in Patch
273	// requests.
274	NullFields []string `json:"-"`
275}
276
277func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata) MarshalJSON() ([]byte, error) {
278	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata
279	raw := NoMethod(*s)
280	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
281}
282
283// GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatc
284// hMoveStatus: The status of each individual document in the batch move
285// process.
286type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus struct {
287	// DocumentId: The document id of the document.
288	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
289
290	// Status: The status of moving the document.
291	Status *GoogleRpcStatus `json:"status,omitempty"`
292
293	// ForceSendFields is a list of field names (e.g. "DocumentId") to
294	// unconditionally include in API requests. By default, fields with
295	// empty or default values are omitted from API requests. However, any
296	// non-pointer, non-interface field appearing in ForceSendFields will be
297	// sent to the server regardless of whether the field is empty or not.
298	// This may be used to include empty fields in Patch requests.
299	ForceSendFields []string `json:"-"`
300
301	// NullFields is a list of field names (e.g. "DocumentId") to include in
302	// API requests with the JSON null value. By default, fields with empty
303	// values are omitted from API requests. However, any field with an
304	// empty value appearing in NullFields will be sent to the server as
305	// null. It is an error if a field in this list has a non-empty value.
306	// This may be used to include null fields in Patch requests.
307	NullFields []string `json:"-"`
308}
309
310func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus) MarshalJSON() ([]byte, error) {
311	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
312	raw := NoMethod(*s)
313	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
314}
315
316// GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse: Response of
317// the batch move documents operation.
318type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse struct {
319}
320
321// GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata: The common
322// metadata for long running operations.
323type GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata struct {
324	// CreateTime: The creation time of the operation.
325	CreateTime string `json:"createTime,omitempty"`
326
327	// Resource: A related resource to this operation.
328	Resource string `json:"resource,omitempty"`
329
330	// State: The state of the operation.
331	//
332	// Possible values:
333	//   "STATE_UNSPECIFIED" - Unspecified state.
334	//   "RUNNING" - Operation is still running.
335	//   "CANCELLING" - Operation is being cancelled.
336	//   "SUCCEEDED" - Operation succeeded.
337	//   "FAILED" - Operation failed.
338	//   "CANCELLED" - Operation is cancelled.
339	State string `json:"state,omitempty"`
340
341	// StateMessage: A message providing more details about the current
342	// state of processing.
343	StateMessage string `json:"stateMessage,omitempty"`
344
345	// UpdateTime: The last update time of the operation.
346	UpdateTime string `json:"updateTime,omitempty"`
347
348	// ForceSendFields is a list of field names (e.g. "CreateTime") to
349	// unconditionally include in API requests. By default, fields with
350	// empty or default values are omitted from API requests. However, any
351	// non-pointer, non-interface field appearing in ForceSendFields will be
352	// sent to the server regardless of whether the field is empty or not.
353	// This may be used to include empty fields in Patch requests.
354	ForceSendFields []string `json:"-"`
355
356	// NullFields is a list of field names (e.g. "CreateTime") to include in
357	// API requests with the JSON null value. By default, fields with empty
358	// values are omitted from API requests. However, any field with an
359	// empty value appearing in NullFields will be sent to the server as
360	// null. It is an error if a field in this list has a non-empty value.
361	// This may be used to include null fields in Patch requests.
362	NullFields []string `json:"-"`
363}
364
365func (s *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
366	type NoMethod GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
367	raw := NoMethod(*s)
368	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
369}
370
371// GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata: The
372// long running operation metadata for CreateLabelerPool.
373type GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata struct {
374	// CommonMetadata: The basic metadata of the long running operation.
375	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
376
377	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
378	// unconditionally include in API requests. By default, fields with
379	// empty or default values are omitted from API requests. However, any
380	// non-pointer, non-interface field appearing in ForceSendFields will be
381	// sent to the server regardless of whether the field is empty or not.
382	// This may be used to include empty fields in Patch requests.
383	ForceSendFields []string `json:"-"`
384
385	// NullFields is a list of field names (e.g. "CommonMetadata") to
386	// include in API requests with the JSON null value. By default, fields
387	// with empty values are omitted from API requests. However, any field
388	// with an empty value appearing in NullFields will be sent to the
389	// server as null. It is an error if a field in this list has a
390	// non-empty value. This may be used to include null fields in Patch
391	// requests.
392	NullFields []string `json:"-"`
393}
394
395func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
396	type NoMethod GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
397	raw := NoMethod(*s)
398	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
399}
400
401// GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The
402// long running operation metadata for DeleteLabelerPool.
403type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct {
404	// CommonMetadata: The basic metadata of the long running operation.
405	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
406
407	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
408	// unconditionally include in API requests. By default, fields with
409	// empty or default values are omitted from API requests. However, any
410	// non-pointer, non-interface field appearing in ForceSendFields will be
411	// sent to the server regardless of whether the field is empty or not.
412	// This may be used to include empty fields in Patch requests.
413	ForceSendFields []string `json:"-"`
414
415	// NullFields is a list of field names (e.g. "CommonMetadata") to
416	// include in API requests with the JSON null value. By default, fields
417	// with empty values are omitted from API requests. However, any field
418	// with an empty value appearing in NullFields will be sent to the
419	// server as null. It is an error if a field in this list has a
420	// non-empty value. This may be used to include null fields in Patch
421	// requests.
422	NullFields []string `json:"-"`
423}
424
425func (s *GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
426	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
427	raw := NoMethod(*s)
428	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
429}
430
431// GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata: The long
432// running operation metadata for delete processor method.
433type GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata struct {
434	// CommonMetadata: The basic metadata of the long running operation.
435	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
436
437	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
438	// unconditionally include in API requests. By default, fields with
439	// empty or default values are omitted from API requests. However, any
440	// non-pointer, non-interface field appearing in ForceSendFields will be
441	// sent to the server regardless of whether the field is empty or not.
442	// This may be used to include empty fields in Patch requests.
443	ForceSendFields []string `json:"-"`
444
445	// NullFields is a list of field names (e.g. "CommonMetadata") to
446	// include in API requests with the JSON null value. By default, fields
447	// with empty values are omitted from API requests. However, any field
448	// with an empty value appearing in NullFields will be sent to the
449	// server as null. It is an error if a field in this list has a
450	// non-empty value. This may be used to include null fields in Patch
451	// requests.
452	NullFields []string `json:"-"`
453}
454
455func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
456	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
457	raw := NoMethod(*s)
458	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
459}
460
461// GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata: The
462// long running operation metadata for delete processor version method.
463type GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata struct {
464	// CommonMetadata: The basic metadata of the long running operation.
465	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
466
467	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
468	// unconditionally include in API requests. By default, fields with
469	// empty or default values are omitted from API requests. However, any
470	// non-pointer, non-interface field appearing in ForceSendFields will be
471	// sent to the server regardless of whether the field is empty or not.
472	// This may be used to include empty fields in Patch requests.
473	ForceSendFields []string `json:"-"`
474
475	// NullFields is a list of field names (e.g. "CommonMetadata") to
476	// include in API requests with the JSON null value. By default, fields
477	// with empty values are omitted from API requests. However, any field
478	// with an empty value appearing in NullFields will be sent to the
479	// server as null. It is an error if a field in this list has a
480	// non-empty value. This may be used to include null fields in Patch
481	// requests.
482	NullFields []string `json:"-"`
483}
484
485func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
486	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
487	raw := NoMethod(*s)
488	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
489}
490
491// GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata: The
492// long running operation metadata for deploy processor version method.
493type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata struct {
494	// CommonMetadata: The basic metadata of the long running operation.
495	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
496
497	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
498	// unconditionally include in API requests. By default, fields with
499	// empty or default values are omitted from API requests. However, any
500	// non-pointer, non-interface field appearing in ForceSendFields will be
501	// sent to the server regardless of whether the field is empty or not.
502	// This may be used to include empty fields in Patch requests.
503	ForceSendFields []string `json:"-"`
504
505	// NullFields is a list of field names (e.g. "CommonMetadata") to
506	// include in API requests with the JSON null value. By default, fields
507	// with empty values are omitted from API requests. However, any field
508	// with an empty value appearing in NullFields will be sent to the
509	// server as null. It is an error if a field in this list has a
510	// non-empty value. This may be used to include null fields in Patch
511	// requests.
512	NullFields []string `json:"-"`
513}
514
515func (s *GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
516	type NoMethod GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
517	raw := NoMethod(*s)
518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
519}
520
521// GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse:
522// Response message for the deploy processor version method.
523type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse struct {
524}
525
526// GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata: The long
527// running operation metadata for disable processor method.
528type GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata struct {
529	// CommonMetadata: The basic metadata of the long running operation.
530	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
531
532	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
533	// unconditionally include in API requests. By default, fields with
534	// empty or default values are omitted from API requests. However, any
535	// non-pointer, non-interface field appearing in ForceSendFields will be
536	// sent to the server regardless of whether the field is empty or not.
537	// This may be used to include empty fields in Patch requests.
538	ForceSendFields []string `json:"-"`
539
540	// NullFields is a list of field names (e.g. "CommonMetadata") to
541	// include in API requests with the JSON null value. By default, fields
542	// with empty values are omitted from API requests. However, any field
543	// with an empty value appearing in NullFields will be sent to the
544	// server as null. It is an error if a field in this list has a
545	// non-empty value. This may be used to include null fields in Patch
546	// requests.
547	NullFields []string `json:"-"`
548}
549
550func (s *GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
551	type NoMethod GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
552	raw := NoMethod(*s)
553	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
554}
555
556// GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse: Response
557// message for the disable processor method. Intentionally empty proto
558// for adding fields in future.
559type GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse struct {
560}
561
562// GoogleCloudDocumentaiUiv1beta3DocumentId: Document Identifier.
563type GoogleCloudDocumentaiUiv1beta3DocumentId struct {
564	GcsManagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"`
565
566	// RevisionReference: Points to a specific revision of the document if
567	// set.
568	RevisionReference *GoogleCloudDocumentaiUiv1beta3RevisionReference `json:"revisionReference,omitempty"`
569
570	// ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to
571	// unconditionally include in API requests. By default, fields with
572	// empty or default values are omitted from API requests. However, any
573	// non-pointer, non-interface field appearing in ForceSendFields will be
574	// sent to the server regardless of whether the field is empty or not.
575	// This may be used to include empty fields in Patch requests.
576	ForceSendFields []string `json:"-"`
577
578	// NullFields is a list of field names (e.g. "GcsManagedDocId") to
579	// include in API requests with the JSON null value. By default, fields
580	// with empty values are omitted from API requests. However, any field
581	// with an empty value appearing in NullFields will be sent to the
582	// server as null. It is an error if a field in this list has a
583	// non-empty value. This may be used to include null fields in Patch
584	// requests.
585	NullFields []string `json:"-"`
586}
587
588func (s *GoogleCloudDocumentaiUiv1beta3DocumentId) MarshalJSON() ([]byte, error) {
589	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentId
590	raw := NoMethod(*s)
591	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
592}
593
594// GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId:
595// Identifies a document uniquely within the scope of a dataset in the
596// GCS-based option.
597type GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId struct {
598	// CwDocId: Optional. Id of the document (indexed) managed by Content
599	// Warehouse.
600	CwDocId string `json:"cwDocId,omitempty"`
601
602	// GcsUri: Required. The Cloud Storage uri where the actual document is
603	// stored.
604	GcsUri string `json:"gcsUri,omitempty"`
605
606	// ForceSendFields is a list of field names (e.g. "CwDocId") to
607	// unconditionally include in API requests. By default, fields with
608	// empty or default values are omitted from API requests. However, any
609	// non-pointer, non-interface field appearing in ForceSendFields will be
610	// sent to the server regardless of whether the field is empty or not.
611	// This may be used to include empty fields in Patch requests.
612	ForceSendFields []string `json:"-"`
613
614	// NullFields is a list of field names (e.g. "CwDocId") to include in
615	// API requests with the JSON null value. By default, fields with empty
616	// values are omitted from API requests. However, any field with an
617	// empty value appearing in NullFields will be sent to the server as
618	// null. It is an error if a field in this list has a non-empty value.
619	// This may be used to include null fields in Patch requests.
620	NullFields []string `json:"-"`
621}
622
623func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) {
624	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId
625	raw := NoMethod(*s)
626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
627}
628
629// GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata: The long
630// running operation metadata for enable processor method.
631type GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata struct {
632	// CommonMetadata: The basic metadata of the long running operation.
633	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
634
635	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
636	// unconditionally include in API requests. By default, fields with
637	// empty or default values are omitted from API requests. However, any
638	// non-pointer, non-interface field appearing in ForceSendFields will be
639	// sent to the server regardless of whether the field is empty or not.
640	// This may be used to include empty fields in Patch requests.
641	ForceSendFields []string `json:"-"`
642
643	// NullFields is a list of field names (e.g. "CommonMetadata") to
644	// include in API requests with the JSON null value. By default, fields
645	// with empty values are omitted from API requests. However, any field
646	// with an empty value appearing in NullFields will be sent to the
647	// server as null. It is an error if a field in this list has a
648	// non-empty value. This may be used to include null fields in Patch
649	// requests.
650	NullFields []string `json:"-"`
651}
652
653func (s *GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
654	type NoMethod GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
655	raw := NoMethod(*s)
656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
657}
658
659// GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse: Response
660// message for the enable processor method. Intentionally empty proto
661// for adding fields in future.
662type GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse struct {
663}
664
665// GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata:
666// Metadata of the EvaluateProcessorVersion method.
667type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata struct {
668	// CommonMetadata: The basic metadata of the long running operation.
669	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
670
671	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
672	// unconditionally include in API requests. By default, fields with
673	// empty or default values are omitted from API requests. However, any
674	// non-pointer, non-interface field appearing in ForceSendFields will be
675	// sent to the server regardless of whether the field is empty or not.
676	// This may be used to include empty fields in Patch requests.
677	ForceSendFields []string `json:"-"`
678
679	// NullFields is a list of field names (e.g. "CommonMetadata") to
680	// include in API requests with the JSON null value. By default, fields
681	// with empty values are omitted from API requests. However, any field
682	// with an empty value appearing in NullFields will be sent to the
683	// server as null. It is an error if a field in this list has a
684	// non-empty value. This may be used to include null fields in Patch
685	// requests.
686	NullFields []string `json:"-"`
687}
688
689func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
690	type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
691	raw := NoMethod(*s)
692	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
693}
694
695// GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse:
696// Metadata of the EvaluateProcessorVersion method.
697type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse struct {
698	// Evaluation: The resource name of the created evaluation.
699	Evaluation string `json:"evaluation,omitempty"`
700
701	// ForceSendFields is a list of field names (e.g. "Evaluation") to
702	// unconditionally include in API requests. By default, fields with
703	// empty or default values are omitted from API requests. However, any
704	// non-pointer, non-interface field appearing in ForceSendFields will be
705	// sent to the server regardless of whether the field is empty or not.
706	// This may be used to include empty fields in Patch requests.
707	ForceSendFields []string `json:"-"`
708
709	// NullFields is a list of field names (e.g. "Evaluation") to include in
710	// API requests with the JSON null value. By default, fields with empty
711	// values are omitted from API requests. However, any field with an
712	// empty value appearing in NullFields will be sent to the server as
713	// null. It is an error if a field in this list has a non-empty value.
714	// This may be used to include null fields in Patch requests.
715	NullFields []string `json:"-"`
716}
717
718func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
719	type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
720	raw := NoMethod(*s)
721	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
722}
723
724// GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata:
725// Metadata message associated with the ExportProcessorVersion
726// operation.
727type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata struct {
728	// CommonMetadata: The common metadata about the operation.
729	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
730
731	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
732	// unconditionally include in API requests. By default, fields with
733	// empty or default values are omitted from API requests. However, any
734	// non-pointer, non-interface field appearing in ForceSendFields will be
735	// sent to the server regardless of whether the field is empty or not.
736	// This may be used to include empty fields in Patch requests.
737	ForceSendFields []string `json:"-"`
738
739	// NullFields is a list of field names (e.g. "CommonMetadata") to
740	// include in API requests with the JSON null value. By default, fields
741	// with empty values are omitted from API requests. However, any field
742	// with an empty value appearing in NullFields will be sent to the
743	// server as null. It is an error if a field in this list has a
744	// non-empty value. This may be used to include null fields in Patch
745	// requests.
746	NullFields []string `json:"-"`
747}
748
749func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
750	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
751	raw := NoMethod(*s)
752	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
753}
754
755// GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse:
756// Response message associated with the ExportProcessorVersion
757// operation.
758type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse struct {
759	// GcsUri: The Cloud Storage URI containing the output artifacts.
760	GcsUri string `json:"gcsUri,omitempty"`
761
762	// ForceSendFields is a list of field names (e.g. "GcsUri") to
763	// unconditionally include in API requests. By default, fields with
764	// empty or default values are omitted from API requests. However, any
765	// non-pointer, non-interface field appearing in ForceSendFields will be
766	// sent to the server regardless of whether the field is empty or not.
767	// This may be used to include empty fields in Patch requests.
768	ForceSendFields []string `json:"-"`
769
770	// NullFields is a list of field names (e.g. "GcsUri") to include in API
771	// requests with the JSON null value. By default, fields with empty
772	// values are omitted from API requests. However, any field with an
773	// empty value appearing in NullFields will be sent to the server as
774	// null. It is an error if a field in this list has a non-empty value.
775	// This may be used to include null fields in Patch requests.
776	NullFields []string `json:"-"`
777}
778
779func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
780	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
781	raw := NoMethod(*s)
782	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
783}
784
785// GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata: Metadata of
786// the import document operation.
787type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata struct {
788	// CommonMetadata: The basic metadata of the long running operation.
789	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
790
791	// IndividualImportStatuses: The list of response details of each
792	// document.
793	IndividualImportStatuses []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"`
794
795	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
796	// unconditionally include in API requests. By default, fields with
797	// empty or default values are omitted from API requests. However, any
798	// non-pointer, non-interface field appearing in ForceSendFields will be
799	// sent to the server regardless of whether the field is empty or not.
800	// This may be used to include empty fields in Patch requests.
801	ForceSendFields []string `json:"-"`
802
803	// NullFields is a list of field names (e.g. "CommonMetadata") to
804	// include in API requests with the JSON null value. By default, fields
805	// with empty values are omitted from API requests. However, any field
806	// with an empty value appearing in NullFields will be sent to the
807	// server as null. It is an error if a field in this list has a
808	// non-empty value. This may be used to include null fields in Patch
809	// requests.
810	NullFields []string `json:"-"`
811}
812
813func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
814	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata
815	raw := NoMethod(*s)
816	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
817}
818
819// GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportS
820// tatus: The status of each individual document in the import process.
821type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus struct {
822	// InputGcsSource: The source Cloud Storage URI of the document.
823	InputGcsSource string `json:"inputGcsSource,omitempty"`
824
825	// OutputGcsDestination: The output_gcs_destination of the processed
826	// document if it was successful, otherwise empty.
827	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
828
829	// Status: The status of the importing of the document.
830	Status *GoogleRpcStatus `json:"status,omitempty"`
831
832	// ForceSendFields is a list of field names (e.g. "InputGcsSource") to
833	// unconditionally include in API requests. By default, fields with
834	// empty or default values are omitted from API requests. However, any
835	// non-pointer, non-interface field appearing in ForceSendFields will be
836	// sent to the server regardless of whether the field is empty or not.
837	// This may be used to include empty fields in Patch requests.
838	ForceSendFields []string `json:"-"`
839
840	// NullFields is a list of field names (e.g. "InputGcsSource") to
841	// include in API requests with the JSON null value. By default, fields
842	// with empty values are omitted from API requests. However, any field
843	// with an empty value appearing in NullFields will be sent to the
844	// server as null. It is an error if a field in this list has a
845	// non-empty value. This may be used to include null fields in Patch
846	// requests.
847	NullFields []string `json:"-"`
848}
849
850func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) {
851	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
852	raw := NoMethod(*s)
853	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
854}
855
856// GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse: Response of
857// the import document operation.
858type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct {
859}
860
861// GoogleCloudDocumentaiUiv1beta3RevisionReference: The revision
862// reference specifies which revision on the document to read.
863type GoogleCloudDocumentaiUiv1beta3RevisionReference struct {
864	// LatestProcessorVersion: Read the revision generated by the processor
865	// version, returns error if it does not exist.
866	LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"`
867
868	// RevisionCase: Read the revision by the predefined case.
869	//
870	// Possible values:
871	//   "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read
872	// the first (OCR) revision.
873	//   "LATEST_HUMAN_REVIEW" - The latest revision made by a human.
874	//   "LATEST_TIMESTAMP" - The latest revision based on timestamp.
875	RevisionCase string `json:"revisionCase,omitempty"`
876
877	// RevisionId: Read the revision given by the id, returns error if it
878	// does not exist.
879	RevisionId string `json:"revisionId,omitempty"`
880
881	// ForceSendFields is a list of field names (e.g.
882	// "LatestProcessorVersion") to unconditionally include in API requests.
883	// By default, fields with empty or default values are omitted from API
884	// requests. However, any non-pointer, non-interface field appearing in
885	// ForceSendFields will be sent to the server regardless of whether the
886	// field is empty or not. This may be used to include empty fields in
887	// Patch requests.
888	ForceSendFields []string `json:"-"`
889
890	// NullFields is a list of field names (e.g. "LatestProcessorVersion")
891	// to include in API requests with the JSON null value. By default,
892	// fields with empty values are omitted from API requests. However, any
893	// field with an empty value appearing in NullFields will be sent to the
894	// server as null. It is an error if a field in this list has a
895	// non-empty value. This may be used to include null fields in Patch
896	// requests.
897	NullFields []string `json:"-"`
898}
899
900func (s *GoogleCloudDocumentaiUiv1beta3RevisionReference) MarshalJSON() ([]byte, error) {
901	type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionReference
902	raw := NoMethod(*s)
903	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
904}
905
906// GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The
907// long running operation metadata for set default processor version
908// method.
909type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata struct {
910	// CommonMetadata: The basic metadata of the long running operation.
911	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
912
913	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
914	// unconditionally include in API requests. By default, fields with
915	// empty or default values are omitted from API requests. However, any
916	// non-pointer, non-interface field appearing in ForceSendFields will be
917	// sent to the server regardless of whether the field is empty or not.
918	// This may be used to include empty fields in Patch requests.
919	ForceSendFields []string `json:"-"`
920
921	// NullFields is a list of field names (e.g. "CommonMetadata") to
922	// include in API requests with the JSON null value. By default, fields
923	// with empty values are omitted from API requests. However, any field
924	// with an empty value appearing in NullFields will be sent to the
925	// server as null. It is an error if a field in this list has a
926	// non-empty value. This may be used to include null fields in Patch
927	// requests.
928	NullFields []string `json:"-"`
929}
930
931func (s *GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
932	type NoMethod GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
933	raw := NoMethod(*s)
934	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
935}
936
937// GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse:
938// Response message for set default processor version method.
939type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse struct {
940}
941
942// GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata: The
943// metadata that represents a processor version being created.
944type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata struct {
945	// CommonMetadata: The basic metadata of the long running operation.
946	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
947
948	// TestDatasetValidation: The test dataset validation information.
949	TestDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
950
951	// TrainingDatasetValidation: The training dataset validation
952	// information.
953	TrainingDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
954
955	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
956	// unconditionally include in API requests. By default, fields with
957	// empty or default values are omitted from API requests. However, any
958	// non-pointer, non-interface field appearing in ForceSendFields will be
959	// sent to the server regardless of whether the field is empty or not.
960	// This may be used to include empty fields in Patch requests.
961	ForceSendFields []string `json:"-"`
962
963	// NullFields is a list of field names (e.g. "CommonMetadata") to
964	// include in API requests with the JSON null value. By default, fields
965	// with empty values are omitted from API requests. However, any field
966	// with an empty value appearing in NullFields will be sent to the
967	// server as null. It is an error if a field in this list has a
968	// non-empty value. This may be used to include null fields in Patch
969	// requests.
970	NullFields []string `json:"-"`
971}
972
973func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
974	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
975	raw := NoMethod(*s)
976	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
977}
978
979// GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetVali
980// dation: The dataset validation information. This includes any and all
981// errors with documents and the dataset.
982type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation struct {
983	// DatasetErrorCount: The total number of dataset errors.
984	DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
985
986	// DatasetErrors: Error information for the dataset as a whole. A
987	// maximum of 10 dataset errors will be returned. A single dataset error
988	// is terminal for training.
989	DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
990
991	// DocumentErrorCount: The total number of document errors.
992	DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
993
994	// DocumentErrors: Error information pertaining to specific documents. A
995	// maximum of 10 document errors will be returned. Any document with
996	// errors will not be used throughout training.
997	DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
998
999	// ForceSendFields is a list of field names (e.g. "DatasetErrorCount")
1000	// to unconditionally include in API requests. By default, fields with
1001	// empty or default values are omitted from API requests. However, any
1002	// non-pointer, non-interface field appearing in ForceSendFields will be
1003	// sent to the server regardless of whether the field is empty or not.
1004	// This may be used to include empty fields in Patch requests.
1005	ForceSendFields []string `json:"-"`
1006
1007	// NullFields is a list of field names (e.g. "DatasetErrorCount") to
1008	// include in API requests with the JSON null value. By default, fields
1009	// with empty values are omitted from API requests. However, any field
1010	// with an empty value appearing in NullFields will be sent to the
1011	// server as null. It is an error if a field in this list has a
1012	// non-empty value. This may be used to include null fields in Patch
1013	// requests.
1014	NullFields []string `json:"-"`
1015}
1016
1017func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
1018	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
1019	raw := NoMethod(*s)
1020	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1021}
1022
1023// GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse: The
1024// response for the TrainProcessorVersion method.
1025type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse struct {
1026	// ProcessorVersion: The resource name of the processor version produced
1027	// by training.
1028	ProcessorVersion string `json:"processorVersion,omitempty"`
1029
1030	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
1031	// unconditionally include in API requests. By default, fields with
1032	// empty or default values are omitted from API requests. However, any
1033	// non-pointer, non-interface field appearing in ForceSendFields will be
1034	// sent to the server regardless of whether the field is empty or not.
1035	// This may be used to include empty fields in Patch requests.
1036	ForceSendFields []string `json:"-"`
1037
1038	// NullFields is a list of field names (e.g. "ProcessorVersion") to
1039	// include in API requests with the JSON null value. By default, fields
1040	// with empty values are omitted from API requests. However, any field
1041	// with an empty value appearing in NullFields will be sent to the
1042	// server as null. It is an error if a field in this list has a
1043	// non-empty value. This may be used to include null fields in Patch
1044	// requests.
1045	NullFields []string `json:"-"`
1046}
1047
1048func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
1049	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
1050	raw := NoMethod(*s)
1051	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1052}
1053
1054// GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata: The
1055// long running operation metadata for the undeploy processor version
1056// method.
1057type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata struct {
1058	// CommonMetadata: The basic metadata of the long running operation.
1059	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1060
1061	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1062	// unconditionally include in API requests. By default, fields with
1063	// empty or default values are omitted from API requests. However, any
1064	// non-pointer, non-interface field appearing in ForceSendFields will be
1065	// sent to the server regardless of whether the field is empty or not.
1066	// This may be used to include empty fields in Patch requests.
1067	ForceSendFields []string `json:"-"`
1068
1069	// NullFields is a list of field names (e.g. "CommonMetadata") to
1070	// include in API requests with the JSON null value. By default, fields
1071	// with empty values are omitted from API requests. However, any field
1072	// with an empty value appearing in NullFields will be sent to the
1073	// server as null. It is an error if a field in this list has a
1074	// non-empty value. This may be used to include null fields in Patch
1075	// requests.
1076	NullFields []string `json:"-"`
1077}
1078
1079func (s *GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1080	type NoMethod GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
1081	raw := NoMethod(*s)
1082	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1083}
1084
1085// GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse:
1086// Response message for the undeploy processor version method.
1087type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse struct {
1088}
1089
1090type GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata struct {
1091	// CommonMetadata: The basic metadata of the long running operation.
1092	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1093
1094	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1095	// unconditionally include in API requests. By default, fields with
1096	// empty or default values are omitted from API requests. However, any
1097	// non-pointer, non-interface field appearing in ForceSendFields will be
1098	// sent to the server regardless of whether the field is empty or not.
1099	// This may be used to include empty fields in Patch requests.
1100	ForceSendFields []string `json:"-"`
1101
1102	// NullFields is a list of field names (e.g. "CommonMetadata") to
1103	// include in API requests with the JSON null value. By default, fields
1104	// with empty values are omitted from API requests. However, any field
1105	// with an empty value appearing in NullFields will be sent to the
1106	// server as null. It is an error if a field in this list has a
1107	// non-empty value. This may be used to include null fields in Patch
1108	// requests.
1109	NullFields []string `json:"-"`
1110}
1111
1112func (s *GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
1113	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata
1114	raw := NoMethod(*s)
1115	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1116}
1117
1118// GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata: The
1119// long running operation metadata for updating the human review
1120// configuration.
1121type GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata struct {
1122	// CommonMetadata: The basic metadata of the long running operation.
1123	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1124
1125	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1126	// unconditionally include in API requests. By default, fields with
1127	// empty or default values are omitted from API requests. However, any
1128	// non-pointer, non-interface field appearing in ForceSendFields will be
1129	// sent to the server regardless of whether the field is empty or not.
1130	// This may be used to include empty fields in Patch requests.
1131	ForceSendFields []string `json:"-"`
1132
1133	// NullFields is a list of field names (e.g. "CommonMetadata") to
1134	// include in API requests with the JSON null value. By default, fields
1135	// with empty values are omitted from API requests. However, any field
1136	// with an empty value appearing in NullFields will be sent to the
1137	// server as null. It is an error if a field in this list has a
1138	// non-empty value. This may be used to include null fields in Patch
1139	// requests.
1140	NullFields []string `json:"-"`
1141}
1142
1143func (s *GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata) MarshalJSON() ([]byte, error) {
1144	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
1145	raw := NoMethod(*s)
1146	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1147}
1148
1149// GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata: The
1150// long running operation metadata for UpdateLabelerPool.
1151type GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata struct {
1152	// CommonMetadata: The basic metadata of the long running operation.
1153	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
1154
1155	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1156	// unconditionally include in API requests. By default, fields with
1157	// empty or default values are omitted from API requests. However, any
1158	// non-pointer, non-interface field appearing in ForceSendFields will be
1159	// sent to the server regardless of whether the field is empty or not.
1160	// This may be used to include empty fields in Patch requests.
1161	ForceSendFields []string `json:"-"`
1162
1163	// NullFields is a list of field names (e.g. "CommonMetadata") to
1164	// include in API requests with the JSON null value. By default, fields
1165	// with empty values are omitted from API requests. However, any field
1166	// with an empty value appearing in NullFields will be sent to the
1167	// server as null. It is an error if a field in this list has a
1168	// non-empty value. This may be used to include null fields in Patch
1169	// requests.
1170	NullFields []string `json:"-"`
1171}
1172
1173func (s *GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
1174	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
1175	raw := NoMethod(*s)
1176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1177}
1178
1179// GoogleCloudDocumentaiV1BatchProcessMetadata: The long running
1180// operation metadata for batch process method.
1181type GoogleCloudDocumentaiV1BatchProcessMetadata struct {
1182	// CreateTime: The creation time of the operation.
1183	CreateTime string `json:"createTime,omitempty"`
1184
1185	// IndividualProcessStatuses: The list of response details of each
1186	// document.
1187	IndividualProcessStatuses []*GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
1188
1189	// State: The state of the current batch processing.
1190	//
1191	// Possible values:
1192	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
1193	// state is omitted.
1194	//   "WAITING" - Request operation is waiting for scheduling.
1195	//   "RUNNING" - Request is being processed.
1196	//   "SUCCEEDED" - The batch processing completed successfully.
1197	//   "CANCELLING" - The batch processing was being cancelled.
1198	//   "CANCELLED" - The batch processing was cancelled.
1199	//   "FAILED" - The batch processing has failed.
1200	State string `json:"state,omitempty"`
1201
1202	// StateMessage: A message providing more details about the current
1203	// state of processing. For example, the error message if the operation
1204	// is failed.
1205	StateMessage string `json:"stateMessage,omitempty"`
1206
1207	// UpdateTime: The last update time of the operation.
1208	UpdateTime string `json:"updateTime,omitempty"`
1209
1210	// ForceSendFields is a list of field names (e.g. "CreateTime") to
1211	// unconditionally include in API requests. By default, fields with
1212	// empty or default values are omitted from API requests. However, any
1213	// non-pointer, non-interface field appearing in ForceSendFields will be
1214	// sent to the server regardless of whether the field is empty or not.
1215	// This may be used to include empty fields in Patch requests.
1216	ForceSendFields []string `json:"-"`
1217
1218	// NullFields is a list of field names (e.g. "CreateTime") to include in
1219	// API requests with the JSON null value. By default, fields with empty
1220	// values are omitted from API requests. However, any field with an
1221	// empty value appearing in NullFields will be sent to the server as
1222	// null. It is an error if a field in this list has a non-empty value.
1223	// This may be used to include null fields in Patch requests.
1224	NullFields []string `json:"-"`
1225}
1226
1227func (s *GoogleCloudDocumentaiV1BatchProcessMetadata) MarshalJSON() ([]byte, error) {
1228	type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadata
1229	raw := NoMethod(*s)
1230	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1231}
1232
1233// GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus:
1234// The status of a each individual document in the batch process.
1235type GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus struct {
1236	// HumanReviewStatus: The status of human review on the processed
1237	// document.
1238	HumanReviewStatus *GoogleCloudDocumentaiV1HumanReviewStatus `json:"humanReviewStatus,omitempty"`
1239
1240	// InputGcsSource: The source of the document, same as the
1241	// [input_gcs_source] field in the request when the batch process
1242	// started. The batch process is started by take snapshot of that
1243	// document, since a user can move or change that document during the
1244	// process.
1245	InputGcsSource string `json:"inputGcsSource,omitempty"`
1246
1247	// OutputGcsDestination: The output_gcs_destination (in the request as
1248	// 'output_gcs_destination') of the processed document if it was
1249	// successful, otherwise empty.
1250	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
1251
1252	// Status: The status of the processing of the document.
1253	Status *GoogleRpcStatus `json:"status,omitempty"`
1254
1255	// ForceSendFields is a list of field names (e.g. "HumanReviewStatus")
1256	// to unconditionally include in API requests. By default, fields with
1257	// empty or default values are omitted from API requests. However, any
1258	// non-pointer, non-interface field appearing in ForceSendFields will be
1259	// sent to the server regardless of whether the field is empty or not.
1260	// This may be used to include empty fields in Patch requests.
1261	ForceSendFields []string `json:"-"`
1262
1263	// NullFields is a list of field names (e.g. "HumanReviewStatus") to
1264	// include in API requests with the JSON null value. By default, fields
1265	// with empty values are omitted from API requests. However, any field
1266	// with an empty value appearing in NullFields will be sent to the
1267	// server as null. It is an error if a field in this list has a
1268	// non-empty value. This may be used to include null fields in Patch
1269	// requests.
1270	NullFields []string `json:"-"`
1271}
1272
1273func (s *GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
1274	type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
1275	raw := NoMethod(*s)
1276	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1277}
1278
1279// GoogleCloudDocumentaiV1BatchProcessResponse: Response message for
1280// batch process document method.
1281type GoogleCloudDocumentaiV1BatchProcessResponse struct {
1282}
1283
1284// GoogleCloudDocumentaiV1CommonOperationMetadata: The common metadata
1285// for long running operations.
1286type GoogleCloudDocumentaiV1CommonOperationMetadata struct {
1287	// CreateTime: The creation time of the operation.
1288	CreateTime string `json:"createTime,omitempty"`
1289
1290	// Resource: A related resource to this operation.
1291	Resource string `json:"resource,omitempty"`
1292
1293	// State: The state of the operation.
1294	//
1295	// Possible values:
1296	//   "STATE_UNSPECIFIED" - Unspecified state.
1297	//   "RUNNING" - Operation is still running.
1298	//   "CANCELLING" - Operation is being cancelled.
1299	//   "SUCCEEDED" - Operation succeeded.
1300	//   "FAILED" - Operation failed.
1301	//   "CANCELLED" - Operation is cancelled.
1302	State string `json:"state,omitempty"`
1303
1304	// StateMessage: A message providing more details about the current
1305	// state of processing.
1306	StateMessage string `json:"stateMessage,omitempty"`
1307
1308	// UpdateTime: The last update time of the operation.
1309	UpdateTime string `json:"updateTime,omitempty"`
1310
1311	// ForceSendFields is a list of field names (e.g. "CreateTime") to
1312	// unconditionally include in API requests. By default, fields with
1313	// empty or default values are omitted from API requests. However, any
1314	// non-pointer, non-interface field appearing in ForceSendFields will be
1315	// sent to the server regardless of whether the field is empty or not.
1316	// This may be used to include empty fields in Patch requests.
1317	ForceSendFields []string `json:"-"`
1318
1319	// NullFields is a list of field names (e.g. "CreateTime") to include in
1320	// API requests with the JSON null value. By default, fields with empty
1321	// values are omitted from API requests. However, any field with an
1322	// empty value appearing in NullFields will be sent to the server as
1323	// null. It is an error if a field in this list has a non-empty value.
1324	// This may be used to include null fields in Patch requests.
1325	NullFields []string `json:"-"`
1326}
1327
1328func (s *GoogleCloudDocumentaiV1CommonOperationMetadata) MarshalJSON() ([]byte, error) {
1329	type NoMethod GoogleCloudDocumentaiV1CommonOperationMetadata
1330	raw := NoMethod(*s)
1331	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1332}
1333
1334// GoogleCloudDocumentaiV1DeleteProcessorMetadata: The long running
1335// operation metadata for delete processor method.
1336type GoogleCloudDocumentaiV1DeleteProcessorMetadata struct {
1337	// CommonMetadata: The basic metadata of the long running operation.
1338	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1339
1340	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1341	// unconditionally include in API requests. By default, fields with
1342	// empty or default values are omitted from API requests. However, any
1343	// non-pointer, non-interface field appearing in ForceSendFields will be
1344	// sent to the server regardless of whether the field is empty or not.
1345	// This may be used to include empty fields in Patch requests.
1346	ForceSendFields []string `json:"-"`
1347
1348	// NullFields is a list of field names (e.g. "CommonMetadata") to
1349	// include in API requests with the JSON null value. By default, fields
1350	// with empty values are omitted from API requests. However, any field
1351	// with an empty value appearing in NullFields will be sent to the
1352	// server as null. It is an error if a field in this list has a
1353	// non-empty value. This may be used to include null fields in Patch
1354	// requests.
1355	NullFields []string `json:"-"`
1356}
1357
1358func (s *GoogleCloudDocumentaiV1DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
1359	type NoMethod GoogleCloudDocumentaiV1DeleteProcessorMetadata
1360	raw := NoMethod(*s)
1361	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1362}
1363
1364// GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata: The long
1365// running operation metadata for delete processor version method.
1366type GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata struct {
1367	// CommonMetadata: The basic metadata of the long running operation.
1368	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1369
1370	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1371	// unconditionally include in API requests. By default, fields with
1372	// empty or default values are omitted from API requests. However, any
1373	// non-pointer, non-interface field appearing in ForceSendFields will be
1374	// sent to the server regardless of whether the field is empty or not.
1375	// This may be used to include empty fields in Patch requests.
1376	ForceSendFields []string `json:"-"`
1377
1378	// NullFields is a list of field names (e.g. "CommonMetadata") to
1379	// include in API requests with the JSON null value. By default, fields
1380	// with empty values are omitted from API requests. However, any field
1381	// with an empty value appearing in NullFields will be sent to the
1382	// server as null. It is an error if a field in this list has a
1383	// non-empty value. This may be used to include null fields in Patch
1384	// requests.
1385	NullFields []string `json:"-"`
1386}
1387
1388func (s *GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1389	type NoMethod GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata
1390	raw := NoMethod(*s)
1391	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1392}
1393
1394// GoogleCloudDocumentaiV1DeployProcessorVersionMetadata: The long
1395// running operation metadata for deploy processor version method.
1396type GoogleCloudDocumentaiV1DeployProcessorVersionMetadata struct {
1397	// CommonMetadata: The basic metadata of the long running operation.
1398	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1399
1400	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1401	// unconditionally include in API requests. By default, fields with
1402	// empty or default values are omitted from API requests. However, any
1403	// non-pointer, non-interface field appearing in ForceSendFields will be
1404	// sent to the server regardless of whether the field is empty or not.
1405	// This may be used to include empty fields in Patch requests.
1406	ForceSendFields []string `json:"-"`
1407
1408	// NullFields is a list of field names (e.g. "CommonMetadata") to
1409	// include in API requests with the JSON null value. By default, fields
1410	// with empty values are omitted from API requests. However, any field
1411	// with an empty value appearing in NullFields will be sent to the
1412	// server as null. It is an error if a field in this list has a
1413	// non-empty value. This may be used to include null fields in Patch
1414	// requests.
1415	NullFields []string `json:"-"`
1416}
1417
1418func (s *GoogleCloudDocumentaiV1DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1419	type NoMethod GoogleCloudDocumentaiV1DeployProcessorVersionMetadata
1420	raw := NoMethod(*s)
1421	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1422}
1423
1424// GoogleCloudDocumentaiV1DeployProcessorVersionResponse: Response
1425// message for the deploy processor version method.
1426type GoogleCloudDocumentaiV1DeployProcessorVersionResponse struct {
1427}
1428
1429// GoogleCloudDocumentaiV1DisableProcessorMetadata: The long running
1430// operation metadata for disable processor method.
1431type GoogleCloudDocumentaiV1DisableProcessorMetadata struct {
1432	// CommonMetadata: The basic metadata of the long running operation.
1433	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1434
1435	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1436	// unconditionally include in API requests. By default, fields with
1437	// empty or default values are omitted from API requests. However, any
1438	// non-pointer, non-interface field appearing in ForceSendFields will be
1439	// sent to the server regardless of whether the field is empty or not.
1440	// This may be used to include empty fields in Patch requests.
1441	ForceSendFields []string `json:"-"`
1442
1443	// NullFields is a list of field names (e.g. "CommonMetadata") to
1444	// include in API requests with the JSON null value. By default, fields
1445	// with empty values are omitted from API requests. However, any field
1446	// with an empty value appearing in NullFields will be sent to the
1447	// server as null. It is an error if a field in this list has a
1448	// non-empty value. This may be used to include null fields in Patch
1449	// requests.
1450	NullFields []string `json:"-"`
1451}
1452
1453func (s *GoogleCloudDocumentaiV1DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
1454	type NoMethod GoogleCloudDocumentaiV1DisableProcessorMetadata
1455	raw := NoMethod(*s)
1456	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1457}
1458
1459// GoogleCloudDocumentaiV1DisableProcessorResponse: Response message for
1460// the disable processor method. Intentionally empty proto for adding
1461// fields in future.
1462type GoogleCloudDocumentaiV1DisableProcessorResponse struct {
1463}
1464
1465// GoogleCloudDocumentaiV1EnableProcessorMetadata: The long running
1466// operation metadata for enable processor method.
1467type GoogleCloudDocumentaiV1EnableProcessorMetadata struct {
1468	// CommonMetadata: The basic metadata of the long running operation.
1469	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1470
1471	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1472	// unconditionally include in API requests. By default, fields with
1473	// empty or default values are omitted from API requests. However, any
1474	// non-pointer, non-interface field appearing in ForceSendFields will be
1475	// sent to the server regardless of whether the field is empty or not.
1476	// This may be used to include empty fields in Patch requests.
1477	ForceSendFields []string `json:"-"`
1478
1479	// NullFields is a list of field names (e.g. "CommonMetadata") to
1480	// include in API requests with the JSON null value. By default, fields
1481	// with empty values are omitted from API requests. However, any field
1482	// with an empty value appearing in NullFields will be sent to the
1483	// server as null. It is an error if a field in this list has a
1484	// non-empty value. This may be used to include null fields in Patch
1485	// requests.
1486	NullFields []string `json:"-"`
1487}
1488
1489func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
1490	type NoMethod GoogleCloudDocumentaiV1EnableProcessorMetadata
1491	raw := NoMethod(*s)
1492	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1493}
1494
1495// GoogleCloudDocumentaiV1EnableProcessorResponse: Response message for
1496// the enable processor method. Intentionally empty proto for adding
1497// fields in future.
1498type GoogleCloudDocumentaiV1EnableProcessorResponse struct {
1499}
1500
1501// GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review
1502// on a processed document.
1503type GoogleCloudDocumentaiV1HumanReviewStatus struct {
1504	// HumanReviewOperation: The name of the operation triggered by the
1505	// processed document. This field is populated only when the [state] is
1506	// [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
1507	// metadata as the long running operation returned by [ReviewDocument]
1508	// method.
1509	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
1510
1511	// State: The state of human review on the processing request.
1512	//
1513	// Possible values:
1514	//   "STATE_UNSPECIFIED" - Human review state is unspecified. Most
1515	// likely due to an internal error.
1516	//   "SKIPPED" - Human review is skipped for the document. This can
1517	// happen because human review is not enabled on the processor or the
1518	// processing request has been set to skip this document.
1519	//   "VALIDATION_PASSED" - Human review validation is triggered and
1520	// passed, so no review is needed.
1521	//   "IN_PROGRESS" - Human review validation is triggered and the
1522	// document is under review.
1523	//   "ERROR" - Some error happened during triggering human review, see
1524	// the [state_message] for details.
1525	State string `json:"state,omitempty"`
1526
1527	// StateMessage: A message providing more details about the human review
1528	// state.
1529	StateMessage string `json:"stateMessage,omitempty"`
1530
1531	// ForceSendFields is a list of field names (e.g.
1532	// "HumanReviewOperation") to unconditionally include in API requests.
1533	// By default, fields with empty or default values are omitted from API
1534	// requests. However, any non-pointer, non-interface field appearing in
1535	// ForceSendFields will be sent to the server regardless of whether the
1536	// field is empty or not. This may be used to include empty fields in
1537	// Patch requests.
1538	ForceSendFields []string `json:"-"`
1539
1540	// NullFields is a list of field names (e.g. "HumanReviewOperation") to
1541	// include in API requests with the JSON null value. By default, fields
1542	// with empty values are omitted from API requests. However, any field
1543	// with an empty value appearing in NullFields will be sent to the
1544	// server as null. It is an error if a field in this list has a
1545	// non-empty value. This may be used to include null fields in Patch
1546	// requests.
1547	NullFields []string `json:"-"`
1548}
1549
1550func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) {
1551	type NoMethod GoogleCloudDocumentaiV1HumanReviewStatus
1552	raw := NoMethod(*s)
1553	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1554}
1555
1556// GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata: The long
1557// running operation metadata for review document method.
1558type GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata struct {
1559	// CommonMetadata: The basic metadata of the long running operation.
1560	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1561
1562	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1563	// unconditionally include in API requests. By default, fields with
1564	// empty or default values are omitted from API requests. However, any
1565	// non-pointer, non-interface field appearing in ForceSendFields will be
1566	// sent to the server regardless of whether the field is empty or not.
1567	// This may be used to include empty fields in Patch requests.
1568	ForceSendFields []string `json:"-"`
1569
1570	// NullFields is a list of field names (e.g. "CommonMetadata") to
1571	// include in API requests with the JSON null value. By default, fields
1572	// with empty values are omitted from API requests. However, any field
1573	// with an empty value appearing in NullFields will be sent to the
1574	// server as null. It is an error if a field in this list has a
1575	// non-empty value. This may be used to include null fields in Patch
1576	// requests.
1577	NullFields []string `json:"-"`
1578}
1579
1580func (s *GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1581	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
1582	raw := NoMethod(*s)
1583	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1584}
1585
1586// GoogleCloudDocumentaiV1ReviewDocumentResponse: Response message for
1587// review document method.
1588type GoogleCloudDocumentaiV1ReviewDocumentResponse struct {
1589	// GcsDestination: The Cloud Storage uri for the human reviewed
1590	// document.
1591	GcsDestination string `json:"gcsDestination,omitempty"`
1592
1593	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
1594	// unconditionally include in API requests. By default, fields with
1595	// empty or default values are omitted from API requests. However, any
1596	// non-pointer, non-interface field appearing in ForceSendFields will be
1597	// sent to the server regardless of whether the field is empty or not.
1598	// This may be used to include empty fields in Patch requests.
1599	ForceSendFields []string `json:"-"`
1600
1601	// NullFields is a list of field names (e.g. "GcsDestination") to
1602	// include in API requests with the JSON null value. By default, fields
1603	// with empty values are omitted from API requests. However, any field
1604	// with an empty value appearing in NullFields will be sent to the
1605	// server as null. It is an error if a field in this list has a
1606	// non-empty value. This may be used to include null fields in Patch
1607	// requests.
1608	NullFields []string `json:"-"`
1609}
1610
1611func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
1612	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentResponse
1613	raw := NoMethod(*s)
1614	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1615}
1616
1617// GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata: The long
1618// running operation metadata for set default processor version method.
1619type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct {
1620	// CommonMetadata: The basic metadata of the long running operation.
1621	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1622
1623	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1624	// unconditionally include in API requests. By default, fields with
1625	// empty or default values are omitted from API requests. However, any
1626	// non-pointer, non-interface field appearing in ForceSendFields will be
1627	// sent to the server regardless of whether the field is empty or not.
1628	// This may be used to include empty fields in Patch requests.
1629	ForceSendFields []string `json:"-"`
1630
1631	// NullFields is a list of field names (e.g. "CommonMetadata") to
1632	// include in API requests with the JSON null value. By default, fields
1633	// with empty values are omitted from API requests. However, any field
1634	// with an empty value appearing in NullFields will be sent to the
1635	// server as null. It is an error if a field in this list has a
1636	// non-empty value. This may be used to include null fields in Patch
1637	// requests.
1638	NullFields []string `json:"-"`
1639}
1640
1641func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1642	type NoMethod GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
1643	raw := NoMethod(*s)
1644	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1645}
1646
1647// GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse: Response
1648// message for set default processor version method.
1649type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct {
1650}
1651
1652// GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long
1653// running operation metadata for the undeploy processor version method.
1654type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct {
1655	// CommonMetadata: The basic metadata of the long running operation.
1656	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
1657
1658	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
1659	// unconditionally include in API requests. By default, fields with
1660	// empty or default values are omitted from API requests. However, any
1661	// non-pointer, non-interface field appearing in ForceSendFields will be
1662	// sent to the server regardless of whether the field is empty or not.
1663	// This may be used to include empty fields in Patch requests.
1664	ForceSendFields []string `json:"-"`
1665
1666	// NullFields is a list of field names (e.g. "CommonMetadata") to
1667	// include in API requests with the JSON null value. By default, fields
1668	// with empty values are omitted from API requests. However, any field
1669	// with an empty value appearing in NullFields will be sent to the
1670	// server as null. It is an error if a field in this list has a
1671	// non-empty value. This may be used to include null fields in Patch
1672	// requests.
1673	NullFields []string `json:"-"`
1674}
1675
1676func (s *GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
1677	type NoMethod GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
1678	raw := NoMethod(*s)
1679	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1680}
1681
1682// GoogleCloudDocumentaiV1UndeployProcessorVersionResponse: Response
1683// message for the undeploy processor version method.
1684type GoogleCloudDocumentaiV1UndeployProcessorVersionResponse struct {
1685}
1686
1687// GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response
1688// to an batch document processing request. This is returned in the LRO
1689// Operation after the operation is complete.
1690type GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse struct {
1691	// Responses: Responses for each individual document.
1692	Responses []*GoogleCloudDocumentaiV1beta1ProcessDocumentResponse `json:"responses,omitempty"`
1693
1694	// ForceSendFields is a list of field names (e.g. "Responses") to
1695	// unconditionally include in API requests. By default, fields with
1696	// empty or default values are omitted from API requests. However, any
1697	// non-pointer, non-interface field appearing in ForceSendFields will be
1698	// sent to the server regardless of whether the field is empty or not.
1699	// This may be used to include empty fields in Patch requests.
1700	ForceSendFields []string `json:"-"`
1701
1702	// NullFields is a list of field names (e.g. "Responses") to include in
1703	// API requests with the JSON null value. By default, fields with empty
1704	// values are omitted from API requests. However, any field with an
1705	// empty value appearing in NullFields will be sent to the server as
1706	// null. It is an error if a field in this list has a non-empty value.
1707	// This may be used to include null fields in Patch requests.
1708	NullFields []string `json:"-"`
1709}
1710
1711func (s *GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
1712	type NoMethod GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
1713	raw := NoMethod(*s)
1714	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1715}
1716
1717// GoogleCloudDocumentaiV1beta1BoundingPoly: A bounding polygon for the
1718// detected image annotation.
1719type GoogleCloudDocumentaiV1beta1BoundingPoly struct {
1720	// NormalizedVertices: The bounding polygon normalized vertices.
1721	NormalizedVertices []*GoogleCloudDocumentaiV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
1722
1723	// Vertices: The bounding polygon vertices.
1724	Vertices []*GoogleCloudDocumentaiV1beta1Vertex `json:"vertices,omitempty"`
1725
1726	// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
1727	// to unconditionally include in API requests. By default, fields with
1728	// empty or default values are omitted from API requests. However, any
1729	// non-pointer, non-interface field appearing in ForceSendFields will be
1730	// sent to the server regardless of whether the field is empty or not.
1731	// This may be used to include empty fields in Patch requests.
1732	ForceSendFields []string `json:"-"`
1733
1734	// NullFields is a list of field names (e.g. "NormalizedVertices") to
1735	// include in API requests with the JSON null value. By default, fields
1736	// with empty values are omitted from API requests. However, any field
1737	// with an empty value appearing in NullFields will be sent to the
1738	// server as null. It is an error if a field in this list has a
1739	// non-empty value. This may be used to include null fields in Patch
1740	// requests.
1741	NullFields []string `json:"-"`
1742}
1743
1744func (s *GoogleCloudDocumentaiV1beta1BoundingPoly) MarshalJSON() ([]byte, error) {
1745	type NoMethod GoogleCloudDocumentaiV1beta1BoundingPoly
1746	raw := NoMethod(*s)
1747	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1748}
1749
1750// GoogleCloudDocumentaiV1beta1Document: Document represents the
1751// canonical document resource in Document Understanding AI. It is an
1752// interchange format that provides insights into documents and allows
1753// for collaboration between users and Document Understanding AI to
1754// iterate and optimize for quality.
1755type GoogleCloudDocumentaiV1beta1Document struct {
1756	// Content: Optional. Inline document content, represented as a stream
1757	// of bytes. Note: As with all `bytes` fields, protobuffers use a pure
1758	// binary representation, whereas JSON representations use base64.
1759	Content string `json:"content,omitempty"`
1760
1761	// Entities: A list of entities detected on Document.text. For document
1762	// shards, entities in this list may cross shard boundaries.
1763	Entities []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"entities,omitempty"`
1764
1765	// EntityRelations: Relationship among Document.entities.
1766	EntityRelations []*GoogleCloudDocumentaiV1beta1DocumentEntityRelation `json:"entityRelations,omitempty"`
1767
1768	// Error: Any error that occurred while processing this document.
1769	Error *GoogleRpcStatus `json:"error,omitempty"`
1770
1771	// MimeType: An IANA published MIME type (also referred to as media
1772	// type). For more information, see
1773	// https://www.iana.org/assignments/media-types/media-types.xhtml.
1774	MimeType string `json:"mimeType,omitempty"`
1775
1776	// Pages: Visual page layout for the Document.
1777	Pages []*GoogleCloudDocumentaiV1beta1DocumentPage `json:"pages,omitempty"`
1778
1779	// Revisions: Revision history of this document.
1780	Revisions []*GoogleCloudDocumentaiV1beta1DocumentRevision `json:"revisions,omitempty"`
1781
1782	// ShardInfo: Information about the sharding if this document is sharded
1783	// part of a larger document. If the document is not sharded, this
1784	// message is not specified.
1785	ShardInfo *GoogleCloudDocumentaiV1beta1DocumentShardInfo `json:"shardInfo,omitempty"`
1786
1787	// Text: Optional. UTF-8 encoded text in reading order from the
1788	// document.
1789	Text string `json:"text,omitempty"`
1790
1791	// TextChanges: A list of text corrections made to [Document.text]. This
1792	// is usually used for annotating corrections to OCR mistakes. Text
1793	// changes for a given revision may not overlap with each other.
1794	TextChanges []*GoogleCloudDocumentaiV1beta1DocumentTextChange `json:"textChanges,omitempty"`
1795
1796	// TextStyles: Styles for the Document.text.
1797	TextStyles []*GoogleCloudDocumentaiV1beta1DocumentStyle `json:"textStyles,omitempty"`
1798
1799	// Uri: Optional. Currently supports Google Cloud Storage URI of the
1800	// form `gs://bucket_name/object_name`. Object versioning is not
1801	// supported. See Google Cloud Storage Request URIs
1802	// (https://cloud.google.com/storage/docs/reference-uris) for more info.
1803	Uri string `json:"uri,omitempty"`
1804
1805	// ForceSendFields is a list of field names (e.g. "Content") to
1806	// unconditionally include in API requests. By default, fields with
1807	// empty or default values are omitted from API requests. However, any
1808	// non-pointer, non-interface field appearing in ForceSendFields will be
1809	// sent to the server regardless of whether the field is empty or not.
1810	// This may be used to include empty fields in Patch requests.
1811	ForceSendFields []string `json:"-"`
1812
1813	// NullFields is a list of field names (e.g. "Content") to include in
1814	// API requests with the JSON null value. By default, fields with empty
1815	// values are omitted from API requests. However, any field with an
1816	// empty value appearing in NullFields will be sent to the server as
1817	// null. It is an error if a field in this list has a non-empty value.
1818	// This may be used to include null fields in Patch requests.
1819	NullFields []string `json:"-"`
1820}
1821
1822func (s *GoogleCloudDocumentaiV1beta1Document) MarshalJSON() ([]byte, error) {
1823	type NoMethod GoogleCloudDocumentaiV1beta1Document
1824	raw := NoMethod(*s)
1825	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1826}
1827
1828// GoogleCloudDocumentaiV1beta1DocumentEntity: An entity that could be a
1829// phrase in the text or a property belongs to the document. It is a
1830// known entity type, such as a person, an organization, or location.
1831type GoogleCloudDocumentaiV1beta1DocumentEntity struct {
1832	// Confidence: Optional. Confidence of detected Schema entity. Range [0,
1833	// 1].
1834	Confidence float64 `json:"confidence,omitempty"`
1835
1836	// Id: Optional. Canonical id. This will be a unique value in the entity
1837	// list for this document.
1838	Id string `json:"id,omitempty"`
1839
1840	// MentionId: Optional. Deprecated. Use `id` field instead.
1841	MentionId string `json:"mentionId,omitempty"`
1842
1843	// MentionText: Optional. Text value in the document e.g. `1600
1844	// Amphitheatre Pkwy`. If the entity is not present in the document,
1845	// this field will be empty.
1846	MentionText string `json:"mentionText,omitempty"`
1847
1848	// NormalizedValue: Optional. Normalized entity value. Absent if the
1849	// extracted value could not be converted or the type (e.g. address) is
1850	// not supported for certain parsers. This field is also only populated
1851	// for certain supported document types.
1852	NormalizedValue *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
1853
1854	// PageAnchor: Optional. Represents the provenance of this entity wrt.
1855	// the location on the page where it was found.
1856	PageAnchor *GoogleCloudDocumentaiV1beta1DocumentPageAnchor `json:"pageAnchor,omitempty"`
1857
1858	// Properties: Optional. Entities can be nested to form a hierarchical
1859	// data structure representing the content in the document.
1860	Properties []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"properties,omitempty"`
1861
1862	// Provenance: Optional. The history of this annotation.
1863	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
1864
1865	// Redacted: Optional. Whether the entity will be redacted for
1866	// de-identification purposes.
1867	Redacted bool `json:"redacted,omitempty"`
1868
1869	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing
1870	// into the Document.text.
1871	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
1872
1873	// Type: Entity type from a schema e.g. `Address`.
1874	Type string `json:"type,omitempty"`
1875
1876	// ForceSendFields is a list of field names (e.g. "Confidence") to
1877	// unconditionally include in API requests. By default, fields with
1878	// empty or default values are omitted from API requests. However, any
1879	// non-pointer, non-interface field appearing in ForceSendFields will be
1880	// sent to the server regardless of whether the field is empty or not.
1881	// This may be used to include empty fields in Patch requests.
1882	ForceSendFields []string `json:"-"`
1883
1884	// NullFields is a list of field names (e.g. "Confidence") to include in
1885	// API requests with the JSON null value. By default, fields with empty
1886	// values are omitted from API requests. However, any field with an
1887	// empty value appearing in NullFields will be sent to the server as
1888	// null. It is an error if a field in this list has a non-empty value.
1889	// This may be used to include null fields in Patch requests.
1890	NullFields []string `json:"-"`
1891}
1892
1893func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) MarshalJSON() ([]byte, error) {
1894	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
1895	raw := NoMethod(*s)
1896	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1897}
1898
1899func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) UnmarshalJSON(data []byte) error {
1900	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
1901	var s1 struct {
1902		Confidence gensupport.JSONFloat64 `json:"confidence"`
1903		*NoMethod
1904	}
1905	s1.NoMethod = (*NoMethod)(s)
1906	if err := json.Unmarshal(data, &s1); err != nil {
1907		return err
1908	}
1909	s.Confidence = float64(s1.Confidence)
1910	return nil
1911}
1912
1913// GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue: Parsed and
1914// normalized entity value.
1915type GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue struct {
1916	// AddressValue: Postal address. See also:
1917	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
1918	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
1919
1920	// BooleanValue: Boolean value. Can be used for entities with binary
1921	// values, or for checkboxes.
1922	BooleanValue bool `json:"booleanValue,omitempty"`
1923
1924	// DateValue: Date value. Includes year, month, day. See also:
1925	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
1926	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
1927
1928	// DatetimeValue: DateTime value. Includes date, time, and timezone. See
1929	// also:
1930	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
1931	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
1932
1933	// FloatValue: Float value.
1934	FloatValue float64 `json:"floatValue,omitempty"`
1935
1936	// IntegerValue: Integer value.
1937	IntegerValue int64 `json:"integerValue,omitempty"`
1938
1939	// MoneyValue: Money value. See also:
1940	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
1941	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
1942
1943	// Text: Optional. An optional field to store a normalized string. For
1944	// some entity types, one of respective 'structured_value' fields may
1945	// also be populated. Also not all the types of 'structured_value' will
1946	// be normalized. For example, some processors may not generate float or
1947	// int normalized text by default. Below are sample formats mapped to
1948	// structured values. - Money/Currency type (`money_value`) is in the
1949	// ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601
1950	// text format. - Datetime type (`datetime_value`) is in the ISO 8601
1951	// text format.
1952	Text string `json:"text,omitempty"`
1953
1954	// ForceSendFields is a list of field names (e.g. "AddressValue") to
1955	// unconditionally include in API requests. By default, fields with
1956	// empty or default values are omitted from API requests. However, any
1957	// non-pointer, non-interface field appearing in ForceSendFields will be
1958	// sent to the server regardless of whether the field is empty or not.
1959	// This may be used to include empty fields in Patch requests.
1960	ForceSendFields []string `json:"-"`
1961
1962	// NullFields is a list of field names (e.g. "AddressValue") to include
1963	// in API requests with the JSON null value. By default, fields with
1964	// empty values are omitted from API requests. However, any field with
1965	// an empty value appearing in NullFields will be sent to the server as
1966	// null. It is an error if a field in this list has a non-empty value.
1967	// This may be used to include null fields in Patch requests.
1968	NullFields []string `json:"-"`
1969}
1970
1971func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
1972	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
1973	raw := NoMethod(*s)
1974	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1975}
1976
1977func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
1978	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
1979	var s1 struct {
1980		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
1981		*NoMethod
1982	}
1983	s1.NoMethod = (*NoMethod)(s)
1984	if err := json.Unmarshal(data, &s1); err != nil {
1985		return err
1986	}
1987	s.FloatValue = float64(s1.FloatValue)
1988	return nil
1989}
1990
1991// GoogleCloudDocumentaiV1beta1DocumentEntityRelation: Relationship
1992// between Entities.
1993type GoogleCloudDocumentaiV1beta1DocumentEntityRelation struct {
1994	// ObjectId: Object entity id.
1995	ObjectId string `json:"objectId,omitempty"`
1996
1997	// Relation: Relationship description.
1998	Relation string `json:"relation,omitempty"`
1999
2000	// SubjectId: Subject entity id.
2001	SubjectId string `json:"subjectId,omitempty"`
2002
2003	// ForceSendFields is a list of field names (e.g. "ObjectId") to
2004	// unconditionally include in API requests. By default, fields with
2005	// empty or default values are omitted from API requests. However, any
2006	// non-pointer, non-interface field appearing in ForceSendFields will be
2007	// sent to the server regardless of whether the field is empty or not.
2008	// This may be used to include empty fields in Patch requests.
2009	ForceSendFields []string `json:"-"`
2010
2011	// NullFields is a list of field names (e.g. "ObjectId") to include in
2012	// API requests with the JSON null value. By default, fields with empty
2013	// values are omitted from API requests. However, any field with an
2014	// empty value appearing in NullFields will be sent to the server as
2015	// null. It is an error if a field in this list has a non-empty value.
2016	// This may be used to include null fields in Patch requests.
2017	NullFields []string `json:"-"`
2018}
2019
2020func (s *GoogleCloudDocumentaiV1beta1DocumentEntityRelation) MarshalJSON() ([]byte, error) {
2021	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityRelation
2022	raw := NoMethod(*s)
2023	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2024}
2025
2026// GoogleCloudDocumentaiV1beta1DocumentPage: A page in a Document.
2027type GoogleCloudDocumentaiV1beta1DocumentPage struct {
2028	// Blocks: A list of visually detected text blocks on the page. A block
2029	// has a set of lines (collected into paragraphs) that have a common
2030	// line-spacing and orientation.
2031	Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"`
2032
2033	// DetectedLanguages: A list of detected languages together with
2034	// confidence.
2035	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2036
2037	// Dimension: Physical dimension of the page.
2038	Dimension *GoogleCloudDocumentaiV1beta1DocumentPageDimension `json:"dimension,omitempty"`
2039
2040	// FormFields: A list of visually detected form fields on the page.
2041	FormFields []*GoogleCloudDocumentaiV1beta1DocumentPageFormField `json:"formFields,omitempty"`
2042
2043	// Image: Rendered image for this page. This image is preprocessed to
2044	// remove any skew, rotation, and distortions such that the annotation
2045	// bounding boxes can be upright and axis-aligned.
2046	Image *GoogleCloudDocumentaiV1beta1DocumentPageImage `json:"image,omitempty"`
2047
2048	// Layout: Layout for the page.
2049	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2050
2051	// Lines: A list of visually detected text lines on the page. A
2052	// collection of tokens that a human would perceive as a line.
2053	Lines []*GoogleCloudDocumentaiV1beta1DocumentPageLine `json:"lines,omitempty"`
2054
2055	// PageNumber: 1-based index for current Page in a parent Document.
2056	// Useful when a page is taken out of a Document for individual
2057	// processing.
2058	PageNumber int64 `json:"pageNumber,omitempty"`
2059
2060	// Paragraphs: A list of visually detected text paragraphs on the page.
2061	// A collection of lines that a human would perceive as a paragraph.
2062	Paragraphs []*GoogleCloudDocumentaiV1beta1DocumentPageParagraph `json:"paragraphs,omitempty"`
2063
2064	// Provenance: The history of this page.
2065	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2066
2067	// Tables: A list of visually detected tables on the page.
2068	Tables []*GoogleCloudDocumentaiV1beta1DocumentPageTable `json:"tables,omitempty"`
2069
2070	// Tokens: A list of visually detected tokens on the page.
2071	Tokens []*GoogleCloudDocumentaiV1beta1DocumentPageToken `json:"tokens,omitempty"`
2072
2073	// Transforms: Transformation matrices that were applied to the original
2074	// document image to produce Page.image.
2075	Transforms []*GoogleCloudDocumentaiV1beta1DocumentPageMatrix `json:"transforms,omitempty"`
2076
2077	// VisualElements: A list of detected non-text visual elements e.g.
2078	// checkbox, signature etc. on the page.
2079	VisualElements []*GoogleCloudDocumentaiV1beta1DocumentPageVisualElement `json:"visualElements,omitempty"`
2080
2081	// ForceSendFields is a list of field names (e.g. "Blocks") to
2082	// unconditionally include in API requests. By default, fields with
2083	// empty or default values are omitted from API requests. However, any
2084	// non-pointer, non-interface field appearing in ForceSendFields will be
2085	// sent to the server regardless of whether the field is empty or not.
2086	// This may be used to include empty fields in Patch requests.
2087	ForceSendFields []string `json:"-"`
2088
2089	// NullFields is a list of field names (e.g. "Blocks") to include in API
2090	// requests with the JSON null value. By default, fields with empty
2091	// values are omitted from API requests. However, any field with an
2092	// empty value appearing in NullFields will be sent to the server as
2093	// null. It is an error if a field in this list has a non-empty value.
2094	// This may be used to include null fields in Patch requests.
2095	NullFields []string `json:"-"`
2096}
2097
2098func (s *GoogleCloudDocumentaiV1beta1DocumentPage) MarshalJSON() ([]byte, error) {
2099	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPage
2100	raw := NoMethod(*s)
2101	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2102}
2103
2104// GoogleCloudDocumentaiV1beta1DocumentPageAnchor: Referencing the
2105// visual context of the entity in the Document.pages. Page anchors can
2106// be cross-page, consist of multiple bounding polygons and optionally
2107// reference specific layout element types.
2108type GoogleCloudDocumentaiV1beta1DocumentPageAnchor struct {
2109	// PageRefs: One or more references to visual page elements
2110	PageRefs []*GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
2111
2112	// ForceSendFields is a list of field names (e.g. "PageRefs") to
2113	// unconditionally include in API requests. By default, fields with
2114	// empty or default values are omitted from API requests. However, any
2115	// non-pointer, non-interface field appearing in ForceSendFields will be
2116	// sent to the server regardless of whether the field is empty or not.
2117	// This may be used to include empty fields in Patch requests.
2118	ForceSendFields []string `json:"-"`
2119
2120	// NullFields is a list of field names (e.g. "PageRefs") to include in
2121	// API requests with the JSON null value. By default, fields with empty
2122	// values are omitted from API requests. However, any field with an
2123	// empty value appearing in NullFields will be sent to the server as
2124	// null. It is an error if a field in this list has a non-empty value.
2125	// This may be used to include null fields in Patch requests.
2126	NullFields []string `json:"-"`
2127}
2128
2129func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, error) {
2130	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchor
2131	raw := NoMethod(*s)
2132	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2133}
2134
2135// GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef: Represents a
2136// weak reference to a page element within a document.
2137type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct {
2138	// BoundingPoly: Optional. Identifies the bounding polygon of a layout
2139	// element on the page.
2140	BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
2141
2142	// Confidence: Optional. Confidence of detected page element, if
2143	// applicable. Range [0, 1].
2144	Confidence float64 `json:"confidence,omitempty"`
2145
2146	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
2147	LayoutId string `json:"layoutId,omitempty"`
2148
2149	// LayoutType: Optional. The type of the layout element that is being
2150	// referenced if any.
2151	//
2152	// Possible values:
2153	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
2154	//   "BLOCK" - References a Page.blocks element.
2155	//   "PARAGRAPH" - References a Page.paragraphs element.
2156	//   "LINE" - References a Page.lines element.
2157	//   "TOKEN" - References a Page.tokens element.
2158	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
2159	//   "TABLE" - Refrrences a Page.tables element.
2160	//   "FORM_FIELD" - References a Page.form_fields element.
2161	LayoutType string `json:"layoutType,omitempty"`
2162
2163	// Page: Required. Index into the Document.pages element, for example
2164	// using Document.pages to locate the related page element. This field
2165	// is skipped when its value is the default 0. See
2166	// https://developers.google.com/protocol-buffers/docs/proto3#json.
2167	Page int64 `json:"page,omitempty,string"`
2168
2169	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
2170	// unconditionally include in API requests. By default, fields with
2171	// empty or default values are omitted from API requests. However, any
2172	// non-pointer, non-interface field appearing in ForceSendFields will be
2173	// sent to the server regardless of whether the field is empty or not.
2174	// This may be used to include empty fields in Patch requests.
2175	ForceSendFields []string `json:"-"`
2176
2177	// NullFields is a list of field names (e.g. "BoundingPoly") to include
2178	// in API requests with the JSON null value. By default, fields with
2179	// empty values are omitted from API requests. However, any field with
2180	// an empty value appearing in NullFields will be sent to the server as
2181	// null. It is an error if a field in this list has a non-empty value.
2182	// This may be used to include null fields in Patch requests.
2183	NullFields []string `json:"-"`
2184}
2185
2186func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
2187	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
2188	raw := NoMethod(*s)
2189	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2190}
2191
2192func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
2193	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
2194	var s1 struct {
2195		Confidence gensupport.JSONFloat64 `json:"confidence"`
2196		*NoMethod
2197	}
2198	s1.NoMethod = (*NoMethod)(s)
2199	if err := json.Unmarshal(data, &s1); err != nil {
2200		return err
2201	}
2202	s.Confidence = float64(s1.Confidence)
2203	return nil
2204}
2205
2206// GoogleCloudDocumentaiV1beta1DocumentPageBlock: A block has a set of
2207// lines (collected into paragraphs) that have a common line-spacing and
2208// orientation.
2209type GoogleCloudDocumentaiV1beta1DocumentPageBlock struct {
2210	// DetectedLanguages: A list of detected languages together with
2211	// confidence.
2212	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2213
2214	// Layout: Layout for Block.
2215	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2216
2217	// Provenance: The history of this annotation.
2218	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2219
2220	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2221	// to unconditionally include in API requests. By default, fields with
2222	// empty or default values are omitted from API requests. However, any
2223	// non-pointer, non-interface field appearing in ForceSendFields will be
2224	// sent to the server regardless of whether the field is empty or not.
2225	// This may be used to include empty fields in Patch requests.
2226	ForceSendFields []string `json:"-"`
2227
2228	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2229	// include in API requests with the JSON null value. By default, fields
2230	// with empty values are omitted from API requests. However, any field
2231	// with an empty value appearing in NullFields will be sent to the
2232	// server as null. It is an error if a field in this list has a
2233	// non-empty value. This may be used to include null fields in Patch
2234	// requests.
2235	NullFields []string `json:"-"`
2236}
2237
2238func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, error) {
2239	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageBlock
2240	raw := NoMethod(*s)
2241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2242}
2243
2244// GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected
2245// language for a structural component.
2246type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct {
2247	// Confidence: Confidence of detected language. Range [0, 1].
2248	Confidence float64 `json:"confidence,omitempty"`
2249
2250	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn".
2251	// For more information, see
2252	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2253	LanguageCode string `json:"languageCode,omitempty"`
2254
2255	// ForceSendFields is a list of field names (e.g. "Confidence") to
2256	// unconditionally include in API requests. By default, fields with
2257	// empty or default values are omitted from API requests. However, any
2258	// non-pointer, non-interface field appearing in ForceSendFields will be
2259	// sent to the server regardless of whether the field is empty or not.
2260	// This may be used to include empty fields in Patch requests.
2261	ForceSendFields []string `json:"-"`
2262
2263	// NullFields is a list of field names (e.g. "Confidence") to include in
2264	// API requests with the JSON null value. By default, fields with empty
2265	// values are omitted from API requests. However, any field with an
2266	// empty value appearing in NullFields will be sent to the server as
2267	// null. It is an error if a field in this list has a non-empty value.
2268	// This may be used to include null fields in Patch requests.
2269	NullFields []string `json:"-"`
2270}
2271
2272func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
2273	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2274	raw := NoMethod(*s)
2275	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2276}
2277
2278func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
2279	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2280	var s1 struct {
2281		Confidence gensupport.JSONFloat64 `json:"confidence"`
2282		*NoMethod
2283	}
2284	s1.NoMethod = (*NoMethod)(s)
2285	if err := json.Unmarshal(data, &s1); err != nil {
2286		return err
2287	}
2288	s.Confidence = float64(s1.Confidence)
2289	return nil
2290}
2291
2292// GoogleCloudDocumentaiV1beta1DocumentPageDimension: Dimension for the
2293// page.
2294type GoogleCloudDocumentaiV1beta1DocumentPageDimension struct {
2295	// Height: Page height.
2296	Height float64 `json:"height,omitempty"`
2297
2298	// Unit: Dimension unit.
2299	Unit string `json:"unit,omitempty"`
2300
2301	// Width: Page width.
2302	Width float64 `json:"width,omitempty"`
2303
2304	// ForceSendFields is a list of field names (e.g. "Height") to
2305	// unconditionally include in API requests. By default, fields with
2306	// empty or default values are omitted from API requests. However, any
2307	// non-pointer, non-interface field appearing in ForceSendFields will be
2308	// sent to the server regardless of whether the field is empty or not.
2309	// This may be used to include empty fields in Patch requests.
2310	ForceSendFields []string `json:"-"`
2311
2312	// NullFields is a list of field names (e.g. "Height") to include in API
2313	// requests with the JSON null value. By default, fields with empty
2314	// values are omitted from API requests. However, any field with an
2315	// empty value appearing in NullFields will be sent to the server as
2316	// null. It is an error if a field in this list has a non-empty value.
2317	// This may be used to include null fields in Patch requests.
2318	NullFields []string `json:"-"`
2319}
2320
2321func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) MarshalJSON() ([]byte, error) {
2322	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
2323	raw := NoMethod(*s)
2324	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2325}
2326
2327func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) UnmarshalJSON(data []byte) error {
2328	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
2329	var s1 struct {
2330		Height gensupport.JSONFloat64 `json:"height"`
2331		Width  gensupport.JSONFloat64 `json:"width"`
2332		*NoMethod
2333	}
2334	s1.NoMethod = (*NoMethod)(s)
2335	if err := json.Unmarshal(data, &s1); err != nil {
2336		return err
2337	}
2338	s.Height = float64(s1.Height)
2339	s.Width = float64(s1.Width)
2340	return nil
2341}
2342
2343// GoogleCloudDocumentaiV1beta1DocumentPageFormField: A form field
2344// detected on the page.
2345type GoogleCloudDocumentaiV1beta1DocumentPageFormField struct {
2346	// CorrectedKeyText: Created for Labeling UI to export key text. If
2347	// corrections were made to the text identified by the
2348	// `field_name.text_anchor`, this field will contain the correction.
2349	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
2350
2351	// CorrectedValueText: Created for Labeling UI to export value text. If
2352	// corrections were made to the text identified by the
2353	// `field_value.text_anchor`, this field will contain the correction.
2354	CorrectedValueText string `json:"correctedValueText,omitempty"`
2355
2356	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`,
2357	// `Grand total`, `Phone number`, etc.
2358	FieldName *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldName,omitempty"`
2359
2360	// FieldValue: Layout for the FormField value.
2361	FieldValue *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldValue,omitempty"`
2362
2363	// NameDetectedLanguages: A list of detected languages for name together
2364	// with confidence.
2365	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
2366
2367	// Provenance: The history of this annotation.
2368	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2369
2370	// ValueDetectedLanguages: A list of detected languages for value
2371	// together with confidence.
2372	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
2373
2374	// ValueType: If the value is non-textual, this field represents the
2375	// type. Current valid values are: - blank (this indicates the
2376	// field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
2377	ValueType string `json:"valueType,omitempty"`
2378
2379	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
2380	// unconditionally include in API requests. By default, fields with
2381	// empty or default values are omitted from API requests. However, any
2382	// non-pointer, non-interface field appearing in ForceSendFields will be
2383	// sent to the server regardless of whether the field is empty or not.
2384	// This may be used to include empty fields in Patch requests.
2385	ForceSendFields []string `json:"-"`
2386
2387	// NullFields is a list of field names (e.g. "CorrectedKeyText") to
2388	// include in API requests with the JSON null value. By default, fields
2389	// with empty values are omitted from API requests. However, any field
2390	// with an empty value appearing in NullFields will be sent to the
2391	// server as null. It is an error if a field in this list has a
2392	// non-empty value. This may be used to include null fields in Patch
2393	// requests.
2394	NullFields []string `json:"-"`
2395}
2396
2397func (s *GoogleCloudDocumentaiV1beta1DocumentPageFormField) MarshalJSON() ([]byte, error) {
2398	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageFormField
2399	raw := NoMethod(*s)
2400	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2401}
2402
2403// GoogleCloudDocumentaiV1beta1DocumentPageImage: Rendered image
2404// contents for this page.
2405type GoogleCloudDocumentaiV1beta1DocumentPageImage struct {
2406	// Content: Raw byte content of the image.
2407	Content string `json:"content,omitempty"`
2408
2409	// Height: Height of the image in pixels.
2410	Height int64 `json:"height,omitempty"`
2411
2412	// MimeType: Encoding mime type for the image.
2413	MimeType string `json:"mimeType,omitempty"`
2414
2415	// Width: Width of the image in pixels.
2416	Width int64 `json:"width,omitempty"`
2417
2418	// ForceSendFields is a list of field names (e.g. "Content") to
2419	// unconditionally include in API requests. By default, fields with
2420	// empty or default values are omitted from API requests. However, any
2421	// non-pointer, non-interface field appearing in ForceSendFields will be
2422	// sent to the server regardless of whether the field is empty or not.
2423	// This may be used to include empty fields in Patch requests.
2424	ForceSendFields []string `json:"-"`
2425
2426	// NullFields is a list of field names (e.g. "Content") to include in
2427	// API requests with the JSON null value. By default, fields with empty
2428	// values are omitted from API requests. However, any field with an
2429	// empty value appearing in NullFields will be sent to the server as
2430	// null. It is an error if a field in this list has a non-empty value.
2431	// This may be used to include null fields in Patch requests.
2432	NullFields []string `json:"-"`
2433}
2434
2435func (s *GoogleCloudDocumentaiV1beta1DocumentPageImage) MarshalJSON() ([]byte, error) {
2436	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImage
2437	raw := NoMethod(*s)
2438	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2439}
2440
2441// GoogleCloudDocumentaiV1beta1DocumentPageLayout: Visual element
2442// describing a layout unit on a page.
2443type GoogleCloudDocumentaiV1beta1DocumentPageLayout struct {
2444	// BoundingPoly: The bounding polygon for the Layout.
2445	BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
2446
2447	// Confidence: Confidence of the current Layout within context of the
2448	// object this layout is for. e.g. confidence can be for a single token,
2449	// a table, a visual element, etc. depending on context. Range [0, 1].
2450	Confidence float64 `json:"confidence,omitempty"`
2451
2452	// Orientation: Detected orientation for the Layout.
2453	//
2454	// Possible values:
2455	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
2456	//   "PAGE_UP" - Orientation is aligned with page up.
2457	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the
2458	// head 90 degrees clockwise from upright to read.
2459	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head
2460	// 180 degrees from upright to read.
2461	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head
2462	// 90 degrees counterclockwise from upright to read.
2463	Orientation string `json:"orientation,omitempty"`
2464
2465	// TextAnchor: Text anchor indexing into the Document.text.
2466	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
2467
2468	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
2469	// unconditionally include in API requests. By default, fields with
2470	// empty or default values are omitted from API requests. However, any
2471	// non-pointer, non-interface field appearing in ForceSendFields will be
2472	// sent to the server regardless of whether the field is empty or not.
2473	// This may be used to include empty fields in Patch requests.
2474	ForceSendFields []string `json:"-"`
2475
2476	// NullFields is a list of field names (e.g. "BoundingPoly") to include
2477	// in API requests with the JSON null value. By default, fields with
2478	// empty values are omitted from API requests. However, any field with
2479	// an empty value appearing in NullFields will be sent to the server as
2480	// null. It is an error if a field in this list has a non-empty value.
2481	// This may be used to include null fields in Patch requests.
2482	NullFields []string `json:"-"`
2483}
2484
2485func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) MarshalJSON() ([]byte, error) {
2486	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
2487	raw := NoMethod(*s)
2488	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2489}
2490
2491func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) UnmarshalJSON(data []byte) error {
2492	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
2493	var s1 struct {
2494		Confidence gensupport.JSONFloat64 `json:"confidence"`
2495		*NoMethod
2496	}
2497	s1.NoMethod = (*NoMethod)(s)
2498	if err := json.Unmarshal(data, &s1); err != nil {
2499		return err
2500	}
2501	s.Confidence = float64(s1.Confidence)
2502	return nil
2503}
2504
2505// GoogleCloudDocumentaiV1beta1DocumentPageLine: A collection of tokens
2506// that a human would perceive as a line. Does not cross column
2507// boundaries, can be horizontal, vertical, etc.
2508type GoogleCloudDocumentaiV1beta1DocumentPageLine struct {
2509	// DetectedLanguages: A list of detected languages together with
2510	// confidence.
2511	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2512
2513	// Layout: Layout for Line.
2514	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2515
2516	// Provenance: The history of this annotation.
2517	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2518
2519	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2520	// to unconditionally include in API requests. By default, fields with
2521	// empty or default values are omitted from API requests. However, any
2522	// non-pointer, non-interface field appearing in ForceSendFields will be
2523	// sent to the server regardless of whether the field is empty or not.
2524	// This may be used to include empty fields in Patch requests.
2525	ForceSendFields []string `json:"-"`
2526
2527	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2528	// include in API requests with the JSON null value. By default, fields
2529	// with empty values are omitted from API requests. However, any field
2530	// with an empty value appearing in NullFields will be sent to the
2531	// server as null. It is an error if a field in this list has a
2532	// non-empty value. This may be used to include null fields in Patch
2533	// requests.
2534	NullFields []string `json:"-"`
2535}
2536
2537func (s *GoogleCloudDocumentaiV1beta1DocumentPageLine) MarshalJSON() ([]byte, error) {
2538	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLine
2539	raw := NoMethod(*s)
2540	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2541}
2542
2543// GoogleCloudDocumentaiV1beta1DocumentPageMatrix: Representation for
2544// transformation matrix, intended to be compatible and used with OpenCV
2545// format for image manipulation.
2546type GoogleCloudDocumentaiV1beta1DocumentPageMatrix struct {
2547	// Cols: Number of columns in the matrix.
2548	Cols int64 `json:"cols,omitempty"`
2549
2550	// Data: The matrix data.
2551	Data string `json:"data,omitempty"`
2552
2553	// Rows: Number of rows in the matrix.
2554	Rows int64 `json:"rows,omitempty"`
2555
2556	// Type: This encodes information about what data type the matrix uses.
2557	// For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
2558	// of OpenCV primitive data types, please refer to
2559	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
2560	Type int64 `json:"type,omitempty"`
2561
2562	// ForceSendFields is a list of field names (e.g. "Cols") to
2563	// unconditionally include in API requests. By default, fields with
2564	// empty or default values are omitted from API requests. However, any
2565	// non-pointer, non-interface field appearing in ForceSendFields will be
2566	// sent to the server regardless of whether the field is empty or not.
2567	// This may be used to include empty fields in Patch requests.
2568	ForceSendFields []string `json:"-"`
2569
2570	// NullFields is a list of field names (e.g. "Cols") to include in API
2571	// requests with the JSON null value. By default, fields with empty
2572	// values are omitted from API requests. However, any field with an
2573	// empty value appearing in NullFields will be sent to the server as
2574	// null. It is an error if a field in this list has a non-empty value.
2575	// This may be used to include null fields in Patch requests.
2576	NullFields []string `json:"-"`
2577}
2578
2579func (s *GoogleCloudDocumentaiV1beta1DocumentPageMatrix) MarshalJSON() ([]byte, error) {
2580	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageMatrix
2581	raw := NoMethod(*s)
2582	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2583}
2584
2585// GoogleCloudDocumentaiV1beta1DocumentPageParagraph: A collection of
2586// lines that a human would perceive as a paragraph.
2587type GoogleCloudDocumentaiV1beta1DocumentPageParagraph struct {
2588	// DetectedLanguages: A list of detected languages together with
2589	// confidence.
2590	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2591
2592	// Layout: Layout for Paragraph.
2593	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2594
2595	// Provenance: The history of this annotation.
2596	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2597
2598	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2599	// to 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. "DetectedLanguages") to
2607	// include in API requests with the JSON null value. By default, fields
2608	// with empty values are omitted from API requests. However, any field
2609	// with an empty value appearing in NullFields will be sent to the
2610	// server as null. It is an error if a field in this list has a
2611	// non-empty value. This may be used to include null fields in Patch
2612	// requests.
2613	NullFields []string `json:"-"`
2614}
2615
2616func (s *GoogleCloudDocumentaiV1beta1DocumentPageParagraph) MarshalJSON() ([]byte, error) {
2617	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageParagraph
2618	raw := NoMethod(*s)
2619	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2620}
2621
2622// GoogleCloudDocumentaiV1beta1DocumentPageTable: A table representation
2623// similar to HTML table structure.
2624type GoogleCloudDocumentaiV1beta1DocumentPageTable struct {
2625	// BodyRows: Body rows of the table.
2626	BodyRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"bodyRows,omitempty"`
2627
2628	// DetectedLanguages: A list of detected languages together with
2629	// confidence.
2630	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2631
2632	// HeaderRows: Header rows of the table.
2633	HeaderRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"headerRows,omitempty"`
2634
2635	// Layout: Layout for Table.
2636	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2637
2638	// ForceSendFields is a list of field names (e.g. "BodyRows") to
2639	// unconditionally include in API requests. By default, fields with
2640	// empty or default values are omitted from API requests. However, any
2641	// non-pointer, non-interface field appearing in ForceSendFields will be
2642	// sent to the server regardless of whether the field is empty or not.
2643	// This may be used to include empty fields in Patch requests.
2644	ForceSendFields []string `json:"-"`
2645
2646	// NullFields is a list of field names (e.g. "BodyRows") to include in
2647	// API requests with the JSON null value. By default, fields with empty
2648	// values are omitted from API requests. However, any field with an
2649	// empty value appearing in NullFields will be sent to the server as
2650	// null. It is an error if a field in this list has a non-empty value.
2651	// This may be used to include null fields in Patch requests.
2652	NullFields []string `json:"-"`
2653}
2654
2655func (s *GoogleCloudDocumentaiV1beta1DocumentPageTable) MarshalJSON() ([]byte, error) {
2656	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTable
2657	raw := NoMethod(*s)
2658	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2659}
2660
2661// GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell: A cell
2662// representation inside the table.
2663type GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell struct {
2664	// ColSpan: How many columns this cell spans.
2665	ColSpan int64 `json:"colSpan,omitempty"`
2666
2667	// DetectedLanguages: A list of detected languages together with
2668	// confidence.
2669	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2670
2671	// Layout: Layout for TableCell.
2672	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2673
2674	// RowSpan: How many rows this cell spans.
2675	RowSpan int64 `json:"rowSpan,omitempty"`
2676
2677	// ForceSendFields is a list of field names (e.g. "ColSpan") to
2678	// unconditionally include in API requests. By default, fields with
2679	// empty or default values are omitted from API requests. However, any
2680	// non-pointer, non-interface field appearing in ForceSendFields will be
2681	// sent to the server regardless of whether the field is empty or not.
2682	// This may be used to include empty fields in Patch requests.
2683	ForceSendFields []string `json:"-"`
2684
2685	// NullFields is a list of field names (e.g. "ColSpan") to include in
2686	// API requests with the JSON null value. By default, fields with empty
2687	// values are omitted from API requests. However, any field with an
2688	// empty value appearing in NullFields will be sent to the server as
2689	// null. It is an error if a field in this list has a non-empty value.
2690	// This may be used to include null fields in Patch requests.
2691	NullFields []string `json:"-"`
2692}
2693
2694func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
2695	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
2696	raw := NoMethod(*s)
2697	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2698}
2699
2700// GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow: A row of table
2701// cells.
2702type GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow struct {
2703	// Cells: Cells that make up this row.
2704	Cells []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell `json:"cells,omitempty"`
2705
2706	// ForceSendFields is a list of field names (e.g. "Cells") to
2707	// unconditionally include in API requests. By default, fields with
2708	// empty or default values are omitted from API requests. However, any
2709	// non-pointer, non-interface field appearing in ForceSendFields will be
2710	// sent to the server regardless of whether the field is empty or not.
2711	// This may be used to include empty fields in Patch requests.
2712	ForceSendFields []string `json:"-"`
2713
2714	// NullFields is a list of field names (e.g. "Cells") to include in API
2715	// requests with the JSON null value. By default, fields with empty
2716	// values are omitted from API requests. However, any field with an
2717	// empty value appearing in NullFields will be sent to the server as
2718	// null. It is an error if a field in this list has a non-empty value.
2719	// This may be used to include null fields in Patch requests.
2720	NullFields []string `json:"-"`
2721}
2722
2723func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
2724	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
2725	raw := NoMethod(*s)
2726	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2727}
2728
2729// GoogleCloudDocumentaiV1beta1DocumentPageToken: A detected token.
2730type GoogleCloudDocumentaiV1beta1DocumentPageToken struct {
2731	// DetectedBreak: Detected break at the end of a Token.
2732	DetectedBreak *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
2733
2734	// DetectedLanguages: A list of detected languages together with
2735	// confidence.
2736	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2737
2738	// Layout: Layout for Token.
2739	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2740
2741	// Provenance: The history of this annotation.
2742	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
2743
2744	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
2745	// unconditionally include in API requests. By default, fields with
2746	// empty or default values are omitted from API requests. However, any
2747	// non-pointer, non-interface field appearing in ForceSendFields will be
2748	// sent to the server regardless of whether the field is empty or not.
2749	// This may be used to include empty fields in Patch requests.
2750	ForceSendFields []string `json:"-"`
2751
2752	// NullFields is a list of field names (e.g. "DetectedBreak") to include
2753	// in API requests with the JSON null value. By default, fields with
2754	// empty values are omitted from API requests. However, any field with
2755	// an empty value appearing in NullFields will be sent to the server as
2756	// null. It is an error if a field in this list has a non-empty value.
2757	// This may be used to include null fields in Patch requests.
2758	NullFields []string `json:"-"`
2759}
2760
2761func (s *GoogleCloudDocumentaiV1beta1DocumentPageToken) MarshalJSON() ([]byte, error) {
2762	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageToken
2763	raw := NoMethod(*s)
2764	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2765}
2766
2767// GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak: Detected
2768// break at the end of a Token.
2769type GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak struct {
2770	// Type: Detected break type.
2771	//
2772	// Possible values:
2773	//   "TYPE_UNSPECIFIED" - Unspecified break type.
2774	//   "SPACE" - A single whitespace.
2775	//   "WIDE_SPACE" - A wider whitespace.
2776	//   "HYPHEN" - A hyphen that indicates that a token has been split
2777	// across lines.
2778	Type string `json:"type,omitempty"`
2779
2780	// ForceSendFields is a list of field names (e.g. "Type") to
2781	// unconditionally include in API requests. By default, fields with
2782	// empty or default values are omitted from API requests. However, any
2783	// non-pointer, non-interface field appearing in ForceSendFields will be
2784	// sent to the server regardless of whether the field is empty or not.
2785	// This may be used to include empty fields in Patch requests.
2786	ForceSendFields []string `json:"-"`
2787
2788	// NullFields is a list of field names (e.g. "Type") to include in API
2789	// requests with the JSON null value. By default, fields with empty
2790	// values are omitted from API requests. However, any field with an
2791	// empty value appearing in NullFields will be sent to the server as
2792	// null. It is an error if a field in this list has a non-empty value.
2793	// This may be used to include null fields in Patch requests.
2794	NullFields []string `json:"-"`
2795}
2796
2797func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
2798	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
2799	raw := NoMethod(*s)
2800	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2801}
2802
2803// GoogleCloudDocumentaiV1beta1DocumentPageVisualElement: Detected
2804// non-text visual elements e.g. checkbox, signature etc. on the page.
2805type GoogleCloudDocumentaiV1beta1DocumentPageVisualElement struct {
2806	// DetectedLanguages: A list of detected languages together with
2807	// confidence.
2808	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
2809
2810	// Layout: Layout for VisualElement.
2811	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
2812
2813	// Type: Type of the VisualElement.
2814	Type string `json:"type,omitempty"`
2815
2816	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
2817	// to unconditionally include in API requests. By default, fields with
2818	// empty or default values are omitted from API requests. However, any
2819	// non-pointer, non-interface field appearing in ForceSendFields will be
2820	// sent to the server regardless of whether the field is empty or not.
2821	// This may be used to include empty fields in Patch requests.
2822	ForceSendFields []string `json:"-"`
2823
2824	// NullFields is a list of field names (e.g. "DetectedLanguages") to
2825	// include in API requests with the JSON null value. By default, fields
2826	// with empty values are omitted from API requests. However, any field
2827	// with an empty value appearing in NullFields will be sent to the
2828	// server as null. It is an error if a field in this list has a
2829	// non-empty value. This may be used to include null fields in Patch
2830	// requests.
2831	NullFields []string `json:"-"`
2832}
2833
2834func (s *GoogleCloudDocumentaiV1beta1DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
2835	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
2836	raw := NoMethod(*s)
2837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2838}
2839
2840// GoogleCloudDocumentaiV1beta1DocumentProvenance: Structure to identify
2841// provenance relationships between annotations in different revisions.
2842type GoogleCloudDocumentaiV1beta1DocumentProvenance struct {
2843	// Id: The Id of this operation. Needs to be unique within the scope of
2844	// the revision.
2845	Id int64 `json:"id,omitempty"`
2846
2847	// Parents: References to the original elements that are replaced.
2848	Parents []*GoogleCloudDocumentaiV1beta1DocumentProvenanceParent `json:"parents,omitempty"`
2849
2850	// Revision: The index of the revision that produced this element.
2851	Revision int64 `json:"revision,omitempty"`
2852
2853	// Type: The type of provenance operation.
2854	//
2855	// Possible values:
2856	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified.
2857	//   "ADD" - Add an element. Implicit if no `parents` are set for the
2858	// provenance.
2859	//   "REMOVE" - The element is removed. No `parents` should be set.
2860	//   "REPLACE" - Explicitly replaces the element(s) identified by
2861	// `parents`.
2862	//   "EVAL_REQUESTED" - Element is requested for human review.
2863	//   "EVAL_APPROVED" - Element is reviewed and approved at human review,
2864	// confidence will be set to 1.0.
2865	//   "EVAL_SKIPPED" - Element is skipped in the validation process.
2866	Type string `json:"type,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 *GoogleCloudDocumentaiV1beta1DocumentProvenance) MarshalJSON() ([]byte, error) {
2886	type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenance
2887	raw := NoMethod(*s)
2888	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2889}
2890
2891// GoogleCloudDocumentaiV1beta1DocumentProvenanceParent: Structure for
2892// referencing parent provenances. When an element replaces one of more
2893// other elements parent references identify the elements that are
2894// replaced.
2895type GoogleCloudDocumentaiV1beta1DocumentProvenanceParent struct {
2896	// Id: The id of the parent provenance.
2897	Id int64 `json:"id,omitempty"`
2898
2899	// Index: The index of the parent item in the corresponding item list
2900	// (eg. list of entities, properties within entities, etc.) on parent
2901	// revision.
2902	Index int64 `json:"index,omitempty"`
2903
2904	// Revision: The index of the [Document.revisions] identifying the
2905	// parent revision.
2906	Revision int64 `json:"revision,omitempty"`
2907
2908	// ForceSendFields is a list of field names (e.g. "Id") to
2909	// unconditionally include in API requests. By default, fields with
2910	// empty or default values are omitted from API requests. However, any
2911	// non-pointer, non-interface field appearing in ForceSendFields will be
2912	// sent to the server regardless of whether the field is empty or not.
2913	// This may be used to include empty fields in Patch requests.
2914	ForceSendFields []string `json:"-"`
2915
2916	// NullFields is a list of field names (e.g. "Id") to include in API
2917	// requests with the JSON null value. By default, fields with empty
2918	// values are omitted from API requests. However, any field with an
2919	// empty value appearing in NullFields will be sent to the server as
2920	// null. It is an error if a field in this list has a non-empty value.
2921	// This may be used to include null fields in Patch requests.
2922	NullFields []string `json:"-"`
2923}
2924
2925func (s *GoogleCloudDocumentaiV1beta1DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
2926	type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
2927	raw := NoMethod(*s)
2928	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2929}
2930
2931// GoogleCloudDocumentaiV1beta1DocumentRevision: Contains past or
2932// forward revisions of this document.
2933type GoogleCloudDocumentaiV1beta1DocumentRevision struct {
2934	// Agent: If the change was made by a person specify the name or id of
2935	// that person.
2936	Agent string `json:"agent,omitempty"`
2937
2938	// CreateTime: The time that the revision was created.
2939	CreateTime string `json:"createTime,omitempty"`
2940
2941	// HumanReview: Human Review information of this revision.
2942	HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"`
2943
2944	// Id: Id of the revision. Unique within the context of the document.
2945	Id string `json:"id,omitempty"`
2946
2947	// Parent: The revisions that this revision is based on. This can
2948	// include one or more parent (when documents are merged.) This field
2949	// represents the index into the `revisions` field.
2950	Parent []int64 `json:"parent,omitempty"`
2951
2952	// Processor: If the annotation was made by processor identify the
2953	// processor by its resource name.
2954	Processor string `json:"processor,omitempty"`
2955
2956	// ForceSendFields is a list of field names (e.g. "Agent") to
2957	// unconditionally include in API requests. By default, fields with
2958	// empty or default values are omitted from API requests. However, any
2959	// non-pointer, non-interface field appearing in ForceSendFields will be
2960	// sent to the server regardless of whether the field is empty or not.
2961	// This may be used to include empty fields in Patch requests.
2962	ForceSendFields []string `json:"-"`
2963
2964	// NullFields is a list of field names (e.g. "Agent") to include in API
2965	// requests with the JSON null value. By default, fields with empty
2966	// values are omitted from API requests. However, any field with an
2967	// empty value appearing in NullFields will be sent to the server as
2968	// null. It is an error if a field in this list has a non-empty value.
2969	// This may be used to include null fields in Patch requests.
2970	NullFields []string `json:"-"`
2971}
2972
2973func (s *GoogleCloudDocumentaiV1beta1DocumentRevision) MarshalJSON() ([]byte, error) {
2974	type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevision
2975	raw := NoMethod(*s)
2976	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2977}
2978
2979// GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview: Human Review
2980// information of the document.
2981type GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview struct {
2982	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
2983	State string `json:"state,omitempty"`
2984
2985	// StateMessage: A message providing more details about the current
2986	// state of processing. For example, the rejection reason when the state
2987	// is `rejected`.
2988	StateMessage string `json:"stateMessage,omitempty"`
2989
2990	// ForceSendFields is a list of field names (e.g. "State") to
2991	// unconditionally include in API requests. By default, fields with
2992	// empty or default values are omitted from API requests. However, any
2993	// non-pointer, non-interface field appearing in ForceSendFields will be
2994	// sent to the server regardless of whether the field is empty or not.
2995	// This may be used to include empty fields in Patch requests.
2996	ForceSendFields []string `json:"-"`
2997
2998	// NullFields is a list of field names (e.g. "State") to include in API
2999	// requests with the JSON null value. By default, fields with empty
3000	// values are omitted from API requests. However, any field with an
3001	// empty value appearing in NullFields will be sent to the server as
3002	// null. It is an error if a field in this list has a non-empty value.
3003	// This may be used to include null fields in Patch requests.
3004	NullFields []string `json:"-"`
3005}
3006
3007func (s *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
3008	type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
3009	raw := NoMethod(*s)
3010	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3011}
3012
3013// GoogleCloudDocumentaiV1beta1DocumentShardInfo: For a large document,
3014// sharding may be performed to produce several document shards. Each
3015// document shard contains this field to detail which shard it is.
3016type GoogleCloudDocumentaiV1beta1DocumentShardInfo struct {
3017	// ShardCount: Total number of shards.
3018	ShardCount int64 `json:"shardCount,omitempty,string"`
3019
3020	// ShardIndex: The 0-based index of this shard.
3021	ShardIndex int64 `json:"shardIndex,omitempty,string"`
3022
3023	// TextOffset: The index of the first character in Document.text in the
3024	// overall document global text.
3025	TextOffset int64 `json:"textOffset,omitempty,string"`
3026
3027	// ForceSendFields is a list of field names (e.g. "ShardCount") to
3028	// unconditionally include in API requests. By default, fields with
3029	// empty or default values are omitted from API requests. However, any
3030	// non-pointer, non-interface field appearing in ForceSendFields will be
3031	// sent to the server regardless of whether the field is empty or not.
3032	// This may be used to include empty fields in Patch requests.
3033	ForceSendFields []string `json:"-"`
3034
3035	// NullFields is a list of field names (e.g. "ShardCount") to include in
3036	// API requests with the JSON null value. By default, fields with empty
3037	// values are omitted from API requests. However, any field with an
3038	// empty value appearing in NullFields will be sent to the server as
3039	// null. It is an error if a field in this list has a non-empty value.
3040	// This may be used to include null fields in Patch requests.
3041	NullFields []string `json:"-"`
3042}
3043
3044func (s *GoogleCloudDocumentaiV1beta1DocumentShardInfo) MarshalJSON() ([]byte, error) {
3045	type NoMethod GoogleCloudDocumentaiV1beta1DocumentShardInfo
3046	raw := NoMethod(*s)
3047	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3048}
3049
3050// GoogleCloudDocumentaiV1beta1DocumentStyle: Annotation for common text
3051// style attributes. This adheres to CSS conventions as much as
3052// possible.
3053type GoogleCloudDocumentaiV1beta1DocumentStyle struct {
3054	// BackgroundColor: Text background color.
3055	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
3056
3057	// Color: Text color.
3058	Color *GoogleTypeColor `json:"color,omitempty"`
3059
3060	// FontSize: Font size.
3061	FontSize *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize `json:"fontSize,omitempty"`
3062
3063	// FontWeight: Font weight. Possible values are normal, bold, bolder,
3064	// and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
3065	FontWeight string `json:"fontWeight,omitempty"`
3066
3067	// TextAnchor: Text anchor indexing into the Document.text.
3068	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
3069
3070	// TextDecoration: Text decoration. Follows CSS standard.
3071	// https://www.w3schools.com/cssref/pr_text_text-decoration.asp
3072	TextDecoration string `json:"textDecoration,omitempty"`
3073
3074	// TextStyle: Text style. Possible values are normal, italic, and
3075	// oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
3076	TextStyle string `json:"textStyle,omitempty"`
3077
3078	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
3079	// unconditionally include in API requests. By default, fields with
3080	// empty or default values are omitted from API requests. However, any
3081	// non-pointer, non-interface field appearing in ForceSendFields will be
3082	// sent to the server regardless of whether the field is empty or not.
3083	// This may be used to include empty fields in Patch requests.
3084	ForceSendFields []string `json:"-"`
3085
3086	// NullFields is a list of field names (e.g. "BackgroundColor") to
3087	// include in API requests with the JSON null value. By default, fields
3088	// with empty values are omitted from API requests. However, any field
3089	// with an empty value appearing in NullFields will be sent to the
3090	// server as null. It is an error if a field in this list has a
3091	// non-empty value. This may be used to include null fields in Patch
3092	// requests.
3093	NullFields []string `json:"-"`
3094}
3095
3096func (s *GoogleCloudDocumentaiV1beta1DocumentStyle) MarshalJSON() ([]byte, error) {
3097	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyle
3098	raw := NoMethod(*s)
3099	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3100}
3101
3102// GoogleCloudDocumentaiV1beta1DocumentStyleFontSize: Font size with
3103// unit.
3104type GoogleCloudDocumentaiV1beta1DocumentStyleFontSize struct {
3105	// Size: Font size for the text.
3106	Size float64 `json:"size,omitempty"`
3107
3108	// Unit: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
3109	Unit string `json:"unit,omitempty"`
3110
3111	// ForceSendFields is a list of field names (e.g. "Size") to
3112	// unconditionally include in API requests. By default, fields with
3113	// empty or default values are omitted from API requests. However, any
3114	// non-pointer, non-interface field appearing in ForceSendFields will be
3115	// sent to the server regardless of whether the field is empty or not.
3116	// This may be used to include empty fields in Patch requests.
3117	ForceSendFields []string `json:"-"`
3118
3119	// NullFields is a list of field names (e.g. "Size") to include in API
3120	// requests with the JSON null value. By default, fields with empty
3121	// values are omitted from API requests. However, any field with an
3122	// empty value appearing in NullFields will be sent to the server as
3123	// null. It is an error if a field in this list has a non-empty value.
3124	// This may be used to include null fields in Patch requests.
3125	NullFields []string `json:"-"`
3126}
3127
3128func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
3129	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
3130	raw := NoMethod(*s)
3131	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3132}
3133
3134func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
3135	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
3136	var s1 struct {
3137		Size gensupport.JSONFloat64 `json:"size"`
3138		*NoMethod
3139	}
3140	s1.NoMethod = (*NoMethod)(s)
3141	if err := json.Unmarshal(data, &s1); err != nil {
3142		return err
3143	}
3144	s.Size = float64(s1.Size)
3145	return nil
3146}
3147
3148// GoogleCloudDocumentaiV1beta1DocumentTextAnchor: Text reference
3149// indexing into the Document.text.
3150type GoogleCloudDocumentaiV1beta1DocumentTextAnchor struct {
3151	// Content: Contains the content of the text span so that users do not
3152	// have to look it up in the text_segments.
3153	Content string `json:"content,omitempty"`
3154
3155	// TextSegments: The text segments from the Document.text.
3156	TextSegments []*GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
3157
3158	// ForceSendFields is a list of field names (e.g. "Content") to
3159	// unconditionally include in API requests. By default, fields with
3160	// empty or default values are omitted from API requests. However, any
3161	// non-pointer, non-interface field appearing in ForceSendFields will be
3162	// sent to the server regardless of whether the field is empty or not.
3163	// This may be used to include empty fields in Patch requests.
3164	ForceSendFields []string `json:"-"`
3165
3166	// NullFields is a list of field names (e.g. "Content") to include in
3167	// API requests with the JSON null value. By default, fields with empty
3168	// values are omitted from API requests. However, any field with an
3169	// empty value appearing in NullFields will be sent to the server as
3170	// null. It is an error if a field in this list has a non-empty value.
3171	// This may be used to include null fields in Patch requests.
3172	NullFields []string `json:"-"`
3173}
3174
3175func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchor) MarshalJSON() ([]byte, error) {
3176	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchor
3177	raw := NoMethod(*s)
3178	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3179}
3180
3181// GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment: A text
3182// segment in the Document.text. The indices may be out of bounds which
3183// indicate that the text extends into another document shard for large
3184// sharded documents. See ShardInfo.text_offset
3185type GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment struct {
3186	// EndIndex: TextSegment half open end UTF-8 char index in the
3187	// Document.text.
3188	EndIndex int64 `json:"endIndex,omitempty,string"`
3189
3190	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
3191	StartIndex int64 `json:"startIndex,omitempty,string"`
3192
3193	// ForceSendFields is a list of field names (e.g. "EndIndex") to
3194	// unconditionally include in API requests. By default, fields with
3195	// empty or default values are omitted from API requests. However, any
3196	// non-pointer, non-interface field appearing in ForceSendFields will be
3197	// sent to the server regardless of whether the field is empty or not.
3198	// This may be used to include empty fields in Patch requests.
3199	ForceSendFields []string `json:"-"`
3200
3201	// NullFields is a list of field names (e.g. "EndIndex") to include in
3202	// API requests with the JSON null value. By default, fields with empty
3203	// values are omitted from API requests. However, any field with an
3204	// empty value appearing in NullFields will be sent to the server as
3205	// null. It is an error if a field in this list has a non-empty value.
3206	// This may be used to include null fields in Patch requests.
3207	NullFields []string `json:"-"`
3208}
3209
3210func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
3211	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
3212	raw := NoMethod(*s)
3213	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3214}
3215
3216// GoogleCloudDocumentaiV1beta1DocumentTextChange: This message is used
3217// for text changes aka. OCR corrections.
3218type GoogleCloudDocumentaiV1beta1DocumentTextChange struct {
3219	// ChangedText: The text that replaces the text identified in the
3220	// `text_anchor`.
3221	ChangedText string `json:"changedText,omitempty"`
3222
3223	// Provenance: The history of this annotation.
3224	Provenance []*GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
3225
3226	// TextAnchor: Provenance of the correction. Text anchor indexing into
3227	// the Document.text. There can only be a single
3228	// `TextAnchor.text_segments` element. If the start and end index of the
3229	// text segment are the same, the text change is inserted before that
3230	// index.
3231	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
3232
3233	// ForceSendFields is a list of field names (e.g. "ChangedText") to
3234	// unconditionally include in API requests. By default, fields with
3235	// empty or default values are omitted from API requests. However, any
3236	// non-pointer, non-interface field appearing in ForceSendFields will be
3237	// sent to the server regardless of whether the field is empty or not.
3238	// This may be used to include empty fields in Patch requests.
3239	ForceSendFields []string `json:"-"`
3240
3241	// NullFields is a list of field names (e.g. "ChangedText") to include
3242	// in API requests with the JSON null value. By default, fields with
3243	// empty values are omitted from API requests. However, any field with
3244	// an empty value appearing in NullFields will be sent to the server as
3245	// null. It is an error if a field in this list has a non-empty value.
3246	// This may be used to include null fields in Patch requests.
3247	NullFields []string `json:"-"`
3248}
3249
3250func (s *GoogleCloudDocumentaiV1beta1DocumentTextChange) MarshalJSON() ([]byte, error) {
3251	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextChange
3252	raw := NoMethod(*s)
3253	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3254}
3255
3256// GoogleCloudDocumentaiV1beta1GcsDestination: The Google Cloud Storage
3257// location where the output file will be written to.
3258type GoogleCloudDocumentaiV1beta1GcsDestination struct {
3259	Uri string `json:"uri,omitempty"`
3260
3261	// ForceSendFields is a list of field names (e.g. "Uri") to
3262	// unconditionally include in API requests. By default, fields with
3263	// empty or default values are omitted from API requests. However, any
3264	// non-pointer, non-interface field appearing in ForceSendFields will be
3265	// sent to the server regardless of whether the field is empty or not.
3266	// This may be used to include empty fields in Patch requests.
3267	ForceSendFields []string `json:"-"`
3268
3269	// NullFields is a list of field names (e.g. "Uri") to include in API
3270	// requests with the JSON null value. By default, fields with empty
3271	// values are omitted from API requests. However, any field with an
3272	// empty value appearing in NullFields will be sent to the server as
3273	// null. It is an error if a field in this list has a non-empty value.
3274	// This may be used to include null fields in Patch requests.
3275	NullFields []string `json:"-"`
3276}
3277
3278func (s *GoogleCloudDocumentaiV1beta1GcsDestination) MarshalJSON() ([]byte, error) {
3279	type NoMethod GoogleCloudDocumentaiV1beta1GcsDestination
3280	raw := NoMethod(*s)
3281	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3282}
3283
3284// GoogleCloudDocumentaiV1beta1GcsSource: The Google Cloud Storage
3285// location where the input file will be read from.
3286type GoogleCloudDocumentaiV1beta1GcsSource struct {
3287	Uri string `json:"uri,omitempty"`
3288
3289	// ForceSendFields is a list of field names (e.g. "Uri") to
3290	// unconditionally include in API requests. By default, fields with
3291	// empty or default values are omitted from API requests. However, any
3292	// non-pointer, non-interface field appearing in ForceSendFields will be
3293	// sent to the server regardless of whether the field is empty or not.
3294	// This may be used to include empty fields in Patch requests.
3295	ForceSendFields []string `json:"-"`
3296
3297	// NullFields is a list of field names (e.g. "Uri") to include in API
3298	// requests with the JSON null value. By default, fields with empty
3299	// values are omitted from API requests. However, any field with an
3300	// empty value appearing in NullFields will be sent to the server as
3301	// null. It is an error if a field in this list has a non-empty value.
3302	// This may be used to include null fields in Patch requests.
3303	NullFields []string `json:"-"`
3304}
3305
3306func (s *GoogleCloudDocumentaiV1beta1GcsSource) MarshalJSON() ([]byte, error) {
3307	type NoMethod GoogleCloudDocumentaiV1beta1GcsSource
3308	raw := NoMethod(*s)
3309	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3310}
3311
3312// GoogleCloudDocumentaiV1beta1InputConfig: The desired input location
3313// and metadata.
3314type GoogleCloudDocumentaiV1beta1InputConfig struct {
3315	// GcsSource: The Google Cloud Storage location to read the input from.
3316	// This must be a single file.
3317	GcsSource *GoogleCloudDocumentaiV1beta1GcsSource `json:"gcsSource,omitempty"`
3318
3319	// MimeType: Required. Mimetype of the input. Current supported
3320	// mimetypes are application/pdf, image/tiff, and image/gif. In
3321	// addition, application/json type is supported for requests with
3322	// ProcessDocumentRequest.automl_params field set. The JSON file needs
3323	// to be in Document format.
3324	MimeType string `json:"mimeType,omitempty"`
3325
3326	// ForceSendFields is a list of field names (e.g. "GcsSource") to
3327	// unconditionally include in API requests. By default, fields with
3328	// empty or default values are omitted from API requests. However, any
3329	// non-pointer, non-interface field appearing in ForceSendFields will be
3330	// sent to the server regardless of whether the field is empty or not.
3331	// This may be used to include empty fields in Patch requests.
3332	ForceSendFields []string `json:"-"`
3333
3334	// NullFields is a list of field names (e.g. "GcsSource") to include in
3335	// API requests with the JSON null value. By default, fields with empty
3336	// values are omitted from API requests. However, any field with an
3337	// empty value appearing in NullFields will be sent to the server as
3338	// null. It is an error if a field in this list has a non-empty value.
3339	// This may be used to include null fields in Patch requests.
3340	NullFields []string `json:"-"`
3341}
3342
3343func (s *GoogleCloudDocumentaiV1beta1InputConfig) MarshalJSON() ([]byte, error) {
3344	type NoMethod GoogleCloudDocumentaiV1beta1InputConfig
3345	raw := NoMethod(*s)
3346	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3347}
3348
3349// GoogleCloudDocumentaiV1beta1NormalizedVertex: A vertex represents a
3350// 2D point in the image. NOTE: the normalized vertex coordinates are
3351// relative to the original image and range from 0 to 1.
3352type GoogleCloudDocumentaiV1beta1NormalizedVertex struct {
3353	// X: X coordinate.
3354	X float64 `json:"x,omitempty"`
3355
3356	// Y: Y coordinate (starts from the top of the image).
3357	Y float64 `json:"y,omitempty"`
3358
3359	// ForceSendFields is a list of field names (e.g. "X") to
3360	// unconditionally include in API requests. By default, fields with
3361	// empty or default values are omitted from API requests. However, any
3362	// non-pointer, non-interface field appearing in ForceSendFields will be
3363	// sent to the server regardless of whether the field is empty or not.
3364	// This may be used to include empty fields in Patch requests.
3365	ForceSendFields []string `json:"-"`
3366
3367	// NullFields is a list of field names (e.g. "X") to include in API
3368	// requests with the JSON null value. By default, fields with empty
3369	// values are omitted from API requests. However, any field with an
3370	// empty value appearing in NullFields will be sent to the server as
3371	// null. It is an error if a field in this list has a non-empty value.
3372	// This may be used to include null fields in Patch requests.
3373	NullFields []string `json:"-"`
3374}
3375
3376func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
3377	type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
3378	raw := NoMethod(*s)
3379	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3380}
3381
3382func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
3383	type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
3384	var s1 struct {
3385		X gensupport.JSONFloat64 `json:"x"`
3386		Y gensupport.JSONFloat64 `json:"y"`
3387		*NoMethod
3388	}
3389	s1.NoMethod = (*NoMethod)(s)
3390	if err := json.Unmarshal(data, &s1); err != nil {
3391		return err
3392	}
3393	s.X = float64(s1.X)
3394	s.Y = float64(s1.Y)
3395	return nil
3396}
3397
3398// GoogleCloudDocumentaiV1beta1OperationMetadata: Contains metadata for
3399// the BatchProcessDocuments operation.
3400type GoogleCloudDocumentaiV1beta1OperationMetadata struct {
3401	// CreateTime: The creation time of the operation.
3402	CreateTime string `json:"createTime,omitempty"`
3403
3404	// State: The state of the current batch processing.
3405	//
3406	// Possible values:
3407	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
3408	// state is omitted.
3409	//   "ACCEPTED" - Request is received.
3410	//   "WAITING" - Request operation is waiting for scheduling.
3411	//   "RUNNING" - Request is being processed.
3412	//   "SUCCEEDED" - The batch processing completed successfully.
3413	//   "CANCELLED" - The batch processing was cancelled.
3414	//   "FAILED" - The batch processing has failed.
3415	State string `json:"state,omitempty"`
3416
3417	// StateMessage: A message providing more details about the current
3418	// state of processing.
3419	StateMessage string `json:"stateMessage,omitempty"`
3420
3421	// UpdateTime: The last update time of the operation.
3422	UpdateTime string `json:"updateTime,omitempty"`
3423
3424	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3425	// unconditionally include in API requests. By default, fields with
3426	// empty or default values are omitted from API requests. However, any
3427	// non-pointer, non-interface field appearing in ForceSendFields will be
3428	// sent to the server regardless of whether the field is empty or not.
3429	// This may be used to include empty fields in Patch requests.
3430	ForceSendFields []string `json:"-"`
3431
3432	// NullFields is a list of field names (e.g. "CreateTime") to include in
3433	// API requests with the JSON null value. By default, fields with empty
3434	// values are omitted from API requests. However, any field with an
3435	// empty value appearing in NullFields will be sent to the server as
3436	// null. It is an error if a field in this list has a non-empty value.
3437	// This may be used to include null fields in Patch requests.
3438	NullFields []string `json:"-"`
3439}
3440
3441func (s *GoogleCloudDocumentaiV1beta1OperationMetadata) MarshalJSON() ([]byte, error) {
3442	type NoMethod GoogleCloudDocumentaiV1beta1OperationMetadata
3443	raw := NoMethod(*s)
3444	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3445}
3446
3447// GoogleCloudDocumentaiV1beta1OutputConfig: The desired output location
3448// and metadata.
3449type GoogleCloudDocumentaiV1beta1OutputConfig struct {
3450	// GcsDestination: The Google Cloud Storage location to write the output
3451	// to.
3452	GcsDestination *GoogleCloudDocumentaiV1beta1GcsDestination `json:"gcsDestination,omitempty"`
3453
3454	// PagesPerShard: The max number of pages to include into each output
3455	// Document shard JSON on Google Cloud Storage. The valid range is [1,
3456	// 100]. If not specified, the default value is 20. For example, for one
3457	// pdf file with 100 pages, 100 parsed pages will be produced. If
3458	// `pages_per_shard` = 20, then 5 Document shard JSON files each
3459	// containing 20 parsed pages will be written under the prefix
3460	// OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x
3461	// and y are 1-indexed page numbers. Example GCS outputs with 157 pages
3462	// and pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json
3463	// pages-101-to-150.json pages-151-to-157.json
3464	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
3465
3466	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
3467	// unconditionally include in API requests. By default, fields with
3468	// empty or default values are omitted from API requests. However, any
3469	// non-pointer, non-interface field appearing in ForceSendFields will be
3470	// sent to the server regardless of whether the field is empty or not.
3471	// This may be used to include empty fields in Patch requests.
3472	ForceSendFields []string `json:"-"`
3473
3474	// NullFields is a list of field names (e.g. "GcsDestination") to
3475	// include in API requests with the JSON null value. By default, fields
3476	// with empty values are omitted from API requests. However, any field
3477	// with an empty value appearing in NullFields will be sent to the
3478	// server as null. It is an error if a field in this list has a
3479	// non-empty value. This may be used to include null fields in Patch
3480	// requests.
3481	NullFields []string `json:"-"`
3482}
3483
3484func (s *GoogleCloudDocumentaiV1beta1OutputConfig) MarshalJSON() ([]byte, error) {
3485	type NoMethod GoogleCloudDocumentaiV1beta1OutputConfig
3486	raw := NoMethod(*s)
3487	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3488}
3489
3490// GoogleCloudDocumentaiV1beta1ProcessDocumentResponse: Response to a
3491// single document processing request.
3492type GoogleCloudDocumentaiV1beta1ProcessDocumentResponse struct {
3493	// InputConfig: Information about the input file. This is the same as
3494	// the corresponding input config in the request.
3495	InputConfig *GoogleCloudDocumentaiV1beta1InputConfig `json:"inputConfig,omitempty"`
3496
3497	// OutputConfig: The output location of the parsed responses. The
3498	// responses are written to this location as JSON-serialized `Document`
3499	// objects.
3500	OutputConfig *GoogleCloudDocumentaiV1beta1OutputConfig `json:"outputConfig,omitempty"`
3501
3502	// ForceSendFields is a list of field names (e.g. "InputConfig") to
3503	// unconditionally include in API requests. By default, fields with
3504	// empty or default values are omitted from API requests. However, any
3505	// non-pointer, non-interface field appearing in ForceSendFields will be
3506	// sent to the server regardless of whether the field is empty or not.
3507	// This may be used to include empty fields in Patch requests.
3508	ForceSendFields []string `json:"-"`
3509
3510	// NullFields is a list of field names (e.g. "InputConfig") to include
3511	// in API requests with the JSON null value. By default, fields with
3512	// empty values are omitted from API requests. However, any field with
3513	// an empty value appearing in NullFields will be sent to the server as
3514	// null. It is an error if a field in this list has a non-empty value.
3515	// This may be used to include null fields in Patch requests.
3516	NullFields []string `json:"-"`
3517}
3518
3519func (s *GoogleCloudDocumentaiV1beta1ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
3520	type NoMethod GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
3521	raw := NoMethod(*s)
3522	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3523}
3524
3525// GoogleCloudDocumentaiV1beta1Vertex: A vertex represents a 2D point in
3526// the image. NOTE: the vertex coordinates are in the same scale as the
3527// original image.
3528type GoogleCloudDocumentaiV1beta1Vertex struct {
3529	// X: X coordinate.
3530	X int64 `json:"x,omitempty"`
3531
3532	// Y: Y coordinate (starts from the top of the image).
3533	Y int64 `json:"y,omitempty"`
3534
3535	// ForceSendFields is a list of field names (e.g. "X") to
3536	// unconditionally include in API requests. By default, fields with
3537	// empty or default values are omitted from API requests. However, any
3538	// non-pointer, non-interface field appearing in ForceSendFields will be
3539	// sent to the server regardless of whether the field is empty or not.
3540	// This may be used to include empty fields in Patch requests.
3541	ForceSendFields []string `json:"-"`
3542
3543	// NullFields is a list of field names (e.g. "X") to include in API
3544	// requests with the JSON null value. By default, fields with empty
3545	// values are omitted from API requests. However, any field with an
3546	// empty value appearing in NullFields will be sent to the server as
3547	// null. It is an error if a field in this list has a non-empty value.
3548	// This may be used to include null fields in Patch requests.
3549	NullFields []string `json:"-"`
3550}
3551
3552func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) {
3553	type NoMethod GoogleCloudDocumentaiV1beta1Vertex
3554	raw := NoMethod(*s)
3555	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3556}
3557
3558// GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse: Response
3559// to an batch document processing request. This is returned in the LRO
3560// Operation after the operation is complete.
3561type GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse struct {
3562	// Responses: Responses for each individual document.
3563	Responses []*GoogleCloudDocumentaiV1beta2ProcessDocumentResponse `json:"responses,omitempty"`
3564
3565	// ForceSendFields is a list of field names (e.g. "Responses") to
3566	// unconditionally include in API requests. By default, fields with
3567	// empty or default values are omitted from API requests. However, any
3568	// non-pointer, non-interface field appearing in ForceSendFields will be
3569	// sent to the server regardless of whether the field is empty or not.
3570	// This may be used to include empty fields in Patch requests.
3571	ForceSendFields []string `json:"-"`
3572
3573	// NullFields is a list of field names (e.g. "Responses") to include in
3574	// API requests with the JSON null value. By default, fields with empty
3575	// values are omitted from API requests. However, any field with an
3576	// empty value appearing in NullFields will be sent to the server as
3577	// null. It is an error if a field in this list has a non-empty value.
3578	// This may be used to include null fields in Patch requests.
3579	NullFields []string `json:"-"`
3580}
3581
3582func (s *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
3583	type NoMethod GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
3584	raw := NoMethod(*s)
3585	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3586}
3587
3588// GoogleCloudDocumentaiV1beta2BoundingPoly: A bounding polygon for the
3589// detected image annotation.
3590type GoogleCloudDocumentaiV1beta2BoundingPoly struct {
3591	// NormalizedVertices: The bounding polygon normalized vertices.
3592	NormalizedVertices []*GoogleCloudDocumentaiV1beta2NormalizedVertex `json:"normalizedVertices,omitempty"`
3593
3594	// Vertices: The bounding polygon vertices.
3595	Vertices []*GoogleCloudDocumentaiV1beta2Vertex `json:"vertices,omitempty"`
3596
3597	// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
3598	// to unconditionally include in API requests. By default, fields with
3599	// empty or default values are omitted from API requests. However, any
3600	// non-pointer, non-interface field appearing in ForceSendFields will be
3601	// sent to the server regardless of whether the field is empty or not.
3602	// This may be used to include empty fields in Patch requests.
3603	ForceSendFields []string `json:"-"`
3604
3605	// NullFields is a list of field names (e.g. "NormalizedVertices") to
3606	// include in API requests with the JSON null value. By default, fields
3607	// with empty values are omitted from API requests. However, any field
3608	// with an empty value appearing in NullFields will be sent to the
3609	// server as null. It is an error if a field in this list has a
3610	// non-empty value. This may be used to include null fields in Patch
3611	// requests.
3612	NullFields []string `json:"-"`
3613}
3614
3615func (s *GoogleCloudDocumentaiV1beta2BoundingPoly) MarshalJSON() ([]byte, error) {
3616	type NoMethod GoogleCloudDocumentaiV1beta2BoundingPoly
3617	raw := NoMethod(*s)
3618	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3619}
3620
3621// GoogleCloudDocumentaiV1beta2Document: Document represents the
3622// canonical document resource in Document Understanding AI. It is an
3623// interchange format that provides insights into documents and allows
3624// for collaboration between users and Document Understanding AI to
3625// iterate and optimize for quality.
3626type GoogleCloudDocumentaiV1beta2Document struct {
3627	// Content: Optional. Inline document content, represented as a stream
3628	// of bytes. Note: As with all `bytes` fields, protobuffers use a pure
3629	// binary representation, whereas JSON representations use base64.
3630	Content string `json:"content,omitempty"`
3631
3632	// Entities: A list of entities detected on Document.text. For document
3633	// shards, entities in this list may cross shard boundaries.
3634	Entities []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"entities,omitempty"`
3635
3636	// EntityRelations: Relationship among Document.entities.
3637	EntityRelations []*GoogleCloudDocumentaiV1beta2DocumentEntityRelation `json:"entityRelations,omitempty"`
3638
3639	// Error: Any error that occurred while processing this document.
3640	Error *GoogleRpcStatus `json:"error,omitempty"`
3641
3642	// Labels: Labels for this document.
3643	Labels []*GoogleCloudDocumentaiV1beta2DocumentLabel `json:"labels,omitempty"`
3644
3645	// MimeType: An IANA published MIME type (also referred to as media
3646	// type). For more information, see
3647	// https://www.iana.org/assignments/media-types/media-types.xhtml.
3648	MimeType string `json:"mimeType,omitempty"`
3649
3650	// Pages: Visual page layout for the Document.
3651	Pages []*GoogleCloudDocumentaiV1beta2DocumentPage `json:"pages,omitempty"`
3652
3653	// Revisions: Revision history of this document.
3654	Revisions []*GoogleCloudDocumentaiV1beta2DocumentRevision `json:"revisions,omitempty"`
3655
3656	// ShardInfo: Information about the sharding if this document is sharded
3657	// part of a larger document. If the document is not sharded, this
3658	// message is not specified.
3659	ShardInfo *GoogleCloudDocumentaiV1beta2DocumentShardInfo `json:"shardInfo,omitempty"`
3660
3661	// Text: Optional. UTF-8 encoded text in reading order from the
3662	// document.
3663	Text string `json:"text,omitempty"`
3664
3665	// TextChanges: A list of text corrections made to [Document.text]. This
3666	// is usually used for annotating corrections to OCR mistakes. Text
3667	// changes for a given revision may not overlap with each other.
3668	TextChanges []*GoogleCloudDocumentaiV1beta2DocumentTextChange `json:"textChanges,omitempty"`
3669
3670	// TextStyles: Styles for the Document.text.
3671	TextStyles []*GoogleCloudDocumentaiV1beta2DocumentStyle `json:"textStyles,omitempty"`
3672
3673	// Uri: Optional. Currently supports Google Cloud Storage URI of the
3674	// form `gs://bucket_name/object_name`. Object versioning is not
3675	// supported. See Google Cloud Storage Request URIs
3676	// (https://cloud.google.com/storage/docs/reference-uris) for more info.
3677	Uri string `json:"uri,omitempty"`
3678
3679	// ForceSendFields is a list of field names (e.g. "Content") to
3680	// unconditionally include in API requests. By default, fields with
3681	// empty or default values are omitted from API requests. However, any
3682	// non-pointer, non-interface field appearing in ForceSendFields will be
3683	// sent to the server regardless of whether the field is empty or not.
3684	// This may be used to include empty fields in Patch requests.
3685	ForceSendFields []string `json:"-"`
3686
3687	// NullFields is a list of field names (e.g. "Content") to include in
3688	// API requests with the JSON null value. By default, fields with empty
3689	// values are omitted from API requests. However, any field with an
3690	// empty value appearing in NullFields will be sent to the server as
3691	// null. It is an error if a field in this list has a non-empty value.
3692	// This may be used to include null fields in Patch requests.
3693	NullFields []string `json:"-"`
3694}
3695
3696func (s *GoogleCloudDocumentaiV1beta2Document) MarshalJSON() ([]byte, error) {
3697	type NoMethod GoogleCloudDocumentaiV1beta2Document
3698	raw := NoMethod(*s)
3699	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3700}
3701
3702// GoogleCloudDocumentaiV1beta2DocumentEntity: An entity that could be a
3703// phrase in the text or a property belongs to the document. It is a
3704// known entity type, such as a person, an organization, or location.
3705type GoogleCloudDocumentaiV1beta2DocumentEntity struct {
3706	// Confidence: Optional. Confidence of detected Schema entity. Range [0,
3707	// 1].
3708	Confidence float64 `json:"confidence,omitempty"`
3709
3710	// Id: Optional. Canonical id. This will be a unique value in the entity
3711	// list for this document.
3712	Id string `json:"id,omitempty"`
3713
3714	// MentionId: Optional. Deprecated. Use `id` field instead.
3715	MentionId string `json:"mentionId,omitempty"`
3716
3717	// MentionText: Optional. Text value in the document e.g. `1600
3718	// Amphitheatre Pkwy`. If the entity is not present in the document,
3719	// this field will be empty.
3720	MentionText string `json:"mentionText,omitempty"`
3721
3722	// NormalizedValue: Optional. Normalized entity value. Absent if the
3723	// extracted value could not be converted or the type (e.g. address) is
3724	// not supported for certain parsers. This field is also only populated
3725	// for certain supported document types.
3726	NormalizedValue *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
3727
3728	// PageAnchor: Optional. Represents the provenance of this entity wrt.
3729	// the location on the page where it was found.
3730	PageAnchor *GoogleCloudDocumentaiV1beta2DocumentPageAnchor `json:"pageAnchor,omitempty"`
3731
3732	// Properties: Optional. Entities can be nested to form a hierarchical
3733	// data structure representing the content in the document.
3734	Properties []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"properties,omitempty"`
3735
3736	// Provenance: Optional. The history of this annotation.
3737	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
3738
3739	// Redacted: Optional. Whether the entity will be redacted for
3740	// de-identification purposes.
3741	Redacted bool `json:"redacted,omitempty"`
3742
3743	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing
3744	// into the Document.text.
3745	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
3746
3747	// Type: Entity type from a schema e.g. `Address`.
3748	Type string `json:"type,omitempty"`
3749
3750	// ForceSendFields is a list of field names (e.g. "Confidence") to
3751	// unconditionally include in API requests. By default, fields with
3752	// empty or default values are omitted from API requests. However, any
3753	// non-pointer, non-interface field appearing in ForceSendFields will be
3754	// sent to the server regardless of whether the field is empty or not.
3755	// This may be used to include empty fields in Patch requests.
3756	ForceSendFields []string `json:"-"`
3757
3758	// NullFields is a list of field names (e.g. "Confidence") to include in
3759	// API requests with the JSON null value. By default, fields with empty
3760	// values are omitted from API requests. However, any field with an
3761	// empty value appearing in NullFields will be sent to the server as
3762	// null. It is an error if a field in this list has a non-empty value.
3763	// This may be used to include null fields in Patch requests.
3764	NullFields []string `json:"-"`
3765}
3766
3767func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) MarshalJSON() ([]byte, error) {
3768	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
3769	raw := NoMethod(*s)
3770	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3771}
3772
3773func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) UnmarshalJSON(data []byte) error {
3774	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
3775	var s1 struct {
3776		Confidence gensupport.JSONFloat64 `json:"confidence"`
3777		*NoMethod
3778	}
3779	s1.NoMethod = (*NoMethod)(s)
3780	if err := json.Unmarshal(data, &s1); err != nil {
3781		return err
3782	}
3783	s.Confidence = float64(s1.Confidence)
3784	return nil
3785}
3786
3787// GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue: Parsed and
3788// normalized entity value.
3789type GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue struct {
3790	// AddressValue: Postal address. See also:
3791	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
3792	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
3793
3794	// BooleanValue: Boolean value. Can be used for entities with binary
3795	// values, or for checkboxes.
3796	BooleanValue bool `json:"booleanValue,omitempty"`
3797
3798	// DateValue: Date value. Includes year, month, day. See also:
3799	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
3800	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
3801
3802	// DatetimeValue: DateTime value. Includes date, time, and timezone. See
3803	// also:
3804	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
3805	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
3806
3807	// FloatValue: Float value.
3808	FloatValue float64 `json:"floatValue,omitempty"`
3809
3810	// IntegerValue: Integer value.
3811	IntegerValue int64 `json:"integerValue,omitempty"`
3812
3813	// MoneyValue: Money value. See also:
3814	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
3815	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
3816
3817	// Text: Optional. An optional field to store a normalized string. For
3818	// some entity types, one of respective 'structured_value' fields may
3819	// also be populated. Also not all the types of 'structured_value' will
3820	// be normalized. For example, some processors may not generate float or
3821	// int normalized text by default. Below are sample formats mapped to
3822	// structured values. - Money/Currency type (`money_value`) is in the
3823	// ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601
3824	// text format. - Datetime type (`datetime_value`) is in the ISO 8601
3825	// text format.
3826	Text string `json:"text,omitempty"`
3827
3828	// ForceSendFields is a list of field names (e.g. "AddressValue") to
3829	// unconditionally include in API requests. By default, fields with
3830	// empty or default values are omitted from API requests. However, any
3831	// non-pointer, non-interface field appearing in ForceSendFields will be
3832	// sent to the server regardless of whether the field is empty or not.
3833	// This may be used to include empty fields in Patch requests.
3834	ForceSendFields []string `json:"-"`
3835
3836	// NullFields is a list of field names (e.g. "AddressValue") to include
3837	// in API requests with the JSON null value. By default, fields with
3838	// empty values are omitted from API requests. However, any field with
3839	// an empty value appearing in NullFields will be sent to the server as
3840	// null. It is an error if a field in this list has a non-empty value.
3841	// This may be used to include null fields in Patch requests.
3842	NullFields []string `json:"-"`
3843}
3844
3845func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
3846	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
3847	raw := NoMethod(*s)
3848	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3849}
3850
3851func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
3852	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
3853	var s1 struct {
3854		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
3855		*NoMethod
3856	}
3857	s1.NoMethod = (*NoMethod)(s)
3858	if err := json.Unmarshal(data, &s1); err != nil {
3859		return err
3860	}
3861	s.FloatValue = float64(s1.FloatValue)
3862	return nil
3863}
3864
3865// GoogleCloudDocumentaiV1beta2DocumentEntityRelation: Relationship
3866// between Entities.
3867type GoogleCloudDocumentaiV1beta2DocumentEntityRelation struct {
3868	// ObjectId: Object entity id.
3869	ObjectId string `json:"objectId,omitempty"`
3870
3871	// Relation: Relationship description.
3872	Relation string `json:"relation,omitempty"`
3873
3874	// SubjectId: Subject entity id.
3875	SubjectId string `json:"subjectId,omitempty"`
3876
3877	// ForceSendFields is a list of field names (e.g. "ObjectId") to
3878	// unconditionally include in API requests. By default, fields with
3879	// empty or default values are omitted from API requests. However, any
3880	// non-pointer, non-interface field appearing in ForceSendFields will be
3881	// sent to the server regardless of whether the field is empty or not.
3882	// This may be used to include empty fields in Patch requests.
3883	ForceSendFields []string `json:"-"`
3884
3885	// NullFields is a list of field names (e.g. "ObjectId") to include in
3886	// API requests with the JSON null value. By default, fields with empty
3887	// values are omitted from API requests. However, any field with an
3888	// empty value appearing in NullFields will be sent to the server as
3889	// null. It is an error if a field in this list has a non-empty value.
3890	// This may be used to include null fields in Patch requests.
3891	NullFields []string `json:"-"`
3892}
3893
3894func (s *GoogleCloudDocumentaiV1beta2DocumentEntityRelation) MarshalJSON() ([]byte, error) {
3895	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityRelation
3896	raw := NoMethod(*s)
3897	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3898}
3899
3900// GoogleCloudDocumentaiV1beta2DocumentLabel: Label attaches schema
3901// information and/or other metadata to segments within a Document.
3902// Multiple Labels on a single field can denote either different labels,
3903// different instances of the same label created at different times, or
3904// some combination of both.
3905type GoogleCloudDocumentaiV1beta2DocumentLabel struct {
3906	// AutomlModel: Label is generated AutoML model. This field stores the
3907	// full resource name of the AutoML model. Format:
3908	// `projects/{project-id}/locations/{location-id}/models/{model-id}`
3909	AutomlModel string `json:"automlModel,omitempty"`
3910
3911	// Confidence: Confidence score between 0 and 1 for label assignment.
3912	Confidence float64 `json:"confidence,omitempty"`
3913
3914	// Name: Name of the label. When the label is generated from AutoML Text
3915	// Classification model, this field represents the name of the category.
3916	Name string `json:"name,omitempty"`
3917
3918	// ForceSendFields is a list of field names (e.g. "AutomlModel") to
3919	// unconditionally include in API requests. By default, fields with
3920	// empty or default values are omitted from API requests. However, any
3921	// non-pointer, non-interface field appearing in ForceSendFields will be
3922	// sent to the server regardless of whether the field is empty or not.
3923	// This may be used to include empty fields in Patch requests.
3924	ForceSendFields []string `json:"-"`
3925
3926	// NullFields is a list of field names (e.g. "AutomlModel") to include
3927	// in API requests with the JSON null value. By default, fields with
3928	// empty values are omitted from API requests. However, any field with
3929	// an empty value appearing in NullFields will be sent to the server as
3930	// null. It is an error if a field in this list has a non-empty value.
3931	// This may be used to include null fields in Patch requests.
3932	NullFields []string `json:"-"`
3933}
3934
3935func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) MarshalJSON() ([]byte, error) {
3936	type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
3937	raw := NoMethod(*s)
3938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3939}
3940
3941func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) UnmarshalJSON(data []byte) error {
3942	type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
3943	var s1 struct {
3944		Confidence gensupport.JSONFloat64 `json:"confidence"`
3945		*NoMethod
3946	}
3947	s1.NoMethod = (*NoMethod)(s)
3948	if err := json.Unmarshal(data, &s1); err != nil {
3949		return err
3950	}
3951	s.Confidence = float64(s1.Confidence)
3952	return nil
3953}
3954
3955// GoogleCloudDocumentaiV1beta2DocumentPage: A page in a Document.
3956type GoogleCloudDocumentaiV1beta2DocumentPage struct {
3957	// Blocks: A list of visually detected text blocks on the page. A block
3958	// has a set of lines (collected into paragraphs) that have a common
3959	// line-spacing and orientation.
3960	Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"`
3961
3962	// DetectedLanguages: A list of detected languages together with
3963	// confidence.
3964	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
3965
3966	// Dimension: Physical dimension of the page.
3967	Dimension *GoogleCloudDocumentaiV1beta2DocumentPageDimension `json:"dimension,omitempty"`
3968
3969	// FormFields: A list of visually detected form fields on the page.
3970	FormFields []*GoogleCloudDocumentaiV1beta2DocumentPageFormField `json:"formFields,omitempty"`
3971
3972	// Image: Rendered image for this page. This image is preprocessed to
3973	// remove any skew, rotation, and distortions such that the annotation
3974	// bounding boxes can be upright and axis-aligned.
3975	Image *GoogleCloudDocumentaiV1beta2DocumentPageImage `json:"image,omitempty"`
3976
3977	// Layout: Layout for the page.
3978	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
3979
3980	// Lines: A list of visually detected text lines on the page. A
3981	// collection of tokens that a human would perceive as a line.
3982	Lines []*GoogleCloudDocumentaiV1beta2DocumentPageLine `json:"lines,omitempty"`
3983
3984	// PageNumber: 1-based index for current Page in a parent Document.
3985	// Useful when a page is taken out of a Document for individual
3986	// processing.
3987	PageNumber int64 `json:"pageNumber,omitempty"`
3988
3989	// Paragraphs: A list of visually detected text paragraphs on the page.
3990	// A collection of lines that a human would perceive as a paragraph.
3991	Paragraphs []*GoogleCloudDocumentaiV1beta2DocumentPageParagraph `json:"paragraphs,omitempty"`
3992
3993	// Provenance: The history of this page.
3994	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
3995
3996	// Tables: A list of visually detected tables on the page.
3997	Tables []*GoogleCloudDocumentaiV1beta2DocumentPageTable `json:"tables,omitempty"`
3998
3999	// Tokens: A list of visually detected tokens on the page.
4000	Tokens []*GoogleCloudDocumentaiV1beta2DocumentPageToken `json:"tokens,omitempty"`
4001
4002	// Transforms: Transformation matrices that were applied to the original
4003	// document image to produce Page.image.
4004	Transforms []*GoogleCloudDocumentaiV1beta2DocumentPageMatrix `json:"transforms,omitempty"`
4005
4006	// VisualElements: A list of detected non-text visual elements e.g.
4007	// checkbox, signature etc. on the page.
4008	VisualElements []*GoogleCloudDocumentaiV1beta2DocumentPageVisualElement `json:"visualElements,omitempty"`
4009
4010	// ForceSendFields is a list of field names (e.g. "Blocks") to
4011	// unconditionally include in API requests. By default, fields with
4012	// empty or default values are omitted from API requests. However, any
4013	// non-pointer, non-interface field appearing in ForceSendFields will be
4014	// sent to the server regardless of whether the field is empty or not.
4015	// This may be used to include empty fields in Patch requests.
4016	ForceSendFields []string `json:"-"`
4017
4018	// NullFields is a list of field names (e.g. "Blocks") to include in API
4019	// requests with the JSON null value. By default, fields with empty
4020	// values are omitted from API requests. However, any field with an
4021	// empty value appearing in NullFields will be sent to the server as
4022	// null. It is an error if a field in this list has a non-empty value.
4023	// This may be used to include null fields in Patch requests.
4024	NullFields []string `json:"-"`
4025}
4026
4027func (s *GoogleCloudDocumentaiV1beta2DocumentPage) MarshalJSON() ([]byte, error) {
4028	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPage
4029	raw := NoMethod(*s)
4030	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4031}
4032
4033// GoogleCloudDocumentaiV1beta2DocumentPageAnchor: Referencing the
4034// visual context of the entity in the Document.pages. Page anchors can
4035// be cross-page, consist of multiple bounding polygons and optionally
4036// reference specific layout element types.
4037type GoogleCloudDocumentaiV1beta2DocumentPageAnchor struct {
4038	// PageRefs: One or more references to visual page elements
4039	PageRefs []*GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
4040
4041	// ForceSendFields is a list of field names (e.g. "PageRefs") to
4042	// unconditionally include in API requests. By default, fields with
4043	// empty or default values are omitted from API requests. However, any
4044	// non-pointer, non-interface field appearing in ForceSendFields will be
4045	// sent to the server regardless of whether the field is empty or not.
4046	// This may be used to include empty fields in Patch requests.
4047	ForceSendFields []string `json:"-"`
4048
4049	// NullFields is a list of field names (e.g. "PageRefs") to include in
4050	// API requests with the JSON null value. By default, fields with empty
4051	// values are omitted from API requests. However, any field with an
4052	// empty value appearing in NullFields will be sent to the server as
4053	// null. It is an error if a field in this list has a non-empty value.
4054	// This may be used to include null fields in Patch requests.
4055	NullFields []string `json:"-"`
4056}
4057
4058func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, error) {
4059	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchor
4060	raw := NoMethod(*s)
4061	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4062}
4063
4064// GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef: Represents a
4065// weak reference to a page element within a document.
4066type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct {
4067	// BoundingPoly: Optional. Identifies the bounding polygon of a layout
4068	// element on the page.
4069	BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
4070
4071	// Confidence: Optional. Confidence of detected page element, if
4072	// applicable. Range [0, 1].
4073	Confidence float64 `json:"confidence,omitempty"`
4074
4075	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
4076	LayoutId string `json:"layoutId,omitempty"`
4077
4078	// LayoutType: Optional. The type of the layout element that is being
4079	// referenced if any.
4080	//
4081	// Possible values:
4082	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
4083	//   "BLOCK" - References a Page.blocks element.
4084	//   "PARAGRAPH" - References a Page.paragraphs element.
4085	//   "LINE" - References a Page.lines element.
4086	//   "TOKEN" - References a Page.tokens element.
4087	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
4088	//   "TABLE" - Refrrences a Page.tables element.
4089	//   "FORM_FIELD" - References a Page.form_fields element.
4090	LayoutType string `json:"layoutType,omitempty"`
4091
4092	// Page: Required. Index into the Document.pages element, for example
4093	// using Document.pages to locate the related page element. This field
4094	// is skipped when its value is the default 0. See
4095	// https://developers.google.com/protocol-buffers/docs/proto3#json.
4096	Page int64 `json:"page,omitempty,string"`
4097
4098	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
4099	// unconditionally include in API requests. By default, fields with
4100	// empty or default values are omitted from API requests. However, any
4101	// non-pointer, non-interface field appearing in ForceSendFields will be
4102	// sent to the server regardless of whether the field is empty or not.
4103	// This may be used to include empty fields in Patch requests.
4104	ForceSendFields []string `json:"-"`
4105
4106	// NullFields is a list of field names (e.g. "BoundingPoly") to include
4107	// in API requests with the JSON null value. By default, fields with
4108	// empty values are omitted from API requests. However, any field with
4109	// an empty value appearing in NullFields will be sent to the server as
4110	// null. It is an error if a field in this list has a non-empty value.
4111	// This may be used to include null fields in Patch requests.
4112	NullFields []string `json:"-"`
4113}
4114
4115func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
4116	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
4117	raw := NoMethod(*s)
4118	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4119}
4120
4121func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
4122	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
4123	var s1 struct {
4124		Confidence gensupport.JSONFloat64 `json:"confidence"`
4125		*NoMethod
4126	}
4127	s1.NoMethod = (*NoMethod)(s)
4128	if err := json.Unmarshal(data, &s1); err != nil {
4129		return err
4130	}
4131	s.Confidence = float64(s1.Confidence)
4132	return nil
4133}
4134
4135// GoogleCloudDocumentaiV1beta2DocumentPageBlock: A block has a set of
4136// lines (collected into paragraphs) that have a common line-spacing and
4137// orientation.
4138type GoogleCloudDocumentaiV1beta2DocumentPageBlock struct {
4139	// DetectedLanguages: A list of detected languages together with
4140	// confidence.
4141	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4142
4143	// Layout: Layout for Block.
4144	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4145
4146	// Provenance: The history of this annotation.
4147	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4148
4149	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
4150	// to unconditionally include in API requests. By default, fields with
4151	// empty or default values are omitted from API requests. However, any
4152	// non-pointer, non-interface field appearing in ForceSendFields will be
4153	// sent to the server regardless of whether the field is empty or not.
4154	// This may be used to include empty fields in Patch requests.
4155	ForceSendFields []string `json:"-"`
4156
4157	// NullFields is a list of field names (e.g. "DetectedLanguages") to
4158	// include in API requests with the JSON null value. By default, fields
4159	// with empty values are omitted from API requests. However, any field
4160	// with an empty value appearing in NullFields will be sent to the
4161	// server as null. It is an error if a field in this list has a
4162	// non-empty value. This may be used to include null fields in Patch
4163	// requests.
4164	NullFields []string `json:"-"`
4165}
4166
4167func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, error) {
4168	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageBlock
4169	raw := NoMethod(*s)
4170	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4171}
4172
4173// GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected
4174// language for a structural component.
4175type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct {
4176	// Confidence: Confidence of detected language. Range [0, 1].
4177	Confidence float64 `json:"confidence,omitempty"`
4178
4179	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn".
4180	// For more information, see
4181	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4182	LanguageCode string `json:"languageCode,omitempty"`
4183
4184	// ForceSendFields is a list of field names (e.g. "Confidence") to
4185	// unconditionally include in API requests. By default, fields with
4186	// empty or default values are omitted from API requests. However, any
4187	// non-pointer, non-interface field appearing in ForceSendFields will be
4188	// sent to the server regardless of whether the field is empty or not.
4189	// This may be used to include empty fields in Patch requests.
4190	ForceSendFields []string `json:"-"`
4191
4192	// NullFields is a list of field names (e.g. "Confidence") to include in
4193	// API requests with the JSON null value. By default, fields with empty
4194	// values are omitted from API requests. However, any field with an
4195	// empty value appearing in NullFields will be sent to the server as
4196	// null. It is an error if a field in this list has a non-empty value.
4197	// This may be used to include null fields in Patch requests.
4198	NullFields []string `json:"-"`
4199}
4200
4201func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
4202	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
4203	raw := NoMethod(*s)
4204	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4205}
4206
4207func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
4208	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
4209	var s1 struct {
4210		Confidence gensupport.JSONFloat64 `json:"confidence"`
4211		*NoMethod
4212	}
4213	s1.NoMethod = (*NoMethod)(s)
4214	if err := json.Unmarshal(data, &s1); err != nil {
4215		return err
4216	}
4217	s.Confidence = float64(s1.Confidence)
4218	return nil
4219}
4220
4221// GoogleCloudDocumentaiV1beta2DocumentPageDimension: Dimension for the
4222// page.
4223type GoogleCloudDocumentaiV1beta2DocumentPageDimension struct {
4224	// Height: Page height.
4225	Height float64 `json:"height,omitempty"`
4226
4227	// Unit: Dimension unit.
4228	Unit string `json:"unit,omitempty"`
4229
4230	// Width: Page width.
4231	Width float64 `json:"width,omitempty"`
4232
4233	// ForceSendFields is a list of field names (e.g. "Height") to
4234	// unconditionally include in API requests. By default, fields with
4235	// empty or default values are omitted from API requests. However, any
4236	// non-pointer, non-interface field appearing in ForceSendFields will be
4237	// sent to the server regardless of whether the field is empty or not.
4238	// This may be used to include empty fields in Patch requests.
4239	ForceSendFields []string `json:"-"`
4240
4241	// NullFields is a list of field names (e.g. "Height") to include in API
4242	// requests with the JSON null value. By default, fields with empty
4243	// values are omitted from API requests. However, any field with an
4244	// empty value appearing in NullFields will be sent to the server as
4245	// null. It is an error if a field in this list has a non-empty value.
4246	// This may be used to include null fields in Patch requests.
4247	NullFields []string `json:"-"`
4248}
4249
4250func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) MarshalJSON() ([]byte, error) {
4251	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
4252	raw := NoMethod(*s)
4253	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4254}
4255
4256func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) UnmarshalJSON(data []byte) error {
4257	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
4258	var s1 struct {
4259		Height gensupport.JSONFloat64 `json:"height"`
4260		Width  gensupport.JSONFloat64 `json:"width"`
4261		*NoMethod
4262	}
4263	s1.NoMethod = (*NoMethod)(s)
4264	if err := json.Unmarshal(data, &s1); err != nil {
4265		return err
4266	}
4267	s.Height = float64(s1.Height)
4268	s.Width = float64(s1.Width)
4269	return nil
4270}
4271
4272// GoogleCloudDocumentaiV1beta2DocumentPageFormField: A form field
4273// detected on the page.
4274type GoogleCloudDocumentaiV1beta2DocumentPageFormField struct {
4275	// CorrectedKeyText: Created for Labeling UI to export key text. If
4276	// corrections were made to the text identified by the
4277	// `field_name.text_anchor`, this field will contain the correction.
4278	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
4279
4280	// CorrectedValueText: Created for Labeling UI to export value text. If
4281	// corrections were made to the text identified by the
4282	// `field_value.text_anchor`, this field will contain the correction.
4283	CorrectedValueText string `json:"correctedValueText,omitempty"`
4284
4285	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`,
4286	// `Grand total`, `Phone number`, etc.
4287	FieldName *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldName,omitempty"`
4288
4289	// FieldValue: Layout for the FormField value.
4290	FieldValue *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldValue,omitempty"`
4291
4292	// NameDetectedLanguages: A list of detected languages for name together
4293	// with confidence.
4294	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
4295
4296	// Provenance: The history of this annotation.
4297	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4298
4299	// ValueDetectedLanguages: A list of detected languages for value
4300	// together with confidence.
4301	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
4302
4303	// ValueType: If the value is non-textual, this field represents the
4304	// type. Current valid values are: - blank (this indicates the
4305	// field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
4306	ValueType string `json:"valueType,omitempty"`
4307
4308	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
4309	// unconditionally include in API requests. By default, fields with
4310	// empty or default values are omitted from API requests. However, any
4311	// non-pointer, non-interface field appearing in ForceSendFields will be
4312	// sent to the server regardless of whether the field is empty or not.
4313	// This may be used to include empty fields in Patch requests.
4314	ForceSendFields []string `json:"-"`
4315
4316	// NullFields is a list of field names (e.g. "CorrectedKeyText") to
4317	// include in API requests with the JSON null value. By default, fields
4318	// with empty values are omitted from API requests. However, any field
4319	// with an empty value appearing in NullFields will be sent to the
4320	// server as null. It is an error if a field in this list has a
4321	// non-empty value. This may be used to include null fields in Patch
4322	// requests.
4323	NullFields []string `json:"-"`
4324}
4325
4326func (s *GoogleCloudDocumentaiV1beta2DocumentPageFormField) MarshalJSON() ([]byte, error) {
4327	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageFormField
4328	raw := NoMethod(*s)
4329	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4330}
4331
4332// GoogleCloudDocumentaiV1beta2DocumentPageImage: Rendered image
4333// contents for this page.
4334type GoogleCloudDocumentaiV1beta2DocumentPageImage struct {
4335	// Content: Raw byte content of the image.
4336	Content string `json:"content,omitempty"`
4337
4338	// Height: Height of the image in pixels.
4339	Height int64 `json:"height,omitempty"`
4340
4341	// MimeType: Encoding mime type for the image.
4342	MimeType string `json:"mimeType,omitempty"`
4343
4344	// Width: Width of the image in pixels.
4345	Width int64 `json:"width,omitempty"`
4346
4347	// ForceSendFields is a list of field names (e.g. "Content") to
4348	// unconditionally include in API requests. By default, fields with
4349	// empty or default values are omitted from API requests. However, any
4350	// non-pointer, non-interface field appearing in ForceSendFields will be
4351	// sent to the server regardless of whether the field is empty or not.
4352	// This may be used to include empty fields in Patch requests.
4353	ForceSendFields []string `json:"-"`
4354
4355	// NullFields is a list of field names (e.g. "Content") to include in
4356	// API requests with the JSON null value. By default, fields with empty
4357	// values are omitted from API requests. However, any field with an
4358	// empty value appearing in NullFields will be sent to the server as
4359	// null. It is an error if a field in this list has a non-empty value.
4360	// This may be used to include null fields in Patch requests.
4361	NullFields []string `json:"-"`
4362}
4363
4364func (s *GoogleCloudDocumentaiV1beta2DocumentPageImage) MarshalJSON() ([]byte, error) {
4365	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImage
4366	raw := NoMethod(*s)
4367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4368}
4369
4370// GoogleCloudDocumentaiV1beta2DocumentPageLayout: Visual element
4371// describing a layout unit on a page.
4372type GoogleCloudDocumentaiV1beta2DocumentPageLayout struct {
4373	// BoundingPoly: The bounding polygon for the Layout.
4374	BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
4375
4376	// Confidence: Confidence of the current Layout within context of the
4377	// object this layout is for. e.g. confidence can be for a single token,
4378	// a table, a visual element, etc. depending on context. Range [0, 1].
4379	Confidence float64 `json:"confidence,omitempty"`
4380
4381	// Orientation: Detected orientation for the Layout.
4382	//
4383	// Possible values:
4384	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
4385	//   "PAGE_UP" - Orientation is aligned with page up.
4386	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the
4387	// head 90 degrees clockwise from upright to read.
4388	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head
4389	// 180 degrees from upright to read.
4390	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head
4391	// 90 degrees counterclockwise from upright to read.
4392	Orientation string `json:"orientation,omitempty"`
4393
4394	// TextAnchor: Text anchor indexing into the Document.text.
4395	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
4396
4397	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
4398	// unconditionally include in API requests. By default, fields with
4399	// empty or default values are omitted from API requests. However, any
4400	// non-pointer, non-interface field appearing in ForceSendFields will be
4401	// sent to the server regardless of whether the field is empty or not.
4402	// This may be used to include empty fields in Patch requests.
4403	ForceSendFields []string `json:"-"`
4404
4405	// NullFields is a list of field names (e.g. "BoundingPoly") to include
4406	// in API requests with the JSON null value. By default, fields with
4407	// empty values are omitted from API requests. However, any field with
4408	// an empty value appearing in NullFields will be sent to the server as
4409	// null. It is an error if a field in this list has a non-empty value.
4410	// This may be used to include null fields in Patch requests.
4411	NullFields []string `json:"-"`
4412}
4413
4414func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) MarshalJSON() ([]byte, error) {
4415	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
4416	raw := NoMethod(*s)
4417	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4418}
4419
4420func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) UnmarshalJSON(data []byte) error {
4421	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
4422	var s1 struct {
4423		Confidence gensupport.JSONFloat64 `json:"confidence"`
4424		*NoMethod
4425	}
4426	s1.NoMethod = (*NoMethod)(s)
4427	if err := json.Unmarshal(data, &s1); err != nil {
4428		return err
4429	}
4430	s.Confidence = float64(s1.Confidence)
4431	return nil
4432}
4433
4434// GoogleCloudDocumentaiV1beta2DocumentPageLine: A collection of tokens
4435// that a human would perceive as a line. Does not cross column
4436// boundaries, can be horizontal, vertical, etc.
4437type GoogleCloudDocumentaiV1beta2DocumentPageLine struct {
4438	// DetectedLanguages: A list of detected languages together with
4439	// confidence.
4440	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4441
4442	// Layout: Layout for Line.
4443	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4444
4445	// Provenance: The history of this annotation.
4446	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4447
4448	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
4449	// to 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. "DetectedLanguages") to
4457	// include in API requests with the JSON null value. By default, fields
4458	// with empty values are omitted from API requests. However, any field
4459	// with an empty value appearing in NullFields will be sent to the
4460	// server as null. It is an error if a field in this list has a
4461	// non-empty value. This may be used to include null fields in Patch
4462	// requests.
4463	NullFields []string `json:"-"`
4464}
4465
4466func (s *GoogleCloudDocumentaiV1beta2DocumentPageLine) MarshalJSON() ([]byte, error) {
4467	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLine
4468	raw := NoMethod(*s)
4469	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4470}
4471
4472// GoogleCloudDocumentaiV1beta2DocumentPageMatrix: Representation for
4473// transformation matrix, intended to be compatible and used with OpenCV
4474// format for image manipulation.
4475type GoogleCloudDocumentaiV1beta2DocumentPageMatrix struct {
4476	// Cols: Number of columns in the matrix.
4477	Cols int64 `json:"cols,omitempty"`
4478
4479	// Data: The matrix data.
4480	Data string `json:"data,omitempty"`
4481
4482	// Rows: Number of rows in the matrix.
4483	Rows int64 `json:"rows,omitempty"`
4484
4485	// Type: This encodes information about what data type the matrix uses.
4486	// For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
4487	// of OpenCV primitive data types, please refer to
4488	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
4489	Type int64 `json:"type,omitempty"`
4490
4491	// ForceSendFields is a list of field names (e.g. "Cols") to
4492	// unconditionally include in API requests. By default, fields with
4493	// empty or default values are omitted from API requests. However, any
4494	// non-pointer, non-interface field appearing in ForceSendFields will be
4495	// sent to the server regardless of whether the field is empty or not.
4496	// This may be used to include empty fields in Patch requests.
4497	ForceSendFields []string `json:"-"`
4498
4499	// NullFields is a list of field names (e.g. "Cols") to include in API
4500	// requests with the JSON null value. By default, fields with empty
4501	// values are omitted from API requests. However, any field with an
4502	// empty value appearing in NullFields will be sent to the server as
4503	// null. It is an error if a field in this list has a non-empty value.
4504	// This may be used to include null fields in Patch requests.
4505	NullFields []string `json:"-"`
4506}
4507
4508func (s *GoogleCloudDocumentaiV1beta2DocumentPageMatrix) MarshalJSON() ([]byte, error) {
4509	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageMatrix
4510	raw := NoMethod(*s)
4511	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4512}
4513
4514// GoogleCloudDocumentaiV1beta2DocumentPageParagraph: A collection of
4515// lines that a human would perceive as a paragraph.
4516type GoogleCloudDocumentaiV1beta2DocumentPageParagraph struct {
4517	// DetectedLanguages: A list of detected languages together with
4518	// confidence.
4519	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4520
4521	// Layout: Layout for Paragraph.
4522	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4523
4524	// Provenance: The history of this annotation.
4525	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4526
4527	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
4528	// to unconditionally include in API requests. By default, fields with
4529	// empty or default values are omitted from API requests. However, any
4530	// non-pointer, non-interface field appearing in ForceSendFields will be
4531	// sent to the server regardless of whether the field is empty or not.
4532	// This may be used to include empty fields in Patch requests.
4533	ForceSendFields []string `json:"-"`
4534
4535	// NullFields is a list of field names (e.g. "DetectedLanguages") to
4536	// include in API requests with the JSON null value. By default, fields
4537	// with empty values are omitted from API requests. However, any field
4538	// with an empty value appearing in NullFields will be sent to the
4539	// server as null. It is an error if a field in this list has a
4540	// non-empty value. This may be used to include null fields in Patch
4541	// requests.
4542	NullFields []string `json:"-"`
4543}
4544
4545func (s *GoogleCloudDocumentaiV1beta2DocumentPageParagraph) MarshalJSON() ([]byte, error) {
4546	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageParagraph
4547	raw := NoMethod(*s)
4548	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4549}
4550
4551// GoogleCloudDocumentaiV1beta2DocumentPageTable: A table representation
4552// similar to HTML table structure.
4553type GoogleCloudDocumentaiV1beta2DocumentPageTable struct {
4554	// BodyRows: Body rows of the table.
4555	BodyRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"bodyRows,omitempty"`
4556
4557	// DetectedLanguages: A list of detected languages together with
4558	// confidence.
4559	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4560
4561	// HeaderRows: Header rows of the table.
4562	HeaderRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"headerRows,omitempty"`
4563
4564	// Layout: Layout for Table.
4565	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4566
4567	// ForceSendFields is a list of field names (e.g. "BodyRows") to
4568	// unconditionally include in API requests. By default, fields with
4569	// empty or default values are omitted from API requests. However, any
4570	// non-pointer, non-interface field appearing in ForceSendFields will be
4571	// sent to the server regardless of whether the field is empty or not.
4572	// This may be used to include empty fields in Patch requests.
4573	ForceSendFields []string `json:"-"`
4574
4575	// NullFields is a list of field names (e.g. "BodyRows") to include in
4576	// API requests with the JSON null value. By default, fields with empty
4577	// values are omitted from API requests. However, any field with an
4578	// empty value appearing in NullFields will be sent to the server as
4579	// null. It is an error if a field in this list has a non-empty value.
4580	// This may be used to include null fields in Patch requests.
4581	NullFields []string `json:"-"`
4582}
4583
4584func (s *GoogleCloudDocumentaiV1beta2DocumentPageTable) MarshalJSON() ([]byte, error) {
4585	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTable
4586	raw := NoMethod(*s)
4587	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4588}
4589
4590// GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell: A cell
4591// representation inside the table.
4592type GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell struct {
4593	// ColSpan: How many columns this cell spans.
4594	ColSpan int64 `json:"colSpan,omitempty"`
4595
4596	// DetectedLanguages: A list of detected languages together with
4597	// confidence.
4598	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4599
4600	// Layout: Layout for TableCell.
4601	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4602
4603	// RowSpan: How many rows this cell spans.
4604	RowSpan int64 `json:"rowSpan,omitempty"`
4605
4606	// ForceSendFields is a list of field names (e.g. "ColSpan") 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. "ColSpan") 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 *GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
4624	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell
4625	raw := NoMethod(*s)
4626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4627}
4628
4629// GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow: A row of table
4630// cells.
4631type GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow struct {
4632	// Cells: Cells that make up this row.
4633	Cells []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell `json:"cells,omitempty"`
4634
4635	// ForceSendFields is a list of field names (e.g. "Cells") to
4636	// unconditionally include in API requests. By default, fields with
4637	// empty or default values are omitted from API requests. However, any
4638	// non-pointer, non-interface field appearing in ForceSendFields will be
4639	// sent to the server regardless of whether the field is empty or not.
4640	// This may be used to include empty fields in Patch requests.
4641	ForceSendFields []string `json:"-"`
4642
4643	// NullFields is a list of field names (e.g. "Cells") to include in API
4644	// requests with the JSON null value. By default, fields with empty
4645	// values are omitted from API requests. However, any field with an
4646	// empty value appearing in NullFields will be sent to the server as
4647	// null. It is an error if a field in this list has a non-empty value.
4648	// This may be used to include null fields in Patch requests.
4649	NullFields []string `json:"-"`
4650}
4651
4652func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
4653	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
4654	raw := NoMethod(*s)
4655	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4656}
4657
4658// GoogleCloudDocumentaiV1beta2DocumentPageToken: A detected token.
4659type GoogleCloudDocumentaiV1beta2DocumentPageToken struct {
4660	// DetectedBreak: Detected break at the end of a Token.
4661	DetectedBreak *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
4662
4663	// DetectedLanguages: A list of detected languages together with
4664	// confidence.
4665	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4666
4667	// Layout: Layout for Token.
4668	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4669
4670	// Provenance: The history of this annotation.
4671	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
4672
4673	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
4674	// unconditionally include in API requests. By default, fields with
4675	// empty or default values are omitted from API requests. However, any
4676	// non-pointer, non-interface field appearing in ForceSendFields will be
4677	// sent to the server regardless of whether the field is empty or not.
4678	// This may be used to include empty fields in Patch requests.
4679	ForceSendFields []string `json:"-"`
4680
4681	// NullFields is a list of field names (e.g. "DetectedBreak") to include
4682	// in API requests with the JSON null value. By default, fields with
4683	// empty values are omitted from API requests. However, any field with
4684	// an empty value appearing in NullFields will be sent to the server as
4685	// null. It is an error if a field in this list has a non-empty value.
4686	// This may be used to include null fields in Patch requests.
4687	NullFields []string `json:"-"`
4688}
4689
4690func (s *GoogleCloudDocumentaiV1beta2DocumentPageToken) MarshalJSON() ([]byte, error) {
4691	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageToken
4692	raw := NoMethod(*s)
4693	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4694}
4695
4696// GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak: Detected
4697// break at the end of a Token.
4698type GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak struct {
4699	// Type: Detected break type.
4700	//
4701	// Possible values:
4702	//   "TYPE_UNSPECIFIED" - Unspecified break type.
4703	//   "SPACE" - A single whitespace.
4704	//   "WIDE_SPACE" - A wider whitespace.
4705	//   "HYPHEN" - A hyphen that indicates that a token has been split
4706	// across lines.
4707	Type string `json:"type,omitempty"`
4708
4709	// ForceSendFields is a list of field names (e.g. "Type") to
4710	// unconditionally include in API requests. By default, fields with
4711	// empty or default values are omitted from API requests. However, any
4712	// non-pointer, non-interface field appearing in ForceSendFields will be
4713	// sent to the server regardless of whether the field is empty or not.
4714	// This may be used to include empty fields in Patch requests.
4715	ForceSendFields []string `json:"-"`
4716
4717	// NullFields is a list of field names (e.g. "Type") to include in API
4718	// requests with the JSON null value. By default, fields with empty
4719	// values are omitted from API requests. However, any field with an
4720	// empty value appearing in NullFields will be sent to the server as
4721	// null. It is an error if a field in this list has a non-empty value.
4722	// This may be used to include null fields in Patch requests.
4723	NullFields []string `json:"-"`
4724}
4725
4726func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
4727	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
4728	raw := NoMethod(*s)
4729	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4730}
4731
4732// GoogleCloudDocumentaiV1beta2DocumentPageVisualElement: Detected
4733// non-text visual elements e.g. checkbox, signature etc. on the page.
4734type GoogleCloudDocumentaiV1beta2DocumentPageVisualElement struct {
4735	// DetectedLanguages: A list of detected languages together with
4736	// confidence.
4737	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
4738
4739	// Layout: Layout for VisualElement.
4740	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
4741
4742	// Type: Type of the VisualElement.
4743	Type string `json:"type,omitempty"`
4744
4745	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
4746	// to unconditionally include in API requests. By default, fields with
4747	// empty or default values are omitted from API requests. However, any
4748	// non-pointer, non-interface field appearing in ForceSendFields will be
4749	// sent to the server regardless of whether the field is empty or not.
4750	// This may be used to include empty fields in Patch requests.
4751	ForceSendFields []string `json:"-"`
4752
4753	// NullFields is a list of field names (e.g. "DetectedLanguages") to
4754	// include in API requests with the JSON null value. By default, fields
4755	// with empty values are omitted from API requests. However, any field
4756	// with an empty value appearing in NullFields will be sent to the
4757	// server as null. It is an error if a field in this list has a
4758	// non-empty value. This may be used to include null fields in Patch
4759	// requests.
4760	NullFields []string `json:"-"`
4761}
4762
4763func (s *GoogleCloudDocumentaiV1beta2DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
4764	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
4765	raw := NoMethod(*s)
4766	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4767}
4768
4769// GoogleCloudDocumentaiV1beta2DocumentProvenance: Structure to identify
4770// provenance relationships between annotations in different revisions.
4771type GoogleCloudDocumentaiV1beta2DocumentProvenance struct {
4772	// Id: The Id of this operation. Needs to be unique within the scope of
4773	// the revision.
4774	Id int64 `json:"id,omitempty"`
4775
4776	// Parents: References to the original elements that are replaced.
4777	Parents []*GoogleCloudDocumentaiV1beta2DocumentProvenanceParent `json:"parents,omitempty"`
4778
4779	// Revision: The index of the revision that produced this element.
4780	Revision int64 `json:"revision,omitempty"`
4781
4782	// Type: The type of provenance operation.
4783	//
4784	// Possible values:
4785	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified.
4786	//   "ADD" - Add an element. Implicit if no `parents` are set for the
4787	// provenance.
4788	//   "REMOVE" - The element is removed. No `parents` should be set.
4789	//   "REPLACE" - Explicitly replaces the element(s) identified by
4790	// `parents`.
4791	//   "EVAL_REQUESTED" - Element is requested for human review.
4792	//   "EVAL_APPROVED" - Element is reviewed and approved at human review,
4793	// confidence will be set to 1.0.
4794	//   "EVAL_SKIPPED" - Element is skipped in the validation process.
4795	Type string `json:"type,omitempty"`
4796
4797	// ForceSendFields is a list of field names (e.g. "Id") to
4798	// unconditionally include in API requests. By default, fields with
4799	// empty or default values are omitted from API requests. However, any
4800	// non-pointer, non-interface field appearing in ForceSendFields will be
4801	// sent to the server regardless of whether the field is empty or not.
4802	// This may be used to include empty fields in Patch requests.
4803	ForceSendFields []string `json:"-"`
4804
4805	// NullFields is a list of field names (e.g. "Id") to include in API
4806	// requests with the JSON null value. By default, fields with empty
4807	// values are omitted from API requests. However, any field with an
4808	// empty value appearing in NullFields will be sent to the server as
4809	// null. It is an error if a field in this list has a non-empty value.
4810	// This may be used to include null fields in Patch requests.
4811	NullFields []string `json:"-"`
4812}
4813
4814func (s *GoogleCloudDocumentaiV1beta2DocumentProvenance) MarshalJSON() ([]byte, error) {
4815	type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenance
4816	raw := NoMethod(*s)
4817	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4818}
4819
4820// GoogleCloudDocumentaiV1beta2DocumentProvenanceParent: Structure for
4821// referencing parent provenances. When an element replaces one of more
4822// other elements parent references identify the elements that are
4823// replaced.
4824type GoogleCloudDocumentaiV1beta2DocumentProvenanceParent struct {
4825	// Id: The id of the parent provenance.
4826	Id int64 `json:"id,omitempty"`
4827
4828	// Index: The index of the parent item in the corresponding item list
4829	// (eg. list of entities, properties within entities, etc.) on parent
4830	// revision.
4831	Index int64 `json:"index,omitempty"`
4832
4833	// Revision: The index of the [Document.revisions] identifying the
4834	// parent revision.
4835	Revision int64 `json:"revision,omitempty"`
4836
4837	// ForceSendFields is a list of field names (e.g. "Id") to
4838	// unconditionally include in API requests. By default, fields with
4839	// empty or default values are omitted from API requests. However, any
4840	// non-pointer, non-interface field appearing in ForceSendFields will be
4841	// sent to the server regardless of whether the field is empty or not.
4842	// This may be used to include empty fields in Patch requests.
4843	ForceSendFields []string `json:"-"`
4844
4845	// NullFields is a list of field names (e.g. "Id") to include in API
4846	// requests with the JSON null value. By default, fields with empty
4847	// values are omitted from API requests. However, any field with an
4848	// empty value appearing in NullFields will be sent to the server as
4849	// null. It is an error if a field in this list has a non-empty value.
4850	// This may be used to include null fields in Patch requests.
4851	NullFields []string `json:"-"`
4852}
4853
4854func (s *GoogleCloudDocumentaiV1beta2DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
4855	type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
4856	raw := NoMethod(*s)
4857	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4858}
4859
4860// GoogleCloudDocumentaiV1beta2DocumentRevision: Contains past or
4861// forward revisions of this document.
4862type GoogleCloudDocumentaiV1beta2DocumentRevision struct {
4863	// Agent: If the change was made by a person specify the name or id of
4864	// that person.
4865	Agent string `json:"agent,omitempty"`
4866
4867	// CreateTime: The time that the revision was created.
4868	CreateTime string `json:"createTime,omitempty"`
4869
4870	// HumanReview: Human Review information of this revision.
4871	HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"`
4872
4873	// Id: Id of the revision. Unique within the context of the document.
4874	Id string `json:"id,omitempty"`
4875
4876	// Parent: The revisions that this revision is based on. This can
4877	// include one or more parent (when documents are merged.) This field
4878	// represents the index into the `revisions` field.
4879	Parent []int64 `json:"parent,omitempty"`
4880
4881	// Processor: If the annotation was made by processor identify the
4882	// processor by its resource name.
4883	Processor string `json:"processor,omitempty"`
4884
4885	// ForceSendFields is a list of field names (e.g. "Agent") to
4886	// unconditionally include in API requests. By default, fields with
4887	// empty or default values are omitted from API requests. However, any
4888	// non-pointer, non-interface field appearing in ForceSendFields will be
4889	// sent to the server regardless of whether the field is empty or not.
4890	// This may be used to include empty fields in Patch requests.
4891	ForceSendFields []string `json:"-"`
4892
4893	// NullFields is a list of field names (e.g. "Agent") to include in API
4894	// requests with the JSON null value. By default, fields with empty
4895	// values are omitted from API requests. However, any field with an
4896	// empty value appearing in NullFields will be sent to the server as
4897	// null. It is an error if a field in this list has a non-empty value.
4898	// This may be used to include null fields in Patch requests.
4899	NullFields []string `json:"-"`
4900}
4901
4902func (s *GoogleCloudDocumentaiV1beta2DocumentRevision) MarshalJSON() ([]byte, error) {
4903	type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevision
4904	raw := NoMethod(*s)
4905	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4906}
4907
4908// GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview: Human Review
4909// information of the document.
4910type GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview struct {
4911	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
4912	State string `json:"state,omitempty"`
4913
4914	// StateMessage: A message providing more details about the current
4915	// state of processing. For example, the rejection reason when the state
4916	// is `rejected`.
4917	StateMessage string `json:"stateMessage,omitempty"`
4918
4919	// ForceSendFields is a list of field names (e.g. "State") to
4920	// unconditionally include in API requests. By default, fields with
4921	// empty or default values are omitted from API requests. However, any
4922	// non-pointer, non-interface field appearing in ForceSendFields will be
4923	// sent to the server regardless of whether the field is empty or not.
4924	// This may be used to include empty fields in Patch requests.
4925	ForceSendFields []string `json:"-"`
4926
4927	// NullFields is a list of field names (e.g. "State") to include in API
4928	// requests with the JSON null value. By default, fields with empty
4929	// values are omitted from API requests. However, any field with an
4930	// empty value appearing in NullFields will be sent to the server as
4931	// null. It is an error if a field in this list has a non-empty value.
4932	// This may be used to include null fields in Patch requests.
4933	NullFields []string `json:"-"`
4934}
4935
4936func (s *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
4937	type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview
4938	raw := NoMethod(*s)
4939	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4940}
4941
4942// GoogleCloudDocumentaiV1beta2DocumentShardInfo: For a large document,
4943// sharding may be performed to produce several document shards. Each
4944// document shard contains this field to detail which shard it is.
4945type GoogleCloudDocumentaiV1beta2DocumentShardInfo struct {
4946	// ShardCount: Total number of shards.
4947	ShardCount int64 `json:"shardCount,omitempty,string"`
4948
4949	// ShardIndex: The 0-based index of this shard.
4950	ShardIndex int64 `json:"shardIndex,omitempty,string"`
4951
4952	// TextOffset: The index of the first character in Document.text in the
4953	// overall document global text.
4954	TextOffset int64 `json:"textOffset,omitempty,string"`
4955
4956	// ForceSendFields is a list of field names (e.g. "ShardCount") to
4957	// unconditionally include in API requests. By default, fields with
4958	// empty or default values are omitted from API requests. However, any
4959	// non-pointer, non-interface field appearing in ForceSendFields will be
4960	// sent to the server regardless of whether the field is empty or not.
4961	// This may be used to include empty fields in Patch requests.
4962	ForceSendFields []string `json:"-"`
4963
4964	// NullFields is a list of field names (e.g. "ShardCount") to include in
4965	// API requests with the JSON null value. By default, fields with empty
4966	// values are omitted from API requests. However, any field with an
4967	// empty value appearing in NullFields will be sent to the server as
4968	// null. It is an error if a field in this list has a non-empty value.
4969	// This may be used to include null fields in Patch requests.
4970	NullFields []string `json:"-"`
4971}
4972
4973func (s *GoogleCloudDocumentaiV1beta2DocumentShardInfo) MarshalJSON() ([]byte, error) {
4974	type NoMethod GoogleCloudDocumentaiV1beta2DocumentShardInfo
4975	raw := NoMethod(*s)
4976	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4977}
4978
4979// GoogleCloudDocumentaiV1beta2DocumentStyle: Annotation for common text
4980// style attributes. This adheres to CSS conventions as much as
4981// possible.
4982type GoogleCloudDocumentaiV1beta2DocumentStyle struct {
4983	// BackgroundColor: Text background color.
4984	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
4985
4986	// Color: Text color.
4987	Color *GoogleTypeColor `json:"color,omitempty"`
4988
4989	// FontSize: Font size.
4990	FontSize *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize `json:"fontSize,omitempty"`
4991
4992	// FontWeight: Font weight. Possible values are normal, bold, bolder,
4993	// and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
4994	FontWeight string `json:"fontWeight,omitempty"`
4995
4996	// TextAnchor: Text anchor indexing into the Document.text.
4997	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
4998
4999	// TextDecoration: Text decoration. Follows CSS standard.
5000	// https://www.w3schools.com/cssref/pr_text_text-decoration.asp
5001	TextDecoration string `json:"textDecoration,omitempty"`
5002
5003	// TextStyle: Text style. Possible values are normal, italic, and
5004	// oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
5005	TextStyle string `json:"textStyle,omitempty"`
5006
5007	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
5008	// unconditionally include in API requests. By default, fields with
5009	// empty or default values are omitted from API requests. However, any
5010	// non-pointer, non-interface field appearing in ForceSendFields will be
5011	// sent to the server regardless of whether the field is empty or not.
5012	// This may be used to include empty fields in Patch requests.
5013	ForceSendFields []string `json:"-"`
5014
5015	// NullFields is a list of field names (e.g. "BackgroundColor") to
5016	// include in API requests with the JSON null value. By default, fields
5017	// with empty values are omitted from API requests. However, any field
5018	// with an empty value appearing in NullFields will be sent to the
5019	// server as null. It is an error if a field in this list has a
5020	// non-empty value. This may be used to include null fields in Patch
5021	// requests.
5022	NullFields []string `json:"-"`
5023}
5024
5025func (s *GoogleCloudDocumentaiV1beta2DocumentStyle) MarshalJSON() ([]byte, error) {
5026	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyle
5027	raw := NoMethod(*s)
5028	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5029}
5030
5031// GoogleCloudDocumentaiV1beta2DocumentStyleFontSize: Font size with
5032// unit.
5033type GoogleCloudDocumentaiV1beta2DocumentStyleFontSize struct {
5034	// Size: Font size for the text.
5035	Size float64 `json:"size,omitempty"`
5036
5037	// Unit: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
5038	Unit string `json:"unit,omitempty"`
5039
5040	// ForceSendFields is a list of field names (e.g. "Size") to
5041	// unconditionally include in API requests. By default, fields with
5042	// empty or default values are omitted from API requests. However, any
5043	// non-pointer, non-interface field appearing in ForceSendFields will be
5044	// sent to the server regardless of whether the field is empty or not.
5045	// This may be used to include empty fields in Patch requests.
5046	ForceSendFields []string `json:"-"`
5047
5048	// NullFields is a list of field names (e.g. "Size") to include in API
5049	// requests with the JSON null value. By default, fields with empty
5050	// values are omitted from API requests. However, any field with an
5051	// empty value appearing in NullFields will be sent to the server as
5052	// null. It is an error if a field in this list has a non-empty value.
5053	// This may be used to include null fields in Patch requests.
5054	NullFields []string `json:"-"`
5055}
5056
5057func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
5058	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
5059	raw := NoMethod(*s)
5060	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5061}
5062
5063func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
5064	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
5065	var s1 struct {
5066		Size gensupport.JSONFloat64 `json:"size"`
5067		*NoMethod
5068	}
5069	s1.NoMethod = (*NoMethod)(s)
5070	if err := json.Unmarshal(data, &s1); err != nil {
5071		return err
5072	}
5073	s.Size = float64(s1.Size)
5074	return nil
5075}
5076
5077// GoogleCloudDocumentaiV1beta2DocumentTextAnchor: Text reference
5078// indexing into the Document.text.
5079type GoogleCloudDocumentaiV1beta2DocumentTextAnchor struct {
5080	// Content: Contains the content of the text span so that users do not
5081	// have to look it up in the text_segments.
5082	Content string `json:"content,omitempty"`
5083
5084	// TextSegments: The text segments from the Document.text.
5085	TextSegments []*GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
5086
5087	// ForceSendFields is a list of field names (e.g. "Content") to
5088	// unconditionally include in API requests. By default, fields with
5089	// empty or default values are omitted from API requests. However, any
5090	// non-pointer, non-interface field appearing in ForceSendFields will be
5091	// sent to the server regardless of whether the field is empty or not.
5092	// This may be used to include empty fields in Patch requests.
5093	ForceSendFields []string `json:"-"`
5094
5095	// NullFields is a list of field names (e.g. "Content") to include in
5096	// API requests with the JSON null value. By default, fields with empty
5097	// values are omitted from API requests. However, any field with an
5098	// empty value appearing in NullFields will be sent to the server as
5099	// null. It is an error if a field in this list has a non-empty value.
5100	// This may be used to include null fields in Patch requests.
5101	NullFields []string `json:"-"`
5102}
5103
5104func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchor) MarshalJSON() ([]byte, error) {
5105	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchor
5106	raw := NoMethod(*s)
5107	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5108}
5109
5110// GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment: A text
5111// segment in the Document.text. The indices may be out of bounds which
5112// indicate that the text extends into another document shard for large
5113// sharded documents. See ShardInfo.text_offset
5114type GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment struct {
5115	// EndIndex: TextSegment half open end UTF-8 char index in the
5116	// Document.text.
5117	EndIndex int64 `json:"endIndex,omitempty,string"`
5118
5119	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
5120	StartIndex int64 `json:"startIndex,omitempty,string"`
5121
5122	// ForceSendFields is a list of field names (e.g. "EndIndex") to
5123	// unconditionally include in API requests. By default, fields with
5124	// empty or default values are omitted from API requests. However, any
5125	// non-pointer, non-interface field appearing in ForceSendFields will be
5126	// sent to the server regardless of whether the field is empty or not.
5127	// This may be used to include empty fields in Patch requests.
5128	ForceSendFields []string `json:"-"`
5129
5130	// NullFields is a list of field names (e.g. "EndIndex") to include in
5131	// API requests with the JSON null value. By default, fields with empty
5132	// values are omitted from API requests. However, any field with an
5133	// empty value appearing in NullFields will be sent to the server as
5134	// null. It is an error if a field in this list has a non-empty value.
5135	// This may be used to include null fields in Patch requests.
5136	NullFields []string `json:"-"`
5137}
5138
5139func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
5140	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
5141	raw := NoMethod(*s)
5142	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5143}
5144
5145// GoogleCloudDocumentaiV1beta2DocumentTextChange: This message is used
5146// for text changes aka. OCR corrections.
5147type GoogleCloudDocumentaiV1beta2DocumentTextChange struct {
5148	// ChangedText: The text that replaces the text identified in the
5149	// `text_anchor`.
5150	ChangedText string `json:"changedText,omitempty"`
5151
5152	// Provenance: The history of this annotation.
5153	Provenance []*GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
5154
5155	// TextAnchor: Provenance of the correction. Text anchor indexing into
5156	// the Document.text. There can only be a single
5157	// `TextAnchor.text_segments` element. If the start and end index of the
5158	// text segment are the same, the text change is inserted before that
5159	// index.
5160	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
5161
5162	// ForceSendFields is a list of field names (e.g. "ChangedText") to
5163	// unconditionally include in API requests. By default, fields with
5164	// empty or default values are omitted from API requests. However, any
5165	// non-pointer, non-interface field appearing in ForceSendFields will be
5166	// sent to the server regardless of whether the field is empty or not.
5167	// This may be used to include empty fields in Patch requests.
5168	ForceSendFields []string `json:"-"`
5169
5170	// NullFields is a list of field names (e.g. "ChangedText") to include
5171	// in API requests with the JSON null value. By default, fields with
5172	// empty values are omitted from API requests. However, any field with
5173	// an empty value appearing in NullFields will be sent to the server as
5174	// null. It is an error if a field in this list has a non-empty value.
5175	// This may be used to include null fields in Patch requests.
5176	NullFields []string `json:"-"`
5177}
5178
5179func (s *GoogleCloudDocumentaiV1beta2DocumentTextChange) MarshalJSON() ([]byte, error) {
5180	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextChange
5181	raw := NoMethod(*s)
5182	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5183}
5184
5185// GoogleCloudDocumentaiV1beta2GcsDestination: The Google Cloud Storage
5186// location where the output file will be written to.
5187type GoogleCloudDocumentaiV1beta2GcsDestination struct {
5188	Uri string `json:"uri,omitempty"`
5189
5190	// ForceSendFields is a list of field names (e.g. "Uri") to
5191	// unconditionally include in API requests. By default, fields with
5192	// empty or default values are omitted from API requests. However, any
5193	// non-pointer, non-interface field appearing in ForceSendFields will be
5194	// sent to the server regardless of whether the field is empty or not.
5195	// This may be used to include empty fields in Patch requests.
5196	ForceSendFields []string `json:"-"`
5197
5198	// NullFields is a list of field names (e.g. "Uri") to include in API
5199	// requests with the JSON null value. By default, fields with empty
5200	// values are omitted from API requests. However, any field with an
5201	// empty value appearing in NullFields will be sent to the server as
5202	// null. It is an error if a field in this list has a non-empty value.
5203	// This may be used to include null fields in Patch requests.
5204	NullFields []string `json:"-"`
5205}
5206
5207func (s *GoogleCloudDocumentaiV1beta2GcsDestination) MarshalJSON() ([]byte, error) {
5208	type NoMethod GoogleCloudDocumentaiV1beta2GcsDestination
5209	raw := NoMethod(*s)
5210	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5211}
5212
5213// GoogleCloudDocumentaiV1beta2GcsSource: The Google Cloud Storage
5214// location where the input file will be read from.
5215type GoogleCloudDocumentaiV1beta2GcsSource struct {
5216	Uri string `json:"uri,omitempty"`
5217
5218	// ForceSendFields is a list of field names (e.g. "Uri") to
5219	// unconditionally include in API requests. By default, fields with
5220	// empty or default values are omitted from API requests. However, any
5221	// non-pointer, non-interface field appearing in ForceSendFields will be
5222	// sent to the server regardless of whether the field is empty or not.
5223	// This may be used to include empty fields in Patch requests.
5224	ForceSendFields []string `json:"-"`
5225
5226	// NullFields is a list of field names (e.g. "Uri") to include in API
5227	// requests with the JSON null value. By default, fields with empty
5228	// values are omitted from API requests. However, any field with an
5229	// empty value appearing in NullFields will be sent to the server as
5230	// null. It is an error if a field in this list has a non-empty value.
5231	// This may be used to include null fields in Patch requests.
5232	NullFields []string `json:"-"`
5233}
5234
5235func (s *GoogleCloudDocumentaiV1beta2GcsSource) MarshalJSON() ([]byte, error) {
5236	type NoMethod GoogleCloudDocumentaiV1beta2GcsSource
5237	raw := NoMethod(*s)
5238	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5239}
5240
5241// GoogleCloudDocumentaiV1beta2InputConfig: The desired input location
5242// and metadata.
5243type GoogleCloudDocumentaiV1beta2InputConfig struct {
5244	// Contents: Content in bytes, represented as a stream of bytes. Note:
5245	// As with all `bytes` fields, proto buffer messages use a pure binary
5246	// representation, whereas JSON representations use base64. This field
5247	// only works for synchronous ProcessDocument method.
5248	Contents string `json:"contents,omitempty"`
5249
5250	// GcsSource: The Google Cloud Storage location to read the input from.
5251	// This must be a single file.
5252	GcsSource *GoogleCloudDocumentaiV1beta2GcsSource `json:"gcsSource,omitempty"`
5253
5254	// MimeType: Required. Mimetype of the input. Current supported
5255	// mimetypes are application/pdf, image/tiff, and image/gif. In
5256	// addition, application/json type is supported for requests with
5257	// ProcessDocumentRequest.automl_params field set. The JSON file needs
5258	// to be in Document format.
5259	MimeType string `json:"mimeType,omitempty"`
5260
5261	// ForceSendFields is a list of field names (e.g. "Contents") to
5262	// unconditionally include in API requests. By default, fields with
5263	// empty or default values are omitted from API requests. However, any
5264	// non-pointer, non-interface field appearing in ForceSendFields will be
5265	// sent to the server regardless of whether the field is empty or not.
5266	// This may be used to include empty fields in Patch requests.
5267	ForceSendFields []string `json:"-"`
5268
5269	// NullFields is a list of field names (e.g. "Contents") to include in
5270	// API requests with the JSON null value. By default, fields with empty
5271	// values are omitted from API requests. However, any field with an
5272	// empty value appearing in NullFields will be sent to the server as
5273	// null. It is an error if a field in this list has a non-empty value.
5274	// This may be used to include null fields in Patch requests.
5275	NullFields []string `json:"-"`
5276}
5277
5278func (s *GoogleCloudDocumentaiV1beta2InputConfig) MarshalJSON() ([]byte, error) {
5279	type NoMethod GoogleCloudDocumentaiV1beta2InputConfig
5280	raw := NoMethod(*s)
5281	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5282}
5283
5284// GoogleCloudDocumentaiV1beta2NormalizedVertex: A vertex represents a
5285// 2D point in the image. NOTE: the normalized vertex coordinates are
5286// relative to the original image and range from 0 to 1.
5287type GoogleCloudDocumentaiV1beta2NormalizedVertex struct {
5288	// X: X coordinate.
5289	X float64 `json:"x,omitempty"`
5290
5291	// Y: Y coordinate (starts from the top of the image).
5292	Y float64 `json:"y,omitempty"`
5293
5294	// ForceSendFields is a list of field names (e.g. "X") to
5295	// unconditionally include in API requests. By default, fields with
5296	// empty or default values are omitted from API requests. However, any
5297	// non-pointer, non-interface field appearing in ForceSendFields will be
5298	// sent to the server regardless of whether the field is empty or not.
5299	// This may be used to include empty fields in Patch requests.
5300	ForceSendFields []string `json:"-"`
5301
5302	// NullFields is a list of field names (e.g. "X") to include in API
5303	// requests with the JSON null value. By default, fields with empty
5304	// values are omitted from API requests. However, any field with an
5305	// empty value appearing in NullFields will be sent to the server as
5306	// null. It is an error if a field in this list has a non-empty value.
5307	// This may be used to include null fields in Patch requests.
5308	NullFields []string `json:"-"`
5309}
5310
5311func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) MarshalJSON() ([]byte, error) {
5312	type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
5313	raw := NoMethod(*s)
5314	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5315}
5316
5317func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) UnmarshalJSON(data []byte) error {
5318	type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
5319	var s1 struct {
5320		X gensupport.JSONFloat64 `json:"x"`
5321		Y gensupport.JSONFloat64 `json:"y"`
5322		*NoMethod
5323	}
5324	s1.NoMethod = (*NoMethod)(s)
5325	if err := json.Unmarshal(data, &s1); err != nil {
5326		return err
5327	}
5328	s.X = float64(s1.X)
5329	s.Y = float64(s1.Y)
5330	return nil
5331}
5332
5333// GoogleCloudDocumentaiV1beta2OperationMetadata: Contains metadata for
5334// the BatchProcessDocuments operation.
5335type GoogleCloudDocumentaiV1beta2OperationMetadata struct {
5336	// CreateTime: The creation time of the operation.
5337	CreateTime string `json:"createTime,omitempty"`
5338
5339	// State: The state of the current batch processing.
5340	//
5341	// Possible values:
5342	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
5343	// state is omitted.
5344	//   "ACCEPTED" - Request is received.
5345	//   "WAITING" - Request operation is waiting for scheduling.
5346	//   "RUNNING" - Request is being processed.
5347	//   "SUCCEEDED" - The batch processing completed successfully.
5348	//   "CANCELLED" - The batch processing was cancelled.
5349	//   "FAILED" - The batch processing has failed.
5350	State string `json:"state,omitempty"`
5351
5352	// StateMessage: A message providing more details about the current
5353	// state of processing.
5354	StateMessage string `json:"stateMessage,omitempty"`
5355
5356	// UpdateTime: The last update time of the operation.
5357	UpdateTime string `json:"updateTime,omitempty"`
5358
5359	// ForceSendFields is a list of field names (e.g. "CreateTime") to
5360	// unconditionally include in API requests. By default, fields with
5361	// empty or default values are omitted from API requests. However, any
5362	// non-pointer, non-interface field appearing in ForceSendFields will be
5363	// sent to the server regardless of whether the field is empty or not.
5364	// This may be used to include empty fields in Patch requests.
5365	ForceSendFields []string `json:"-"`
5366
5367	// NullFields is a list of field names (e.g. "CreateTime") to include in
5368	// API requests with the JSON null value. By default, fields with empty
5369	// values are omitted from API requests. However, any field with an
5370	// empty value appearing in NullFields will be sent to the server as
5371	// null. It is an error if a field in this list has a non-empty value.
5372	// This may be used to include null fields in Patch requests.
5373	NullFields []string `json:"-"`
5374}
5375
5376func (s *GoogleCloudDocumentaiV1beta2OperationMetadata) MarshalJSON() ([]byte, error) {
5377	type NoMethod GoogleCloudDocumentaiV1beta2OperationMetadata
5378	raw := NoMethod(*s)
5379	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5380}
5381
5382// GoogleCloudDocumentaiV1beta2OutputConfig: The desired output location
5383// and metadata.
5384type GoogleCloudDocumentaiV1beta2OutputConfig struct {
5385	// GcsDestination: The Google Cloud Storage location to write the output
5386	// to.
5387	GcsDestination *GoogleCloudDocumentaiV1beta2GcsDestination `json:"gcsDestination,omitempty"`
5388
5389	// PagesPerShard: The max number of pages to include into each output
5390	// Document shard JSON on Google Cloud Storage. The valid range is [1,
5391	// 100]. If not specified, the default value is 20. For example, for one
5392	// pdf file with 100 pages, 100 parsed pages will be produced. If
5393	// `pages_per_shard` = 20, then 5 Document shard JSON files each
5394	// containing 20 parsed pages will be written under the prefix
5395	// OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x
5396	// and y are 1-indexed page numbers. Example GCS outputs with 157 pages
5397	// and pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json
5398	// pages-101-to-150.json pages-151-to-157.json
5399	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
5400
5401	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
5402	// unconditionally include in API requests. By default, fields with
5403	// empty or default values are omitted from API requests. However, any
5404	// non-pointer, non-interface field appearing in ForceSendFields will be
5405	// sent to the server regardless of whether the field is empty or not.
5406	// This may be used to include empty fields in Patch requests.
5407	ForceSendFields []string `json:"-"`
5408
5409	// NullFields is a list of field names (e.g. "GcsDestination") to
5410	// include in API requests with the JSON null value. By default, fields
5411	// with empty values are omitted from API requests. However, any field
5412	// with an empty value appearing in NullFields will be sent to the
5413	// server as null. It is an error if a field in this list has a
5414	// non-empty value. This may be used to include null fields in Patch
5415	// requests.
5416	NullFields []string `json:"-"`
5417}
5418
5419func (s *GoogleCloudDocumentaiV1beta2OutputConfig) MarshalJSON() ([]byte, error) {
5420	type NoMethod GoogleCloudDocumentaiV1beta2OutputConfig
5421	raw := NoMethod(*s)
5422	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5423}
5424
5425// GoogleCloudDocumentaiV1beta2ProcessDocumentResponse: Response to a
5426// single document processing request.
5427type GoogleCloudDocumentaiV1beta2ProcessDocumentResponse struct {
5428	// InputConfig: Information about the input file. This is the same as
5429	// the corresponding input config in the request.
5430	InputConfig *GoogleCloudDocumentaiV1beta2InputConfig `json:"inputConfig,omitempty"`
5431
5432	// OutputConfig: The output location of the parsed responses. The
5433	// responses are written to this location as JSON-serialized `Document`
5434	// objects.
5435	OutputConfig *GoogleCloudDocumentaiV1beta2OutputConfig `json:"outputConfig,omitempty"`
5436
5437	// ForceSendFields is a list of field names (e.g. "InputConfig") to
5438	// unconditionally include in API requests. By default, fields with
5439	// empty or default values are omitted from API requests. However, any
5440	// non-pointer, non-interface field appearing in ForceSendFields will be
5441	// sent to the server regardless of whether the field is empty or not.
5442	// This may be used to include empty fields in Patch requests.
5443	ForceSendFields []string `json:"-"`
5444
5445	// NullFields is a list of field names (e.g. "InputConfig") to include
5446	// in API requests with the JSON null value. By default, fields with
5447	// empty values are omitted from API requests. However, any field with
5448	// an empty value appearing in NullFields will be sent to the server as
5449	// null. It is an error if a field in this list has a non-empty value.
5450	// This may be used to include null fields in Patch requests.
5451	NullFields []string `json:"-"`
5452}
5453
5454func (s *GoogleCloudDocumentaiV1beta2ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
5455	type NoMethod GoogleCloudDocumentaiV1beta2ProcessDocumentResponse
5456	raw := NoMethod(*s)
5457	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5458}
5459
5460// GoogleCloudDocumentaiV1beta2Vertex: A vertex represents a 2D point in
5461// the image. NOTE: the vertex coordinates are in the same scale as the
5462// original image.
5463type GoogleCloudDocumentaiV1beta2Vertex struct {
5464	// X: X coordinate.
5465	X int64 `json:"x,omitempty"`
5466
5467	// Y: Y coordinate (starts from the top of the image).
5468	Y int64 `json:"y,omitempty"`
5469
5470	// ForceSendFields is a list of field names (e.g. "X") to
5471	// unconditionally include in API requests. By default, fields with
5472	// empty or default values are omitted from API requests. However, any
5473	// non-pointer, non-interface field appearing in ForceSendFields will be
5474	// sent to the server regardless of whether the field is empty or not.
5475	// This may be used to include empty fields in Patch requests.
5476	ForceSendFields []string `json:"-"`
5477
5478	// NullFields is a list of field names (e.g. "X") to include in API
5479	// requests with the JSON null value. By default, fields with empty
5480	// values are omitted from API requests. However, any field with an
5481	// empty value appearing in NullFields will be sent to the server as
5482	// null. It is an error if a field in this list has a non-empty value.
5483	// This may be used to include null fields in Patch requests.
5484	NullFields []string `json:"-"`
5485}
5486
5487func (s *GoogleCloudDocumentaiV1beta2Vertex) MarshalJSON() ([]byte, error) {
5488	type NoMethod GoogleCloudDocumentaiV1beta2Vertex
5489	raw := NoMethod(*s)
5490	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5491}
5492
5493// GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig: The common
5494// config to specify a set of documents used as input.
5495type GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig struct {
5496	// GcsDocuments: The set of documents individually specified on Cloud
5497	// Storage.
5498	GcsDocuments *GoogleCloudDocumentaiV1beta3GcsDocuments `json:"gcsDocuments,omitempty"`
5499
5500	// GcsPrefix: The set of documents that match the specified Cloud
5501	// Storage [gcs_prefix].
5502	GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"`
5503
5504	// ForceSendFields is a list of field names (e.g. "GcsDocuments") to
5505	// unconditionally include in API requests. By default, fields with
5506	// empty or default values are omitted from API requests. However, any
5507	// non-pointer, non-interface field appearing in ForceSendFields will be
5508	// sent to the server regardless of whether the field is empty or not.
5509	// This may be used to include empty fields in Patch requests.
5510	ForceSendFields []string `json:"-"`
5511
5512	// NullFields is a list of field names (e.g. "GcsDocuments") to include
5513	// in API requests with the JSON null value. By default, fields with
5514	// empty values are omitted from API requests. However, any field with
5515	// an empty value appearing in NullFields will be sent to the server as
5516	// null. It is an error if a field in this list has a non-empty value.
5517	// This may be used to include null fields in Patch requests.
5518	NullFields []string `json:"-"`
5519}
5520
5521func (s *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig) MarshalJSON() ([]byte, error) {
5522	type NoMethod GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig
5523	raw := NoMethod(*s)
5524	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5525}
5526
5527// GoogleCloudDocumentaiV1beta3BatchProcessMetadata: The long running
5528// operation metadata for batch process method.
5529type GoogleCloudDocumentaiV1beta3BatchProcessMetadata struct {
5530	// CreateTime: The creation time of the operation.
5531	CreateTime string `json:"createTime,omitempty"`
5532
5533	// IndividualProcessStatuses: The list of response details of each
5534	// document.
5535	IndividualProcessStatuses []*GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
5536
5537	// State: The state of the current batch processing.
5538	//
5539	// Possible values:
5540	//   "STATE_UNSPECIFIED" - The default value. This value is used if the
5541	// state is omitted.
5542	//   "WAITING" - Request operation is waiting for scheduling.
5543	//   "RUNNING" - Request is being processed.
5544	//   "SUCCEEDED" - The batch processing completed successfully.
5545	//   "CANCELLING" - The batch processing was being cancelled.
5546	//   "CANCELLED" - The batch processing was cancelled.
5547	//   "FAILED" - The batch processing has failed.
5548	State string `json:"state,omitempty"`
5549
5550	// StateMessage: A message providing more details about the current
5551	// state of processing. For example, the error message if the operation
5552	// is failed.
5553	StateMessage string `json:"stateMessage,omitempty"`
5554
5555	// UpdateTime: The last update time of the operation.
5556	UpdateTime string `json:"updateTime,omitempty"`
5557
5558	// ForceSendFields is a list of field names (e.g. "CreateTime") to
5559	// unconditionally include in API requests. By default, fields with
5560	// empty or default values are omitted from API requests. However, any
5561	// non-pointer, non-interface field appearing in ForceSendFields will be
5562	// sent to the server regardless of whether the field is empty or not.
5563	// This may be used to include empty fields in Patch requests.
5564	ForceSendFields []string `json:"-"`
5565
5566	// NullFields is a list of field names (e.g. "CreateTime") to include in
5567	// API requests with the JSON null value. By default, fields with empty
5568	// values are omitted from API requests. However, any field with an
5569	// empty value appearing in NullFields will be sent to the server as
5570	// null. It is an error if a field in this list has a non-empty value.
5571	// This may be used to include null fields in Patch requests.
5572	NullFields []string `json:"-"`
5573}
5574
5575func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadata) MarshalJSON() ([]byte, error) {
5576	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadata
5577	raw := NoMethod(*s)
5578	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5579}
5580
5581// GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatu
5582// s: The status of a each individual document in the batch process.
5583type GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus struct {
5584	// HumanReviewOperation: The name of the operation triggered by the
5585	// processed document. If the human review process is not triggered,
5586	// this field will be empty. It has the same response type and metadata
5587	// as the long running operation returned by ReviewDocument method.
5588	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
5589
5590	// HumanReviewStatus: The status of human review on the processed
5591	// document.
5592	HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
5593
5594	// InputGcsSource: The source of the document, same as the
5595	// [input_gcs_source] field in the request when the batch process
5596	// started. The batch process is started by take snapshot of that
5597	// document, since a user can move or change that document during the
5598	// process.
5599	InputGcsSource string `json:"inputGcsSource,omitempty"`
5600
5601	// OutputGcsDestination: The output_gcs_destination (in the request as
5602	// 'output_gcs_destination') of the processed document if it was
5603	// successful, otherwise empty.
5604	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
5605
5606	// Status: The status of the processing of the document.
5607	Status *GoogleRpcStatus `json:"status,omitempty"`
5608
5609	// ForceSendFields is a list of field names (e.g.
5610	// "HumanReviewOperation") to unconditionally include in API requests.
5611	// By default, fields with empty or default values are omitted from API
5612	// requests. However, any non-pointer, non-interface field appearing in
5613	// ForceSendFields will be sent to the server regardless of whether the
5614	// field is empty or not. This may be used to include empty fields in
5615	// Patch requests.
5616	ForceSendFields []string `json:"-"`
5617
5618	// NullFields is a list of field names (e.g. "HumanReviewOperation") to
5619	// include in API requests with the JSON null value. By default, fields
5620	// with empty values are omitted from API requests. However, any field
5621	// with an empty value appearing in NullFields will be sent to the
5622	// server as null. It is an error if a field in this list has a
5623	// non-empty value. This may be used to include null fields in Patch
5624	// requests.
5625	NullFields []string `json:"-"`
5626}
5627
5628func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
5629	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
5630	raw := NoMethod(*s)
5631	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5632}
5633
5634// GoogleCloudDocumentaiV1beta3BatchProcessRequest: Request message for
5635// batch process document method.
5636type GoogleCloudDocumentaiV1beta3BatchProcessRequest struct {
5637	// DocumentOutputConfig: The overall output config for batch process.
5638	DocumentOutputConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfig `json:"documentOutputConfig,omitempty"`
5639
5640	// InputConfigs: The input config for each single document in the batch
5641	// process.
5642	InputConfigs []*GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig `json:"inputConfigs,omitempty"`
5643
5644	// InputDocuments: The input documents for batch process.
5645	InputDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"inputDocuments,omitempty"`
5646
5647	// OutputConfig: The overall output config for batch process.
5648	OutputConfig *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig `json:"outputConfig,omitempty"`
5649
5650	// SkipHumanReview: Whether Human Review feature should be skipped for
5651	// this request. Default to false.
5652	SkipHumanReview bool `json:"skipHumanReview,omitempty"`
5653
5654	// ForceSendFields is a list of field names (e.g.
5655	// "DocumentOutputConfig") to unconditionally include in API requests.
5656	// By default, fields with empty or default values are omitted from API
5657	// requests. However, any non-pointer, non-interface field appearing in
5658	// ForceSendFields will be sent to the server regardless of whether the
5659	// field is empty or not. This may be used to include empty fields in
5660	// Patch requests.
5661	ForceSendFields []string `json:"-"`
5662
5663	// NullFields is a list of field names (e.g. "DocumentOutputConfig") to
5664	// include in API requests with the JSON null value. By default, fields
5665	// with empty values are omitted from API requests. However, any field
5666	// with an empty value appearing in NullFields will be sent to the
5667	// server as null. It is an error if a field in this list has a
5668	// non-empty value. This may be used to include null fields in Patch
5669	// requests.
5670	NullFields []string `json:"-"`
5671}
5672
5673func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequest) MarshalJSON() ([]byte, error) {
5674	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequest
5675	raw := NoMethod(*s)
5676	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5677}
5678
5679// GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig: The
5680// message for input config in batch process.
5681type GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig struct {
5682	// GcsSource: The Cloud Storage location as the source of the document.
5683	GcsSource string `json:"gcsSource,omitempty"`
5684
5685	// MimeType: Mimetype of the input. If the input is a raw document, the
5686	// supported mimetypes are application/pdf, image/tiff, and image/gif.
5687	// If the input is a [Document] proto, the type should be
5688	// application/json.
5689	MimeType string `json:"mimeType,omitempty"`
5690
5691	// ForceSendFields is a list of field names (e.g. "GcsSource") to
5692	// unconditionally include in API requests. By default, fields with
5693	// empty or default values are omitted from API requests. However, any
5694	// non-pointer, non-interface field appearing in ForceSendFields will be
5695	// sent to the server regardless of whether the field is empty or not.
5696	// This may be used to include empty fields in Patch requests.
5697	ForceSendFields []string `json:"-"`
5698
5699	// NullFields is a list of field names (e.g. "GcsSource") to include in
5700	// API requests with the JSON null value. By default, fields with empty
5701	// values are omitted from API requests. However, any field with an
5702	// empty value appearing in NullFields will be sent to the server as
5703	// null. It is an error if a field in this list has a non-empty value.
5704	// This may be used to include null fields in Patch requests.
5705	NullFields []string `json:"-"`
5706}
5707
5708func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig) MarshalJSON() ([]byte, error) {
5709	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig
5710	raw := NoMethod(*s)
5711	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5712}
5713
5714// GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig: The
5715// message for output config in batch process.
5716type GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig struct {
5717	// GcsDestination: The output Cloud Storage directory to put the
5718	// processed documents.
5719	GcsDestination string `json:"gcsDestination,omitempty"`
5720
5721	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
5722	// unconditionally include in API requests. By default, fields with
5723	// empty or default values are omitted from API requests. However, any
5724	// non-pointer, non-interface field appearing in ForceSendFields will be
5725	// sent to the server regardless of whether the field is empty or not.
5726	// This may be used to include empty fields in Patch requests.
5727	ForceSendFields []string `json:"-"`
5728
5729	// NullFields is a list of field names (e.g. "GcsDestination") to
5730	// include in API requests with the JSON null value. By default, fields
5731	// with empty values are omitted from API requests. However, any field
5732	// with an empty value appearing in NullFields will be sent to the
5733	// server as null. It is an error if a field in this list has a
5734	// non-empty value. This may be used to include null fields in Patch
5735	// requests.
5736	NullFields []string `json:"-"`
5737}
5738
5739func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig) MarshalJSON() ([]byte, error) {
5740	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig
5741	raw := NoMethod(*s)
5742	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5743}
5744
5745// GoogleCloudDocumentaiV1beta3BatchProcessResponse: Response message
5746// for batch process document method.
5747type GoogleCloudDocumentaiV1beta3BatchProcessResponse struct {
5748}
5749
5750// GoogleCloudDocumentaiV1beta3BoundingPoly: A bounding polygon for the
5751// detected image annotation.
5752type GoogleCloudDocumentaiV1beta3BoundingPoly struct {
5753	// NormalizedVertices: The bounding polygon normalized vertices.
5754	NormalizedVertices []*GoogleCloudDocumentaiV1beta3NormalizedVertex `json:"normalizedVertices,omitempty"`
5755
5756	// Vertices: The bounding polygon vertices.
5757	Vertices []*GoogleCloudDocumentaiV1beta3Vertex `json:"vertices,omitempty"`
5758
5759	// ForceSendFields is a list of field names (e.g. "NormalizedVertices")
5760	// to unconditionally include in API requests. By default, fields with
5761	// empty or default values are omitted from API requests. However, any
5762	// non-pointer, non-interface field appearing in ForceSendFields will be
5763	// sent to the server regardless of whether the field is empty or not.
5764	// This may be used to include empty fields in Patch requests.
5765	ForceSendFields []string `json:"-"`
5766
5767	// NullFields is a list of field names (e.g. "NormalizedVertices") to
5768	// include in API requests with the JSON null value. By default, fields
5769	// with empty values are omitted from API requests. However, any field
5770	// with an empty value appearing in NullFields will be sent to the
5771	// server as null. It is an error if a field in this list has a
5772	// non-empty value. This may be used to include null fields in Patch
5773	// requests.
5774	NullFields []string `json:"-"`
5775}
5776
5777func (s *GoogleCloudDocumentaiV1beta3BoundingPoly) MarshalJSON() ([]byte, error) {
5778	type NoMethod GoogleCloudDocumentaiV1beta3BoundingPoly
5779	raw := NoMethod(*s)
5780	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5781}
5782
5783// GoogleCloudDocumentaiV1beta3CommonOperationMetadata: The common
5784// metadata for long running operations.
5785type GoogleCloudDocumentaiV1beta3CommonOperationMetadata struct {
5786	// CreateTime: The creation time of the operation.
5787	CreateTime string `json:"createTime,omitempty"`
5788
5789	// Resource: A related resource to this operation.
5790	Resource string `json:"resource,omitempty"`
5791
5792	// State: The state of the operation.
5793	//
5794	// Possible values:
5795	//   "STATE_UNSPECIFIED" - Unspecified state.
5796	//   "RUNNING" - Operation is still running.
5797	//   "CANCELLING" - Operation is being cancelled.
5798	//   "SUCCEEDED" - Operation succeeded.
5799	//   "FAILED" - Operation failed.
5800	//   "CANCELLED" - Operation is cancelled.
5801	State string `json:"state,omitempty"`
5802
5803	// StateMessage: A message providing more details about the current
5804	// state of processing.
5805	StateMessage string `json:"stateMessage,omitempty"`
5806
5807	// UpdateTime: The last update time of the operation.
5808	UpdateTime string `json:"updateTime,omitempty"`
5809
5810	// ForceSendFields is a list of field names (e.g. "CreateTime") to
5811	// unconditionally include in API requests. By default, fields with
5812	// empty or default values are omitted from API requests. However, any
5813	// non-pointer, non-interface field appearing in ForceSendFields will be
5814	// sent to the server regardless of whether the field is empty or not.
5815	// This may be used to include empty fields in Patch requests.
5816	ForceSendFields []string `json:"-"`
5817
5818	// NullFields is a list of field names (e.g. "CreateTime") to include in
5819	// API requests with the JSON null value. By default, fields with empty
5820	// values are omitted from API requests. However, any field with an
5821	// empty value appearing in NullFields will be sent to the server as
5822	// null. It is an error if a field in this list has a non-empty value.
5823	// This may be used to include null fields in Patch requests.
5824	NullFields []string `json:"-"`
5825}
5826
5827func (s *GoogleCloudDocumentaiV1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
5828	type NoMethod GoogleCloudDocumentaiV1beta3CommonOperationMetadata
5829	raw := NoMethod(*s)
5830	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5831}
5832
5833// GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata: The long running
5834// operation metadata for delete processor method.
5835type GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata struct {
5836	// CommonMetadata: The basic metadata of the long running operation.
5837	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
5838
5839	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
5840	// unconditionally include in API requests. By default, fields with
5841	// empty or default values are omitted from API requests. However, any
5842	// non-pointer, non-interface field appearing in ForceSendFields will be
5843	// sent to the server regardless of whether the field is empty or not.
5844	// This may be used to include empty fields in Patch requests.
5845	ForceSendFields []string `json:"-"`
5846
5847	// NullFields is a list of field names (e.g. "CommonMetadata") to
5848	// include in API requests with the JSON null value. By default, fields
5849	// with empty values are omitted from API requests. However, any field
5850	// with an empty value appearing in NullFields will be sent to the
5851	// server as null. It is an error if a field in this list has a
5852	// non-empty value. This may be used to include null fields in Patch
5853	// requests.
5854	NullFields []string `json:"-"`
5855}
5856
5857func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
5858	type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
5859	raw := NoMethod(*s)
5860	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5861}
5862
5863// GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata: The long
5864// running operation metadata for delete processor version method.
5865type GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata struct {
5866	// CommonMetadata: The basic metadata of the long running operation.
5867	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
5868
5869	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
5870	// unconditionally include in API requests. By default, fields with
5871	// empty or default values are omitted from API requests. However, any
5872	// non-pointer, non-interface field appearing in ForceSendFields will be
5873	// sent to the server regardless of whether the field is empty or not.
5874	// This may be used to include empty fields in Patch requests.
5875	ForceSendFields []string `json:"-"`
5876
5877	// NullFields is a list of field names (e.g. "CommonMetadata") to
5878	// include in API requests with the JSON null value. By default, fields
5879	// with empty values are omitted from API requests. However, any field
5880	// with an empty value appearing in NullFields will be sent to the
5881	// server as null. It is an error if a field in this list has a
5882	// non-empty value. This may be used to include null fields in Patch
5883	// requests.
5884	NullFields []string `json:"-"`
5885}
5886
5887func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
5888	type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata
5889	raw := NoMethod(*s)
5890	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5891}
5892
5893// GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata: The long
5894// running operation metadata for deploy processor version method.
5895type GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata struct {
5896	// CommonMetadata: The basic metadata of the long running operation.
5897	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
5898
5899	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
5900	// unconditionally include in API requests. By default, fields with
5901	// empty or default values are omitted from API requests. However, any
5902	// non-pointer, non-interface field appearing in ForceSendFields will be
5903	// sent to the server regardless of whether the field is empty or not.
5904	// This may be used to include empty fields in Patch requests.
5905	ForceSendFields []string `json:"-"`
5906
5907	// NullFields is a list of field names (e.g. "CommonMetadata") to
5908	// include in API requests with the JSON null value. By default, fields
5909	// with empty values are omitted from API requests. However, any field
5910	// with an empty value appearing in NullFields will be sent to the
5911	// server as null. It is an error if a field in this list has a
5912	// non-empty value. This may be used to include null fields in Patch
5913	// requests.
5914	NullFields []string `json:"-"`
5915}
5916
5917func (s *GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
5918	type NoMethod GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata
5919	raw := NoMethod(*s)
5920	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5921}
5922
5923// GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest: Request
5924// message for the deploy processor version method.
5925type GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest struct {
5926}
5927
5928// GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse: Response
5929// message for the deploy processor version method.
5930type GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse struct {
5931}
5932
5933// GoogleCloudDocumentaiV1beta3DisableProcessorMetadata: The long
5934// running operation metadata for disable processor method.
5935type GoogleCloudDocumentaiV1beta3DisableProcessorMetadata struct {
5936	// CommonMetadata: The basic metadata of the long running operation.
5937	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
5938
5939	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
5940	// unconditionally include in API requests. By default, fields with
5941	// empty or default values are omitted from API requests. However, any
5942	// non-pointer, non-interface field appearing in ForceSendFields will be
5943	// sent to the server regardless of whether the field is empty or not.
5944	// This may be used to include empty fields in Patch requests.
5945	ForceSendFields []string `json:"-"`
5946
5947	// NullFields is a list of field names (e.g. "CommonMetadata") to
5948	// include in API requests with the JSON null value. By default, fields
5949	// with empty values are omitted from API requests. However, any field
5950	// with an empty value appearing in NullFields will be sent to the
5951	// server as null. It is an error if a field in this list has a
5952	// non-empty value. This may be used to include null fields in Patch
5953	// requests.
5954	NullFields []string `json:"-"`
5955}
5956
5957func (s *GoogleCloudDocumentaiV1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
5958	type NoMethod GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
5959	raw := NoMethod(*s)
5960	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5961}
5962
5963// GoogleCloudDocumentaiV1beta3DisableProcessorRequest: Request message
5964// for the disable processor method.
5965type GoogleCloudDocumentaiV1beta3DisableProcessorRequest struct {
5966}
5967
5968// GoogleCloudDocumentaiV1beta3DisableProcessorResponse: Response
5969// message for the disable processor method. Intentionally empty proto
5970// for adding fields in future.
5971type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct {
5972}
5973
5974// GoogleCloudDocumentaiV1beta3Document: Document represents the
5975// canonical document resource in Document Understanding AI. It is an
5976// interchange format that provides insights into documents and allows
5977// for collaboration between users and Document Understanding AI to
5978// iterate and optimize for quality.
5979type GoogleCloudDocumentaiV1beta3Document struct {
5980	// Content: Optional. Inline document content, represented as a stream
5981	// of bytes. Note: As with all `bytes` fields, protobuffers use a pure
5982	// binary representation, whereas JSON representations use base64.
5983	Content string `json:"content,omitempty"`
5984
5985	// Entities: A list of entities detected on Document.text. For document
5986	// shards, entities in this list may cross shard boundaries.
5987	Entities []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"entities,omitempty"`
5988
5989	// EntityRelations: Relationship among Document.entities.
5990	EntityRelations []*GoogleCloudDocumentaiV1beta3DocumentEntityRelation `json:"entityRelations,omitempty"`
5991
5992	// Error: Any error that occurred while processing this document.
5993	Error *GoogleRpcStatus `json:"error,omitempty"`
5994
5995	// MimeType: An IANA published MIME type (also referred to as media
5996	// type). For more information, see
5997	// https://www.iana.org/assignments/media-types/media-types.xhtml.
5998	MimeType string `json:"mimeType,omitempty"`
5999
6000	// Pages: Visual page layout for the Document.
6001	Pages []*GoogleCloudDocumentaiV1beta3DocumentPage `json:"pages,omitempty"`
6002
6003	// Revisions: Revision history of this document.
6004	Revisions []*GoogleCloudDocumentaiV1beta3DocumentRevision `json:"revisions,omitempty"`
6005
6006	// ShardInfo: Information about the sharding if this document is sharded
6007	// part of a larger document. If the document is not sharded, this
6008	// message is not specified.
6009	ShardInfo *GoogleCloudDocumentaiV1beta3DocumentShardInfo `json:"shardInfo,omitempty"`
6010
6011	// Text: Optional. UTF-8 encoded text in reading order from the
6012	// document.
6013	Text string `json:"text,omitempty"`
6014
6015	// TextChanges: A list of text corrections made to [Document.text]. This
6016	// is usually used for annotating corrections to OCR mistakes. Text
6017	// changes for a given revision may not overlap with each other.
6018	TextChanges []*GoogleCloudDocumentaiV1beta3DocumentTextChange `json:"textChanges,omitempty"`
6019
6020	// TextStyles: Styles for the Document.text.
6021	TextStyles []*GoogleCloudDocumentaiV1beta3DocumentStyle `json:"textStyles,omitempty"`
6022
6023	// Uri: Optional. Currently supports Google Cloud Storage URI of the
6024	// form `gs://bucket_name/object_name`. Object versioning is not
6025	// supported. See Google Cloud Storage Request URIs
6026	// (https://cloud.google.com/storage/docs/reference-uris) for more info.
6027	Uri string `json:"uri,omitempty"`
6028
6029	// ForceSendFields is a list of field names (e.g. "Content") 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. "Content") to include in
6038	// API 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 *GoogleCloudDocumentaiV1beta3Document) MarshalJSON() ([]byte, error) {
6047	type NoMethod GoogleCloudDocumentaiV1beta3Document
6048	raw := NoMethod(*s)
6049	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6050}
6051
6052// GoogleCloudDocumentaiV1beta3DocumentEntity: An entity that could be a
6053// phrase in the text or a property belongs to the document. It is a
6054// known entity type, such as a person, an organization, or location.
6055type GoogleCloudDocumentaiV1beta3DocumentEntity struct {
6056	// Confidence: Optional. Confidence of detected Schema entity. Range [0,
6057	// 1].
6058	Confidence float64 `json:"confidence,omitempty"`
6059
6060	// Id: Optional. Canonical id. This will be a unique value in the entity
6061	// list for this document.
6062	Id string `json:"id,omitempty"`
6063
6064	// MentionId: Optional. Deprecated. Use `id` field instead.
6065	MentionId string `json:"mentionId,omitempty"`
6066
6067	// MentionText: Optional. Text value in the document e.g. `1600
6068	// Amphitheatre Pkwy`. If the entity is not present in the document,
6069	// this field will be empty.
6070	MentionText string `json:"mentionText,omitempty"`
6071
6072	// NormalizedValue: Optional. Normalized entity value. Absent if the
6073	// extracted value could not be converted or the type (e.g. address) is
6074	// not supported for certain parsers. This field is also only populated
6075	// for certain supported document types.
6076	NormalizedValue *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
6077
6078	// PageAnchor: Optional. Represents the provenance of this entity wrt.
6079	// the location on the page where it was found.
6080	PageAnchor *GoogleCloudDocumentaiV1beta3DocumentPageAnchor `json:"pageAnchor,omitempty"`
6081
6082	// Properties: Optional. Entities can be nested to form a hierarchical
6083	// data structure representing the content in the document.
6084	Properties []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"properties,omitempty"`
6085
6086	// Provenance: Optional. The history of this annotation.
6087	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6088
6089	// Redacted: Optional. Whether the entity will be redacted for
6090	// de-identification purposes.
6091	Redacted bool `json:"redacted,omitempty"`
6092
6093	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing
6094	// into the Document.text.
6095	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
6096
6097	// Type: Entity type from a schema e.g. `Address`.
6098	Type string `json:"type,omitempty"`
6099
6100	// ForceSendFields is a list of field names (e.g. "Confidence") to
6101	// unconditionally include in API requests. By default, fields with
6102	// empty or default values are omitted from API requests. However, any
6103	// non-pointer, non-interface field appearing in ForceSendFields will be
6104	// sent to the server regardless of whether the field is empty or not.
6105	// This may be used to include empty fields in Patch requests.
6106	ForceSendFields []string `json:"-"`
6107
6108	// NullFields is a list of field names (e.g. "Confidence") to include in
6109	// API requests with the JSON null value. By default, fields with empty
6110	// values are omitted from API requests. However, any field with an
6111	// empty value appearing in NullFields will be sent to the server as
6112	// null. It is an error if a field in this list has a non-empty value.
6113	// This may be used to include null fields in Patch requests.
6114	NullFields []string `json:"-"`
6115}
6116
6117func (s *GoogleCloudDocumentaiV1beta3DocumentEntity) MarshalJSON() ([]byte, error) {
6118	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntity
6119	raw := NoMethod(*s)
6120	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6121}
6122
6123func (s *GoogleCloudDocumentaiV1beta3DocumentEntity) UnmarshalJSON(data []byte) error {
6124	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntity
6125	var s1 struct {
6126		Confidence gensupport.JSONFloat64 `json:"confidence"`
6127		*NoMethod
6128	}
6129	s1.NoMethod = (*NoMethod)(s)
6130	if err := json.Unmarshal(data, &s1); err != nil {
6131		return err
6132	}
6133	s.Confidence = float64(s1.Confidence)
6134	return nil
6135}
6136
6137// GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue: Parsed and
6138// normalized entity value.
6139type GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue struct {
6140	// AddressValue: Postal address. See also:
6141	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
6142	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
6143
6144	// BooleanValue: Boolean value. Can be used for entities with binary
6145	// values, or for checkboxes.
6146	BooleanValue bool `json:"booleanValue,omitempty"`
6147
6148	// DateValue: Date value. Includes year, month, day. See also:
6149	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
6150	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
6151
6152	// DatetimeValue: DateTime value. Includes date, time, and timezone. See
6153	// also:
6154	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
6155	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
6156
6157	// FloatValue: Float value.
6158	FloatValue float64 `json:"floatValue,omitempty"`
6159
6160	// IntegerValue: Integer value.
6161	IntegerValue int64 `json:"integerValue,omitempty"`
6162
6163	// MoneyValue: Money value. See also:
6164	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
6165	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
6166
6167	// Text: Optional. An optional field to store a normalized string. For
6168	// some entity types, one of respective 'structured_value' fields may
6169	// also be populated. Also not all the types of 'structured_value' will
6170	// be normalized. For example, some processors may not generate float or
6171	// int normalized text by default. Below are sample formats mapped to
6172	// structured values. - Money/Currency type (`money_value`) is in the
6173	// ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601
6174	// text format. - Datetime type (`datetime_value`) is in the ISO 8601
6175	// text format.
6176	Text string `json:"text,omitempty"`
6177
6178	// ForceSendFields is a list of field names (e.g. "AddressValue") to
6179	// unconditionally include in API requests. By default, fields with
6180	// empty or default values are omitted from API requests. However, any
6181	// non-pointer, non-interface field appearing in ForceSendFields will be
6182	// sent to the server regardless of whether the field is empty or not.
6183	// This may be used to include empty fields in Patch requests.
6184	ForceSendFields []string `json:"-"`
6185
6186	// NullFields is a list of field names (e.g. "AddressValue") to include
6187	// in API requests with the JSON null value. By default, fields with
6188	// empty values are omitted from API requests. However, any field with
6189	// an empty value appearing in NullFields will be sent to the server as
6190	// null. It is an error if a field in this list has a non-empty value.
6191	// This may be used to include null fields in Patch requests.
6192	NullFields []string `json:"-"`
6193}
6194
6195func (s *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
6196	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
6197	raw := NoMethod(*s)
6198	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6199}
6200
6201func (s *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
6202	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
6203	var s1 struct {
6204		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
6205		*NoMethod
6206	}
6207	s1.NoMethod = (*NoMethod)(s)
6208	if err := json.Unmarshal(data, &s1); err != nil {
6209		return err
6210	}
6211	s.FloatValue = float64(s1.FloatValue)
6212	return nil
6213}
6214
6215// GoogleCloudDocumentaiV1beta3DocumentEntityRelation: Relationship
6216// between Entities.
6217type GoogleCloudDocumentaiV1beta3DocumentEntityRelation struct {
6218	// ObjectId: Object entity id.
6219	ObjectId string `json:"objectId,omitempty"`
6220
6221	// Relation: Relationship description.
6222	Relation string `json:"relation,omitempty"`
6223
6224	// SubjectId: Subject entity id.
6225	SubjectId string `json:"subjectId,omitempty"`
6226
6227	// ForceSendFields is a list of field names (e.g. "ObjectId") to
6228	// unconditionally include in API requests. By default, fields with
6229	// empty or default values are omitted from API requests. However, any
6230	// non-pointer, non-interface field appearing in ForceSendFields will be
6231	// sent to the server regardless of whether the field is empty or not.
6232	// This may be used to include empty fields in Patch requests.
6233	ForceSendFields []string `json:"-"`
6234
6235	// NullFields is a list of field names (e.g. "ObjectId") to include in
6236	// API requests with the JSON null value. By default, fields with empty
6237	// values are omitted from API requests. However, any field with an
6238	// empty value appearing in NullFields will be sent to the server as
6239	// null. It is an error if a field in this list has a non-empty value.
6240	// This may be used to include null fields in Patch requests.
6241	NullFields []string `json:"-"`
6242}
6243
6244func (s *GoogleCloudDocumentaiV1beta3DocumentEntityRelation) MarshalJSON() ([]byte, error) {
6245	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityRelation
6246	raw := NoMethod(*s)
6247	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6248}
6249
6250// GoogleCloudDocumentaiV1beta3DocumentOutputConfig: Config that
6251// controls the output of documents. All documents will be written as a
6252// JSON file.
6253type GoogleCloudDocumentaiV1beta3DocumentOutputConfig struct {
6254	// GcsOutputConfig: Output config to write the results to Cloud Storage.
6255	GcsOutputConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig `json:"gcsOutputConfig,omitempty"`
6256
6257	// ForceSendFields is a list of field names (e.g. "GcsOutputConfig") to
6258	// unconditionally include in API requests. By default, fields with
6259	// empty or default values are omitted from API requests. However, any
6260	// non-pointer, non-interface field appearing in ForceSendFields will be
6261	// sent to the server regardless of whether the field is empty or not.
6262	// This may be used to include empty fields in Patch requests.
6263	ForceSendFields []string `json:"-"`
6264
6265	// NullFields is a list of field names (e.g. "GcsOutputConfig") to
6266	// include in API requests with the JSON null value. By default, fields
6267	// with empty values are omitted from API requests. However, any field
6268	// with an empty value appearing in NullFields will be sent to the
6269	// server as null. It is an error if a field in this list has a
6270	// non-empty value. This may be used to include null fields in Patch
6271	// requests.
6272	NullFields []string `json:"-"`
6273}
6274
6275func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfig) MarshalJSON() ([]byte, error) {
6276	type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfig
6277	raw := NoMethod(*s)
6278	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6279}
6280
6281// GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig: The
6282// configuration used when outputting documents.
6283type GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig struct {
6284	// GcsUri: The Cloud Storage uri (a directory) of the output.
6285	GcsUri string `json:"gcsUri,omitempty"`
6286
6287	// ForceSendFields is a list of field names (e.g. "GcsUri") to
6288	// unconditionally include in API requests. By default, fields with
6289	// empty or default values are omitted from API requests. However, any
6290	// non-pointer, non-interface field appearing in ForceSendFields will be
6291	// sent to the server regardless of whether the field is empty or not.
6292	// This may be used to include empty fields in Patch requests.
6293	ForceSendFields []string `json:"-"`
6294
6295	// NullFields is a list of field names (e.g. "GcsUri") to include in API
6296	// requests with the JSON null value. By default, fields with empty
6297	// values are omitted from API requests. However, any field with an
6298	// empty value appearing in NullFields will be sent to the server as
6299	// null. It is an error if a field in this list has a non-empty value.
6300	// This may be used to include null fields in Patch requests.
6301	NullFields []string `json:"-"`
6302}
6303
6304func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig) MarshalJSON() ([]byte, error) {
6305	type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig
6306	raw := NoMethod(*s)
6307	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6308}
6309
6310// GoogleCloudDocumentaiV1beta3DocumentPage: A page in a Document.
6311type GoogleCloudDocumentaiV1beta3DocumentPage struct {
6312	// Blocks: A list of visually detected text blocks on the page. A block
6313	// has a set of lines (collected into paragraphs) that have a common
6314	// line-spacing and orientation.
6315	Blocks []*GoogleCloudDocumentaiV1beta3DocumentPageBlock `json:"blocks,omitempty"`
6316
6317	// DetectedLanguages: A list of detected languages together with
6318	// confidence.
6319	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6320
6321	// Dimension: Physical dimension of the page.
6322	Dimension *GoogleCloudDocumentaiV1beta3DocumentPageDimension `json:"dimension,omitempty"`
6323
6324	// FormFields: A list of visually detected form fields on the page.
6325	FormFields []*GoogleCloudDocumentaiV1beta3DocumentPageFormField `json:"formFields,omitempty"`
6326
6327	// Image: Rendered image for this page. This image is preprocessed to
6328	// remove any skew, rotation, and distortions such that the annotation
6329	// bounding boxes can be upright and axis-aligned.
6330	Image *GoogleCloudDocumentaiV1beta3DocumentPageImage `json:"image,omitempty"`
6331
6332	// Layout: Layout for the page.
6333	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
6334
6335	// Lines: A list of visually detected text lines on the page. A
6336	// collection of tokens that a human would perceive as a line.
6337	Lines []*GoogleCloudDocumentaiV1beta3DocumentPageLine `json:"lines,omitempty"`
6338
6339	// PageNumber: 1-based index for current Page in a parent Document.
6340	// Useful when a page is taken out of a Document for individual
6341	// processing.
6342	PageNumber int64 `json:"pageNumber,omitempty"`
6343
6344	// Paragraphs: A list of visually detected text paragraphs on the page.
6345	// A collection of lines that a human would perceive as a paragraph.
6346	Paragraphs []*GoogleCloudDocumentaiV1beta3DocumentPageParagraph `json:"paragraphs,omitempty"`
6347
6348	// Provenance: The history of this page.
6349	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6350
6351	// Tables: A list of visually detected tables on the page.
6352	Tables []*GoogleCloudDocumentaiV1beta3DocumentPageTable `json:"tables,omitempty"`
6353
6354	// Tokens: A list of visually detected tokens on the page.
6355	Tokens []*GoogleCloudDocumentaiV1beta3DocumentPageToken `json:"tokens,omitempty"`
6356
6357	// Transforms: Transformation matrices that were applied to the original
6358	// document image to produce Page.image.
6359	Transforms []*GoogleCloudDocumentaiV1beta3DocumentPageMatrix `json:"transforms,omitempty"`
6360
6361	// VisualElements: A list of detected non-text visual elements e.g.
6362	// checkbox, signature etc. on the page.
6363	VisualElements []*GoogleCloudDocumentaiV1beta3DocumentPageVisualElement `json:"visualElements,omitempty"`
6364
6365	// ForceSendFields is a list of field names (e.g. "Blocks") to
6366	// unconditionally include in API requests. By default, fields with
6367	// empty or default values are omitted from API requests. However, any
6368	// non-pointer, non-interface field appearing in ForceSendFields will be
6369	// sent to the server regardless of whether the field is empty or not.
6370	// This may be used to include empty fields in Patch requests.
6371	ForceSendFields []string `json:"-"`
6372
6373	// NullFields is a list of field names (e.g. "Blocks") to include in API
6374	// requests with the JSON null value. By default, fields with empty
6375	// values are omitted from API requests. However, any field with an
6376	// empty value appearing in NullFields will be sent to the server as
6377	// null. It is an error if a field in this list has a non-empty value.
6378	// This may be used to include null fields in Patch requests.
6379	NullFields []string `json:"-"`
6380}
6381
6382func (s *GoogleCloudDocumentaiV1beta3DocumentPage) MarshalJSON() ([]byte, error) {
6383	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPage
6384	raw := NoMethod(*s)
6385	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6386}
6387
6388// GoogleCloudDocumentaiV1beta3DocumentPageAnchor: Referencing the
6389// visual context of the entity in the Document.pages. Page anchors can
6390// be cross-page, consist of multiple bounding polygons and optionally
6391// reference specific layout element types.
6392type GoogleCloudDocumentaiV1beta3DocumentPageAnchor struct {
6393	// PageRefs: One or more references to visual page elements
6394	PageRefs []*GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
6395
6396	// ForceSendFields is a list of field names (e.g. "PageRefs") to
6397	// unconditionally include in API requests. By default, fields with
6398	// empty or default values are omitted from API requests. However, any
6399	// non-pointer, non-interface field appearing in ForceSendFields will be
6400	// sent to the server regardless of whether the field is empty or not.
6401	// This may be used to include empty fields in Patch requests.
6402	ForceSendFields []string `json:"-"`
6403
6404	// NullFields is a list of field names (e.g. "PageRefs") to include in
6405	// API requests with the JSON null value. By default, fields with empty
6406	// values are omitted from API requests. However, any field with an
6407	// empty value appearing in NullFields will be sent to the server as
6408	// null. It is an error if a field in this list has a non-empty value.
6409	// This may be used to include null fields in Patch requests.
6410	NullFields []string `json:"-"`
6411}
6412
6413func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchor) MarshalJSON() ([]byte, error) {
6414	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchor
6415	raw := NoMethod(*s)
6416	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6417}
6418
6419// GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef: Represents a
6420// weak reference to a page element within a document.
6421type GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef struct {
6422	// BoundingPoly: Optional. Identifies the bounding polygon of a layout
6423	// element on the page.
6424	BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"`
6425
6426	// Confidence: Optional. Confidence of detected page element, if
6427	// applicable. Range [0, 1].
6428	Confidence float64 `json:"confidence,omitempty"`
6429
6430	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
6431	LayoutId string `json:"layoutId,omitempty"`
6432
6433	// LayoutType: Optional. The type of the layout element that is being
6434	// referenced if any.
6435	//
6436	// Possible values:
6437	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
6438	//   "BLOCK" - References a Page.blocks element.
6439	//   "PARAGRAPH" - References a Page.paragraphs element.
6440	//   "LINE" - References a Page.lines element.
6441	//   "TOKEN" - References a Page.tokens element.
6442	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
6443	//   "TABLE" - Refrrences a Page.tables element.
6444	//   "FORM_FIELD" - References a Page.form_fields element.
6445	LayoutType string `json:"layoutType,omitempty"`
6446
6447	// Page: Required. Index into the Document.pages element, for example
6448	// using Document.pages to locate the related page element. This field
6449	// is skipped when its value is the default 0. See
6450	// https://developers.google.com/protocol-buffers/docs/proto3#json.
6451	Page int64 `json:"page,omitempty,string"`
6452
6453	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
6454	// unconditionally include in API requests. By default, fields with
6455	// empty or default values are omitted from API requests. However, any
6456	// non-pointer, non-interface field appearing in ForceSendFields will be
6457	// sent to the server regardless of whether the field is empty or not.
6458	// This may be used to include empty fields in Patch requests.
6459	ForceSendFields []string `json:"-"`
6460
6461	// NullFields is a list of field names (e.g. "BoundingPoly") to include
6462	// in API requests with the JSON null value. By default, fields with
6463	// empty values are omitted from API requests. However, any field with
6464	// an empty value appearing in NullFields will be sent to the server as
6465	// null. It is an error if a field in this list has a non-empty value.
6466	// This may be used to include null fields in Patch requests.
6467	NullFields []string `json:"-"`
6468}
6469
6470func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
6471	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef
6472	raw := NoMethod(*s)
6473	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6474}
6475
6476func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
6477	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef
6478	var s1 struct {
6479		Confidence gensupport.JSONFloat64 `json:"confidence"`
6480		*NoMethod
6481	}
6482	s1.NoMethod = (*NoMethod)(s)
6483	if err := json.Unmarshal(data, &s1); err != nil {
6484		return err
6485	}
6486	s.Confidence = float64(s1.Confidence)
6487	return nil
6488}
6489
6490// GoogleCloudDocumentaiV1beta3DocumentPageBlock: A block has a set of
6491// lines (collected into paragraphs) that have a common line-spacing and
6492// orientation.
6493type GoogleCloudDocumentaiV1beta3DocumentPageBlock struct {
6494	// DetectedLanguages: A list of detected languages together with
6495	// confidence.
6496	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6497
6498	// Layout: Layout for Block.
6499	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
6500
6501	// Provenance: The history of this annotation.
6502	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6503
6504	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
6505	// to 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. "DetectedLanguages") to
6513	// include in API requests with the JSON null value. By default, fields
6514	// with empty values are omitted from API requests. However, any field
6515	// with an empty value appearing in NullFields will be sent to the
6516	// server as null. It is an error if a field in this list has a
6517	// non-empty value. This may be used to include null fields in Patch
6518	// requests.
6519	NullFields []string `json:"-"`
6520}
6521
6522func (s *GoogleCloudDocumentaiV1beta3DocumentPageBlock) MarshalJSON() ([]byte, error) {
6523	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageBlock
6524	raw := NoMethod(*s)
6525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6526}
6527
6528// GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage: Detected
6529// language for a structural component.
6530type GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage struct {
6531	// Confidence: Confidence of detected language. Range [0, 1].
6532	Confidence float64 `json:"confidence,omitempty"`
6533
6534	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn".
6535	// For more information, see
6536	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6537	LanguageCode string `json:"languageCode,omitempty"`
6538
6539	// ForceSendFields is a list of field names (e.g. "Confidence") to
6540	// unconditionally include in API requests. By default, fields with
6541	// empty or default values are omitted from API requests. However, any
6542	// non-pointer, non-interface field appearing in ForceSendFields will be
6543	// sent to the server regardless of whether the field is empty or not.
6544	// This may be used to include empty fields in Patch requests.
6545	ForceSendFields []string `json:"-"`
6546
6547	// NullFields is a list of field names (e.g. "Confidence") to include in
6548	// API requests with the JSON null value. By default, fields with empty
6549	// values are omitted from API requests. However, any field with an
6550	// empty value appearing in NullFields will be sent to the server as
6551	// null. It is an error if a field in this list has a non-empty value.
6552	// This may be used to include null fields in Patch requests.
6553	NullFields []string `json:"-"`
6554}
6555
6556func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
6557	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
6558	raw := NoMethod(*s)
6559	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6560}
6561
6562func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
6563	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
6564	var s1 struct {
6565		Confidence gensupport.JSONFloat64 `json:"confidence"`
6566		*NoMethod
6567	}
6568	s1.NoMethod = (*NoMethod)(s)
6569	if err := json.Unmarshal(data, &s1); err != nil {
6570		return err
6571	}
6572	s.Confidence = float64(s1.Confidence)
6573	return nil
6574}
6575
6576// GoogleCloudDocumentaiV1beta3DocumentPageDimension: Dimension for the
6577// page.
6578type GoogleCloudDocumentaiV1beta3DocumentPageDimension struct {
6579	// Height: Page height.
6580	Height float64 `json:"height,omitempty"`
6581
6582	// Unit: Dimension unit.
6583	Unit string `json:"unit,omitempty"`
6584
6585	// Width: Page width.
6586	Width float64 `json:"width,omitempty"`
6587
6588	// ForceSendFields is a list of field names (e.g. "Height") to
6589	// unconditionally include in API requests. By default, fields with
6590	// empty or default values are omitted from API requests. However, any
6591	// non-pointer, non-interface field appearing in ForceSendFields will be
6592	// sent to the server regardless of whether the field is empty or not.
6593	// This may be used to include empty fields in Patch requests.
6594	ForceSendFields []string `json:"-"`
6595
6596	// NullFields is a list of field names (e.g. "Height") to include in API
6597	// requests with the JSON null value. By default, fields with empty
6598	// values are omitted from API requests. However, any field with an
6599	// empty value appearing in NullFields will be sent to the server as
6600	// null. It is an error if a field in this list has a non-empty value.
6601	// This may be used to include null fields in Patch requests.
6602	NullFields []string `json:"-"`
6603}
6604
6605func (s *GoogleCloudDocumentaiV1beta3DocumentPageDimension) MarshalJSON() ([]byte, error) {
6606	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDimension
6607	raw := NoMethod(*s)
6608	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6609}
6610
6611func (s *GoogleCloudDocumentaiV1beta3DocumentPageDimension) UnmarshalJSON(data []byte) error {
6612	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDimension
6613	var s1 struct {
6614		Height gensupport.JSONFloat64 `json:"height"`
6615		Width  gensupport.JSONFloat64 `json:"width"`
6616		*NoMethod
6617	}
6618	s1.NoMethod = (*NoMethod)(s)
6619	if err := json.Unmarshal(data, &s1); err != nil {
6620		return err
6621	}
6622	s.Height = float64(s1.Height)
6623	s.Width = float64(s1.Width)
6624	return nil
6625}
6626
6627// GoogleCloudDocumentaiV1beta3DocumentPageFormField: A form field
6628// detected on the page.
6629type GoogleCloudDocumentaiV1beta3DocumentPageFormField struct {
6630	// CorrectedKeyText: Created for Labeling UI to export key text. If
6631	// corrections were made to the text identified by the
6632	// `field_name.text_anchor`, this field will contain the correction.
6633	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
6634
6635	// CorrectedValueText: Created for Labeling UI to export value text. If
6636	// corrections were made to the text identified by the
6637	// `field_value.text_anchor`, this field will contain the correction.
6638	CorrectedValueText string `json:"correctedValueText,omitempty"`
6639
6640	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`,
6641	// `Grand total`, `Phone number`, etc.
6642	FieldName *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"fieldName,omitempty"`
6643
6644	// FieldValue: Layout for the FormField value.
6645	FieldValue *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"fieldValue,omitempty"`
6646
6647	// NameDetectedLanguages: A list of detected languages for name together
6648	// with confidence.
6649	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
6650
6651	// Provenance: The history of this annotation.
6652	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6653
6654	// ValueDetectedLanguages: A list of detected languages for value
6655	// together with confidence.
6656	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
6657
6658	// ValueType: If the value is non-textual, this field represents the
6659	// type. Current valid values are: - blank (this indicates the
6660	// field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
6661	ValueType string `json:"valueType,omitempty"`
6662
6663	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
6664	// unconditionally include in API requests. By default, fields with
6665	// empty or default values are omitted from API requests. However, any
6666	// non-pointer, non-interface field appearing in ForceSendFields will be
6667	// sent to the server regardless of whether the field is empty or not.
6668	// This may be used to include empty fields in Patch requests.
6669	ForceSendFields []string `json:"-"`
6670
6671	// NullFields is a list of field names (e.g. "CorrectedKeyText") to
6672	// include in API requests with the JSON null value. By default, fields
6673	// with empty values are omitted from API requests. However, any field
6674	// with an empty value appearing in NullFields will be sent to the
6675	// server as null. It is an error if a field in this list has a
6676	// non-empty value. This may be used to include null fields in Patch
6677	// requests.
6678	NullFields []string `json:"-"`
6679}
6680
6681func (s *GoogleCloudDocumentaiV1beta3DocumentPageFormField) MarshalJSON() ([]byte, error) {
6682	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageFormField
6683	raw := NoMethod(*s)
6684	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6685}
6686
6687// GoogleCloudDocumentaiV1beta3DocumentPageImage: Rendered image
6688// contents for this page.
6689type GoogleCloudDocumentaiV1beta3DocumentPageImage struct {
6690	// Content: Raw byte content of the image.
6691	Content string `json:"content,omitempty"`
6692
6693	// Height: Height of the image in pixels.
6694	Height int64 `json:"height,omitempty"`
6695
6696	// MimeType: Encoding mime type for the image.
6697	MimeType string `json:"mimeType,omitempty"`
6698
6699	// Width: Width of the image in pixels.
6700	Width int64 `json:"width,omitempty"`
6701
6702	// ForceSendFields is a list of field names (e.g. "Content") to
6703	// unconditionally include in API requests. By default, fields with
6704	// empty or default values are omitted from API requests. However, any
6705	// non-pointer, non-interface field appearing in ForceSendFields will be
6706	// sent to the server regardless of whether the field is empty or not.
6707	// This may be used to include empty fields in Patch requests.
6708	ForceSendFields []string `json:"-"`
6709
6710	// NullFields is a list of field names (e.g. "Content") to include in
6711	// API requests with the JSON null value. By default, fields with empty
6712	// values are omitted from API requests. However, any field with an
6713	// empty value appearing in NullFields will be sent to the server as
6714	// null. It is an error if a field in this list has a non-empty value.
6715	// This may be used to include null fields in Patch requests.
6716	NullFields []string `json:"-"`
6717}
6718
6719func (s *GoogleCloudDocumentaiV1beta3DocumentPageImage) MarshalJSON() ([]byte, error) {
6720	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImage
6721	raw := NoMethod(*s)
6722	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6723}
6724
6725// GoogleCloudDocumentaiV1beta3DocumentPageLayout: Visual element
6726// describing a layout unit on a page.
6727type GoogleCloudDocumentaiV1beta3DocumentPageLayout struct {
6728	// BoundingPoly: The bounding polygon for the Layout.
6729	BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"`
6730
6731	// Confidence: Confidence of the current Layout within context of the
6732	// object this layout is for. e.g. confidence can be for a single token,
6733	// a table, a visual element, etc. depending on context. Range [0, 1].
6734	Confidence float64 `json:"confidence,omitempty"`
6735
6736	// Orientation: Detected orientation for the Layout.
6737	//
6738	// Possible values:
6739	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
6740	//   "PAGE_UP" - Orientation is aligned with page up.
6741	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the
6742	// head 90 degrees clockwise from upright to read.
6743	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head
6744	// 180 degrees from upright to read.
6745	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head
6746	// 90 degrees counterclockwise from upright to read.
6747	Orientation string `json:"orientation,omitempty"`
6748
6749	// TextAnchor: Text anchor indexing into the Document.text.
6750	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
6751
6752	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
6753	// unconditionally include in API requests. By default, fields with
6754	// empty or default values are omitted from API requests. However, any
6755	// non-pointer, non-interface field appearing in ForceSendFields will be
6756	// sent to the server regardless of whether the field is empty or not.
6757	// This may be used to include empty fields in Patch requests.
6758	ForceSendFields []string `json:"-"`
6759
6760	// NullFields is a list of field names (e.g. "BoundingPoly") to include
6761	// in API requests with the JSON null value. By default, fields with
6762	// empty values are omitted from API requests. However, any field with
6763	// an empty value appearing in NullFields will be sent to the server as
6764	// null. It is an error if a field in this list has a non-empty value.
6765	// This may be used to include null fields in Patch requests.
6766	NullFields []string `json:"-"`
6767}
6768
6769func (s *GoogleCloudDocumentaiV1beta3DocumentPageLayout) MarshalJSON() ([]byte, error) {
6770	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLayout
6771	raw := NoMethod(*s)
6772	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6773}
6774
6775func (s *GoogleCloudDocumentaiV1beta3DocumentPageLayout) UnmarshalJSON(data []byte) error {
6776	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLayout
6777	var s1 struct {
6778		Confidence gensupport.JSONFloat64 `json:"confidence"`
6779		*NoMethod
6780	}
6781	s1.NoMethod = (*NoMethod)(s)
6782	if err := json.Unmarshal(data, &s1); err != nil {
6783		return err
6784	}
6785	s.Confidence = float64(s1.Confidence)
6786	return nil
6787}
6788
6789// GoogleCloudDocumentaiV1beta3DocumentPageLine: A collection of tokens
6790// that a human would perceive as a line. Does not cross column
6791// boundaries, can be horizontal, vertical, etc.
6792type GoogleCloudDocumentaiV1beta3DocumentPageLine struct {
6793	// DetectedLanguages: A list of detected languages together with
6794	// confidence.
6795	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6796
6797	// Layout: Layout for Line.
6798	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
6799
6800	// Provenance: The history of this annotation.
6801	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6802
6803	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
6804	// to unconditionally include in API requests. By default, fields with
6805	// empty or default values are omitted from API requests. However, any
6806	// non-pointer, non-interface field appearing in ForceSendFields will be
6807	// sent to the server regardless of whether the field is empty or not.
6808	// This may be used to include empty fields in Patch requests.
6809	ForceSendFields []string `json:"-"`
6810
6811	// NullFields is a list of field names (e.g. "DetectedLanguages") to
6812	// include in API requests with the JSON null value. By default, fields
6813	// with empty values are omitted from API requests. However, any field
6814	// with an empty value appearing in NullFields will be sent to the
6815	// server as null. It is an error if a field in this list has a
6816	// non-empty value. This may be used to include null fields in Patch
6817	// requests.
6818	NullFields []string `json:"-"`
6819}
6820
6821func (s *GoogleCloudDocumentaiV1beta3DocumentPageLine) MarshalJSON() ([]byte, error) {
6822	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLine
6823	raw := NoMethod(*s)
6824	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6825}
6826
6827// GoogleCloudDocumentaiV1beta3DocumentPageMatrix: Representation for
6828// transformation matrix, intended to be compatible and used with OpenCV
6829// format for image manipulation.
6830type GoogleCloudDocumentaiV1beta3DocumentPageMatrix struct {
6831	// Cols: Number of columns in the matrix.
6832	Cols int64 `json:"cols,omitempty"`
6833
6834	// Data: The matrix data.
6835	Data string `json:"data,omitempty"`
6836
6837	// Rows: Number of rows in the matrix.
6838	Rows int64 `json:"rows,omitempty"`
6839
6840	// Type: This encodes information about what data type the matrix uses.
6841	// For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
6842	// of OpenCV primitive data types, please refer to
6843	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
6844	Type int64 `json:"type,omitempty"`
6845
6846	// ForceSendFields is a list of field names (e.g. "Cols") to
6847	// unconditionally include in API requests. By default, fields with
6848	// empty or default values are omitted from API requests. However, any
6849	// non-pointer, non-interface field appearing in ForceSendFields will be
6850	// sent to the server regardless of whether the field is empty or not.
6851	// This may be used to include empty fields in Patch requests.
6852	ForceSendFields []string `json:"-"`
6853
6854	// NullFields is a list of field names (e.g. "Cols") to include in API
6855	// requests with the JSON null value. By default, fields with empty
6856	// values are omitted from API requests. However, any field with an
6857	// empty value appearing in NullFields will be sent to the server as
6858	// null. It is an error if a field in this list has a non-empty value.
6859	// This may be used to include null fields in Patch requests.
6860	NullFields []string `json:"-"`
6861}
6862
6863func (s *GoogleCloudDocumentaiV1beta3DocumentPageMatrix) MarshalJSON() ([]byte, error) {
6864	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageMatrix
6865	raw := NoMethod(*s)
6866	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6867}
6868
6869// GoogleCloudDocumentaiV1beta3DocumentPageParagraph: A collection of
6870// lines that a human would perceive as a paragraph.
6871type GoogleCloudDocumentaiV1beta3DocumentPageParagraph struct {
6872	// DetectedLanguages: A list of detected languages together with
6873	// confidence.
6874	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6875
6876	// Layout: Layout for Paragraph.
6877	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
6878
6879	// Provenance: The history of this annotation.
6880	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
6881
6882	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
6883	// to unconditionally include in API requests. By default, fields with
6884	// empty or default values are omitted from API requests. However, any
6885	// non-pointer, non-interface field appearing in ForceSendFields will be
6886	// sent to the server regardless of whether the field is empty or not.
6887	// This may be used to include empty fields in Patch requests.
6888	ForceSendFields []string `json:"-"`
6889
6890	// NullFields is a list of field names (e.g. "DetectedLanguages") to
6891	// include in API requests with the JSON null value. By default, fields
6892	// with empty values are omitted from API requests. However, any field
6893	// with an empty value appearing in NullFields will be sent to the
6894	// server as null. It is an error if a field in this list has a
6895	// non-empty value. This may be used to include null fields in Patch
6896	// requests.
6897	NullFields []string `json:"-"`
6898}
6899
6900func (s *GoogleCloudDocumentaiV1beta3DocumentPageParagraph) MarshalJSON() ([]byte, error) {
6901	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageParagraph
6902	raw := NoMethod(*s)
6903	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6904}
6905
6906// GoogleCloudDocumentaiV1beta3DocumentPageTable: A table representation
6907// similar to HTML table structure.
6908type GoogleCloudDocumentaiV1beta3DocumentPageTable struct {
6909	// BodyRows: Body rows of the table.
6910	BodyRows []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow `json:"bodyRows,omitempty"`
6911
6912	// DetectedLanguages: A list of detected languages together with
6913	// confidence.
6914	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6915
6916	// HeaderRows: Header rows of the table.
6917	HeaderRows []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow `json:"headerRows,omitempty"`
6918
6919	// Layout: Layout for Table.
6920	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
6921
6922	// ForceSendFields is a list of field names (e.g. "BodyRows") to
6923	// unconditionally include in API requests. By default, fields with
6924	// empty or default values are omitted from API requests. However, any
6925	// non-pointer, non-interface field appearing in ForceSendFields will be
6926	// sent to the server regardless of whether the field is empty or not.
6927	// This may be used to include empty fields in Patch requests.
6928	ForceSendFields []string `json:"-"`
6929
6930	// NullFields is a list of field names (e.g. "BodyRows") to include in
6931	// API requests with the JSON null value. By default, fields with empty
6932	// values are omitted from API requests. However, any field with an
6933	// empty value appearing in NullFields will be sent to the server as
6934	// null. It is an error if a field in this list has a non-empty value.
6935	// This may be used to include null fields in Patch requests.
6936	NullFields []string `json:"-"`
6937}
6938
6939func (s *GoogleCloudDocumentaiV1beta3DocumentPageTable) MarshalJSON() ([]byte, error) {
6940	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTable
6941	raw := NoMethod(*s)
6942	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6943}
6944
6945// GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell: A cell
6946// representation inside the table.
6947type GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell struct {
6948	// ColSpan: How many columns this cell spans.
6949	ColSpan int64 `json:"colSpan,omitempty"`
6950
6951	// DetectedLanguages: A list of detected languages together with
6952	// confidence.
6953	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
6954
6955	// Layout: Layout for TableCell.
6956	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
6957
6958	// RowSpan: How many rows this cell spans.
6959	RowSpan int64 `json:"rowSpan,omitempty"`
6960
6961	// ForceSendFields is a list of field names (e.g. "ColSpan") to
6962	// unconditionally include in API requests. By default, fields with
6963	// empty or default values are omitted from API requests. However, any
6964	// non-pointer, non-interface field appearing in ForceSendFields will be
6965	// sent to the server regardless of whether the field is empty or not.
6966	// This may be used to include empty fields in Patch requests.
6967	ForceSendFields []string `json:"-"`
6968
6969	// NullFields is a list of field names (e.g. "ColSpan") to include in
6970	// API requests with the JSON null value. By default, fields with empty
6971	// values are omitted from API requests. However, any field with an
6972	// empty value appearing in NullFields will be sent to the server as
6973	// null. It is an error if a field in this list has a non-empty value.
6974	// This may be used to include null fields in Patch requests.
6975	NullFields []string `json:"-"`
6976}
6977
6978func (s *GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
6979	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell
6980	raw := NoMethod(*s)
6981	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6982}
6983
6984// GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow: A row of table
6985// cells.
6986type GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow struct {
6987	// Cells: Cells that make up this row.
6988	Cells []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell `json:"cells,omitempty"`
6989
6990	// ForceSendFields is a list of field names (e.g. "Cells") to
6991	// unconditionally include in API requests. By default, fields with
6992	// empty or default values are omitted from API requests. However, any
6993	// non-pointer, non-interface field appearing in ForceSendFields will be
6994	// sent to the server regardless of whether the field is empty or not.
6995	// This may be used to include empty fields in Patch requests.
6996	ForceSendFields []string `json:"-"`
6997
6998	// NullFields is a list of field names (e.g. "Cells") to include in API
6999	// requests with the JSON null value. By default, fields with empty
7000	// values are omitted from API requests. However, any field with an
7001	// empty value appearing in NullFields will be sent to the server as
7002	// null. It is an error if a field in this list has a non-empty value.
7003	// This may be used to include null fields in Patch requests.
7004	NullFields []string `json:"-"`
7005}
7006
7007func (s *GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
7008	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow
7009	raw := NoMethod(*s)
7010	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7011}
7012
7013// GoogleCloudDocumentaiV1beta3DocumentPageToken: A detected token.
7014type GoogleCloudDocumentaiV1beta3DocumentPageToken struct {
7015	// DetectedBreak: Detected break at the end of a Token.
7016	DetectedBreak *GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
7017
7018	// DetectedLanguages: A list of detected languages together with
7019	// confidence.
7020	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7021
7022	// Layout: Layout for Token.
7023	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7024
7025	// Provenance: The history of this annotation.
7026	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7027
7028	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
7029	// unconditionally include in API requests. By default, fields with
7030	// empty or default values are omitted from API requests. However, any
7031	// non-pointer, non-interface field appearing in ForceSendFields will be
7032	// sent to the server regardless of whether the field is empty or not.
7033	// This may be used to include empty fields in Patch requests.
7034	ForceSendFields []string `json:"-"`
7035
7036	// NullFields is a list of field names (e.g. "DetectedBreak") to include
7037	// in API requests with the JSON null value. By default, fields with
7038	// empty values are omitted from API requests. However, any field with
7039	// an empty value appearing in NullFields will be sent to the server as
7040	// null. It is an error if a field in this list has a non-empty value.
7041	// This may be used to include null fields in Patch requests.
7042	NullFields []string `json:"-"`
7043}
7044
7045func (s *GoogleCloudDocumentaiV1beta3DocumentPageToken) MarshalJSON() ([]byte, error) {
7046	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageToken
7047	raw := NoMethod(*s)
7048	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7049}
7050
7051// GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak: Detected
7052// break at the end of a Token.
7053type GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak struct {
7054	// Type: Detected break type.
7055	//
7056	// Possible values:
7057	//   "TYPE_UNSPECIFIED" - Unspecified break type.
7058	//   "SPACE" - A single whitespace.
7059	//   "WIDE_SPACE" - A wider whitespace.
7060	//   "HYPHEN" - A hyphen that indicates that a token has been split
7061	// across lines.
7062	Type string `json:"type,omitempty"`
7063
7064	// ForceSendFields is a list of field names (e.g. "Type") to
7065	// unconditionally include in API requests. By default, fields with
7066	// empty or default values are omitted from API requests. However, any
7067	// non-pointer, non-interface field appearing in ForceSendFields will be
7068	// sent to the server regardless of whether the field is empty or not.
7069	// This may be used to include empty fields in Patch requests.
7070	ForceSendFields []string `json:"-"`
7071
7072	// NullFields is a list of field names (e.g. "Type") to include in API
7073	// requests with the JSON null value. By default, fields with empty
7074	// values are omitted from API requests. However, any field with an
7075	// empty value appearing in NullFields will be sent to the server as
7076	// null. It is an error if a field in this list has a non-empty value.
7077	// This may be used to include null fields in Patch requests.
7078	NullFields []string `json:"-"`
7079}
7080
7081func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
7082	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak
7083	raw := NoMethod(*s)
7084	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7085}
7086
7087// GoogleCloudDocumentaiV1beta3DocumentPageVisualElement: Detected
7088// non-text visual elements e.g. checkbox, signature etc. on the page.
7089type GoogleCloudDocumentaiV1beta3DocumentPageVisualElement struct {
7090	// DetectedLanguages: A list of detected languages together with
7091	// confidence.
7092	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
7093
7094	// Layout: Layout for VisualElement.
7095	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
7096
7097	// Type: Type of the VisualElement.
7098	Type string `json:"type,omitempty"`
7099
7100	// ForceSendFields is a list of field names (e.g. "DetectedLanguages")
7101	// to 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. "DetectedLanguages") to
7109	// include in API requests with the JSON null value. By default, fields
7110	// with empty values are omitted from API requests. However, any field
7111	// with an empty value appearing in NullFields will be sent to the
7112	// server as null. It is an error if a field in this list has a
7113	// non-empty value. This may be used to include null fields in Patch
7114	// requests.
7115	NullFields []string `json:"-"`
7116}
7117
7118func (s *GoogleCloudDocumentaiV1beta3DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
7119	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageVisualElement
7120	raw := NoMethod(*s)
7121	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7122}
7123
7124// GoogleCloudDocumentaiV1beta3DocumentProvenance: Structure to identify
7125// provenance relationships between annotations in different revisions.
7126type GoogleCloudDocumentaiV1beta3DocumentProvenance struct {
7127	// Id: The Id of this operation. Needs to be unique within the scope of
7128	// the revision.
7129	Id int64 `json:"id,omitempty"`
7130
7131	// Parents: References to the original elements that are replaced.
7132	Parents []*GoogleCloudDocumentaiV1beta3DocumentProvenanceParent `json:"parents,omitempty"`
7133
7134	// Revision: The index of the revision that produced this element.
7135	Revision int64 `json:"revision,omitempty"`
7136
7137	// Type: The type of provenance operation.
7138	//
7139	// Possible values:
7140	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified.
7141	//   "ADD" - Add an element. Implicit if no `parents` are set for the
7142	// provenance.
7143	//   "REMOVE" - The element is removed. No `parents` should be set.
7144	//   "REPLACE" - Explicitly replaces the element(s) identified by
7145	// `parents`.
7146	//   "EVAL_REQUESTED" - Element is requested for human review.
7147	//   "EVAL_APPROVED" - Element is reviewed and approved at human review,
7148	// confidence will be set to 1.0.
7149	//   "EVAL_SKIPPED" - Element is skipped in the validation process.
7150	Type string `json:"type,omitempty"`
7151
7152	// ForceSendFields is a list of field names (e.g. "Id") to
7153	// unconditionally include in API requests. By default, fields with
7154	// empty or default values are omitted from API requests. However, any
7155	// non-pointer, non-interface field appearing in ForceSendFields will be
7156	// sent to the server regardless of whether the field is empty or not.
7157	// This may be used to include empty fields in Patch requests.
7158	ForceSendFields []string `json:"-"`
7159
7160	// NullFields is a list of field names (e.g. "Id") to include in API
7161	// requests with the JSON null value. By default, fields with empty
7162	// values are omitted from API requests. However, any field with an
7163	// empty value appearing in NullFields will be sent to the server as
7164	// null. It is an error if a field in this list has a non-empty value.
7165	// This may be used to include null fields in Patch requests.
7166	NullFields []string `json:"-"`
7167}
7168
7169func (s *GoogleCloudDocumentaiV1beta3DocumentProvenance) MarshalJSON() ([]byte, error) {
7170	type NoMethod GoogleCloudDocumentaiV1beta3DocumentProvenance
7171	raw := NoMethod(*s)
7172	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7173}
7174
7175// GoogleCloudDocumentaiV1beta3DocumentProvenanceParent: Structure for
7176// referencing parent provenances. When an element replaces one of more
7177// other elements parent references identify the elements that are
7178// replaced.
7179type GoogleCloudDocumentaiV1beta3DocumentProvenanceParent struct {
7180	// Id: The id of the parent provenance.
7181	Id int64 `json:"id,omitempty"`
7182
7183	// Index: The index of the parent item in the corresponding item list
7184	// (eg. list of entities, properties within entities, etc.) on parent
7185	// revision.
7186	Index int64 `json:"index,omitempty"`
7187
7188	// Revision: The index of the [Document.revisions] identifying the
7189	// parent revision.
7190	Revision int64 `json:"revision,omitempty"`
7191
7192	// ForceSendFields is a list of field names (e.g. "Id") to
7193	// unconditionally include in API requests. By default, fields with
7194	// empty or default values are omitted from API requests. However, any
7195	// non-pointer, non-interface field appearing in ForceSendFields will be
7196	// sent to the server regardless of whether the field is empty or not.
7197	// This may be used to include empty fields in Patch requests.
7198	ForceSendFields []string `json:"-"`
7199
7200	// NullFields is a list of field names (e.g. "Id") to include in API
7201	// requests with the JSON null value. By default, fields with empty
7202	// values are omitted from API requests. However, any field with an
7203	// empty value appearing in NullFields will be sent to the server as
7204	// null. It is an error if a field in this list has a non-empty value.
7205	// This may be used to include null fields in Patch requests.
7206	NullFields []string `json:"-"`
7207}
7208
7209func (s *GoogleCloudDocumentaiV1beta3DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
7210	type NoMethod GoogleCloudDocumentaiV1beta3DocumentProvenanceParent
7211	raw := NoMethod(*s)
7212	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7213}
7214
7215// GoogleCloudDocumentaiV1beta3DocumentRevision: Contains past or
7216// forward revisions of this document.
7217type GoogleCloudDocumentaiV1beta3DocumentRevision struct {
7218	// Agent: If the change was made by a person specify the name or id of
7219	// that person.
7220	Agent string `json:"agent,omitempty"`
7221
7222	// CreateTime: The time that the revision was created.
7223	CreateTime string `json:"createTime,omitempty"`
7224
7225	// HumanReview: Human Review information of this revision.
7226	HumanReview *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview `json:"humanReview,omitempty"`
7227
7228	// Id: Id of the revision. Unique within the context of the document.
7229	Id string `json:"id,omitempty"`
7230
7231	// Parent: The revisions that this revision is based on. This can
7232	// include one or more parent (when documents are merged.) This field
7233	// represents the index into the `revisions` field.
7234	Parent []int64 `json:"parent,omitempty"`
7235
7236	// Processor: If the annotation was made by processor identify the
7237	// processor by its resource name.
7238	Processor string `json:"processor,omitempty"`
7239
7240	// ForceSendFields is a list of field names (e.g. "Agent") to
7241	// unconditionally include in API requests. By default, fields with
7242	// empty or default values are omitted from API requests. However, any
7243	// non-pointer, non-interface field appearing in ForceSendFields will be
7244	// sent to the server regardless of whether the field is empty or not.
7245	// This may be used to include empty fields in Patch requests.
7246	ForceSendFields []string `json:"-"`
7247
7248	// NullFields is a list of field names (e.g. "Agent") to include in API
7249	// requests with the JSON null value. By default, fields with empty
7250	// values are omitted from API requests. However, any field with an
7251	// empty value appearing in NullFields will be sent to the server as
7252	// null. It is an error if a field in this list has a non-empty value.
7253	// This may be used to include null fields in Patch requests.
7254	NullFields []string `json:"-"`
7255}
7256
7257func (s *GoogleCloudDocumentaiV1beta3DocumentRevision) MarshalJSON() ([]byte, error) {
7258	type NoMethod GoogleCloudDocumentaiV1beta3DocumentRevision
7259	raw := NoMethod(*s)
7260	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7261}
7262
7263// GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview: Human Review
7264// information of the document.
7265type GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview struct {
7266	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
7267	State string `json:"state,omitempty"`
7268
7269	// StateMessage: A message providing more details about the current
7270	// state of processing. For example, the rejection reason when the state
7271	// is `rejected`.
7272	StateMessage string `json:"stateMessage,omitempty"`
7273
7274	// ForceSendFields is a list of field names (e.g. "State") to
7275	// unconditionally include in API requests. By default, fields with
7276	// empty or default values are omitted from API requests. However, any
7277	// non-pointer, non-interface field appearing in ForceSendFields will be
7278	// sent to the server regardless of whether the field is empty or not.
7279	// This may be used to include empty fields in Patch requests.
7280	ForceSendFields []string `json:"-"`
7281
7282	// NullFields is a list of field names (e.g. "State") to include in API
7283	// requests with the JSON null value. By default, fields with empty
7284	// values are omitted from API requests. However, any field with an
7285	// empty value appearing in NullFields will be sent to the server as
7286	// null. It is an error if a field in this list has a non-empty value.
7287	// This may be used to include null fields in Patch requests.
7288	NullFields []string `json:"-"`
7289}
7290
7291func (s *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
7292	type NoMethod GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview
7293	raw := NoMethod(*s)
7294	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7295}
7296
7297// GoogleCloudDocumentaiV1beta3DocumentShardInfo: For a large document,
7298// sharding may be performed to produce several document shards. Each
7299// document shard contains this field to detail which shard it is.
7300type GoogleCloudDocumentaiV1beta3DocumentShardInfo struct {
7301	// ShardCount: Total number of shards.
7302	ShardCount int64 `json:"shardCount,omitempty,string"`
7303
7304	// ShardIndex: The 0-based index of this shard.
7305	ShardIndex int64 `json:"shardIndex,omitempty,string"`
7306
7307	// TextOffset: The index of the first character in Document.text in the
7308	// overall document global text.
7309	TextOffset int64 `json:"textOffset,omitempty,string"`
7310
7311	// ForceSendFields is a list of field names (e.g. "ShardCount") to
7312	// unconditionally include in API requests. By default, fields with
7313	// empty or default values are omitted from API requests. However, any
7314	// non-pointer, non-interface field appearing in ForceSendFields will be
7315	// sent to the server regardless of whether the field is empty or not.
7316	// This may be used to include empty fields in Patch requests.
7317	ForceSendFields []string `json:"-"`
7318
7319	// NullFields is a list of field names (e.g. "ShardCount") to include in
7320	// API requests with the JSON null value. By default, fields with empty
7321	// values are omitted from API requests. However, any field with an
7322	// empty value appearing in NullFields will be sent to the server as
7323	// null. It is an error if a field in this list has a non-empty value.
7324	// This may be used to include null fields in Patch requests.
7325	NullFields []string `json:"-"`
7326}
7327
7328func (s *GoogleCloudDocumentaiV1beta3DocumentShardInfo) MarshalJSON() ([]byte, error) {
7329	type NoMethod GoogleCloudDocumentaiV1beta3DocumentShardInfo
7330	raw := NoMethod(*s)
7331	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7332}
7333
7334// GoogleCloudDocumentaiV1beta3DocumentStyle: Annotation for common text
7335// style attributes. This adheres to CSS conventions as much as
7336// possible.
7337type GoogleCloudDocumentaiV1beta3DocumentStyle struct {
7338	// BackgroundColor: Text background color.
7339	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
7340
7341	// Color: Text color.
7342	Color *GoogleTypeColor `json:"color,omitempty"`
7343
7344	// FontSize: Font size.
7345	FontSize *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize `json:"fontSize,omitempty"`
7346
7347	// FontWeight: Font weight. Possible values are normal, bold, bolder,
7348	// and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
7349	FontWeight string `json:"fontWeight,omitempty"`
7350
7351	// TextAnchor: Text anchor indexing into the Document.text.
7352	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
7353
7354	// TextDecoration: Text decoration. Follows CSS standard.
7355	// https://www.w3schools.com/cssref/pr_text_text-decoration.asp
7356	TextDecoration string `json:"textDecoration,omitempty"`
7357
7358	// TextStyle: Text style. Possible values are normal, italic, and
7359	// oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
7360	TextStyle string `json:"textStyle,omitempty"`
7361
7362	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
7363	// unconditionally include in API requests. By default, fields with
7364	// empty or default values are omitted from API requests. However, any
7365	// non-pointer, non-interface field appearing in ForceSendFields will be
7366	// sent to the server regardless of whether the field is empty or not.
7367	// This may be used to include empty fields in Patch requests.
7368	ForceSendFields []string `json:"-"`
7369
7370	// NullFields is a list of field names (e.g. "BackgroundColor") to
7371	// include in API requests with the JSON null value. By default, fields
7372	// with empty values are omitted from API requests. However, any field
7373	// with an empty value appearing in NullFields will be sent to the
7374	// server as null. It is an error if a field in this list has a
7375	// non-empty value. This may be used to include null fields in Patch
7376	// requests.
7377	NullFields []string `json:"-"`
7378}
7379
7380func (s *GoogleCloudDocumentaiV1beta3DocumentStyle) MarshalJSON() ([]byte, error) {
7381	type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyle
7382	raw := NoMethod(*s)
7383	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7384}
7385
7386// GoogleCloudDocumentaiV1beta3DocumentStyleFontSize: Font size with
7387// unit.
7388type GoogleCloudDocumentaiV1beta3DocumentStyleFontSize struct {
7389	// Size: Font size for the text.
7390	Size float64 `json:"size,omitempty"`
7391
7392	// Unit: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
7393	Unit string `json:"unit,omitempty"`
7394
7395	// ForceSendFields is a list of field names (e.g. "Size") to
7396	// unconditionally include in API requests. By default, fields with
7397	// empty or default values are omitted from API requests. However, any
7398	// non-pointer, non-interface field appearing in ForceSendFields will be
7399	// sent to the server regardless of whether the field is empty or not.
7400	// This may be used to include empty fields in Patch requests.
7401	ForceSendFields []string `json:"-"`
7402
7403	// NullFields is a list of field names (e.g. "Size") to include in API
7404	// requests with the JSON null value. By default, fields with empty
7405	// values are omitted from API requests. However, any field with an
7406	// empty value appearing in NullFields will be sent to the server as
7407	// null. It is an error if a field in this list has a non-empty value.
7408	// This may be used to include null fields in Patch requests.
7409	NullFields []string `json:"-"`
7410}
7411
7412func (s *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
7413	type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyleFontSize
7414	raw := NoMethod(*s)
7415	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7416}
7417
7418func (s *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
7419	type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyleFontSize
7420	var s1 struct {
7421		Size gensupport.JSONFloat64 `json:"size"`
7422		*NoMethod
7423	}
7424	s1.NoMethod = (*NoMethod)(s)
7425	if err := json.Unmarshal(data, &s1); err != nil {
7426		return err
7427	}
7428	s.Size = float64(s1.Size)
7429	return nil
7430}
7431
7432// GoogleCloudDocumentaiV1beta3DocumentTextAnchor: Text reference
7433// indexing into the Document.text.
7434type GoogleCloudDocumentaiV1beta3DocumentTextAnchor struct {
7435	// Content: Contains the content of the text span so that users do not
7436	// have to look it up in the text_segments.
7437	Content string `json:"content,omitempty"`
7438
7439	// TextSegments: The text segments from the Document.text.
7440	TextSegments []*GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
7441
7442	// ForceSendFields is a list of field names (e.g. "Content") to
7443	// unconditionally include in API requests. By default, fields with
7444	// empty or default values are omitted from API requests. However, any
7445	// non-pointer, non-interface field appearing in ForceSendFields will be
7446	// sent to the server regardless of whether the field is empty or not.
7447	// This may be used to include empty fields in Patch requests.
7448	ForceSendFields []string `json:"-"`
7449
7450	// NullFields is a list of field names (e.g. "Content") to include in
7451	// API requests with the JSON null value. By default, fields with empty
7452	// values are omitted from API requests. However, any field with an
7453	// empty value appearing in NullFields will be sent to the server as
7454	// null. It is an error if a field in this list has a non-empty value.
7455	// This may be used to include null fields in Patch requests.
7456	NullFields []string `json:"-"`
7457}
7458
7459func (s *GoogleCloudDocumentaiV1beta3DocumentTextAnchor) MarshalJSON() ([]byte, error) {
7460	type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextAnchor
7461	raw := NoMethod(*s)
7462	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7463}
7464
7465// GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment: A text
7466// segment in the Document.text. The indices may be out of bounds which
7467// indicate that the text extends into another document shard for large
7468// sharded documents. See ShardInfo.text_offset
7469type GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment struct {
7470	// EndIndex: TextSegment half open end UTF-8 char index in the
7471	// Document.text.
7472	EndIndex int64 `json:"endIndex,omitempty,string"`
7473
7474	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
7475	StartIndex int64 `json:"startIndex,omitempty,string"`
7476
7477	// ForceSendFields is a list of field names (e.g. "EndIndex") to
7478	// unconditionally include in API requests. By default, fields with
7479	// empty or default values are omitted from API requests. However, any
7480	// non-pointer, non-interface field appearing in ForceSendFields will be
7481	// sent to the server regardless of whether the field is empty or not.
7482	// This may be used to include empty fields in Patch requests.
7483	ForceSendFields []string `json:"-"`
7484
7485	// NullFields is a list of field names (e.g. "EndIndex") to include in
7486	// API requests with the JSON null value. By default, fields with empty
7487	// values are omitted from API requests. However, any field with an
7488	// empty value appearing in NullFields will be sent to the server as
7489	// null. It is an error if a field in this list has a non-empty value.
7490	// This may be used to include null fields in Patch requests.
7491	NullFields []string `json:"-"`
7492}
7493
7494func (s *GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
7495	type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment
7496	raw := NoMethod(*s)
7497	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7498}
7499
7500// GoogleCloudDocumentaiV1beta3DocumentTextChange: This message is used
7501// for text changes aka. OCR corrections.
7502type GoogleCloudDocumentaiV1beta3DocumentTextChange struct {
7503	// ChangedText: The text that replaces the text identified in the
7504	// `text_anchor`.
7505	ChangedText string `json:"changedText,omitempty"`
7506
7507	// Provenance: The history of this annotation.
7508	Provenance []*GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
7509
7510	// TextAnchor: Provenance of the correction. Text anchor indexing into
7511	// the Document.text. There can only be a single
7512	// `TextAnchor.text_segments` element. If the start and end index of the
7513	// text segment are the same, the text change is inserted before that
7514	// index.
7515	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
7516
7517	// ForceSendFields is a list of field names (e.g. "ChangedText") to
7518	// unconditionally include in API requests. By default, fields with
7519	// empty or default values are omitted from API requests. However, any
7520	// non-pointer, non-interface field appearing in ForceSendFields will be
7521	// sent to the server regardless of whether the field is empty or not.
7522	// This may be used to include empty fields in Patch requests.
7523	ForceSendFields []string `json:"-"`
7524
7525	// NullFields is a list of field names (e.g. "ChangedText") to include
7526	// in API requests with the JSON null value. By default, fields with
7527	// empty values are omitted from API requests. However, any field with
7528	// an empty value appearing in NullFields will be sent to the server as
7529	// null. It is an error if a field in this list has a non-empty value.
7530	// This may be used to include null fields in Patch requests.
7531	NullFields []string `json:"-"`
7532}
7533
7534func (s *GoogleCloudDocumentaiV1beta3DocumentTextChange) MarshalJSON() ([]byte, error) {
7535	type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextChange
7536	raw := NoMethod(*s)
7537	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7538}
7539
7540// GoogleCloudDocumentaiV1beta3EnableProcessorMetadata: The long running
7541// operation metadata for enable processor method.
7542type GoogleCloudDocumentaiV1beta3EnableProcessorMetadata struct {
7543	// CommonMetadata: The basic metadata of the long running operation.
7544	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
7545
7546	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
7547	// unconditionally include in API requests. By default, fields with
7548	// empty or default values are omitted from API requests. However, any
7549	// non-pointer, non-interface field appearing in ForceSendFields will be
7550	// sent to the server regardless of whether the field is empty or not.
7551	// This may be used to include empty fields in Patch requests.
7552	ForceSendFields []string `json:"-"`
7553
7554	// NullFields is a list of field names (e.g. "CommonMetadata") to
7555	// include in API requests with the JSON null value. By default, fields
7556	// with empty values are omitted from API requests. However, any field
7557	// with an empty value appearing in NullFields will be sent to the
7558	// server as null. It is an error if a field in this list has a
7559	// non-empty value. This may be used to include null fields in Patch
7560	// requests.
7561	NullFields []string `json:"-"`
7562}
7563
7564func (s *GoogleCloudDocumentaiV1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
7565	type NoMethod GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
7566	raw := NoMethod(*s)
7567	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7568}
7569
7570// GoogleCloudDocumentaiV1beta3EnableProcessorRequest: Request message
7571// for the enable processor method.
7572type GoogleCloudDocumentaiV1beta3EnableProcessorRequest struct {
7573}
7574
7575// GoogleCloudDocumentaiV1beta3EnableProcessorResponse: Response message
7576// for the enable processor method. Intentionally empty proto for adding
7577// fields in future.
7578type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct {
7579}
7580
7581// GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse: Response
7582// message for fetch processor types.
7583type GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse struct {
7584	// ProcessorTypes: The list of processor types.
7585	ProcessorTypes []*GoogleCloudDocumentaiV1beta3ProcessorType `json:"processorTypes,omitempty"`
7586
7587	// ServerResponse contains the HTTP response code and headers from the
7588	// server.
7589	googleapi.ServerResponse `json:"-"`
7590
7591	// ForceSendFields is a list of field names (e.g. "ProcessorTypes") to
7592	// unconditionally include in API requests. By default, fields with
7593	// empty or default values are omitted from API requests. However, any
7594	// non-pointer, non-interface field appearing in ForceSendFields will be
7595	// sent to the server regardless of whether the field is empty or not.
7596	// This may be used to include empty fields in Patch requests.
7597	ForceSendFields []string `json:"-"`
7598
7599	// NullFields is a list of field names (e.g. "ProcessorTypes") to
7600	// include in API requests with the JSON null value. By default, fields
7601	// with empty values are omitted from API requests. However, any field
7602	// with an empty value appearing in NullFields will be sent to the
7603	// server as null. It is an error if a field in this list has a
7604	// non-empty value. This may be used to include null fields in Patch
7605	// requests.
7606	NullFields []string `json:"-"`
7607}
7608
7609func (s *GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse) MarshalJSON() ([]byte, error) {
7610	type NoMethod GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
7611	raw := NoMethod(*s)
7612	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7613}
7614
7615// GoogleCloudDocumentaiV1beta3GcsDocument: Specifies a document stored
7616// on Cloud Storage.
7617type GoogleCloudDocumentaiV1beta3GcsDocument struct {
7618	// GcsUri: The Cloud Storage object uri.
7619	GcsUri string `json:"gcsUri,omitempty"`
7620
7621	// MimeType: An IANA MIME type (RFC6838) of the content.
7622	MimeType string `json:"mimeType,omitempty"`
7623
7624	// ForceSendFields is a list of field names (e.g. "GcsUri") to
7625	// unconditionally include in API requests. By default, fields with
7626	// empty or default values are omitted from API requests. However, any
7627	// non-pointer, non-interface field appearing in ForceSendFields will be
7628	// sent to the server regardless of whether the field is empty or not.
7629	// This may be used to include empty fields in Patch requests.
7630	ForceSendFields []string `json:"-"`
7631
7632	// NullFields is a list of field names (e.g. "GcsUri") to include in API
7633	// requests with the JSON null value. By default, fields with empty
7634	// values are omitted from API requests. However, any field with an
7635	// empty value appearing in NullFields will be sent to the server as
7636	// null. It is an error if a field in this list has a non-empty value.
7637	// This may be used to include null fields in Patch requests.
7638	NullFields []string `json:"-"`
7639}
7640
7641func (s *GoogleCloudDocumentaiV1beta3GcsDocument) MarshalJSON() ([]byte, error) {
7642	type NoMethod GoogleCloudDocumentaiV1beta3GcsDocument
7643	raw := NoMethod(*s)
7644	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7645}
7646
7647// GoogleCloudDocumentaiV1beta3GcsDocuments: Specifies a set of
7648// documents on Cloud Storage.
7649type GoogleCloudDocumentaiV1beta3GcsDocuments struct {
7650	// Documents: The list of documents.
7651	Documents []*GoogleCloudDocumentaiV1beta3GcsDocument `json:"documents,omitempty"`
7652
7653	// ForceSendFields is a list of field names (e.g. "Documents") to
7654	// unconditionally include in API requests. By default, fields with
7655	// empty or default values are omitted from API requests. However, any
7656	// non-pointer, non-interface field appearing in ForceSendFields will be
7657	// sent to the server regardless of whether the field is empty or not.
7658	// This may be used to include empty fields in Patch requests.
7659	ForceSendFields []string `json:"-"`
7660
7661	// NullFields is a list of field names (e.g. "Documents") to include in
7662	// API requests with the JSON null value. By default, fields with empty
7663	// values are omitted from API requests. However, any field with an
7664	// empty value appearing in NullFields will be sent to the server as
7665	// null. It is an error if a field in this list has a non-empty value.
7666	// This may be used to include null fields in Patch requests.
7667	NullFields []string `json:"-"`
7668}
7669
7670func (s *GoogleCloudDocumentaiV1beta3GcsDocuments) MarshalJSON() ([]byte, error) {
7671	type NoMethod GoogleCloudDocumentaiV1beta3GcsDocuments
7672	raw := NoMethod(*s)
7673	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7674}
7675
7676// GoogleCloudDocumentaiV1beta3GcsPrefix: Specifies all documents on
7677// Cloud Storage with a common prefix.
7678type GoogleCloudDocumentaiV1beta3GcsPrefix struct {
7679	// GcsUriPrefix: The URI prefix.
7680	GcsUriPrefix string `json:"gcsUriPrefix,omitempty"`
7681
7682	// ForceSendFields is a list of field names (e.g. "GcsUriPrefix") to
7683	// unconditionally include in API requests. By default, fields with
7684	// empty or default values are omitted from API requests. However, any
7685	// non-pointer, non-interface field appearing in ForceSendFields will be
7686	// sent to the server regardless of whether the field is empty or not.
7687	// This may be used to include empty fields in Patch requests.
7688	ForceSendFields []string `json:"-"`
7689
7690	// NullFields is a list of field names (e.g. "GcsUriPrefix") to include
7691	// in API requests with the JSON null value. By default, fields with
7692	// empty values are omitted from API requests. However, any field with
7693	// an empty value appearing in NullFields will be sent to the server as
7694	// null. It is an error if a field in this list has a non-empty value.
7695	// This may be used to include null fields in Patch requests.
7696	NullFields []string `json:"-"`
7697}
7698
7699func (s *GoogleCloudDocumentaiV1beta3GcsPrefix) MarshalJSON() ([]byte, error) {
7700	type NoMethod GoogleCloudDocumentaiV1beta3GcsPrefix
7701	raw := NoMethod(*s)
7702	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7703}
7704
7705// GoogleCloudDocumentaiV1beta3HumanReviewStatus: The status of human
7706// review on a processed document.
7707type GoogleCloudDocumentaiV1beta3HumanReviewStatus struct {
7708	// HumanReviewOperation: The name of the operation triggered by the
7709	// processed document. This field is populated only when the [state] is
7710	// [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
7711	// metadata as the long running operation returned by [ReviewDocument]
7712	// method.
7713	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
7714
7715	// State: The state of human review on the processing request.
7716	//
7717	// Possible values:
7718	//   "STATE_UNSPECIFIED" - Human review state is unspecified. Most
7719	// likely due to an internal error.
7720	//   "SKIPPED" - Human review is skipped for the document. This can
7721	// happen because human review is not enabled on the processor or the
7722	// processing request has been set to skip this document.
7723	//   "VALIDATION_PASSED" - Human review validation is triggered and
7724	// passed, so no review is needed.
7725	//   "IN_PROGRESS" - Human review validation is triggered and the
7726	// document is under review.
7727	//   "ERROR" - Some error happened during triggering human review, see
7728	// the [state_message] for details.
7729	State string `json:"state,omitempty"`
7730
7731	// StateMessage: A message providing more details about the human review
7732	// state.
7733	StateMessage string `json:"stateMessage,omitempty"`
7734
7735	// ForceSendFields is a list of field names (e.g.
7736	// "HumanReviewOperation") to unconditionally include in API requests.
7737	// By default, fields with empty or default values are omitted from API
7738	// requests. However, any non-pointer, non-interface field appearing in
7739	// ForceSendFields will be sent to the server regardless of whether the
7740	// field is empty or not. This may be used to include empty fields in
7741	// Patch requests.
7742	ForceSendFields []string `json:"-"`
7743
7744	// NullFields is a list of field names (e.g. "HumanReviewOperation") to
7745	// include in API requests with the JSON null value. By default, fields
7746	// with empty values are omitted from API requests. However, any field
7747	// with an empty value appearing in NullFields will be sent to the
7748	// server as null. It is an error if a field in this list has a
7749	// non-empty value. This may be used to include null fields in Patch
7750	// requests.
7751	NullFields []string `json:"-"`
7752}
7753
7754func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, error) {
7755	type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewStatus
7756	raw := NoMethod(*s)
7757	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7758}
7759
7760// GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse: Response
7761// message for list processors.
7762type GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse struct {
7763	// NextPageToken: Points to the next processor, otherwise empty.
7764	NextPageToken string `json:"nextPageToken,omitempty"`
7765
7766	// ProcessorVersions: The list of processors.
7767	ProcessorVersions []*GoogleCloudDocumentaiV1beta3ProcessorVersion `json:"processorVersions,omitempty"`
7768
7769	// ServerResponse contains the HTTP response code and headers from the
7770	// server.
7771	googleapi.ServerResponse `json:"-"`
7772
7773	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
7774	// unconditionally include in API requests. By default, fields with
7775	// empty or default values are omitted from API requests. However, any
7776	// non-pointer, non-interface field appearing in ForceSendFields will be
7777	// sent to the server regardless of whether the field is empty or not.
7778	// This may be used to include empty fields in Patch requests.
7779	ForceSendFields []string `json:"-"`
7780
7781	// NullFields is a list of field names (e.g. "NextPageToken") to include
7782	// in API requests with the JSON null value. By default, fields with
7783	// empty values are omitted from API requests. However, any field with
7784	// an empty value appearing in NullFields will be sent to the server as
7785	// null. It is an error if a field in this list has a non-empty value.
7786	// This may be used to include null fields in Patch requests.
7787	NullFields []string `json:"-"`
7788}
7789
7790func (s *GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse) MarshalJSON() ([]byte, error) {
7791	type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse
7792	raw := NoMethod(*s)
7793	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7794}
7795
7796// GoogleCloudDocumentaiV1beta3ListProcessorsResponse: Response message
7797// for list processors.
7798type GoogleCloudDocumentaiV1beta3ListProcessorsResponse struct {
7799	// NextPageToken: Points to the next processor, otherwise empty.
7800	NextPageToken string `json:"nextPageToken,omitempty"`
7801
7802	// Processors: The list of processors.
7803	Processors []*GoogleCloudDocumentaiV1beta3Processor `json:"processors,omitempty"`
7804
7805	// ServerResponse contains the HTTP response code and headers from the
7806	// server.
7807	googleapi.ServerResponse `json:"-"`
7808
7809	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
7810	// unconditionally include in API requests. By default, fields with
7811	// empty or default values are omitted from API requests. However, any
7812	// non-pointer, non-interface field appearing in ForceSendFields will be
7813	// sent to the server regardless of whether the field is empty or not.
7814	// This may be used to include empty fields in Patch requests.
7815	ForceSendFields []string `json:"-"`
7816
7817	// NullFields is a list of field names (e.g. "NextPageToken") to include
7818	// in API requests with the JSON null value. By default, fields with
7819	// empty values are omitted from API requests. However, any field with
7820	// an empty value appearing in NullFields will be sent to the server as
7821	// null. It is an error if a field in this list has a non-empty value.
7822	// This may be used to include null fields in Patch requests.
7823	NullFields []string `json:"-"`
7824}
7825
7826func (s *GoogleCloudDocumentaiV1beta3ListProcessorsResponse) MarshalJSON() ([]byte, error) {
7827	type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorsResponse
7828	raw := NoMethod(*s)
7829	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7830}
7831
7832// GoogleCloudDocumentaiV1beta3NormalizedVertex: A vertex represents a
7833// 2D point in the image. NOTE: the normalized vertex coordinates are
7834// relative to the original image and range from 0 to 1.
7835type GoogleCloudDocumentaiV1beta3NormalizedVertex struct {
7836	// X: X coordinate.
7837	X float64 `json:"x,omitempty"`
7838
7839	// Y: Y coordinate (starts from the top of the image).
7840	Y float64 `json:"y,omitempty"`
7841
7842	// ForceSendFields is a list of field names (e.g. "X") to
7843	// unconditionally include in API requests. By default, fields with
7844	// empty or default values are omitted from API requests. However, any
7845	// non-pointer, non-interface field appearing in ForceSendFields will be
7846	// sent to the server regardless of whether the field is empty or not.
7847	// This may be used to include empty fields in Patch requests.
7848	ForceSendFields []string `json:"-"`
7849
7850	// NullFields is a list of field names (e.g. "X") to include in API
7851	// requests with the JSON null value. By default, fields with empty
7852	// values are omitted from API requests. However, any field with an
7853	// empty value appearing in NullFields will be sent to the server as
7854	// null. It is an error if a field in this list has a non-empty value.
7855	// This may be used to include null fields in Patch requests.
7856	NullFields []string `json:"-"`
7857}
7858
7859func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) MarshalJSON() ([]byte, error) {
7860	type NoMethod GoogleCloudDocumentaiV1beta3NormalizedVertex
7861	raw := NoMethod(*s)
7862	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7863}
7864
7865func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) UnmarshalJSON(data []byte) error {
7866	type NoMethod GoogleCloudDocumentaiV1beta3NormalizedVertex
7867	var s1 struct {
7868		X gensupport.JSONFloat64 `json:"x"`
7869		Y gensupport.JSONFloat64 `json:"y"`
7870		*NoMethod
7871	}
7872	s1.NoMethod = (*NoMethod)(s)
7873	if err := json.Unmarshal(data, &s1); err != nil {
7874		return err
7875	}
7876	s.X = float64(s1.X)
7877	s.Y = float64(s1.Y)
7878	return nil
7879}
7880
7881// GoogleCloudDocumentaiV1beta3ProcessRequest: Request message for the
7882// process document method.
7883type GoogleCloudDocumentaiV1beta3ProcessRequest struct {
7884	// Document: The document payload, the [content] and [mime_type] fields
7885	// must be set.
7886	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
7887
7888	// InlineDocument: An inline document proto.
7889	InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"`
7890
7891	// RawDocument: A raw document content (bytes).
7892	RawDocument *GoogleCloudDocumentaiV1beta3RawDocument `json:"rawDocument,omitempty"`
7893
7894	// SkipHumanReview: Whether Human Review feature should be skipped for
7895	// this request. Default to false.
7896	SkipHumanReview bool `json:"skipHumanReview,omitempty"`
7897
7898	// ForceSendFields is a list of field names (e.g. "Document") to
7899	// unconditionally include in API requests. By default, fields with
7900	// empty or default values are omitted from API requests. However, any
7901	// non-pointer, non-interface field appearing in ForceSendFields will be
7902	// sent to the server regardless of whether the field is empty or not.
7903	// This may be used to include empty fields in Patch requests.
7904	ForceSendFields []string `json:"-"`
7905
7906	// NullFields is a list of field names (e.g. "Document") to include in
7907	// API requests with the JSON null value. By default, fields with empty
7908	// values are omitted from API requests. However, any field with an
7909	// empty value appearing in NullFields will be sent to the server as
7910	// null. It is an error if a field in this list has a non-empty value.
7911	// This may be used to include null fields in Patch requests.
7912	NullFields []string `json:"-"`
7913}
7914
7915func (s *GoogleCloudDocumentaiV1beta3ProcessRequest) MarshalJSON() ([]byte, error) {
7916	type NoMethod GoogleCloudDocumentaiV1beta3ProcessRequest
7917	raw := NoMethod(*s)
7918	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7919}
7920
7921// GoogleCloudDocumentaiV1beta3ProcessResponse: Response message for the
7922// process document method.
7923type GoogleCloudDocumentaiV1beta3ProcessResponse struct {
7924	// Document: The document payload, will populate fields based on the
7925	// processor's behavior.
7926	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
7927
7928	// HumanReviewOperation: The name of the operation triggered by the
7929	// processed document. If the human review process is not triggered,
7930	// this field will be empty. It has the same response type and metadata
7931	// as the long running operation returned by ReviewDocument method.
7932	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
7933
7934	// HumanReviewStatus: The status of human review on the processed
7935	// document.
7936	HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
7937
7938	// ServerResponse contains the HTTP response code and headers from the
7939	// server.
7940	googleapi.ServerResponse `json:"-"`
7941
7942	// ForceSendFields is a list of field names (e.g. "Document") to
7943	// unconditionally include in API requests. By default, fields with
7944	// empty or default values are omitted from API requests. However, any
7945	// non-pointer, non-interface field appearing in ForceSendFields will be
7946	// sent to the server regardless of whether the field is empty or not.
7947	// This may be used to include empty fields in Patch requests.
7948	ForceSendFields []string `json:"-"`
7949
7950	// NullFields is a list of field names (e.g. "Document") to include in
7951	// API requests with the JSON null value. By default, fields with empty
7952	// values are omitted from API requests. However, any field with an
7953	// empty value appearing in NullFields will be sent to the server as
7954	// null. It is an error if a field in this list has a non-empty value.
7955	// This may be used to include null fields in Patch requests.
7956	NullFields []string `json:"-"`
7957}
7958
7959func (s *GoogleCloudDocumentaiV1beta3ProcessResponse) MarshalJSON() ([]byte, error) {
7960	type NoMethod GoogleCloudDocumentaiV1beta3ProcessResponse
7961	raw := NoMethod(*s)
7962	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7963}
7964
7965// GoogleCloudDocumentaiV1beta3Processor: The first-class citizen for
7966// DAI. Each processor defines how to extract structural information
7967// from a document.
7968type GoogleCloudDocumentaiV1beta3Processor struct {
7969	// CreateTime: The time the processor was created.
7970	CreateTime string `json:"createTime,omitempty"`
7971
7972	// DefaultProcessorVersion: The default processor version.
7973	DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
7974
7975	// DisplayName: The display name of the processor.
7976	DisplayName string `json:"displayName,omitempty"`
7977
7978	// KmsKeyName: The KMS key used for encryption/decryption in CMEK
7979	// scenarios. See https://cloud.google.com/security-key-management.
7980	KmsKeyName string `json:"kmsKeyName,omitempty"`
7981
7982	// Name: Output only. Immutable. The resource name of the processor.
7983	// Format:
7984	// projects/{project}/locations/{location}/processors/{processor}
7985	Name string `json:"name,omitempty"`
7986
7987	// ProcessEndpoint: Output only. Immutable. The http endpoint that can
7988	// be called to invoke processing.
7989	ProcessEndpoint string `json:"processEndpoint,omitempty"`
7990
7991	// State: Output only. The state of the processor.
7992	//
7993	// Possible values:
7994	//   "STATE_UNSPECIFIED" - The processor is in an unspecified state.
7995	//   "ENABLED" - The processor is enabled, i.e, has an enabled version
7996	// which can currently serve processing requests and all the feature
7997	// dependencies have been successfully initialized.
7998	//   "DISABLED" - The processor is disabled.
7999	//   "ENABLING" - The processor is being enabled, will become ENABLED if
8000	// successful.
8001	//   "DISABLING" - The processor is being disabled, will become DISABLED
8002	// if successful.
8003	//   "CREATING" - The processor is being created, will become either
8004	// ENABLED (for successful creation) or FAILED (for failed ones). Once a
8005	// processor is in this state, it can then be used for document
8006	// processing, but the feature dependencies of the processor might not
8007	// be fully created yet.
8008	//   "FAILED" - The processor failed during creation or initialization
8009	// of feature dependencies. The user should delete the processor and
8010	// recreate one as all the functionalities of the processor are
8011	// disabled.
8012	//   "DELETING" - The processor is being deleted, will be removed if
8013	// successful.
8014	State string `json:"state,omitempty"`
8015
8016	// Type: The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc.
8017	Type string `json:"type,omitempty"`
8018
8019	// ServerResponse contains the HTTP response code and headers from the
8020	// server.
8021	googleapi.ServerResponse `json:"-"`
8022
8023	// ForceSendFields is a list of field names (e.g. "CreateTime") to
8024	// unconditionally include in API requests. By default, fields with
8025	// empty or default values are omitted from API requests. However, any
8026	// non-pointer, non-interface field appearing in ForceSendFields will be
8027	// sent to the server regardless of whether the field is empty or not.
8028	// This may be used to include empty fields in Patch requests.
8029	ForceSendFields []string `json:"-"`
8030
8031	// NullFields is a list of field names (e.g. "CreateTime") to include in
8032	// API requests with the JSON null value. By default, fields with empty
8033	// values are omitted from API requests. However, any field with an
8034	// empty value appearing in NullFields will be sent to the server as
8035	// null. It is an error if a field in this list has a non-empty value.
8036	// This may be used to include null fields in Patch requests.
8037	NullFields []string `json:"-"`
8038}
8039
8040func (s *GoogleCloudDocumentaiV1beta3Processor) MarshalJSON() ([]byte, error) {
8041	type NoMethod GoogleCloudDocumentaiV1beta3Processor
8042	raw := NoMethod(*s)
8043	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8044}
8045
8046// GoogleCloudDocumentaiV1beta3ProcessorType: A processor type is
8047// responsible for performing a certain document understanding task on a
8048// certain type of document. All processor types are created by the
8049// documentai service internally. User will only list all available
8050// processor types via UI. For different users (projects), the available
8051// processor types may be different since we'll expose the access of
8052// some types via EAP whitelisting. We make the ProcessorType a resource
8053// under location so we have a unified API and keep the possibility that
8054// UI will load different available processor types from different
8055// regions. But for alpha the behavior is that the user will always get
8056// the union of all available processor types among all regions no
8057// matter which regionalized endpoint is called, and then we use the
8058// 'available_locations' field to show under which regions a processor
8059// type is available. For example, users can call either the 'US' or
8060// 'EU' endpoint to feach processor types. In the return, we will have
8061// an 'invoice parsing' processor with 'available_locations' field only
8062// containing 'US'. So the user can try to create an 'invoice parsing'
8063// processor under the location 'US'. Such attempt of creating under the
8064// location 'EU' will fail. Next ID: 9.
8065type GoogleCloudDocumentaiV1beta3ProcessorType struct {
8066	// AllowCreation: Whether the processor type allows creation. If yes,
8067	// user can create a processor of this processor type. Otherwise, user
8068	// needs to request access.
8069	AllowCreation bool `json:"allowCreation,omitempty"`
8070
8071	// AvailableLocations: The locations in which this processor is
8072	// available.
8073	AvailableLocations []*GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo `json:"availableLocations,omitempty"`
8074
8075	// Category: The processor category, used by UI to group processor
8076	// types.
8077	Category string `json:"category,omitempty"`
8078
8079	// LaunchStage: Launch stage of the processor type
8080	//
8081	// Possible values:
8082	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
8083	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not
8084	// use it.
8085	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
8086	// visible internally.
8087	//   "EARLY_ACCESS" - Early Access features are limited to a closed
8088	// group of testers. To use these features, you must sign up in advance
8089	// and sign a Trusted Tester agreement (which includes confidentiality
8090	// provisions). These features may be unstable, changed in
8091	// backward-incompatible ways, and are not guaranteed to be released.
8092	//   "ALPHA" - Alpha is a limited availability test for releases before
8093	// they are cleared for widespread use. By Alpha, all significant design
8094	// issues are resolved and we are in the process of verifying
8095	// functionality. Alpha customers need to apply for access, agree to
8096	// applicable terms, and have their projects allowlisted. Alpha releases
8097	// don’t have to be feature complete, no SLAs are provided, and there
8098	// are no technical support obligations, but they will be far enough
8099	// along that customers can actually use them in test environments or
8100	// for limited-use tests -- just like they would in normal production
8101	// cases.
8102	//   "BETA" - Beta is the point at which we are ready to open a release
8103	// for any customer to use. There are no SLA or technical support
8104	// obligations in a Beta release. Products will be complete from a
8105	// feature perspective, but may have some open outstanding issues. Beta
8106	// releases are suitable for limited production use cases.
8107	//   "GA" - GA features are open to all developers and are considered
8108	// stable and fully qualified for production use.
8109	//   "DEPRECATED" - Deprecated features are scheduled to be shut down
8110	// and removed. For more information, see the “Deprecation Policy”
8111	// section of our [Terms of Service](https://cloud.google.com/terms/)
8112	// and the [Google Cloud Platform Subject to the Deprecation
8113	// Policy](https://cloud.google.com/terms/deprecation) documentation.
8114	LaunchStage string `json:"launchStage,omitempty"`
8115
8116	// Name: The resource name of the processor type. Format:
8117	// projects/{project}/processorTypes/{processor_type}
8118	Name string `json:"name,omitempty"`
8119
8120	// Type: The type of the processor, e.g., "invoice_parsing".
8121	Type string `json:"type,omitempty"`
8122
8123	// ForceSendFields is a list of field names (e.g. "AllowCreation") to
8124	// unconditionally include in API requests. By default, fields with
8125	// empty or default values are omitted from API requests. However, any
8126	// non-pointer, non-interface field appearing in ForceSendFields will be
8127	// sent to the server regardless of whether the field is empty or not.
8128	// This may be used to include empty fields in Patch requests.
8129	ForceSendFields []string `json:"-"`
8130
8131	// NullFields is a list of field names (e.g. "AllowCreation") to include
8132	// in API requests with the JSON null value. By default, fields with
8133	// empty values are omitted from API requests. However, any field with
8134	// an empty value appearing in NullFields will be sent to the server as
8135	// null. It is an error if a field in this list has a non-empty value.
8136	// This may be used to include null fields in Patch requests.
8137	NullFields []string `json:"-"`
8138}
8139
8140func (s *GoogleCloudDocumentaiV1beta3ProcessorType) MarshalJSON() ([]byte, error) {
8141	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorType
8142	raw := NoMethod(*s)
8143	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8144}
8145
8146// GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo: The location
8147// information about where the processor is available.
8148type GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo struct {
8149	// LocationId: The location id, currently must be one of [us, eu].
8150	LocationId string `json:"locationId,omitempty"`
8151
8152	// ForceSendFields is a list of field names (e.g. "LocationId") to
8153	// unconditionally include in API requests. By default, fields with
8154	// empty or default values are omitted from API requests. However, any
8155	// non-pointer, non-interface field appearing in ForceSendFields will be
8156	// sent to the server regardless of whether the field is empty or not.
8157	// This may be used to include empty fields in Patch requests.
8158	ForceSendFields []string `json:"-"`
8159
8160	// NullFields is a list of field names (e.g. "LocationId") to include in
8161	// API requests with the JSON null value. By default, fields with empty
8162	// values are omitted from API requests. However, any field with an
8163	// empty value appearing in NullFields will be sent to the server as
8164	// null. It is an error if a field in this list has a non-empty value.
8165	// This may be used to include null fields in Patch requests.
8166	NullFields []string `json:"-"`
8167}
8168
8169func (s *GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo) MarshalJSON() ([]byte, error) {
8170	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
8171	raw := NoMethod(*s)
8172	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8173}
8174
8175// GoogleCloudDocumentaiV1beta3ProcessorVersion: A processor version is
8176// an implementation of a processor. Each processor can have multiple
8177// versions, pre-trained by Google internally or up-trained by the
8178// customer. At a time, a processor can only have one default version
8179// version. So the processor's behavior (when processing documents) is
8180// defined by a default version.
8181type GoogleCloudDocumentaiV1beta3ProcessorVersion struct {
8182	// CreateTime: The time the processor version was created.
8183	CreateTime string `json:"createTime,omitempty"`
8184
8185	// DisplayName: The display name of the processor version.
8186	DisplayName string `json:"displayName,omitempty"`
8187
8188	// Name: The resource name of the processor version. Format:
8189	// projects/{project}/locations/{location}/processors/{processor}/process
8190	// orVersions/{processor_version}
8191	Name string `json:"name,omitempty"`
8192
8193	// State: The state of the processor version.
8194	//
8195	// Possible values:
8196	//   "STATE_UNSPECIFIED" - The processor version is in an unspecified
8197	// state.
8198	//   "DEPLOYED" - The processor version is deployed and can be used for
8199	// processing.
8200	//   "DEPLOYING" - The processor version is being deployed.
8201	//   "UNDEPLOYED" - The processor version is not deployed and cannot be
8202	// used for processing.
8203	//   "UNDEPLOYING" - The processor version is being undeployed.
8204	//   "CREATING" - The processor version is being created.
8205	//   "DELETING" - The processor version is being deleted.
8206	//   "FAILED" - The processor version failed and is in an indeterminate
8207	// state.
8208	State string `json:"state,omitempty"`
8209
8210	// ServerResponse contains the HTTP response code and headers from the
8211	// server.
8212	googleapi.ServerResponse `json:"-"`
8213
8214	// ForceSendFields is a list of field names (e.g. "CreateTime") to
8215	// unconditionally include in API requests. By default, fields with
8216	// empty or default values are omitted from API requests. However, any
8217	// non-pointer, non-interface field appearing in ForceSendFields will be
8218	// sent to the server regardless of whether the field is empty or not.
8219	// This may be used to include empty fields in Patch requests.
8220	ForceSendFields []string `json:"-"`
8221
8222	// NullFields is a list of field names (e.g. "CreateTime") to include in
8223	// API requests with the JSON null value. By default, fields with empty
8224	// values are omitted from API requests. However, any field with an
8225	// empty value appearing in NullFields will be sent to the server as
8226	// null. It is an error if a field in this list has a non-empty value.
8227	// This may be used to include null fields in Patch requests.
8228	NullFields []string `json:"-"`
8229}
8230
8231func (s *GoogleCloudDocumentaiV1beta3ProcessorVersion) MarshalJSON() ([]byte, error) {
8232	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersion
8233	raw := NoMethod(*s)
8234	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8235}
8236
8237// GoogleCloudDocumentaiV1beta3RawDocument: Payload message of raw
8238// document content (bytes).
8239type GoogleCloudDocumentaiV1beta3RawDocument struct {
8240	// Content: Inline document content.
8241	Content string `json:"content,omitempty"`
8242
8243	// MimeType: An IANA MIME type (RFC6838) indicating the nature and
8244	// format of the [content].
8245	MimeType string `json:"mimeType,omitempty"`
8246
8247	// ForceSendFields is a list of field names (e.g. "Content") to
8248	// unconditionally include in API requests. By default, fields with
8249	// empty or default values are omitted from API requests. However, any
8250	// non-pointer, non-interface field appearing in ForceSendFields will be
8251	// sent to the server regardless of whether the field is empty or not.
8252	// This may be used to include empty fields in Patch requests.
8253	ForceSendFields []string `json:"-"`
8254
8255	// NullFields is a list of field names (e.g. "Content") to include in
8256	// API requests with the JSON null value. By default, fields with empty
8257	// values are omitted from API requests. However, any field with an
8258	// empty value appearing in NullFields will be sent to the server as
8259	// null. It is an error if a field in this list has a non-empty value.
8260	// This may be used to include null fields in Patch requests.
8261	NullFields []string `json:"-"`
8262}
8263
8264func (s *GoogleCloudDocumentaiV1beta3RawDocument) MarshalJSON() ([]byte, error) {
8265	type NoMethod GoogleCloudDocumentaiV1beta3RawDocument
8266	raw := NoMethod(*s)
8267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8268}
8269
8270// GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata: The long
8271// running operation metadata for review document method.
8272type GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata struct {
8273	// CommonMetadata: The basic metadata of the long running operation.
8274	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8275
8276	// CreateTime: The creation time of the operation.
8277	CreateTime string `json:"createTime,omitempty"`
8278
8279	// State: Used only when Operation.done is false.
8280	//
8281	// Possible values:
8282	//   "STATE_UNSPECIFIED" - Unspecified state.
8283	//   "RUNNING" - Operation is still running.
8284	//   "CANCELLING" - Operation is being cancelled.
8285	//   "SUCCEEDED" - Operation succeeded.
8286	//   "FAILED" - Operation failed.
8287	//   "CANCELLED" - Operation is cancelled.
8288	State string `json:"state,omitempty"`
8289
8290	// StateMessage: A message providing more details about the current
8291	// state of processing. For example, the error message if the operation
8292	// is failed.
8293	StateMessage string `json:"stateMessage,omitempty"`
8294
8295	// UpdateTime: The last update time of the operation.
8296	UpdateTime string `json:"updateTime,omitempty"`
8297
8298	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8299	// unconditionally include in API requests. By default, fields with
8300	// empty or default values are omitted from API requests. However, any
8301	// non-pointer, non-interface field appearing in ForceSendFields will be
8302	// sent to the server regardless of whether the field is empty or not.
8303	// This may be used to include empty fields in Patch requests.
8304	ForceSendFields []string `json:"-"`
8305
8306	// NullFields is a list of field names (e.g. "CommonMetadata") to
8307	// include in API requests with the JSON null value. By default, fields
8308	// with empty values are omitted from API requests. However, any field
8309	// with an empty value appearing in NullFields will be sent to the
8310	// server as null. It is an error if a field in this list has a
8311	// non-empty value. This may be used to include null fields in Patch
8312	// requests.
8313	NullFields []string `json:"-"`
8314}
8315
8316func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
8317	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
8318	raw := NoMethod(*s)
8319	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8320}
8321
8322// GoogleCloudDocumentaiV1beta3ReviewDocumentRequest: Request message
8323// for review document method. Next Id: 6.
8324type GoogleCloudDocumentaiV1beta3ReviewDocumentRequest struct {
8325	// Document: The document that needs human review.
8326	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
8327
8328	// EnableSchemaValidation: Whether the validation should be performed on
8329	// the ad-hoc review request.
8330	EnableSchemaValidation bool `json:"enableSchemaValidation,omitempty"`
8331
8332	// InlineDocument: An inline document proto.
8333	InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"`
8334
8335	// Priority: The priority of the human review task.
8336	//
8337	// Possible values:
8338	//   "DEFAULT" - The default priority level.
8339	//   "URGENT" - The urgent priority level. The labeling manager should
8340	// allocate labeler resource to the urgent task queue to respect this
8341	// priority level.
8342	Priority string `json:"priority,omitempty"`
8343
8344	// ForceSendFields is a list of field names (e.g. "Document") to
8345	// unconditionally include in API requests. By default, fields with
8346	// empty or default values are omitted from API requests. However, any
8347	// non-pointer, non-interface field appearing in ForceSendFields will be
8348	// sent to the server regardless of whether the field is empty or not.
8349	// This may be used to include empty fields in Patch requests.
8350	ForceSendFields []string `json:"-"`
8351
8352	// NullFields is a list of field names (e.g. "Document") to include in
8353	// API requests with the JSON null value. By default, fields with empty
8354	// values are omitted from API requests. However, any field with an
8355	// empty value appearing in NullFields will be sent to the server as
8356	// null. It is an error if a field in this list has a non-empty value.
8357	// This may be used to include null fields in Patch requests.
8358	NullFields []string `json:"-"`
8359}
8360
8361func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest) MarshalJSON() ([]byte, error) {
8362	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
8363	raw := NoMethod(*s)
8364	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8365}
8366
8367// GoogleCloudDocumentaiV1beta3ReviewDocumentResponse: Response message
8368// for review document method.
8369type GoogleCloudDocumentaiV1beta3ReviewDocumentResponse struct {
8370	// GcsDestination: The Cloud Storage uri for the human reviewed
8371	// document.
8372	GcsDestination string `json:"gcsDestination,omitempty"`
8373
8374	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
8375	// unconditionally include in API requests. By default, fields with
8376	// empty or default values are omitted from API requests. However, any
8377	// non-pointer, non-interface field appearing in ForceSendFields will be
8378	// sent to the server regardless of whether the field is empty or not.
8379	// This may be used to include empty fields in Patch requests.
8380	ForceSendFields []string `json:"-"`
8381
8382	// NullFields is a list of field names (e.g. "GcsDestination") to
8383	// include in API requests with the JSON null value. By default, fields
8384	// with empty values are omitted from API requests. However, any field
8385	// with an empty value appearing in NullFields will be sent to the
8386	// server as null. It is an error if a field in this list has a
8387	// non-empty value. This may be used to include null fields in Patch
8388	// requests.
8389	NullFields []string `json:"-"`
8390}
8391
8392func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
8393	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
8394	raw := NoMethod(*s)
8395	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8396}
8397
8398// GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata: The
8399// long running operation metadata for set default processor version
8400// method.
8401type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata struct {
8402	// CommonMetadata: The basic metadata of the long running operation.
8403	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8404
8405	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8406	// unconditionally include in API requests. By default, fields with
8407	// empty or default values are omitted from API requests. However, any
8408	// non-pointer, non-interface field appearing in ForceSendFields will be
8409	// sent to the server regardless of whether the field is empty or not.
8410	// This may be used to include empty fields in Patch requests.
8411	ForceSendFields []string `json:"-"`
8412
8413	// NullFields is a list of field names (e.g. "CommonMetadata") to
8414	// include in API requests with the JSON null value. By default, fields
8415	// with empty values are omitted from API requests. However, any field
8416	// with an empty value appearing in NullFields will be sent to the
8417	// server as null. It is an error if a field in this list has a
8418	// non-empty value. This may be used to include null fields in Patch
8419	// requests.
8420	NullFields []string `json:"-"`
8421}
8422
8423func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8424	type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
8425	raw := NoMethod(*s)
8426	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8427}
8428
8429// GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest:
8430// Request message for the set default processor version method.
8431type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest struct {
8432	// DefaultProcessorVersion: Required. The resource name of child
8433	// ProcessorVersion to use as default.
8434	DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
8435
8436	// ForceSendFields is a list of field names (e.g.
8437	// "DefaultProcessorVersion") to unconditionally include in API
8438	// requests. By default, fields with empty or default values are omitted
8439	// from API requests. However, any non-pointer, non-interface field
8440	// appearing in ForceSendFields will be sent to the server regardless of
8441	// whether the field is empty or not. This may be used to include empty
8442	// fields in Patch requests.
8443	ForceSendFields []string `json:"-"`
8444
8445	// NullFields is a list of field names (e.g. "DefaultProcessorVersion")
8446	// to include in API requests with the JSON null value. By default,
8447	// fields with empty values are omitted from API requests. However, any
8448	// field with an empty value appearing in NullFields will be sent to the
8449	// server as null. It is an error if a field in this list has a
8450	// non-empty value. This may be used to include null fields in Patch
8451	// requests.
8452	NullFields []string `json:"-"`
8453}
8454
8455func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest) MarshalJSON() ([]byte, error) {
8456	type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
8457	raw := NoMethod(*s)
8458	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8459}
8460
8461// GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse:
8462// Response message for set default processor version method.
8463type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse struct {
8464}
8465
8466// GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata: The
8467// long running operation metadata for the undeploy processor version
8468// method.
8469type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata struct {
8470	// CommonMetadata: The basic metadata of the long running operation.
8471	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
8472
8473	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
8474	// unconditionally include in API requests. By default, fields with
8475	// empty or default values are omitted from API requests. However, any
8476	// non-pointer, non-interface field appearing in ForceSendFields will be
8477	// sent to the server regardless of whether the field is empty or not.
8478	// This may be used to include empty fields in Patch requests.
8479	ForceSendFields []string `json:"-"`
8480
8481	// NullFields is a list of field names (e.g. "CommonMetadata") to
8482	// include in API requests with the JSON null value. By default, fields
8483	// with empty values are omitted from API requests. However, any field
8484	// with an empty value appearing in NullFields will be sent to the
8485	// server as null. It is an error if a field in this list has a
8486	// non-empty value. This may be used to include null fields in Patch
8487	// requests.
8488	NullFields []string `json:"-"`
8489}
8490
8491func (s *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
8492	type NoMethod GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
8493	raw := NoMethod(*s)
8494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8495}
8496
8497// GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest: Request
8498// message for the undeploy processor version method.
8499type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest struct {
8500}
8501
8502// GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse:
8503// Response message for the undeploy processor version method.
8504type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse struct {
8505}
8506
8507// GoogleCloudDocumentaiV1beta3Vertex: A vertex represents a 2D point in
8508// the image. NOTE: the vertex coordinates are in the same scale as the
8509// original image.
8510type GoogleCloudDocumentaiV1beta3Vertex struct {
8511	// X: X coordinate.
8512	X int64 `json:"x,omitempty"`
8513
8514	// Y: Y coordinate (starts from the top of the image).
8515	Y int64 `json:"y,omitempty"`
8516
8517	// ForceSendFields is a list of field names (e.g. "X") to
8518	// unconditionally include in API requests. By default, fields with
8519	// empty or default values are omitted from API requests. However, any
8520	// non-pointer, non-interface field appearing in ForceSendFields will be
8521	// sent to the server regardless of whether the field is empty or not.
8522	// This may be used to include empty fields in Patch requests.
8523	ForceSendFields []string `json:"-"`
8524
8525	// NullFields is a list of field names (e.g. "X") to include in API
8526	// requests with the JSON null value. By default, fields with empty
8527	// values are omitted from API requests. However, any field with an
8528	// empty value appearing in NullFields will be sent to the server as
8529	// null. It is an error if a field in this list has a non-empty value.
8530	// This may be used to include null fields in Patch requests.
8531	NullFields []string `json:"-"`
8532}
8533
8534func (s *GoogleCloudDocumentaiV1beta3Vertex) MarshalJSON() ([]byte, error) {
8535	type NoMethod GoogleCloudDocumentaiV1beta3Vertex
8536	raw := NoMethod(*s)
8537	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8538}
8539
8540// GoogleCloudLocationListLocationsResponse: The response message for
8541// Locations.ListLocations.
8542type GoogleCloudLocationListLocationsResponse struct {
8543	// Locations: A list of locations that matches the specified filter in
8544	// the request.
8545	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
8546
8547	// NextPageToken: The standard List next-page token.
8548	NextPageToken string `json:"nextPageToken,omitempty"`
8549
8550	// ServerResponse contains the HTTP response code and headers from the
8551	// server.
8552	googleapi.ServerResponse `json:"-"`
8553
8554	// ForceSendFields is a list of field names (e.g. "Locations") to
8555	// unconditionally include in API requests. By default, fields with
8556	// empty or default values are omitted from API requests. However, any
8557	// non-pointer, non-interface field appearing in ForceSendFields will be
8558	// sent to the server regardless of whether the field is empty or not.
8559	// This may be used to include empty fields in Patch requests.
8560	ForceSendFields []string `json:"-"`
8561
8562	// NullFields is a list of field names (e.g. "Locations") to include in
8563	// API requests with the JSON null value. By default, fields with empty
8564	// values are omitted from API requests. However, any field with an
8565	// empty value appearing in NullFields will be sent to the server as
8566	// null. It is an error if a field in this list has a non-empty value.
8567	// This may be used to include null fields in Patch requests.
8568	NullFields []string `json:"-"`
8569}
8570
8571func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
8572	type NoMethod GoogleCloudLocationListLocationsResponse
8573	raw := NoMethod(*s)
8574	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8575}
8576
8577// GoogleCloudLocationLocation: A resource that represents Google Cloud
8578// Platform location.
8579type GoogleCloudLocationLocation struct {
8580	// DisplayName: The friendly name for this location, typically a nearby
8581	// city name. For example, "Tokyo".
8582	DisplayName string `json:"displayName,omitempty"`
8583
8584	// Labels: Cross-service attributes for the location. For example
8585	// {"cloud.googleapis.com/region": "us-east1"}
8586	Labels map[string]string `json:"labels,omitempty"`
8587
8588	// LocationId: The canonical id for this location. For example:
8589	// "us-east1".
8590	LocationId string `json:"locationId,omitempty"`
8591
8592	// Metadata: Service-specific metadata. For example the available
8593	// capacity at the given location.
8594	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
8595
8596	// Name: Resource name for the location, which may vary between
8597	// implementations. For example:
8598	// "projects/example-project/locations/us-east1"
8599	Name string `json:"name,omitempty"`
8600
8601	// ServerResponse contains the HTTP response code and headers from the
8602	// server.
8603	googleapi.ServerResponse `json:"-"`
8604
8605	// ForceSendFields is a list of field names (e.g. "DisplayName") to
8606	// unconditionally include in API requests. By default, fields with
8607	// empty or default values are omitted from API requests. However, any
8608	// non-pointer, non-interface field appearing in ForceSendFields will be
8609	// sent to the server regardless of whether the field is empty or not.
8610	// This may be used to include empty fields in Patch requests.
8611	ForceSendFields []string `json:"-"`
8612
8613	// NullFields is a list of field names (e.g. "DisplayName") to include
8614	// in API requests with the JSON null value. By default, fields with
8615	// empty values are omitted from API requests. However, any field with
8616	// an empty value appearing in NullFields will be sent to the server as
8617	// null. It is an error if a field in this list has a non-empty value.
8618	// This may be used to include null fields in Patch requests.
8619	NullFields []string `json:"-"`
8620}
8621
8622func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
8623	type NoMethod GoogleCloudLocationLocation
8624	raw := NoMethod(*s)
8625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8626}
8627
8628// GoogleLongrunningListOperationsResponse: The response message for
8629// Operations.ListOperations.
8630type GoogleLongrunningListOperationsResponse struct {
8631	// NextPageToken: The standard List next-page token.
8632	NextPageToken string `json:"nextPageToken,omitempty"`
8633
8634	// Operations: A list of operations that matches the specified filter in
8635	// the request.
8636	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
8637
8638	// ServerResponse contains the HTTP response code and headers from the
8639	// server.
8640	googleapi.ServerResponse `json:"-"`
8641
8642	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
8643	// unconditionally include in API requests. By default, fields with
8644	// empty or default values are omitted from API requests. However, any
8645	// non-pointer, non-interface field appearing in ForceSendFields will be
8646	// sent to the server regardless of whether the field is empty or not.
8647	// This may be used to include empty fields in Patch requests.
8648	ForceSendFields []string `json:"-"`
8649
8650	// NullFields is a list of field names (e.g. "NextPageToken") to include
8651	// in API requests with the JSON null value. By default, fields with
8652	// empty values are omitted from API requests. However, any field with
8653	// an empty value appearing in NullFields will be sent to the server as
8654	// null. It is an error if a field in this list has a non-empty value.
8655	// This may be used to include null fields in Patch requests.
8656	NullFields []string `json:"-"`
8657}
8658
8659func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
8660	type NoMethod GoogleLongrunningListOperationsResponse
8661	raw := NoMethod(*s)
8662	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8663}
8664
8665// GoogleLongrunningOperation: This resource represents a long-running
8666// operation that is the result of a network API call.
8667type GoogleLongrunningOperation struct {
8668	// Done: If the value is `false`, it means the operation is still in
8669	// progress. If `true`, the operation is completed, and either `error`
8670	// or `response` is available.
8671	Done bool `json:"done,omitempty"`
8672
8673	// Error: The error result of the operation in case of failure or
8674	// cancellation.
8675	Error *GoogleRpcStatus `json:"error,omitempty"`
8676
8677	// Metadata: Service-specific metadata associated with the operation. It
8678	// typically contains progress information and common metadata such as
8679	// create time. Some services might not provide such metadata. Any
8680	// method that returns a long-running operation should document the
8681	// metadata type, if any.
8682	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
8683
8684	// Name: The server-assigned name, which is only unique within the same
8685	// service that originally returns it. If you use the default HTTP
8686	// mapping, the `name` should be a resource name ending with
8687	// `operations/{unique_id}`.
8688	Name string `json:"name,omitempty"`
8689
8690	// Response: The normal response of the operation in case of success. If
8691	// the original method returns no data on success, such as `Delete`, the
8692	// response is `google.protobuf.Empty`. If the original method is
8693	// standard `Get`/`Create`/`Update`, the response should be the
8694	// resource. For other methods, the response should have the type
8695	// `XxxResponse`, where `Xxx` is the original method name. For example,
8696	// if the original method name is `TakeSnapshot()`, the inferred
8697	// response type is `TakeSnapshotResponse`.
8698	Response googleapi.RawMessage `json:"response,omitempty"`
8699
8700	// ServerResponse contains the HTTP response code and headers from the
8701	// server.
8702	googleapi.ServerResponse `json:"-"`
8703
8704	// ForceSendFields is a list of field names (e.g. "Done") to
8705	// unconditionally include in API requests. By default, fields with
8706	// empty or default values are omitted from API requests. However, any
8707	// non-pointer, non-interface field appearing in ForceSendFields will be
8708	// sent to the server regardless of whether the field is empty or not.
8709	// This may be used to include empty fields in Patch requests.
8710	ForceSendFields []string `json:"-"`
8711
8712	// NullFields is a list of field names (e.g. "Done") to include in API
8713	// requests with the JSON null value. By default, fields with empty
8714	// values are omitted from API requests. However, any field with an
8715	// empty value appearing in NullFields will be sent to the server as
8716	// null. It is an error if a field in this list has a non-empty value.
8717	// This may be used to include null fields in Patch requests.
8718	NullFields []string `json:"-"`
8719}
8720
8721func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
8722	type NoMethod GoogleLongrunningOperation
8723	raw := NoMethod(*s)
8724	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8725}
8726
8727// GoogleProtobufEmpty: A generic empty message that you can re-use to
8728// avoid defining duplicated empty messages in your APIs. A typical
8729// example is to use it as the request or the response type of an API
8730// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
8731// returns (google.protobuf.Empty); } The JSON representation for
8732// `Empty` is empty JSON object `{}`.
8733type GoogleProtobufEmpty struct {
8734	// ServerResponse contains the HTTP response code and headers from the
8735	// server.
8736	googleapi.ServerResponse `json:"-"`
8737}
8738
8739// GoogleRpcStatus: The `Status` type defines a logical error model that
8740// is suitable for different programming environments, including REST
8741// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
8742// `Status` message contains three pieces of data: error code, error
8743// message, and error details. You can find out more about this error
8744// model and how to work with it in the API Design Guide
8745// (https://cloud.google.com/apis/design/errors).
8746type GoogleRpcStatus struct {
8747	// Code: The status code, which should be an enum value of
8748	// google.rpc.Code.
8749	Code int64 `json:"code,omitempty"`
8750
8751	// Details: A list of messages that carry the error details. There is a
8752	// common set of message types for APIs to use.
8753	Details []googleapi.RawMessage `json:"details,omitempty"`
8754
8755	// Message: A developer-facing error message, which should be in
8756	// English. Any user-facing error message should be localized and sent
8757	// in the google.rpc.Status.details field, or localized by the client.
8758	Message string `json:"message,omitempty"`
8759
8760	// ForceSendFields is a list of field names (e.g. "Code") to
8761	// unconditionally include in API requests. By default, fields with
8762	// empty or default values are omitted from API requests. However, any
8763	// non-pointer, non-interface field appearing in ForceSendFields will be
8764	// sent to the server regardless of whether the field is empty or not.
8765	// This may be used to include empty fields in Patch requests.
8766	ForceSendFields []string `json:"-"`
8767
8768	// NullFields is a list of field names (e.g. "Code") to include in API
8769	// requests with the JSON null value. By default, fields with empty
8770	// values are omitted from API requests. However, any field with an
8771	// empty value appearing in NullFields will be sent to the server as
8772	// null. It is an error if a field in this list has a non-empty value.
8773	// This may be used to include null fields in Patch requests.
8774	NullFields []string `json:"-"`
8775}
8776
8777func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
8778	type NoMethod GoogleRpcStatus
8779	raw := NoMethod(*s)
8780	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8781}
8782
8783// GoogleTypeColor: Represents a color in the RGBA color space. This
8784// representation is designed for simplicity of conversion to/from color
8785// representations in various languages over compactness. For example,
8786// the fields of this representation can be trivially provided to the
8787// constructor of `java.awt.Color` in Java; it can also be trivially
8788// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS;
8789// and, with just a little work, it can be easily formatted into a CSS
8790// `rgba()` string in JavaScript. This reference page doesn't carry
8791// information about the absolute color space that should be used to
8792// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020,
8793// etc.). By default, applications should assume the sRGB color space.
8794// When color equality needs to be decided, implementations, unless
8795// documented otherwise, treat two colors as equal if all their red,
8796// green, blue, and alpha values each differ by at most 1e-5. Example
8797// (Java): import com.google.type.Color; // ... public static
8798// java.awt.Color fromProto(Color protocolor) { float alpha =
8799// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0;
8800// return new java.awt.Color( protocolor.getRed(),
8801// protocolor.getGreen(), protocolor.getBlue(), alpha); } public static
8802// Color toProto(java.awt.Color color) { float red = (float)
8803// color.getRed(); float green = (float) color.getGreen(); float blue =
8804// (float) color.getBlue(); float denominator = 255.0; Color.Builder
8805// resultBuilder = Color .newBuilder() .setRed(red / denominator)
8806// .setGreen(green / denominator) .setBlue(blue / denominator); int
8807// alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha(
8808// FloatValue .newBuilder() .setValue(((float) alpha) / denominator)
8809// .build()); } return resultBuilder.build(); } // ... Example (iOS /
8810// Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float
8811// red = [protocolor red]; float green = [protocolor green]; float blue
8812// = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha];
8813// float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper
8814// value]; } return [UIColor colorWithRed:red green:green blue:blue
8815// alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red,
8816// green, blue, alpha; if (![color getRed:&red green:&green blue:&blue
8817// alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init];
8818// [result setRed:red]; [result setGreen:green]; [result setBlue:blue];
8819// if (alpha <= 0.9999) { [result
8820// setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease];
8821// return result; } // ... Example (JavaScript): // ... var
8822// protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red
8823// || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac =
8824// rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green
8825// = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255);
8826// if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green,
8827// blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams
8828// = [red, green, blue].join(','); return ['rgba(', rgbParams, ',',
8829// alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green,
8830// blue) { var rgbNumber = new Number((red << 16) | (green << 8) |
8831// blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 -
8832// hexString.length; var resultBuilder = ['#']; for (var i = 0; i <
8833// missingZeros; i++) { resultBuilder.push('0'); }
8834// resultBuilder.push(hexString); return resultBuilder.join(''); }; //
8835// ...
8836type GoogleTypeColor struct {
8837	// Alpha: The fraction of this color that should be applied to the
8838	// pixel. That is, the final pixel color is defined by the equation:
8839	// `pixel color = alpha * (this color) + (1.0 - alpha) * (background
8840	// color)` This means that a value of 1.0 corresponds to a solid color,
8841	// whereas a value of 0.0 corresponds to a completely transparent color.
8842	// This uses a wrapper message rather than a simple float scalar so that
8843	// it is possible to distinguish between a default value and the value
8844	// being unset. If omitted, this color object is rendered as a solid
8845	// color (as if the alpha value had been explicitly given a value of
8846	// 1.0).
8847	Alpha float64 `json:"alpha,omitempty"`
8848
8849	// Blue: The amount of blue in the color as a value in the interval [0,
8850	// 1].
8851	Blue float64 `json:"blue,omitempty"`
8852
8853	// Green: The amount of green in the color as a value in the interval
8854	// [0, 1].
8855	Green float64 `json:"green,omitempty"`
8856
8857	// Red: The amount of red in the color as a value in the interval [0,
8858	// 1].
8859	Red float64 `json:"red,omitempty"`
8860
8861	// ForceSendFields is a list of field names (e.g. "Alpha") to
8862	// unconditionally include in API requests. By default, fields with
8863	// empty or default values are omitted from API requests. However, any
8864	// non-pointer, non-interface field appearing in ForceSendFields will be
8865	// sent to the server regardless of whether the field is empty or not.
8866	// This may be used to include empty fields in Patch requests.
8867	ForceSendFields []string `json:"-"`
8868
8869	// NullFields is a list of field names (e.g. "Alpha") to include in API
8870	// requests with the JSON null value. By default, fields with empty
8871	// values are omitted from API requests. However, any field with an
8872	// empty value appearing in NullFields will be sent to the server as
8873	// null. It is an error if a field in this list has a non-empty value.
8874	// This may be used to include null fields in Patch requests.
8875	NullFields []string `json:"-"`
8876}
8877
8878func (s *GoogleTypeColor) MarshalJSON() ([]byte, error) {
8879	type NoMethod GoogleTypeColor
8880	raw := NoMethod(*s)
8881	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8882}
8883
8884func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error {
8885	type NoMethod GoogleTypeColor
8886	var s1 struct {
8887		Alpha gensupport.JSONFloat64 `json:"alpha"`
8888		Blue  gensupport.JSONFloat64 `json:"blue"`
8889		Green gensupport.JSONFloat64 `json:"green"`
8890		Red   gensupport.JSONFloat64 `json:"red"`
8891		*NoMethod
8892	}
8893	s1.NoMethod = (*NoMethod)(s)
8894	if err := json.Unmarshal(data, &s1); err != nil {
8895		return err
8896	}
8897	s.Alpha = float64(s1.Alpha)
8898	s.Blue = float64(s1.Blue)
8899	s.Green = float64(s1.Green)
8900	s.Red = float64(s1.Red)
8901	return nil
8902}
8903
8904// GoogleTypeDate: Represents a whole or partial calendar date, such as
8905// a birthday. The time of day and time zone are either specified
8906// elsewhere or are insignificant. The date is relative to the Gregorian
8907// Calendar. This can represent one of the following: * A full date,
8908// with non-zero year, month, and day values * A month and day value,
8909// with a zero year, such as an anniversary * A year on its own, with
8910// zero month and day values * A year and month value, with a zero day,
8911// such as a credit card expiration date Related types are
8912// google.type.TimeOfDay and `google.protobuf.Timestamp`.
8913type GoogleTypeDate struct {
8914	// Day: Day of a month. Must be from 1 to 31 and valid for the year and
8915	// month, or 0 to specify a year by itself or a year and month where the
8916	// day isn't significant.
8917	Day int64 `json:"day,omitempty"`
8918
8919	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year
8920	// without a month and day.
8921	Month int64 `json:"month,omitempty"`
8922
8923	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a
8924	// date without a year.
8925	Year int64 `json:"year,omitempty"`
8926
8927	// ForceSendFields is a list of field names (e.g. "Day") to
8928	// unconditionally include in API requests. By default, fields with
8929	// empty or default values are omitted from API requests. However, any
8930	// non-pointer, non-interface field appearing in ForceSendFields will be
8931	// sent to the server regardless of whether the field is empty or not.
8932	// This may be used to include empty fields in Patch requests.
8933	ForceSendFields []string `json:"-"`
8934
8935	// NullFields is a list of field names (e.g. "Day") to include in API
8936	// requests with the JSON null value. By default, fields with empty
8937	// values are omitted from API requests. However, any field with an
8938	// empty value appearing in NullFields will be sent to the server as
8939	// null. It is an error if a field in this list has a non-empty value.
8940	// This may be used to include null fields in Patch requests.
8941	NullFields []string `json:"-"`
8942}
8943
8944func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
8945	type NoMethod GoogleTypeDate
8946	raw := NoMethod(*s)
8947	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8948}
8949
8950// GoogleTypeDateTime: Represents civil time (or occasionally physical
8951// time). This type can represent a civil time in one of a few possible
8952// ways: * When utc_offset is set and time_zone is unset: a civil time
8953// on a calendar day with a particular offset from UTC. * When time_zone
8954// is set and utc_offset is unset: a civil time on a calendar day in a
8955// particular time zone. * When neither time_zone nor utc_offset is set:
8956// a civil time on a calendar day in local time. The date is relative to
8957// the Proleptic Gregorian Calendar. If year is 0, the DateTime is
8958// considered not to have a specific year. month and day must have
8959// valid, non-zero values. This type may also be used to represent a
8960// physical time if all the date and time fields are set and either case
8961// of the `time_offset` oneof is set. Consider using `Timestamp` message
8962// for physical time instead. If your use case also would like to store
8963// the user's timezone, that can be done in another field. This type is
8964// more flexible than some applications may want. Make sure to document
8965// and validate your application's limitations.
8966type GoogleTypeDateTime struct {
8967	// Day: Required. Day of month. Must be from 1 to 31 and valid for the
8968	// year and month.
8969	Day int64 `json:"day,omitempty"`
8970
8971	// Hours: Required. Hours of day in 24 hour format. Should be from 0 to
8972	// 23. An API may choose to allow the value "24:00:00" for scenarios
8973	// like business closing time.
8974	Hours int64 `json:"hours,omitempty"`
8975
8976	// Minutes: Required. Minutes of hour of day. Must be from 0 to 59.
8977	Minutes int64 `json:"minutes,omitempty"`
8978
8979	// Month: Required. Month of year. Must be from 1 to 12.
8980	Month int64 `json:"month,omitempty"`
8981
8982	// Nanos: Required. Fractions of seconds in nanoseconds. Must be from 0
8983	// to 999,999,999.
8984	Nanos int64 `json:"nanos,omitempty"`
8985
8986	// Seconds: Required. Seconds of minutes of the time. Must normally be
8987	// from 0 to 59. An API may allow the value 60 if it allows
8988	// leap-seconds.
8989	Seconds int64 `json:"seconds,omitempty"`
8990
8991	// TimeZone: Time zone.
8992	TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"`
8993
8994	// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and
8995	// +18 hours. For example, a UTC offset of -4:00 would be represented as
8996	// { seconds: -14400 }.
8997	UtcOffset string `json:"utcOffset,omitempty"`
8998
8999	// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if
9000	// specifying a datetime without a year.
9001	Year int64 `json:"year,omitempty"`
9002
9003	// ForceSendFields is a list of field names (e.g. "Day") to
9004	// unconditionally include in API requests. By default, fields with
9005	// empty or default values are omitted from API requests. However, any
9006	// non-pointer, non-interface field appearing in ForceSendFields will be
9007	// sent to the server regardless of whether the field is empty or not.
9008	// This may be used to include empty fields in Patch requests.
9009	ForceSendFields []string `json:"-"`
9010
9011	// NullFields is a list of field names (e.g. "Day") to include in API
9012	// requests with the JSON null value. By default, fields with empty
9013	// values are omitted from API requests. However, any field with an
9014	// empty value appearing in NullFields will be sent to the server as
9015	// null. It is an error if a field in this list has a non-empty value.
9016	// This may be used to include null fields in Patch requests.
9017	NullFields []string `json:"-"`
9018}
9019
9020func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) {
9021	type NoMethod GoogleTypeDateTime
9022	raw := NoMethod(*s)
9023	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9024}
9025
9026// GoogleTypeMoney: Represents an amount of money with its currency
9027// type.
9028type GoogleTypeMoney struct {
9029	// CurrencyCode: The three-letter currency code defined in ISO 4217.
9030	CurrencyCode string `json:"currencyCode,omitempty"`
9031
9032	// Nanos: Number of nano (10^-9) units of the amount. The value must be
9033	// between -999,999,999 and +999,999,999 inclusive. If `units` is
9034	// positive, `nanos` must be positive or zero. If `units` is zero,
9035	// `nanos` can be positive, zero, or negative. If `units` is negative,
9036	// `nanos` must be negative or zero. For example $-1.75 is represented
9037	// as `units`=-1 and `nanos`=-750,000,000.
9038	Nanos int64 `json:"nanos,omitempty"`
9039
9040	// Units: The whole units of the amount. For example if `currencyCode`
9041	// is "USD", then 1 unit is one US dollar.
9042	Units int64 `json:"units,omitempty,string"`
9043
9044	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
9045	// unconditionally include in API requests. By default, fields with
9046	// empty or default values are omitted from API requests. However, any
9047	// non-pointer, non-interface field appearing in ForceSendFields will be
9048	// sent to the server regardless of whether the field is empty or not.
9049	// This may be used to include empty fields in Patch requests.
9050	ForceSendFields []string `json:"-"`
9051
9052	// NullFields is a list of field names (e.g. "CurrencyCode") to include
9053	// in API requests with the JSON null value. By default, fields with
9054	// empty values are omitted from API requests. However, any field with
9055	// an empty value appearing in NullFields will be sent to the server as
9056	// null. It is an error if a field in this list has a non-empty value.
9057	// This may be used to include null fields in Patch requests.
9058	NullFields []string `json:"-"`
9059}
9060
9061func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
9062	type NoMethod GoogleTypeMoney
9063	raw := NoMethod(*s)
9064	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9065}
9066
9067// GoogleTypePostalAddress: Represents a postal address, e.g. for postal
9068// delivery or payments addresses. Given a postal address, a postal
9069// service can deliver items to a premise, P.O. Box or similar. It is
9070// not intended to model geographical locations (roads, towns,
9071// mountains). In typical usage an address would be created via user
9072// input or from importing existing data, depending on the type of
9073// process. Advice on address input / editing: - Use an i18n-ready
9074// address widget such as https://github.com/google/libaddressinput) -
9075// Users should not be presented with UI elements for input or editing
9076// of fields outside countries where that field is used. For more
9077// guidance on how to use this schema, please see:
9078// https://support.google.com/business/answer/6397478
9079type GoogleTypePostalAddress struct {
9080	// AddressLines: Unstructured address lines describing the lower levels
9081	// of an address. Because values in address_lines do not have type
9082	// information and may sometimes contain multiple values in a single
9083	// field (e.g. "Austin, TX"), it is important that the line order is
9084	// clear. The order of address lines should be "envelope order" for the
9085	// country/region of the address. In places where this can vary (e.g.
9086	// Japan), address_language is used to make it explicit (e.g. "ja" for
9087	// large-to-small ordering and "ja-Latn" or "en" for small-to-large).
9088	// This way, the most specific line of an address can be selected based
9089	// on the language. The minimum permitted structural representation of
9090	// an address consists of a region_code with all remaining information
9091	// placed in the address_lines. It would be possible to format such an
9092	// address very approximately without geocoding, but no semantic
9093	// reasoning could be made about any of the address components until it
9094	// was at least partially resolved. Creating an address only containing
9095	// a region_code and address_lines, and then geocoding is the
9096	// recommended way to handle completely unstructured addresses (as
9097	// opposed to guessing which parts of the address should be localities
9098	// or administrative areas).
9099	AddressLines []string `json:"addressLines,omitempty"`
9100
9101	// AdministrativeArea: Optional. Highest administrative subdivision
9102	// which is used for postal addresses of a country or region. For
9103	// example, this can be a state, a province, an oblast, or a prefecture.
9104	// Specifically, for Spain this is the province and not the autonomous
9105	// community (e.g. "Barcelona" and not "Catalonia"). Many countries
9106	// don't use an administrative area in postal addresses. E.g. in
9107	// Switzerland this should be left unpopulated.
9108	AdministrativeArea string `json:"administrativeArea,omitempty"`
9109
9110	// LanguageCode: Optional. BCP-47 language code of the contents of this
9111	// address (if known). This is often the UI language of the input form
9112	// or is expected to match one of the languages used in the address'
9113	// country/region, or their transliterated equivalents. This can affect
9114	// formatting in certain countries, but is not critical to the
9115	// correctness of the data and will never affect any validation or other
9116	// non-formatting related operations. If this value is not known, it
9117	// should be omitted (rather than specifying a possibly incorrect
9118	// default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
9119	LanguageCode string `json:"languageCode,omitempty"`
9120
9121	// Locality: Optional. Generally refers to the city/town portion of the
9122	// address. Examples: US city, IT comune, UK post town. In regions of
9123	// the world where localities are not well defined or do not fit into
9124	// this structure well, leave locality empty and use address_lines.
9125	Locality string `json:"locality,omitempty"`
9126
9127	// Organization: Optional. The name of the organization at the address.
9128	Organization string `json:"organization,omitempty"`
9129
9130	// PostalCode: Optional. Postal code of the address. Not all countries
9131	// use or require postal codes to be present, but where they are used,
9132	// they may trigger additional validation with other parts of the
9133	// address (e.g. state/zip validation in the U.S.A.).
9134	PostalCode string `json:"postalCode,omitempty"`
9135
9136	// Recipients: Optional. The recipient at the address. This field may,
9137	// under certain circumstances, contain multiline information. For
9138	// example, it might contain "care of" information.
9139	Recipients []string `json:"recipients,omitempty"`
9140
9141	// RegionCode: Required. CLDR region code of the country/region of the
9142	// address. This is never inferred and it is up to the user to ensure
9143	// the value is correct. See http://cldr.unicode.org/ and
9144	// http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
9145	// for details. Example: "CH" for Switzerland.
9146	RegionCode string `json:"regionCode,omitempty"`
9147
9148	// Revision: The schema revision of the `PostalAddress`. This must be
9149	// set to 0, which is the latest revision. All new revisions **must** be
9150	// backward compatible with old revisions.
9151	Revision int64 `json:"revision,omitempty"`
9152
9153	// SortingCode: Optional. Additional, country-specific, sorting code.
9154	// This is not used in most regions. Where it is used, the value is
9155	// either a string like "CEDEX", optionally followed by a number (e.g.
9156	// "CEDEX 7"), or just a number alone, representing the "sector code"
9157	// (Jamaica), "delivery area indicator" (Malawi) or "post office
9158	// indicator" (e.g. Côte d'Ivoire).
9159	SortingCode string `json:"sortingCode,omitempty"`
9160
9161	// Sublocality: Optional. Sublocality of the address. For example, this
9162	// can be neighborhoods, boroughs, districts.
9163	Sublocality string `json:"sublocality,omitempty"`
9164
9165	// ForceSendFields is a list of field names (e.g. "AddressLines") to
9166	// unconditionally include in API requests. By default, fields with
9167	// empty or default values are omitted from API requests. However, any
9168	// non-pointer, non-interface field appearing in ForceSendFields will be
9169	// sent to the server regardless of whether the field is empty or not.
9170	// This may be used to include empty fields in Patch requests.
9171	ForceSendFields []string `json:"-"`
9172
9173	// NullFields is a list of field names (e.g. "AddressLines") to include
9174	// in API requests with the JSON null value. By default, fields with
9175	// empty values are omitted from API requests. However, any field with
9176	// an empty value appearing in NullFields will be sent to the server as
9177	// null. It is an error if a field in this list has a non-empty value.
9178	// This may be used to include null fields in Patch requests.
9179	NullFields []string `json:"-"`
9180}
9181
9182func (s *GoogleTypePostalAddress) MarshalJSON() ([]byte, error) {
9183	type NoMethod GoogleTypePostalAddress
9184	raw := NoMethod(*s)
9185	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9186}
9187
9188// GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone
9189// Database (https://www.iana.org/time-zones).
9190type GoogleTypeTimeZone struct {
9191	// Id: IANA Time Zone Database time zone, e.g. "America/New_York".
9192	Id string `json:"id,omitempty"`
9193
9194	// Version: Optional. IANA Time Zone Database version number, e.g.
9195	// "2019a".
9196	Version string `json:"version,omitempty"`
9197
9198	// ForceSendFields is a list of field names (e.g. "Id") to
9199	// unconditionally include in API requests. By default, fields with
9200	// empty or default values are omitted from API requests. However, any
9201	// non-pointer, non-interface field appearing in ForceSendFields will be
9202	// sent to the server regardless of whether the field is empty or not.
9203	// This may be used to include empty fields in Patch requests.
9204	ForceSendFields []string `json:"-"`
9205
9206	// NullFields is a list of field names (e.g. "Id") to include in API
9207	// requests with the JSON null value. By default, fields with empty
9208	// values are omitted from API requests. However, any field with an
9209	// empty value appearing in NullFields will be sent to the server as
9210	// null. It is an error if a field in this list has a non-empty value.
9211	// This may be used to include null fields in Patch requests.
9212	NullFields []string `json:"-"`
9213}
9214
9215func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) {
9216	type NoMethod GoogleTypeTimeZone
9217	raw := NoMethod(*s)
9218	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9219}
9220
9221// method id "documentai.projects.locations.fetchProcessorTypes":
9222
9223type ProjectsLocationsFetchProcessorTypesCall struct {
9224	s            *Service
9225	parent       string
9226	urlParams_   gensupport.URLParams
9227	ifNoneMatch_ string
9228	ctx_         context.Context
9229	header_      http.Header
9230}
9231
9232// FetchProcessorTypes: Fetches processor types.
9233//
9234// - parent: The project of processor type to list. The available
9235//   processor types may depend on the whitelisting on projects. Format:
9236//   projects/{project}/locations/{location}.
9237func (r *ProjectsLocationsService) FetchProcessorTypes(parent string) *ProjectsLocationsFetchProcessorTypesCall {
9238	c := &ProjectsLocationsFetchProcessorTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9239	c.parent = parent
9240	return c
9241}
9242
9243// Fields allows partial responses to be retrieved. See
9244// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9245// for more information.
9246func (c *ProjectsLocationsFetchProcessorTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFetchProcessorTypesCall {
9247	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9248	return c
9249}
9250
9251// IfNoneMatch sets the optional parameter which makes the operation
9252// fail if the object's ETag matches the given value. This is useful for
9253// getting updates only after the object has changed since the last
9254// request. Use googleapi.IsNotModified to check whether the response
9255// error from Do is the result of In-None-Match.
9256func (c *ProjectsLocationsFetchProcessorTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFetchProcessorTypesCall {
9257	c.ifNoneMatch_ = entityTag
9258	return c
9259}
9260
9261// Context sets the context to be used in this call's Do method. Any
9262// pending HTTP request will be aborted if the provided context is
9263// canceled.
9264func (c *ProjectsLocationsFetchProcessorTypesCall) Context(ctx context.Context) *ProjectsLocationsFetchProcessorTypesCall {
9265	c.ctx_ = ctx
9266	return c
9267}
9268
9269// Header returns an http.Header that can be modified by the caller to
9270// add HTTP headers to the request.
9271func (c *ProjectsLocationsFetchProcessorTypesCall) Header() http.Header {
9272	if c.header_ == nil {
9273		c.header_ = make(http.Header)
9274	}
9275	return c.header_
9276}
9277
9278func (c *ProjectsLocationsFetchProcessorTypesCall) doRequest(alt string) (*http.Response, error) {
9279	reqHeaders := make(http.Header)
9280	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9281	for k, v := range c.header_ {
9282		reqHeaders[k] = v
9283	}
9284	reqHeaders.Set("User-Agent", c.s.userAgent())
9285	if c.ifNoneMatch_ != "" {
9286		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9287	}
9288	var body io.Reader = nil
9289	c.urlParams_.Set("alt", alt)
9290	c.urlParams_.Set("prettyPrint", "false")
9291	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}:fetchProcessorTypes")
9292	urls += "?" + c.urlParams_.Encode()
9293	req, err := http.NewRequest("GET", urls, body)
9294	if err != nil {
9295		return nil, err
9296	}
9297	req.Header = reqHeaders
9298	googleapi.Expand(req.URL, map[string]string{
9299		"parent": c.parent,
9300	})
9301	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9302}
9303
9304// Do executes the "documentai.projects.locations.fetchProcessorTypes" call.
9305// Exactly one of
9306// *GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse or error
9307// will be non-nil. Any non-2xx status code is an error. Response
9308// headers are in either
9309// *GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse.ServerRespons
9310// e.Header or (if a response was returned at all) in
9311// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9312// whether the returned error was because http.StatusNotModified was
9313// returned.
9314func (c *ProjectsLocationsFetchProcessorTypesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse, error) {
9315	gensupport.SetOptions(c.urlParams_, opts...)
9316	res, err := c.doRequest("json")
9317	if res != nil && res.StatusCode == http.StatusNotModified {
9318		if res.Body != nil {
9319			res.Body.Close()
9320		}
9321		return nil, &googleapi.Error{
9322			Code:   res.StatusCode,
9323			Header: res.Header,
9324		}
9325	}
9326	if err != nil {
9327		return nil, err
9328	}
9329	defer googleapi.CloseBody(res)
9330	if err := googleapi.CheckResponse(res); err != nil {
9331		return nil, err
9332	}
9333	ret := &GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse{
9334		ServerResponse: googleapi.ServerResponse{
9335			Header:         res.Header,
9336			HTTPStatusCode: res.StatusCode,
9337		},
9338	}
9339	target := &ret
9340	if err := gensupport.DecodeResponse(target, res); err != nil {
9341		return nil, err
9342	}
9343	return ret, nil
9344	// {
9345	//   "description": "Fetches processor types.",
9346	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}:fetchProcessorTypes",
9347	//   "httpMethod": "GET",
9348	//   "id": "documentai.projects.locations.fetchProcessorTypes",
9349	//   "parameterOrder": [
9350	//     "parent"
9351	//   ],
9352	//   "parameters": {
9353	//     "parent": {
9354	//       "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}",
9355	//       "location": "path",
9356	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
9357	//       "required": true,
9358	//       "type": "string"
9359	//     }
9360	//   },
9361	//   "path": "v1beta3/{+parent}:fetchProcessorTypes",
9362	//   "response": {
9363	//     "$ref": "GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse"
9364	//   },
9365	//   "scopes": [
9366	//     "https://www.googleapis.com/auth/cloud-platform"
9367	//   ]
9368	// }
9369
9370}
9371
9372// method id "documentai.projects.locations.get":
9373
9374type ProjectsLocationsGetCall struct {
9375	s            *Service
9376	name         string
9377	urlParams_   gensupport.URLParams
9378	ifNoneMatch_ string
9379	ctx_         context.Context
9380	header_      http.Header
9381}
9382
9383// Get: Gets information about a location.
9384//
9385// - name: Resource name for the location.
9386func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
9387	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9388	c.name = name
9389	return c
9390}
9391
9392// Fields allows partial responses to be retrieved. See
9393// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9394// for more information.
9395func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
9396	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9397	return c
9398}
9399
9400// IfNoneMatch sets the optional parameter which makes the operation
9401// fail if the object's ETag matches the given value. This is useful for
9402// getting updates only after the object has changed since the last
9403// request. Use googleapi.IsNotModified to check whether the response
9404// error from Do is the result of In-None-Match.
9405func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
9406	c.ifNoneMatch_ = entityTag
9407	return c
9408}
9409
9410// Context sets the context to be used in this call's Do method. Any
9411// pending HTTP request will be aborted if the provided context is
9412// canceled.
9413func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
9414	c.ctx_ = ctx
9415	return c
9416}
9417
9418// Header returns an http.Header that can be modified by the caller to
9419// add HTTP headers to the request.
9420func (c *ProjectsLocationsGetCall) Header() http.Header {
9421	if c.header_ == nil {
9422		c.header_ = make(http.Header)
9423	}
9424	return c.header_
9425}
9426
9427func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
9428	reqHeaders := make(http.Header)
9429	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9430	for k, v := range c.header_ {
9431		reqHeaders[k] = v
9432	}
9433	reqHeaders.Set("User-Agent", c.s.userAgent())
9434	if c.ifNoneMatch_ != "" {
9435		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9436	}
9437	var body io.Reader = nil
9438	c.urlParams_.Set("alt", alt)
9439	c.urlParams_.Set("prettyPrint", "false")
9440	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
9441	urls += "?" + c.urlParams_.Encode()
9442	req, err := http.NewRequest("GET", urls, body)
9443	if err != nil {
9444		return nil, err
9445	}
9446	req.Header = reqHeaders
9447	googleapi.Expand(req.URL, map[string]string{
9448		"name": c.name,
9449	})
9450	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9451}
9452
9453// Do executes the "documentai.projects.locations.get" call.
9454// Exactly one of *GoogleCloudLocationLocation or error will be non-nil.
9455// Any non-2xx status code is an error. Response headers are in either
9456// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response
9457// was returned at all) in error.(*googleapi.Error).Header. Use
9458// googleapi.IsNotModified to check whether the returned error was
9459// because http.StatusNotModified was returned.
9460func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
9461	gensupport.SetOptions(c.urlParams_, opts...)
9462	res, err := c.doRequest("json")
9463	if res != nil && res.StatusCode == http.StatusNotModified {
9464		if res.Body != nil {
9465			res.Body.Close()
9466		}
9467		return nil, &googleapi.Error{
9468			Code:   res.StatusCode,
9469			Header: res.Header,
9470		}
9471	}
9472	if err != nil {
9473		return nil, err
9474	}
9475	defer googleapi.CloseBody(res)
9476	if err := googleapi.CheckResponse(res); err != nil {
9477		return nil, err
9478	}
9479	ret := &GoogleCloudLocationLocation{
9480		ServerResponse: googleapi.ServerResponse{
9481			Header:         res.Header,
9482			HTTPStatusCode: res.StatusCode,
9483		},
9484	}
9485	target := &ret
9486	if err := gensupport.DecodeResponse(target, res); err != nil {
9487		return nil, err
9488	}
9489	return ret, nil
9490	// {
9491	//   "description": "Gets information about a location.",
9492	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}",
9493	//   "httpMethod": "GET",
9494	//   "id": "documentai.projects.locations.get",
9495	//   "parameterOrder": [
9496	//     "name"
9497	//   ],
9498	//   "parameters": {
9499	//     "name": {
9500	//       "description": "Resource name for the location.",
9501	//       "location": "path",
9502	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
9503	//       "required": true,
9504	//       "type": "string"
9505	//     }
9506	//   },
9507	//   "path": "v1beta3/{+name}",
9508	//   "response": {
9509	//     "$ref": "GoogleCloudLocationLocation"
9510	//   },
9511	//   "scopes": [
9512	//     "https://www.googleapis.com/auth/cloud-platform"
9513	//   ]
9514	// }
9515
9516}
9517
9518// method id "documentai.projects.locations.list":
9519
9520type ProjectsLocationsListCall struct {
9521	s            *Service
9522	name         string
9523	urlParams_   gensupport.URLParams
9524	ifNoneMatch_ string
9525	ctx_         context.Context
9526	header_      http.Header
9527}
9528
9529// List: Lists information about the supported locations for this
9530// service.
9531//
9532// - name: The resource that owns the locations collection, if
9533//   applicable.
9534func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
9535	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9536	c.name = name
9537	return c
9538}
9539
9540// Filter sets the optional parameter "filter": A filter to narrow down
9541// results to a preferred subset. The filtering language accepts strings
9542// like "displayName=tokyo", and is documented in more detail in AIP-160
9543// (https://google.aip.dev/160).
9544func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
9545	c.urlParams_.Set("filter", filter)
9546	return c
9547}
9548
9549// PageSize sets the optional parameter "pageSize": The maximum number
9550// of results to return. If not set, the service selects a default.
9551func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
9552	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9553	return c
9554}
9555
9556// PageToken sets the optional parameter "pageToken": A page token
9557// received from the `next_page_token` field in the response. Send that
9558// page token to receive the subsequent page.
9559func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
9560	c.urlParams_.Set("pageToken", pageToken)
9561	return c
9562}
9563
9564// Fields allows partial responses to be retrieved. See
9565// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9566// for more information.
9567func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
9568	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9569	return c
9570}
9571
9572// IfNoneMatch sets the optional parameter which makes the operation
9573// fail if the object's ETag matches the given value. This is useful for
9574// getting updates only after the object has changed since the last
9575// request. Use googleapi.IsNotModified to check whether the response
9576// error from Do is the result of In-None-Match.
9577func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
9578	c.ifNoneMatch_ = entityTag
9579	return c
9580}
9581
9582// Context sets the context to be used in this call's Do method. Any
9583// pending HTTP request will be aborted if the provided context is
9584// canceled.
9585func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
9586	c.ctx_ = ctx
9587	return c
9588}
9589
9590// Header returns an http.Header that can be modified by the caller to
9591// add HTTP headers to the request.
9592func (c *ProjectsLocationsListCall) Header() http.Header {
9593	if c.header_ == nil {
9594		c.header_ = make(http.Header)
9595	}
9596	return c.header_
9597}
9598
9599func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
9600	reqHeaders := make(http.Header)
9601	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9602	for k, v := range c.header_ {
9603		reqHeaders[k] = v
9604	}
9605	reqHeaders.Set("User-Agent", c.s.userAgent())
9606	if c.ifNoneMatch_ != "" {
9607		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9608	}
9609	var body io.Reader = nil
9610	c.urlParams_.Set("alt", alt)
9611	c.urlParams_.Set("prettyPrint", "false")
9612	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}/locations")
9613	urls += "?" + c.urlParams_.Encode()
9614	req, err := http.NewRequest("GET", urls, body)
9615	if err != nil {
9616		return nil, err
9617	}
9618	req.Header = reqHeaders
9619	googleapi.Expand(req.URL, map[string]string{
9620		"name": c.name,
9621	})
9622	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9623}
9624
9625// Do executes the "documentai.projects.locations.list" call.
9626// Exactly one of *GoogleCloudLocationListLocationsResponse or error
9627// will be non-nil. Any non-2xx status code is an error. Response
9628// headers are in either
9629// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or
9630// (if a response was returned at all) in
9631// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9632// whether the returned error was because http.StatusNotModified was
9633// returned.
9634func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
9635	gensupport.SetOptions(c.urlParams_, opts...)
9636	res, err := c.doRequest("json")
9637	if res != nil && res.StatusCode == http.StatusNotModified {
9638		if res.Body != nil {
9639			res.Body.Close()
9640		}
9641		return nil, &googleapi.Error{
9642			Code:   res.StatusCode,
9643			Header: res.Header,
9644		}
9645	}
9646	if err != nil {
9647		return nil, err
9648	}
9649	defer googleapi.CloseBody(res)
9650	if err := googleapi.CheckResponse(res); err != nil {
9651		return nil, err
9652	}
9653	ret := &GoogleCloudLocationListLocationsResponse{
9654		ServerResponse: googleapi.ServerResponse{
9655			Header:         res.Header,
9656			HTTPStatusCode: res.StatusCode,
9657		},
9658	}
9659	target := &ret
9660	if err := gensupport.DecodeResponse(target, res); err != nil {
9661		return nil, err
9662	}
9663	return ret, nil
9664	// {
9665	//   "description": "Lists information about the supported locations for this service.",
9666	//   "flatPath": "v1beta3/projects/{projectsId}/locations",
9667	//   "httpMethod": "GET",
9668	//   "id": "documentai.projects.locations.list",
9669	//   "parameterOrder": [
9670	//     "name"
9671	//   ],
9672	//   "parameters": {
9673	//     "filter": {
9674	//       "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).",
9675	//       "location": "query",
9676	//       "type": "string"
9677	//     },
9678	//     "name": {
9679	//       "description": "The resource that owns the locations collection, if applicable.",
9680	//       "location": "path",
9681	//       "pattern": "^projects/[^/]+$",
9682	//       "required": true,
9683	//       "type": "string"
9684	//     },
9685	//     "pageSize": {
9686	//       "description": "The maximum number of results to return. If not set, the service selects a default.",
9687	//       "format": "int32",
9688	//       "location": "query",
9689	//       "type": "integer"
9690	//     },
9691	//     "pageToken": {
9692	//       "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
9693	//       "location": "query",
9694	//       "type": "string"
9695	//     }
9696	//   },
9697	//   "path": "v1beta3/{+name}/locations",
9698	//   "response": {
9699	//     "$ref": "GoogleCloudLocationListLocationsResponse"
9700	//   },
9701	//   "scopes": [
9702	//     "https://www.googleapis.com/auth/cloud-platform"
9703	//   ]
9704	// }
9705
9706}
9707
9708// Pages invokes f for each page of results.
9709// A non-nil error returned from f will halt the iteration.
9710// The provided context supersedes any context provided to the Context method.
9711func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
9712	c.ctx_ = ctx
9713	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
9714	for {
9715		x, err := c.Do()
9716		if err != nil {
9717			return err
9718		}
9719		if err := f(x); err != nil {
9720			return err
9721		}
9722		if x.NextPageToken == "" {
9723			return nil
9724		}
9725		c.PageToken(x.NextPageToken)
9726	}
9727}
9728
9729// method id "documentai.projects.locations.operations.cancel":
9730
9731type ProjectsLocationsOperationsCancelCall struct {
9732	s          *Service
9733	name       string
9734	urlParams_ gensupport.URLParams
9735	ctx_       context.Context
9736	header_    http.Header
9737}
9738
9739// Cancel: Starts asynchronous cancellation on a long-running operation.
9740// The server makes a best effort to cancel the operation, but success
9741// is not guaranteed. If the server doesn't support this method, it
9742// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
9743// Operations.GetOperation or other methods to check whether the
9744// cancellation succeeded or whether the operation completed despite
9745// cancellation. On successful cancellation, the operation is not
9746// deleted; instead, it becomes an operation with an Operation.error
9747// value with a google.rpc.Status.code of 1, corresponding to
9748// `Code.CANCELLED`.
9749//
9750// - name: The name of the operation resource to be cancelled.
9751func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
9752	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9753	c.name = name
9754	return c
9755}
9756
9757// Fields allows partial responses to be retrieved. See
9758// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9759// for more information.
9760func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
9761	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9762	return c
9763}
9764
9765// Context sets the context to be used in this call's Do method. Any
9766// pending HTTP request will be aborted if the provided context is
9767// canceled.
9768func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
9769	c.ctx_ = ctx
9770	return c
9771}
9772
9773// Header returns an http.Header that can be modified by the caller to
9774// add HTTP headers to the request.
9775func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
9776	if c.header_ == nil {
9777		c.header_ = make(http.Header)
9778	}
9779	return c.header_
9780}
9781
9782func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
9783	reqHeaders := make(http.Header)
9784	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9785	for k, v := range c.header_ {
9786		reqHeaders[k] = v
9787	}
9788	reqHeaders.Set("User-Agent", c.s.userAgent())
9789	var body io.Reader = nil
9790	c.urlParams_.Set("alt", alt)
9791	c.urlParams_.Set("prettyPrint", "false")
9792	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:cancel")
9793	urls += "?" + c.urlParams_.Encode()
9794	req, err := http.NewRequest("POST", urls, body)
9795	if err != nil {
9796		return nil, err
9797	}
9798	req.Header = reqHeaders
9799	googleapi.Expand(req.URL, map[string]string{
9800		"name": c.name,
9801	})
9802	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9803}
9804
9805// Do executes the "documentai.projects.locations.operations.cancel" call.
9806// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
9807// non-2xx status code is an error. Response headers are in either
9808// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
9809// returned at all) in error.(*googleapi.Error).Header. Use
9810// googleapi.IsNotModified to check whether the returned error was
9811// because http.StatusNotModified was returned.
9812func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
9813	gensupport.SetOptions(c.urlParams_, opts...)
9814	res, err := c.doRequest("json")
9815	if res != nil && res.StatusCode == http.StatusNotModified {
9816		if res.Body != nil {
9817			res.Body.Close()
9818		}
9819		return nil, &googleapi.Error{
9820			Code:   res.StatusCode,
9821			Header: res.Header,
9822		}
9823	}
9824	if err != nil {
9825		return nil, err
9826	}
9827	defer googleapi.CloseBody(res)
9828	if err := googleapi.CheckResponse(res); err != nil {
9829		return nil, err
9830	}
9831	ret := &GoogleProtobufEmpty{
9832		ServerResponse: googleapi.ServerResponse{
9833			Header:         res.Header,
9834			HTTPStatusCode: res.StatusCode,
9835		},
9836	}
9837	target := &ret
9838	if err := gensupport.DecodeResponse(target, res); err != nil {
9839		return nil, err
9840	}
9841	return ret, nil
9842	// {
9843	//   "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`.",
9844	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
9845	//   "httpMethod": "POST",
9846	//   "id": "documentai.projects.locations.operations.cancel",
9847	//   "parameterOrder": [
9848	//     "name"
9849	//   ],
9850	//   "parameters": {
9851	//     "name": {
9852	//       "description": "The name of the operation resource to be cancelled.",
9853	//       "location": "path",
9854	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
9855	//       "required": true,
9856	//       "type": "string"
9857	//     }
9858	//   },
9859	//   "path": "v1beta3/{+name}:cancel",
9860	//   "response": {
9861	//     "$ref": "GoogleProtobufEmpty"
9862	//   },
9863	//   "scopes": [
9864	//     "https://www.googleapis.com/auth/cloud-platform"
9865	//   ]
9866	// }
9867
9868}
9869
9870// method id "documentai.projects.locations.operations.get":
9871
9872type ProjectsLocationsOperationsGetCall struct {
9873	s            *Service
9874	name         string
9875	urlParams_   gensupport.URLParams
9876	ifNoneMatch_ string
9877	ctx_         context.Context
9878	header_      http.Header
9879}
9880
9881// Get: Gets the latest state of a long-running operation. Clients can
9882// use this method to poll the operation result at intervals as
9883// recommended by the API service.
9884//
9885// - name: The name of the operation resource.
9886func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
9887	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9888	c.name = name
9889	return c
9890}
9891
9892// Fields allows partial responses to be retrieved. See
9893// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9894// for more information.
9895func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
9896	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9897	return c
9898}
9899
9900// IfNoneMatch sets the optional parameter which makes the operation
9901// fail if the object's ETag matches the given value. This is useful for
9902// getting updates only after the object has changed since the last
9903// request. Use googleapi.IsNotModified to check whether the response
9904// error from Do is the result of In-None-Match.
9905func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
9906	c.ifNoneMatch_ = entityTag
9907	return c
9908}
9909
9910// Context sets the context to be used in this call's Do method. Any
9911// pending HTTP request will be aborted if the provided context is
9912// canceled.
9913func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
9914	c.ctx_ = ctx
9915	return c
9916}
9917
9918// Header returns an http.Header that can be modified by the caller to
9919// add HTTP headers to the request.
9920func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
9921	if c.header_ == nil {
9922		c.header_ = make(http.Header)
9923	}
9924	return c.header_
9925}
9926
9927func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
9928	reqHeaders := make(http.Header)
9929	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
9930	for k, v := range c.header_ {
9931		reqHeaders[k] = v
9932	}
9933	reqHeaders.Set("User-Agent", c.s.userAgent())
9934	if c.ifNoneMatch_ != "" {
9935		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9936	}
9937	var body io.Reader = nil
9938	c.urlParams_.Set("alt", alt)
9939	c.urlParams_.Set("prettyPrint", "false")
9940	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
9941	urls += "?" + c.urlParams_.Encode()
9942	req, err := http.NewRequest("GET", urls, body)
9943	if err != nil {
9944		return nil, err
9945	}
9946	req.Header = reqHeaders
9947	googleapi.Expand(req.URL, map[string]string{
9948		"name": c.name,
9949	})
9950	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9951}
9952
9953// Do executes the "documentai.projects.locations.operations.get" call.
9954// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9955// Any non-2xx status code is an error. Response headers are in either
9956// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9957// was returned at all) in error.(*googleapi.Error).Header. Use
9958// googleapi.IsNotModified to check whether the returned error was
9959// because http.StatusNotModified was returned.
9960func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9961	gensupport.SetOptions(c.urlParams_, opts...)
9962	res, err := c.doRequest("json")
9963	if res != nil && res.StatusCode == http.StatusNotModified {
9964		if res.Body != nil {
9965			res.Body.Close()
9966		}
9967		return nil, &googleapi.Error{
9968			Code:   res.StatusCode,
9969			Header: res.Header,
9970		}
9971	}
9972	if err != nil {
9973		return nil, err
9974	}
9975	defer googleapi.CloseBody(res)
9976	if err := googleapi.CheckResponse(res); err != nil {
9977		return nil, err
9978	}
9979	ret := &GoogleLongrunningOperation{
9980		ServerResponse: googleapi.ServerResponse{
9981			Header:         res.Header,
9982			HTTPStatusCode: res.StatusCode,
9983		},
9984	}
9985	target := &ret
9986	if err := gensupport.DecodeResponse(target, res); err != nil {
9987		return nil, err
9988	}
9989	return ret, nil
9990	// {
9991	//   "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.",
9992	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
9993	//   "httpMethod": "GET",
9994	//   "id": "documentai.projects.locations.operations.get",
9995	//   "parameterOrder": [
9996	//     "name"
9997	//   ],
9998	//   "parameters": {
9999	//     "name": {
10000	//       "description": "The name of the operation resource.",
10001	//       "location": "path",
10002	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
10003	//       "required": true,
10004	//       "type": "string"
10005	//     }
10006	//   },
10007	//   "path": "v1beta3/{+name}",
10008	//   "response": {
10009	//     "$ref": "GoogleLongrunningOperation"
10010	//   },
10011	//   "scopes": [
10012	//     "https://www.googleapis.com/auth/cloud-platform"
10013	//   ]
10014	// }
10015
10016}
10017
10018// method id "documentai.projects.locations.operations.list":
10019
10020type ProjectsLocationsOperationsListCall struct {
10021	s            *Service
10022	name         string
10023	urlParams_   gensupport.URLParams
10024	ifNoneMatch_ string
10025	ctx_         context.Context
10026	header_      http.Header
10027}
10028
10029// List: Lists operations that match the specified filter in the
10030// request. If the server doesn't support this method, it returns
10031// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
10032// override the binding to use different resource name schemes, such as
10033// `users/*/operations`. To override the binding, API services can add a
10034// binding such as "/v1/{name=users/*}/operations" to their service
10035// configuration. For backwards compatibility, the default name includes
10036// the operations collection id, however overriding users must ensure
10037// the name binding is the parent resource, without the operations
10038// collection id.
10039//
10040// - name: The name of the operation's parent resource.
10041func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
10042	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10043	c.name = name
10044	return c
10045}
10046
10047// Filter sets the optional parameter "filter": The standard list
10048// filter.
10049func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
10050	c.urlParams_.Set("filter", filter)
10051	return c
10052}
10053
10054// PageSize sets the optional parameter "pageSize": The standard list
10055// page size.
10056func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
10057	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10058	return c
10059}
10060
10061// PageToken sets the optional parameter "pageToken": The standard list
10062// page token.
10063func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
10064	c.urlParams_.Set("pageToken", pageToken)
10065	return c
10066}
10067
10068// Fields allows partial responses to be retrieved. See
10069// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10070// for more information.
10071func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
10072	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10073	return c
10074}
10075
10076// IfNoneMatch sets the optional parameter which makes the operation
10077// fail if the object's ETag matches the given value. This is useful for
10078// getting updates only after the object has changed since the last
10079// request. Use googleapi.IsNotModified to check whether the response
10080// error from Do is the result of In-None-Match.
10081func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
10082	c.ifNoneMatch_ = entityTag
10083	return c
10084}
10085
10086// Context sets the context to be used in this call's Do method. Any
10087// pending HTTP request will be aborted if the provided context is
10088// canceled.
10089func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
10090	c.ctx_ = ctx
10091	return c
10092}
10093
10094// Header returns an http.Header that can be modified by the caller to
10095// add HTTP headers to the request.
10096func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
10097	if c.header_ == nil {
10098		c.header_ = make(http.Header)
10099	}
10100	return c.header_
10101}
10102
10103func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
10104	reqHeaders := make(http.Header)
10105	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10106	for k, v := range c.header_ {
10107		reqHeaders[k] = v
10108	}
10109	reqHeaders.Set("User-Agent", c.s.userAgent())
10110	if c.ifNoneMatch_ != "" {
10111		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10112	}
10113	var body io.Reader = nil
10114	c.urlParams_.Set("alt", alt)
10115	c.urlParams_.Set("prettyPrint", "false")
10116	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
10117	urls += "?" + c.urlParams_.Encode()
10118	req, err := http.NewRequest("GET", urls, body)
10119	if err != nil {
10120		return nil, err
10121	}
10122	req.Header = reqHeaders
10123	googleapi.Expand(req.URL, map[string]string{
10124		"name": c.name,
10125	})
10126	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10127}
10128
10129// Do executes the "documentai.projects.locations.operations.list" call.
10130// Exactly one of *GoogleLongrunningListOperationsResponse or error will
10131// be non-nil. Any non-2xx status code is an error. Response headers are
10132// in either
10133// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
10134// a response was returned at all) in error.(*googleapi.Error).Header.
10135// Use googleapi.IsNotModified to check whether the returned error was
10136// because http.StatusNotModified was returned.
10137func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
10138	gensupport.SetOptions(c.urlParams_, opts...)
10139	res, err := c.doRequest("json")
10140	if res != nil && res.StatusCode == http.StatusNotModified {
10141		if res.Body != nil {
10142			res.Body.Close()
10143		}
10144		return nil, &googleapi.Error{
10145			Code:   res.StatusCode,
10146			Header: res.Header,
10147		}
10148	}
10149	if err != nil {
10150		return nil, err
10151	}
10152	defer googleapi.CloseBody(res)
10153	if err := googleapi.CheckResponse(res); err != nil {
10154		return nil, err
10155	}
10156	ret := &GoogleLongrunningListOperationsResponse{
10157		ServerResponse: googleapi.ServerResponse{
10158			Header:         res.Header,
10159			HTTPStatusCode: res.StatusCode,
10160		},
10161	}
10162	target := &ret
10163	if err := gensupport.DecodeResponse(target, res); err != nil {
10164		return nil, err
10165	}
10166	return ret, nil
10167	// {
10168	//   "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.",
10169	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/operations",
10170	//   "httpMethod": "GET",
10171	//   "id": "documentai.projects.locations.operations.list",
10172	//   "parameterOrder": [
10173	//     "name"
10174	//   ],
10175	//   "parameters": {
10176	//     "filter": {
10177	//       "description": "The standard list filter.",
10178	//       "location": "query",
10179	//       "type": "string"
10180	//     },
10181	//     "name": {
10182	//       "description": "The name of the operation's parent resource.",
10183	//       "location": "path",
10184	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations$",
10185	//       "required": true,
10186	//       "type": "string"
10187	//     },
10188	//     "pageSize": {
10189	//       "description": "The standard list page size.",
10190	//       "format": "int32",
10191	//       "location": "query",
10192	//       "type": "integer"
10193	//     },
10194	//     "pageToken": {
10195	//       "description": "The standard list page token.",
10196	//       "location": "query",
10197	//       "type": "string"
10198	//     }
10199	//   },
10200	//   "path": "v1beta3/{+name}",
10201	//   "response": {
10202	//     "$ref": "GoogleLongrunningListOperationsResponse"
10203	//   },
10204	//   "scopes": [
10205	//     "https://www.googleapis.com/auth/cloud-platform"
10206	//   ]
10207	// }
10208
10209}
10210
10211// Pages invokes f for each page of results.
10212// A non-nil error returned from f will halt the iteration.
10213// The provided context supersedes any context provided to the Context method.
10214func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
10215	c.ctx_ = ctx
10216	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
10217	for {
10218		x, err := c.Do()
10219		if err != nil {
10220			return err
10221		}
10222		if err := f(x); err != nil {
10223			return err
10224		}
10225		if x.NextPageToken == "" {
10226			return nil
10227		}
10228		c.PageToken(x.NextPageToken)
10229	}
10230}
10231
10232// method id "documentai.projects.locations.processors.batchProcess":
10233
10234type ProjectsLocationsProcessorsBatchProcessCall struct {
10235	s                                               *Service
10236	name                                            string
10237	googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest
10238	urlParams_                                      gensupport.URLParams
10239	ctx_                                            context.Context
10240	header_                                         http.Header
10241}
10242
10243// BatchProcess: LRO endpoint to batch process many documents. The
10244// output is written to Cloud Storage as JSON in the [Document] format.
10245//
10246// - name: The resource name of Processor or ProcessorVersion. Format:
10247//   projects/{project}/locations/{location}/processors/{processor}, or
10248//   projects/{project}/locations/{location}/processors/{processor}/proce
10249//   ssorVersions/{processorVersion}.
10250func (r *ProjectsLocationsProcessorsService) BatchProcess(name string, googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest) *ProjectsLocationsProcessorsBatchProcessCall {
10251	c := &ProjectsLocationsProcessorsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10252	c.name = name
10253	c.googleclouddocumentaiv1beta3batchprocessrequest = googleclouddocumentaiv1beta3batchprocessrequest
10254	return c
10255}
10256
10257// Fields allows partial responses to be retrieved. See
10258// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10259// for more information.
10260func (c *ProjectsLocationsProcessorsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsBatchProcessCall {
10261	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10262	return c
10263}
10264
10265// Context sets the context to be used in this call's Do method. Any
10266// pending HTTP request will be aborted if the provided context is
10267// canceled.
10268func (c *ProjectsLocationsProcessorsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsBatchProcessCall {
10269	c.ctx_ = ctx
10270	return c
10271}
10272
10273// Header returns an http.Header that can be modified by the caller to
10274// add HTTP headers to the request.
10275func (c *ProjectsLocationsProcessorsBatchProcessCall) Header() http.Header {
10276	if c.header_ == nil {
10277		c.header_ = make(http.Header)
10278	}
10279	return c.header_
10280}
10281
10282func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
10283	reqHeaders := make(http.Header)
10284	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10285	for k, v := range c.header_ {
10286		reqHeaders[k] = v
10287	}
10288	reqHeaders.Set("User-Agent", c.s.userAgent())
10289	var body io.Reader = nil
10290	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchprocessrequest)
10291	if err != nil {
10292		return nil, err
10293	}
10294	reqHeaders.Set("Content-Type", "application/json")
10295	c.urlParams_.Set("alt", alt)
10296	c.urlParams_.Set("prettyPrint", "false")
10297	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:batchProcess")
10298	urls += "?" + c.urlParams_.Encode()
10299	req, err := http.NewRequest("POST", urls, body)
10300	if err != nil {
10301		return nil, err
10302	}
10303	req.Header = reqHeaders
10304	googleapi.Expand(req.URL, map[string]string{
10305		"name": c.name,
10306	})
10307	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10308}
10309
10310// Do executes the "documentai.projects.locations.processors.batchProcess" call.
10311// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10312// Any non-2xx status code is an error. Response headers are in either
10313// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10314// was returned at all) in error.(*googleapi.Error).Header. Use
10315// googleapi.IsNotModified to check whether the returned error was
10316// because http.StatusNotModified was returned.
10317func (c *ProjectsLocationsProcessorsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10318	gensupport.SetOptions(c.urlParams_, opts...)
10319	res, err := c.doRequest("json")
10320	if res != nil && res.StatusCode == http.StatusNotModified {
10321		if res.Body != nil {
10322			res.Body.Close()
10323		}
10324		return nil, &googleapi.Error{
10325			Code:   res.StatusCode,
10326			Header: res.Header,
10327		}
10328	}
10329	if err != nil {
10330		return nil, err
10331	}
10332	defer googleapi.CloseBody(res)
10333	if err := googleapi.CheckResponse(res); err != nil {
10334		return nil, err
10335	}
10336	ret := &GoogleLongrunningOperation{
10337		ServerResponse: googleapi.ServerResponse{
10338			Header:         res.Header,
10339			HTTPStatusCode: res.StatusCode,
10340		},
10341	}
10342	target := &ret
10343	if err := gensupport.DecodeResponse(target, res); err != nil {
10344		return nil, err
10345	}
10346	return ret, nil
10347	// {
10348	//   "description": "LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.",
10349	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:batchProcess",
10350	//   "httpMethod": "POST",
10351	//   "id": "documentai.projects.locations.processors.batchProcess",
10352	//   "parameterOrder": [
10353	//     "name"
10354	//   ],
10355	//   "parameters": {
10356	//     "name": {
10357	//       "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}",
10358	//       "location": "path",
10359	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10360	//       "required": true,
10361	//       "type": "string"
10362	//     }
10363	//   },
10364	//   "path": "v1beta3/{+name}:batchProcess",
10365	//   "request": {
10366	//     "$ref": "GoogleCloudDocumentaiV1beta3BatchProcessRequest"
10367	//   },
10368	//   "response": {
10369	//     "$ref": "GoogleLongrunningOperation"
10370	//   },
10371	//   "scopes": [
10372	//     "https://www.googleapis.com/auth/cloud-platform"
10373	//   ]
10374	// }
10375
10376}
10377
10378// method id "documentai.projects.locations.processors.create":
10379
10380type ProjectsLocationsProcessorsCreateCall struct {
10381	s                                     *Service
10382	parent                                string
10383	googleclouddocumentaiv1beta3processor *GoogleCloudDocumentaiV1beta3Processor
10384	urlParams_                            gensupport.URLParams
10385	ctx_                                  context.Context
10386	header_                               http.Header
10387}
10388
10389// Create: Creates a processor from the type processor that the user
10390// chose. The processor will be at "ENABLED" state by default after its
10391// creation.
10392//
10393// - parent: The parent (project and location) under which to create the
10394//   processor. Format: projects/{project}/locations/{location}.
10395func (r *ProjectsLocationsProcessorsService) Create(parent string, googleclouddocumentaiv1beta3processor *GoogleCloudDocumentaiV1beta3Processor) *ProjectsLocationsProcessorsCreateCall {
10396	c := &ProjectsLocationsProcessorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10397	c.parent = parent
10398	c.googleclouddocumentaiv1beta3processor = googleclouddocumentaiv1beta3processor
10399	return c
10400}
10401
10402// Fields allows partial responses to be retrieved. See
10403// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10404// for more information.
10405func (c *ProjectsLocationsProcessorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsCreateCall {
10406	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10407	return c
10408}
10409
10410// Context sets the context to be used in this call's Do method. Any
10411// pending HTTP request will be aborted if the provided context is
10412// canceled.
10413func (c *ProjectsLocationsProcessorsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessorsCreateCall {
10414	c.ctx_ = ctx
10415	return c
10416}
10417
10418// Header returns an http.Header that can be modified by the caller to
10419// add HTTP headers to the request.
10420func (c *ProjectsLocationsProcessorsCreateCall) Header() http.Header {
10421	if c.header_ == nil {
10422		c.header_ = make(http.Header)
10423	}
10424	return c.header_
10425}
10426
10427func (c *ProjectsLocationsProcessorsCreateCall) doRequest(alt string) (*http.Response, error) {
10428	reqHeaders := make(http.Header)
10429	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10430	for k, v := range c.header_ {
10431		reqHeaders[k] = v
10432	}
10433	reqHeaders.Set("User-Agent", c.s.userAgent())
10434	var body io.Reader = nil
10435	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processor)
10436	if err != nil {
10437		return nil, err
10438	}
10439	reqHeaders.Set("Content-Type", "application/json")
10440	c.urlParams_.Set("alt", alt)
10441	c.urlParams_.Set("prettyPrint", "false")
10442	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processors")
10443	urls += "?" + c.urlParams_.Encode()
10444	req, err := http.NewRequest("POST", urls, body)
10445	if err != nil {
10446		return nil, err
10447	}
10448	req.Header = reqHeaders
10449	googleapi.Expand(req.URL, map[string]string{
10450		"parent": c.parent,
10451	})
10452	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10453}
10454
10455// Do executes the "documentai.projects.locations.processors.create" call.
10456// Exactly one of *GoogleCloudDocumentaiV1beta3Processor or error will
10457// be non-nil. Any non-2xx status code is an error. Response headers are
10458// in either
10459// *GoogleCloudDocumentaiV1beta3Processor.ServerResponse.Header or (if a
10460// response was returned at all) in error.(*googleapi.Error).Header. Use
10461// googleapi.IsNotModified to check whether the returned error was
10462// because http.StatusNotModified was returned.
10463func (c *ProjectsLocationsProcessorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Processor, error) {
10464	gensupport.SetOptions(c.urlParams_, opts...)
10465	res, err := c.doRequest("json")
10466	if res != nil && res.StatusCode == http.StatusNotModified {
10467		if res.Body != nil {
10468			res.Body.Close()
10469		}
10470		return nil, &googleapi.Error{
10471			Code:   res.StatusCode,
10472			Header: res.Header,
10473		}
10474	}
10475	if err != nil {
10476		return nil, err
10477	}
10478	defer googleapi.CloseBody(res)
10479	if err := googleapi.CheckResponse(res); err != nil {
10480		return nil, err
10481	}
10482	ret := &GoogleCloudDocumentaiV1beta3Processor{
10483		ServerResponse: googleapi.ServerResponse{
10484			Header:         res.Header,
10485			HTTPStatusCode: res.StatusCode,
10486		},
10487	}
10488	target := &ret
10489	if err := gensupport.DecodeResponse(target, res); err != nil {
10490		return nil, err
10491	}
10492	return ret, nil
10493	// {
10494	//   "description": "Creates a processor from the type processor that the user chose. The processor will be at \"ENABLED\" state by default after its creation.",
10495	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors",
10496	//   "httpMethod": "POST",
10497	//   "id": "documentai.projects.locations.processors.create",
10498	//   "parameterOrder": [
10499	//     "parent"
10500	//   ],
10501	//   "parameters": {
10502	//     "parent": {
10503	//       "description": "Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location}",
10504	//       "location": "path",
10505	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
10506	//       "required": true,
10507	//       "type": "string"
10508	//     }
10509	//   },
10510	//   "path": "v1beta3/{+parent}/processors",
10511	//   "request": {
10512	//     "$ref": "GoogleCloudDocumentaiV1beta3Processor"
10513	//   },
10514	//   "response": {
10515	//     "$ref": "GoogleCloudDocumentaiV1beta3Processor"
10516	//   },
10517	//   "scopes": [
10518	//     "https://www.googleapis.com/auth/cloud-platform"
10519	//   ]
10520	// }
10521
10522}
10523
10524// method id "documentai.projects.locations.processors.delete":
10525
10526type ProjectsLocationsProcessorsDeleteCall struct {
10527	s          *Service
10528	name       string
10529	urlParams_ gensupport.URLParams
10530	ctx_       context.Context
10531	header_    http.Header
10532}
10533
10534// Delete: Deletes the processor, unloads all deployed model artifacts
10535// if it was enabled and then deletes all artifacts associated with this
10536// processor.
10537//
10538// - name: The processor resource name to be deleted.
10539func (r *ProjectsLocationsProcessorsService) Delete(name string) *ProjectsLocationsProcessorsDeleteCall {
10540	c := &ProjectsLocationsProcessorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10541	c.name = name
10542	return c
10543}
10544
10545// Fields allows partial responses to be retrieved. See
10546// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10547// for more information.
10548func (c *ProjectsLocationsProcessorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDeleteCall {
10549	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10550	return c
10551}
10552
10553// Context sets the context to be used in this call's Do method. Any
10554// pending HTTP request will be aborted if the provided context is
10555// canceled.
10556func (c *ProjectsLocationsProcessorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDeleteCall {
10557	c.ctx_ = ctx
10558	return c
10559}
10560
10561// Header returns an http.Header that can be modified by the caller to
10562// add HTTP headers to the request.
10563func (c *ProjectsLocationsProcessorsDeleteCall) Header() http.Header {
10564	if c.header_ == nil {
10565		c.header_ = make(http.Header)
10566	}
10567	return c.header_
10568}
10569
10570func (c *ProjectsLocationsProcessorsDeleteCall) doRequest(alt string) (*http.Response, error) {
10571	reqHeaders := make(http.Header)
10572	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10573	for k, v := range c.header_ {
10574		reqHeaders[k] = v
10575	}
10576	reqHeaders.Set("User-Agent", c.s.userAgent())
10577	var body io.Reader = nil
10578	c.urlParams_.Set("alt", alt)
10579	c.urlParams_.Set("prettyPrint", "false")
10580	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
10581	urls += "?" + c.urlParams_.Encode()
10582	req, err := http.NewRequest("DELETE", urls, body)
10583	if err != nil {
10584		return nil, err
10585	}
10586	req.Header = reqHeaders
10587	googleapi.Expand(req.URL, map[string]string{
10588		"name": c.name,
10589	})
10590	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10591}
10592
10593// Do executes the "documentai.projects.locations.processors.delete" call.
10594// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10595// Any non-2xx status code is an error. Response headers are in either
10596// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10597// was returned at all) in error.(*googleapi.Error).Header. Use
10598// googleapi.IsNotModified to check whether the returned error was
10599// because http.StatusNotModified was returned.
10600func (c *ProjectsLocationsProcessorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10601	gensupport.SetOptions(c.urlParams_, opts...)
10602	res, err := c.doRequest("json")
10603	if res != nil && res.StatusCode == http.StatusNotModified {
10604		if res.Body != nil {
10605			res.Body.Close()
10606		}
10607		return nil, &googleapi.Error{
10608			Code:   res.StatusCode,
10609			Header: res.Header,
10610		}
10611	}
10612	if err != nil {
10613		return nil, err
10614	}
10615	defer googleapi.CloseBody(res)
10616	if err := googleapi.CheckResponse(res); err != nil {
10617		return nil, err
10618	}
10619	ret := &GoogleLongrunningOperation{
10620		ServerResponse: googleapi.ServerResponse{
10621			Header:         res.Header,
10622			HTTPStatusCode: res.StatusCode,
10623		},
10624	}
10625	target := &ret
10626	if err := gensupport.DecodeResponse(target, res); err != nil {
10627		return nil, err
10628	}
10629	return ret, nil
10630	// {
10631	//   "description": "Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.",
10632	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}",
10633	//   "httpMethod": "DELETE",
10634	//   "id": "documentai.projects.locations.processors.delete",
10635	//   "parameterOrder": [
10636	//     "name"
10637	//   ],
10638	//   "parameters": {
10639	//     "name": {
10640	//       "description": "Required. The processor resource name to be deleted.",
10641	//       "location": "path",
10642	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10643	//       "required": true,
10644	//       "type": "string"
10645	//     }
10646	//   },
10647	//   "path": "v1beta3/{+name}",
10648	//   "response": {
10649	//     "$ref": "GoogleLongrunningOperation"
10650	//   },
10651	//   "scopes": [
10652	//     "https://www.googleapis.com/auth/cloud-platform"
10653	//   ]
10654	// }
10655
10656}
10657
10658// method id "documentai.projects.locations.processors.disable":
10659
10660type ProjectsLocationsProcessorsDisableCall struct {
10661	s                                                   *Service
10662	name                                                string
10663	googleclouddocumentaiv1beta3disableprocessorrequest *GoogleCloudDocumentaiV1beta3DisableProcessorRequest
10664	urlParams_                                          gensupport.URLParams
10665	ctx_                                                context.Context
10666	header_                                             http.Header
10667}
10668
10669// Disable: Disables a processor
10670//
10671// - name: The processor resource name to be disabled.
10672func (r *ProjectsLocationsProcessorsService) Disable(name string, googleclouddocumentaiv1beta3disableprocessorrequest *GoogleCloudDocumentaiV1beta3DisableProcessorRequest) *ProjectsLocationsProcessorsDisableCall {
10673	c := &ProjectsLocationsProcessorsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10674	c.name = name
10675	c.googleclouddocumentaiv1beta3disableprocessorrequest = googleclouddocumentaiv1beta3disableprocessorrequest
10676	return c
10677}
10678
10679// Fields allows partial responses to be retrieved. See
10680// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10681// for more information.
10682func (c *ProjectsLocationsProcessorsDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDisableCall {
10683	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10684	return c
10685}
10686
10687// Context sets the context to be used in this call's Do method. Any
10688// pending HTTP request will be aborted if the provided context is
10689// canceled.
10690func (c *ProjectsLocationsProcessorsDisableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDisableCall {
10691	c.ctx_ = ctx
10692	return c
10693}
10694
10695// Header returns an http.Header that can be modified by the caller to
10696// add HTTP headers to the request.
10697func (c *ProjectsLocationsProcessorsDisableCall) Header() http.Header {
10698	if c.header_ == nil {
10699		c.header_ = make(http.Header)
10700	}
10701	return c.header_
10702}
10703
10704func (c *ProjectsLocationsProcessorsDisableCall) doRequest(alt string) (*http.Response, error) {
10705	reqHeaders := make(http.Header)
10706	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10707	for k, v := range c.header_ {
10708		reqHeaders[k] = v
10709	}
10710	reqHeaders.Set("User-Agent", c.s.userAgent())
10711	var body io.Reader = nil
10712	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3disableprocessorrequest)
10713	if err != nil {
10714		return nil, err
10715	}
10716	reqHeaders.Set("Content-Type", "application/json")
10717	c.urlParams_.Set("alt", alt)
10718	c.urlParams_.Set("prettyPrint", "false")
10719	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:disable")
10720	urls += "?" + c.urlParams_.Encode()
10721	req, err := http.NewRequest("POST", urls, body)
10722	if err != nil {
10723		return nil, err
10724	}
10725	req.Header = reqHeaders
10726	googleapi.Expand(req.URL, map[string]string{
10727		"name": c.name,
10728	})
10729	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10730}
10731
10732// Do executes the "documentai.projects.locations.processors.disable" call.
10733// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10734// Any non-2xx status code is an error. Response headers are in either
10735// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10736// was returned at all) in error.(*googleapi.Error).Header. Use
10737// googleapi.IsNotModified to check whether the returned error was
10738// because http.StatusNotModified was returned.
10739func (c *ProjectsLocationsProcessorsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10740	gensupport.SetOptions(c.urlParams_, opts...)
10741	res, err := c.doRequest("json")
10742	if res != nil && res.StatusCode == http.StatusNotModified {
10743		if res.Body != nil {
10744			res.Body.Close()
10745		}
10746		return nil, &googleapi.Error{
10747			Code:   res.StatusCode,
10748			Header: res.Header,
10749		}
10750	}
10751	if err != nil {
10752		return nil, err
10753	}
10754	defer googleapi.CloseBody(res)
10755	if err := googleapi.CheckResponse(res); err != nil {
10756		return nil, err
10757	}
10758	ret := &GoogleLongrunningOperation{
10759		ServerResponse: googleapi.ServerResponse{
10760			Header:         res.Header,
10761			HTTPStatusCode: res.StatusCode,
10762		},
10763	}
10764	target := &ret
10765	if err := gensupport.DecodeResponse(target, res); err != nil {
10766		return nil, err
10767	}
10768	return ret, nil
10769	// {
10770	//   "description": "Disables a processor",
10771	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:disable",
10772	//   "httpMethod": "POST",
10773	//   "id": "documentai.projects.locations.processors.disable",
10774	//   "parameterOrder": [
10775	//     "name"
10776	//   ],
10777	//   "parameters": {
10778	//     "name": {
10779	//       "description": "Required. The processor resource name to be disabled.",
10780	//       "location": "path",
10781	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10782	//       "required": true,
10783	//       "type": "string"
10784	//     }
10785	//   },
10786	//   "path": "v1beta3/{+name}:disable",
10787	//   "request": {
10788	//     "$ref": "GoogleCloudDocumentaiV1beta3DisableProcessorRequest"
10789	//   },
10790	//   "response": {
10791	//     "$ref": "GoogleLongrunningOperation"
10792	//   },
10793	//   "scopes": [
10794	//     "https://www.googleapis.com/auth/cloud-platform"
10795	//   ]
10796	// }
10797
10798}
10799
10800// method id "documentai.projects.locations.processors.enable":
10801
10802type ProjectsLocationsProcessorsEnableCall struct {
10803	s                                                  *Service
10804	name                                               string
10805	googleclouddocumentaiv1beta3enableprocessorrequest *GoogleCloudDocumentaiV1beta3EnableProcessorRequest
10806	urlParams_                                         gensupport.URLParams
10807	ctx_                                               context.Context
10808	header_                                            http.Header
10809}
10810
10811// Enable: Enables a processor
10812//
10813// - name: The processor resource name to be enabled.
10814func (r *ProjectsLocationsProcessorsService) Enable(name string, googleclouddocumentaiv1beta3enableprocessorrequest *GoogleCloudDocumentaiV1beta3EnableProcessorRequest) *ProjectsLocationsProcessorsEnableCall {
10815	c := &ProjectsLocationsProcessorsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10816	c.name = name
10817	c.googleclouddocumentaiv1beta3enableprocessorrequest = googleclouddocumentaiv1beta3enableprocessorrequest
10818	return c
10819}
10820
10821// Fields allows partial responses to be retrieved. See
10822// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10823// for more information.
10824func (c *ProjectsLocationsProcessorsEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsEnableCall {
10825	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10826	return c
10827}
10828
10829// Context sets the context to be used in this call's Do method. Any
10830// pending HTTP request will be aborted if the provided context is
10831// canceled.
10832func (c *ProjectsLocationsProcessorsEnableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsEnableCall {
10833	c.ctx_ = ctx
10834	return c
10835}
10836
10837// Header returns an http.Header that can be modified by the caller to
10838// add HTTP headers to the request.
10839func (c *ProjectsLocationsProcessorsEnableCall) Header() http.Header {
10840	if c.header_ == nil {
10841		c.header_ = make(http.Header)
10842	}
10843	return c.header_
10844}
10845
10846func (c *ProjectsLocationsProcessorsEnableCall) doRequest(alt string) (*http.Response, error) {
10847	reqHeaders := make(http.Header)
10848	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
10849	for k, v := range c.header_ {
10850		reqHeaders[k] = v
10851	}
10852	reqHeaders.Set("User-Agent", c.s.userAgent())
10853	var body io.Reader = nil
10854	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3enableprocessorrequest)
10855	if err != nil {
10856		return nil, err
10857	}
10858	reqHeaders.Set("Content-Type", "application/json")
10859	c.urlParams_.Set("alt", alt)
10860	c.urlParams_.Set("prettyPrint", "false")
10861	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:enable")
10862	urls += "?" + c.urlParams_.Encode()
10863	req, err := http.NewRequest("POST", urls, body)
10864	if err != nil {
10865		return nil, err
10866	}
10867	req.Header = reqHeaders
10868	googleapi.Expand(req.URL, map[string]string{
10869		"name": c.name,
10870	})
10871	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10872}
10873
10874// Do executes the "documentai.projects.locations.processors.enable" call.
10875// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10876// Any non-2xx status code is an error. Response headers are in either
10877// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10878// was returned at all) in error.(*googleapi.Error).Header. Use
10879// googleapi.IsNotModified to check whether the returned error was
10880// because http.StatusNotModified was returned.
10881func (c *ProjectsLocationsProcessorsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10882	gensupport.SetOptions(c.urlParams_, opts...)
10883	res, err := c.doRequest("json")
10884	if res != nil && res.StatusCode == http.StatusNotModified {
10885		if res.Body != nil {
10886			res.Body.Close()
10887		}
10888		return nil, &googleapi.Error{
10889			Code:   res.StatusCode,
10890			Header: res.Header,
10891		}
10892	}
10893	if err != nil {
10894		return nil, err
10895	}
10896	defer googleapi.CloseBody(res)
10897	if err := googleapi.CheckResponse(res); err != nil {
10898		return nil, err
10899	}
10900	ret := &GoogleLongrunningOperation{
10901		ServerResponse: googleapi.ServerResponse{
10902			Header:         res.Header,
10903			HTTPStatusCode: res.StatusCode,
10904		},
10905	}
10906	target := &ret
10907	if err := gensupport.DecodeResponse(target, res); err != nil {
10908		return nil, err
10909	}
10910	return ret, nil
10911	// {
10912	//   "description": "Enables a processor",
10913	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:enable",
10914	//   "httpMethod": "POST",
10915	//   "id": "documentai.projects.locations.processors.enable",
10916	//   "parameterOrder": [
10917	//     "name"
10918	//   ],
10919	//   "parameters": {
10920	//     "name": {
10921	//       "description": "Required. The processor resource name to be enabled.",
10922	//       "location": "path",
10923	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
10924	//       "required": true,
10925	//       "type": "string"
10926	//     }
10927	//   },
10928	//   "path": "v1beta3/{+name}:enable",
10929	//   "request": {
10930	//     "$ref": "GoogleCloudDocumentaiV1beta3EnableProcessorRequest"
10931	//   },
10932	//   "response": {
10933	//     "$ref": "GoogleLongrunningOperation"
10934	//   },
10935	//   "scopes": [
10936	//     "https://www.googleapis.com/auth/cloud-platform"
10937	//   ]
10938	// }
10939
10940}
10941
10942// method id "documentai.projects.locations.processors.get":
10943
10944type ProjectsLocationsProcessorsGetCall struct {
10945	s            *Service
10946	name         string
10947	urlParams_   gensupport.URLParams
10948	ifNoneMatch_ string
10949	ctx_         context.Context
10950	header_      http.Header
10951}
10952
10953// Get: Gets a processor detail.
10954//
10955// - name: The processor resource name.
10956func (r *ProjectsLocationsProcessorsService) Get(name string) *ProjectsLocationsProcessorsGetCall {
10957	c := &ProjectsLocationsProcessorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10958	c.name = name
10959	return c
10960}
10961
10962// Fields allows partial responses to be retrieved. See
10963// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10964// for more information.
10965func (c *ProjectsLocationsProcessorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsGetCall {
10966	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10967	return c
10968}
10969
10970// IfNoneMatch sets the optional parameter which makes the operation
10971// fail if the object's ETag matches the given value. This is useful for
10972// getting updates only after the object has changed since the last
10973// request. Use googleapi.IsNotModified to check whether the response
10974// error from Do is the result of In-None-Match.
10975func (c *ProjectsLocationsProcessorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsGetCall {
10976	c.ifNoneMatch_ = entityTag
10977	return c
10978}
10979
10980// Context sets the context to be used in this call's Do method. Any
10981// pending HTTP request will be aborted if the provided context is
10982// canceled.
10983func (c *ProjectsLocationsProcessorsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsGetCall {
10984	c.ctx_ = ctx
10985	return c
10986}
10987
10988// Header returns an http.Header that can be modified by the caller to
10989// add HTTP headers to the request.
10990func (c *ProjectsLocationsProcessorsGetCall) Header() http.Header {
10991	if c.header_ == nil {
10992		c.header_ = make(http.Header)
10993	}
10994	return c.header_
10995}
10996
10997func (c *ProjectsLocationsProcessorsGetCall) doRequest(alt string) (*http.Response, error) {
10998	reqHeaders := make(http.Header)
10999	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11000	for k, v := range c.header_ {
11001		reqHeaders[k] = v
11002	}
11003	reqHeaders.Set("User-Agent", c.s.userAgent())
11004	if c.ifNoneMatch_ != "" {
11005		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11006	}
11007	var body io.Reader = nil
11008	c.urlParams_.Set("alt", alt)
11009	c.urlParams_.Set("prettyPrint", "false")
11010	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
11011	urls += "?" + c.urlParams_.Encode()
11012	req, err := http.NewRequest("GET", urls, body)
11013	if err != nil {
11014		return nil, err
11015	}
11016	req.Header = reqHeaders
11017	googleapi.Expand(req.URL, map[string]string{
11018		"name": c.name,
11019	})
11020	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11021}
11022
11023// Do executes the "documentai.projects.locations.processors.get" call.
11024// Exactly one of *GoogleCloudDocumentaiV1beta3Processor or error will
11025// be non-nil. Any non-2xx status code is an error. Response headers are
11026// in either
11027// *GoogleCloudDocumentaiV1beta3Processor.ServerResponse.Header or (if a
11028// response was returned at all) in error.(*googleapi.Error).Header. Use
11029// googleapi.IsNotModified to check whether the returned error was
11030// because http.StatusNotModified was returned.
11031func (c *ProjectsLocationsProcessorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Processor, error) {
11032	gensupport.SetOptions(c.urlParams_, opts...)
11033	res, err := c.doRequest("json")
11034	if res != nil && res.StatusCode == http.StatusNotModified {
11035		if res.Body != nil {
11036			res.Body.Close()
11037		}
11038		return nil, &googleapi.Error{
11039			Code:   res.StatusCode,
11040			Header: res.Header,
11041		}
11042	}
11043	if err != nil {
11044		return nil, err
11045	}
11046	defer googleapi.CloseBody(res)
11047	if err := googleapi.CheckResponse(res); err != nil {
11048		return nil, err
11049	}
11050	ret := &GoogleCloudDocumentaiV1beta3Processor{
11051		ServerResponse: googleapi.ServerResponse{
11052			Header:         res.Header,
11053			HTTPStatusCode: res.StatusCode,
11054		},
11055	}
11056	target := &ret
11057	if err := gensupport.DecodeResponse(target, res); err != nil {
11058		return nil, err
11059	}
11060	return ret, nil
11061	// {
11062	//   "description": "Gets a processor detail.",
11063	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}",
11064	//   "httpMethod": "GET",
11065	//   "id": "documentai.projects.locations.processors.get",
11066	//   "parameterOrder": [
11067	//     "name"
11068	//   ],
11069	//   "parameters": {
11070	//     "name": {
11071	//       "description": "Required. The processor resource name.",
11072	//       "location": "path",
11073	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11074	//       "required": true,
11075	//       "type": "string"
11076	//     }
11077	//   },
11078	//   "path": "v1beta3/{+name}",
11079	//   "response": {
11080	//     "$ref": "GoogleCloudDocumentaiV1beta3Processor"
11081	//   },
11082	//   "scopes": [
11083	//     "https://www.googleapis.com/auth/cloud-platform"
11084	//   ]
11085	// }
11086
11087}
11088
11089// method id "documentai.projects.locations.processors.list":
11090
11091type ProjectsLocationsProcessorsListCall struct {
11092	s            *Service
11093	parent       string
11094	urlParams_   gensupport.URLParams
11095	ifNoneMatch_ string
11096	ctx_         context.Context
11097	header_      http.Header
11098}
11099
11100// List: Lists all processors which belong to this project.
11101//
11102// - parent: The parent (project and location) which owns this
11103//   collection of Processors. Format:
11104//   projects/{project}/locations/{location}.
11105func (r *ProjectsLocationsProcessorsService) List(parent string) *ProjectsLocationsProcessorsListCall {
11106	c := &ProjectsLocationsProcessorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11107	c.parent = parent
11108	return c
11109}
11110
11111// PageSize sets the optional parameter "pageSize": The maximum number
11112// of processors to return. If unspecified, at most 50 processors will
11113// be returned. The maximum value is 100; values above 100 will be
11114// coerced to 100.
11115func (c *ProjectsLocationsProcessorsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsListCall {
11116	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11117	return c
11118}
11119
11120// PageToken sets the optional parameter "pageToken": We will return the
11121// processors sorted by creation time. The page token will point to the
11122// next processor.
11123func (c *ProjectsLocationsProcessorsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsListCall {
11124	c.urlParams_.Set("pageToken", pageToken)
11125	return c
11126}
11127
11128// Fields allows partial responses to be retrieved. See
11129// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11130// for more information.
11131func (c *ProjectsLocationsProcessorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsListCall {
11132	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11133	return c
11134}
11135
11136// IfNoneMatch sets the optional parameter which makes the operation
11137// fail if the object's ETag matches the given value. This is useful for
11138// getting updates only after the object has changed since the last
11139// request. Use googleapi.IsNotModified to check whether the response
11140// error from Do is the result of In-None-Match.
11141func (c *ProjectsLocationsProcessorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsListCall {
11142	c.ifNoneMatch_ = entityTag
11143	return c
11144}
11145
11146// Context sets the context to be used in this call's Do method. Any
11147// pending HTTP request will be aborted if the provided context is
11148// canceled.
11149func (c *ProjectsLocationsProcessorsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsListCall {
11150	c.ctx_ = ctx
11151	return c
11152}
11153
11154// Header returns an http.Header that can be modified by the caller to
11155// add HTTP headers to the request.
11156func (c *ProjectsLocationsProcessorsListCall) Header() http.Header {
11157	if c.header_ == nil {
11158		c.header_ = make(http.Header)
11159	}
11160	return c.header_
11161}
11162
11163func (c *ProjectsLocationsProcessorsListCall) doRequest(alt string) (*http.Response, error) {
11164	reqHeaders := make(http.Header)
11165	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11166	for k, v := range c.header_ {
11167		reqHeaders[k] = v
11168	}
11169	reqHeaders.Set("User-Agent", c.s.userAgent())
11170	if c.ifNoneMatch_ != "" {
11171		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11172	}
11173	var body io.Reader = nil
11174	c.urlParams_.Set("alt", alt)
11175	c.urlParams_.Set("prettyPrint", "false")
11176	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processors")
11177	urls += "?" + c.urlParams_.Encode()
11178	req, err := http.NewRequest("GET", urls, body)
11179	if err != nil {
11180		return nil, err
11181	}
11182	req.Header = reqHeaders
11183	googleapi.Expand(req.URL, map[string]string{
11184		"parent": c.parent,
11185	})
11186	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11187}
11188
11189// Do executes the "documentai.projects.locations.processors.list" call.
11190// Exactly one of *GoogleCloudDocumentaiV1beta3ListProcessorsResponse or
11191// error will be non-nil. Any non-2xx status code is an error. Response
11192// headers are in either
11193// *GoogleCloudDocumentaiV1beta3ListProcessorsResponse.ServerResponse.Hea
11194// der or (if a response was returned at all) in
11195// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11196// whether the returned error was because http.StatusNotModified was
11197// returned.
11198func (c *ProjectsLocationsProcessorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorsResponse, error) {
11199	gensupport.SetOptions(c.urlParams_, opts...)
11200	res, err := c.doRequest("json")
11201	if res != nil && res.StatusCode == http.StatusNotModified {
11202		if res.Body != nil {
11203			res.Body.Close()
11204		}
11205		return nil, &googleapi.Error{
11206			Code:   res.StatusCode,
11207			Header: res.Header,
11208		}
11209	}
11210	if err != nil {
11211		return nil, err
11212	}
11213	defer googleapi.CloseBody(res)
11214	if err := googleapi.CheckResponse(res); err != nil {
11215		return nil, err
11216	}
11217	ret := &GoogleCloudDocumentaiV1beta3ListProcessorsResponse{
11218		ServerResponse: googleapi.ServerResponse{
11219			Header:         res.Header,
11220			HTTPStatusCode: res.StatusCode,
11221		},
11222	}
11223	target := &ret
11224	if err := gensupport.DecodeResponse(target, res); err != nil {
11225		return nil, err
11226	}
11227	return ret, nil
11228	// {
11229	//   "description": "Lists all processors which belong to this project.",
11230	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors",
11231	//   "httpMethod": "GET",
11232	//   "id": "documentai.projects.locations.processors.list",
11233	//   "parameterOrder": [
11234	//     "parent"
11235	//   ],
11236	//   "parameters": {
11237	//     "pageSize": {
11238	//       "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.",
11239	//       "format": "int32",
11240	//       "location": "query",
11241	//       "type": "integer"
11242	//     },
11243	//     "pageToken": {
11244	//       "description": "We will return the processors sorted by creation time. The page token will point to the next processor.",
11245	//       "location": "query",
11246	//       "type": "string"
11247	//     },
11248	//     "parent": {
11249	//       "description": "Required. The parent (project and location) which owns this collection of Processors. Format: projects/{project}/locations/{location}",
11250	//       "location": "path",
11251	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
11252	//       "required": true,
11253	//       "type": "string"
11254	//     }
11255	//   },
11256	//   "path": "v1beta3/{+parent}/processors",
11257	//   "response": {
11258	//     "$ref": "GoogleCloudDocumentaiV1beta3ListProcessorsResponse"
11259	//   },
11260	//   "scopes": [
11261	//     "https://www.googleapis.com/auth/cloud-platform"
11262	//   ]
11263	// }
11264
11265}
11266
11267// Pages invokes f for each page of results.
11268// A non-nil error returned from f will halt the iteration.
11269// The provided context supersedes any context provided to the Context method.
11270func (c *ProjectsLocationsProcessorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorsResponse) error) error {
11271	c.ctx_ = ctx
11272	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
11273	for {
11274		x, err := c.Do()
11275		if err != nil {
11276			return err
11277		}
11278		if err := f(x); err != nil {
11279			return err
11280		}
11281		if x.NextPageToken == "" {
11282			return nil
11283		}
11284		c.PageToken(x.NextPageToken)
11285	}
11286}
11287
11288// method id "documentai.projects.locations.processors.process":
11289
11290type ProjectsLocationsProcessorsProcessCall struct {
11291	s                                          *Service
11292	name                                       string
11293	googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest
11294	urlParams_                                 gensupport.URLParams
11295	ctx_                                       context.Context
11296	header_                                    http.Header
11297}
11298
11299// Process: Processes a single document.
11300//
11301// - name: The resource name of the Processor or ProcessorVersion to use
11302//   for processing. If a Processor is specified, the server will use
11303//   its default version. Format:
11304//   projects/{project}/locations/{location}/processors/{processor}, or
11305//   projects/{project}/locations/{location}/processors/{processor}/proce
11306//   ssorVersions/{processorVersion}.
11307func (r *ProjectsLocationsProcessorsService) Process(name string, googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest) *ProjectsLocationsProcessorsProcessCall {
11308	c := &ProjectsLocationsProcessorsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11309	c.name = name
11310	c.googleclouddocumentaiv1beta3processrequest = googleclouddocumentaiv1beta3processrequest
11311	return c
11312}
11313
11314// Fields allows partial responses to be retrieved. See
11315// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11316// for more information.
11317func (c *ProjectsLocationsProcessorsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessCall {
11318	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11319	return c
11320}
11321
11322// Context sets the context to be used in this call's Do method. Any
11323// pending HTTP request will be aborted if the provided context is
11324// canceled.
11325func (c *ProjectsLocationsProcessorsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessCall {
11326	c.ctx_ = ctx
11327	return c
11328}
11329
11330// Header returns an http.Header that can be modified by the caller to
11331// add HTTP headers to the request.
11332func (c *ProjectsLocationsProcessorsProcessCall) Header() http.Header {
11333	if c.header_ == nil {
11334		c.header_ = make(http.Header)
11335	}
11336	return c.header_
11337}
11338
11339func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Response, error) {
11340	reqHeaders := make(http.Header)
11341	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11342	for k, v := range c.header_ {
11343		reqHeaders[k] = v
11344	}
11345	reqHeaders.Set("User-Agent", c.s.userAgent())
11346	var body io.Reader = nil
11347	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processrequest)
11348	if err != nil {
11349		return nil, err
11350	}
11351	reqHeaders.Set("Content-Type", "application/json")
11352	c.urlParams_.Set("alt", alt)
11353	c.urlParams_.Set("prettyPrint", "false")
11354	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:process")
11355	urls += "?" + c.urlParams_.Encode()
11356	req, err := http.NewRequest("POST", urls, body)
11357	if err != nil {
11358		return nil, err
11359	}
11360	req.Header = reqHeaders
11361	googleapi.Expand(req.URL, map[string]string{
11362		"name": c.name,
11363	})
11364	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11365}
11366
11367// Do executes the "documentai.projects.locations.processors.process" call.
11368// Exactly one of *GoogleCloudDocumentaiV1beta3ProcessResponse or error
11369// will be non-nil. Any non-2xx status code is an error. Response
11370// headers are in either
11371// *GoogleCloudDocumentaiV1beta3ProcessResponse.ServerResponse.Header or
11372// (if a response was returned at all) in
11373// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11374// whether the returned error was because http.StatusNotModified was
11375// returned.
11376func (c *ProjectsLocationsProcessorsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessResponse, error) {
11377	gensupport.SetOptions(c.urlParams_, opts...)
11378	res, err := c.doRequest("json")
11379	if res != nil && res.StatusCode == http.StatusNotModified {
11380		if res.Body != nil {
11381			res.Body.Close()
11382		}
11383		return nil, &googleapi.Error{
11384			Code:   res.StatusCode,
11385			Header: res.Header,
11386		}
11387	}
11388	if err != nil {
11389		return nil, err
11390	}
11391	defer googleapi.CloseBody(res)
11392	if err := googleapi.CheckResponse(res); err != nil {
11393		return nil, err
11394	}
11395	ret := &GoogleCloudDocumentaiV1beta3ProcessResponse{
11396		ServerResponse: googleapi.ServerResponse{
11397			Header:         res.Header,
11398			HTTPStatusCode: res.StatusCode,
11399		},
11400	}
11401	target := &ret
11402	if err := gensupport.DecodeResponse(target, res); err != nil {
11403		return nil, err
11404	}
11405	return ret, nil
11406	// {
11407	//   "description": "Processes a single document.",
11408	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:process",
11409	//   "httpMethod": "POST",
11410	//   "id": "documentai.projects.locations.processors.process",
11411	//   "parameterOrder": [
11412	//     "name"
11413	//   ],
11414	//   "parameters": {
11415	//     "name": {
11416	//       "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}",
11417	//       "location": "path",
11418	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11419	//       "required": true,
11420	//       "type": "string"
11421	//     }
11422	//   },
11423	//   "path": "v1beta3/{+name}:process",
11424	//   "request": {
11425	//     "$ref": "GoogleCloudDocumentaiV1beta3ProcessRequest"
11426	//   },
11427	//   "response": {
11428	//     "$ref": "GoogleCloudDocumentaiV1beta3ProcessResponse"
11429	//   },
11430	//   "scopes": [
11431	//     "https://www.googleapis.com/auth/cloud-platform"
11432	//   ]
11433	// }
11434
11435}
11436
11437// method id "documentai.projects.locations.processors.setDefaultProcessorVersion":
11438
11439type ProjectsLocationsProcessorsSetDefaultProcessorVersionCall struct {
11440	s                                                             *Service
11441	processor                                                     string
11442	googleclouddocumentaiv1beta3setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
11443	urlParams_                                                    gensupport.URLParams
11444	ctx_                                                          context.Context
11445	header_                                                       http.Header
11446}
11447
11448// SetDefaultProcessorVersion: Set the default (active) version of a
11449// Processor that will be used in ProcessDocument and
11450// BatchProcessDocuments.
11451//
11452// - processor: The resource name of the Processor to change default
11453//   version.
11454func (r *ProjectsLocationsProcessorsService) SetDefaultProcessorVersion(processor string, googleclouddocumentaiv1beta3setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
11455	c := &ProjectsLocationsProcessorsSetDefaultProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11456	c.processor = processor
11457	c.googleclouddocumentaiv1beta3setdefaultprocessorversionrequest = googleclouddocumentaiv1beta3setdefaultprocessorversionrequest
11458	return c
11459}
11460
11461// Fields allows partial responses to be retrieved. See
11462// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11463// for more information.
11464func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
11465	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11466	return c
11467}
11468
11469// Context sets the context to be used in this call's Do method. Any
11470// pending HTTP request will be aborted if the provided context is
11471// canceled.
11472func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
11473	c.ctx_ = ctx
11474	return c
11475}
11476
11477// Header returns an http.Header that can be modified by the caller to
11478// add HTTP headers to the request.
11479func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Header() http.Header {
11480	if c.header_ == nil {
11481		c.header_ = make(http.Header)
11482	}
11483	return c.header_
11484}
11485
11486func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
11487	reqHeaders := make(http.Header)
11488	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11489	for k, v := range c.header_ {
11490		reqHeaders[k] = v
11491	}
11492	reqHeaders.Set("User-Agent", c.s.userAgent())
11493	var body io.Reader = nil
11494	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3setdefaultprocessorversionrequest)
11495	if err != nil {
11496		return nil, err
11497	}
11498	reqHeaders.Set("Content-Type", "application/json")
11499	c.urlParams_.Set("alt", alt)
11500	c.urlParams_.Set("prettyPrint", "false")
11501	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+processor}:setDefaultProcessorVersion")
11502	urls += "?" + c.urlParams_.Encode()
11503	req, err := http.NewRequest("POST", urls, body)
11504	if err != nil {
11505		return nil, err
11506	}
11507	req.Header = reqHeaders
11508	googleapi.Expand(req.URL, map[string]string{
11509		"processor": c.processor,
11510	})
11511	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11512}
11513
11514// Do executes the "documentai.projects.locations.processors.setDefaultProcessorVersion" call.
11515// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11516// Any non-2xx status code is an error. Response headers are in either
11517// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11518// was returned at all) in error.(*googleapi.Error).Header. Use
11519// googleapi.IsNotModified to check whether the returned error was
11520// because http.StatusNotModified was returned.
11521func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11522	gensupport.SetOptions(c.urlParams_, opts...)
11523	res, err := c.doRequest("json")
11524	if res != nil && res.StatusCode == http.StatusNotModified {
11525		if res.Body != nil {
11526			res.Body.Close()
11527		}
11528		return nil, &googleapi.Error{
11529			Code:   res.StatusCode,
11530			Header: res.Header,
11531		}
11532	}
11533	if err != nil {
11534		return nil, err
11535	}
11536	defer googleapi.CloseBody(res)
11537	if err := googleapi.CheckResponse(res); err != nil {
11538		return nil, err
11539	}
11540	ret := &GoogleLongrunningOperation{
11541		ServerResponse: googleapi.ServerResponse{
11542			Header:         res.Header,
11543			HTTPStatusCode: res.StatusCode,
11544		},
11545	}
11546	target := &ret
11547	if err := gensupport.DecodeResponse(target, res); err != nil {
11548		return nil, err
11549	}
11550	return ret, nil
11551	// {
11552	//   "description": "Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.",
11553	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:setDefaultProcessorVersion",
11554	//   "httpMethod": "POST",
11555	//   "id": "documentai.projects.locations.processors.setDefaultProcessorVersion",
11556	//   "parameterOrder": [
11557	//     "processor"
11558	//   ],
11559	//   "parameters": {
11560	//     "processor": {
11561	//       "description": "Required. The resource name of the Processor to change default version.",
11562	//       "location": "path",
11563	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
11564	//       "required": true,
11565	//       "type": "string"
11566	//     }
11567	//   },
11568	//   "path": "v1beta3/{+processor}:setDefaultProcessorVersion",
11569	//   "request": {
11570	//     "$ref": "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest"
11571	//   },
11572	//   "response": {
11573	//     "$ref": "GoogleLongrunningOperation"
11574	//   },
11575	//   "scopes": [
11576	//     "https://www.googleapis.com/auth/cloud-platform"
11577	//   ]
11578	// }
11579
11580}
11581
11582// method id "documentai.projects.locations.processors.humanReviewConfig.reviewDocument":
11583
11584type ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall struct {
11585	s                                                 *Service
11586	humanReviewConfig                                 string
11587	googleclouddocumentaiv1beta3reviewdocumentrequest *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
11588	urlParams_                                        gensupport.URLParams
11589	ctx_                                              context.Context
11590	header_                                           http.Header
11591}
11592
11593// ReviewDocument: Send a document for Human Review. The input document
11594// should be processed by the specified processor.
11595//
11596// - humanReviewConfig: The resource name of the HumanReviewConfig that
11597//   the document will be reviewed with.
11598func (r *ProjectsLocationsProcessorsHumanReviewConfigService) ReviewDocument(humanReviewConfig string, googleclouddocumentaiv1beta3reviewdocumentrequest *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
11599	c := &ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11600	c.humanReviewConfig = humanReviewConfig
11601	c.googleclouddocumentaiv1beta3reviewdocumentrequest = googleclouddocumentaiv1beta3reviewdocumentrequest
11602	return c
11603}
11604
11605// Fields allows partial responses to be retrieved. See
11606// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11607// for more information.
11608func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
11609	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11610	return c
11611}
11612
11613// Context sets the context to be used in this call's Do method. Any
11614// pending HTTP request will be aborted if the provided context is
11615// canceled.
11616func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Context(ctx context.Context) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
11617	c.ctx_ = ctx
11618	return c
11619}
11620
11621// Header returns an http.Header that can be modified by the caller to
11622// add HTTP headers to the request.
11623func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Header() http.Header {
11624	if c.header_ == nil {
11625		c.header_ = make(http.Header)
11626	}
11627	return c.header_
11628}
11629
11630func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doRequest(alt string) (*http.Response, error) {
11631	reqHeaders := make(http.Header)
11632	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11633	for k, v := range c.header_ {
11634		reqHeaders[k] = v
11635	}
11636	reqHeaders.Set("User-Agent", c.s.userAgent())
11637	var body io.Reader = nil
11638	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3reviewdocumentrequest)
11639	if err != nil {
11640		return nil, err
11641	}
11642	reqHeaders.Set("Content-Type", "application/json")
11643	c.urlParams_.Set("alt", alt)
11644	c.urlParams_.Set("prettyPrint", "false")
11645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+humanReviewConfig}:reviewDocument")
11646	urls += "?" + c.urlParams_.Encode()
11647	req, err := http.NewRequest("POST", urls, body)
11648	if err != nil {
11649		return nil, err
11650	}
11651	req.Header = reqHeaders
11652	googleapi.Expand(req.URL, map[string]string{
11653		"humanReviewConfig": c.humanReviewConfig,
11654	})
11655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11656}
11657
11658// Do executes the "documentai.projects.locations.processors.humanReviewConfig.reviewDocument" call.
11659// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11660// Any non-2xx status code is an error. Response headers are in either
11661// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11662// was returned at all) in error.(*googleapi.Error).Header. Use
11663// googleapi.IsNotModified to check whether the returned error was
11664// because http.StatusNotModified was returned.
11665func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11666	gensupport.SetOptions(c.urlParams_, opts...)
11667	res, err := c.doRequest("json")
11668	if res != nil && res.StatusCode == http.StatusNotModified {
11669		if res.Body != nil {
11670			res.Body.Close()
11671		}
11672		return nil, &googleapi.Error{
11673			Code:   res.StatusCode,
11674			Header: res.Header,
11675		}
11676	}
11677	if err != nil {
11678		return nil, err
11679	}
11680	defer googleapi.CloseBody(res)
11681	if err := googleapi.CheckResponse(res); err != nil {
11682		return nil, err
11683	}
11684	ret := &GoogleLongrunningOperation{
11685		ServerResponse: googleapi.ServerResponse{
11686			Header:         res.Header,
11687			HTTPStatusCode: res.StatusCode,
11688		},
11689	}
11690	target := &ret
11691	if err := gensupport.DecodeResponse(target, res); err != nil {
11692		return nil, err
11693	}
11694	return ret, nil
11695	// {
11696	//   "description": "Send a document for Human Review. The input document should be processed by the specified processor.",
11697	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/humanReviewConfig:reviewDocument",
11698	//   "httpMethod": "POST",
11699	//   "id": "documentai.projects.locations.processors.humanReviewConfig.reviewDocument",
11700	//   "parameterOrder": [
11701	//     "humanReviewConfig"
11702	//   ],
11703	//   "parameters": {
11704	//     "humanReviewConfig": {
11705	//       "description": "Required. The resource name of the HumanReviewConfig that the document will be reviewed with.",
11706	//       "location": "path",
11707	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/humanReviewConfig$",
11708	//       "required": true,
11709	//       "type": "string"
11710	//     }
11711	//   },
11712	//   "path": "v1beta3/{+humanReviewConfig}:reviewDocument",
11713	//   "request": {
11714	//     "$ref": "GoogleCloudDocumentaiV1beta3ReviewDocumentRequest"
11715	//   },
11716	//   "response": {
11717	//     "$ref": "GoogleLongrunningOperation"
11718	//   },
11719	//   "scopes": [
11720	//     "https://www.googleapis.com/auth/cloud-platform"
11721	//   ]
11722	// }
11723
11724}
11725
11726// method id "documentai.projects.locations.processors.processorVersions.batchProcess":
11727
11728type ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall struct {
11729	s                                               *Service
11730	name                                            string
11731	googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest
11732	urlParams_                                      gensupport.URLParams
11733	ctx_                                            context.Context
11734	header_                                         http.Header
11735}
11736
11737// BatchProcess: LRO endpoint to batch process many documents. The
11738// output is written to Cloud Storage as JSON in the [Document] format.
11739//
11740// - name: The resource name of Processor or ProcessorVersion. Format:
11741//   projects/{project}/locations/{location}/processors/{processor}, or
11742//   projects/{project}/locations/{location}/processors/{processor}/proce
11743//   ssorVersions/{processorVersion}.
11744func (r *ProjectsLocationsProcessorsProcessorVersionsService) BatchProcess(name string, googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
11745	c := &ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11746	c.name = name
11747	c.googleclouddocumentaiv1beta3batchprocessrequest = googleclouddocumentaiv1beta3batchprocessrequest
11748	return c
11749}
11750
11751// Fields allows partial responses to be retrieved. See
11752// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11753// for more information.
11754func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
11755	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11756	return c
11757}
11758
11759// Context sets the context to be used in this call's Do method. Any
11760// pending HTTP request will be aborted if the provided context is
11761// canceled.
11762func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
11763	c.ctx_ = ctx
11764	return c
11765}
11766
11767// Header returns an http.Header that can be modified by the caller to
11768// add HTTP headers to the request.
11769func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Header() http.Header {
11770	if c.header_ == nil {
11771		c.header_ = make(http.Header)
11772	}
11773	return c.header_
11774}
11775
11776func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
11777	reqHeaders := make(http.Header)
11778	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11779	for k, v := range c.header_ {
11780		reqHeaders[k] = v
11781	}
11782	reqHeaders.Set("User-Agent", c.s.userAgent())
11783	var body io.Reader = nil
11784	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchprocessrequest)
11785	if err != nil {
11786		return nil, err
11787	}
11788	reqHeaders.Set("Content-Type", "application/json")
11789	c.urlParams_.Set("alt", alt)
11790	c.urlParams_.Set("prettyPrint", "false")
11791	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:batchProcess")
11792	urls += "?" + c.urlParams_.Encode()
11793	req, err := http.NewRequest("POST", urls, body)
11794	if err != nil {
11795		return nil, err
11796	}
11797	req.Header = reqHeaders
11798	googleapi.Expand(req.URL, map[string]string{
11799		"name": c.name,
11800	})
11801	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11802}
11803
11804// Do executes the "documentai.projects.locations.processors.processorVersions.batchProcess" call.
11805// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11806// Any non-2xx status code is an error. Response headers are in either
11807// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11808// was returned at all) in error.(*googleapi.Error).Header. Use
11809// googleapi.IsNotModified to check whether the returned error was
11810// because http.StatusNotModified was returned.
11811func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11812	gensupport.SetOptions(c.urlParams_, opts...)
11813	res, err := c.doRequest("json")
11814	if res != nil && res.StatusCode == http.StatusNotModified {
11815		if res.Body != nil {
11816			res.Body.Close()
11817		}
11818		return nil, &googleapi.Error{
11819			Code:   res.StatusCode,
11820			Header: res.Header,
11821		}
11822	}
11823	if err != nil {
11824		return nil, err
11825	}
11826	defer googleapi.CloseBody(res)
11827	if err := googleapi.CheckResponse(res); err != nil {
11828		return nil, err
11829	}
11830	ret := &GoogleLongrunningOperation{
11831		ServerResponse: googleapi.ServerResponse{
11832			Header:         res.Header,
11833			HTTPStatusCode: res.StatusCode,
11834		},
11835	}
11836	target := &ret
11837	if err := gensupport.DecodeResponse(target, res); err != nil {
11838		return nil, err
11839	}
11840	return ret, nil
11841	// {
11842	//   "description": "LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.",
11843	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:batchProcess",
11844	//   "httpMethod": "POST",
11845	//   "id": "documentai.projects.locations.processors.processorVersions.batchProcess",
11846	//   "parameterOrder": [
11847	//     "name"
11848	//   ],
11849	//   "parameters": {
11850	//     "name": {
11851	//       "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}",
11852	//       "location": "path",
11853	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
11854	//       "required": true,
11855	//       "type": "string"
11856	//     }
11857	//   },
11858	//   "path": "v1beta3/{+name}:batchProcess",
11859	//   "request": {
11860	//     "$ref": "GoogleCloudDocumentaiV1beta3BatchProcessRequest"
11861	//   },
11862	//   "response": {
11863	//     "$ref": "GoogleLongrunningOperation"
11864	//   },
11865	//   "scopes": [
11866	//     "https://www.googleapis.com/auth/cloud-platform"
11867	//   ]
11868	// }
11869
11870}
11871
11872// method id "documentai.projects.locations.processors.processorVersions.delete":
11873
11874type ProjectsLocationsProcessorsProcessorVersionsDeleteCall struct {
11875	s          *Service
11876	name       string
11877	urlParams_ gensupport.URLParams
11878	ctx_       context.Context
11879	header_    http.Header
11880}
11881
11882// Delete: Deletes the processor version, all artifacts under the
11883// processor version will be deleted.
11884//
11885// - name: The processor version resource name to be deleted.
11886func (r *ProjectsLocationsProcessorsProcessorVersionsService) Delete(name string) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
11887	c := &ProjectsLocationsProcessorsProcessorVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11888	c.name = name
11889	return c
11890}
11891
11892// Fields allows partial responses to be retrieved. See
11893// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11894// for more information.
11895func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
11896	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11897	return c
11898}
11899
11900// Context sets the context to be used in this call's Do method. Any
11901// pending HTTP request will be aborted if the provided context is
11902// canceled.
11903func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
11904	c.ctx_ = ctx
11905	return c
11906}
11907
11908// Header returns an http.Header that can be modified by the caller to
11909// add HTTP headers to the request.
11910func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Header() http.Header {
11911	if c.header_ == nil {
11912		c.header_ = make(http.Header)
11913	}
11914	return c.header_
11915}
11916
11917func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
11918	reqHeaders := make(http.Header)
11919	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
11920	for k, v := range c.header_ {
11921		reqHeaders[k] = v
11922	}
11923	reqHeaders.Set("User-Agent", c.s.userAgent())
11924	var body io.Reader = nil
11925	c.urlParams_.Set("alt", alt)
11926	c.urlParams_.Set("prettyPrint", "false")
11927	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
11928	urls += "?" + c.urlParams_.Encode()
11929	req, err := http.NewRequest("DELETE", urls, body)
11930	if err != nil {
11931		return nil, err
11932	}
11933	req.Header = reqHeaders
11934	googleapi.Expand(req.URL, map[string]string{
11935		"name": c.name,
11936	})
11937	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11938}
11939
11940// Do executes the "documentai.projects.locations.processors.processorVersions.delete" call.
11941// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11942// Any non-2xx status code is an error. Response headers are in either
11943// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11944// was returned at all) in error.(*googleapi.Error).Header. Use
11945// googleapi.IsNotModified to check whether the returned error was
11946// because http.StatusNotModified was returned.
11947func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11948	gensupport.SetOptions(c.urlParams_, opts...)
11949	res, err := c.doRequest("json")
11950	if res != nil && res.StatusCode == http.StatusNotModified {
11951		if res.Body != nil {
11952			res.Body.Close()
11953		}
11954		return nil, &googleapi.Error{
11955			Code:   res.StatusCode,
11956			Header: res.Header,
11957		}
11958	}
11959	if err != nil {
11960		return nil, err
11961	}
11962	defer googleapi.CloseBody(res)
11963	if err := googleapi.CheckResponse(res); err != nil {
11964		return nil, err
11965	}
11966	ret := &GoogleLongrunningOperation{
11967		ServerResponse: googleapi.ServerResponse{
11968			Header:         res.Header,
11969			HTTPStatusCode: res.StatusCode,
11970		},
11971	}
11972	target := &ret
11973	if err := gensupport.DecodeResponse(target, res); err != nil {
11974		return nil, err
11975	}
11976	return ret, nil
11977	// {
11978	//   "description": "Deletes the processor version, all artifacts under the processor version will be deleted.",
11979	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}",
11980	//   "httpMethod": "DELETE",
11981	//   "id": "documentai.projects.locations.processors.processorVersions.delete",
11982	//   "parameterOrder": [
11983	//     "name"
11984	//   ],
11985	//   "parameters": {
11986	//     "name": {
11987	//       "description": "Required. The processor version resource name to be deleted.",
11988	//       "location": "path",
11989	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
11990	//       "required": true,
11991	//       "type": "string"
11992	//     }
11993	//   },
11994	//   "path": "v1beta3/{+name}",
11995	//   "response": {
11996	//     "$ref": "GoogleLongrunningOperation"
11997	//   },
11998	//   "scopes": [
11999	//     "https://www.googleapis.com/auth/cloud-platform"
12000	//   ]
12001	// }
12002
12003}
12004
12005// method id "documentai.projects.locations.processors.processorVersions.deploy":
12006
12007type ProjectsLocationsProcessorsProcessorVersionsDeployCall struct {
12008	s                                                         *Service
12009	name                                                      string
12010	googleclouddocumentaiv1beta3deployprocessorversionrequest *GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest
12011	urlParams_                                                gensupport.URLParams
12012	ctx_                                                      context.Context
12013	header_                                                   http.Header
12014}
12015
12016// Deploy: Deploys the processor version.
12017//
12018// - name: The processor version resource name to be deployed.
12019func (r *ProjectsLocationsProcessorsProcessorVersionsService) Deploy(name string, googleclouddocumentaiv1beta3deployprocessorversionrequest *GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
12020	c := &ProjectsLocationsProcessorsProcessorVersionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12021	c.name = name
12022	c.googleclouddocumentaiv1beta3deployprocessorversionrequest = googleclouddocumentaiv1beta3deployprocessorversionrequest
12023	return c
12024}
12025
12026// Fields allows partial responses to be retrieved. See
12027// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12028// for more information.
12029func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
12030	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12031	return c
12032}
12033
12034// Context sets the context to be used in this call's Do method. Any
12035// pending HTTP request will be aborted if the provided context is
12036// canceled.
12037func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
12038	c.ctx_ = ctx
12039	return c
12040}
12041
12042// Header returns an http.Header that can be modified by the caller to
12043// add HTTP headers to the request.
12044func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Header() http.Header {
12045	if c.header_ == nil {
12046		c.header_ = make(http.Header)
12047	}
12048	return c.header_
12049}
12050
12051func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) doRequest(alt string) (*http.Response, error) {
12052	reqHeaders := make(http.Header)
12053	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12054	for k, v := range c.header_ {
12055		reqHeaders[k] = v
12056	}
12057	reqHeaders.Set("User-Agent", c.s.userAgent())
12058	var body io.Reader = nil
12059	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3deployprocessorversionrequest)
12060	if err != nil {
12061		return nil, err
12062	}
12063	reqHeaders.Set("Content-Type", "application/json")
12064	c.urlParams_.Set("alt", alt)
12065	c.urlParams_.Set("prettyPrint", "false")
12066	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:deploy")
12067	urls += "?" + c.urlParams_.Encode()
12068	req, err := http.NewRequest("POST", urls, body)
12069	if err != nil {
12070		return nil, err
12071	}
12072	req.Header = reqHeaders
12073	googleapi.Expand(req.URL, map[string]string{
12074		"name": c.name,
12075	})
12076	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12077}
12078
12079// Do executes the "documentai.projects.locations.processors.processorVersions.deploy" call.
12080// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
12081// Any non-2xx status code is an error. Response headers are in either
12082// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
12083// was returned at all) in error.(*googleapi.Error).Header. Use
12084// googleapi.IsNotModified to check whether the returned error was
12085// because http.StatusNotModified was returned.
12086func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12087	gensupport.SetOptions(c.urlParams_, opts...)
12088	res, err := c.doRequest("json")
12089	if res != nil && res.StatusCode == http.StatusNotModified {
12090		if res.Body != nil {
12091			res.Body.Close()
12092		}
12093		return nil, &googleapi.Error{
12094			Code:   res.StatusCode,
12095			Header: res.Header,
12096		}
12097	}
12098	if err != nil {
12099		return nil, err
12100	}
12101	defer googleapi.CloseBody(res)
12102	if err := googleapi.CheckResponse(res); err != nil {
12103		return nil, err
12104	}
12105	ret := &GoogleLongrunningOperation{
12106		ServerResponse: googleapi.ServerResponse{
12107			Header:         res.Header,
12108			HTTPStatusCode: res.StatusCode,
12109		},
12110	}
12111	target := &ret
12112	if err := gensupport.DecodeResponse(target, res); err != nil {
12113		return nil, err
12114	}
12115	return ret, nil
12116	// {
12117	//   "description": "Deploys the processor version.",
12118	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:deploy",
12119	//   "httpMethod": "POST",
12120	//   "id": "documentai.projects.locations.processors.processorVersions.deploy",
12121	//   "parameterOrder": [
12122	//     "name"
12123	//   ],
12124	//   "parameters": {
12125	//     "name": {
12126	//       "description": "Required. The processor version resource name to be deployed.",
12127	//       "location": "path",
12128	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12129	//       "required": true,
12130	//       "type": "string"
12131	//     }
12132	//   },
12133	//   "path": "v1beta3/{+name}:deploy",
12134	//   "request": {
12135	//     "$ref": "GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest"
12136	//   },
12137	//   "response": {
12138	//     "$ref": "GoogleLongrunningOperation"
12139	//   },
12140	//   "scopes": [
12141	//     "https://www.googleapis.com/auth/cloud-platform"
12142	//   ]
12143	// }
12144
12145}
12146
12147// method id "documentai.projects.locations.processors.processorVersions.get":
12148
12149type ProjectsLocationsProcessorsProcessorVersionsGetCall struct {
12150	s            *Service
12151	name         string
12152	urlParams_   gensupport.URLParams
12153	ifNoneMatch_ string
12154	ctx_         context.Context
12155	header_      http.Header
12156}
12157
12158// Get: Gets a processor version detail.
12159//
12160// - name: The processor resource name.
12161func (r *ProjectsLocationsProcessorsProcessorVersionsService) Get(name string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12162	c := &ProjectsLocationsProcessorsProcessorVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12163	c.name = name
12164	return c
12165}
12166
12167// Fields allows partial responses to be retrieved. See
12168// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12169// for more information.
12170func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12171	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12172	return c
12173}
12174
12175// IfNoneMatch sets the optional parameter which makes the operation
12176// fail if the object's ETag matches the given value. This is useful for
12177// getting updates only after the object has changed since the last
12178// request. Use googleapi.IsNotModified to check whether the response
12179// error from Do is the result of In-None-Match.
12180func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12181	c.ifNoneMatch_ = entityTag
12182	return c
12183}
12184
12185// Context sets the context to be used in this call's Do method. Any
12186// pending HTTP request will be aborted if the provided context is
12187// canceled.
12188func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
12189	c.ctx_ = ctx
12190	return c
12191}
12192
12193// Header returns an http.Header that can be modified by the caller to
12194// add HTTP headers to the request.
12195func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Header() http.Header {
12196	if c.header_ == nil {
12197		c.header_ = make(http.Header)
12198	}
12199	return c.header_
12200}
12201
12202func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) doRequest(alt string) (*http.Response, error) {
12203	reqHeaders := make(http.Header)
12204	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12205	for k, v := range c.header_ {
12206		reqHeaders[k] = v
12207	}
12208	reqHeaders.Set("User-Agent", c.s.userAgent())
12209	if c.ifNoneMatch_ != "" {
12210		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12211	}
12212	var body io.Reader = nil
12213	c.urlParams_.Set("alt", alt)
12214	c.urlParams_.Set("prettyPrint", "false")
12215	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
12216	urls += "?" + c.urlParams_.Encode()
12217	req, err := http.NewRequest("GET", urls, body)
12218	if err != nil {
12219		return nil, err
12220	}
12221	req.Header = reqHeaders
12222	googleapi.Expand(req.URL, map[string]string{
12223		"name": c.name,
12224	})
12225	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12226}
12227
12228// Do executes the "documentai.projects.locations.processors.processorVersions.get" call.
12229// Exactly one of *GoogleCloudDocumentaiV1beta3ProcessorVersion or error
12230// will be non-nil. Any non-2xx status code is an error. Response
12231// headers are in either
12232// *GoogleCloudDocumentaiV1beta3ProcessorVersion.ServerResponse.Header
12233// or (if a response was returned at all) in
12234// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12235// whether the returned error was because http.StatusNotModified was
12236// returned.
12237func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessorVersion, error) {
12238	gensupport.SetOptions(c.urlParams_, opts...)
12239	res, err := c.doRequest("json")
12240	if res != nil && res.StatusCode == http.StatusNotModified {
12241		if res.Body != nil {
12242			res.Body.Close()
12243		}
12244		return nil, &googleapi.Error{
12245			Code:   res.StatusCode,
12246			Header: res.Header,
12247		}
12248	}
12249	if err != nil {
12250		return nil, err
12251	}
12252	defer googleapi.CloseBody(res)
12253	if err := googleapi.CheckResponse(res); err != nil {
12254		return nil, err
12255	}
12256	ret := &GoogleCloudDocumentaiV1beta3ProcessorVersion{
12257		ServerResponse: googleapi.ServerResponse{
12258			Header:         res.Header,
12259			HTTPStatusCode: res.StatusCode,
12260		},
12261	}
12262	target := &ret
12263	if err := gensupport.DecodeResponse(target, res); err != nil {
12264		return nil, err
12265	}
12266	return ret, nil
12267	// {
12268	//   "description": "Gets a processor version detail.",
12269	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}",
12270	//   "httpMethod": "GET",
12271	//   "id": "documentai.projects.locations.processors.processorVersions.get",
12272	//   "parameterOrder": [
12273	//     "name"
12274	//   ],
12275	//   "parameters": {
12276	//     "name": {
12277	//       "description": "Required. The processor resource name.",
12278	//       "location": "path",
12279	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12280	//       "required": true,
12281	//       "type": "string"
12282	//     }
12283	//   },
12284	//   "path": "v1beta3/{+name}",
12285	//   "response": {
12286	//     "$ref": "GoogleCloudDocumentaiV1beta3ProcessorVersion"
12287	//   },
12288	//   "scopes": [
12289	//     "https://www.googleapis.com/auth/cloud-platform"
12290	//   ]
12291	// }
12292
12293}
12294
12295// method id "documentai.projects.locations.processors.processorVersions.list":
12296
12297type ProjectsLocationsProcessorsProcessorVersionsListCall struct {
12298	s            *Service
12299	parent       string
12300	urlParams_   gensupport.URLParams
12301	ifNoneMatch_ string
12302	ctx_         context.Context
12303	header_      http.Header
12304}
12305
12306// List: Lists all versions of a processor.
12307//
12308// - parent: The parent (project, location and processor) to list all
12309//   versions. Format:
12310//   projects/{project}/locations/{location}/processors/{processor}.
12311func (r *ProjectsLocationsProcessorsProcessorVersionsService) List(parent string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12312	c := &ProjectsLocationsProcessorsProcessorVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12313	c.parent = parent
12314	return c
12315}
12316
12317// PageSize sets the optional parameter "pageSize": The maximum number
12318// of processor versions to return. If unspecified, at most 10 processor
12319// versions will be returned. The maximum value is 20; values above 20
12320// will be coerced to 20.
12321func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12322	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12323	return c
12324}
12325
12326// PageToken sets the optional parameter "pageToken": We will return the
12327// processor versions sorted by creation time. The page token will point
12328// to the next processor version.
12329func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12330	c.urlParams_.Set("pageToken", pageToken)
12331	return c
12332}
12333
12334// Fields allows partial responses to be retrieved. See
12335// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12336// for more information.
12337func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12338	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12339	return c
12340}
12341
12342// IfNoneMatch sets the optional parameter which makes the operation
12343// fail if the object's ETag matches the given value. This is useful for
12344// getting updates only after the object has changed since the last
12345// request. Use googleapi.IsNotModified to check whether the response
12346// error from Do is the result of In-None-Match.
12347func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12348	c.ifNoneMatch_ = entityTag
12349	return c
12350}
12351
12352// Context sets the context to be used in this call's Do method. Any
12353// pending HTTP request will be aborted if the provided context is
12354// canceled.
12355func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsListCall {
12356	c.ctx_ = ctx
12357	return c
12358}
12359
12360// Header returns an http.Header that can be modified by the caller to
12361// add HTTP headers to the request.
12362func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Header() http.Header {
12363	if c.header_ == nil {
12364		c.header_ = make(http.Header)
12365	}
12366	return c.header_
12367}
12368
12369func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) doRequest(alt string) (*http.Response, error) {
12370	reqHeaders := make(http.Header)
12371	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12372	for k, v := range c.header_ {
12373		reqHeaders[k] = v
12374	}
12375	reqHeaders.Set("User-Agent", c.s.userAgent())
12376	if c.ifNoneMatch_ != "" {
12377		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12378	}
12379	var body io.Reader = nil
12380	c.urlParams_.Set("alt", alt)
12381	c.urlParams_.Set("prettyPrint", "false")
12382	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions")
12383	urls += "?" + c.urlParams_.Encode()
12384	req, err := http.NewRequest("GET", urls, body)
12385	if err != nil {
12386		return nil, err
12387	}
12388	req.Header = reqHeaders
12389	googleapi.Expand(req.URL, map[string]string{
12390		"parent": c.parent,
12391	})
12392	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12393}
12394
12395// Do executes the "documentai.projects.locations.processors.processorVersions.list" call.
12396// Exactly one of
12397// *GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse or error
12398// will be non-nil. Any non-2xx status code is an error. Response
12399// headers are in either
12400// *GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse.ServerRespo
12401// nse.Header or (if a response was returned at all) in
12402// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12403// whether the returned error was because http.StatusNotModified was
12404// returned.
12405func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse, error) {
12406	gensupport.SetOptions(c.urlParams_, opts...)
12407	res, err := c.doRequest("json")
12408	if res != nil && res.StatusCode == http.StatusNotModified {
12409		if res.Body != nil {
12410			res.Body.Close()
12411		}
12412		return nil, &googleapi.Error{
12413			Code:   res.StatusCode,
12414			Header: res.Header,
12415		}
12416	}
12417	if err != nil {
12418		return nil, err
12419	}
12420	defer googleapi.CloseBody(res)
12421	if err := googleapi.CheckResponse(res); err != nil {
12422		return nil, err
12423	}
12424	ret := &GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse{
12425		ServerResponse: googleapi.ServerResponse{
12426			Header:         res.Header,
12427			HTTPStatusCode: res.StatusCode,
12428		},
12429	}
12430	target := &ret
12431	if err := gensupport.DecodeResponse(target, res); err != nil {
12432		return nil, err
12433	}
12434	return ret, nil
12435	// {
12436	//   "description": "Lists all versions of a processor.",
12437	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions",
12438	//   "httpMethod": "GET",
12439	//   "id": "documentai.projects.locations.processors.processorVersions.list",
12440	//   "parameterOrder": [
12441	//     "parent"
12442	//   ],
12443	//   "parameters": {
12444	//     "pageSize": {
12445	//       "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.",
12446	//       "format": "int32",
12447	//       "location": "query",
12448	//       "type": "integer"
12449	//     },
12450	//     "pageToken": {
12451	//       "description": "We will return the processor versions sorted by creation time. The page token will point to the next processor version.",
12452	//       "location": "query",
12453	//       "type": "string"
12454	//     },
12455	//     "parent": {
12456	//       "description": "Required. The parent (project, location and processor) to list all versions. Format: projects/{project}/locations/{location}/processors/{processor}",
12457	//       "location": "path",
12458	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+$",
12459	//       "required": true,
12460	//       "type": "string"
12461	//     }
12462	//   },
12463	//   "path": "v1beta3/{+parent}/processorVersions",
12464	//   "response": {
12465	//     "$ref": "GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse"
12466	//   },
12467	//   "scopes": [
12468	//     "https://www.googleapis.com/auth/cloud-platform"
12469	//   ]
12470	// }
12471
12472}
12473
12474// Pages invokes f for each page of results.
12475// A non-nil error returned from f will halt the iteration.
12476// The provided context supersedes any context provided to the Context method.
12477func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse) error) error {
12478	c.ctx_ = ctx
12479	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
12480	for {
12481		x, err := c.Do()
12482		if err != nil {
12483			return err
12484		}
12485		if err := f(x); err != nil {
12486			return err
12487		}
12488		if x.NextPageToken == "" {
12489			return nil
12490		}
12491		c.PageToken(x.NextPageToken)
12492	}
12493}
12494
12495// method id "documentai.projects.locations.processors.processorVersions.process":
12496
12497type ProjectsLocationsProcessorsProcessorVersionsProcessCall struct {
12498	s                                          *Service
12499	name                                       string
12500	googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest
12501	urlParams_                                 gensupport.URLParams
12502	ctx_                                       context.Context
12503	header_                                    http.Header
12504}
12505
12506// Process: Processes a single document.
12507//
12508// - name: The resource name of the Processor or ProcessorVersion to use
12509//   for processing. If a Processor is specified, the server will use
12510//   its default version. Format:
12511//   projects/{project}/locations/{location}/processors/{processor}, or
12512//   projects/{project}/locations/{location}/processors/{processor}/proce
12513//   ssorVersions/{processorVersion}.
12514func (r *ProjectsLocationsProcessorsProcessorVersionsService) Process(name string, googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
12515	c := &ProjectsLocationsProcessorsProcessorVersionsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12516	c.name = name
12517	c.googleclouddocumentaiv1beta3processrequest = googleclouddocumentaiv1beta3processrequest
12518	return c
12519}
12520
12521// Fields allows partial responses to be retrieved. See
12522// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12523// for more information.
12524func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
12525	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12526	return c
12527}
12528
12529// Context sets the context to be used in this call's Do method. Any
12530// pending HTTP request will be aborted if the provided context is
12531// canceled.
12532func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
12533	c.ctx_ = ctx
12534	return c
12535}
12536
12537// Header returns an http.Header that can be modified by the caller to
12538// add HTTP headers to the request.
12539func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Header() http.Header {
12540	if c.header_ == nil {
12541		c.header_ = make(http.Header)
12542	}
12543	return c.header_
12544}
12545
12546func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) doRequest(alt string) (*http.Response, error) {
12547	reqHeaders := make(http.Header)
12548	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12549	for k, v := range c.header_ {
12550		reqHeaders[k] = v
12551	}
12552	reqHeaders.Set("User-Agent", c.s.userAgent())
12553	var body io.Reader = nil
12554	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processrequest)
12555	if err != nil {
12556		return nil, err
12557	}
12558	reqHeaders.Set("Content-Type", "application/json")
12559	c.urlParams_.Set("alt", alt)
12560	c.urlParams_.Set("prettyPrint", "false")
12561	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:process")
12562	urls += "?" + c.urlParams_.Encode()
12563	req, err := http.NewRequest("POST", urls, body)
12564	if err != nil {
12565		return nil, err
12566	}
12567	req.Header = reqHeaders
12568	googleapi.Expand(req.URL, map[string]string{
12569		"name": c.name,
12570	})
12571	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12572}
12573
12574// Do executes the "documentai.projects.locations.processors.processorVersions.process" call.
12575// Exactly one of *GoogleCloudDocumentaiV1beta3ProcessResponse or error
12576// will be non-nil. Any non-2xx status code is an error. Response
12577// headers are in either
12578// *GoogleCloudDocumentaiV1beta3ProcessResponse.ServerResponse.Header or
12579// (if a response was returned at all) in
12580// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12581// whether the returned error was because http.StatusNotModified was
12582// returned.
12583func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessResponse, error) {
12584	gensupport.SetOptions(c.urlParams_, opts...)
12585	res, err := c.doRequest("json")
12586	if res != nil && res.StatusCode == http.StatusNotModified {
12587		if res.Body != nil {
12588			res.Body.Close()
12589		}
12590		return nil, &googleapi.Error{
12591			Code:   res.StatusCode,
12592			Header: res.Header,
12593		}
12594	}
12595	if err != nil {
12596		return nil, err
12597	}
12598	defer googleapi.CloseBody(res)
12599	if err := googleapi.CheckResponse(res); err != nil {
12600		return nil, err
12601	}
12602	ret := &GoogleCloudDocumentaiV1beta3ProcessResponse{
12603		ServerResponse: googleapi.ServerResponse{
12604			Header:         res.Header,
12605			HTTPStatusCode: res.StatusCode,
12606		},
12607	}
12608	target := &ret
12609	if err := gensupport.DecodeResponse(target, res); err != nil {
12610		return nil, err
12611	}
12612	return ret, nil
12613	// {
12614	//   "description": "Processes a single document.",
12615	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:process",
12616	//   "httpMethod": "POST",
12617	//   "id": "documentai.projects.locations.processors.processorVersions.process",
12618	//   "parameterOrder": [
12619	//     "name"
12620	//   ],
12621	//   "parameters": {
12622	//     "name": {
12623	//       "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}",
12624	//       "location": "path",
12625	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12626	//       "required": true,
12627	//       "type": "string"
12628	//     }
12629	//   },
12630	//   "path": "v1beta3/{+name}:process",
12631	//   "request": {
12632	//     "$ref": "GoogleCloudDocumentaiV1beta3ProcessRequest"
12633	//   },
12634	//   "response": {
12635	//     "$ref": "GoogleCloudDocumentaiV1beta3ProcessResponse"
12636	//   },
12637	//   "scopes": [
12638	//     "https://www.googleapis.com/auth/cloud-platform"
12639	//   ]
12640	// }
12641
12642}
12643
12644// method id "documentai.projects.locations.processors.processorVersions.undeploy":
12645
12646type ProjectsLocationsProcessorsProcessorVersionsUndeployCall struct {
12647	s                                                           *Service
12648	name                                                        string
12649	googleclouddocumentaiv1beta3undeployprocessorversionrequest *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest
12650	urlParams_                                                  gensupport.URLParams
12651	ctx_                                                        context.Context
12652	header_                                                     http.Header
12653}
12654
12655// Undeploy: Undeploys the processor version.
12656//
12657// - name: The processor version resource name to be undeployed.
12658func (r *ProjectsLocationsProcessorsProcessorVersionsService) Undeploy(name string, googleclouddocumentaiv1beta3undeployprocessorversionrequest *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
12659	c := &ProjectsLocationsProcessorsProcessorVersionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12660	c.name = name
12661	c.googleclouddocumentaiv1beta3undeployprocessorversionrequest = googleclouddocumentaiv1beta3undeployprocessorversionrequest
12662	return c
12663}
12664
12665// Fields allows partial responses to be retrieved. See
12666// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12667// for more information.
12668func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
12669	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12670	return c
12671}
12672
12673// Context sets the context to be used in this call's Do method. Any
12674// pending HTTP request will be aborted if the provided context is
12675// canceled.
12676func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
12677	c.ctx_ = ctx
12678	return c
12679}
12680
12681// Header returns an http.Header that can be modified by the caller to
12682// add HTTP headers to the request.
12683func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Header() http.Header {
12684	if c.header_ == nil {
12685		c.header_ = make(http.Header)
12686	}
12687	return c.header_
12688}
12689
12690func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) doRequest(alt string) (*http.Response, error) {
12691	reqHeaders := make(http.Header)
12692	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
12693	for k, v := range c.header_ {
12694		reqHeaders[k] = v
12695	}
12696	reqHeaders.Set("User-Agent", c.s.userAgent())
12697	var body io.Reader = nil
12698	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3undeployprocessorversionrequest)
12699	if err != nil {
12700		return nil, err
12701	}
12702	reqHeaders.Set("Content-Type", "application/json")
12703	c.urlParams_.Set("alt", alt)
12704	c.urlParams_.Set("prettyPrint", "false")
12705	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:undeploy")
12706	urls += "?" + c.urlParams_.Encode()
12707	req, err := http.NewRequest("POST", urls, body)
12708	if err != nil {
12709		return nil, err
12710	}
12711	req.Header = reqHeaders
12712	googleapi.Expand(req.URL, map[string]string{
12713		"name": c.name,
12714	})
12715	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12716}
12717
12718// Do executes the "documentai.projects.locations.processors.processorVersions.undeploy" call.
12719// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
12720// Any non-2xx status code is an error. Response headers are in either
12721// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
12722// was returned at all) in error.(*googleapi.Error).Header. Use
12723// googleapi.IsNotModified to check whether the returned error was
12724// because http.StatusNotModified was returned.
12725func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12726	gensupport.SetOptions(c.urlParams_, opts...)
12727	res, err := c.doRequest("json")
12728	if res != nil && res.StatusCode == http.StatusNotModified {
12729		if res.Body != nil {
12730			res.Body.Close()
12731		}
12732		return nil, &googleapi.Error{
12733			Code:   res.StatusCode,
12734			Header: res.Header,
12735		}
12736	}
12737	if err != nil {
12738		return nil, err
12739	}
12740	defer googleapi.CloseBody(res)
12741	if err := googleapi.CheckResponse(res); err != nil {
12742		return nil, err
12743	}
12744	ret := &GoogleLongrunningOperation{
12745		ServerResponse: googleapi.ServerResponse{
12746			Header:         res.Header,
12747			HTTPStatusCode: res.StatusCode,
12748		},
12749	}
12750	target := &ret
12751	if err := gensupport.DecodeResponse(target, res); err != nil {
12752		return nil, err
12753	}
12754	return ret, nil
12755	// {
12756	//   "description": "Undeploys the processor version.",
12757	//   "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:undeploy",
12758	//   "httpMethod": "POST",
12759	//   "id": "documentai.projects.locations.processors.processorVersions.undeploy",
12760	//   "parameterOrder": [
12761	//     "name"
12762	//   ],
12763	//   "parameters": {
12764	//     "name": {
12765	//       "description": "Required. The processor version resource name to be undeployed.",
12766	//       "location": "path",
12767	//       "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/processorVersions/[^/]+$",
12768	//       "required": true,
12769	//       "type": "string"
12770	//     }
12771	//   },
12772	//   "path": "v1beta3/{+name}:undeploy",
12773	//   "request": {
12774	//     "$ref": "GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest"
12775	//   },
12776	//   "response": {
12777	//     "$ref": "GoogleLongrunningOperation"
12778	//   },
12779	//   "scopes": [
12780	//     "https://www.googleapis.com/auth/cloud-platform"
12781	//   ]
12782	// }
12783
12784}
12785