...

Source file src/google.golang.org/api/documentai/v1beta3/documentai-gen.go

Documentation: google.golang.org/api/documentai/v1beta3

     1  // Copyright 2024 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  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/documentai/v1beta3"
    27  //	...
    28  //	ctx := context.Background()
    29  //	documentaiService, err := documentai.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	documentaiService, err := documentai.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	documentaiService, err := documentai.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package documentai // import "google.golang.org/api/documentai/v1beta3"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "documentai:v1beta3"
    90  const apiName = "documentai"
    91  const apiVersion = "v1beta3"
    92  const basePath = "https://documentai.googleapis.com/"
    93  const basePathTemplate = "https://documentai.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://documentai.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Projects = NewProjectsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Projects *ProjectsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.Locations = NewProjectsLocationsService(s)
   160  	return rs
   161  }
   162  
   163  type ProjectsService struct {
   164  	s *Service
   165  
   166  	Locations *ProjectsLocationsService
   167  }
   168  
   169  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   170  	rs := &ProjectsLocationsService{s: s}
   171  	rs.Operations = NewProjectsLocationsOperationsService(s)
   172  	rs.ProcessorTypes = NewProjectsLocationsProcessorTypesService(s)
   173  	rs.Processors = NewProjectsLocationsProcessorsService(s)
   174  	return rs
   175  }
   176  
   177  type ProjectsLocationsService struct {
   178  	s *Service
   179  
   180  	Operations *ProjectsLocationsOperationsService
   181  
   182  	ProcessorTypes *ProjectsLocationsProcessorTypesService
   183  
   184  	Processors *ProjectsLocationsProcessorsService
   185  }
   186  
   187  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   188  	rs := &ProjectsLocationsOperationsService{s: s}
   189  	return rs
   190  }
   191  
   192  type ProjectsLocationsOperationsService struct {
   193  	s *Service
   194  }
   195  
   196  func NewProjectsLocationsProcessorTypesService(s *Service) *ProjectsLocationsProcessorTypesService {
   197  	rs := &ProjectsLocationsProcessorTypesService{s: s}
   198  	return rs
   199  }
   200  
   201  type ProjectsLocationsProcessorTypesService struct {
   202  	s *Service
   203  }
   204  
   205  func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService {
   206  	rs := &ProjectsLocationsProcessorsService{s: s}
   207  	rs.Dataset = NewProjectsLocationsProcessorsDatasetService(s)
   208  	rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s)
   209  	rs.ProcessorVersions = NewProjectsLocationsProcessorsProcessorVersionsService(s)
   210  	return rs
   211  }
   212  
   213  type ProjectsLocationsProcessorsService struct {
   214  	s *Service
   215  
   216  	Dataset *ProjectsLocationsProcessorsDatasetService
   217  
   218  	HumanReviewConfig *ProjectsLocationsProcessorsHumanReviewConfigService
   219  
   220  	ProcessorVersions *ProjectsLocationsProcessorsProcessorVersionsService
   221  }
   222  
   223  func NewProjectsLocationsProcessorsDatasetService(s *Service) *ProjectsLocationsProcessorsDatasetService {
   224  	rs := &ProjectsLocationsProcessorsDatasetService{s: s}
   225  	return rs
   226  }
   227  
   228  type ProjectsLocationsProcessorsDatasetService struct {
   229  	s *Service
   230  }
   231  
   232  func NewProjectsLocationsProcessorsHumanReviewConfigService(s *Service) *ProjectsLocationsProcessorsHumanReviewConfigService {
   233  	rs := &ProjectsLocationsProcessorsHumanReviewConfigService{s: s}
   234  	return rs
   235  }
   236  
   237  type ProjectsLocationsProcessorsHumanReviewConfigService struct {
   238  	s *Service
   239  }
   240  
   241  func NewProjectsLocationsProcessorsProcessorVersionsService(s *Service) *ProjectsLocationsProcessorsProcessorVersionsService {
   242  	rs := &ProjectsLocationsProcessorsProcessorVersionsService{s: s}
   243  	rs.Evaluations = NewProjectsLocationsProcessorsProcessorVersionsEvaluationsService(s)
   244  	return rs
   245  }
   246  
   247  type ProjectsLocationsProcessorsProcessorVersionsService struct {
   248  	s *Service
   249  
   250  	Evaluations *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService
   251  }
   252  
   253  func NewProjectsLocationsProcessorsProcessorVersionsEvaluationsService(s *Service) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService {
   254  	rs := &ProjectsLocationsProcessorsProcessorVersionsEvaluationsService{s: s}
   255  	return rs
   256  }
   257  
   258  type ProjectsLocationsProcessorsProcessorVersionsEvaluationsService struct {
   259  	s *Service
   260  }
   261  
   262  // GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata: Metadata of the
   263  // auto-labeling documents operation.
   264  type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata struct {
   265  	// CommonMetadata: The basic metadata of the long-running operation.
   266  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   267  	// IndividualAutoLabelStatuses: The list of individual auto-labeling statuses
   268  	// of the dataset documents.
   269  	IndividualAutoLabelStatuses []*GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus `json:"individualAutoLabelStatuses,omitempty"`
   270  	// TotalDocumentCount: Total number of the auto-labeling documents.
   271  	TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
   272  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   273  	// unconditionally include in API requests. By default, fields with empty or
   274  	// default values are omitted from API requests. See
   275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   276  	// details.
   277  	ForceSendFields []string `json:"-"`
   278  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   279  	// API requests with the JSON null value. By default, fields with empty values
   280  	// are omitted from API requests. See
   281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   282  	NullFields []string `json:"-"`
   283  }
   284  
   285  func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata) MarshalJSON() ([]byte, error) {
   286  	type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata
   287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   288  }
   289  
   290  // GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelSt
   291  // atus: The status of individual documents in the auto-labeling process.
   292  type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus struct {
   293  	// DocumentId: The document id of the auto-labeled document. This will replace
   294  	// the gcs_uri.
   295  	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
   296  	// Status: The status of the document auto-labeling.
   297  	Status *GoogleRpcStatus `json:"status,omitempty"`
   298  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
   299  	// unconditionally include in API requests. By default, fields with empty or
   300  	// default values are omitted from API requests. See
   301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   302  	// details.
   303  	ForceSendFields []string `json:"-"`
   304  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
   305  	// requests with the JSON null value. By default, fields with empty values are
   306  	// omitted from API requests. See
   307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   308  	NullFields []string `json:"-"`
   309  }
   310  
   311  func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus) MarshalJSON() ([]byte, error) {
   312  	type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
   313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   314  }
   315  
   316  // GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse: The response proto
   317  // of AutoLabelDocuments method.
   318  type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse struct {
   319  }
   320  
   321  type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct {
   322  	// CommonMetadata: The basic metadata of the long-running operation.
   323  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   324  	// ErrorDocumentCount: Total number of documents that failed to be deleted in
   325  	// storage.
   326  	ErrorDocumentCount int64 `json:"errorDocumentCount,omitempty"`
   327  	// IndividualBatchDeleteStatuses: The list of response details of each
   328  	// document.
   329  	IndividualBatchDeleteStatuses []*GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus `json:"individualBatchDeleteStatuses,omitempty"`
   330  	// TotalDocumentCount: Total number of documents deleting from dataset.
   331  	TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
   332  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   333  	// unconditionally include in API requests. By default, fields with empty or
   334  	// default values are omitted from API requests. See
   335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   336  	// details.
   337  	ForceSendFields []string `json:"-"`
   338  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   339  	// API requests with the JSON null value. By default, fields with empty values
   340  	// are omitted from API requests. See
   341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   342  	NullFields []string `json:"-"`
   343  }
   344  
   345  func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) {
   346  	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
   347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   348  }
   349  
   350  // GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDele
   351  // teStatus: The status of each individual document in the batch delete
   352  // process.
   353  type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus struct {
   354  	// DocumentId: The document id of the document.
   355  	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
   356  	// Status: The status of deleting the document in storage.
   357  	Status *GoogleRpcStatus `json:"status,omitempty"`
   358  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
   359  	// unconditionally include in API requests. By default, fields with empty or
   360  	// default values are omitted from API requests. See
   361  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   362  	// details.
   363  	ForceSendFields []string `json:"-"`
   364  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
   365  	// requests with the JSON null value. By default, fields with empty values are
   366  	// omitted from API requests. See
   367  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   368  	NullFields []string `json:"-"`
   369  }
   370  
   371  func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus) MarshalJSON() ([]byte, error) {
   372  	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
   373  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   374  }
   375  
   376  // GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse: Response of the
   377  // delete documents operation.
   378  type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse struct {
   379  }
   380  
   381  type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata struct {
   382  	// CommonMetadata: The basic metadata of the long-running operation.
   383  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   384  	// DestDatasetType: The destination dataset split type.
   385  	//
   386  	// Possible values:
   387  	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set.
   388  	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
   389  	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
   390  	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
   391  	DestDatasetType string `json:"destDatasetType,omitempty"`
   392  	// DestSplitType: The destination dataset split type.
   393  	//
   394  	// Possible values:
   395  	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set.
   396  	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
   397  	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
   398  	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
   399  	DestSplitType string `json:"destSplitType,omitempty"`
   400  	// IndividualBatchMoveStatuses: The list of response details of each document.
   401  	IndividualBatchMoveStatuses []*GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus `json:"individualBatchMoveStatuses,omitempty"`
   402  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   403  	// unconditionally include in API requests. By default, fields with empty or
   404  	// default values are omitted from API requests. See
   405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   406  	// details.
   407  	ForceSendFields []string `json:"-"`
   408  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   409  	// API requests with the JSON null value. By default, fields with empty values
   410  	// are omitted from API requests. See
   411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   412  	NullFields []string `json:"-"`
   413  }
   414  
   415  func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata) MarshalJSON() ([]byte, error) {
   416  	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata
   417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   418  }
   419  
   420  // GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveSt
   421  // atus: The status of each individual document in the batch move process.
   422  type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus struct {
   423  	// DocumentId: The document id of the document.
   424  	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
   425  	// Status: The status of moving the document.
   426  	Status *GoogleRpcStatus `json:"status,omitempty"`
   427  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
   428  	// unconditionally include in API requests. By default, fields with empty or
   429  	// default values are omitted from API requests. See
   430  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   431  	// details.
   432  	ForceSendFields []string `json:"-"`
   433  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
   434  	// requests with the JSON null value. By default, fields with empty values are
   435  	// omitted from API requests. See
   436  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   437  	NullFields []string `json:"-"`
   438  }
   439  
   440  func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus) MarshalJSON() ([]byte, error) {
   441  	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
   442  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   443  }
   444  
   445  // GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse: Response of the
   446  // batch move documents operation.
   447  type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse struct {
   448  }
   449  
   450  type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata struct {
   451  	// CommonMetadata: The basic metadata of the long-running operation.
   452  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   453  	// IndividualBatchUpdateStatuses: The list of response details of each
   454  	// document.
   455  	IndividualBatchUpdateStatuses []*GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus `json:"individualBatchUpdateStatuses,omitempty"`
   456  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   457  	// unconditionally include in API requests. By default, fields with empty or
   458  	// default values are omitted from API requests. See
   459  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   460  	// details.
   461  	ForceSendFields []string `json:"-"`
   462  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   463  	// API requests with the JSON null value. By default, fields with empty values
   464  	// are omitted from API requests. See
   465  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   466  	NullFields []string `json:"-"`
   467  }
   468  
   469  func (s *GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata) MarshalJSON() ([]byte, error) {
   470  	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata
   471  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   472  }
   473  
   474  // GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpda
   475  // teStatus: The status of each individual document in the batch update
   476  // process.
   477  type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus struct {
   478  	// DocumentId: The document id of the document.
   479  	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
   480  	// Status: The status of updating the document in storage.
   481  	Status *GoogleRpcStatus `json:"status,omitempty"`
   482  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
   483  	// unconditionally include in API requests. By default, fields with empty or
   484  	// default values are omitted from API requests. See
   485  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   486  	// details.
   487  	ForceSendFields []string `json:"-"`
   488  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
   489  	// requests with the JSON null value. By default, fields with empty values are
   490  	// omitted from API requests. See
   491  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   492  	NullFields []string `json:"-"`
   493  }
   494  
   495  func (s *GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus) MarshalJSON() ([]byte, error) {
   496  	type NoMethod GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus
   497  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   498  }
   499  
   500  // GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse: Response of the
   501  // batch update documents operation.
   502  type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse struct {
   503  }
   504  
   505  // GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata: The common metadata
   506  // for long running operations.
   507  type GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata struct {
   508  	// CreateTime: The creation time of the operation.
   509  	CreateTime string `json:"createTime,omitempty"`
   510  	// Resource: A related resource to this operation.
   511  	Resource string `json:"resource,omitempty"`
   512  	// State: The state of the operation.
   513  	//
   514  	// Possible values:
   515  	//   "STATE_UNSPECIFIED" - Unspecified state.
   516  	//   "RUNNING" - Operation is still running.
   517  	//   "CANCELLING" - Operation is being cancelled.
   518  	//   "SUCCEEDED" - Operation succeeded.
   519  	//   "FAILED" - Operation failed.
   520  	//   "CANCELLED" - Operation is cancelled.
   521  	State string `json:"state,omitempty"`
   522  	// StateMessage: A message providing more details about the current state of
   523  	// processing.
   524  	StateMessage string `json:"stateMessage,omitempty"`
   525  	// UpdateTime: The last update time of the operation.
   526  	UpdateTime string `json:"updateTime,omitempty"`
   527  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   528  	// unconditionally include in API requests. By default, fields with empty or
   529  	// default values are omitted from API requests. See
   530  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   531  	// details.
   532  	ForceSendFields []string `json:"-"`
   533  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   534  	// requests with the JSON null value. By default, fields with empty values are
   535  	// omitted from API requests. See
   536  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   537  	NullFields []string `json:"-"`
   538  }
   539  
   540  func (s *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
   541  	type NoMethod GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
   542  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   543  }
   544  
   545  // GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata: The
   546  // long-running operation metadata for the CreateLabelerPool method.
   547  type GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata struct {
   548  	// CommonMetadata: The basic metadata of the long-running operation.
   549  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   550  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   551  	// unconditionally include in API requests. By default, fields with empty or
   552  	// default values are omitted from API requests. See
   553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   554  	// details.
   555  	ForceSendFields []string `json:"-"`
   556  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   557  	// API requests with the JSON null value. By default, fields with empty values
   558  	// are omitted from API requests. See
   559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   560  	NullFields []string `json:"-"`
   561  }
   562  
   563  func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
   564  	type NoMethod GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
   565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   566  }
   567  
   568  // GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The
   569  // long-running operation metadata for DeleteLabelerPool.
   570  type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct {
   571  	// CommonMetadata: The basic metadata of the long-running operation.
   572  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   573  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   574  	// unconditionally include in API requests. By default, fields with empty or
   575  	// default values are omitted from API requests. See
   576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   577  	// details.
   578  	ForceSendFields []string `json:"-"`
   579  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   580  	// API requests with the JSON null value. By default, fields with empty values
   581  	// are omitted from API requests. See
   582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   583  	NullFields []string `json:"-"`
   584  }
   585  
   586  func (s *GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
   587  	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
   588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   589  }
   590  
   591  // GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata: The long-running
   592  // operation metadata for the DeleteProcessor method.
   593  type GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata struct {
   594  	// CommonMetadata: The basic metadata of the long-running operation.
   595  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   596  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   597  	// unconditionally include in API requests. By default, fields with empty or
   598  	// default values are omitted from API requests. See
   599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   600  	// details.
   601  	ForceSendFields []string `json:"-"`
   602  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   603  	// API requests with the JSON null value. By default, fields with empty values
   604  	// are omitted from API requests. See
   605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   606  	NullFields []string `json:"-"`
   607  }
   608  
   609  func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
   610  	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
   611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   612  }
   613  
   614  // GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata: The
   615  // long-running operation metadata for the DeleteProcessorVersion method.
   616  type GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata struct {
   617  	// CommonMetadata: The basic metadata of the long-running operation.
   618  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   619  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   620  	// unconditionally include in API requests. By default, fields with empty or
   621  	// default values are omitted from API requests. See
   622  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   623  	// details.
   624  	ForceSendFields []string `json:"-"`
   625  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   626  	// API requests with the JSON null value. By default, fields with empty values
   627  	// are omitted from API requests. See
   628  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   629  	NullFields []string `json:"-"`
   630  }
   631  
   632  func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
   633  	type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
   634  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   635  }
   636  
   637  // GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata: The
   638  // long-running operation metadata for the DeployProcessorVersion method.
   639  type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata struct {
   640  	// CommonMetadata: The basic metadata of the long-running operation.
   641  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   642  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   643  	// unconditionally include in API requests. By default, fields with empty or
   644  	// default values are omitted from API requests. See
   645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   646  	// details.
   647  	ForceSendFields []string `json:"-"`
   648  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   649  	// API requests with the JSON null value. By default, fields with empty values
   650  	// are omitted from API requests. See
   651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   652  	NullFields []string `json:"-"`
   653  }
   654  
   655  func (s *GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
   656  	type NoMethod GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
   657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   658  }
   659  
   660  // GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse: Response
   661  // message for the DeployProcessorVersion method.
   662  type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse struct {
   663  }
   664  
   665  // GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata: The long-running
   666  // operation metadata for the DisableProcessor method.
   667  type GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata struct {
   668  	// CommonMetadata: The basic metadata of the long-running operation.
   669  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   670  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   671  	// unconditionally include in API requests. By default, fields with empty or
   672  	// default values are omitted from API requests. See
   673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   674  	// details.
   675  	ForceSendFields []string `json:"-"`
   676  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   677  	// API requests with the JSON null value. By default, fields with empty values
   678  	// are omitted from API requests. See
   679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   680  	NullFields []string `json:"-"`
   681  }
   682  
   683  func (s *GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
   684  	type NoMethod GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
   685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   686  }
   687  
   688  // GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse: Response message for
   689  // the DisableProcessor method. Intentionally empty proto for adding fields in
   690  // future.
   691  type GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse struct {
   692  }
   693  
   694  // GoogleCloudDocumentaiUiv1beta3DocumentId: Document Identifier.
   695  type GoogleCloudDocumentaiUiv1beta3DocumentId struct {
   696  	// GcsManagedDocId: A document id within user-managed Cloud Storage.
   697  	GcsManagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"`
   698  	// RevisionRef: Points to a specific revision of the document if set.
   699  	RevisionRef *GoogleCloudDocumentaiUiv1beta3RevisionRef `json:"revisionRef,omitempty"`
   700  	// UnmanagedDocId: A document id within unmanaged dataset.
   701  	UnmanagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId `json:"unmanagedDocId,omitempty"`
   702  	// ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to
   703  	// unconditionally include in API requests. By default, fields with empty or
   704  	// default values are omitted from API requests. See
   705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   706  	// details.
   707  	ForceSendFields []string `json:"-"`
   708  	// NullFields is a list of field names (e.g. "GcsManagedDocId") to include in
   709  	// API requests with the JSON null value. By default, fields with empty values
   710  	// are omitted from API requests. See
   711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   712  	NullFields []string `json:"-"`
   713  }
   714  
   715  func (s *GoogleCloudDocumentaiUiv1beta3DocumentId) MarshalJSON() ([]byte, error) {
   716  	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentId
   717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   718  }
   719  
   720  // GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId: Identifies a
   721  // document uniquely within the scope of a dataset in the user-managed Cloud
   722  // Storage option.
   723  type GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId struct {
   724  	// CwDocId: Id of the document (indexed) managed by Content Warehouse.
   725  	CwDocId string `json:"cwDocId,omitempty"`
   726  	// GcsUri: Required. The Cloud Storage URI where the actual document is stored.
   727  	GcsUri string `json:"gcsUri,omitempty"`
   728  	// ForceSendFields is a list of field names (e.g. "CwDocId") to unconditionally
   729  	// include in API requests. By default, fields with empty or default values are
   730  	// omitted from API requests. See
   731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   732  	// details.
   733  	ForceSendFields []string `json:"-"`
   734  	// NullFields is a list of field names (e.g. "CwDocId") to include in API
   735  	// requests with the JSON null value. By default, fields with empty values are
   736  	// omitted from API requests. See
   737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   738  	NullFields []string `json:"-"`
   739  }
   740  
   741  func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) {
   742  	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId
   743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   744  }
   745  
   746  // GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId: Identifies a
   747  // document uniquely within the scope of a dataset in unmanaged option.
   748  type GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId struct {
   749  	// DocId: Required. The id of the document.
   750  	DocId string `json:"docId,omitempty"`
   751  	// ForceSendFields is a list of field names (e.g. "DocId") to unconditionally
   752  	// include in API requests. By default, fields with empty or default values are
   753  	// omitted from API requests. See
   754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   755  	// details.
   756  	ForceSendFields []string `json:"-"`
   757  	// NullFields is a list of field names (e.g. "DocId") to include in API
   758  	// requests with the JSON null value. By default, fields with empty values are
   759  	// omitted from API requests. See
   760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   761  	NullFields []string `json:"-"`
   762  }
   763  
   764  func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId) MarshalJSON() ([]byte, error) {
   765  	type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId
   766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   767  }
   768  
   769  // GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata: The long-running
   770  // operation metadata for the EnableProcessor method.
   771  type GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata struct {
   772  	// CommonMetadata: The basic metadata of the long-running operation.
   773  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   774  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   775  	// unconditionally include in API requests. By default, fields with empty or
   776  	// default values are omitted from API requests. See
   777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   778  	// details.
   779  	ForceSendFields []string `json:"-"`
   780  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   781  	// API requests with the JSON null value. By default, fields with empty values
   782  	// are omitted from API requests. See
   783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   784  	NullFields []string `json:"-"`
   785  }
   786  
   787  func (s *GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
   788  	type NoMethod GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
   789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   790  }
   791  
   792  // GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse: Response message for
   793  // the EnableProcessor method. Intentionally empty proto for adding fields in
   794  // future.
   795  type GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse struct {
   796  }
   797  
   798  // GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata: Metadata of
   799  // the EvaluateProcessorVersion method.
   800  type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata struct {
   801  	// CommonMetadata: The basic metadata of the long-running operation.
   802  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   803  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   804  	// unconditionally include in API requests. By default, fields with empty or
   805  	// default values are omitted from API requests. See
   806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   807  	// details.
   808  	ForceSendFields []string `json:"-"`
   809  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   810  	// API requests with the JSON null value. By default, fields with empty values
   811  	// are omitted from API requests. See
   812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   813  	NullFields []string `json:"-"`
   814  }
   815  
   816  func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
   817  	type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
   818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   819  }
   820  
   821  // GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse: Response of
   822  // the EvaluateProcessorVersion method.
   823  type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse struct {
   824  	// Evaluation: The resource name of the created evaluation.
   825  	Evaluation string `json:"evaluation,omitempty"`
   826  	// ForceSendFields is a list of field names (e.g. "Evaluation") to
   827  	// unconditionally include in API requests. By default, fields with empty or
   828  	// default values are omitted from API requests. See
   829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   830  	// details.
   831  	ForceSendFields []string `json:"-"`
   832  	// NullFields is a list of field names (e.g. "Evaluation") to include in API
   833  	// requests with the JSON null value. By default, fields with empty values are
   834  	// omitted from API requests. See
   835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   836  	NullFields []string `json:"-"`
   837  }
   838  
   839  func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
   840  	type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
   841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   842  }
   843  
   844  // GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata: Metadata of the batch
   845  // export documents operation.
   846  type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata struct {
   847  	// CommonMetadata: The basic metadata of the long-running operation.
   848  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   849  	// IndividualExportStatuses: The list of response details of each document.
   850  	IndividualExportStatuses []*GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus `json:"individualExportStatuses,omitempty"`
   851  	// SplitExportStats: The list of statistics for each dataset split type.
   852  	SplitExportStats []*GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat `json:"splitExportStats,omitempty"`
   853  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   854  	// unconditionally include in API requests. By default, fields with empty or
   855  	// default values are omitted from API requests. See
   856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   857  	// details.
   858  	ForceSendFields []string `json:"-"`
   859  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   860  	// API requests with the JSON null value. By default, fields with empty values
   861  	// are omitted from API requests. See
   862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   863  	NullFields []string `json:"-"`
   864  }
   865  
   866  func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata) MarshalJSON() ([]byte, error) {
   867  	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata
   868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   869  }
   870  
   871  // GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus:
   872  // The status of each individual document in the export process.
   873  type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus struct {
   874  	// DocumentId: The path to source docproto of the document.
   875  	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
   876  	// OutputGcsDestination: The output_gcs_destination of the exported document if
   877  	// it was successful, otherwise empty.
   878  	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
   879  	// Status: The status of the exporting of the document.
   880  	Status *GoogleRpcStatus `json:"status,omitempty"`
   881  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
   882  	// unconditionally include in API requests. By default, fields with empty or
   883  	// default values are omitted from API requests. See
   884  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   885  	// details.
   886  	ForceSendFields []string `json:"-"`
   887  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
   888  	// requests with the JSON null value. By default, fields with empty values are
   889  	// omitted from API requests. See
   890  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   891  	NullFields []string `json:"-"`
   892  }
   893  
   894  func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus) MarshalJSON() ([]byte, error) {
   895  	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus
   896  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   897  }
   898  
   899  // GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat: The
   900  // statistic representing a dataset split type for this export.
   901  type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat struct {
   902  	// SplitType: The dataset split type.
   903  	//
   904  	// Possible values:
   905  	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set.
   906  	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
   907  	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
   908  	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
   909  	SplitType string `json:"splitType,omitempty"`
   910  	// TotalDocumentCount: Total number of documents with the given dataset split
   911  	// type to be exported.
   912  	TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
   913  	// ForceSendFields is a list of field names (e.g. "SplitType") to
   914  	// unconditionally include in API requests. By default, fields with empty or
   915  	// default values are omitted from API requests. See
   916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   917  	// details.
   918  	ForceSendFields []string `json:"-"`
   919  	// NullFields is a list of field names (e.g. "SplitType") to include in API
   920  	// requests with the JSON null value. By default, fields with empty values are
   921  	// omitted from API requests. See
   922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   923  	NullFields []string `json:"-"`
   924  }
   925  
   926  func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat) MarshalJSON() ([]byte, error) {
   927  	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat
   928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   929  }
   930  
   931  // GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse: The response proto of
   932  // ExportDocuments method.
   933  type GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse struct {
   934  }
   935  
   936  // GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata: Metadata
   937  // message associated with the ExportProcessorVersion operation.
   938  type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata struct {
   939  	// CommonMetadata: The common metadata about the operation.
   940  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   941  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   942  	// unconditionally include in API requests. By default, fields with empty or
   943  	// default values are omitted from API requests. See
   944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   945  	// details.
   946  	ForceSendFields []string `json:"-"`
   947  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
   948  	// API requests with the JSON null value. By default, fields with empty values
   949  	// are omitted from API requests. See
   950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   951  	NullFields []string `json:"-"`
   952  }
   953  
   954  func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
   955  	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
   956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   957  }
   958  
   959  // GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse: Response
   960  // message associated with the ExportProcessorVersion operation.
   961  type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse struct {
   962  	// GcsUri: The Cloud Storage URI containing the output artifacts.
   963  	GcsUri string `json:"gcsUri,omitempty"`
   964  	// ForceSendFields is a list of field names (e.g. "GcsUri") to unconditionally
   965  	// include in API requests. By default, fields with empty or default values are
   966  	// omitted from API requests. See
   967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   968  	// details.
   969  	ForceSendFields []string `json:"-"`
   970  	// NullFields is a list of field names (e.g. "GcsUri") to include in API
   971  	// requests with the JSON null value. By default, fields with empty values are
   972  	// omitted from API requests. See
   973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   974  	NullFields []string `json:"-"`
   975  }
   976  
   977  func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
   978  	type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
   979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   980  }
   981  
   982  // GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata: Metadata of the
   983  // import document operation.
   984  type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata struct {
   985  	// CommonMetadata: The basic metadata of the long-running operation.
   986  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
   987  	// ImportConfigValidationResults: Validation statuses of the batch documents
   988  	// import config.
   989  	ImportConfigValidationResults []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult `json:"importConfigValidationResults,omitempty"`
   990  	// IndividualImportStatuses: The list of response details of each document.
   991  	IndividualImportStatuses []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"`
   992  	// TotalDocumentCount: Total number of the documents that are qualified for
   993  	// importing.
   994  	TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
   995  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
   996  	// unconditionally include in API requests. By default, fields with empty or
   997  	// default values are omitted from API requests. See
   998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   999  	// details.
  1000  	ForceSendFields []string `json:"-"`
  1001  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1002  	// API requests with the JSON null value. By default, fields with empty values
  1003  	// are omitted from API requests. See
  1004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1005  	NullFields []string `json:"-"`
  1006  }
  1007  
  1008  func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  1009  	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata
  1010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1011  }
  1012  
  1013  // GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationRe
  1014  // sult: The validation status of each import config. Status is set to an error
  1015  // if there are no documents to import in the `import_config`, or `OK` if the
  1016  // operation will try to proceed with at least one document.
  1017  type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult struct {
  1018  	// InputGcsSource: The source Cloud Storage URI specified in the import config.
  1019  	InputGcsSource string `json:"inputGcsSource,omitempty"`
  1020  	// Status: The validation status of import config.
  1021  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1022  	// ForceSendFields is a list of field names (e.g. "InputGcsSource") to
  1023  	// unconditionally include in API requests. By default, fields with empty or
  1024  	// default values are omitted from API requests. See
  1025  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1026  	// details.
  1027  	ForceSendFields []string `json:"-"`
  1028  	// NullFields is a list of field names (e.g. "InputGcsSource") to include in
  1029  	// API requests with the JSON null value. By default, fields with empty values
  1030  	// are omitted from API requests. See
  1031  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1032  	NullFields []string `json:"-"`
  1033  }
  1034  
  1035  func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult) MarshalJSON() ([]byte, error) {
  1036  	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult
  1037  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1038  }
  1039  
  1040  // GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus:
  1041  // The status of each individual document in the import process.
  1042  type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus struct {
  1043  	// InputGcsSource: The source Cloud Storage URI of the document.
  1044  	InputGcsSource string `json:"inputGcsSource,omitempty"`
  1045  	// OutputDocumentId: The document id of imported document if it was successful,
  1046  	// otherwise empty.
  1047  	OutputDocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"outputDocumentId,omitempty"`
  1048  	// OutputGcsDestination: The output_gcs_destination of the processed document
  1049  	// if it was successful, otherwise empty.
  1050  	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
  1051  	// Status: The status of the importing of the document.
  1052  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1053  	// ForceSendFields is a list of field names (e.g. "InputGcsSource") to
  1054  	// unconditionally include in API requests. By default, fields with empty or
  1055  	// default values are omitted from API requests. See
  1056  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1057  	// details.
  1058  	ForceSendFields []string `json:"-"`
  1059  	// NullFields is a list of field names (e.g. "InputGcsSource") to include in
  1060  	// API requests with the JSON null value. By default, fields with empty values
  1061  	// are omitted from API requests. See
  1062  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1063  	NullFields []string `json:"-"`
  1064  }
  1065  
  1066  func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) {
  1067  	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
  1068  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1069  }
  1070  
  1071  // GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse: Response of the
  1072  // import document operation.
  1073  type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct {
  1074  }
  1075  
  1076  // GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata: The
  1077  // long-running operation metadata for the ImportProcessorVersion method.
  1078  type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata struct {
  1079  	// CommonMetadata: The basic metadata for the long-running operation.
  1080  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1081  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1082  	// unconditionally include in API requests. By default, fields with empty or
  1083  	// default values are omitted from API requests. See
  1084  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1085  	// details.
  1086  	ForceSendFields []string `json:"-"`
  1087  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1088  	// API requests with the JSON null value. By default, fields with empty values
  1089  	// are omitted from API requests. See
  1090  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1091  	NullFields []string `json:"-"`
  1092  }
  1093  
  1094  func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1095  	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata
  1096  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1097  }
  1098  
  1099  // GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse: The response
  1100  // message for the ImportProcessorVersion method.
  1101  type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse struct {
  1102  	// ProcessorVersion: The destination processor version name.
  1103  	ProcessorVersion string `json:"processorVersion,omitempty"`
  1104  	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
  1105  	// unconditionally include in API requests. By default, fields with empty or
  1106  	// default values are omitted from API requests. See
  1107  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1108  	// details.
  1109  	ForceSendFields []string `json:"-"`
  1110  	// NullFields is a list of field names (e.g. "ProcessorVersion") to include in
  1111  	// API requests with the JSON null value. By default, fields with empty values
  1112  	// are omitted from API requests. See
  1113  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1114  	NullFields []string `json:"-"`
  1115  }
  1116  
  1117  func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
  1118  	type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse
  1119  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1120  }
  1121  
  1122  // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata: The metadata proto of
  1123  // `ResyncDataset` method.
  1124  type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata struct {
  1125  	// CommonMetadata: The basic metadata of the long-running operation.
  1126  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1127  	// DatasetResyncStatuses: The list of dataset resync statuses. Not checked when
  1128  	// ResyncDatasetRequest.dataset_documents is specified.
  1129  	DatasetResyncStatuses []*GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus `json:"datasetResyncStatuses,omitempty"`
  1130  	// IndividualDocumentResyncStatuses: The list of document resync statuses. The
  1131  	// same document could have multiple `individual_document_resync_statuses` if
  1132  	// it has multiple inconsistencies.
  1133  	IndividualDocumentResyncStatuses []*GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus `json:"individualDocumentResyncStatuses,omitempty"`
  1134  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1135  	// unconditionally include in API requests. By default, fields with empty or
  1136  	// default values are omitted from API requests. See
  1137  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1138  	// details.
  1139  	ForceSendFields []string `json:"-"`
  1140  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1141  	// API requests with the JSON null value. By default, fields with empty values
  1142  	// are omitted from API requests. See
  1143  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1144  	NullFields []string `json:"-"`
  1145  }
  1146  
  1147  func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata) MarshalJSON() ([]byte, error) {
  1148  	type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
  1149  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1150  }
  1151  
  1152  // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus:
  1153  // Resync status against inconsistency types on the dataset level.
  1154  type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus struct {
  1155  	// DatasetInconsistencyType: The type of the inconsistency of the dataset.
  1156  	//
  1157  	// Possible values:
  1158  	//   "DATASET_INCONSISTENCY_TYPE_UNSPECIFIED" - Default value.
  1159  	//   "DATASET_INCONSISTENCY_TYPE_NO_STORAGE_MARKER" - The marker file under the
  1160  	// dataset folder is not found.
  1161  	DatasetInconsistencyType string `json:"datasetInconsistencyType,omitempty"`
  1162  	// Status: The status of resyncing the dataset with regards to the detected
  1163  	// inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`.
  1164  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1165  	// ForceSendFields is a list of field names (e.g. "DatasetInconsistencyType")
  1166  	// to unconditionally include in API requests. By default, fields with empty or
  1167  	// default values are omitted from API requests. See
  1168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1169  	// details.
  1170  	ForceSendFields []string `json:"-"`
  1171  	// NullFields is a list of field names (e.g. "DatasetInconsistencyType") to
  1172  	// include in API requests with the JSON null value. By default, fields with
  1173  	// empty values are omitted from API requests. See
  1174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1175  	NullFields []string `json:"-"`
  1176  }
  1177  
  1178  func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus) MarshalJSON() ([]byte, error) {
  1179  	type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus
  1180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1181  }
  1182  
  1183  // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncSt
  1184  // atus: Resync status for each document per inconsistency type.
  1185  type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus struct {
  1186  	// DocumentId: The document identifier.
  1187  	DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"`
  1188  	// DocumentInconsistencyType: The type of document inconsistency.
  1189  	//
  1190  	// Possible values:
  1191  	//   "DOCUMENT_INCONSISTENCY_TYPE_UNSPECIFIED" - Default value.
  1192  	//   "DOCUMENT_INCONSISTENCY_TYPE_INVALID_DOCPROTO" - The document proto is
  1193  	// invalid.
  1194  	//   "DOCUMENT_INCONSISTENCY_TYPE_MISMATCHED_METADATA" - Indexed docproto
  1195  	// metadata is mismatched.
  1196  	//   "DOCUMENT_INCONSISTENCY_TYPE_NO_PAGE_IMAGE" - The page image or thumbnails
  1197  	// are missing.
  1198  	DocumentInconsistencyType string `json:"documentInconsistencyType,omitempty"`
  1199  	// Status: The status of resyncing the document with regards to the detected
  1200  	// inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`.
  1201  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1202  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
  1203  	// unconditionally include in API requests. By default, fields with empty or
  1204  	// default values are omitted from API requests. See
  1205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1206  	// details.
  1207  	ForceSendFields []string `json:"-"`
  1208  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
  1209  	// requests with the JSON null value. By default, fields with empty values are
  1210  	// omitted from API requests. See
  1211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1212  	NullFields []string `json:"-"`
  1213  }
  1214  
  1215  func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus) MarshalJSON() ([]byte, error) {
  1216  	type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus
  1217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1218  }
  1219  
  1220  // GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse: The response proto of
  1221  // ResyncDataset method.
  1222  type GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse struct {
  1223  }
  1224  
  1225  // GoogleCloudDocumentaiUiv1beta3RevisionRef: The revision reference specifies
  1226  // which revision on the document to read.
  1227  type GoogleCloudDocumentaiUiv1beta3RevisionRef struct {
  1228  	// LatestProcessorVersion: Reads the revision generated by the processor
  1229  	// version. The format takes the full resource name of processor version.
  1230  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
  1231  	// ions/{processorVersion}`
  1232  	LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"`
  1233  	// RevisionCase: Reads the revision by the predefined case.
  1234  	//
  1235  	// Possible values:
  1236  	//   "REVISION_CASE_UNSPECIFIED" - Unspecified case, fall back to read the
  1237  	// `LATEST_HUMAN_REVIEW`.
  1238  	//   "LATEST_HUMAN_REVIEW" - The latest revision made by a human.
  1239  	//   "LATEST_TIMESTAMP" - The latest revision based on timestamp.
  1240  	//   "BASE_OCR_REVISION" - The first (OCR) revision.
  1241  	RevisionCase string `json:"revisionCase,omitempty"`
  1242  	// RevisionId: Reads the revision given by the id.
  1243  	RevisionId string `json:"revisionId,omitempty"`
  1244  	// ForceSendFields is a list of field names (e.g. "LatestProcessorVersion") to
  1245  	// unconditionally include in API requests. By default, fields with empty or
  1246  	// default values are omitted from API requests. See
  1247  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1248  	// details.
  1249  	ForceSendFields []string `json:"-"`
  1250  	// NullFields is a list of field names (e.g. "LatestProcessorVersion") to
  1251  	// include in API requests with the JSON null value. By default, fields with
  1252  	// empty values are omitted from API requests. See
  1253  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1254  	NullFields []string `json:"-"`
  1255  }
  1256  
  1257  func (s *GoogleCloudDocumentaiUiv1beta3RevisionRef) MarshalJSON() ([]byte, error) {
  1258  	type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionRef
  1259  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1260  }
  1261  
  1262  // GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata: Metadata of the
  1263  // sample documents operation.
  1264  type GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata struct {
  1265  	// CommonMetadata: The basic metadata of the long-running operation.
  1266  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1267  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1268  	// unconditionally include in API requests. By default, fields with empty or
  1269  	// default values are omitted from API requests. See
  1270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1271  	// details.
  1272  	ForceSendFields []string `json:"-"`
  1273  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1274  	// API requests with the JSON null value. By default, fields with empty values
  1275  	// are omitted from API requests. See
  1276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1277  	NullFields []string `json:"-"`
  1278  }
  1279  
  1280  func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata) MarshalJSON() ([]byte, error) {
  1281  	type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata
  1282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1283  }
  1284  
  1285  // GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse: Response of the
  1286  // sample documents operation.
  1287  type GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse struct {
  1288  	// SampleTestStatus: The status of sampling documents in test split.
  1289  	SampleTestStatus *GoogleRpcStatus `json:"sampleTestStatus,omitempty"`
  1290  	// SampleTrainingStatus: The status of sampling documents in training split.
  1291  	SampleTrainingStatus *GoogleRpcStatus `json:"sampleTrainingStatus,omitempty"`
  1292  	// SelectedDocuments: The result of the sampling process.
  1293  	SelectedDocuments []*GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument `json:"selectedDocuments,omitempty"`
  1294  	// ForceSendFields is a list of field names (e.g. "SampleTestStatus") to
  1295  	// unconditionally include in API requests. By default, fields with empty or
  1296  	// default values are omitted from API requests. See
  1297  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1298  	// details.
  1299  	ForceSendFields []string `json:"-"`
  1300  	// NullFields is a list of field names (e.g. "SampleTestStatus") to include in
  1301  	// API requests with the JSON null value. By default, fields with empty values
  1302  	// are omitted from API requests. See
  1303  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1304  	NullFields []string `json:"-"`
  1305  }
  1306  
  1307  func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse) MarshalJSON() ([]byte, error) {
  1308  	type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse
  1309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1310  }
  1311  
  1312  type GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument struct {
  1313  	// DocumentId: An internal identifier for document.
  1314  	DocumentId string `json:"documentId,omitempty"`
  1315  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
  1316  	// unconditionally include in API requests. By default, fields with empty or
  1317  	// default values are omitted from API requests. See
  1318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1319  	// details.
  1320  	ForceSendFields []string `json:"-"`
  1321  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
  1322  	// requests with the JSON null value. By default, fields with empty values are
  1323  	// omitted from API requests. See
  1324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1325  	NullFields []string `json:"-"`
  1326  }
  1327  
  1328  func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument) MarshalJSON() ([]byte, error) {
  1329  	type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument
  1330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1331  }
  1332  
  1333  // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The
  1334  // long-running operation metadata for the SetDefaultProcessorVersion method.
  1335  type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata struct {
  1336  	// CommonMetadata: The basic metadata of the long-running operation.
  1337  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1338  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1339  	// unconditionally include in API requests. By default, fields with empty or
  1340  	// default values are omitted from API requests. See
  1341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1342  	// details.
  1343  	ForceSendFields []string `json:"-"`
  1344  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1345  	// API requests with the JSON null value. By default, fields with empty values
  1346  	// are omitted from API requests. See
  1347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1348  	NullFields []string `json:"-"`
  1349  }
  1350  
  1351  func (s *GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1352  	type NoMethod GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
  1353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1354  }
  1355  
  1356  // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse: Response
  1357  // message for the SetDefaultProcessorVersion method.
  1358  type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse struct {
  1359  }
  1360  
  1361  // GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata: The metadata
  1362  // that represents a processor version being created.
  1363  type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata struct {
  1364  	// CommonMetadata: The basic metadata of the long-running operation.
  1365  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1366  	// TestDatasetValidation: The test dataset validation information.
  1367  	TestDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
  1368  	// TrainingDatasetValidation: The training dataset validation information.
  1369  	TrainingDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
  1370  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1371  	// unconditionally include in API requests. By default, fields with empty or
  1372  	// default values are omitted from API requests. See
  1373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1374  	// details.
  1375  	ForceSendFields []string `json:"-"`
  1376  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1377  	// API requests with the JSON null value. By default, fields with empty values
  1378  	// are omitted from API requests. See
  1379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1380  	NullFields []string `json:"-"`
  1381  }
  1382  
  1383  func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1384  	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
  1385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1386  }
  1387  
  1388  // GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation:
  1389  //
  1390  //	The dataset validation information. This includes any and all errors with
  1391  //
  1392  // documents and the dataset.
  1393  type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation struct {
  1394  	// DatasetErrorCount: The total number of dataset errors.
  1395  	DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
  1396  	// DatasetErrors: Error information for the dataset as a whole. A maximum of 10
  1397  	// dataset errors will be returned. A single dataset error is terminal for
  1398  	// training.
  1399  	DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
  1400  	// DocumentErrorCount: The total number of document errors.
  1401  	DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
  1402  	// DocumentErrors: Error information pertaining to specific documents. A
  1403  	// maximum of 10 document errors will be returned. Any document with errors
  1404  	// will not be used throughout training.
  1405  	DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
  1406  	// ForceSendFields is a list of field names (e.g. "DatasetErrorCount") to
  1407  	// unconditionally include in API requests. By default, fields with empty or
  1408  	// default values are omitted from API requests. See
  1409  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1410  	// details.
  1411  	ForceSendFields []string `json:"-"`
  1412  	// NullFields is a list of field names (e.g. "DatasetErrorCount") to include in
  1413  	// API requests with the JSON null value. By default, fields with empty values
  1414  	// are omitted from API requests. See
  1415  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1416  	NullFields []string `json:"-"`
  1417  }
  1418  
  1419  func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
  1420  	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
  1421  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1422  }
  1423  
  1424  // GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse: The response
  1425  // for TrainProcessorVersion.
  1426  type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse struct {
  1427  	// ProcessorVersion: The resource name of the processor version produced by
  1428  	// training.
  1429  	ProcessorVersion string `json:"processorVersion,omitempty"`
  1430  	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
  1431  	// unconditionally include in API requests. By default, fields with empty or
  1432  	// default values are omitted from API requests. See
  1433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1434  	// details.
  1435  	ForceSendFields []string `json:"-"`
  1436  	// NullFields is a list of field names (e.g. "ProcessorVersion") to include in
  1437  	// API requests with the JSON null value. By default, fields with empty values
  1438  	// are omitted from API requests. See
  1439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1440  	NullFields []string `json:"-"`
  1441  }
  1442  
  1443  func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
  1444  	type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
  1445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1446  }
  1447  
  1448  // GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata: The
  1449  // long-running operation metadata for the UndeployProcessorVersion method.
  1450  type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata struct {
  1451  	// CommonMetadata: The basic metadata of the long-running operation.
  1452  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1453  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1454  	// unconditionally include in API requests. By default, fields with empty or
  1455  	// default values are omitted from API requests. See
  1456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1457  	// details.
  1458  	ForceSendFields []string `json:"-"`
  1459  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1460  	// API requests with the JSON null value. By default, fields with empty values
  1461  	// are omitted from API requests. See
  1462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1463  	NullFields []string `json:"-"`
  1464  }
  1465  
  1466  func (s *GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1467  	type NoMethod GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
  1468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1469  }
  1470  
  1471  // GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse: Response
  1472  // message for the UndeployProcessorVersion method.
  1473  type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse struct {
  1474  }
  1475  
  1476  type GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata struct {
  1477  	// CommonMetadata: The basic metadata of the long-running operation.
  1478  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1479  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1480  	// unconditionally include in API requests. By default, fields with empty or
  1481  	// default values are omitted from API requests. See
  1482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1483  	// details.
  1484  	ForceSendFields []string `json:"-"`
  1485  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1486  	// API requests with the JSON null value. By default, fields with empty values
  1487  	// are omitted from API requests. See
  1488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1489  	NullFields []string `json:"-"`
  1490  }
  1491  
  1492  func (s *GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
  1493  	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata
  1494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1495  }
  1496  
  1497  // GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata: The
  1498  // long-running operation metadata for updating the human review configuration.
  1499  type GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata struct {
  1500  	// CommonMetadata: The basic metadata of the long-running operation.
  1501  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1502  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1503  	// unconditionally include in API requests. By default, fields with empty or
  1504  	// default values are omitted from API requests. See
  1505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1506  	// details.
  1507  	ForceSendFields []string `json:"-"`
  1508  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1509  	// API requests with the JSON null value. By default, fields with empty values
  1510  	// are omitted from API requests. See
  1511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1512  	NullFields []string `json:"-"`
  1513  }
  1514  
  1515  func (s *GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata) MarshalJSON() ([]byte, error) {
  1516  	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
  1517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1518  }
  1519  
  1520  // GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata: The
  1521  // long-running operation metadata for UpdateLabelerPool.
  1522  type GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata struct {
  1523  	// CommonMetadata: The basic metadata of the long-running operation.
  1524  	CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1525  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1526  	// unconditionally include in API requests. By default, fields with empty or
  1527  	// default values are omitted from API requests. See
  1528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1529  	// details.
  1530  	ForceSendFields []string `json:"-"`
  1531  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1532  	// API requests with the JSON null value. By default, fields with empty values
  1533  	// are omitted from API requests. See
  1534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1535  	NullFields []string `json:"-"`
  1536  }
  1537  
  1538  func (s *GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
  1539  	type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
  1540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1541  }
  1542  
  1543  // GoogleCloudDocumentaiV1BatchProcessMetadata: The long-running operation
  1544  // metadata for BatchProcessDocuments.
  1545  type GoogleCloudDocumentaiV1BatchProcessMetadata struct {
  1546  	// CreateTime: The creation time of the operation.
  1547  	CreateTime string `json:"createTime,omitempty"`
  1548  	// IndividualProcessStatuses: The list of response details of each document.
  1549  	IndividualProcessStatuses []*GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
  1550  	// State: The state of the current batch processing.
  1551  	//
  1552  	// Possible values:
  1553  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
  1554  	// is omitted.
  1555  	//   "WAITING" - Request operation is waiting for scheduling.
  1556  	//   "RUNNING" - Request is being processed.
  1557  	//   "SUCCEEDED" - The batch processing completed successfully.
  1558  	//   "CANCELLING" - The batch processing was being cancelled.
  1559  	//   "CANCELLED" - The batch processing was cancelled.
  1560  	//   "FAILED" - The batch processing has failed.
  1561  	State string `json:"state,omitempty"`
  1562  	// StateMessage: A message providing more details about the current state of
  1563  	// processing. For example, the error message if the operation is failed.
  1564  	StateMessage string `json:"stateMessage,omitempty"`
  1565  	// UpdateTime: The last update time of the operation.
  1566  	UpdateTime string `json:"updateTime,omitempty"`
  1567  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1568  	// unconditionally include in API requests. By default, fields with empty or
  1569  	// default values are omitted from API requests. See
  1570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1571  	// details.
  1572  	ForceSendFields []string `json:"-"`
  1573  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1574  	// requests with the JSON null value. By default, fields with empty values are
  1575  	// omitted from API requests. See
  1576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1577  	NullFields []string `json:"-"`
  1578  }
  1579  
  1580  func (s *GoogleCloudDocumentaiV1BatchProcessMetadata) MarshalJSON() ([]byte, error) {
  1581  	type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadata
  1582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1583  }
  1584  
  1585  // GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus: The
  1586  // status of a each individual document in the batch process.
  1587  type GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus struct {
  1588  	// HumanReviewStatus: The status of human review on the processed document.
  1589  	HumanReviewStatus *GoogleCloudDocumentaiV1HumanReviewStatus `json:"humanReviewStatus,omitempty"`
  1590  	// InputGcsSource: The source of the document, same as the input_gcs_source
  1591  	// field in the request when the batch process started.
  1592  	InputGcsSource string `json:"inputGcsSource,omitempty"`
  1593  	// OutputGcsDestination: The Cloud Storage output destination (in the request
  1594  	// as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document
  1595  	// if it was successful, otherwise empty.
  1596  	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
  1597  	// Status: The status processing the document.
  1598  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1599  	// ForceSendFields is a list of field names (e.g. "HumanReviewStatus") to
  1600  	// unconditionally include in API requests. By default, fields with empty or
  1601  	// default values are omitted from API requests. See
  1602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1603  	// details.
  1604  	ForceSendFields []string `json:"-"`
  1605  	// NullFields is a list of field names (e.g. "HumanReviewStatus") to include in
  1606  	// API requests with the JSON null value. By default, fields with empty values
  1607  	// are omitted from API requests. See
  1608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1609  	NullFields []string `json:"-"`
  1610  }
  1611  
  1612  func (s *GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
  1613  	type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
  1614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1615  }
  1616  
  1617  // GoogleCloudDocumentaiV1BatchProcessResponse: Response message for
  1618  // BatchProcessDocuments.
  1619  type GoogleCloudDocumentaiV1BatchProcessResponse struct {
  1620  }
  1621  
  1622  // GoogleCloudDocumentaiV1CommonOperationMetadata: The common metadata for long
  1623  // running operations.
  1624  type GoogleCloudDocumentaiV1CommonOperationMetadata struct {
  1625  	// CreateTime: The creation time of the operation.
  1626  	CreateTime string `json:"createTime,omitempty"`
  1627  	// Resource: A related resource to this operation.
  1628  	Resource string `json:"resource,omitempty"`
  1629  	// State: The state of the operation.
  1630  	//
  1631  	// Possible values:
  1632  	//   "STATE_UNSPECIFIED" - Unspecified state.
  1633  	//   "RUNNING" - Operation is still running.
  1634  	//   "CANCELLING" - Operation is being cancelled.
  1635  	//   "SUCCEEDED" - Operation succeeded.
  1636  	//   "FAILED" - Operation failed.
  1637  	//   "CANCELLED" - Operation is cancelled.
  1638  	State string `json:"state,omitempty"`
  1639  	// StateMessage: A message providing more details about the current state of
  1640  	// processing.
  1641  	StateMessage string `json:"stateMessage,omitempty"`
  1642  	// UpdateTime: The last update time of the operation.
  1643  	UpdateTime string `json:"updateTime,omitempty"`
  1644  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1645  	// unconditionally include in API requests. By default, fields with empty or
  1646  	// default values are omitted from API requests. See
  1647  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1648  	// details.
  1649  	ForceSendFields []string `json:"-"`
  1650  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1651  	// requests with the JSON null value. By default, fields with empty values are
  1652  	// omitted from API requests. See
  1653  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1654  	NullFields []string `json:"-"`
  1655  }
  1656  
  1657  func (s *GoogleCloudDocumentaiV1CommonOperationMetadata) MarshalJSON() ([]byte, error) {
  1658  	type NoMethod GoogleCloudDocumentaiV1CommonOperationMetadata
  1659  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1660  }
  1661  
  1662  // GoogleCloudDocumentaiV1DeleteProcessorMetadata: The long-running operation
  1663  // metadata for the DeleteProcessor method.
  1664  type GoogleCloudDocumentaiV1DeleteProcessorMetadata struct {
  1665  	// CommonMetadata: The basic metadata of the long-running operation.
  1666  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1667  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1668  	// unconditionally include in API requests. By default, fields with empty or
  1669  	// default values are omitted from API requests. See
  1670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1671  	// details.
  1672  	ForceSendFields []string `json:"-"`
  1673  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1674  	// API requests with the JSON null value. By default, fields with empty values
  1675  	// are omitted from API requests. See
  1676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1677  	NullFields []string `json:"-"`
  1678  }
  1679  
  1680  func (s *GoogleCloudDocumentaiV1DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
  1681  	type NoMethod GoogleCloudDocumentaiV1DeleteProcessorMetadata
  1682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1683  }
  1684  
  1685  // GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata: The long-running
  1686  // operation metadata for the DeleteProcessorVersion method.
  1687  type GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata struct {
  1688  	// CommonMetadata: The basic metadata of the long-running operation.
  1689  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1690  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1691  	// unconditionally include in API requests. By default, fields with empty or
  1692  	// default values are omitted from API requests. See
  1693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1694  	// details.
  1695  	ForceSendFields []string `json:"-"`
  1696  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1697  	// API requests with the JSON null value. By default, fields with empty values
  1698  	// are omitted from API requests. See
  1699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1700  	NullFields []string `json:"-"`
  1701  }
  1702  
  1703  func (s *GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1704  	type NoMethod GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata
  1705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1706  }
  1707  
  1708  // GoogleCloudDocumentaiV1DeployProcessorVersionMetadata: The long-running
  1709  // operation metadata for the DeployProcessorVersion method.
  1710  type GoogleCloudDocumentaiV1DeployProcessorVersionMetadata struct {
  1711  	// CommonMetadata: The basic metadata of the long-running operation.
  1712  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1713  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1714  	// unconditionally include in API requests. By default, fields with empty or
  1715  	// default values are omitted from API requests. See
  1716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1717  	// details.
  1718  	ForceSendFields []string `json:"-"`
  1719  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1720  	// API requests with the JSON null value. By default, fields with empty values
  1721  	// are omitted from API requests. See
  1722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1723  	NullFields []string `json:"-"`
  1724  }
  1725  
  1726  func (s *GoogleCloudDocumentaiV1DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1727  	type NoMethod GoogleCloudDocumentaiV1DeployProcessorVersionMetadata
  1728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1729  }
  1730  
  1731  // GoogleCloudDocumentaiV1DeployProcessorVersionResponse: Response message for
  1732  // the DeployProcessorVersion method.
  1733  type GoogleCloudDocumentaiV1DeployProcessorVersionResponse struct {
  1734  }
  1735  
  1736  // GoogleCloudDocumentaiV1DisableProcessorMetadata: The long-running operation
  1737  // metadata for the DisableProcessor method.
  1738  type GoogleCloudDocumentaiV1DisableProcessorMetadata struct {
  1739  	// CommonMetadata: The basic metadata of the long-running operation.
  1740  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1741  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1742  	// unconditionally include in API requests. By default, fields with empty or
  1743  	// default values are omitted from API requests. See
  1744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1745  	// details.
  1746  	ForceSendFields []string `json:"-"`
  1747  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1748  	// API requests with the JSON null value. By default, fields with empty values
  1749  	// are omitted from API requests. See
  1750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1751  	NullFields []string `json:"-"`
  1752  }
  1753  
  1754  func (s *GoogleCloudDocumentaiV1DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
  1755  	type NoMethod GoogleCloudDocumentaiV1DisableProcessorMetadata
  1756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1757  }
  1758  
  1759  // GoogleCloudDocumentaiV1DisableProcessorResponse: Response message for the
  1760  // DisableProcessor method. Intentionally empty proto for adding fields in
  1761  // future.
  1762  type GoogleCloudDocumentaiV1DisableProcessorResponse struct {
  1763  }
  1764  
  1765  // GoogleCloudDocumentaiV1EnableProcessorMetadata: The long-running operation
  1766  // metadata for the EnableProcessor method.
  1767  type GoogleCloudDocumentaiV1EnableProcessorMetadata struct {
  1768  	// CommonMetadata: The basic metadata of the long-running operation.
  1769  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1770  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1771  	// unconditionally include in API requests. By default, fields with empty or
  1772  	// default values are omitted from API requests. See
  1773  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1774  	// details.
  1775  	ForceSendFields []string `json:"-"`
  1776  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1777  	// API requests with the JSON null value. By default, fields with empty values
  1778  	// are omitted from API requests. See
  1779  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1780  	NullFields []string `json:"-"`
  1781  }
  1782  
  1783  func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
  1784  	type NoMethod GoogleCloudDocumentaiV1EnableProcessorMetadata
  1785  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1786  }
  1787  
  1788  // GoogleCloudDocumentaiV1EnableProcessorResponse: Response message for the
  1789  // EnableProcessor method. Intentionally empty proto for adding fields in
  1790  // future.
  1791  type GoogleCloudDocumentaiV1EnableProcessorResponse struct {
  1792  }
  1793  
  1794  // GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata: Metadata of the
  1795  // EvaluateProcessorVersion method.
  1796  type GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata struct {
  1797  	// CommonMetadata: The basic metadata of the long-running operation.
  1798  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1799  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1800  	// unconditionally include in API requests. By default, fields with empty or
  1801  	// default values are omitted from API requests. See
  1802  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1803  	// details.
  1804  	ForceSendFields []string `json:"-"`
  1805  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1806  	// API requests with the JSON null value. By default, fields with empty values
  1807  	// are omitted from API requests. See
  1808  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1809  	NullFields []string `json:"-"`
  1810  }
  1811  
  1812  func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1813  	type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata
  1814  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1815  }
  1816  
  1817  // GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse: Response of the
  1818  // EvaluateProcessorVersion method.
  1819  type GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse struct {
  1820  	// Evaluation: The resource name of the created evaluation.
  1821  	Evaluation string `json:"evaluation,omitempty"`
  1822  	// ForceSendFields is a list of field names (e.g. "Evaluation") to
  1823  	// unconditionally include in API requests. By default, fields with empty or
  1824  	// default values are omitted from API requests. See
  1825  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1826  	// details.
  1827  	ForceSendFields []string `json:"-"`
  1828  	// NullFields is a list of field names (e.g. "Evaluation") to include in API
  1829  	// requests with the JSON null value. By default, fields with empty values are
  1830  	// omitted from API requests. See
  1831  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1832  	NullFields []string `json:"-"`
  1833  }
  1834  
  1835  func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
  1836  	type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse
  1837  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1838  }
  1839  
  1840  // GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review on a
  1841  // processed document.
  1842  type GoogleCloudDocumentaiV1HumanReviewStatus struct {
  1843  	// HumanReviewOperation: The name of the operation triggered by the processed
  1844  	// document. This field is populated only when the state is
  1845  	// `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
  1846  	// the long-running operation returned by ReviewDocument.
  1847  	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
  1848  	// State: The state of human review on the processing request.
  1849  	//
  1850  	// Possible values:
  1851  	//   "STATE_UNSPECIFIED" - Human review state is unspecified. Most likely due
  1852  	// to an internal error.
  1853  	//   "SKIPPED" - Human review is skipped for the document. This can happen
  1854  	// because human review isn't enabled on the processor or the processing
  1855  	// request has been set to skip this document.
  1856  	//   "VALIDATION_PASSED" - Human review validation is triggered and passed, so
  1857  	// no review is needed.
  1858  	//   "IN_PROGRESS" - Human review validation is triggered and the document is
  1859  	// under review.
  1860  	//   "ERROR" - Some error happened during triggering human review, see the
  1861  	// state_message for details.
  1862  	State string `json:"state,omitempty"`
  1863  	// StateMessage: A message providing more details about the human review state.
  1864  	StateMessage string `json:"stateMessage,omitempty"`
  1865  	// ForceSendFields is a list of field names (e.g. "HumanReviewOperation") to
  1866  	// unconditionally include in API requests. By default, fields with empty or
  1867  	// default values are omitted from API requests. See
  1868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1869  	// details.
  1870  	ForceSendFields []string `json:"-"`
  1871  	// NullFields is a list of field names (e.g. "HumanReviewOperation") to include
  1872  	// in API requests with the JSON null value. By default, fields with empty
  1873  	// values are omitted from API requests. See
  1874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1875  	NullFields []string `json:"-"`
  1876  }
  1877  
  1878  func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) {
  1879  	type NoMethod GoogleCloudDocumentaiV1HumanReviewStatus
  1880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1881  }
  1882  
  1883  // GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata: The long-running
  1884  // operation metadata for the ReviewDocument method.
  1885  type GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata struct {
  1886  	// CommonMetadata: The basic metadata of the long-running operation.
  1887  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1888  	// QuestionId: The Crowd Compute question ID.
  1889  	QuestionId string `json:"questionId,omitempty"`
  1890  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1891  	// unconditionally include in API requests. By default, fields with empty or
  1892  	// default values are omitted from API requests. See
  1893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1894  	// details.
  1895  	ForceSendFields []string `json:"-"`
  1896  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1897  	// API requests with the JSON null value. By default, fields with empty values
  1898  	// are omitted from API requests. See
  1899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1900  	NullFields []string `json:"-"`
  1901  }
  1902  
  1903  func (s *GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  1904  	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
  1905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1906  }
  1907  
  1908  // GoogleCloudDocumentaiV1ReviewDocumentResponse: Response message for the
  1909  // ReviewDocument method.
  1910  type GoogleCloudDocumentaiV1ReviewDocumentResponse struct {
  1911  	// GcsDestination: The Cloud Storage uri for the human reviewed document if the
  1912  	// review is succeeded.
  1913  	GcsDestination string `json:"gcsDestination,omitempty"`
  1914  	// RejectionReason: The reason why the review is rejected by reviewer.
  1915  	RejectionReason string `json:"rejectionReason,omitempty"`
  1916  	// State: The state of the review operation.
  1917  	//
  1918  	// Possible values:
  1919  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
  1920  	// is omitted.
  1921  	//   "REJECTED" - The review operation is rejected by the reviewer.
  1922  	//   "SUCCEEDED" - The review operation is succeeded.
  1923  	State string `json:"state,omitempty"`
  1924  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  1925  	// unconditionally include in API requests. By default, fields with empty or
  1926  	// default values are omitted from API requests. See
  1927  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1928  	// details.
  1929  	ForceSendFields []string `json:"-"`
  1930  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  1931  	// API requests with the JSON null value. By default, fields with empty values
  1932  	// are omitted from API requests. See
  1933  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1934  	NullFields []string `json:"-"`
  1935  }
  1936  
  1937  func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
  1938  	type NoMethod GoogleCloudDocumentaiV1ReviewDocumentResponse
  1939  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1940  }
  1941  
  1942  // GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata: The long-running
  1943  // operation metadata for the SetDefaultProcessorVersion method.
  1944  type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct {
  1945  	// CommonMetadata: The basic metadata of the long-running operation.
  1946  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1947  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1948  	// unconditionally include in API requests. By default, fields with empty or
  1949  	// default values are omitted from API requests. See
  1950  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1951  	// details.
  1952  	ForceSendFields []string `json:"-"`
  1953  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1954  	// API requests with the JSON null value. By default, fields with empty values
  1955  	// are omitted from API requests. See
  1956  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1957  	NullFields []string `json:"-"`
  1958  }
  1959  
  1960  func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1961  	type NoMethod GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
  1962  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1963  }
  1964  
  1965  // GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse: Response message
  1966  // for the SetDefaultProcessorVersion method.
  1967  type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct {
  1968  }
  1969  
  1970  // GoogleCloudDocumentaiV1TrainProcessorVersionMetadata: The metadata that
  1971  // represents a processor version being created.
  1972  type GoogleCloudDocumentaiV1TrainProcessorVersionMetadata struct {
  1973  	// CommonMetadata: The basic metadata of the long-running operation.
  1974  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  1975  	// TestDatasetValidation: The test dataset validation information.
  1976  	TestDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
  1977  	// TrainingDatasetValidation: The training dataset validation information.
  1978  	TrainingDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
  1979  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  1980  	// unconditionally include in API requests. By default, fields with empty or
  1981  	// default values are omitted from API requests. See
  1982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1983  	// details.
  1984  	ForceSendFields []string `json:"-"`
  1985  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  1986  	// API requests with the JSON null value. By default, fields with empty values
  1987  	// are omitted from API requests. See
  1988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1989  	NullFields []string `json:"-"`
  1990  }
  1991  
  1992  func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  1993  	type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadata
  1994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1995  }
  1996  
  1997  // GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation: The
  1998  // dataset validation information. This includes any and all errors with
  1999  // documents and the dataset.
  2000  type GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation struct {
  2001  	// DatasetErrorCount: The total number of dataset errors.
  2002  	DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
  2003  	// DatasetErrors: Error information for the dataset as a whole. A maximum of 10
  2004  	// dataset errors will be returned. A single dataset error is terminal for
  2005  	// training.
  2006  	DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
  2007  	// DocumentErrorCount: The total number of document errors.
  2008  	DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
  2009  	// DocumentErrors: Error information pertaining to specific documents. A
  2010  	// maximum of 10 document errors will be returned. Any document with errors
  2011  	// will not be used throughout training.
  2012  	DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
  2013  	// ForceSendFields is a list of field names (e.g. "DatasetErrorCount") to
  2014  	// unconditionally include in API requests. By default, fields with empty or
  2015  	// default values are omitted from API requests. See
  2016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2017  	// details.
  2018  	ForceSendFields []string `json:"-"`
  2019  	// NullFields is a list of field names (e.g. "DatasetErrorCount") to include in
  2020  	// API requests with the JSON null value. By default, fields with empty values
  2021  	// are omitted from API requests. See
  2022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2023  	NullFields []string `json:"-"`
  2024  }
  2025  
  2026  func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
  2027  	type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation
  2028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2029  }
  2030  
  2031  // GoogleCloudDocumentaiV1TrainProcessorVersionResponse: The response for
  2032  // TrainProcessorVersion.
  2033  type GoogleCloudDocumentaiV1TrainProcessorVersionResponse struct {
  2034  	// ProcessorVersion: The resource name of the processor version produced by
  2035  	// training.
  2036  	ProcessorVersion string `json:"processorVersion,omitempty"`
  2037  	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
  2038  	// unconditionally include in API requests. By default, fields with empty or
  2039  	// default values are omitted from API requests. See
  2040  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2041  	// details.
  2042  	ForceSendFields []string `json:"-"`
  2043  	// NullFields is a list of field names (e.g. "ProcessorVersion") to include in
  2044  	// API requests with the JSON null value. By default, fields with empty values
  2045  	// are omitted from API requests. See
  2046  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2047  	NullFields []string `json:"-"`
  2048  }
  2049  
  2050  func (s *GoogleCloudDocumentaiV1TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
  2051  	type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionResponse
  2052  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2053  }
  2054  
  2055  // GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long-running
  2056  // operation metadata for the UndeployProcessorVersion method.
  2057  type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct {
  2058  	// CommonMetadata: The basic metadata of the long-running operation.
  2059  	CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"`
  2060  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  2061  	// unconditionally include in API requests. By default, fields with empty or
  2062  	// default values are omitted from API requests. See
  2063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2064  	// details.
  2065  	ForceSendFields []string `json:"-"`
  2066  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  2067  	// API requests with the JSON null value. By default, fields with empty values
  2068  	// are omitted from API requests. See
  2069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2070  	NullFields []string `json:"-"`
  2071  }
  2072  
  2073  func (s *GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  2074  	type NoMethod GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
  2075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2076  }
  2077  
  2078  // GoogleCloudDocumentaiV1UndeployProcessorVersionResponse: Response message
  2079  // for the UndeployProcessorVersion method.
  2080  type GoogleCloudDocumentaiV1UndeployProcessorVersionResponse struct {
  2081  }
  2082  
  2083  // GoogleCloudDocumentaiV1beta1Barcode: Encodes the detailed information of a
  2084  // barcode.
  2085  type GoogleCloudDocumentaiV1beta1Barcode struct {
  2086  	// Format: Format of a barcode. The supported formats are: - `CODE_128`: Code
  2087  	// 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`:
  2088  	// Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. -
  2089  	// `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type.
  2090  	// - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. -
  2091  	// `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.
  2092  	Format string `json:"format,omitempty"`
  2093  	// RawValue: Raw value encoded in the barcode. For example:
  2094  	// `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
  2095  	RawValue string `json:"rawValue,omitempty"`
  2096  	// ValueFormat: Value format describes the format of the value that a barcode
  2097  	// encodes. The supported formats are: - `CONTACT_INFO`: Contact information. -
  2098  	// `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number.
  2099  	// - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`:
  2100  	// URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. -
  2101  	// `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.
  2102  	ValueFormat string `json:"valueFormat,omitempty"`
  2103  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
  2104  	// include in API requests. By default, fields with empty or default values are
  2105  	// omitted from API requests. See
  2106  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2107  	// details.
  2108  	ForceSendFields []string `json:"-"`
  2109  	// NullFields is a list of field names (e.g. "Format") to include in API
  2110  	// requests with the JSON null value. By default, fields with empty values are
  2111  	// omitted from API requests. See
  2112  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2113  	NullFields []string `json:"-"`
  2114  }
  2115  
  2116  func (s *GoogleCloudDocumentaiV1beta1Barcode) MarshalJSON() ([]byte, error) {
  2117  	type NoMethod GoogleCloudDocumentaiV1beta1Barcode
  2118  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2119  }
  2120  
  2121  // GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response to an
  2122  // batch document processing request. This is returned in the LRO Operation
  2123  // after the operation is complete.
  2124  type GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse struct {
  2125  	// Responses: Responses for each individual document.
  2126  	Responses []*GoogleCloudDocumentaiV1beta1ProcessDocumentResponse `json:"responses,omitempty"`
  2127  	// ForceSendFields is a list of field names (e.g. "Responses") to
  2128  	// unconditionally include in API requests. By default, fields with empty or
  2129  	// default values are omitted from API requests. See
  2130  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2131  	// details.
  2132  	ForceSendFields []string `json:"-"`
  2133  	// NullFields is a list of field names (e.g. "Responses") to include in API
  2134  	// requests with the JSON null value. By default, fields with empty values are
  2135  	// omitted from API requests. See
  2136  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2137  	NullFields []string `json:"-"`
  2138  }
  2139  
  2140  func (s *GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
  2141  	type NoMethod GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
  2142  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2143  }
  2144  
  2145  // GoogleCloudDocumentaiV1beta1BoundingPoly: A bounding polygon for the
  2146  // detected image annotation.
  2147  type GoogleCloudDocumentaiV1beta1BoundingPoly struct {
  2148  	// NormalizedVertices: The bounding polygon normalized vertices.
  2149  	NormalizedVertices []*GoogleCloudDocumentaiV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
  2150  	// Vertices: The bounding polygon vertices.
  2151  	Vertices []*GoogleCloudDocumentaiV1beta1Vertex `json:"vertices,omitempty"`
  2152  	// ForceSendFields is a list of field names (e.g. "NormalizedVertices") to
  2153  	// unconditionally include in API requests. By default, fields with empty or
  2154  	// default values are omitted from API requests. See
  2155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2156  	// details.
  2157  	ForceSendFields []string `json:"-"`
  2158  	// NullFields is a list of field names (e.g. "NormalizedVertices") to include
  2159  	// in API requests with the JSON null value. By default, fields with empty
  2160  	// values are omitted from API requests. See
  2161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2162  	NullFields []string `json:"-"`
  2163  }
  2164  
  2165  func (s *GoogleCloudDocumentaiV1beta1BoundingPoly) MarshalJSON() ([]byte, error) {
  2166  	type NoMethod GoogleCloudDocumentaiV1beta1BoundingPoly
  2167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2168  }
  2169  
  2170  // GoogleCloudDocumentaiV1beta1Document: Document represents the canonical
  2171  // document resource in Document AI. It is an interchange format that provides
  2172  // insights into documents and allows for collaboration between users and
  2173  // Document AI to iterate and optimize for quality.
  2174  type GoogleCloudDocumentaiV1beta1Document struct {
  2175  	// Content: Optional. Inline document content, represented as a stream of
  2176  	// bytes. Note: As with all `bytes` fields, protobuffers use a pure binary
  2177  	// representation, whereas JSON representations use base64.
  2178  	Content string `json:"content,omitempty"`
  2179  	// Entities: A list of entities detected on Document.text. For document shards,
  2180  	// entities in this list may cross shard boundaries.
  2181  	Entities []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"entities,omitempty"`
  2182  	// EntityRelations: Placeholder. Relationship among Document.entities.
  2183  	EntityRelations []*GoogleCloudDocumentaiV1beta1DocumentEntityRelation `json:"entityRelations,omitempty"`
  2184  	// Error: Any error that occurred while processing this document.
  2185  	Error *GoogleRpcStatus `json:"error,omitempty"`
  2186  	// MimeType: An IANA published media type (MIME type)
  2187  	// (https://www.iana.org/assignments/media-types/media-types.xhtml).
  2188  	MimeType string `json:"mimeType,omitempty"`
  2189  	// Pages: Visual page layout for the Document.
  2190  	Pages []*GoogleCloudDocumentaiV1beta1DocumentPage `json:"pages,omitempty"`
  2191  	// Revisions: Placeholder. Revision history of this document.
  2192  	Revisions []*GoogleCloudDocumentaiV1beta1DocumentRevision `json:"revisions,omitempty"`
  2193  	// ShardInfo: Information about the sharding if this document is sharded part
  2194  	// of a larger document. If the document is not sharded, this message is not
  2195  	// specified.
  2196  	ShardInfo *GoogleCloudDocumentaiV1beta1DocumentShardInfo `json:"shardInfo,omitempty"`
  2197  	// Text: Optional. UTF-8 encoded text in reading order from the document.
  2198  	Text string `json:"text,omitempty"`
  2199  	// TextChanges: Placeholder. A list of text corrections made to Document.text.
  2200  	// This is usually used for annotating corrections to OCR mistakes. Text
  2201  	// changes for a given revision may not overlap with each other.
  2202  	TextChanges []*GoogleCloudDocumentaiV1beta1DocumentTextChange `json:"textChanges,omitempty"`
  2203  	// TextStyles: Styles for the Document.text.
  2204  	TextStyles []*GoogleCloudDocumentaiV1beta1DocumentStyle `json:"textStyles,omitempty"`
  2205  	// Uri: Optional. Currently supports Google Cloud Storage URI of the form
  2206  	// `gs://bucket_name/object_name`. Object versioning is not supported. For more
  2207  	// information, refer to Google Cloud Storage Request URIs
  2208  	// (https://cloud.google.com/storage/docs/reference-uris).
  2209  	Uri string `json:"uri,omitempty"`
  2210  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2211  	// include in API requests. By default, fields with empty or default values are
  2212  	// omitted from API requests. See
  2213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2214  	// details.
  2215  	ForceSendFields []string `json:"-"`
  2216  	// NullFields is a list of field names (e.g. "Content") to include in API
  2217  	// requests with the JSON null value. By default, fields with empty values are
  2218  	// omitted from API requests. See
  2219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2220  	NullFields []string `json:"-"`
  2221  }
  2222  
  2223  func (s *GoogleCloudDocumentaiV1beta1Document) MarshalJSON() ([]byte, error) {
  2224  	type NoMethod GoogleCloudDocumentaiV1beta1Document
  2225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2226  }
  2227  
  2228  // GoogleCloudDocumentaiV1beta1DocumentEntity: An entity that could be a phrase
  2229  // in the text or a property that belongs to the document. It is a known entity
  2230  // type, such as a person, an organization, or location.
  2231  type GoogleCloudDocumentaiV1beta1DocumentEntity struct {
  2232  	// Confidence: Optional. Confidence of detected Schema entity. Range `[0, 1]`.
  2233  	Confidence float64 `json:"confidence,omitempty"`
  2234  	// Id: Optional. Canonical id. This will be a unique value in the entity list
  2235  	// for this document.
  2236  	Id string `json:"id,omitempty"`
  2237  	// MentionId: Optional. Deprecated. Use `id` field instead.
  2238  	MentionId string `json:"mentionId,omitempty"`
  2239  	// MentionText: Optional. Text value of the entity e.g. `1600 Amphitheatre
  2240  	// Pkwy`.
  2241  	MentionText string `json:"mentionText,omitempty"`
  2242  	// NormalizedValue: Optional. Normalized entity value. Absent if the extracted
  2243  	// value could not be converted or the type (e.g. address) is not supported for
  2244  	// certain parsers. This field is also only populated for certain supported
  2245  	// document types.
  2246  	NormalizedValue *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
  2247  	// PageAnchor: Optional. Represents the provenance of this entity wrt. the
  2248  	// location on the page where it was found.
  2249  	PageAnchor *GoogleCloudDocumentaiV1beta1DocumentPageAnchor `json:"pageAnchor,omitempty"`
  2250  	// Properties: Optional. Entities can be nested to form a hierarchical data
  2251  	// structure representing the content in the document.
  2252  	Properties []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"properties,omitempty"`
  2253  	// Provenance: Optional. The history of this annotation.
  2254  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  2255  	// Redacted: Optional. Whether the entity will be redacted for
  2256  	// de-identification purposes.
  2257  	Redacted bool `json:"redacted,omitempty"`
  2258  	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing into
  2259  	// the Document.text.
  2260  	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
  2261  	// Type: Required. Entity type from a schema e.g. `Address`.
  2262  	Type string `json:"type,omitempty"`
  2263  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  2264  	// unconditionally include in API requests. By default, fields with empty or
  2265  	// default values are omitted from API requests. See
  2266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2267  	// details.
  2268  	ForceSendFields []string `json:"-"`
  2269  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  2270  	// requests with the JSON null value. By default, fields with empty values are
  2271  	// omitted from API requests. See
  2272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2273  	NullFields []string `json:"-"`
  2274  }
  2275  
  2276  func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) MarshalJSON() ([]byte, error) {
  2277  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
  2278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2279  }
  2280  
  2281  func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) UnmarshalJSON(data []byte) error {
  2282  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity
  2283  	var s1 struct {
  2284  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2285  		*NoMethod
  2286  	}
  2287  	s1.NoMethod = (*NoMethod)(s)
  2288  	if err := json.Unmarshal(data, &s1); err != nil {
  2289  		return err
  2290  	}
  2291  	s.Confidence = float64(s1.Confidence)
  2292  	return nil
  2293  }
  2294  
  2295  // GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue: Parsed and
  2296  // normalized entity value.
  2297  type GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue struct {
  2298  	// AddressValue: Postal address. See also:
  2299  	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
  2300  	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
  2301  	// BooleanValue: Boolean value. Can be used for entities with binary values, or
  2302  	// for checkboxes.
  2303  	BooleanValue bool `json:"booleanValue,omitempty"`
  2304  	// DateValue: Date value. Includes year, month, day. See also:
  2305  	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
  2306  	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
  2307  	// DatetimeValue: DateTime value. Includes date, time, and timezone. See also:
  2308  	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
  2309  	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
  2310  	// FloatValue: Float value.
  2311  	FloatValue float64 `json:"floatValue,omitempty"`
  2312  	// IntegerValue: Integer value.
  2313  	IntegerValue int64 `json:"integerValue,omitempty"`
  2314  	// MoneyValue: Money value. See also:
  2315  	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
  2316  	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
  2317  	// Text: Optional. An optional field to store a normalized string. For some
  2318  	// entity types, one of respective `structured_value` fields may also be
  2319  	// populated. Also not all the types of `structured_value` will be normalized.
  2320  	// For example, some processors may not generate `float` or `integer`
  2321  	// normalized text by default. Below are sample formats mapped to structured
  2322  	// values. - Money/Currency type (`money_value`) is in the ISO 4217 text
  2323  	// format. - Date type (`date_value`) is in the ISO 8601 text format. -
  2324  	// Datetime type (`datetime_value`) is in the ISO 8601 text format.
  2325  	Text string `json:"text,omitempty"`
  2326  	// ForceSendFields is a list of field names (e.g. "AddressValue") to
  2327  	// unconditionally include in API requests. By default, fields with empty or
  2328  	// default values are omitted from API requests. See
  2329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2330  	// details.
  2331  	ForceSendFields []string `json:"-"`
  2332  	// NullFields is a list of field names (e.g. "AddressValue") to include in API
  2333  	// requests with the JSON null value. By default, fields with empty values are
  2334  	// omitted from API requests. See
  2335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2336  	NullFields []string `json:"-"`
  2337  }
  2338  
  2339  func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
  2340  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
  2341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2342  }
  2343  
  2344  func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
  2345  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
  2346  	var s1 struct {
  2347  		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
  2348  		*NoMethod
  2349  	}
  2350  	s1.NoMethod = (*NoMethod)(s)
  2351  	if err := json.Unmarshal(data, &s1); err != nil {
  2352  		return err
  2353  	}
  2354  	s.FloatValue = float64(s1.FloatValue)
  2355  	return nil
  2356  }
  2357  
  2358  // GoogleCloudDocumentaiV1beta1DocumentEntityRelation: Relationship between
  2359  // Entities.
  2360  type GoogleCloudDocumentaiV1beta1DocumentEntityRelation struct {
  2361  	// ObjectId: Object entity id.
  2362  	ObjectId string `json:"objectId,omitempty"`
  2363  	// Relation: Relationship description.
  2364  	Relation string `json:"relation,omitempty"`
  2365  	// SubjectId: Subject entity id.
  2366  	SubjectId string `json:"subjectId,omitempty"`
  2367  	// ForceSendFields is a list of field names (e.g. "ObjectId") to
  2368  	// unconditionally include in API requests. By default, fields with empty or
  2369  	// default values are omitted from API requests. See
  2370  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2371  	// details.
  2372  	ForceSendFields []string `json:"-"`
  2373  	// NullFields is a list of field names (e.g. "ObjectId") to include in API
  2374  	// requests with the JSON null value. By default, fields with empty values are
  2375  	// omitted from API requests. See
  2376  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2377  	NullFields []string `json:"-"`
  2378  }
  2379  
  2380  func (s *GoogleCloudDocumentaiV1beta1DocumentEntityRelation) MarshalJSON() ([]byte, error) {
  2381  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityRelation
  2382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2383  }
  2384  
  2385  // GoogleCloudDocumentaiV1beta1DocumentPage: A page in a Document.
  2386  type GoogleCloudDocumentaiV1beta1DocumentPage struct {
  2387  	// Blocks: A list of visually detected text blocks on the page. A block has a
  2388  	// set of lines (collected into paragraphs) that have a common line-spacing and
  2389  	// orientation.
  2390  	Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"`
  2391  	// DetectedBarcodes: A list of detected barcodes.
  2392  	DetectedBarcodes []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"`
  2393  	// DetectedLanguages: A list of detected languages together with confidence.
  2394  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  2395  	// Dimension: Physical dimension of the page.
  2396  	Dimension *GoogleCloudDocumentaiV1beta1DocumentPageDimension `json:"dimension,omitempty"`
  2397  	// FormFields: A list of visually detected form fields on the page.
  2398  	FormFields []*GoogleCloudDocumentaiV1beta1DocumentPageFormField `json:"formFields,omitempty"`
  2399  	// Image: Rendered image for this page. This image is preprocessed to remove
  2400  	// any skew, rotation, and distortions such that the annotation bounding boxes
  2401  	// can be upright and axis-aligned.
  2402  	Image *GoogleCloudDocumentaiV1beta1DocumentPageImage `json:"image,omitempty"`
  2403  	// ImageQualityScores: Image quality scores.
  2404  	ImageQualityScores *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"`
  2405  	// Layout: Layout for the page.
  2406  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  2407  	// Lines: A list of visually detected text lines on the page. A collection of
  2408  	// tokens that a human would perceive as a line.
  2409  	Lines []*GoogleCloudDocumentaiV1beta1DocumentPageLine `json:"lines,omitempty"`
  2410  	// PageNumber: 1-based index for current Page in a parent Document. Useful when
  2411  	// a page is taken out of a Document for individual processing.
  2412  	PageNumber int64 `json:"pageNumber,omitempty"`
  2413  	// Paragraphs: A list of visually detected text paragraphs on the page. A
  2414  	// collection of lines that a human would perceive as a paragraph.
  2415  	Paragraphs []*GoogleCloudDocumentaiV1beta1DocumentPageParagraph `json:"paragraphs,omitempty"`
  2416  	// Provenance: The history of this page.
  2417  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  2418  	// Symbols: A list of visually detected symbols on the page.
  2419  	Symbols []*GoogleCloudDocumentaiV1beta1DocumentPageSymbol `json:"symbols,omitempty"`
  2420  	// Tables: A list of visually detected tables on the page.
  2421  	Tables []*GoogleCloudDocumentaiV1beta1DocumentPageTable `json:"tables,omitempty"`
  2422  	// Tokens: A list of visually detected tokens on the page.
  2423  	Tokens []*GoogleCloudDocumentaiV1beta1DocumentPageToken `json:"tokens,omitempty"`
  2424  	// Transforms: Transformation matrices that were applied to the original
  2425  	// document image to produce Page.image.
  2426  	Transforms []*GoogleCloudDocumentaiV1beta1DocumentPageMatrix `json:"transforms,omitempty"`
  2427  	// VisualElements: A list of detected non-text visual elements e.g. checkbox,
  2428  	// signature etc. on the page.
  2429  	VisualElements []*GoogleCloudDocumentaiV1beta1DocumentPageVisualElement `json:"visualElements,omitempty"`
  2430  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  2431  	// include in API requests. By default, fields with empty or default values are
  2432  	// omitted from API requests. See
  2433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2434  	// details.
  2435  	ForceSendFields []string `json:"-"`
  2436  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  2437  	// requests with the JSON null value. By default, fields with empty values are
  2438  	// omitted from API requests. See
  2439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2440  	NullFields []string `json:"-"`
  2441  }
  2442  
  2443  func (s *GoogleCloudDocumentaiV1beta1DocumentPage) MarshalJSON() ([]byte, error) {
  2444  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPage
  2445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2446  }
  2447  
  2448  // GoogleCloudDocumentaiV1beta1DocumentPageAnchor: Referencing the visual
  2449  // context of the entity in the Document.pages. Page anchors can be cross-page,
  2450  // consist of multiple bounding polygons and optionally reference specific
  2451  // layout element types.
  2452  type GoogleCloudDocumentaiV1beta1DocumentPageAnchor struct {
  2453  	// PageRefs: One or more references to visual page elements
  2454  	PageRefs []*GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
  2455  	// ForceSendFields is a list of field names (e.g. "PageRefs") to
  2456  	// unconditionally include in API requests. By default, fields with empty or
  2457  	// default values are omitted from API requests. See
  2458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2459  	// details.
  2460  	ForceSendFields []string `json:"-"`
  2461  	// NullFields is a list of field names (e.g. "PageRefs") to include in API
  2462  	// requests with the JSON null value. By default, fields with empty values are
  2463  	// omitted from API requests. See
  2464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2465  	NullFields []string `json:"-"`
  2466  }
  2467  
  2468  func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, error) {
  2469  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchor
  2470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2471  }
  2472  
  2473  // GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef: Represents a weak
  2474  // reference to a page element within a document.
  2475  type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct {
  2476  	// BoundingPoly: Optional. Identifies the bounding polygon of a layout element
  2477  	// on the page. If `layout_type` is set, the bounding polygon must be exactly
  2478  	// the same to the layout element it's referring to.
  2479  	BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
  2480  	// Confidence: Optional. Confidence of detected page element, if applicable.
  2481  	// Range `[0, 1]`.
  2482  	Confidence float64 `json:"confidence,omitempty"`
  2483  	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
  2484  	LayoutId string `json:"layoutId,omitempty"`
  2485  	// LayoutType: Optional. The type of the layout element that is being
  2486  	// referenced if any.
  2487  	//
  2488  	// Possible values:
  2489  	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
  2490  	//   "BLOCK" - References a Page.blocks element.
  2491  	//   "PARAGRAPH" - References a Page.paragraphs element.
  2492  	//   "LINE" - References a Page.lines element.
  2493  	//   "TOKEN" - References a Page.tokens element.
  2494  	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
  2495  	//   "TABLE" - Refrrences a Page.tables element.
  2496  	//   "FORM_FIELD" - References a Page.form_fields element.
  2497  	LayoutType string `json:"layoutType,omitempty"`
  2498  	// Page: Required. Index into the Document.pages element, for example using
  2499  	// `Document.pages` to locate the related page element. This field is skipped
  2500  	// when its value is the default `0`. See
  2501  	// https://developers.google.com/protocol-buffers/docs/proto3#json.
  2502  	Page int64 `json:"page,omitempty,string"`
  2503  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  2504  	// unconditionally include in API requests. By default, fields with empty or
  2505  	// default values are omitted from API requests. See
  2506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2507  	// details.
  2508  	ForceSendFields []string `json:"-"`
  2509  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  2510  	// requests with the JSON null value. By default, fields with empty values are
  2511  	// omitted from API requests. See
  2512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2513  	NullFields []string `json:"-"`
  2514  }
  2515  
  2516  func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
  2517  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
  2518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2519  }
  2520  
  2521  func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
  2522  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
  2523  	var s1 struct {
  2524  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2525  		*NoMethod
  2526  	}
  2527  	s1.NoMethod = (*NoMethod)(s)
  2528  	if err := json.Unmarshal(data, &s1); err != nil {
  2529  		return err
  2530  	}
  2531  	s.Confidence = float64(s1.Confidence)
  2532  	return nil
  2533  }
  2534  
  2535  // GoogleCloudDocumentaiV1beta1DocumentPageBlock: A block has a set of lines
  2536  // (collected into paragraphs) that have a common line-spacing and orientation.
  2537  type GoogleCloudDocumentaiV1beta1DocumentPageBlock struct {
  2538  	// DetectedLanguages: A list of detected languages together with confidence.
  2539  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  2540  	// Layout: Layout for Block.
  2541  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  2542  	// Provenance: The history of this annotation.
  2543  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  2544  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  2545  	// unconditionally include in API requests. By default, fields with empty or
  2546  	// default values are omitted from API requests. See
  2547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2548  	// details.
  2549  	ForceSendFields []string `json:"-"`
  2550  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  2551  	// API requests with the JSON null value. By default, fields with empty values
  2552  	// are omitted from API requests. See
  2553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2554  	NullFields []string `json:"-"`
  2555  }
  2556  
  2557  func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, error) {
  2558  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageBlock
  2559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2560  }
  2561  
  2562  // GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode: A detected barcode.
  2563  type GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode struct {
  2564  	// Barcode: Detailed barcode information of the DetectedBarcode.
  2565  	Barcode *GoogleCloudDocumentaiV1beta1Barcode `json:"barcode,omitempty"`
  2566  	// Layout: Layout for DetectedBarcode.
  2567  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  2568  	// ForceSendFields is a list of field names (e.g. "Barcode") to unconditionally
  2569  	// include in API requests. By default, fields with empty or default values are
  2570  	// omitted from API requests. See
  2571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2572  	// details.
  2573  	ForceSendFields []string `json:"-"`
  2574  	// NullFields is a list of field names (e.g. "Barcode") to include in API
  2575  	// requests with the JSON null value. By default, fields with empty values are
  2576  	// omitted from API requests. See
  2577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2578  	NullFields []string `json:"-"`
  2579  }
  2580  
  2581  func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) {
  2582  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
  2583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2584  }
  2585  
  2586  // GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected language
  2587  // for a structural component.
  2588  type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct {
  2589  	// Confidence: Confidence of detected language. Range `[0, 1]`.
  2590  	Confidence float64 `json:"confidence,omitempty"`
  2591  	// LanguageCode: The BCP-47 language code
  2592  	// (https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as
  2593  	// `en-US` or `sr-Latn`.
  2594  	LanguageCode string `json:"languageCode,omitempty"`
  2595  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  2596  	// unconditionally include in API requests. By default, fields with empty or
  2597  	// default values are omitted from API requests. See
  2598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2599  	// details.
  2600  	ForceSendFields []string `json:"-"`
  2601  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  2602  	// requests with the JSON null value. By default, fields with empty values are
  2603  	// omitted from API requests. See
  2604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2605  	NullFields []string `json:"-"`
  2606  }
  2607  
  2608  func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
  2609  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
  2610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2611  }
  2612  
  2613  func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
  2614  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
  2615  	var s1 struct {
  2616  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2617  		*NoMethod
  2618  	}
  2619  	s1.NoMethod = (*NoMethod)(s)
  2620  	if err := json.Unmarshal(data, &s1); err != nil {
  2621  		return err
  2622  	}
  2623  	s.Confidence = float64(s1.Confidence)
  2624  	return nil
  2625  }
  2626  
  2627  // GoogleCloudDocumentaiV1beta1DocumentPageDimension: Dimension for the page.
  2628  type GoogleCloudDocumentaiV1beta1DocumentPageDimension struct {
  2629  	// Height: Page height.
  2630  	Height float64 `json:"height,omitempty"`
  2631  	// Unit: Dimension unit.
  2632  	Unit string `json:"unit,omitempty"`
  2633  	// Width: Page width.
  2634  	Width float64 `json:"width,omitempty"`
  2635  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  2636  	// include in API requests. By default, fields with empty or default values are
  2637  	// omitted from API requests. See
  2638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2639  	// details.
  2640  	ForceSendFields []string `json:"-"`
  2641  	// NullFields is a list of field names (e.g. "Height") to include in API
  2642  	// requests with the JSON null value. By default, fields with empty values are
  2643  	// omitted from API requests. See
  2644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2645  	NullFields []string `json:"-"`
  2646  }
  2647  
  2648  func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) MarshalJSON() ([]byte, error) {
  2649  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
  2650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2651  }
  2652  
  2653  func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) UnmarshalJSON(data []byte) error {
  2654  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension
  2655  	var s1 struct {
  2656  		Height gensupport.JSONFloat64 `json:"height"`
  2657  		Width  gensupport.JSONFloat64 `json:"width"`
  2658  		*NoMethod
  2659  	}
  2660  	s1.NoMethod = (*NoMethod)(s)
  2661  	if err := json.Unmarshal(data, &s1); err != nil {
  2662  		return err
  2663  	}
  2664  	s.Height = float64(s1.Height)
  2665  	s.Width = float64(s1.Width)
  2666  	return nil
  2667  }
  2668  
  2669  // GoogleCloudDocumentaiV1beta1DocumentPageFormField: A form field detected on
  2670  // the page.
  2671  type GoogleCloudDocumentaiV1beta1DocumentPageFormField struct {
  2672  	// CorrectedKeyText: Created for Labeling UI to export key text. If corrections
  2673  	// were made to the text identified by the `field_name.text_anchor`, this field
  2674  	// will contain the correction.
  2675  	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
  2676  	// CorrectedValueText: Created for Labeling UI to export value text. If
  2677  	// corrections were made to the text identified by the
  2678  	// `field_value.text_anchor`, this field will contain the correction.
  2679  	CorrectedValueText string `json:"correctedValueText,omitempty"`
  2680  	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`, `Grand
  2681  	// total`, `Phone number`, etc.
  2682  	FieldName *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldName,omitempty"`
  2683  	// FieldValue: Layout for the FormField value.
  2684  	FieldValue *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldValue,omitempty"`
  2685  	// NameDetectedLanguages: A list of detected languages for name together with
  2686  	// confidence.
  2687  	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
  2688  	// Provenance: The history of this annotation.
  2689  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  2690  	// ValueDetectedLanguages: A list of detected languages for value together with
  2691  	// confidence.
  2692  	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
  2693  	// ValueType: If the value is non-textual, this field represents the type.
  2694  	// Current valid values are: - blank (this indicates the `field_value` is
  2695  	// normal text) - `unfilled_checkbox` - `filled_checkbox`
  2696  	ValueType string `json:"valueType,omitempty"`
  2697  	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
  2698  	// unconditionally include in API requests. By default, fields with empty or
  2699  	// default values are omitted from API requests. See
  2700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2701  	// details.
  2702  	ForceSendFields []string `json:"-"`
  2703  	// NullFields is a list of field names (e.g. "CorrectedKeyText") to include in
  2704  	// API requests with the JSON null value. By default, fields with empty values
  2705  	// are omitted from API requests. See
  2706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2707  	NullFields []string `json:"-"`
  2708  }
  2709  
  2710  func (s *GoogleCloudDocumentaiV1beta1DocumentPageFormField) MarshalJSON() ([]byte, error) {
  2711  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageFormField
  2712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2713  }
  2714  
  2715  // GoogleCloudDocumentaiV1beta1DocumentPageImage: Rendered image contents for
  2716  // this page.
  2717  type GoogleCloudDocumentaiV1beta1DocumentPageImage struct {
  2718  	// Content: Raw byte content of the image.
  2719  	Content string `json:"content,omitempty"`
  2720  	// Height: Height of the image in pixels.
  2721  	Height int64 `json:"height,omitempty"`
  2722  	// MimeType: Encoding media type (MIME type)
  2723  	// (https://www.iana.org/assignments/media-types/media-types.xhtml) for the
  2724  	// image.
  2725  	MimeType string `json:"mimeType,omitempty"`
  2726  	// Width: Width of the image in pixels.
  2727  	Width int64 `json:"width,omitempty"`
  2728  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2729  	// include in API requests. By default, fields with empty or default values are
  2730  	// omitted from API requests. See
  2731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2732  	// details.
  2733  	ForceSendFields []string `json:"-"`
  2734  	// NullFields is a list of field names (e.g. "Content") to include in API
  2735  	// requests with the JSON null value. By default, fields with empty values are
  2736  	// omitted from API requests. See
  2737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2738  	NullFields []string `json:"-"`
  2739  }
  2740  
  2741  func (s *GoogleCloudDocumentaiV1beta1DocumentPageImage) MarshalJSON() ([]byte, error) {
  2742  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImage
  2743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2744  }
  2745  
  2746  // GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores: Image quality
  2747  // scores for the page image.
  2748  type GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores struct {
  2749  	// DetectedDefects: A list of detected defects.
  2750  	DetectedDefects []*GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"`
  2751  	// QualityScore: The overall quality score. Range `[0, 1]` where `1` is perfect
  2752  	// quality.
  2753  	QualityScore float64 `json:"qualityScore,omitempty"`
  2754  	// ForceSendFields is a list of field names (e.g. "DetectedDefects") to
  2755  	// unconditionally include in API requests. By default, fields with empty or
  2756  	// default values are omitted from API requests. See
  2757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2758  	// details.
  2759  	ForceSendFields []string `json:"-"`
  2760  	// NullFields is a list of field names (e.g. "DetectedDefects") to include in
  2761  	// API requests with the JSON null value. By default, fields with empty values
  2762  	// are omitted from API requests. See
  2763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2764  	NullFields []string `json:"-"`
  2765  }
  2766  
  2767  func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) {
  2768  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
  2769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2770  }
  2771  
  2772  func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error {
  2773  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
  2774  	var s1 struct {
  2775  		QualityScore gensupport.JSONFloat64 `json:"qualityScore"`
  2776  		*NoMethod
  2777  	}
  2778  	s1.NoMethod = (*NoMethod)(s)
  2779  	if err := json.Unmarshal(data, &s1); err != nil {
  2780  		return err
  2781  	}
  2782  	s.QualityScore = float64(s1.QualityScore)
  2783  	return nil
  2784  }
  2785  
  2786  // GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect:
  2787  // Image Quality Defects
  2788  type GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect struct {
  2789  	// Confidence: Confidence of detected defect. Range `[0, 1]` where `1`
  2790  	// indicates strong confidence that the defect exists.
  2791  	Confidence float64 `json:"confidence,omitempty"`
  2792  	// Type: Name of the defect type. Supported values are: -
  2793  	// `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` -
  2794  	// `quality/defect_faint` - `quality/defect_text_too_small` -
  2795  	// `quality/defect_document_cutoff` - `quality/defect_text_cutoff` -
  2796  	// `quality/defect_glare`
  2797  	Type string `json:"type,omitempty"`
  2798  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  2799  	// unconditionally include in API requests. By default, fields with empty or
  2800  	// default values are omitted from API requests. See
  2801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2802  	// details.
  2803  	ForceSendFields []string `json:"-"`
  2804  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  2805  	// requests with the JSON null value. By default, fields with empty values are
  2806  	// omitted from API requests. See
  2807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2808  	NullFields []string `json:"-"`
  2809  }
  2810  
  2811  func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) {
  2812  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
  2813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2814  }
  2815  
  2816  func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error {
  2817  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
  2818  	var s1 struct {
  2819  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2820  		*NoMethod
  2821  	}
  2822  	s1.NoMethod = (*NoMethod)(s)
  2823  	if err := json.Unmarshal(data, &s1); err != nil {
  2824  		return err
  2825  	}
  2826  	s.Confidence = float64(s1.Confidence)
  2827  	return nil
  2828  }
  2829  
  2830  // GoogleCloudDocumentaiV1beta1DocumentPageLayout: Visual element describing a
  2831  // layout unit on a page.
  2832  type GoogleCloudDocumentaiV1beta1DocumentPageLayout struct {
  2833  	// BoundingPoly: The bounding polygon for the Layout.
  2834  	BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
  2835  	// Confidence: Confidence of the current Layout within context of the object
  2836  	// this layout is for. e.g. confidence can be for a single token, a table, a
  2837  	// visual element, etc. depending on context. Range `[0, 1]`.
  2838  	Confidence float64 `json:"confidence,omitempty"`
  2839  	// Orientation: Detected orientation for the Layout.
  2840  	//
  2841  	// Possible values:
  2842  	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
  2843  	//   "PAGE_UP" - Orientation is aligned with page up.
  2844  	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the head 90
  2845  	// degrees clockwise from upright to read.
  2846  	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head 180
  2847  	// degrees from upright to read.
  2848  	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head 90
  2849  	// degrees counterclockwise from upright to read.
  2850  	Orientation string `json:"orientation,omitempty"`
  2851  	// TextAnchor: Text anchor indexing into the Document.text.
  2852  	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
  2853  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  2854  	// unconditionally include in API requests. By default, fields with empty or
  2855  	// default values are omitted from API requests. See
  2856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2857  	// details.
  2858  	ForceSendFields []string `json:"-"`
  2859  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  2860  	// requests with the JSON null value. By default, fields with empty values are
  2861  	// omitted from API requests. See
  2862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2863  	NullFields []string `json:"-"`
  2864  }
  2865  
  2866  func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) MarshalJSON() ([]byte, error) {
  2867  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
  2868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2869  }
  2870  
  2871  func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) UnmarshalJSON(data []byte) error {
  2872  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout
  2873  	var s1 struct {
  2874  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2875  		*NoMethod
  2876  	}
  2877  	s1.NoMethod = (*NoMethod)(s)
  2878  	if err := json.Unmarshal(data, &s1); err != nil {
  2879  		return err
  2880  	}
  2881  	s.Confidence = float64(s1.Confidence)
  2882  	return nil
  2883  }
  2884  
  2885  // GoogleCloudDocumentaiV1beta1DocumentPageLine: A collection of tokens that a
  2886  // human would perceive as a line. Does not cross column boundaries, can be
  2887  // horizontal, vertical, etc.
  2888  type GoogleCloudDocumentaiV1beta1DocumentPageLine struct {
  2889  	// DetectedLanguages: A list of detected languages together with confidence.
  2890  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  2891  	// Layout: Layout for Line.
  2892  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  2893  	// Provenance: The history of this annotation.
  2894  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  2895  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  2896  	// unconditionally include in API requests. By default, fields with empty or
  2897  	// default values are omitted from API requests. See
  2898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2899  	// details.
  2900  	ForceSendFields []string `json:"-"`
  2901  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  2902  	// API requests with the JSON null value. By default, fields with empty values
  2903  	// are omitted from API requests. See
  2904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2905  	NullFields []string `json:"-"`
  2906  }
  2907  
  2908  func (s *GoogleCloudDocumentaiV1beta1DocumentPageLine) MarshalJSON() ([]byte, error) {
  2909  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLine
  2910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2911  }
  2912  
  2913  // GoogleCloudDocumentaiV1beta1DocumentPageMatrix: Representation for
  2914  // transformation matrix, intended to be compatible and used with OpenCV format
  2915  // for image manipulation.
  2916  type GoogleCloudDocumentaiV1beta1DocumentPageMatrix struct {
  2917  	// Cols: Number of columns in the matrix.
  2918  	Cols int64 `json:"cols,omitempty"`
  2919  	// Data: The matrix data.
  2920  	Data string `json:"data,omitempty"`
  2921  	// Rows: Number of rows in the matrix.
  2922  	Rows int64 `json:"rows,omitempty"`
  2923  	// Type: This encodes information about what data type the matrix uses. For
  2924  	// example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV
  2925  	// primitive data types, please refer to
  2926  	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
  2927  	Type int64 `json:"type,omitempty"`
  2928  	// ForceSendFields is a list of field names (e.g. "Cols") to unconditionally
  2929  	// include in API requests. By default, fields with empty or default values are
  2930  	// omitted from API requests. See
  2931  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2932  	// details.
  2933  	ForceSendFields []string `json:"-"`
  2934  	// NullFields is a list of field names (e.g. "Cols") to include in API requests
  2935  	// with the JSON null value. By default, fields with empty values are omitted
  2936  	// from API requests. See
  2937  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2938  	NullFields []string `json:"-"`
  2939  }
  2940  
  2941  func (s *GoogleCloudDocumentaiV1beta1DocumentPageMatrix) MarshalJSON() ([]byte, error) {
  2942  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageMatrix
  2943  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2944  }
  2945  
  2946  // GoogleCloudDocumentaiV1beta1DocumentPageParagraph: A collection of lines
  2947  // that a human would perceive as a paragraph.
  2948  type GoogleCloudDocumentaiV1beta1DocumentPageParagraph struct {
  2949  	// DetectedLanguages: A list of detected languages together with confidence.
  2950  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  2951  	// Layout: Layout for Paragraph.
  2952  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  2953  	// Provenance: The history of this annotation.
  2954  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  2955  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  2956  	// unconditionally include in API requests. By default, fields with empty or
  2957  	// default values are omitted from API requests. See
  2958  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2959  	// details.
  2960  	ForceSendFields []string `json:"-"`
  2961  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  2962  	// API requests with the JSON null value. By default, fields with empty values
  2963  	// are omitted from API requests. See
  2964  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2965  	NullFields []string `json:"-"`
  2966  }
  2967  
  2968  func (s *GoogleCloudDocumentaiV1beta1DocumentPageParagraph) MarshalJSON() ([]byte, error) {
  2969  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageParagraph
  2970  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2971  }
  2972  
  2973  // GoogleCloudDocumentaiV1beta1DocumentPageSymbol: A detected symbol.
  2974  type GoogleCloudDocumentaiV1beta1DocumentPageSymbol struct {
  2975  	// DetectedLanguages: A list of detected languages together with confidence.
  2976  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  2977  	// Layout: Layout for Symbol.
  2978  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  2979  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  2980  	// unconditionally include in API requests. By default, fields with empty or
  2981  	// default values are omitted from API requests. See
  2982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2983  	// details.
  2984  	ForceSendFields []string `json:"-"`
  2985  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  2986  	// API requests with the JSON null value. By default, fields with empty values
  2987  	// are omitted from API requests. See
  2988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2989  	NullFields []string `json:"-"`
  2990  }
  2991  
  2992  func (s *GoogleCloudDocumentaiV1beta1DocumentPageSymbol) MarshalJSON() ([]byte, error) {
  2993  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageSymbol
  2994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2995  }
  2996  
  2997  // GoogleCloudDocumentaiV1beta1DocumentPageTable: A table representation
  2998  // similar to HTML table structure.
  2999  type GoogleCloudDocumentaiV1beta1DocumentPageTable struct {
  3000  	// BodyRows: Body rows of the table.
  3001  	BodyRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"bodyRows,omitempty"`
  3002  	// DetectedLanguages: A list of detected languages together with confidence.
  3003  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  3004  	// HeaderRows: Header rows of the table.
  3005  	HeaderRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"headerRows,omitempty"`
  3006  	// Layout: Layout for Table.
  3007  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  3008  	// Provenance: The history of this table.
  3009  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  3010  	// ForceSendFields is a list of field names (e.g. "BodyRows") to
  3011  	// unconditionally include in API requests. By default, fields with empty or
  3012  	// default values are omitted from API requests. See
  3013  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3014  	// details.
  3015  	ForceSendFields []string `json:"-"`
  3016  	// NullFields is a list of field names (e.g. "BodyRows") to include in API
  3017  	// requests with the JSON null value. By default, fields with empty values are
  3018  	// omitted from API requests. See
  3019  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3020  	NullFields []string `json:"-"`
  3021  }
  3022  
  3023  func (s *GoogleCloudDocumentaiV1beta1DocumentPageTable) MarshalJSON() ([]byte, error) {
  3024  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTable
  3025  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3026  }
  3027  
  3028  // GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell: A cell
  3029  // representation inside the table.
  3030  type GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell struct {
  3031  	// ColSpan: How many columns this cell spans.
  3032  	ColSpan int64 `json:"colSpan,omitempty"`
  3033  	// DetectedLanguages: A list of detected languages together with confidence.
  3034  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  3035  	// Layout: Layout for TableCell.
  3036  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  3037  	// RowSpan: How many rows this cell spans.
  3038  	RowSpan int64 `json:"rowSpan,omitempty"`
  3039  	// ForceSendFields is a list of field names (e.g. "ColSpan") to unconditionally
  3040  	// include in API requests. By default, fields with empty or default values are
  3041  	// omitted from API requests. See
  3042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3043  	// details.
  3044  	ForceSendFields []string `json:"-"`
  3045  	// NullFields is a list of field names (e.g. "ColSpan") to include in API
  3046  	// requests with the JSON null value. By default, fields with empty values are
  3047  	// omitted from API requests. See
  3048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3049  	NullFields []string `json:"-"`
  3050  }
  3051  
  3052  func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
  3053  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
  3054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3055  }
  3056  
  3057  // GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow: A row of table cells.
  3058  type GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow struct {
  3059  	// Cells: Cells that make up this row.
  3060  	Cells []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell `json:"cells,omitempty"`
  3061  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
  3062  	// include in API requests. By default, fields with empty or default values are
  3063  	// omitted from API requests. See
  3064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3065  	// details.
  3066  	ForceSendFields []string `json:"-"`
  3067  	// NullFields is a list of field names (e.g. "Cells") to include in API
  3068  	// requests with the JSON null value. By default, fields with empty values are
  3069  	// omitted from API requests. See
  3070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3071  	NullFields []string `json:"-"`
  3072  }
  3073  
  3074  func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
  3075  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
  3076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3077  }
  3078  
  3079  // GoogleCloudDocumentaiV1beta1DocumentPageToken: A detected token.
  3080  type GoogleCloudDocumentaiV1beta1DocumentPageToken struct {
  3081  	// DetectedBreak: Detected break at the end of a Token.
  3082  	DetectedBreak *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
  3083  	// DetectedLanguages: A list of detected languages together with confidence.
  3084  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  3085  	// Layout: Layout for Token.
  3086  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  3087  	// Provenance: The history of this annotation.
  3088  	Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  3089  	// StyleInfo: Text style attributes.
  3090  	StyleInfo *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"`
  3091  	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
  3092  	// unconditionally include in API requests. By default, fields with empty or
  3093  	// default values are omitted from API requests. See
  3094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3095  	// details.
  3096  	ForceSendFields []string `json:"-"`
  3097  	// NullFields is a list of field names (e.g. "DetectedBreak") to include in API
  3098  	// requests with the JSON null value. By default, fields with empty values are
  3099  	// omitted from API requests. See
  3100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3101  	NullFields []string `json:"-"`
  3102  }
  3103  
  3104  func (s *GoogleCloudDocumentaiV1beta1DocumentPageToken) MarshalJSON() ([]byte, error) {
  3105  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageToken
  3106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3107  }
  3108  
  3109  // GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak: Detected break
  3110  // at the end of a Token.
  3111  type GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak struct {
  3112  	// Type: Detected break type.
  3113  	//
  3114  	// Possible values:
  3115  	//   "TYPE_UNSPECIFIED" - Unspecified break type.
  3116  	//   "SPACE" - A single whitespace.
  3117  	//   "WIDE_SPACE" - A wider whitespace.
  3118  	//   "HYPHEN" - A hyphen that indicates that a token has been split across
  3119  	// lines.
  3120  	Type string `json:"type,omitempty"`
  3121  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  3122  	// include in API requests. By default, fields with empty or default values are
  3123  	// omitted from API requests. See
  3124  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3125  	// details.
  3126  	ForceSendFields []string `json:"-"`
  3127  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  3128  	// with the JSON null value. By default, fields with empty values are omitted
  3129  	// from API requests. See
  3130  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3131  	NullFields []string `json:"-"`
  3132  }
  3133  
  3134  func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
  3135  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
  3136  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3137  }
  3138  
  3139  // GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo: Font and other text
  3140  // style attributes.
  3141  type GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo struct {
  3142  	// BackgroundColor: Color of the background.
  3143  	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
  3144  	// Bold: Whether the text is bold (equivalent to font_weight is at least
  3145  	// `700`).
  3146  	Bold bool `json:"bold,omitempty"`
  3147  	// FontSize: Font size in points (`1` point is `¹⁄₇₂` inches).
  3148  	FontSize int64 `json:"fontSize,omitempty"`
  3149  	// FontType: Name or style of the font.
  3150  	FontType string `json:"fontType,omitempty"`
  3151  	// FontWeight: TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
  3152  	// Normal is `400`, bold is `700`.
  3153  	FontWeight int64 `json:"fontWeight,omitempty"`
  3154  	// Handwritten: Whether the text is handwritten.
  3155  	Handwritten bool `json:"handwritten,omitempty"`
  3156  	// Italic: Whether the text is italic.
  3157  	Italic bool `json:"italic,omitempty"`
  3158  	// LetterSpacing: Letter spacing in points.
  3159  	LetterSpacing float64 `json:"letterSpacing,omitempty"`
  3160  	// PixelFontSize: Font size in pixels, equal to _unrounded font_size_ *
  3161  	// _resolution_ ÷ `72.0`.
  3162  	PixelFontSize float64 `json:"pixelFontSize,omitempty"`
  3163  	// Smallcaps: Whether the text is in small caps. This feature is not supported
  3164  	// yet.
  3165  	Smallcaps bool `json:"smallcaps,omitempty"`
  3166  	// Strikeout: Whether the text is strikethrough. This feature is not supported
  3167  	// yet.
  3168  	Strikeout bool `json:"strikeout,omitempty"`
  3169  	// Subscript: Whether the text is a subscript. This feature is not supported
  3170  	// yet.
  3171  	Subscript bool `json:"subscript,omitempty"`
  3172  	// Superscript: Whether the text is a superscript. This feature is not
  3173  	// supported yet.
  3174  	Superscript bool `json:"superscript,omitempty"`
  3175  	// TextColor: Color of the text.
  3176  	TextColor *GoogleTypeColor `json:"textColor,omitempty"`
  3177  	// Underlined: Whether the text is underlined.
  3178  	Underlined bool `json:"underlined,omitempty"`
  3179  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  3180  	// unconditionally include in API requests. By default, fields with empty or
  3181  	// default values are omitted from API requests. See
  3182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3183  	// details.
  3184  	ForceSendFields []string `json:"-"`
  3185  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
  3186  	// API requests with the JSON null value. By default, fields with empty values
  3187  	// are omitted from API requests. See
  3188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3189  	NullFields []string `json:"-"`
  3190  }
  3191  
  3192  func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) {
  3193  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo
  3194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3195  }
  3196  
  3197  func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error {
  3198  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo
  3199  	var s1 struct {
  3200  		LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"`
  3201  		PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"`
  3202  		*NoMethod
  3203  	}
  3204  	s1.NoMethod = (*NoMethod)(s)
  3205  	if err := json.Unmarshal(data, &s1); err != nil {
  3206  		return err
  3207  	}
  3208  	s.LetterSpacing = float64(s1.LetterSpacing)
  3209  	s.PixelFontSize = float64(s1.PixelFontSize)
  3210  	return nil
  3211  }
  3212  
  3213  // GoogleCloudDocumentaiV1beta1DocumentPageVisualElement: Detected non-text
  3214  // visual elements e.g. checkbox, signature etc. on the page.
  3215  type GoogleCloudDocumentaiV1beta1DocumentPageVisualElement struct {
  3216  	// DetectedLanguages: A list of detected languages together with confidence.
  3217  	DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  3218  	// Layout: Layout for VisualElement.
  3219  	Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"`
  3220  	// Type: Type of the VisualElement.
  3221  	Type string `json:"type,omitempty"`
  3222  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  3223  	// unconditionally include in API requests. By default, fields with empty or
  3224  	// default values are omitted from API requests. See
  3225  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3226  	// details.
  3227  	ForceSendFields []string `json:"-"`
  3228  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  3229  	// API requests with the JSON null value. By default, fields with empty values
  3230  	// are omitted from API requests. See
  3231  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3232  	NullFields []string `json:"-"`
  3233  }
  3234  
  3235  func (s *GoogleCloudDocumentaiV1beta1DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
  3236  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
  3237  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3238  }
  3239  
  3240  // GoogleCloudDocumentaiV1beta1DocumentProvenance: Structure to identify
  3241  // provenance relationships between annotations in different revisions.
  3242  type GoogleCloudDocumentaiV1beta1DocumentProvenance struct {
  3243  	// Id: The Id of this operation. Needs to be unique within the scope of the
  3244  	// revision.
  3245  	Id int64 `json:"id,omitempty"`
  3246  	// Parents: References to the original elements that are replaced.
  3247  	Parents []*GoogleCloudDocumentaiV1beta1DocumentProvenanceParent `json:"parents,omitempty"`
  3248  	// Revision: The index of the revision that produced this element.
  3249  	Revision int64 `json:"revision,omitempty"`
  3250  	// Type: The type of provenance operation.
  3251  	//
  3252  	// Possible values:
  3253  	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. If no operation
  3254  	// is specified a provenance entry is simply used to match against a `parent`.
  3255  	//   "ADD" - Add an element.
  3256  	//   "REMOVE" - Remove an element identified by `parent`.
  3257  	//   "UPDATE" - Updates any fields within the given provenance scope of the
  3258  	// message. It overwrites the fields rather than replacing them. Use this when
  3259  	// you want to update a field value of an entity without also updating all the
  3260  	// child properties.
  3261  	//   "REPLACE" - Currently unused. Replace an element identified by `parent`.
  3262  	//   "EVAL_REQUESTED" - Deprecated. Request human review for the element
  3263  	// identified by `parent`.
  3264  	//   "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at human
  3265  	// review, confidence will be set to 1.0.
  3266  	//   "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation process.
  3267  	Type string `json:"type,omitempty"`
  3268  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  3269  	// include in API requests. By default, fields with empty or default values are
  3270  	// omitted from API requests. See
  3271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3272  	// details.
  3273  	ForceSendFields []string `json:"-"`
  3274  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  3275  	// with the JSON null value. By default, fields with empty values are omitted
  3276  	// from API requests. See
  3277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3278  	NullFields []string `json:"-"`
  3279  }
  3280  
  3281  func (s *GoogleCloudDocumentaiV1beta1DocumentProvenance) MarshalJSON() ([]byte, error) {
  3282  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenance
  3283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3284  }
  3285  
  3286  // GoogleCloudDocumentaiV1beta1DocumentProvenanceParent: The parent element the
  3287  // current element is based on. Used for referencing/aligning, removal and
  3288  // replacement operations.
  3289  type GoogleCloudDocumentaiV1beta1DocumentProvenanceParent struct {
  3290  	// Id: The id of the parent provenance.
  3291  	Id int64 `json:"id,omitempty"`
  3292  	// Index: The index of the parent item in the corresponding item list (eg. list
  3293  	// of entities, properties within entities, etc.) in the parent revision.
  3294  	Index int64 `json:"index,omitempty"`
  3295  	// Revision: The index of the index into current revision's parent_ids list.
  3296  	Revision int64 `json:"revision,omitempty"`
  3297  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  3298  	// include in API requests. By default, fields with empty or default values are
  3299  	// omitted from API requests. See
  3300  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3301  	// details.
  3302  	ForceSendFields []string `json:"-"`
  3303  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  3304  	// with the JSON null value. By default, fields with empty values are omitted
  3305  	// from API requests. See
  3306  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3307  	NullFields []string `json:"-"`
  3308  }
  3309  
  3310  func (s *GoogleCloudDocumentaiV1beta1DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
  3311  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
  3312  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3313  }
  3314  
  3315  // GoogleCloudDocumentaiV1beta1DocumentRevision: Contains past or forward
  3316  // revisions of this document.
  3317  type GoogleCloudDocumentaiV1beta1DocumentRevision struct {
  3318  	// Agent: If the change was made by a person specify the name or id of that
  3319  	// person.
  3320  	Agent string `json:"agent,omitempty"`
  3321  	// CreateTime: The time that the revision was created, internally generated by
  3322  	// doc proto storage at the time of create.
  3323  	CreateTime string `json:"createTime,omitempty"`
  3324  	// HumanReview: Human Review information of this revision.
  3325  	HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"`
  3326  	// Id: Id of the revision, internally generated by doc proto storage. Unique
  3327  	// within the context of the document.
  3328  	Id string `json:"id,omitempty"`
  3329  	// Parent: The revisions that this revision is based on. This can include one
  3330  	// or more parent (when documents are merged.) This field represents the index
  3331  	// into the `revisions` field.
  3332  	Parent []int64 `json:"parent,omitempty"`
  3333  	// ParentIds: The revisions that this revision is based on. Must include all
  3334  	// the ids that have anything to do with this revision - eg. there are
  3335  	// `provenance.parent.revision` fields that index into this field.
  3336  	ParentIds []string `json:"parentIds,omitempty"`
  3337  	// Processor: If the annotation was made by processor identify the processor by
  3338  	// its resource name.
  3339  	Processor string `json:"processor,omitempty"`
  3340  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
  3341  	// include in API requests. By default, fields with empty or default values are
  3342  	// omitted from API requests. See
  3343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3344  	// details.
  3345  	ForceSendFields []string `json:"-"`
  3346  	// NullFields is a list of field names (e.g. "Agent") to include in API
  3347  	// requests with the JSON null value. By default, fields with empty values are
  3348  	// omitted from API requests. See
  3349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3350  	NullFields []string `json:"-"`
  3351  }
  3352  
  3353  func (s *GoogleCloudDocumentaiV1beta1DocumentRevision) MarshalJSON() ([]byte, error) {
  3354  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevision
  3355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3356  }
  3357  
  3358  // GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview: Human Review
  3359  // information of the document.
  3360  type GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview struct {
  3361  	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
  3362  	State string `json:"state,omitempty"`
  3363  	// StateMessage: A message providing more details about the current state of
  3364  	// processing. For example, the rejection reason when the state is `rejected`.
  3365  	StateMessage string `json:"stateMessage,omitempty"`
  3366  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  3367  	// include in API requests. By default, fields with empty or default values are
  3368  	// omitted from API requests. See
  3369  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3370  	// details.
  3371  	ForceSendFields []string `json:"-"`
  3372  	// NullFields is a list of field names (e.g. "State") to include in API
  3373  	// requests with the JSON null value. By default, fields with empty values are
  3374  	// omitted from API requests. See
  3375  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3376  	NullFields []string `json:"-"`
  3377  }
  3378  
  3379  func (s *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
  3380  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
  3381  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3382  }
  3383  
  3384  // GoogleCloudDocumentaiV1beta1DocumentShardInfo: For a large document,
  3385  // sharding may be performed to produce several document shards. Each document
  3386  // shard contains this field to detail which shard it is.
  3387  type GoogleCloudDocumentaiV1beta1DocumentShardInfo struct {
  3388  	// ShardCount: Total number of shards.
  3389  	ShardCount int64 `json:"shardCount,omitempty,string"`
  3390  	// ShardIndex: The 0-based index of this shard.
  3391  	ShardIndex int64 `json:"shardIndex,omitempty,string"`
  3392  	// TextOffset: The index of the first character in Document.text in the overall
  3393  	// document global text.
  3394  	TextOffset int64 `json:"textOffset,omitempty,string"`
  3395  	// ForceSendFields is a list of field names (e.g. "ShardCount") to
  3396  	// unconditionally include in API requests. By default, fields with empty or
  3397  	// default values are omitted from API requests. See
  3398  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3399  	// details.
  3400  	ForceSendFields []string `json:"-"`
  3401  	// NullFields is a list of field names (e.g. "ShardCount") to include in API
  3402  	// requests with the JSON null value. By default, fields with empty values are
  3403  	// omitted from API requests. See
  3404  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3405  	NullFields []string `json:"-"`
  3406  }
  3407  
  3408  func (s *GoogleCloudDocumentaiV1beta1DocumentShardInfo) MarshalJSON() ([]byte, error) {
  3409  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentShardInfo
  3410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3411  }
  3412  
  3413  // GoogleCloudDocumentaiV1beta1DocumentStyle: Annotation for common text style
  3414  // attributes. This adheres to CSS conventions as much as possible.
  3415  type GoogleCloudDocumentaiV1beta1DocumentStyle struct {
  3416  	// BackgroundColor: Text background color.
  3417  	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
  3418  	// Color: Text color.
  3419  	Color *GoogleTypeColor `json:"color,omitempty"`
  3420  	// FontFamily: Font family such as `Arial`, `Times New Roman`.
  3421  	// https://www.w3schools.com/cssref/pr_font_font-family.asp
  3422  	FontFamily string `json:"fontFamily,omitempty"`
  3423  	// FontSize: Font size.
  3424  	FontSize *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize `json:"fontSize,omitempty"`
  3425  	// FontWeight: Font weight
  3426  	// (https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are
  3427  	// `normal`, `bold`, `bolder`, and `lighter`.
  3428  	FontWeight string `json:"fontWeight,omitempty"`
  3429  	// TextAnchor: Text anchor indexing into the Document.text.
  3430  	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
  3431  	// TextDecoration: Text decoration
  3432  	// (https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS
  3433  	// standard.
  3434  	TextDecoration string `json:"textDecoration,omitempty"`
  3435  	// TextStyle: Text style
  3436  	// (https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values
  3437  	// are `normal`, `italic`, and `oblique`.
  3438  	TextStyle string `json:"textStyle,omitempty"`
  3439  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  3440  	// unconditionally include in API requests. By default, fields with empty or
  3441  	// default values are omitted from API requests. See
  3442  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3443  	// details.
  3444  	ForceSendFields []string `json:"-"`
  3445  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
  3446  	// API requests with the JSON null value. By default, fields with empty values
  3447  	// are omitted from API requests. See
  3448  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3449  	NullFields []string `json:"-"`
  3450  }
  3451  
  3452  func (s *GoogleCloudDocumentaiV1beta1DocumentStyle) MarshalJSON() ([]byte, error) {
  3453  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyle
  3454  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3455  }
  3456  
  3457  // GoogleCloudDocumentaiV1beta1DocumentStyleFontSize: Font size with unit.
  3458  type GoogleCloudDocumentaiV1beta1DocumentStyleFontSize struct {
  3459  	// Size: Font size for the text.
  3460  	Size float64 `json:"size,omitempty"`
  3461  	// Unit: Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  3462  	// `pt`).
  3463  	Unit string `json:"unit,omitempty"`
  3464  	// ForceSendFields is a list of field names (e.g. "Size") to unconditionally
  3465  	// include in API requests. By default, fields with empty or default values are
  3466  	// omitted from API requests. See
  3467  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3468  	// details.
  3469  	ForceSendFields []string `json:"-"`
  3470  	// NullFields is a list of field names (e.g. "Size") to include in API requests
  3471  	// with the JSON null value. By default, fields with empty values are omitted
  3472  	// from API requests. See
  3473  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3474  	NullFields []string `json:"-"`
  3475  }
  3476  
  3477  func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
  3478  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
  3479  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3480  }
  3481  
  3482  func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
  3483  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
  3484  	var s1 struct {
  3485  		Size gensupport.JSONFloat64 `json:"size"`
  3486  		*NoMethod
  3487  	}
  3488  	s1.NoMethod = (*NoMethod)(s)
  3489  	if err := json.Unmarshal(data, &s1); err != nil {
  3490  		return err
  3491  	}
  3492  	s.Size = float64(s1.Size)
  3493  	return nil
  3494  }
  3495  
  3496  // GoogleCloudDocumentaiV1beta1DocumentTextAnchor: Text reference indexing into
  3497  // the Document.text.
  3498  type GoogleCloudDocumentaiV1beta1DocumentTextAnchor struct {
  3499  	// Content: Contains the content of the text span so that users do not have to
  3500  	// look it up in the text_segments. It is always populated for formFields.
  3501  	Content string `json:"content,omitempty"`
  3502  	// TextSegments: The text segments from the Document.text.
  3503  	TextSegments []*GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
  3504  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  3505  	// include in API requests. By default, fields with empty or default values are
  3506  	// omitted from API requests. See
  3507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3508  	// details.
  3509  	ForceSendFields []string `json:"-"`
  3510  	// NullFields is a list of field names (e.g. "Content") to include in API
  3511  	// requests with the JSON null value. By default, fields with empty values are
  3512  	// omitted from API requests. See
  3513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3514  	NullFields []string `json:"-"`
  3515  }
  3516  
  3517  func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchor) MarshalJSON() ([]byte, error) {
  3518  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchor
  3519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3520  }
  3521  
  3522  // GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment: A text segment in
  3523  // the Document.text. The indices may be out of bounds which indicate that the
  3524  // text extends into another document shard for large sharded documents. See
  3525  // ShardInfo.text_offset
  3526  type GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment struct {
  3527  	// EndIndex: TextSegment half open end UTF-8 char index in the Document.text.
  3528  	EndIndex int64 `json:"endIndex,omitempty,string"`
  3529  	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
  3530  	StartIndex int64 `json:"startIndex,omitempty,string"`
  3531  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  3532  	// unconditionally include in API requests. By default, fields with empty or
  3533  	// default values are omitted from API requests. See
  3534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3535  	// details.
  3536  	ForceSendFields []string `json:"-"`
  3537  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  3538  	// requests with the JSON null value. By default, fields with empty values are
  3539  	// omitted from API requests. See
  3540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3541  	NullFields []string `json:"-"`
  3542  }
  3543  
  3544  func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
  3545  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
  3546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3547  }
  3548  
  3549  // GoogleCloudDocumentaiV1beta1DocumentTextChange: This message is used for
  3550  // text changes aka. OCR corrections.
  3551  type GoogleCloudDocumentaiV1beta1DocumentTextChange struct {
  3552  	// ChangedText: The text that replaces the text identified in the
  3553  	// `text_anchor`.
  3554  	ChangedText string `json:"changedText,omitempty"`
  3555  	// Provenance: The history of this annotation.
  3556  	Provenance []*GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"`
  3557  	// TextAnchor: Provenance of the correction. Text anchor indexing into the
  3558  	// Document.text. There can only be a single `TextAnchor.text_segments`
  3559  	// element. If the start and end index of the text segment are the same, the
  3560  	// text change is inserted before that index.
  3561  	TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"`
  3562  	// ForceSendFields is a list of field names (e.g. "ChangedText") to
  3563  	// unconditionally include in API requests. By default, fields with empty or
  3564  	// default values are omitted from API requests. See
  3565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3566  	// details.
  3567  	ForceSendFields []string `json:"-"`
  3568  	// NullFields is a list of field names (e.g. "ChangedText") to include in API
  3569  	// requests with the JSON null value. By default, fields with empty values are
  3570  	// omitted from API requests. See
  3571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3572  	NullFields []string `json:"-"`
  3573  }
  3574  
  3575  func (s *GoogleCloudDocumentaiV1beta1DocumentTextChange) MarshalJSON() ([]byte, error) {
  3576  	type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextChange
  3577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3578  }
  3579  
  3580  // GoogleCloudDocumentaiV1beta1GcsDestination: The Google Cloud Storage
  3581  // location where the output file will be written to.
  3582  type GoogleCloudDocumentaiV1beta1GcsDestination struct {
  3583  	Uri string `json:"uri,omitempty"`
  3584  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  3585  	// include in API requests. By default, fields with empty or default values are
  3586  	// omitted from API requests. See
  3587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3588  	// details.
  3589  	ForceSendFields []string `json:"-"`
  3590  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  3591  	// with the JSON null value. By default, fields with empty values are omitted
  3592  	// from API requests. See
  3593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3594  	NullFields []string `json:"-"`
  3595  }
  3596  
  3597  func (s *GoogleCloudDocumentaiV1beta1GcsDestination) MarshalJSON() ([]byte, error) {
  3598  	type NoMethod GoogleCloudDocumentaiV1beta1GcsDestination
  3599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3600  }
  3601  
  3602  // GoogleCloudDocumentaiV1beta1GcsSource: The Google Cloud Storage location
  3603  // where the input file will be read from.
  3604  type GoogleCloudDocumentaiV1beta1GcsSource struct {
  3605  	Uri string `json:"uri,omitempty"`
  3606  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  3607  	// include in API requests. By default, fields with empty or default values are
  3608  	// omitted from API requests. See
  3609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3610  	// details.
  3611  	ForceSendFields []string `json:"-"`
  3612  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  3613  	// with the JSON null value. By default, fields with empty values are omitted
  3614  	// from API requests. See
  3615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3616  	NullFields []string `json:"-"`
  3617  }
  3618  
  3619  func (s *GoogleCloudDocumentaiV1beta1GcsSource) MarshalJSON() ([]byte, error) {
  3620  	type NoMethod GoogleCloudDocumentaiV1beta1GcsSource
  3621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3622  }
  3623  
  3624  // GoogleCloudDocumentaiV1beta1InputConfig: The desired input location and
  3625  // metadata.
  3626  type GoogleCloudDocumentaiV1beta1InputConfig struct {
  3627  	// GcsSource: The Google Cloud Storage location to read the input from. This
  3628  	// must be a single file.
  3629  	GcsSource *GoogleCloudDocumentaiV1beta1GcsSource `json:"gcsSource,omitempty"`
  3630  	// MimeType: Required. Mimetype of the input. Current supported mimetypes are
  3631  	// application/pdf, image/tiff, and image/gif. In addition, application/json
  3632  	// type is supported for requests with ProcessDocumentRequest.automl_params
  3633  	// field set. The JSON file needs to be in Document format.
  3634  	MimeType string `json:"mimeType,omitempty"`
  3635  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  3636  	// unconditionally include in API requests. By default, fields with empty or
  3637  	// default values are omitted from API requests. See
  3638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3639  	// details.
  3640  	ForceSendFields []string `json:"-"`
  3641  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  3642  	// requests with the JSON null value. By default, fields with empty values are
  3643  	// omitted from API requests. See
  3644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3645  	NullFields []string `json:"-"`
  3646  }
  3647  
  3648  func (s *GoogleCloudDocumentaiV1beta1InputConfig) MarshalJSON() ([]byte, error) {
  3649  	type NoMethod GoogleCloudDocumentaiV1beta1InputConfig
  3650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3651  }
  3652  
  3653  // GoogleCloudDocumentaiV1beta1NormalizedVertex: A vertex represents a 2D point
  3654  // in the image. NOTE: the normalized vertex coordinates are relative to the
  3655  // original image and range from 0 to 1.
  3656  type GoogleCloudDocumentaiV1beta1NormalizedVertex struct {
  3657  	// X: X coordinate.
  3658  	X float64 `json:"x,omitempty"`
  3659  	// Y: Y coordinate (starts from the top of the image).
  3660  	Y float64 `json:"y,omitempty"`
  3661  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  3662  	// include in API requests. By default, fields with empty or default values are
  3663  	// omitted from API requests. See
  3664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3665  	// details.
  3666  	ForceSendFields []string `json:"-"`
  3667  	// NullFields is a list of field names (e.g. "X") to include in API requests
  3668  	// with the JSON null value. By default, fields with empty values are omitted
  3669  	// from API requests. See
  3670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3671  	NullFields []string `json:"-"`
  3672  }
  3673  
  3674  func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
  3675  	type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
  3676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3677  }
  3678  
  3679  func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
  3680  	type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex
  3681  	var s1 struct {
  3682  		X gensupport.JSONFloat64 `json:"x"`
  3683  		Y gensupport.JSONFloat64 `json:"y"`
  3684  		*NoMethod
  3685  	}
  3686  	s1.NoMethod = (*NoMethod)(s)
  3687  	if err := json.Unmarshal(data, &s1); err != nil {
  3688  		return err
  3689  	}
  3690  	s.X = float64(s1.X)
  3691  	s.Y = float64(s1.Y)
  3692  	return nil
  3693  }
  3694  
  3695  // GoogleCloudDocumentaiV1beta1OperationMetadata: Contains metadata for the
  3696  // BatchProcessDocuments operation.
  3697  type GoogleCloudDocumentaiV1beta1OperationMetadata struct {
  3698  	// CreateTime: The creation time of the operation.
  3699  	CreateTime string `json:"createTime,omitempty"`
  3700  	// State: The state of the current batch processing.
  3701  	//
  3702  	// Possible values:
  3703  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
  3704  	// is omitted.
  3705  	//   "ACCEPTED" - Request is received.
  3706  	//   "WAITING" - Request operation is waiting for scheduling.
  3707  	//   "RUNNING" - Request is being processed.
  3708  	//   "SUCCEEDED" - The batch processing completed successfully.
  3709  	//   "CANCELLED" - The batch processing was cancelled.
  3710  	//   "FAILED" - The batch processing has failed.
  3711  	State string `json:"state,omitempty"`
  3712  	// StateMessage: A message providing more details about the current state of
  3713  	// processing.
  3714  	StateMessage string `json:"stateMessage,omitempty"`
  3715  	// UpdateTime: The last update time of the operation.
  3716  	UpdateTime string `json:"updateTime,omitempty"`
  3717  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3718  	// unconditionally include in API requests. By default, fields with empty or
  3719  	// default values are omitted from API requests. See
  3720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3721  	// details.
  3722  	ForceSendFields []string `json:"-"`
  3723  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3724  	// requests with the JSON null value. By default, fields with empty values are
  3725  	// omitted from API requests. See
  3726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3727  	NullFields []string `json:"-"`
  3728  }
  3729  
  3730  func (s *GoogleCloudDocumentaiV1beta1OperationMetadata) MarshalJSON() ([]byte, error) {
  3731  	type NoMethod GoogleCloudDocumentaiV1beta1OperationMetadata
  3732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3733  }
  3734  
  3735  // GoogleCloudDocumentaiV1beta1OutputConfig: The desired output location and
  3736  // metadata.
  3737  type GoogleCloudDocumentaiV1beta1OutputConfig struct {
  3738  	// GcsDestination: The Google Cloud Storage location to write the output to.
  3739  	GcsDestination *GoogleCloudDocumentaiV1beta1GcsDestination `json:"gcsDestination,omitempty"`
  3740  	// PagesPerShard: The max number of pages to include into each output Document
  3741  	// shard JSON on Google Cloud Storage. The valid range is [1, 100]. If not
  3742  	// specified, the default value is 20. For example, for one pdf file with 100
  3743  	// pages, 100 parsed pages will be produced. If `pages_per_shard` = 20, then 5
  3744  	// Document shard JSON files each containing 20 parsed pages will be written
  3745  	// under the prefix OutputConfig.gcs_destination.uri and suffix
  3746  	// pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS
  3747  	// outputs with 157 pages and pages_per_shard = 50: pages-001-to-050.json
  3748  	// pages-051-to-100.json pages-101-to-150.json pages-151-to-157.json
  3749  	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
  3750  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  3751  	// unconditionally include in API requests. By default, fields with empty or
  3752  	// default values are omitted from API requests. See
  3753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3754  	// details.
  3755  	ForceSendFields []string `json:"-"`
  3756  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  3757  	// API requests with the JSON null value. By default, fields with empty values
  3758  	// are omitted from API requests. See
  3759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3760  	NullFields []string `json:"-"`
  3761  }
  3762  
  3763  func (s *GoogleCloudDocumentaiV1beta1OutputConfig) MarshalJSON() ([]byte, error) {
  3764  	type NoMethod GoogleCloudDocumentaiV1beta1OutputConfig
  3765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3766  }
  3767  
  3768  // GoogleCloudDocumentaiV1beta1ProcessDocumentResponse: Response to a single
  3769  // document processing request.
  3770  type GoogleCloudDocumentaiV1beta1ProcessDocumentResponse struct {
  3771  	// InputConfig: Information about the input file. This is the same as the
  3772  	// corresponding input config in the request.
  3773  	InputConfig *GoogleCloudDocumentaiV1beta1InputConfig `json:"inputConfig,omitempty"`
  3774  	// OutputConfig: The output location of the parsed responses. The responses are
  3775  	// written to this location as JSON-serialized `Document` objects.
  3776  	OutputConfig *GoogleCloudDocumentaiV1beta1OutputConfig `json:"outputConfig,omitempty"`
  3777  	// ForceSendFields is a list of field names (e.g. "InputConfig") to
  3778  	// unconditionally include in API requests. By default, fields with empty or
  3779  	// default values are omitted from API requests. See
  3780  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3781  	// details.
  3782  	ForceSendFields []string `json:"-"`
  3783  	// NullFields is a list of field names (e.g. "InputConfig") to include in API
  3784  	// requests with the JSON null value. By default, fields with empty values are
  3785  	// omitted from API requests. See
  3786  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3787  	NullFields []string `json:"-"`
  3788  }
  3789  
  3790  func (s *GoogleCloudDocumentaiV1beta1ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
  3791  	type NoMethod GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
  3792  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3793  }
  3794  
  3795  // GoogleCloudDocumentaiV1beta1Vertex: A vertex represents a 2D point in the
  3796  // image. NOTE: the vertex coordinates are in the same scale as the original
  3797  // image.
  3798  type GoogleCloudDocumentaiV1beta1Vertex struct {
  3799  	// X: X coordinate.
  3800  	X int64 `json:"x,omitempty"`
  3801  	// Y: Y coordinate (starts from the top of the image).
  3802  	Y int64 `json:"y,omitempty"`
  3803  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  3804  	// include in API requests. By default, fields with empty or default values are
  3805  	// omitted from API requests. See
  3806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3807  	// details.
  3808  	ForceSendFields []string `json:"-"`
  3809  	// NullFields is a list of field names (e.g. "X") to include in API requests
  3810  	// with the JSON null value. By default, fields with empty values are omitted
  3811  	// from API requests. See
  3812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3813  	NullFields []string `json:"-"`
  3814  }
  3815  
  3816  func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) {
  3817  	type NoMethod GoogleCloudDocumentaiV1beta1Vertex
  3818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3819  }
  3820  
  3821  // GoogleCloudDocumentaiV1beta2Barcode: Encodes the detailed information of a
  3822  // barcode.
  3823  type GoogleCloudDocumentaiV1beta2Barcode struct {
  3824  	// Format: Format of a barcode. The supported formats are: - `CODE_128`: Code
  3825  	// 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`:
  3826  	// Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. -
  3827  	// `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type.
  3828  	// - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. -
  3829  	// `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.
  3830  	Format string `json:"format,omitempty"`
  3831  	// RawValue: Raw value encoded in the barcode. For example:
  3832  	// `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
  3833  	RawValue string `json:"rawValue,omitempty"`
  3834  	// ValueFormat: Value format describes the format of the value that a barcode
  3835  	// encodes. The supported formats are: - `CONTACT_INFO`: Contact information. -
  3836  	// `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number.
  3837  	// - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`:
  3838  	// URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. -
  3839  	// `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.
  3840  	ValueFormat string `json:"valueFormat,omitempty"`
  3841  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
  3842  	// include in API requests. By default, fields with empty or default values are
  3843  	// omitted from API requests. See
  3844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3845  	// details.
  3846  	ForceSendFields []string `json:"-"`
  3847  	// NullFields is a list of field names (e.g. "Format") to include in API
  3848  	// requests with the JSON null value. By default, fields with empty values are
  3849  	// omitted from API requests. See
  3850  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3851  	NullFields []string `json:"-"`
  3852  }
  3853  
  3854  func (s *GoogleCloudDocumentaiV1beta2Barcode) MarshalJSON() ([]byte, error) {
  3855  	type NoMethod GoogleCloudDocumentaiV1beta2Barcode
  3856  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3857  }
  3858  
  3859  // GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse: Response to an
  3860  // batch document processing request. This is returned in the LRO Operation
  3861  // after the operation is complete.
  3862  type GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse struct {
  3863  	// Responses: Responses for each individual document.
  3864  	Responses []*GoogleCloudDocumentaiV1beta2ProcessDocumentResponse `json:"responses,omitempty"`
  3865  	// ForceSendFields is a list of field names (e.g. "Responses") to
  3866  	// unconditionally include in API requests. By default, fields with empty or
  3867  	// default values are omitted from API requests. See
  3868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3869  	// details.
  3870  	ForceSendFields []string `json:"-"`
  3871  	// NullFields is a list of field names (e.g. "Responses") to include in API
  3872  	// requests with the JSON null value. By default, fields with empty values are
  3873  	// omitted from API requests. See
  3874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3875  	NullFields []string `json:"-"`
  3876  }
  3877  
  3878  func (s *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) {
  3879  	type NoMethod GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
  3880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3881  }
  3882  
  3883  // GoogleCloudDocumentaiV1beta2BoundingPoly: A bounding polygon for the
  3884  // detected image annotation.
  3885  type GoogleCloudDocumentaiV1beta2BoundingPoly struct {
  3886  	// NormalizedVertices: The bounding polygon normalized vertices.
  3887  	NormalizedVertices []*GoogleCloudDocumentaiV1beta2NormalizedVertex `json:"normalizedVertices,omitempty"`
  3888  	// Vertices: The bounding polygon vertices.
  3889  	Vertices []*GoogleCloudDocumentaiV1beta2Vertex `json:"vertices,omitempty"`
  3890  	// ForceSendFields is a list of field names (e.g. "NormalizedVertices") to
  3891  	// unconditionally include in API requests. By default, fields with empty or
  3892  	// default values are omitted from API requests. See
  3893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3894  	// details.
  3895  	ForceSendFields []string `json:"-"`
  3896  	// NullFields is a list of field names (e.g. "NormalizedVertices") to include
  3897  	// in API requests with the JSON null value. By default, fields with empty
  3898  	// values are omitted from API requests. See
  3899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3900  	NullFields []string `json:"-"`
  3901  }
  3902  
  3903  func (s *GoogleCloudDocumentaiV1beta2BoundingPoly) MarshalJSON() ([]byte, error) {
  3904  	type NoMethod GoogleCloudDocumentaiV1beta2BoundingPoly
  3905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3906  }
  3907  
  3908  // GoogleCloudDocumentaiV1beta2Document: Document represents the canonical
  3909  // document resource in Document AI. It is an interchange format that provides
  3910  // insights into documents and allows for collaboration between users and
  3911  // Document AI to iterate and optimize for quality.
  3912  type GoogleCloudDocumentaiV1beta2Document struct {
  3913  	// Content: Optional. Inline document content, represented as a stream of
  3914  	// bytes. Note: As with all `bytes` fields, protobuffers use a pure binary
  3915  	// representation, whereas JSON representations use base64.
  3916  	Content string `json:"content,omitempty"`
  3917  	// Entities: A list of entities detected on Document.text. For document shards,
  3918  	// entities in this list may cross shard boundaries.
  3919  	Entities []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"entities,omitempty"`
  3920  	// EntityRelations: Placeholder. Relationship among Document.entities.
  3921  	EntityRelations []*GoogleCloudDocumentaiV1beta2DocumentEntityRelation `json:"entityRelations,omitempty"`
  3922  	// Error: Any error that occurred while processing this document.
  3923  	Error *GoogleRpcStatus `json:"error,omitempty"`
  3924  	// Labels: Labels for this document.
  3925  	Labels []*GoogleCloudDocumentaiV1beta2DocumentLabel `json:"labels,omitempty"`
  3926  	// MimeType: An IANA published media type (MIME type)
  3927  	// (https://www.iana.org/assignments/media-types/media-types.xhtml).
  3928  	MimeType string `json:"mimeType,omitempty"`
  3929  	// Pages: Visual page layout for the Document.
  3930  	Pages []*GoogleCloudDocumentaiV1beta2DocumentPage `json:"pages,omitempty"`
  3931  	// Revisions: Placeholder. Revision history of this document.
  3932  	Revisions []*GoogleCloudDocumentaiV1beta2DocumentRevision `json:"revisions,omitempty"`
  3933  	// ShardInfo: Information about the sharding if this document is sharded part
  3934  	// of a larger document. If the document is not sharded, this message is not
  3935  	// specified.
  3936  	ShardInfo *GoogleCloudDocumentaiV1beta2DocumentShardInfo `json:"shardInfo,omitempty"`
  3937  	// Text: Optional. UTF-8 encoded text in reading order from the document.
  3938  	Text string `json:"text,omitempty"`
  3939  	// TextChanges: Placeholder. A list of text corrections made to Document.text.
  3940  	// This is usually used for annotating corrections to OCR mistakes. Text
  3941  	// changes for a given revision may not overlap with each other.
  3942  	TextChanges []*GoogleCloudDocumentaiV1beta2DocumentTextChange `json:"textChanges,omitempty"`
  3943  	// TextStyles: Styles for the Document.text.
  3944  	TextStyles []*GoogleCloudDocumentaiV1beta2DocumentStyle `json:"textStyles,omitempty"`
  3945  	// Uri: Optional. Currently supports Google Cloud Storage URI of the form
  3946  	// `gs://bucket_name/object_name`. Object versioning is not supported. For more
  3947  	// information, refer to Google Cloud Storage Request URIs
  3948  	// (https://cloud.google.com/storage/docs/reference-uris).
  3949  	Uri string `json:"uri,omitempty"`
  3950  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  3951  	// include in API requests. By default, fields with empty or default values are
  3952  	// omitted from API requests. See
  3953  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3954  	// details.
  3955  	ForceSendFields []string `json:"-"`
  3956  	// NullFields is a list of field names (e.g. "Content") to include in API
  3957  	// requests with the JSON null value. By default, fields with empty values are
  3958  	// omitted from API requests. See
  3959  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3960  	NullFields []string `json:"-"`
  3961  }
  3962  
  3963  func (s *GoogleCloudDocumentaiV1beta2Document) MarshalJSON() ([]byte, error) {
  3964  	type NoMethod GoogleCloudDocumentaiV1beta2Document
  3965  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3966  }
  3967  
  3968  // GoogleCloudDocumentaiV1beta2DocumentEntity: An entity that could be a phrase
  3969  // in the text or a property that belongs to the document. It is a known entity
  3970  // type, such as a person, an organization, or location.
  3971  type GoogleCloudDocumentaiV1beta2DocumentEntity struct {
  3972  	// Confidence: Optional. Confidence of detected Schema entity. Range `[0, 1]`.
  3973  	Confidence float64 `json:"confidence,omitempty"`
  3974  	// Id: Optional. Canonical id. This will be a unique value in the entity list
  3975  	// for this document.
  3976  	Id string `json:"id,omitempty"`
  3977  	// MentionId: Optional. Deprecated. Use `id` field instead.
  3978  	MentionId string `json:"mentionId,omitempty"`
  3979  	// MentionText: Optional. Text value of the entity e.g. `1600 Amphitheatre
  3980  	// Pkwy`.
  3981  	MentionText string `json:"mentionText,omitempty"`
  3982  	// NormalizedValue: Optional. Normalized entity value. Absent if the extracted
  3983  	// value could not be converted or the type (e.g. address) is not supported for
  3984  	// certain parsers. This field is also only populated for certain supported
  3985  	// document types.
  3986  	NormalizedValue *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
  3987  	// PageAnchor: Optional. Represents the provenance of this entity wrt. the
  3988  	// location on the page where it was found.
  3989  	PageAnchor *GoogleCloudDocumentaiV1beta2DocumentPageAnchor `json:"pageAnchor,omitempty"`
  3990  	// Properties: Optional. Entities can be nested to form a hierarchical data
  3991  	// structure representing the content in the document.
  3992  	Properties []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"properties,omitempty"`
  3993  	// Provenance: Optional. The history of this annotation.
  3994  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  3995  	// Redacted: Optional. Whether the entity will be redacted for
  3996  	// de-identification purposes.
  3997  	Redacted bool `json:"redacted,omitempty"`
  3998  	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing into
  3999  	// the Document.text.
  4000  	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
  4001  	// Type: Required. Entity type from a schema e.g. `Address`.
  4002  	Type string `json:"type,omitempty"`
  4003  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  4004  	// unconditionally include in API requests. By default, fields with empty or
  4005  	// default values are omitted from API requests. See
  4006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4007  	// details.
  4008  	ForceSendFields []string `json:"-"`
  4009  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  4010  	// requests with the JSON null value. By default, fields with empty values are
  4011  	// omitted from API requests. See
  4012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4013  	NullFields []string `json:"-"`
  4014  }
  4015  
  4016  func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) MarshalJSON() ([]byte, error) {
  4017  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
  4018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4019  }
  4020  
  4021  func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) UnmarshalJSON(data []byte) error {
  4022  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity
  4023  	var s1 struct {
  4024  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4025  		*NoMethod
  4026  	}
  4027  	s1.NoMethod = (*NoMethod)(s)
  4028  	if err := json.Unmarshal(data, &s1); err != nil {
  4029  		return err
  4030  	}
  4031  	s.Confidence = float64(s1.Confidence)
  4032  	return nil
  4033  }
  4034  
  4035  // GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue: Parsed and
  4036  // normalized entity value.
  4037  type GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue struct {
  4038  	// AddressValue: Postal address. See also:
  4039  	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
  4040  	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
  4041  	// BooleanValue: Boolean value. Can be used for entities with binary values, or
  4042  	// for checkboxes.
  4043  	BooleanValue bool `json:"booleanValue,omitempty"`
  4044  	// DateValue: Date value. Includes year, month, day. See also:
  4045  	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
  4046  	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
  4047  	// DatetimeValue: DateTime value. Includes date, time, and timezone. See also:
  4048  	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
  4049  	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
  4050  	// FloatValue: Float value.
  4051  	FloatValue float64 `json:"floatValue,omitempty"`
  4052  	// IntegerValue: Integer value.
  4053  	IntegerValue int64 `json:"integerValue,omitempty"`
  4054  	// MoneyValue: Money value. See also:
  4055  	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
  4056  	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
  4057  	// Text: Optional. An optional field to store a normalized string. For some
  4058  	// entity types, one of respective `structured_value` fields may also be
  4059  	// populated. Also not all the types of `structured_value` will be normalized.
  4060  	// For example, some processors may not generate `float` or `integer`
  4061  	// normalized text by default. Below are sample formats mapped to structured
  4062  	// values. - Money/Currency type (`money_value`) is in the ISO 4217 text
  4063  	// format. - Date type (`date_value`) is in the ISO 8601 text format. -
  4064  	// Datetime type (`datetime_value`) is in the ISO 8601 text format.
  4065  	Text string `json:"text,omitempty"`
  4066  	// ForceSendFields is a list of field names (e.g. "AddressValue") to
  4067  	// unconditionally include in API requests. By default, fields with empty or
  4068  	// default values are omitted from API requests. See
  4069  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4070  	// details.
  4071  	ForceSendFields []string `json:"-"`
  4072  	// NullFields is a list of field names (e.g. "AddressValue") to include in API
  4073  	// requests with the JSON null value. By default, fields with empty values are
  4074  	// omitted from API requests. See
  4075  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4076  	NullFields []string `json:"-"`
  4077  }
  4078  
  4079  func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
  4080  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
  4081  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4082  }
  4083  
  4084  func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
  4085  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
  4086  	var s1 struct {
  4087  		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
  4088  		*NoMethod
  4089  	}
  4090  	s1.NoMethod = (*NoMethod)(s)
  4091  	if err := json.Unmarshal(data, &s1); err != nil {
  4092  		return err
  4093  	}
  4094  	s.FloatValue = float64(s1.FloatValue)
  4095  	return nil
  4096  }
  4097  
  4098  // GoogleCloudDocumentaiV1beta2DocumentEntityRelation: Relationship between
  4099  // Entities.
  4100  type GoogleCloudDocumentaiV1beta2DocumentEntityRelation struct {
  4101  	// ObjectId: Object entity id.
  4102  	ObjectId string `json:"objectId,omitempty"`
  4103  	// Relation: Relationship description.
  4104  	Relation string `json:"relation,omitempty"`
  4105  	// SubjectId: Subject entity id.
  4106  	SubjectId string `json:"subjectId,omitempty"`
  4107  	// ForceSendFields is a list of field names (e.g. "ObjectId") to
  4108  	// unconditionally include in API requests. By default, fields with empty or
  4109  	// default values are omitted from API requests. See
  4110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4111  	// details.
  4112  	ForceSendFields []string `json:"-"`
  4113  	// NullFields is a list of field names (e.g. "ObjectId") to include in API
  4114  	// requests with the JSON null value. By default, fields with empty values are
  4115  	// omitted from API requests. See
  4116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4117  	NullFields []string `json:"-"`
  4118  }
  4119  
  4120  func (s *GoogleCloudDocumentaiV1beta2DocumentEntityRelation) MarshalJSON() ([]byte, error) {
  4121  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityRelation
  4122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4123  }
  4124  
  4125  // GoogleCloudDocumentaiV1beta2DocumentLabel: Label attaches schema information
  4126  // and/or other metadata to segments within a Document. Multiple Labels on a
  4127  // single field can denote either different labels, different instances of the
  4128  // same label created at different times, or some combination of both.
  4129  type GoogleCloudDocumentaiV1beta2DocumentLabel struct {
  4130  	// AutomlModel: Label is generated AutoML model. This field stores the full
  4131  	// resource name of the AutoML model. Format:
  4132  	// `projects/{project-id}/locations/{location-id}/models/{model-id}`
  4133  	AutomlModel string `json:"automlModel,omitempty"`
  4134  	// Confidence: Confidence score between 0 and 1 for label assignment.
  4135  	Confidence float64 `json:"confidence,omitempty"`
  4136  	// Name: Name of the label. When the label is generated from AutoML Text
  4137  	// Classification model, this field represents the name of the category.
  4138  	Name string `json:"name,omitempty"`
  4139  	// ForceSendFields is a list of field names (e.g. "AutomlModel") to
  4140  	// unconditionally include in API requests. By default, fields with empty or
  4141  	// default values are omitted from API requests. See
  4142  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4143  	// details.
  4144  	ForceSendFields []string `json:"-"`
  4145  	// NullFields is a list of field names (e.g. "AutomlModel") to include in API
  4146  	// requests with the JSON null value. By default, fields with empty values are
  4147  	// omitted from API requests. See
  4148  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4149  	NullFields []string `json:"-"`
  4150  }
  4151  
  4152  func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) MarshalJSON() ([]byte, error) {
  4153  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
  4154  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4155  }
  4156  
  4157  func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) UnmarshalJSON(data []byte) error {
  4158  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel
  4159  	var s1 struct {
  4160  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4161  		*NoMethod
  4162  	}
  4163  	s1.NoMethod = (*NoMethod)(s)
  4164  	if err := json.Unmarshal(data, &s1); err != nil {
  4165  		return err
  4166  	}
  4167  	s.Confidence = float64(s1.Confidence)
  4168  	return nil
  4169  }
  4170  
  4171  // GoogleCloudDocumentaiV1beta2DocumentPage: A page in a Document.
  4172  type GoogleCloudDocumentaiV1beta2DocumentPage struct {
  4173  	// Blocks: A list of visually detected text blocks on the page. A block has a
  4174  	// set of lines (collected into paragraphs) that have a common line-spacing and
  4175  	// orientation.
  4176  	Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"`
  4177  	// DetectedBarcodes: A list of detected barcodes.
  4178  	DetectedBarcodes []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"`
  4179  	// DetectedLanguages: A list of detected languages together with confidence.
  4180  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4181  	// Dimension: Physical dimension of the page.
  4182  	Dimension *GoogleCloudDocumentaiV1beta2DocumentPageDimension `json:"dimension,omitempty"`
  4183  	// FormFields: A list of visually detected form fields on the page.
  4184  	FormFields []*GoogleCloudDocumentaiV1beta2DocumentPageFormField `json:"formFields,omitempty"`
  4185  	// Image: Rendered image for this page. This image is preprocessed to remove
  4186  	// any skew, rotation, and distortions such that the annotation bounding boxes
  4187  	// can be upright and axis-aligned.
  4188  	Image *GoogleCloudDocumentaiV1beta2DocumentPageImage `json:"image,omitempty"`
  4189  	// ImageQualityScores: Image quality scores.
  4190  	ImageQualityScores *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"`
  4191  	// Layout: Layout for the page.
  4192  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4193  	// Lines: A list of visually detected text lines on the page. A collection of
  4194  	// tokens that a human would perceive as a line.
  4195  	Lines []*GoogleCloudDocumentaiV1beta2DocumentPageLine `json:"lines,omitempty"`
  4196  	// PageNumber: 1-based index for current Page in a parent Document. Useful when
  4197  	// a page is taken out of a Document for individual processing.
  4198  	PageNumber int64 `json:"pageNumber,omitempty"`
  4199  	// Paragraphs: A list of visually detected text paragraphs on the page. A
  4200  	// collection of lines that a human would perceive as a paragraph.
  4201  	Paragraphs []*GoogleCloudDocumentaiV1beta2DocumentPageParagraph `json:"paragraphs,omitempty"`
  4202  	// Provenance: The history of this page.
  4203  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4204  	// Symbols: A list of visually detected symbols on the page.
  4205  	Symbols []*GoogleCloudDocumentaiV1beta2DocumentPageSymbol `json:"symbols,omitempty"`
  4206  	// Tables: A list of visually detected tables on the page.
  4207  	Tables []*GoogleCloudDocumentaiV1beta2DocumentPageTable `json:"tables,omitempty"`
  4208  	// Tokens: A list of visually detected tokens on the page.
  4209  	Tokens []*GoogleCloudDocumentaiV1beta2DocumentPageToken `json:"tokens,omitempty"`
  4210  	// Transforms: Transformation matrices that were applied to the original
  4211  	// document image to produce Page.image.
  4212  	Transforms []*GoogleCloudDocumentaiV1beta2DocumentPageMatrix `json:"transforms,omitempty"`
  4213  	// VisualElements: A list of detected non-text visual elements e.g. checkbox,
  4214  	// signature etc. on the page.
  4215  	VisualElements []*GoogleCloudDocumentaiV1beta2DocumentPageVisualElement `json:"visualElements,omitempty"`
  4216  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  4217  	// include in API requests. By default, fields with empty or default values are
  4218  	// omitted from API requests. See
  4219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4220  	// details.
  4221  	ForceSendFields []string `json:"-"`
  4222  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  4223  	// requests with the JSON null value. By default, fields with empty values are
  4224  	// omitted from API requests. See
  4225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4226  	NullFields []string `json:"-"`
  4227  }
  4228  
  4229  func (s *GoogleCloudDocumentaiV1beta2DocumentPage) MarshalJSON() ([]byte, error) {
  4230  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPage
  4231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4232  }
  4233  
  4234  // GoogleCloudDocumentaiV1beta2DocumentPageAnchor: Referencing the visual
  4235  // context of the entity in the Document.pages. Page anchors can be cross-page,
  4236  // consist of multiple bounding polygons and optionally reference specific
  4237  // layout element types.
  4238  type GoogleCloudDocumentaiV1beta2DocumentPageAnchor struct {
  4239  	// PageRefs: One or more references to visual page elements
  4240  	PageRefs []*GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
  4241  	// ForceSendFields is a list of field names (e.g. "PageRefs") to
  4242  	// unconditionally include in API requests. By default, fields with empty or
  4243  	// default values are omitted from API requests. See
  4244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4245  	// details.
  4246  	ForceSendFields []string `json:"-"`
  4247  	// NullFields is a list of field names (e.g. "PageRefs") to include in API
  4248  	// requests with the JSON null value. By default, fields with empty values are
  4249  	// omitted from API requests. See
  4250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4251  	NullFields []string `json:"-"`
  4252  }
  4253  
  4254  func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, error) {
  4255  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchor
  4256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4257  }
  4258  
  4259  // GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef: Represents a weak
  4260  // reference to a page element within a document.
  4261  type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct {
  4262  	// BoundingPoly: Optional. Identifies the bounding polygon of a layout element
  4263  	// on the page. If `layout_type` is set, the bounding polygon must be exactly
  4264  	// the same to the layout element it's referring to.
  4265  	BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
  4266  	// Confidence: Optional. Confidence of detected page element, if applicable.
  4267  	// Range `[0, 1]`.
  4268  	Confidence float64 `json:"confidence,omitempty"`
  4269  	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
  4270  	LayoutId string `json:"layoutId,omitempty"`
  4271  	// LayoutType: Optional. The type of the layout element that is being
  4272  	// referenced if any.
  4273  	//
  4274  	// Possible values:
  4275  	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
  4276  	//   "BLOCK" - References a Page.blocks element.
  4277  	//   "PARAGRAPH" - References a Page.paragraphs element.
  4278  	//   "LINE" - References a Page.lines element.
  4279  	//   "TOKEN" - References a Page.tokens element.
  4280  	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
  4281  	//   "TABLE" - Refrrences a Page.tables element.
  4282  	//   "FORM_FIELD" - References a Page.form_fields element.
  4283  	LayoutType string `json:"layoutType,omitempty"`
  4284  	// Page: Required. Index into the Document.pages element, for example using
  4285  	// `Document.pages` to locate the related page element. This field is skipped
  4286  	// when its value is the default `0`. See
  4287  	// https://developers.google.com/protocol-buffers/docs/proto3#json.
  4288  	Page int64 `json:"page,omitempty,string"`
  4289  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  4290  	// unconditionally include in API requests. By default, fields with empty or
  4291  	// default values are omitted from API requests. See
  4292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4293  	// details.
  4294  	ForceSendFields []string `json:"-"`
  4295  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  4296  	// requests with the JSON null value. By default, fields with empty values are
  4297  	// omitted from API requests. See
  4298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4299  	NullFields []string `json:"-"`
  4300  }
  4301  
  4302  func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
  4303  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
  4304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4305  }
  4306  
  4307  func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
  4308  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
  4309  	var s1 struct {
  4310  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4311  		*NoMethod
  4312  	}
  4313  	s1.NoMethod = (*NoMethod)(s)
  4314  	if err := json.Unmarshal(data, &s1); err != nil {
  4315  		return err
  4316  	}
  4317  	s.Confidence = float64(s1.Confidence)
  4318  	return nil
  4319  }
  4320  
  4321  // GoogleCloudDocumentaiV1beta2DocumentPageBlock: A block has a set of lines
  4322  // (collected into paragraphs) that have a common line-spacing and orientation.
  4323  type GoogleCloudDocumentaiV1beta2DocumentPageBlock struct {
  4324  	// DetectedLanguages: A list of detected languages together with confidence.
  4325  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4326  	// Layout: Layout for Block.
  4327  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4328  	// Provenance: The history of this annotation.
  4329  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4330  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  4331  	// unconditionally include in API requests. By default, fields with empty or
  4332  	// default values are omitted from API requests. See
  4333  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4334  	// details.
  4335  	ForceSendFields []string `json:"-"`
  4336  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  4337  	// API requests with the JSON null value. By default, fields with empty values
  4338  	// are omitted from API requests. See
  4339  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4340  	NullFields []string `json:"-"`
  4341  }
  4342  
  4343  func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, error) {
  4344  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageBlock
  4345  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4346  }
  4347  
  4348  // GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode: A detected barcode.
  4349  type GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode struct {
  4350  	// Barcode: Detailed barcode information of the DetectedBarcode.
  4351  	Barcode *GoogleCloudDocumentaiV1beta2Barcode `json:"barcode,omitempty"`
  4352  	// Layout: Layout for DetectedBarcode.
  4353  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4354  	// ForceSendFields is a list of field names (e.g. "Barcode") to unconditionally
  4355  	// include in API requests. By default, fields with empty or default values are
  4356  	// omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4358  	// details.
  4359  	ForceSendFields []string `json:"-"`
  4360  	// NullFields is a list of field names (e.g. "Barcode") to include in API
  4361  	// requests with the JSON null value. By default, fields with empty values are
  4362  	// omitted from API requests. See
  4363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4364  	NullFields []string `json:"-"`
  4365  }
  4366  
  4367  func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) {
  4368  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
  4369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4370  }
  4371  
  4372  // GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected language
  4373  // for a structural component.
  4374  type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct {
  4375  	// Confidence: Confidence of detected language. Range `[0, 1]`.
  4376  	Confidence float64 `json:"confidence,omitempty"`
  4377  	// LanguageCode: The BCP-47 language code
  4378  	// (https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as
  4379  	// `en-US` or `sr-Latn`.
  4380  	LanguageCode string `json:"languageCode,omitempty"`
  4381  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  4382  	// unconditionally include in API requests. By default, fields with empty or
  4383  	// default values are omitted from API requests. See
  4384  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4385  	// details.
  4386  	ForceSendFields []string `json:"-"`
  4387  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  4388  	// requests with the JSON null value. By default, fields with empty values are
  4389  	// omitted from API requests. See
  4390  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4391  	NullFields []string `json:"-"`
  4392  }
  4393  
  4394  func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
  4395  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
  4396  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4397  }
  4398  
  4399  func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
  4400  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
  4401  	var s1 struct {
  4402  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4403  		*NoMethod
  4404  	}
  4405  	s1.NoMethod = (*NoMethod)(s)
  4406  	if err := json.Unmarshal(data, &s1); err != nil {
  4407  		return err
  4408  	}
  4409  	s.Confidence = float64(s1.Confidence)
  4410  	return nil
  4411  }
  4412  
  4413  // GoogleCloudDocumentaiV1beta2DocumentPageDimension: Dimension for the page.
  4414  type GoogleCloudDocumentaiV1beta2DocumentPageDimension struct {
  4415  	// Height: Page height.
  4416  	Height float64 `json:"height,omitempty"`
  4417  	// Unit: Dimension unit.
  4418  	Unit string `json:"unit,omitempty"`
  4419  	// Width: Page width.
  4420  	Width float64 `json:"width,omitempty"`
  4421  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  4422  	// include in API requests. By default, fields with empty or default values are
  4423  	// omitted from API requests. See
  4424  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4425  	// details.
  4426  	ForceSendFields []string `json:"-"`
  4427  	// NullFields is a list of field names (e.g. "Height") to include in API
  4428  	// requests with the JSON null value. By default, fields with empty values are
  4429  	// omitted from API requests. See
  4430  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4431  	NullFields []string `json:"-"`
  4432  }
  4433  
  4434  func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) MarshalJSON() ([]byte, error) {
  4435  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
  4436  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4437  }
  4438  
  4439  func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) UnmarshalJSON(data []byte) error {
  4440  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension
  4441  	var s1 struct {
  4442  		Height gensupport.JSONFloat64 `json:"height"`
  4443  		Width  gensupport.JSONFloat64 `json:"width"`
  4444  		*NoMethod
  4445  	}
  4446  	s1.NoMethod = (*NoMethod)(s)
  4447  	if err := json.Unmarshal(data, &s1); err != nil {
  4448  		return err
  4449  	}
  4450  	s.Height = float64(s1.Height)
  4451  	s.Width = float64(s1.Width)
  4452  	return nil
  4453  }
  4454  
  4455  // GoogleCloudDocumentaiV1beta2DocumentPageFormField: A form field detected on
  4456  // the page.
  4457  type GoogleCloudDocumentaiV1beta2DocumentPageFormField struct {
  4458  	// CorrectedKeyText: Created for Labeling UI to export key text. If corrections
  4459  	// were made to the text identified by the `field_name.text_anchor`, this field
  4460  	// will contain the correction.
  4461  	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
  4462  	// CorrectedValueText: Created for Labeling UI to export value text. If
  4463  	// corrections were made to the text identified by the
  4464  	// `field_value.text_anchor`, this field will contain the correction.
  4465  	CorrectedValueText string `json:"correctedValueText,omitempty"`
  4466  	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`, `Grand
  4467  	// total`, `Phone number`, etc.
  4468  	FieldName *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldName,omitempty"`
  4469  	// FieldValue: Layout for the FormField value.
  4470  	FieldValue *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldValue,omitempty"`
  4471  	// NameDetectedLanguages: A list of detected languages for name together with
  4472  	// confidence.
  4473  	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
  4474  	// Provenance: The history of this annotation.
  4475  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4476  	// ValueDetectedLanguages: A list of detected languages for value together with
  4477  	// confidence.
  4478  	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
  4479  	// ValueType: If the value is non-textual, this field represents the type.
  4480  	// Current valid values are: - blank (this indicates the `field_value` is
  4481  	// normal text) - `unfilled_checkbox` - `filled_checkbox`
  4482  	ValueType string `json:"valueType,omitempty"`
  4483  	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
  4484  	// unconditionally include in API requests. By default, fields with empty or
  4485  	// default values are omitted from API requests. See
  4486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4487  	// details.
  4488  	ForceSendFields []string `json:"-"`
  4489  	// NullFields is a list of field names (e.g. "CorrectedKeyText") to include in
  4490  	// API requests with the JSON null value. By default, fields with empty values
  4491  	// are omitted from API requests. See
  4492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4493  	NullFields []string `json:"-"`
  4494  }
  4495  
  4496  func (s *GoogleCloudDocumentaiV1beta2DocumentPageFormField) MarshalJSON() ([]byte, error) {
  4497  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageFormField
  4498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4499  }
  4500  
  4501  // GoogleCloudDocumentaiV1beta2DocumentPageImage: Rendered image contents for
  4502  // this page.
  4503  type GoogleCloudDocumentaiV1beta2DocumentPageImage struct {
  4504  	// Content: Raw byte content of the image.
  4505  	Content string `json:"content,omitempty"`
  4506  	// Height: Height of the image in pixels.
  4507  	Height int64 `json:"height,omitempty"`
  4508  	// MimeType: Encoding media type (MIME type)
  4509  	// (https://www.iana.org/assignments/media-types/media-types.xhtml) for the
  4510  	// image.
  4511  	MimeType string `json:"mimeType,omitempty"`
  4512  	// Width: Width of the image in pixels.
  4513  	Width int64 `json:"width,omitempty"`
  4514  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  4515  	// include in API requests. By default, fields with empty or default values are
  4516  	// omitted from API requests. See
  4517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4518  	// details.
  4519  	ForceSendFields []string `json:"-"`
  4520  	// NullFields is a list of field names (e.g. "Content") to include in API
  4521  	// requests with the JSON null value. By default, fields with empty values are
  4522  	// omitted from API requests. See
  4523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4524  	NullFields []string `json:"-"`
  4525  }
  4526  
  4527  func (s *GoogleCloudDocumentaiV1beta2DocumentPageImage) MarshalJSON() ([]byte, error) {
  4528  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImage
  4529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4530  }
  4531  
  4532  // GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores: Image quality
  4533  // scores for the page image.
  4534  type GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores struct {
  4535  	// DetectedDefects: A list of detected defects.
  4536  	DetectedDefects []*GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"`
  4537  	// QualityScore: The overall quality score. Range `[0, 1]` where `1` is perfect
  4538  	// quality.
  4539  	QualityScore float64 `json:"qualityScore,omitempty"`
  4540  	// ForceSendFields is a list of field names (e.g. "DetectedDefects") to
  4541  	// unconditionally include in API requests. By default, fields with empty or
  4542  	// default values are omitted from API requests. See
  4543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4544  	// details.
  4545  	ForceSendFields []string `json:"-"`
  4546  	// NullFields is a list of field names (e.g. "DetectedDefects") to include in
  4547  	// API requests with the JSON null value. By default, fields with empty values
  4548  	// are omitted from API requests. See
  4549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4550  	NullFields []string `json:"-"`
  4551  }
  4552  
  4553  func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) {
  4554  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
  4555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4556  }
  4557  
  4558  func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error {
  4559  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
  4560  	var s1 struct {
  4561  		QualityScore gensupport.JSONFloat64 `json:"qualityScore"`
  4562  		*NoMethod
  4563  	}
  4564  	s1.NoMethod = (*NoMethod)(s)
  4565  	if err := json.Unmarshal(data, &s1); err != nil {
  4566  		return err
  4567  	}
  4568  	s.QualityScore = float64(s1.QualityScore)
  4569  	return nil
  4570  }
  4571  
  4572  // GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect:
  4573  // Image Quality Defects
  4574  type GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect struct {
  4575  	// Confidence: Confidence of detected defect. Range `[0, 1]` where `1`
  4576  	// indicates strong confidence that the defect exists.
  4577  	Confidence float64 `json:"confidence,omitempty"`
  4578  	// Type: Name of the defect type. Supported values are: -
  4579  	// `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` -
  4580  	// `quality/defect_faint` - `quality/defect_text_too_small` -
  4581  	// `quality/defect_document_cutoff` - `quality/defect_text_cutoff` -
  4582  	// `quality/defect_glare`
  4583  	Type string `json:"type,omitempty"`
  4584  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  4585  	// unconditionally include in API requests. By default, fields with empty or
  4586  	// default values are omitted from API requests. See
  4587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4588  	// details.
  4589  	ForceSendFields []string `json:"-"`
  4590  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  4591  	// requests with the JSON null value. By default, fields with empty values are
  4592  	// omitted from API requests. See
  4593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4594  	NullFields []string `json:"-"`
  4595  }
  4596  
  4597  func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) {
  4598  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
  4599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4600  }
  4601  
  4602  func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error {
  4603  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
  4604  	var s1 struct {
  4605  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4606  		*NoMethod
  4607  	}
  4608  	s1.NoMethod = (*NoMethod)(s)
  4609  	if err := json.Unmarshal(data, &s1); err != nil {
  4610  		return err
  4611  	}
  4612  	s.Confidence = float64(s1.Confidence)
  4613  	return nil
  4614  }
  4615  
  4616  // GoogleCloudDocumentaiV1beta2DocumentPageLayout: Visual element describing a
  4617  // layout unit on a page.
  4618  type GoogleCloudDocumentaiV1beta2DocumentPageLayout struct {
  4619  	// BoundingPoly: The bounding polygon for the Layout.
  4620  	BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"`
  4621  	// Confidence: Confidence of the current Layout within context of the object
  4622  	// this layout is for. e.g. confidence can be for a single token, a table, a
  4623  	// visual element, etc. depending on context. Range `[0, 1]`.
  4624  	Confidence float64 `json:"confidence,omitempty"`
  4625  	// Orientation: Detected orientation for the Layout.
  4626  	//
  4627  	// Possible values:
  4628  	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
  4629  	//   "PAGE_UP" - Orientation is aligned with page up.
  4630  	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the head 90
  4631  	// degrees clockwise from upright to read.
  4632  	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head 180
  4633  	// degrees from upright to read.
  4634  	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head 90
  4635  	// degrees counterclockwise from upright to read.
  4636  	Orientation string `json:"orientation,omitempty"`
  4637  	// TextAnchor: Text anchor indexing into the Document.text.
  4638  	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
  4639  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  4640  	// unconditionally include in API requests. By default, fields with empty or
  4641  	// default values are omitted from API requests. See
  4642  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4643  	// details.
  4644  	ForceSendFields []string `json:"-"`
  4645  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  4646  	// requests with the JSON null value. By default, fields with empty values are
  4647  	// omitted from API requests. See
  4648  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4649  	NullFields []string `json:"-"`
  4650  }
  4651  
  4652  func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) MarshalJSON() ([]byte, error) {
  4653  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
  4654  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4655  }
  4656  
  4657  func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) UnmarshalJSON(data []byte) error {
  4658  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout
  4659  	var s1 struct {
  4660  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4661  		*NoMethod
  4662  	}
  4663  	s1.NoMethod = (*NoMethod)(s)
  4664  	if err := json.Unmarshal(data, &s1); err != nil {
  4665  		return err
  4666  	}
  4667  	s.Confidence = float64(s1.Confidence)
  4668  	return nil
  4669  }
  4670  
  4671  // GoogleCloudDocumentaiV1beta2DocumentPageLine: A collection of tokens that a
  4672  // human would perceive as a line. Does not cross column boundaries, can be
  4673  // horizontal, vertical, etc.
  4674  type GoogleCloudDocumentaiV1beta2DocumentPageLine struct {
  4675  	// DetectedLanguages: A list of detected languages together with confidence.
  4676  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4677  	// Layout: Layout for Line.
  4678  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4679  	// Provenance: The history of this annotation.
  4680  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4681  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  4682  	// unconditionally include in API requests. By default, fields with empty or
  4683  	// default values are omitted from API requests. See
  4684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4685  	// details.
  4686  	ForceSendFields []string `json:"-"`
  4687  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  4688  	// API requests with the JSON null value. By default, fields with empty values
  4689  	// are omitted from API requests. See
  4690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4691  	NullFields []string `json:"-"`
  4692  }
  4693  
  4694  func (s *GoogleCloudDocumentaiV1beta2DocumentPageLine) MarshalJSON() ([]byte, error) {
  4695  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLine
  4696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4697  }
  4698  
  4699  // GoogleCloudDocumentaiV1beta2DocumentPageMatrix: Representation for
  4700  // transformation matrix, intended to be compatible and used with OpenCV format
  4701  // for image manipulation.
  4702  type GoogleCloudDocumentaiV1beta2DocumentPageMatrix struct {
  4703  	// Cols: Number of columns in the matrix.
  4704  	Cols int64 `json:"cols,omitempty"`
  4705  	// Data: The matrix data.
  4706  	Data string `json:"data,omitempty"`
  4707  	// Rows: Number of rows in the matrix.
  4708  	Rows int64 `json:"rows,omitempty"`
  4709  	// Type: This encodes information about what data type the matrix uses. For
  4710  	// example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV
  4711  	// primitive data types, please refer to
  4712  	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
  4713  	Type int64 `json:"type,omitempty"`
  4714  	// ForceSendFields is a list of field names (e.g. "Cols") to unconditionally
  4715  	// include in API requests. By default, fields with empty or default values are
  4716  	// omitted from API requests. See
  4717  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4718  	// details.
  4719  	ForceSendFields []string `json:"-"`
  4720  	// NullFields is a list of field names (e.g. "Cols") to include in API requests
  4721  	// with the JSON null value. By default, fields with empty values are omitted
  4722  	// from API requests. See
  4723  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4724  	NullFields []string `json:"-"`
  4725  }
  4726  
  4727  func (s *GoogleCloudDocumentaiV1beta2DocumentPageMatrix) MarshalJSON() ([]byte, error) {
  4728  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageMatrix
  4729  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4730  }
  4731  
  4732  // GoogleCloudDocumentaiV1beta2DocumentPageParagraph: A collection of lines
  4733  // that a human would perceive as a paragraph.
  4734  type GoogleCloudDocumentaiV1beta2DocumentPageParagraph struct {
  4735  	// DetectedLanguages: A list of detected languages together with confidence.
  4736  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4737  	// Layout: Layout for Paragraph.
  4738  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4739  	// Provenance: The history of this annotation.
  4740  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4741  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  4742  	// unconditionally include in API requests. By default, fields with empty or
  4743  	// default values are omitted from API requests. See
  4744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4745  	// details.
  4746  	ForceSendFields []string `json:"-"`
  4747  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  4748  	// API requests with the JSON null value. By default, fields with empty values
  4749  	// are omitted from API requests. See
  4750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4751  	NullFields []string `json:"-"`
  4752  }
  4753  
  4754  func (s *GoogleCloudDocumentaiV1beta2DocumentPageParagraph) MarshalJSON() ([]byte, error) {
  4755  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageParagraph
  4756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4757  }
  4758  
  4759  // GoogleCloudDocumentaiV1beta2DocumentPageSymbol: A detected symbol.
  4760  type GoogleCloudDocumentaiV1beta2DocumentPageSymbol struct {
  4761  	// DetectedLanguages: A list of detected languages together with confidence.
  4762  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4763  	// Layout: Layout for Symbol.
  4764  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4765  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  4766  	// unconditionally include in API requests. By default, fields with empty or
  4767  	// default values are omitted from API requests. See
  4768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4769  	// details.
  4770  	ForceSendFields []string `json:"-"`
  4771  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  4772  	// API requests with the JSON null value. By default, fields with empty values
  4773  	// are omitted from API requests. See
  4774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4775  	NullFields []string `json:"-"`
  4776  }
  4777  
  4778  func (s *GoogleCloudDocumentaiV1beta2DocumentPageSymbol) MarshalJSON() ([]byte, error) {
  4779  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageSymbol
  4780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4781  }
  4782  
  4783  // GoogleCloudDocumentaiV1beta2DocumentPageTable: A table representation
  4784  // similar to HTML table structure.
  4785  type GoogleCloudDocumentaiV1beta2DocumentPageTable struct {
  4786  	// BodyRows: Body rows of the table.
  4787  	BodyRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"bodyRows,omitempty"`
  4788  	// DetectedLanguages: A list of detected languages together with confidence.
  4789  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4790  	// HeaderRows: Header rows of the table.
  4791  	HeaderRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"headerRows,omitempty"`
  4792  	// Layout: Layout for Table.
  4793  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4794  	// Provenance: The history of this table.
  4795  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4796  	// ForceSendFields is a list of field names (e.g. "BodyRows") to
  4797  	// unconditionally include in API requests. By default, fields with empty or
  4798  	// default values are omitted from API requests. See
  4799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4800  	// details.
  4801  	ForceSendFields []string `json:"-"`
  4802  	// NullFields is a list of field names (e.g. "BodyRows") to include in API
  4803  	// requests with the JSON null value. By default, fields with empty values are
  4804  	// omitted from API requests. See
  4805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4806  	NullFields []string `json:"-"`
  4807  }
  4808  
  4809  func (s *GoogleCloudDocumentaiV1beta2DocumentPageTable) MarshalJSON() ([]byte, error) {
  4810  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTable
  4811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4812  }
  4813  
  4814  // GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell: A cell
  4815  // representation inside the table.
  4816  type GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell struct {
  4817  	// ColSpan: How many columns this cell spans.
  4818  	ColSpan int64 `json:"colSpan,omitempty"`
  4819  	// DetectedLanguages: A list of detected languages together with confidence.
  4820  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4821  	// Layout: Layout for TableCell.
  4822  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4823  	// RowSpan: How many rows this cell spans.
  4824  	RowSpan int64 `json:"rowSpan,omitempty"`
  4825  	// ForceSendFields is a list of field names (e.g. "ColSpan") to unconditionally
  4826  	// include in API requests. By default, fields with empty or default values are
  4827  	// omitted from API requests. See
  4828  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4829  	// details.
  4830  	ForceSendFields []string `json:"-"`
  4831  	// NullFields is a list of field names (e.g. "ColSpan") to include in API
  4832  	// requests with the JSON null value. By default, fields with empty values are
  4833  	// omitted from API requests. See
  4834  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4835  	NullFields []string `json:"-"`
  4836  }
  4837  
  4838  func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
  4839  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell
  4840  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4841  }
  4842  
  4843  // GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow: A row of table cells.
  4844  type GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow struct {
  4845  	// Cells: Cells that make up this row.
  4846  	Cells []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell `json:"cells,omitempty"`
  4847  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
  4848  	// include in API requests. By default, fields with empty or default values are
  4849  	// omitted from API requests. See
  4850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4851  	// details.
  4852  	ForceSendFields []string `json:"-"`
  4853  	// NullFields is a list of field names (e.g. "Cells") to include in API
  4854  	// requests with the JSON null value. By default, fields with empty values are
  4855  	// omitted from API requests. See
  4856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4857  	NullFields []string `json:"-"`
  4858  }
  4859  
  4860  func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
  4861  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
  4862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4863  }
  4864  
  4865  // GoogleCloudDocumentaiV1beta2DocumentPageToken: A detected token.
  4866  type GoogleCloudDocumentaiV1beta2DocumentPageToken struct {
  4867  	// DetectedBreak: Detected break at the end of a Token.
  4868  	DetectedBreak *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
  4869  	// DetectedLanguages: A list of detected languages together with confidence.
  4870  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  4871  	// Layout: Layout for Token.
  4872  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  4873  	// Provenance: The history of this annotation.
  4874  	Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  4875  	// StyleInfo: Text style attributes.
  4876  	StyleInfo *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"`
  4877  	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
  4878  	// unconditionally include in API requests. By default, fields with empty or
  4879  	// default values are omitted from API requests. See
  4880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4881  	// details.
  4882  	ForceSendFields []string `json:"-"`
  4883  	// NullFields is a list of field names (e.g. "DetectedBreak") to include in API
  4884  	// requests with the JSON null value. By default, fields with empty values are
  4885  	// omitted from API requests. See
  4886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4887  	NullFields []string `json:"-"`
  4888  }
  4889  
  4890  func (s *GoogleCloudDocumentaiV1beta2DocumentPageToken) MarshalJSON() ([]byte, error) {
  4891  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageToken
  4892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4893  }
  4894  
  4895  // GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak: Detected break
  4896  // at the end of a Token.
  4897  type GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak struct {
  4898  	// Type: Detected break type.
  4899  	//
  4900  	// Possible values:
  4901  	//   "TYPE_UNSPECIFIED" - Unspecified break type.
  4902  	//   "SPACE" - A single whitespace.
  4903  	//   "WIDE_SPACE" - A wider whitespace.
  4904  	//   "HYPHEN" - A hyphen that indicates that a token has been split across
  4905  	// lines.
  4906  	Type string `json:"type,omitempty"`
  4907  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  4908  	// include in API requests. By default, fields with empty or default values are
  4909  	// omitted from API requests. See
  4910  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4911  	// details.
  4912  	ForceSendFields []string `json:"-"`
  4913  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  4914  	// with the JSON null value. By default, fields with empty values are omitted
  4915  	// from API requests. See
  4916  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4917  	NullFields []string `json:"-"`
  4918  }
  4919  
  4920  func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
  4921  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
  4922  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4923  }
  4924  
  4925  // GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo: Font and other text
  4926  // style attributes.
  4927  type GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo struct {
  4928  	// BackgroundColor: Color of the background.
  4929  	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
  4930  	// Bold: Whether the text is bold (equivalent to font_weight is at least
  4931  	// `700`).
  4932  	Bold bool `json:"bold,omitempty"`
  4933  	// FontSize: Font size in points (`1` point is `¹⁄₇₂` inches).
  4934  	FontSize int64 `json:"fontSize,omitempty"`
  4935  	// FontType: Name or style of the font.
  4936  	FontType string `json:"fontType,omitempty"`
  4937  	// FontWeight: TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
  4938  	// Normal is `400`, bold is `700`.
  4939  	FontWeight int64 `json:"fontWeight,omitempty"`
  4940  	// Handwritten: Whether the text is handwritten.
  4941  	Handwritten bool `json:"handwritten,omitempty"`
  4942  	// Italic: Whether the text is italic.
  4943  	Italic bool `json:"italic,omitempty"`
  4944  	// LetterSpacing: Letter spacing in points.
  4945  	LetterSpacing float64 `json:"letterSpacing,omitempty"`
  4946  	// PixelFontSize: Font size in pixels, equal to _unrounded font_size_ *
  4947  	// _resolution_ ÷ `72.0`.
  4948  	PixelFontSize float64 `json:"pixelFontSize,omitempty"`
  4949  	// Smallcaps: Whether the text is in small caps. This feature is not supported
  4950  	// yet.
  4951  	Smallcaps bool `json:"smallcaps,omitempty"`
  4952  	// Strikeout: Whether the text is strikethrough. This feature is not supported
  4953  	// yet.
  4954  	Strikeout bool `json:"strikeout,omitempty"`
  4955  	// Subscript: Whether the text is a subscript. This feature is not supported
  4956  	// yet.
  4957  	Subscript bool `json:"subscript,omitempty"`
  4958  	// Superscript: Whether the text is a superscript. This feature is not
  4959  	// supported yet.
  4960  	Superscript bool `json:"superscript,omitempty"`
  4961  	// TextColor: Color of the text.
  4962  	TextColor *GoogleTypeColor `json:"textColor,omitempty"`
  4963  	// Underlined: Whether the text is underlined.
  4964  	Underlined bool `json:"underlined,omitempty"`
  4965  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  4966  	// unconditionally include in API requests. By default, fields with empty or
  4967  	// default values are omitted from API requests. See
  4968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4969  	// details.
  4970  	ForceSendFields []string `json:"-"`
  4971  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
  4972  	// API requests with the JSON null value. By default, fields with empty values
  4973  	// are omitted from API requests. See
  4974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4975  	NullFields []string `json:"-"`
  4976  }
  4977  
  4978  func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) {
  4979  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
  4980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4981  }
  4982  
  4983  func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error {
  4984  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
  4985  	var s1 struct {
  4986  		LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"`
  4987  		PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"`
  4988  		*NoMethod
  4989  	}
  4990  	s1.NoMethod = (*NoMethod)(s)
  4991  	if err := json.Unmarshal(data, &s1); err != nil {
  4992  		return err
  4993  	}
  4994  	s.LetterSpacing = float64(s1.LetterSpacing)
  4995  	s.PixelFontSize = float64(s1.PixelFontSize)
  4996  	return nil
  4997  }
  4998  
  4999  // GoogleCloudDocumentaiV1beta2DocumentPageVisualElement: Detected non-text
  5000  // visual elements e.g. checkbox, signature etc. on the page.
  5001  type GoogleCloudDocumentaiV1beta2DocumentPageVisualElement struct {
  5002  	// DetectedLanguages: A list of detected languages together with confidence.
  5003  	DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  5004  	// Layout: Layout for VisualElement.
  5005  	Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"`
  5006  	// Type: Type of the VisualElement.
  5007  	Type string `json:"type,omitempty"`
  5008  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  5009  	// unconditionally include in API requests. By default, fields with empty or
  5010  	// default values are omitted from API requests. See
  5011  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5012  	// details.
  5013  	ForceSendFields []string `json:"-"`
  5014  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  5015  	// API requests with the JSON null value. By default, fields with empty values
  5016  	// are omitted from API requests. See
  5017  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5018  	NullFields []string `json:"-"`
  5019  }
  5020  
  5021  func (s *GoogleCloudDocumentaiV1beta2DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
  5022  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
  5023  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5024  }
  5025  
  5026  // GoogleCloudDocumentaiV1beta2DocumentProvenance: Structure to identify
  5027  // provenance relationships between annotations in different revisions.
  5028  type GoogleCloudDocumentaiV1beta2DocumentProvenance struct {
  5029  	// Id: The Id of this operation. Needs to be unique within the scope of the
  5030  	// revision.
  5031  	Id int64 `json:"id,omitempty"`
  5032  	// Parents: References to the original elements that are replaced.
  5033  	Parents []*GoogleCloudDocumentaiV1beta2DocumentProvenanceParent `json:"parents,omitempty"`
  5034  	// Revision: The index of the revision that produced this element.
  5035  	Revision int64 `json:"revision,omitempty"`
  5036  	// Type: The type of provenance operation.
  5037  	//
  5038  	// Possible values:
  5039  	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. If no operation
  5040  	// is specified a provenance entry is simply used to match against a `parent`.
  5041  	//   "ADD" - Add an element.
  5042  	//   "REMOVE" - Remove an element identified by `parent`.
  5043  	//   "UPDATE" - Updates any fields within the given provenance scope of the
  5044  	// message. It overwrites the fields rather than replacing them. Use this when
  5045  	// you want to update a field value of an entity without also updating all the
  5046  	// child properties.
  5047  	//   "REPLACE" - Currently unused. Replace an element identified by `parent`.
  5048  	//   "EVAL_REQUESTED" - Deprecated. Request human review for the element
  5049  	// identified by `parent`.
  5050  	//   "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at human
  5051  	// review, confidence will be set to 1.0.
  5052  	//   "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation process.
  5053  	Type string `json:"type,omitempty"`
  5054  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  5055  	// include in API requests. By default, fields with empty or default values are
  5056  	// omitted from API requests. See
  5057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5058  	// details.
  5059  	ForceSendFields []string `json:"-"`
  5060  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  5061  	// with the JSON null value. By default, fields with empty values are omitted
  5062  	// from API requests. See
  5063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5064  	NullFields []string `json:"-"`
  5065  }
  5066  
  5067  func (s *GoogleCloudDocumentaiV1beta2DocumentProvenance) MarshalJSON() ([]byte, error) {
  5068  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenance
  5069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5070  }
  5071  
  5072  // GoogleCloudDocumentaiV1beta2DocumentProvenanceParent: The parent element the
  5073  // current element is based on. Used for referencing/aligning, removal and
  5074  // replacement operations.
  5075  type GoogleCloudDocumentaiV1beta2DocumentProvenanceParent struct {
  5076  	// Id: The id of the parent provenance.
  5077  	Id int64 `json:"id,omitempty"`
  5078  	// Index: The index of the parent item in the corresponding item list (eg. list
  5079  	// of entities, properties within entities, etc.) in the parent revision.
  5080  	Index int64 `json:"index,omitempty"`
  5081  	// Revision: The index of the index into current revision's parent_ids list.
  5082  	Revision int64 `json:"revision,omitempty"`
  5083  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  5084  	// include in API requests. By default, fields with empty or default values are
  5085  	// omitted from API requests. See
  5086  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5087  	// details.
  5088  	ForceSendFields []string `json:"-"`
  5089  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  5090  	// with the JSON null value. By default, fields with empty values are omitted
  5091  	// from API requests. See
  5092  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5093  	NullFields []string `json:"-"`
  5094  }
  5095  
  5096  func (s *GoogleCloudDocumentaiV1beta2DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
  5097  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
  5098  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5099  }
  5100  
  5101  // GoogleCloudDocumentaiV1beta2DocumentRevision: Contains past or forward
  5102  // revisions of this document.
  5103  type GoogleCloudDocumentaiV1beta2DocumentRevision struct {
  5104  	// Agent: If the change was made by a person specify the name or id of that
  5105  	// person.
  5106  	Agent string `json:"agent,omitempty"`
  5107  	// CreateTime: The time that the revision was created, internally generated by
  5108  	// doc proto storage at the time of create.
  5109  	CreateTime string `json:"createTime,omitempty"`
  5110  	// HumanReview: Human Review information of this revision.
  5111  	HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"`
  5112  	// Id: Id of the revision, internally generated by doc proto storage. Unique
  5113  	// within the context of the document.
  5114  	Id string `json:"id,omitempty"`
  5115  	// Parent: The revisions that this revision is based on. This can include one
  5116  	// or more parent (when documents are merged.) This field represents the index
  5117  	// into the `revisions` field.
  5118  	Parent []int64 `json:"parent,omitempty"`
  5119  	// ParentIds: The revisions that this revision is based on. Must include all
  5120  	// the ids that have anything to do with this revision - eg. there are
  5121  	// `provenance.parent.revision` fields that index into this field.
  5122  	ParentIds []string `json:"parentIds,omitempty"`
  5123  	// Processor: If the annotation was made by processor identify the processor by
  5124  	// its resource name.
  5125  	Processor string `json:"processor,omitempty"`
  5126  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
  5127  	// include in API requests. By default, fields with empty or default values are
  5128  	// omitted from API requests. See
  5129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5130  	// details.
  5131  	ForceSendFields []string `json:"-"`
  5132  	// NullFields is a list of field names (e.g. "Agent") to include in API
  5133  	// requests with the JSON null value. By default, fields with empty values are
  5134  	// omitted from API requests. See
  5135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5136  	NullFields []string `json:"-"`
  5137  }
  5138  
  5139  func (s *GoogleCloudDocumentaiV1beta2DocumentRevision) MarshalJSON() ([]byte, error) {
  5140  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevision
  5141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5142  }
  5143  
  5144  // GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview: Human Review
  5145  // information of the document.
  5146  type GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview struct {
  5147  	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
  5148  	State string `json:"state,omitempty"`
  5149  	// StateMessage: A message providing more details about the current state of
  5150  	// processing. For example, the rejection reason when the state is `rejected`.
  5151  	StateMessage string `json:"stateMessage,omitempty"`
  5152  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  5153  	// include in API requests. By default, fields with empty or default values are
  5154  	// omitted from API requests. See
  5155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5156  	// details.
  5157  	ForceSendFields []string `json:"-"`
  5158  	// NullFields is a list of field names (e.g. "State") to include in API
  5159  	// requests with the JSON null value. By default, fields with empty values are
  5160  	// omitted from API requests. See
  5161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5162  	NullFields []string `json:"-"`
  5163  }
  5164  
  5165  func (s *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
  5166  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview
  5167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5168  }
  5169  
  5170  // GoogleCloudDocumentaiV1beta2DocumentShardInfo: For a large document,
  5171  // sharding may be performed to produce several document shards. Each document
  5172  // shard contains this field to detail which shard it is.
  5173  type GoogleCloudDocumentaiV1beta2DocumentShardInfo struct {
  5174  	// ShardCount: Total number of shards.
  5175  	ShardCount int64 `json:"shardCount,omitempty,string"`
  5176  	// ShardIndex: The 0-based index of this shard.
  5177  	ShardIndex int64 `json:"shardIndex,omitempty,string"`
  5178  	// TextOffset: The index of the first character in Document.text in the overall
  5179  	// document global text.
  5180  	TextOffset int64 `json:"textOffset,omitempty,string"`
  5181  	// ForceSendFields is a list of field names (e.g. "ShardCount") to
  5182  	// unconditionally include in API requests. By default, fields with empty or
  5183  	// default values are omitted from API requests. See
  5184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5185  	// details.
  5186  	ForceSendFields []string `json:"-"`
  5187  	// NullFields is a list of field names (e.g. "ShardCount") to include in API
  5188  	// requests with the JSON null value. By default, fields with empty values are
  5189  	// omitted from API requests. See
  5190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5191  	NullFields []string `json:"-"`
  5192  }
  5193  
  5194  func (s *GoogleCloudDocumentaiV1beta2DocumentShardInfo) MarshalJSON() ([]byte, error) {
  5195  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentShardInfo
  5196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5197  }
  5198  
  5199  // GoogleCloudDocumentaiV1beta2DocumentStyle: Annotation for common text style
  5200  // attributes. This adheres to CSS conventions as much as possible.
  5201  type GoogleCloudDocumentaiV1beta2DocumentStyle struct {
  5202  	// BackgroundColor: Text background color.
  5203  	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
  5204  	// Color: Text color.
  5205  	Color *GoogleTypeColor `json:"color,omitempty"`
  5206  	// FontFamily: Font family such as `Arial`, `Times New Roman`.
  5207  	// https://www.w3schools.com/cssref/pr_font_font-family.asp
  5208  	FontFamily string `json:"fontFamily,omitempty"`
  5209  	// FontSize: Font size.
  5210  	FontSize *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize `json:"fontSize,omitempty"`
  5211  	// FontWeight: Font weight
  5212  	// (https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are
  5213  	// `normal`, `bold`, `bolder`, and `lighter`.
  5214  	FontWeight string `json:"fontWeight,omitempty"`
  5215  	// TextAnchor: Text anchor indexing into the Document.text.
  5216  	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
  5217  	// TextDecoration: Text decoration
  5218  	// (https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS
  5219  	// standard.
  5220  	TextDecoration string `json:"textDecoration,omitempty"`
  5221  	// TextStyle: Text style
  5222  	// (https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values
  5223  	// are `normal`, `italic`, and `oblique`.
  5224  	TextStyle string `json:"textStyle,omitempty"`
  5225  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  5226  	// unconditionally include in API requests. By default, fields with empty or
  5227  	// default values are omitted from API requests. See
  5228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5229  	// details.
  5230  	ForceSendFields []string `json:"-"`
  5231  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
  5232  	// API requests with the JSON null value. By default, fields with empty values
  5233  	// are omitted from API requests. See
  5234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5235  	NullFields []string `json:"-"`
  5236  }
  5237  
  5238  func (s *GoogleCloudDocumentaiV1beta2DocumentStyle) MarshalJSON() ([]byte, error) {
  5239  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyle
  5240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5241  }
  5242  
  5243  // GoogleCloudDocumentaiV1beta2DocumentStyleFontSize: Font size with unit.
  5244  type GoogleCloudDocumentaiV1beta2DocumentStyleFontSize struct {
  5245  	// Size: Font size for the text.
  5246  	Size float64 `json:"size,omitempty"`
  5247  	// Unit: Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  5248  	// `pt`).
  5249  	Unit string `json:"unit,omitempty"`
  5250  	// ForceSendFields is a list of field names (e.g. "Size") to unconditionally
  5251  	// include in API requests. By default, fields with empty or default values are
  5252  	// omitted from API requests. See
  5253  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5254  	// details.
  5255  	ForceSendFields []string `json:"-"`
  5256  	// NullFields is a list of field names (e.g. "Size") to include in API requests
  5257  	// with the JSON null value. By default, fields with empty values are omitted
  5258  	// from API requests. See
  5259  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5260  	NullFields []string `json:"-"`
  5261  }
  5262  
  5263  func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
  5264  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
  5265  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5266  }
  5267  
  5268  func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
  5269  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize
  5270  	var s1 struct {
  5271  		Size gensupport.JSONFloat64 `json:"size"`
  5272  		*NoMethod
  5273  	}
  5274  	s1.NoMethod = (*NoMethod)(s)
  5275  	if err := json.Unmarshal(data, &s1); err != nil {
  5276  		return err
  5277  	}
  5278  	s.Size = float64(s1.Size)
  5279  	return nil
  5280  }
  5281  
  5282  // GoogleCloudDocumentaiV1beta2DocumentTextAnchor: Text reference indexing into
  5283  // the Document.text.
  5284  type GoogleCloudDocumentaiV1beta2DocumentTextAnchor struct {
  5285  	// Content: Contains the content of the text span so that users do not have to
  5286  	// look it up in the text_segments. It is always populated for formFields.
  5287  	Content string `json:"content,omitempty"`
  5288  	// TextSegments: The text segments from the Document.text.
  5289  	TextSegments []*GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
  5290  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5291  	// include in API requests. By default, fields with empty or default values are
  5292  	// omitted from API requests. See
  5293  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5294  	// details.
  5295  	ForceSendFields []string `json:"-"`
  5296  	// NullFields is a list of field names (e.g. "Content") to include in API
  5297  	// requests with the JSON null value. By default, fields with empty values are
  5298  	// omitted from API requests. See
  5299  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5300  	NullFields []string `json:"-"`
  5301  }
  5302  
  5303  func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchor) MarshalJSON() ([]byte, error) {
  5304  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchor
  5305  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5306  }
  5307  
  5308  // GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment: A text segment in
  5309  // the Document.text. The indices may be out of bounds which indicate that the
  5310  // text extends into another document shard for large sharded documents. See
  5311  // ShardInfo.text_offset
  5312  type GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment struct {
  5313  	// EndIndex: TextSegment half open end UTF-8 char index in the Document.text.
  5314  	EndIndex int64 `json:"endIndex,omitempty,string"`
  5315  	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
  5316  	StartIndex int64 `json:"startIndex,omitempty,string"`
  5317  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  5318  	// unconditionally include in API requests. By default, fields with empty or
  5319  	// default values are omitted from API requests. See
  5320  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5321  	// details.
  5322  	ForceSendFields []string `json:"-"`
  5323  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  5324  	// requests with the JSON null value. By default, fields with empty values are
  5325  	// omitted from API requests. See
  5326  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5327  	NullFields []string `json:"-"`
  5328  }
  5329  
  5330  func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
  5331  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
  5332  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5333  }
  5334  
  5335  // GoogleCloudDocumentaiV1beta2DocumentTextChange: This message is used for
  5336  // text changes aka. OCR corrections.
  5337  type GoogleCloudDocumentaiV1beta2DocumentTextChange struct {
  5338  	// ChangedText: The text that replaces the text identified in the
  5339  	// `text_anchor`.
  5340  	ChangedText string `json:"changedText,omitempty"`
  5341  	// Provenance: The history of this annotation.
  5342  	Provenance []*GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"`
  5343  	// TextAnchor: Provenance of the correction. Text anchor indexing into the
  5344  	// Document.text. There can only be a single `TextAnchor.text_segments`
  5345  	// element. If the start and end index of the text segment are the same, the
  5346  	// text change is inserted before that index.
  5347  	TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"`
  5348  	// ForceSendFields is a list of field names (e.g. "ChangedText") to
  5349  	// unconditionally include in API requests. By default, fields with empty or
  5350  	// default values are omitted from API requests. See
  5351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5352  	// details.
  5353  	ForceSendFields []string `json:"-"`
  5354  	// NullFields is a list of field names (e.g. "ChangedText") to include in API
  5355  	// requests with the JSON null value. By default, fields with empty values are
  5356  	// omitted from API requests. See
  5357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5358  	NullFields []string `json:"-"`
  5359  }
  5360  
  5361  func (s *GoogleCloudDocumentaiV1beta2DocumentTextChange) MarshalJSON() ([]byte, error) {
  5362  	type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextChange
  5363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5364  }
  5365  
  5366  // GoogleCloudDocumentaiV1beta2GcsDestination: The Google Cloud Storage
  5367  // location where the output file will be written to.
  5368  type GoogleCloudDocumentaiV1beta2GcsDestination struct {
  5369  	Uri string `json:"uri,omitempty"`
  5370  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  5371  	// include in API requests. By default, fields with empty or default values are
  5372  	// omitted from API requests. See
  5373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5374  	// details.
  5375  	ForceSendFields []string `json:"-"`
  5376  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  5377  	// with the JSON null value. By default, fields with empty values are omitted
  5378  	// from API requests. See
  5379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5380  	NullFields []string `json:"-"`
  5381  }
  5382  
  5383  func (s *GoogleCloudDocumentaiV1beta2GcsDestination) MarshalJSON() ([]byte, error) {
  5384  	type NoMethod GoogleCloudDocumentaiV1beta2GcsDestination
  5385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5386  }
  5387  
  5388  // GoogleCloudDocumentaiV1beta2GcsSource: The Google Cloud Storage location
  5389  // where the input file will be read from.
  5390  type GoogleCloudDocumentaiV1beta2GcsSource struct {
  5391  	Uri string `json:"uri,omitempty"`
  5392  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  5393  	// include in API requests. By default, fields with empty or default values are
  5394  	// omitted from API requests. See
  5395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5396  	// details.
  5397  	ForceSendFields []string `json:"-"`
  5398  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  5399  	// with the JSON null value. By default, fields with empty values are omitted
  5400  	// from API requests. See
  5401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5402  	NullFields []string `json:"-"`
  5403  }
  5404  
  5405  func (s *GoogleCloudDocumentaiV1beta2GcsSource) MarshalJSON() ([]byte, error) {
  5406  	type NoMethod GoogleCloudDocumentaiV1beta2GcsSource
  5407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5408  }
  5409  
  5410  // GoogleCloudDocumentaiV1beta2InputConfig: The desired input location and
  5411  // metadata.
  5412  type GoogleCloudDocumentaiV1beta2InputConfig struct {
  5413  	// Contents: Content in bytes, represented as a stream of bytes. Note: As with
  5414  	// all `bytes` fields, proto buffer messages use a pure binary representation,
  5415  	// whereas JSON representations use base64. This field only works for
  5416  	// synchronous ProcessDocument method.
  5417  	Contents string `json:"contents,omitempty"`
  5418  	// GcsSource: The Google Cloud Storage location to read the input from. This
  5419  	// must be a single file.
  5420  	GcsSource *GoogleCloudDocumentaiV1beta2GcsSource `json:"gcsSource,omitempty"`
  5421  	// MimeType: Required. Mimetype of the input. Current supported mimetypes are
  5422  	// application/pdf, image/tiff, and image/gif. In addition, application/json
  5423  	// type is supported for requests with ProcessDocumentRequest.automl_params
  5424  	// field set. The JSON file needs to be in Document format.
  5425  	MimeType string `json:"mimeType,omitempty"`
  5426  	// ForceSendFields is a list of field names (e.g. "Contents") to
  5427  	// unconditionally include in API requests. By default, fields with empty or
  5428  	// default values are omitted from API requests. See
  5429  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5430  	// details.
  5431  	ForceSendFields []string `json:"-"`
  5432  	// NullFields is a list of field names (e.g. "Contents") to include in API
  5433  	// requests with the JSON null value. By default, fields with empty values are
  5434  	// omitted from API requests. See
  5435  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5436  	NullFields []string `json:"-"`
  5437  }
  5438  
  5439  func (s *GoogleCloudDocumentaiV1beta2InputConfig) MarshalJSON() ([]byte, error) {
  5440  	type NoMethod GoogleCloudDocumentaiV1beta2InputConfig
  5441  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5442  }
  5443  
  5444  // GoogleCloudDocumentaiV1beta2NormalizedVertex: A vertex represents a 2D point
  5445  // in the image. NOTE: the normalized vertex coordinates are relative to the
  5446  // original image and range from 0 to 1.
  5447  type GoogleCloudDocumentaiV1beta2NormalizedVertex struct {
  5448  	// X: X coordinate.
  5449  	X float64 `json:"x,omitempty"`
  5450  	// Y: Y coordinate (starts from the top of the image).
  5451  	Y float64 `json:"y,omitempty"`
  5452  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  5453  	// include in API requests. By default, fields with empty or default values are
  5454  	// omitted from API requests. See
  5455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5456  	// details.
  5457  	ForceSendFields []string `json:"-"`
  5458  	// NullFields is a list of field names (e.g. "X") to include in API requests
  5459  	// with the JSON null value. By default, fields with empty values are omitted
  5460  	// from API requests. See
  5461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5462  	NullFields []string `json:"-"`
  5463  }
  5464  
  5465  func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) MarshalJSON() ([]byte, error) {
  5466  	type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
  5467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5468  }
  5469  
  5470  func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) UnmarshalJSON(data []byte) error {
  5471  	type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex
  5472  	var s1 struct {
  5473  		X gensupport.JSONFloat64 `json:"x"`
  5474  		Y gensupport.JSONFloat64 `json:"y"`
  5475  		*NoMethod
  5476  	}
  5477  	s1.NoMethod = (*NoMethod)(s)
  5478  	if err := json.Unmarshal(data, &s1); err != nil {
  5479  		return err
  5480  	}
  5481  	s.X = float64(s1.X)
  5482  	s.Y = float64(s1.Y)
  5483  	return nil
  5484  }
  5485  
  5486  // GoogleCloudDocumentaiV1beta2OperationMetadata: Contains metadata for the
  5487  // BatchProcessDocuments operation.
  5488  type GoogleCloudDocumentaiV1beta2OperationMetadata struct {
  5489  	// CreateTime: The creation time of the operation.
  5490  	CreateTime string `json:"createTime,omitempty"`
  5491  	// State: The state of the current batch processing.
  5492  	//
  5493  	// Possible values:
  5494  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
  5495  	// is omitted.
  5496  	//   "ACCEPTED" - Request is received.
  5497  	//   "WAITING" - Request operation is waiting for scheduling.
  5498  	//   "RUNNING" - Request is being processed.
  5499  	//   "SUCCEEDED" - The batch processing completed successfully.
  5500  	//   "CANCELLED" - The batch processing was cancelled.
  5501  	//   "FAILED" - The batch processing has failed.
  5502  	State string `json:"state,omitempty"`
  5503  	// StateMessage: A message providing more details about the current state of
  5504  	// processing.
  5505  	StateMessage string `json:"stateMessage,omitempty"`
  5506  	// UpdateTime: The last update time of the operation.
  5507  	UpdateTime string `json:"updateTime,omitempty"`
  5508  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5509  	// unconditionally include in API requests. By default, fields with empty or
  5510  	// default values are omitted from API requests. See
  5511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5512  	// details.
  5513  	ForceSendFields []string `json:"-"`
  5514  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5515  	// requests with the JSON null value. By default, fields with empty values are
  5516  	// omitted from API requests. See
  5517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5518  	NullFields []string `json:"-"`
  5519  }
  5520  
  5521  func (s *GoogleCloudDocumentaiV1beta2OperationMetadata) MarshalJSON() ([]byte, error) {
  5522  	type NoMethod GoogleCloudDocumentaiV1beta2OperationMetadata
  5523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5524  }
  5525  
  5526  // GoogleCloudDocumentaiV1beta2OutputConfig: The desired output location and
  5527  // metadata.
  5528  type GoogleCloudDocumentaiV1beta2OutputConfig struct {
  5529  	// GcsDestination: The Google Cloud Storage location to write the output to.
  5530  	GcsDestination *GoogleCloudDocumentaiV1beta2GcsDestination `json:"gcsDestination,omitempty"`
  5531  	// PagesPerShard: The max number of pages to include into each output Document
  5532  	// shard JSON on Google Cloud Storage. The valid range is [1, 100]. If not
  5533  	// specified, the default value is 20. For example, for one pdf file with 100
  5534  	// pages, 100 parsed pages will be produced. If `pages_per_shard` = 20, then 5
  5535  	// Document shard JSON files each containing 20 parsed pages will be written
  5536  	// under the prefix OutputConfig.gcs_destination.uri and suffix
  5537  	// pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS
  5538  	// outputs with 157 pages and pages_per_shard = 50: pages-001-to-050.json
  5539  	// pages-051-to-100.json pages-101-to-150.json pages-151-to-157.json
  5540  	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
  5541  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  5542  	// unconditionally include in API requests. By default, fields with empty or
  5543  	// default values are omitted from API requests. See
  5544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5545  	// details.
  5546  	ForceSendFields []string `json:"-"`
  5547  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  5548  	// API requests with the JSON null value. By default, fields with empty values
  5549  	// are omitted from API requests. See
  5550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5551  	NullFields []string `json:"-"`
  5552  }
  5553  
  5554  func (s *GoogleCloudDocumentaiV1beta2OutputConfig) MarshalJSON() ([]byte, error) {
  5555  	type NoMethod GoogleCloudDocumentaiV1beta2OutputConfig
  5556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5557  }
  5558  
  5559  // GoogleCloudDocumentaiV1beta2ProcessDocumentResponse: Response to a single
  5560  // document processing request.
  5561  type GoogleCloudDocumentaiV1beta2ProcessDocumentResponse struct {
  5562  	// InputConfig: Information about the input file. This is the same as the
  5563  	// corresponding input config in the request.
  5564  	InputConfig *GoogleCloudDocumentaiV1beta2InputConfig `json:"inputConfig,omitempty"`
  5565  	// OutputConfig: The output location of the parsed responses. The responses are
  5566  	// written to this location as JSON-serialized `Document` objects.
  5567  	OutputConfig *GoogleCloudDocumentaiV1beta2OutputConfig `json:"outputConfig,omitempty"`
  5568  	// ForceSendFields is a list of field names (e.g. "InputConfig") to
  5569  	// unconditionally include in API requests. By default, fields with empty or
  5570  	// default values are omitted from API requests. See
  5571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5572  	// details.
  5573  	ForceSendFields []string `json:"-"`
  5574  	// NullFields is a list of field names (e.g. "InputConfig") to include in API
  5575  	// requests with the JSON null value. By default, fields with empty values are
  5576  	// omitted from API requests. See
  5577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5578  	NullFields []string `json:"-"`
  5579  }
  5580  
  5581  func (s *GoogleCloudDocumentaiV1beta2ProcessDocumentResponse) MarshalJSON() ([]byte, error) {
  5582  	type NoMethod GoogleCloudDocumentaiV1beta2ProcessDocumentResponse
  5583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5584  }
  5585  
  5586  // GoogleCloudDocumentaiV1beta2Vertex: A vertex represents a 2D point in the
  5587  // image. NOTE: the vertex coordinates are in the same scale as the original
  5588  // image.
  5589  type GoogleCloudDocumentaiV1beta2Vertex struct {
  5590  	// X: X coordinate.
  5591  	X int64 `json:"x,omitempty"`
  5592  	// Y: Y coordinate (starts from the top of the image).
  5593  	Y int64 `json:"y,omitempty"`
  5594  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  5595  	// include in API requests. By default, fields with empty or default values are
  5596  	// omitted from API requests. See
  5597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5598  	// details.
  5599  	ForceSendFields []string `json:"-"`
  5600  	// NullFields is a list of field names (e.g. "X") to include in API requests
  5601  	// with the JSON null value. By default, fields with empty values are omitted
  5602  	// from API requests. See
  5603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5604  	NullFields []string `json:"-"`
  5605  }
  5606  
  5607  func (s *GoogleCloudDocumentaiV1beta2Vertex) MarshalJSON() ([]byte, error) {
  5608  	type NoMethod GoogleCloudDocumentaiV1beta2Vertex
  5609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5610  }
  5611  
  5612  // GoogleCloudDocumentaiV1beta3Barcode: Encodes the detailed information of a
  5613  // barcode.
  5614  type GoogleCloudDocumentaiV1beta3Barcode struct {
  5615  	// Format: Format of a barcode. The supported formats are: - `CODE_128`: Code
  5616  	// 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`:
  5617  	// Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. -
  5618  	// `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type.
  5619  	// - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. -
  5620  	// `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.
  5621  	Format string `json:"format,omitempty"`
  5622  	// RawValue: Raw value encoded in the barcode. For example:
  5623  	// `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
  5624  	RawValue string `json:"rawValue,omitempty"`
  5625  	// ValueFormat: Value format describes the format of the value that a barcode
  5626  	// encodes. The supported formats are: - `CONTACT_INFO`: Contact information. -
  5627  	// `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number.
  5628  	// - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`:
  5629  	// URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. -
  5630  	// `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.
  5631  	ValueFormat string `json:"valueFormat,omitempty"`
  5632  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
  5633  	// include in API requests. By default, fields with empty or default values are
  5634  	// omitted from API requests. See
  5635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5636  	// details.
  5637  	ForceSendFields []string `json:"-"`
  5638  	// NullFields is a list of field names (e.g. "Format") to include in API
  5639  	// requests with the JSON null value. By default, fields with empty values are
  5640  	// omitted from API requests. See
  5641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5642  	NullFields []string `json:"-"`
  5643  }
  5644  
  5645  func (s *GoogleCloudDocumentaiV1beta3Barcode) MarshalJSON() ([]byte, error) {
  5646  	type NoMethod GoogleCloudDocumentaiV1beta3Barcode
  5647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5648  }
  5649  
  5650  // GoogleCloudDocumentaiV1beta3BatchDatasetDocuments: Dataset documents that
  5651  // the batch operation will be applied to.
  5652  type GoogleCloudDocumentaiV1beta3BatchDatasetDocuments struct {
  5653  	// Filter: A filter matching the documents. Follows the same format and
  5654  	// restriction as [google.cloud.documentai.master.ListDocumentsRequest.filter].
  5655  	Filter string `json:"filter,omitempty"`
  5656  	// IndividualDocumentIds: Document identifiers.
  5657  	IndividualDocumentIds *GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds `json:"individualDocumentIds,omitempty"`
  5658  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  5659  	// include in API requests. By default, fields with empty or default values are
  5660  	// omitted from API requests. See
  5661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5662  	// details.
  5663  	ForceSendFields []string `json:"-"`
  5664  	// NullFields is a list of field names (e.g. "Filter") to include in API
  5665  	// requests with the JSON null value. By default, fields with empty values are
  5666  	// omitted from API requests. See
  5667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5668  	NullFields []string `json:"-"`
  5669  }
  5670  
  5671  func (s *GoogleCloudDocumentaiV1beta3BatchDatasetDocuments) MarshalJSON() ([]byte, error) {
  5672  	type NoMethod GoogleCloudDocumentaiV1beta3BatchDatasetDocuments
  5673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5674  }
  5675  
  5676  // GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds: List
  5677  // of individual DocumentIds.
  5678  type GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds struct {
  5679  	// DocumentIds: Required. List of Document IDs indicating where the actual
  5680  	// documents are stored.
  5681  	DocumentIds []*GoogleCloudDocumentaiV1beta3DocumentId `json:"documentIds,omitempty"`
  5682  	// ForceSendFields is a list of field names (e.g. "DocumentIds") to
  5683  	// unconditionally include in API requests. By default, fields with empty or
  5684  	// default values are omitted from API requests. See
  5685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5686  	// details.
  5687  	ForceSendFields []string `json:"-"`
  5688  	// NullFields is a list of field names (e.g. "DocumentIds") to include in API
  5689  	// requests with the JSON null value. By default, fields with empty values are
  5690  	// omitted from API requests. See
  5691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5692  	NullFields []string `json:"-"`
  5693  }
  5694  
  5695  func (s *GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds) MarshalJSON() ([]byte, error) {
  5696  	type NoMethod GoogleCloudDocumentaiV1beta3BatchDatasetDocumentsIndividualDocumentIds
  5697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5698  }
  5699  
  5700  type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata struct {
  5701  	// CommonMetadata: The basic metadata of the long-running operation.
  5702  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  5703  	// ErrorDocumentCount: Total number of documents that failed to be deleted in
  5704  	// storage.
  5705  	ErrorDocumentCount int64 `json:"errorDocumentCount,omitempty"`
  5706  	// IndividualBatchDeleteStatuses: The list of response details of each
  5707  	// document.
  5708  	IndividualBatchDeleteStatuses []*GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus `json:"individualBatchDeleteStatuses,omitempty"`
  5709  	// TotalDocumentCount: Total number of documents deleting from dataset.
  5710  	TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
  5711  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  5712  	// unconditionally include in API requests. By default, fields with empty or
  5713  	// default values are omitted from API requests. See
  5714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5715  	// details.
  5716  	ForceSendFields []string `json:"-"`
  5717  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  5718  	// API requests with the JSON null value. By default, fields with empty values
  5719  	// are omitted from API requests. See
  5720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5721  	NullFields []string `json:"-"`
  5722  }
  5723  
  5724  func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) {
  5725  	type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata
  5726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5727  }
  5728  
  5729  // GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDelete
  5730  // Status: The status of each individual document in the batch delete process.
  5731  type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus struct {
  5732  	// DocumentId: The document id of the document.
  5733  	DocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"documentId,omitempty"`
  5734  	// Status: The status of deleting the document in storage.
  5735  	Status *GoogleRpcStatus `json:"status,omitempty"`
  5736  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
  5737  	// unconditionally include in API requests. By default, fields with empty or
  5738  	// default values are omitted from API requests. See
  5739  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5740  	// details.
  5741  	ForceSendFields []string `json:"-"`
  5742  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
  5743  	// requests with the JSON null value. By default, fields with empty values are
  5744  	// omitted from API requests. See
  5745  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5746  	NullFields []string `json:"-"`
  5747  }
  5748  
  5749  func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus) MarshalJSON() ([]byte, error) {
  5750  	type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
  5751  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5752  }
  5753  
  5754  type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest struct {
  5755  	// DatasetDocuments: Required. Dataset documents input. If given `filter`, all
  5756  	// documents satisfying the filter will be deleted. If given documentIds, a
  5757  	// maximum of 50 documents can be deleted in a batch. The request will be
  5758  	// rejected if more than 50 document_ids are provided.
  5759  	DatasetDocuments *GoogleCloudDocumentaiV1beta3BatchDatasetDocuments `json:"datasetDocuments,omitempty"`
  5760  	// ForceSendFields is a list of field names (e.g. "DatasetDocuments") to
  5761  	// unconditionally include in API requests. By default, fields with empty or
  5762  	// default values are omitted from API requests. See
  5763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5764  	// details.
  5765  	ForceSendFields []string `json:"-"`
  5766  	// NullFields is a list of field names (e.g. "DatasetDocuments") to include in
  5767  	// API requests with the JSON null value. By default, fields with empty values
  5768  	// are omitted from API requests. See
  5769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5770  	NullFields []string `json:"-"`
  5771  }
  5772  
  5773  func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest) MarshalJSON() ([]byte, error) {
  5774  	type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest
  5775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5776  }
  5777  
  5778  // GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse: Response of the
  5779  // delete documents operation.
  5780  type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse struct {
  5781  }
  5782  
  5783  // GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig: The common config to
  5784  // specify a set of documents used as input.
  5785  type GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig struct {
  5786  	// GcsDocuments: The set of documents individually specified on Cloud Storage.
  5787  	GcsDocuments *GoogleCloudDocumentaiV1beta3GcsDocuments `json:"gcsDocuments,omitempty"`
  5788  	// GcsPrefix: The set of documents that match the specified Cloud Storage
  5789  	// `gcs_prefix`.
  5790  	GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"`
  5791  	// ForceSendFields is a list of field names (e.g. "GcsDocuments") to
  5792  	// unconditionally include in API requests. By default, fields with empty or
  5793  	// default values are omitted from API requests. See
  5794  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5795  	// details.
  5796  	ForceSendFields []string `json:"-"`
  5797  	// NullFields is a list of field names (e.g. "GcsDocuments") to include in API
  5798  	// requests with the JSON null value. By default, fields with empty values are
  5799  	// omitted from API requests. See
  5800  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5801  	NullFields []string `json:"-"`
  5802  }
  5803  
  5804  func (s *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig) MarshalJSON() ([]byte, error) {
  5805  	type NoMethod GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig
  5806  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5807  }
  5808  
  5809  // GoogleCloudDocumentaiV1beta3BatchProcessMetadata: The long-running operation
  5810  // metadata for BatchProcessDocuments.
  5811  type GoogleCloudDocumentaiV1beta3BatchProcessMetadata struct {
  5812  	// CreateTime: The creation time of the operation.
  5813  	CreateTime string `json:"createTime,omitempty"`
  5814  	// IndividualProcessStatuses: The list of response details of each document.
  5815  	IndividualProcessStatuses []*GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"`
  5816  	// State: The state of the current batch processing.
  5817  	//
  5818  	// Possible values:
  5819  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
  5820  	// is omitted.
  5821  	//   "WAITING" - Request operation is waiting for scheduling.
  5822  	//   "RUNNING" - Request is being processed.
  5823  	//   "SUCCEEDED" - The batch processing completed successfully.
  5824  	//   "CANCELLING" - The batch processing was being cancelled.
  5825  	//   "CANCELLED" - The batch processing was cancelled.
  5826  	//   "FAILED" - The batch processing has failed.
  5827  	State string `json:"state,omitempty"`
  5828  	// StateMessage: A message providing more details about the current state of
  5829  	// processing. For example, the error message if the operation is failed.
  5830  	StateMessage string `json:"stateMessage,omitempty"`
  5831  	// UpdateTime: The last update time of the operation.
  5832  	UpdateTime string `json:"updateTime,omitempty"`
  5833  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5834  	// unconditionally include in API requests. By default, fields with empty or
  5835  	// default values are omitted from API requests. See
  5836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5837  	// details.
  5838  	ForceSendFields []string `json:"-"`
  5839  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5840  	// requests with the JSON null value. By default, fields with empty values are
  5841  	// omitted from API requests. See
  5842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5843  	NullFields []string `json:"-"`
  5844  }
  5845  
  5846  func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadata) MarshalJSON() ([]byte, error) {
  5847  	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadata
  5848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5849  }
  5850  
  5851  // GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus: The
  5852  // status of a each individual document in the batch process.
  5853  type GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus struct {
  5854  	// HumanReviewOperation: The name of the operation triggered by the processed
  5855  	// document. If the human review process isn't triggered, this field will be
  5856  	// empty. It has the same response type and metadata as the long-running
  5857  	// operation returned by the ReviewDocument method.
  5858  	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
  5859  	// HumanReviewStatus: The status of human review on the processed document.
  5860  	HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
  5861  	// InputGcsSource: The source of the document, same as the input_gcs_source
  5862  	// field in the request when the batch process started.
  5863  	InputGcsSource string `json:"inputGcsSource,omitempty"`
  5864  	// OutputGcsDestination: The Cloud Storage output destination (in the request
  5865  	// as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document
  5866  	// if it was successful, otherwise empty.
  5867  	OutputGcsDestination string `json:"outputGcsDestination,omitempty"`
  5868  	// Status: The status processing the document.
  5869  	Status *GoogleRpcStatus `json:"status,omitempty"`
  5870  	// ForceSendFields is a list of field names (e.g. "HumanReviewOperation") to
  5871  	// unconditionally include in API requests. By default, fields with empty or
  5872  	// default values are omitted from API requests. See
  5873  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5874  	// details.
  5875  	ForceSendFields []string `json:"-"`
  5876  	// NullFields is a list of field names (e.g. "HumanReviewOperation") to include
  5877  	// in API requests with the JSON null value. By default, fields with empty
  5878  	// values are omitted from API requests. See
  5879  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5880  	NullFields []string `json:"-"`
  5881  }
  5882  
  5883  func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) {
  5884  	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
  5885  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5886  }
  5887  
  5888  // GoogleCloudDocumentaiV1beta3BatchProcessRequest: Request message for
  5889  // BatchProcessDocuments.
  5890  type GoogleCloudDocumentaiV1beta3BatchProcessRequest struct {
  5891  	// DocumentOutputConfig: The output configuration for the BatchProcessDocuments
  5892  	// method.
  5893  	DocumentOutputConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfig `json:"documentOutputConfig,omitempty"`
  5894  	// InputConfigs: The input config for each single document in the batch
  5895  	// process.
  5896  	InputConfigs []*GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig `json:"inputConfigs,omitempty"`
  5897  	// InputDocuments: The input documents for the BatchProcessDocuments method.
  5898  	InputDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"inputDocuments,omitempty"`
  5899  	// Labels: Optional. The labels with user-defined metadata for the request.
  5900  	// Label keys and values can be no longer than 63 characters (Unicode
  5901  	// codepoints) and can only contain lowercase letters, numeric characters,
  5902  	// underscores, and dashes. International characters are allowed. Label values
  5903  	// are optional. Label keys must start with a letter.
  5904  	Labels map[string]string `json:"labels,omitempty"`
  5905  	// OutputConfig: The overall output config for batch process.
  5906  	OutputConfig *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig `json:"outputConfig,omitempty"`
  5907  	// ProcessOptions: Inference-time options for the process API
  5908  	ProcessOptions *GoogleCloudDocumentaiV1beta3ProcessOptions `json:"processOptions,omitempty"`
  5909  	// SkipHumanReview: Whether human review should be skipped for this request.
  5910  	// Default to `false`.
  5911  	SkipHumanReview bool `json:"skipHumanReview,omitempty"`
  5912  	// ForceSendFields is a list of field names (e.g. "DocumentOutputConfig") to
  5913  	// unconditionally include in API requests. By default, fields with empty or
  5914  	// default values are omitted from API requests. See
  5915  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5916  	// details.
  5917  	ForceSendFields []string `json:"-"`
  5918  	// NullFields is a list of field names (e.g. "DocumentOutputConfig") to include
  5919  	// in API requests with the JSON null value. By default, fields with empty
  5920  	// values are omitted from API requests. See
  5921  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5922  	NullFields []string `json:"-"`
  5923  }
  5924  
  5925  func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequest) MarshalJSON() ([]byte, error) {
  5926  	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequest
  5927  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5928  }
  5929  
  5930  // GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig: The message
  5931  // for input config in batch process.
  5932  type GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig struct {
  5933  	// GcsSource: The Cloud Storage location as the source of the document.
  5934  	GcsSource string `json:"gcsSource,omitempty"`
  5935  	// MimeType: An IANA published media type (MIME type)
  5936  	// (https://www.iana.org/assignments/media-types/media-types.xhtml) of the
  5937  	// input. If the input is a raw document, refer to supported file types
  5938  	// (https://cloud.google.com/document-ai/docs/file-types) for the list of media
  5939  	// types. If the input is a Document, the type should be `application/json`.
  5940  	MimeType string `json:"mimeType,omitempty"`
  5941  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  5942  	// unconditionally include in API requests. By default, fields with empty or
  5943  	// default values are omitted from API requests. See
  5944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5945  	// details.
  5946  	ForceSendFields []string `json:"-"`
  5947  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  5948  	// requests with the JSON null value. By default, fields with empty values are
  5949  	// omitted from API requests. See
  5950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5951  	NullFields []string `json:"-"`
  5952  }
  5953  
  5954  func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig) MarshalJSON() ([]byte, error) {
  5955  	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig
  5956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5957  }
  5958  
  5959  // GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig: The output
  5960  // configuration in the BatchProcessDocuments method.
  5961  type GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig struct {
  5962  	// GcsDestination: The output Cloud Storage directory to put the processed
  5963  	// documents.
  5964  	GcsDestination string `json:"gcsDestination,omitempty"`
  5965  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  5966  	// unconditionally include in API requests. By default, fields with empty or
  5967  	// default values are omitted from API requests. See
  5968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5969  	// details.
  5970  	ForceSendFields []string `json:"-"`
  5971  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  5972  	// API requests with the JSON null value. By default, fields with empty values
  5973  	// are omitted from API requests. See
  5974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5975  	NullFields []string `json:"-"`
  5976  }
  5977  
  5978  func (s *GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig) MarshalJSON() ([]byte, error) {
  5979  	type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig
  5980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5981  }
  5982  
  5983  // GoogleCloudDocumentaiV1beta3BatchProcessResponse: Response message for
  5984  // BatchProcessDocuments.
  5985  type GoogleCloudDocumentaiV1beta3BatchProcessResponse struct {
  5986  }
  5987  
  5988  // GoogleCloudDocumentaiV1beta3BoundingPoly: A bounding polygon for the
  5989  // detected image annotation.
  5990  type GoogleCloudDocumentaiV1beta3BoundingPoly struct {
  5991  	// NormalizedVertices: The bounding polygon normalized vertices.
  5992  	NormalizedVertices []*GoogleCloudDocumentaiV1beta3NormalizedVertex `json:"normalizedVertices,omitempty"`
  5993  	// Vertices: The bounding polygon vertices.
  5994  	Vertices []*GoogleCloudDocumentaiV1beta3Vertex `json:"vertices,omitempty"`
  5995  	// ForceSendFields is a list of field names (e.g. "NormalizedVertices") to
  5996  	// unconditionally include in API requests. By default, fields with empty or
  5997  	// default values are omitted from API requests. See
  5998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5999  	// details.
  6000  	ForceSendFields []string `json:"-"`
  6001  	// NullFields is a list of field names (e.g. "NormalizedVertices") to include
  6002  	// in API requests with the JSON null value. By default, fields with empty
  6003  	// values are omitted from API requests. See
  6004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6005  	NullFields []string `json:"-"`
  6006  }
  6007  
  6008  func (s *GoogleCloudDocumentaiV1beta3BoundingPoly) MarshalJSON() ([]byte, error) {
  6009  	type NoMethod GoogleCloudDocumentaiV1beta3BoundingPoly
  6010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6011  }
  6012  
  6013  // GoogleCloudDocumentaiV1beta3CommonOperationMetadata: The common metadata for
  6014  // long running operations.
  6015  type GoogleCloudDocumentaiV1beta3CommonOperationMetadata struct {
  6016  	// CreateTime: The creation time of the operation.
  6017  	CreateTime string `json:"createTime,omitempty"`
  6018  	// Resource: A related resource to this operation.
  6019  	Resource string `json:"resource,omitempty"`
  6020  	// State: The state of the operation.
  6021  	//
  6022  	// Possible values:
  6023  	//   "STATE_UNSPECIFIED" - Unspecified state.
  6024  	//   "RUNNING" - Operation is still running.
  6025  	//   "CANCELLING" - Operation is being cancelled.
  6026  	//   "SUCCEEDED" - Operation succeeded.
  6027  	//   "FAILED" - Operation failed.
  6028  	//   "CANCELLED" - Operation is cancelled.
  6029  	State string `json:"state,omitempty"`
  6030  	// StateMessage: A message providing more details about the current state of
  6031  	// processing.
  6032  	StateMessage string `json:"stateMessage,omitempty"`
  6033  	// UpdateTime: The last update time of the operation.
  6034  	UpdateTime string `json:"updateTime,omitempty"`
  6035  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6036  	// unconditionally include in API requests. By default, fields with empty or
  6037  	// default values are omitted from API requests. See
  6038  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6039  	// details.
  6040  	ForceSendFields []string `json:"-"`
  6041  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6042  	// requests with the JSON null value. By default, fields with empty values are
  6043  	// omitted from API requests. See
  6044  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6045  	NullFields []string `json:"-"`
  6046  }
  6047  
  6048  func (s *GoogleCloudDocumentaiV1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) {
  6049  	type NoMethod GoogleCloudDocumentaiV1beta3CommonOperationMetadata
  6050  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6051  }
  6052  
  6053  // GoogleCloudDocumentaiV1beta3Dataset: A singleton resource under a Processor
  6054  // which configures a collection of documents.
  6055  type GoogleCloudDocumentaiV1beta3Dataset struct {
  6056  	// DocumentWarehouseConfig: Optional. Deprecated. Warehouse-based dataset
  6057  	// configuration is not supported.
  6058  	DocumentWarehouseConfig *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig `json:"documentWarehouseConfig,omitempty"`
  6059  	// GcsManagedConfig: Optional. User-managed Cloud Storage dataset
  6060  	// configuration. Use this configuration if the dataset documents are stored
  6061  	// under a user-managed Cloud Storage location.
  6062  	GcsManagedConfig *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig `json:"gcsManagedConfig,omitempty"`
  6063  	// Name: Dataset resource name. Format:
  6064  	// `projects/{project}/locations/{location}/processors/{processor}/dataset`
  6065  	Name string `json:"name,omitempty"`
  6066  	// SpannerIndexingConfig: Optional. A lightweight indexing source with low
  6067  	// latency and high reliability, but lacking advanced features like CMEK and
  6068  	// content-based search.
  6069  	SpannerIndexingConfig *GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig `json:"spannerIndexingConfig,omitempty"`
  6070  	// State: Required. State of the dataset. Ignored when updating dataset.
  6071  	//
  6072  	// Possible values:
  6073  	//   "STATE_UNSPECIFIED" - Default unspecified enum, should not be used.
  6074  	//   "UNINITIALIZED" - Dataset has not been initialized.
  6075  	//   "INITIALIZING" - Dataset is being initialized.
  6076  	//   "INITIALIZED" - Dataset has been initialized.
  6077  	State string `json:"state,omitempty"`
  6078  	// UnmanagedDatasetConfig: Optional. Unmanaged dataset configuration. Use this
  6079  	// configuration if the dataset documents are managed by the document service
  6080  	// internally (not user-managed).
  6081  	UnmanagedDatasetConfig *GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig `json:"unmanagedDatasetConfig,omitempty"`
  6082  	// ForceSendFields is a list of field names (e.g. "DocumentWarehouseConfig") to
  6083  	// unconditionally include in API requests. By default, fields with empty or
  6084  	// default values are omitted from API requests. See
  6085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6086  	// details.
  6087  	ForceSendFields []string `json:"-"`
  6088  	// NullFields is a list of field names (e.g. "DocumentWarehouseConfig") to
  6089  	// include in API requests with the JSON null value. By default, fields with
  6090  	// empty values are omitted from API requests. See
  6091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6092  	NullFields []string `json:"-"`
  6093  }
  6094  
  6095  func (s *GoogleCloudDocumentaiV1beta3Dataset) MarshalJSON() ([]byte, error) {
  6096  	type NoMethod GoogleCloudDocumentaiV1beta3Dataset
  6097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6098  }
  6099  
  6100  // GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig: Configuration
  6101  // specific to the Document AI Warehouse-based implementation.
  6102  type GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig struct {
  6103  	// Collection: Output only. The collection in Document AI Warehouse associated
  6104  	// with the dataset.
  6105  	Collection string `json:"collection,omitempty"`
  6106  	// Schema: Output only. The schema in Document AI Warehouse associated with the
  6107  	// dataset.
  6108  	Schema string `json:"schema,omitempty"`
  6109  	// ForceSendFields is a list of field names (e.g. "Collection") to
  6110  	// unconditionally include in API requests. By default, fields with empty or
  6111  	// default values are omitted from API requests. See
  6112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6113  	// details.
  6114  	ForceSendFields []string `json:"-"`
  6115  	// NullFields is a list of field names (e.g. "Collection") to include in API
  6116  	// requests with the JSON null value. By default, fields with empty values are
  6117  	// omitted from API requests. See
  6118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6119  	NullFields []string `json:"-"`
  6120  }
  6121  
  6122  func (s *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig) MarshalJSON() ([]byte, error) {
  6123  	type NoMethod GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
  6124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6125  }
  6126  
  6127  // GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig: Configuration specific
  6128  // to the Cloud Storage-based implementation.
  6129  type GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig struct {
  6130  	// GcsPrefix: Required. The Cloud Storage URI (a directory) where the documents
  6131  	// belonging to the dataset must be stored.
  6132  	GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"`
  6133  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  6134  	// unconditionally include in API requests. By default, fields with empty or
  6135  	// default values are omitted from API requests. See
  6136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6137  	// details.
  6138  	ForceSendFields []string `json:"-"`
  6139  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  6140  	// requests with the JSON null value. By default, fields with empty values are
  6141  	// omitted from API requests. See
  6142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6143  	NullFields []string `json:"-"`
  6144  }
  6145  
  6146  func (s *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig) MarshalJSON() ([]byte, error) {
  6147  	type NoMethod GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig
  6148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6149  }
  6150  
  6151  // GoogleCloudDocumentaiV1beta3DatasetSchema: Dataset Schema.
  6152  type GoogleCloudDocumentaiV1beta3DatasetSchema struct {
  6153  	// DocumentSchema: Optional. Schema of the dataset.
  6154  	DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
  6155  	// Name: Dataset schema resource name. Format:
  6156  	// `projects/{project}/locations/{location}/processors/{processor}/dataset/datas
  6157  	// etSchema`
  6158  	Name string `json:"name,omitempty"`
  6159  
  6160  	// ServerResponse contains the HTTP response code and headers from the server.
  6161  	googleapi.ServerResponse `json:"-"`
  6162  	// ForceSendFields is a list of field names (e.g. "DocumentSchema") to
  6163  	// unconditionally include in API requests. By default, fields with empty or
  6164  	// default values are omitted from API requests. See
  6165  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6166  	// details.
  6167  	ForceSendFields []string `json:"-"`
  6168  	// NullFields is a list of field names (e.g. "DocumentSchema") to include in
  6169  	// API requests with the JSON null value. By default, fields with empty values
  6170  	// are omitted from API requests. See
  6171  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6172  	NullFields []string `json:"-"`
  6173  }
  6174  
  6175  func (s *GoogleCloudDocumentaiV1beta3DatasetSchema) MarshalJSON() ([]byte, error) {
  6176  	type NoMethod GoogleCloudDocumentaiV1beta3DatasetSchema
  6177  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6178  }
  6179  
  6180  // GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig: Configuration
  6181  // specific to spanner-based indexing.
  6182  type GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig struct {
  6183  }
  6184  
  6185  // GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig: Configuration
  6186  // specific to an unmanaged dataset.
  6187  type GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig struct {
  6188  }
  6189  
  6190  // GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata: The long-running
  6191  // operation metadata for the DeleteProcessor method.
  6192  type GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata struct {
  6193  	// CommonMetadata: The basic metadata of the long-running operation.
  6194  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  6195  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  6196  	// unconditionally include in API requests. By default, fields with empty or
  6197  	// default values are omitted from API requests. See
  6198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6199  	// details.
  6200  	ForceSendFields []string `json:"-"`
  6201  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  6202  	// API requests with the JSON null value. By default, fields with empty values
  6203  	// are omitted from API requests. See
  6204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6205  	NullFields []string `json:"-"`
  6206  }
  6207  
  6208  func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) {
  6209  	type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
  6210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6211  }
  6212  
  6213  // GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata: The long-running
  6214  // operation metadata for the DeleteProcessorVersion method.
  6215  type GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata struct {
  6216  	// CommonMetadata: The basic metadata of the long-running operation.
  6217  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  6218  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  6219  	// unconditionally include in API requests. By default, fields with empty or
  6220  	// default values are omitted from API requests. See
  6221  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6222  	// details.
  6223  	ForceSendFields []string `json:"-"`
  6224  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  6225  	// API requests with the JSON null value. By default, fields with empty values
  6226  	// are omitted from API requests. See
  6227  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6228  	NullFields []string `json:"-"`
  6229  }
  6230  
  6231  func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  6232  	type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata
  6233  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6234  }
  6235  
  6236  // GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata: The long-running
  6237  // operation metadata for the DeployProcessorVersion method.
  6238  type GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata struct {
  6239  	// CommonMetadata: The basic metadata of the long-running operation.
  6240  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  6241  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  6242  	// unconditionally include in API requests. By default, fields with empty or
  6243  	// default values are omitted from API requests. See
  6244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6245  	// details.
  6246  	ForceSendFields []string `json:"-"`
  6247  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  6248  	// API requests with the JSON null value. By default, fields with empty values
  6249  	// are omitted from API requests. See
  6250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6251  	NullFields []string `json:"-"`
  6252  }
  6253  
  6254  func (s *GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  6255  	type NoMethod GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata
  6256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6257  }
  6258  
  6259  // GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest: Request message
  6260  // for the DeployProcessorVersion method.
  6261  type GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest struct {
  6262  }
  6263  
  6264  // GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse: Response message
  6265  // for the DeployProcessorVersion method.
  6266  type GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse struct {
  6267  }
  6268  
  6269  // GoogleCloudDocumentaiV1beta3DisableProcessorMetadata: The long-running
  6270  // operation metadata for the DisableProcessor method.
  6271  type GoogleCloudDocumentaiV1beta3DisableProcessorMetadata struct {
  6272  	// CommonMetadata: The basic metadata of the long-running operation.
  6273  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  6274  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  6275  	// unconditionally include in API requests. By default, fields with empty or
  6276  	// default values are omitted from API requests. See
  6277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6278  	// details.
  6279  	ForceSendFields []string `json:"-"`
  6280  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  6281  	// API requests with the JSON null value. By default, fields with empty values
  6282  	// are omitted from API requests. See
  6283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6284  	NullFields []string `json:"-"`
  6285  }
  6286  
  6287  func (s *GoogleCloudDocumentaiV1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) {
  6288  	type NoMethod GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
  6289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6290  }
  6291  
  6292  // GoogleCloudDocumentaiV1beta3DisableProcessorRequest: Request message for the
  6293  // DisableProcessor method.
  6294  type GoogleCloudDocumentaiV1beta3DisableProcessorRequest struct {
  6295  }
  6296  
  6297  // GoogleCloudDocumentaiV1beta3DisableProcessorResponse: Response message for
  6298  // the DisableProcessor method. Intentionally empty proto for adding fields in
  6299  // future.
  6300  type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct {
  6301  }
  6302  
  6303  // GoogleCloudDocumentaiV1beta3Document: Document represents the canonical
  6304  // document resource in Document AI. It is an interchange format that provides
  6305  // insights into documents and allows for collaboration between users and
  6306  // Document AI to iterate and optimize for quality.
  6307  type GoogleCloudDocumentaiV1beta3Document struct {
  6308  	// ChunkedDocument: Document chunked based on chunking config.
  6309  	ChunkedDocument *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument `json:"chunkedDocument,omitempty"`
  6310  	// Content: Optional. Inline document content, represented as a stream of
  6311  	// bytes. Note: As with all `bytes` fields, protobuffers use a pure binary
  6312  	// representation, whereas JSON representations use base64.
  6313  	Content string `json:"content,omitempty"`
  6314  	// DocumentLayout: Parsed layout of the document.
  6315  	DocumentLayout *GoogleCloudDocumentaiV1beta3DocumentDocumentLayout `json:"documentLayout,omitempty"`
  6316  	// Entities: A list of entities detected on Document.text. For document shards,
  6317  	// entities in this list may cross shard boundaries.
  6318  	Entities []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"entities,omitempty"`
  6319  	// EntityRelations: Placeholder. Relationship among Document.entities.
  6320  	EntityRelations []*GoogleCloudDocumentaiV1beta3DocumentEntityRelation `json:"entityRelations,omitempty"`
  6321  	// Error: Any error that occurred while processing this document.
  6322  	Error *GoogleRpcStatus `json:"error,omitempty"`
  6323  	// MimeType: An IANA published media type (MIME type)
  6324  	// (https://www.iana.org/assignments/media-types/media-types.xhtml).
  6325  	MimeType string `json:"mimeType,omitempty"`
  6326  	// Pages: Visual page layout for the Document.
  6327  	Pages []*GoogleCloudDocumentaiV1beta3DocumentPage `json:"pages,omitempty"`
  6328  	// Revisions: Placeholder. Revision history of this document.
  6329  	Revisions []*GoogleCloudDocumentaiV1beta3DocumentRevision `json:"revisions,omitempty"`
  6330  	// ShardInfo: Information about the sharding if this document is sharded part
  6331  	// of a larger document. If the document is not sharded, this message is not
  6332  	// specified.
  6333  	ShardInfo *GoogleCloudDocumentaiV1beta3DocumentShardInfo `json:"shardInfo,omitempty"`
  6334  	// Text: Optional. UTF-8 encoded text in reading order from the document.
  6335  	Text string `json:"text,omitempty"`
  6336  	// TextChanges: Placeholder. A list of text corrections made to Document.text.
  6337  	// This is usually used for annotating corrections to OCR mistakes. Text
  6338  	// changes for a given revision may not overlap with each other.
  6339  	TextChanges []*GoogleCloudDocumentaiV1beta3DocumentTextChange `json:"textChanges,omitempty"`
  6340  	// TextStyles: Styles for the Document.text.
  6341  	TextStyles []*GoogleCloudDocumentaiV1beta3DocumentStyle `json:"textStyles,omitempty"`
  6342  	// Uri: Optional. Currently supports Google Cloud Storage URI of the form
  6343  	// `gs://bucket_name/object_name`. Object versioning is not supported. For more
  6344  	// information, refer to Google Cloud Storage Request URIs
  6345  	// (https://cloud.google.com/storage/docs/reference-uris).
  6346  	Uri string `json:"uri,omitempty"`
  6347  	// ForceSendFields is a list of field names (e.g. "ChunkedDocument") to
  6348  	// unconditionally include in API requests. By default, fields with empty or
  6349  	// default values are omitted from API requests. See
  6350  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6351  	// details.
  6352  	ForceSendFields []string `json:"-"`
  6353  	// NullFields is a list of field names (e.g. "ChunkedDocument") to include in
  6354  	// API requests with the JSON null value. By default, fields with empty values
  6355  	// are omitted from API requests. See
  6356  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6357  	NullFields []string `json:"-"`
  6358  }
  6359  
  6360  func (s *GoogleCloudDocumentaiV1beta3Document) MarshalJSON() ([]byte, error) {
  6361  	type NoMethod GoogleCloudDocumentaiV1beta3Document
  6362  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6363  }
  6364  
  6365  // GoogleCloudDocumentaiV1beta3DocumentChunkedDocument: Represents the chunks
  6366  // that the document is divided into.
  6367  type GoogleCloudDocumentaiV1beta3DocumentChunkedDocument struct {
  6368  	// Chunks: List of chunks.
  6369  	Chunks []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk `json:"chunks,omitempty"`
  6370  	// ForceSendFields is a list of field names (e.g. "Chunks") to unconditionally
  6371  	// include in API requests. By default, fields with empty or default values are
  6372  	// omitted from API requests. See
  6373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6374  	// details.
  6375  	ForceSendFields []string `json:"-"`
  6376  	// NullFields is a list of field names (e.g. "Chunks") to include in API
  6377  	// requests with the JSON null value. By default, fields with empty values are
  6378  	// omitted from API requests. See
  6379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6380  	NullFields []string `json:"-"`
  6381  }
  6382  
  6383  func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument) MarshalJSON() ([]byte, error) {
  6384  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocument
  6385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6386  }
  6387  
  6388  // GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk: Represents a
  6389  // chunk.
  6390  type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk struct {
  6391  	// ChunkId: ID of the chunk.
  6392  	ChunkId string `json:"chunkId,omitempty"`
  6393  	// Content: Text content of the chunk.
  6394  	Content string `json:"content,omitempty"`
  6395  	// PageFooters: Page footers associated with the chunk.
  6396  	PageFooters []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter `json:"pageFooters,omitempty"`
  6397  	// PageHeaders: Page headers associated with the chunk.
  6398  	PageHeaders []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader `json:"pageHeaders,omitempty"`
  6399  	// PageSpan: Page span of the chunk.
  6400  	PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"`
  6401  	// SourceBlockIds: DO NOT USE. List of all parsed documents layout source
  6402  	// blocks used to generate the chunk.
  6403  	SourceBlockIds []string `json:"sourceBlockIds,omitempty"`
  6404  	// ForceSendFields is a list of field names (e.g. "ChunkId") to unconditionally
  6405  	// include in API requests. By default, fields with empty or default values are
  6406  	// omitted from API requests. See
  6407  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6408  	// details.
  6409  	ForceSendFields []string `json:"-"`
  6410  	// NullFields is a list of field names (e.g. "ChunkId") to include in API
  6411  	// requests with the JSON null value. By default, fields with empty values are
  6412  	// omitted from API requests. See
  6413  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6414  	NullFields []string `json:"-"`
  6415  }
  6416  
  6417  func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk) MarshalJSON() ([]byte, error) {
  6418  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
  6419  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6420  }
  6421  
  6422  // GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter:
  6423  // Represents the page footer associated with the chunk.
  6424  type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter struct {
  6425  	// PageSpan: Page span of the footer.
  6426  	PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"`
  6427  	// Text: Footer in text format.
  6428  	Text string `json:"text,omitempty"`
  6429  	// ForceSendFields is a list of field names (e.g. "PageSpan") to
  6430  	// unconditionally include in API requests. By default, fields with empty or
  6431  	// default values are omitted from API requests. See
  6432  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6433  	// details.
  6434  	ForceSendFields []string `json:"-"`
  6435  	// NullFields is a list of field names (e.g. "PageSpan") to include in API
  6436  	// requests with the JSON null value. By default, fields with empty values are
  6437  	// omitted from API requests. See
  6438  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6439  	NullFields []string `json:"-"`
  6440  }
  6441  
  6442  func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter) MarshalJSON() ([]byte, error) {
  6443  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter
  6444  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6445  }
  6446  
  6447  // GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader:
  6448  // Represents the page header associated with the chunk.
  6449  type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader struct {
  6450  	// PageSpan: Page span of the header.
  6451  	PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"`
  6452  	// Text: Header in text format.
  6453  	Text string `json:"text,omitempty"`
  6454  	// ForceSendFields is a list of field names (e.g. "PageSpan") to
  6455  	// unconditionally include in API requests. By default, fields with empty or
  6456  	// default values are omitted from API requests. See
  6457  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6458  	// details.
  6459  	ForceSendFields []string `json:"-"`
  6460  	// NullFields is a list of field names (e.g. "PageSpan") to include in API
  6461  	// requests with the JSON null value. By default, fields with empty values are
  6462  	// omitted from API requests. See
  6463  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6464  	NullFields []string `json:"-"`
  6465  }
  6466  
  6467  func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader) MarshalJSON() ([]byte, error) {
  6468  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader
  6469  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6470  }
  6471  
  6472  // GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan:
  6473  // Represents where the chunk starts and ends in the document.
  6474  type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan struct {
  6475  	// PageEnd: Page where chunk ends in the document.
  6476  	PageEnd int64 `json:"pageEnd,omitempty"`
  6477  	// PageStart: Page where chunk starts in the document.
  6478  	PageStart int64 `json:"pageStart,omitempty"`
  6479  	// ForceSendFields is a list of field names (e.g. "PageEnd") to unconditionally
  6480  	// include in API requests. By default, fields with empty or default values are
  6481  	// omitted from API requests. See
  6482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6483  	// details.
  6484  	ForceSendFields []string `json:"-"`
  6485  	// NullFields is a list of field names (e.g. "PageEnd") to include in API
  6486  	// requests with the JSON null value. By default, fields with empty values are
  6487  	// omitted from API requests. See
  6488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6489  	NullFields []string `json:"-"`
  6490  }
  6491  
  6492  func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan) MarshalJSON() ([]byte, error) {
  6493  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan
  6494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6495  }
  6496  
  6497  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayout: Represents the parsed
  6498  // layout of a document as a collection of blocks that the document is divided
  6499  // into.
  6500  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayout struct {
  6501  	// Blocks: List of blocks in the document.
  6502  	Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
  6503  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  6504  	// include in API requests. By default, fields with empty or default values are
  6505  	// omitted from API requests. See
  6506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6507  	// details.
  6508  	ForceSendFields []string `json:"-"`
  6509  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  6510  	// requests with the JSON null value. By default, fields with empty values are
  6511  	// omitted from API requests. See
  6512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6513  	NullFields []string `json:"-"`
  6514  }
  6515  
  6516  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayout) MarshalJSON() ([]byte, error) {
  6517  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayout
  6518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6519  }
  6520  
  6521  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock:
  6522  // Represents a block. A block could be one of the various types (text, table,
  6523  // list) supported.
  6524  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock struct {
  6525  	// BlockId: ID of the block.
  6526  	BlockId string `json:"blockId,omitempty"`
  6527  	// ListBlock: Block consisting of list content/structure.
  6528  	ListBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock `json:"listBlock,omitempty"`
  6529  	// PageSpan: Page span of the block.
  6530  	PageSpan *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan `json:"pageSpan,omitempty"`
  6531  	// TableBlock: Block consisting of table content/structure.
  6532  	TableBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock `json:"tableBlock,omitempty"`
  6533  	// TextBlock: Block consisting of text content.
  6534  	TextBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock `json:"textBlock,omitempty"`
  6535  	// ForceSendFields is a list of field names (e.g. "BlockId") to unconditionally
  6536  	// include in API requests. By default, fields with empty or default values are
  6537  	// omitted from API requests. See
  6538  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6539  	// details.
  6540  	ForceSendFields []string `json:"-"`
  6541  	// NullFields is a list of field names (e.g. "BlockId") to include in API
  6542  	// requests with the JSON null value. By default, fields with empty values are
  6543  	// omitted from API requests. See
  6544  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6545  	NullFields []string `json:"-"`
  6546  }
  6547  
  6548  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock) MarshalJSON() ([]byte, error) {
  6549  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock
  6550  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6551  }
  6552  
  6553  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutLi
  6554  // stBlock: Represents a list type block.
  6555  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock struct {
  6556  	// ListEntries: List entries that constitute a list block.
  6557  	ListEntries []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry `json:"listEntries,omitempty"`
  6558  	// Type: Type of the list_entries (if exist). Available options are `ordered`
  6559  	// and `unordered`.
  6560  	Type string `json:"type,omitempty"`
  6561  	// ForceSendFields is a list of field names (e.g. "ListEntries") to
  6562  	// unconditionally include in API requests. By default, fields with empty or
  6563  	// default values are omitted from API requests. See
  6564  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6565  	// details.
  6566  	ForceSendFields []string `json:"-"`
  6567  	// NullFields is a list of field names (e.g. "ListEntries") to include in API
  6568  	// requests with the JSON null value. By default, fields with empty values are
  6569  	// omitted from API requests. See
  6570  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6571  	NullFields []string `json:"-"`
  6572  }
  6573  
  6574  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock) MarshalJSON() ([]byte, error) {
  6575  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
  6576  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6577  }
  6578  
  6579  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutLi
  6580  // stEntry: Represents an entry in the list.
  6581  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry struct {
  6582  	// Blocks: A list entry is a list of blocks. Repeated blocks support further
  6583  	// hierarchies and nested blocks.
  6584  	Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
  6585  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  6586  	// include in API requests. By default, fields with empty or default values are
  6587  	// omitted from API requests. See
  6588  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6589  	// details.
  6590  	ForceSendFields []string `json:"-"`
  6591  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  6592  	// requests with the JSON null value. By default, fields with empty values are
  6593  	// omitted from API requests. See
  6594  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6595  	NullFields []string `json:"-"`
  6596  }
  6597  
  6598  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry) MarshalJSON() ([]byte, error) {
  6599  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
  6600  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6601  }
  6602  
  6603  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPa
  6604  // geSpan: Represents where the block starts and ends in the document.
  6605  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan struct {
  6606  	// PageEnd: Page where block ends in the document.
  6607  	PageEnd int64 `json:"pageEnd,omitempty"`
  6608  	// PageStart: Page where block starts in the document.
  6609  	PageStart int64 `json:"pageStart,omitempty"`
  6610  	// ForceSendFields is a list of field names (e.g. "PageEnd") to unconditionally
  6611  	// include in API requests. By default, fields with empty or default values are
  6612  	// omitted from API requests. See
  6613  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6614  	// details.
  6615  	ForceSendFields []string `json:"-"`
  6616  	// NullFields is a list of field names (e.g. "PageEnd") to include in API
  6617  	// requests with the JSON null value. By default, fields with empty values are
  6618  	// omitted from API requests. See
  6619  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6620  	NullFields []string `json:"-"`
  6621  }
  6622  
  6623  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan) MarshalJSON() ([]byte, error) {
  6624  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
  6625  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6626  }
  6627  
  6628  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTa
  6629  // bleBlock: Represents a table type block.
  6630  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock struct {
  6631  	// BodyRows: Body rows containing main table content.
  6632  	BodyRows []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"bodyRows,omitempty"`
  6633  	// Caption: Table caption/title.
  6634  	Caption string `json:"caption,omitempty"`
  6635  	// HeaderRows: Header rows at the top of the table.
  6636  	HeaderRows []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"headerRows,omitempty"`
  6637  	// ForceSendFields is a list of field names (e.g. "BodyRows") to
  6638  	// unconditionally include in API requests. By default, fields with empty or
  6639  	// default values are omitted from API requests. See
  6640  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6641  	// details.
  6642  	ForceSendFields []string `json:"-"`
  6643  	// NullFields is a list of field names (e.g. "BodyRows") to include in API
  6644  	// requests with the JSON null value. By default, fields with empty values are
  6645  	// omitted from API requests. See
  6646  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6647  	NullFields []string `json:"-"`
  6648  }
  6649  
  6650  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock) MarshalJSON() ([]byte, error) {
  6651  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
  6652  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6653  }
  6654  
  6655  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTa
  6656  // bleCell: Represents a cell in a table row.
  6657  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell struct {
  6658  	// Blocks: A table cell is a list of blocks. Repeated blocks support further
  6659  	// hierarchies and nested blocks.
  6660  	Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
  6661  	// ColSpan: How many columns this cell spans.
  6662  	ColSpan int64 `json:"colSpan,omitempty"`
  6663  	// RowSpan: How many rows this cell spans.
  6664  	RowSpan int64 `json:"rowSpan,omitempty"`
  6665  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  6666  	// include in API requests. By default, fields with empty or default values are
  6667  	// omitted from API requests. See
  6668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6669  	// details.
  6670  	ForceSendFields []string `json:"-"`
  6671  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  6672  	// requests with the JSON null value. By default, fields with empty values are
  6673  	// omitted from API requests. See
  6674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6675  	NullFields []string `json:"-"`
  6676  }
  6677  
  6678  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell) MarshalJSON() ([]byte, error) {
  6679  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
  6680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6681  }
  6682  
  6683  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTa
  6684  // bleRow: Represents a row in a table.
  6685  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow struct {
  6686  	// Cells: A table row is a list of table cells.
  6687  	Cells []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell `json:"cells,omitempty"`
  6688  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
  6689  	// include in API requests. By default, fields with empty or default values are
  6690  	// omitted from API requests. See
  6691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6692  	// details.
  6693  	ForceSendFields []string `json:"-"`
  6694  	// NullFields is a list of field names (e.g. "Cells") to include in API
  6695  	// requests with the JSON null value. By default, fields with empty values are
  6696  	// omitted from API requests. See
  6697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6698  	NullFields []string `json:"-"`
  6699  }
  6700  
  6701  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow) MarshalJSON() ([]byte, error) {
  6702  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
  6703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6704  }
  6705  
  6706  // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTe
  6707  // xtBlock: Represents a text type block.
  6708  type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock struct {
  6709  	// Blocks: A text block could further have child blocks. Repeated blocks
  6710  	// support further hierarchies and nested blocks.
  6711  	Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"`
  6712  	// Text: Text content stored in the block.
  6713  	Text string `json:"text,omitempty"`
  6714  	// Type: Type of the text in the block. Available options are: `paragraph`,
  6715  	// `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`,
  6716  	// `header`, `footer`.
  6717  	Type string `json:"type,omitempty"`
  6718  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  6719  	// include in API requests. By default, fields with empty or default values are
  6720  	// omitted from API requests. See
  6721  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6722  	// details.
  6723  	ForceSendFields []string `json:"-"`
  6724  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  6725  	// requests with the JSON null value. By default, fields with empty values are
  6726  	// omitted from API requests. See
  6727  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6728  	NullFields []string `json:"-"`
  6729  }
  6730  
  6731  func (s *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock) MarshalJSON() ([]byte, error) {
  6732  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
  6733  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6734  }
  6735  
  6736  // GoogleCloudDocumentaiV1beta3DocumentEntity: An entity that could be a phrase
  6737  // in the text or a property that belongs to the document. It is a known entity
  6738  // type, such as a person, an organization, or location.
  6739  type GoogleCloudDocumentaiV1beta3DocumentEntity struct {
  6740  	// Confidence: Optional. Confidence of detected Schema entity. Range `[0, 1]`.
  6741  	Confidence float64 `json:"confidence,omitempty"`
  6742  	// Id: Optional. Canonical id. This will be a unique value in the entity list
  6743  	// for this document.
  6744  	Id string `json:"id,omitempty"`
  6745  	// MentionId: Optional. Deprecated. Use `id` field instead.
  6746  	MentionId string `json:"mentionId,omitempty"`
  6747  	// MentionText: Optional. Text value of the entity e.g. `1600 Amphitheatre
  6748  	// Pkwy`.
  6749  	MentionText string `json:"mentionText,omitempty"`
  6750  	// NormalizedValue: Optional. Normalized entity value. Absent if the extracted
  6751  	// value could not be converted or the type (e.g. address) is not supported for
  6752  	// certain parsers. This field is also only populated for certain supported
  6753  	// document types.
  6754  	NormalizedValue *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"`
  6755  	// PageAnchor: Optional. Represents the provenance of this entity wrt. the
  6756  	// location on the page where it was found.
  6757  	PageAnchor *GoogleCloudDocumentaiV1beta3DocumentPageAnchor `json:"pageAnchor,omitempty"`
  6758  	// Properties: Optional. Entities can be nested to form a hierarchical data
  6759  	// structure representing the content in the document.
  6760  	Properties []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"properties,omitempty"`
  6761  	// Provenance: Optional. The history of this annotation.
  6762  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  6763  	// Redacted: Optional. Whether the entity will be redacted for
  6764  	// de-identification purposes.
  6765  	Redacted bool `json:"redacted,omitempty"`
  6766  	// TextAnchor: Optional. Provenance of the entity. Text anchor indexing into
  6767  	// the Document.text.
  6768  	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
  6769  	// Type: Required. Entity type from a schema e.g. `Address`.
  6770  	Type string `json:"type,omitempty"`
  6771  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  6772  	// unconditionally include in API requests. By default, fields with empty or
  6773  	// default values are omitted from API requests. See
  6774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6775  	// details.
  6776  	ForceSendFields []string `json:"-"`
  6777  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  6778  	// requests with the JSON null value. By default, fields with empty values are
  6779  	// omitted from API requests. See
  6780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6781  	NullFields []string `json:"-"`
  6782  }
  6783  
  6784  func (s *GoogleCloudDocumentaiV1beta3DocumentEntity) MarshalJSON() ([]byte, error) {
  6785  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntity
  6786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6787  }
  6788  
  6789  func (s *GoogleCloudDocumentaiV1beta3DocumentEntity) UnmarshalJSON(data []byte) error {
  6790  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntity
  6791  	var s1 struct {
  6792  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  6793  		*NoMethod
  6794  	}
  6795  	s1.NoMethod = (*NoMethod)(s)
  6796  	if err := json.Unmarshal(data, &s1); err != nil {
  6797  		return err
  6798  	}
  6799  	s.Confidence = float64(s1.Confidence)
  6800  	return nil
  6801  }
  6802  
  6803  // GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue: Parsed and
  6804  // normalized entity value.
  6805  type GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue struct {
  6806  	// AddressValue: Postal address. See also:
  6807  	// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
  6808  	AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"`
  6809  	// BooleanValue: Boolean value. Can be used for entities with binary values, or
  6810  	// for checkboxes.
  6811  	BooleanValue bool `json:"booleanValue,omitempty"`
  6812  	// DateValue: Date value. Includes year, month, day. See also:
  6813  	// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
  6814  	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
  6815  	// DatetimeValue: DateTime value. Includes date, time, and timezone. See also:
  6816  	// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
  6817  	DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"`
  6818  	// FloatValue: Float value.
  6819  	FloatValue float64 `json:"floatValue,omitempty"`
  6820  	// IntegerValue: Integer value.
  6821  	IntegerValue int64 `json:"integerValue,omitempty"`
  6822  	// MoneyValue: Money value. See also:
  6823  	// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
  6824  	MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"`
  6825  	// Text: Optional. An optional field to store a normalized string. For some
  6826  	// entity types, one of respective `structured_value` fields may also be
  6827  	// populated. Also not all the types of `structured_value` will be normalized.
  6828  	// For example, some processors may not generate `float` or `integer`
  6829  	// normalized text by default. Below are sample formats mapped to structured
  6830  	// values. - Money/Currency type (`money_value`) is in the ISO 4217 text
  6831  	// format. - Date type (`date_value`) is in the ISO 8601 text format. -
  6832  	// Datetime type (`datetime_value`) is in the ISO 8601 text format.
  6833  	Text string `json:"text,omitempty"`
  6834  	// ForceSendFields is a list of field names (e.g. "AddressValue") to
  6835  	// unconditionally include in API requests. By default, fields with empty or
  6836  	// default values are omitted from API requests. See
  6837  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6838  	// details.
  6839  	ForceSendFields []string `json:"-"`
  6840  	// NullFields is a list of field names (e.g. "AddressValue") to include in API
  6841  	// requests with the JSON null value. By default, fields with empty values are
  6842  	// omitted from API requests. See
  6843  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6844  	NullFields []string `json:"-"`
  6845  }
  6846  
  6847  func (s *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) {
  6848  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
  6849  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6850  }
  6851  
  6852  func (s *GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error {
  6853  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
  6854  	var s1 struct {
  6855  		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
  6856  		*NoMethod
  6857  	}
  6858  	s1.NoMethod = (*NoMethod)(s)
  6859  	if err := json.Unmarshal(data, &s1); err != nil {
  6860  		return err
  6861  	}
  6862  	s.FloatValue = float64(s1.FloatValue)
  6863  	return nil
  6864  }
  6865  
  6866  // GoogleCloudDocumentaiV1beta3DocumentEntityRelation: Relationship between
  6867  // Entities.
  6868  type GoogleCloudDocumentaiV1beta3DocumentEntityRelation struct {
  6869  	// ObjectId: Object entity id.
  6870  	ObjectId string `json:"objectId,omitempty"`
  6871  	// Relation: Relationship description.
  6872  	Relation string `json:"relation,omitempty"`
  6873  	// SubjectId: Subject entity id.
  6874  	SubjectId string `json:"subjectId,omitempty"`
  6875  	// ForceSendFields is a list of field names (e.g. "ObjectId") to
  6876  	// unconditionally include in API requests. By default, fields with empty or
  6877  	// default values are omitted from API requests. See
  6878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6879  	// details.
  6880  	ForceSendFields []string `json:"-"`
  6881  	// NullFields is a list of field names (e.g. "ObjectId") to include in API
  6882  	// requests with the JSON null value. By default, fields with empty values are
  6883  	// omitted from API requests. See
  6884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6885  	NullFields []string `json:"-"`
  6886  }
  6887  
  6888  func (s *GoogleCloudDocumentaiV1beta3DocumentEntityRelation) MarshalJSON() ([]byte, error) {
  6889  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentEntityRelation
  6890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6891  }
  6892  
  6893  // GoogleCloudDocumentaiV1beta3DocumentId: Document Identifier.
  6894  type GoogleCloudDocumentaiV1beta3DocumentId struct {
  6895  	// GcsManagedDocId: A document id within user-managed Cloud Storage.
  6896  	GcsManagedDocId *GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"`
  6897  	// RevisionRef: Points to a specific revision of the document if set.
  6898  	RevisionRef *GoogleCloudDocumentaiV1beta3RevisionRef `json:"revisionRef,omitempty"`
  6899  	// UnmanagedDocId: A document id within unmanaged dataset.
  6900  	UnmanagedDocId *GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId `json:"unmanagedDocId,omitempty"`
  6901  	// ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to
  6902  	// unconditionally include in API requests. By default, fields with empty or
  6903  	// default values are omitted from API requests. See
  6904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6905  	// details.
  6906  	ForceSendFields []string `json:"-"`
  6907  	// NullFields is a list of field names (e.g. "GcsManagedDocId") to include in
  6908  	// API requests with the JSON null value. By default, fields with empty values
  6909  	// are omitted from API requests. See
  6910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6911  	NullFields []string `json:"-"`
  6912  }
  6913  
  6914  func (s *GoogleCloudDocumentaiV1beta3DocumentId) MarshalJSON() ([]byte, error) {
  6915  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentId
  6916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6917  }
  6918  
  6919  // GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId: Identifies a
  6920  // document uniquely within the scope of a dataset in the user-managed Cloud
  6921  // Storage option.
  6922  type GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId struct {
  6923  	// CwDocId: Id of the document (indexed) managed by Content Warehouse.
  6924  	CwDocId string `json:"cwDocId,omitempty"`
  6925  	// GcsUri: Required. The Cloud Storage URI where the actual document is stored.
  6926  	GcsUri string `json:"gcsUri,omitempty"`
  6927  	// ForceSendFields is a list of field names (e.g. "CwDocId") to unconditionally
  6928  	// include in API requests. By default, fields with empty or default values are
  6929  	// omitted from API requests. See
  6930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6931  	// details.
  6932  	ForceSendFields []string `json:"-"`
  6933  	// NullFields is a list of field names (e.g. "CwDocId") to include in API
  6934  	// requests with the JSON null value. By default, fields with empty values are
  6935  	// omitted from API requests. See
  6936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6937  	NullFields []string `json:"-"`
  6938  }
  6939  
  6940  func (s *GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) {
  6941  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId
  6942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6943  }
  6944  
  6945  // GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId: Identifies a
  6946  // document uniquely within the scope of a dataset in unmanaged option.
  6947  type GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId struct {
  6948  	// DocId: Required. The id of the document.
  6949  	DocId string `json:"docId,omitempty"`
  6950  	// ForceSendFields is a list of field names (e.g. "DocId") to unconditionally
  6951  	// include in API requests. By default, fields with empty or default values are
  6952  	// omitted from API requests. See
  6953  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6954  	// details.
  6955  	ForceSendFields []string `json:"-"`
  6956  	// NullFields is a list of field names (e.g. "DocId") to include in API
  6957  	// requests with the JSON null value. By default, fields with empty values are
  6958  	// omitted from API requests. See
  6959  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6960  	NullFields []string `json:"-"`
  6961  }
  6962  
  6963  func (s *GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId) MarshalJSON() ([]byte, error) {
  6964  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId
  6965  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6966  }
  6967  
  6968  // GoogleCloudDocumentaiV1beta3DocumentMetadata: Metadata about a document.
  6969  type GoogleCloudDocumentaiV1beta3DocumentMetadata struct {
  6970  	// DatasetType: Type of the dataset split to which the document belongs.
  6971  	//
  6972  	// Possible values:
  6973  	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set.
  6974  	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
  6975  	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
  6976  	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
  6977  	DatasetType string `json:"datasetType,omitempty"`
  6978  	// DisplayName: The display name of the document.
  6979  	DisplayName string `json:"displayName,omitempty"`
  6980  	// DocumentId: Document identifier.
  6981  	DocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"documentId,omitempty"`
  6982  	// LabelingState: Labeling state of the document.
  6983  	//
  6984  	// Possible values:
  6985  	//   "DOCUMENT_LABELING_STATE_UNSPECIFIED" - Default value if the enum is not
  6986  	// set.
  6987  	//   "DOCUMENT_LABELED" - Document has been labeled.
  6988  	//   "DOCUMENT_UNLABELED" - Document has not been labeled.
  6989  	//   "DOCUMENT_AUTO_LABELED" - Document has been auto-labeled.
  6990  	LabelingState string `json:"labelingState,omitempty"`
  6991  	// PageCount: Number of pages in the document.
  6992  	PageCount int64 `json:"pageCount,omitempty"`
  6993  	// ForceSendFields is a list of field names (e.g. "DatasetType") to
  6994  	// unconditionally include in API requests. By default, fields with empty or
  6995  	// default values are omitted from API requests. See
  6996  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6997  	// details.
  6998  	ForceSendFields []string `json:"-"`
  6999  	// NullFields is a list of field names (e.g. "DatasetType") to include in API
  7000  	// requests with the JSON null value. By default, fields with empty values are
  7001  	// omitted from API requests. See
  7002  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7003  	NullFields []string `json:"-"`
  7004  }
  7005  
  7006  func (s *GoogleCloudDocumentaiV1beta3DocumentMetadata) MarshalJSON() ([]byte, error) {
  7007  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentMetadata
  7008  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7009  }
  7010  
  7011  // GoogleCloudDocumentaiV1beta3DocumentOutputConfig: Config that controls the
  7012  // output of documents. All documents will be written as a JSON file.
  7013  type GoogleCloudDocumentaiV1beta3DocumentOutputConfig struct {
  7014  	// GcsOutputConfig: Output config to write the results to Cloud Storage.
  7015  	GcsOutputConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig `json:"gcsOutputConfig,omitempty"`
  7016  	// ForceSendFields is a list of field names (e.g. "GcsOutputConfig") to
  7017  	// unconditionally include in API requests. By default, fields with empty or
  7018  	// default values are omitted from API requests. See
  7019  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7020  	// details.
  7021  	ForceSendFields []string `json:"-"`
  7022  	// NullFields is a list of field names (e.g. "GcsOutputConfig") to include in
  7023  	// API requests with the JSON null value. By default, fields with empty values
  7024  	// are omitted from API requests. See
  7025  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7026  	NullFields []string `json:"-"`
  7027  }
  7028  
  7029  func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfig) MarshalJSON() ([]byte, error) {
  7030  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfig
  7031  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7032  }
  7033  
  7034  // GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig: The
  7035  // configuration used when outputting documents.
  7036  type GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig struct {
  7037  	// FieldMask: Specifies which fields to include in the output documents. Only
  7038  	// supports top level document and pages field so it must be in the form of
  7039  	// `{document_field_name}` or `pages.{page_field_name}`.
  7040  	FieldMask string `json:"fieldMask,omitempty"`
  7041  	// GcsUri: The Cloud Storage uri (a directory) of the output.
  7042  	GcsUri string `json:"gcsUri,omitempty"`
  7043  	// ShardingConfig: Specifies the sharding config for the output document.
  7044  	ShardingConfig *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig `json:"shardingConfig,omitempty"`
  7045  	// ForceSendFields is a list of field names (e.g. "FieldMask") to
  7046  	// unconditionally include in API requests. By default, fields with empty or
  7047  	// default values are omitted from API requests. See
  7048  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7049  	// details.
  7050  	ForceSendFields []string `json:"-"`
  7051  	// NullFields is a list of field names (e.g. "FieldMask") to include in API
  7052  	// requests with the JSON null value. By default, fields with empty values are
  7053  	// omitted from API requests. See
  7054  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7055  	NullFields []string `json:"-"`
  7056  }
  7057  
  7058  func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig) MarshalJSON() ([]byte, error) {
  7059  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig
  7060  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7061  }
  7062  
  7063  // GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig
  7064  // : The sharding config for the output document.
  7065  type GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig struct {
  7066  	// PagesOverlap: The number of overlapping pages between consecutive shards.
  7067  	PagesOverlap int64 `json:"pagesOverlap,omitempty"`
  7068  	// PagesPerShard: The number of pages per shard.
  7069  	PagesPerShard int64 `json:"pagesPerShard,omitempty"`
  7070  	// ForceSendFields is a list of field names (e.g. "PagesOverlap") to
  7071  	// unconditionally include in API requests. By default, fields with empty or
  7072  	// default values are omitted from API requests. See
  7073  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7074  	// details.
  7075  	ForceSendFields []string `json:"-"`
  7076  	// NullFields is a list of field names (e.g. "PagesOverlap") to include in API
  7077  	// requests with the JSON null value. By default, fields with empty values are
  7078  	// omitted from API requests. See
  7079  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7080  	NullFields []string `json:"-"`
  7081  }
  7082  
  7083  func (s *GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig) MarshalJSON() ([]byte, error) {
  7084  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfigShardingConfig
  7085  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7086  }
  7087  
  7088  // GoogleCloudDocumentaiV1beta3DocumentPage: A page in a Document.
  7089  type GoogleCloudDocumentaiV1beta3DocumentPage struct {
  7090  	// Blocks: A list of visually detected text blocks on the page. A block has a
  7091  	// set of lines (collected into paragraphs) that have a common line-spacing and
  7092  	// orientation.
  7093  	Blocks []*GoogleCloudDocumentaiV1beta3DocumentPageBlock `json:"blocks,omitempty"`
  7094  	// DetectedBarcodes: A list of detected barcodes.
  7095  	DetectedBarcodes []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"`
  7096  	// DetectedLanguages: A list of detected languages together with confidence.
  7097  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7098  	// Dimension: Physical dimension of the page.
  7099  	Dimension *GoogleCloudDocumentaiV1beta3DocumentPageDimension `json:"dimension,omitempty"`
  7100  	// FormFields: A list of visually detected form fields on the page.
  7101  	FormFields []*GoogleCloudDocumentaiV1beta3DocumentPageFormField `json:"formFields,omitempty"`
  7102  	// Image: Rendered image for this page. This image is preprocessed to remove
  7103  	// any skew, rotation, and distortions such that the annotation bounding boxes
  7104  	// can be upright and axis-aligned.
  7105  	Image *GoogleCloudDocumentaiV1beta3DocumentPageImage `json:"image,omitempty"`
  7106  	// ImageQualityScores: Image quality scores.
  7107  	ImageQualityScores *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"`
  7108  	// Layout: Layout for the page.
  7109  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7110  	// Lines: A list of visually detected text lines on the page. A collection of
  7111  	// tokens that a human would perceive as a line.
  7112  	Lines []*GoogleCloudDocumentaiV1beta3DocumentPageLine `json:"lines,omitempty"`
  7113  	// PageNumber: 1-based index for current Page in a parent Document. Useful when
  7114  	// a page is taken out of a Document for individual processing.
  7115  	PageNumber int64 `json:"pageNumber,omitempty"`
  7116  	// Paragraphs: A list of visually detected text paragraphs on the page. A
  7117  	// collection of lines that a human would perceive as a paragraph.
  7118  	Paragraphs []*GoogleCloudDocumentaiV1beta3DocumentPageParagraph `json:"paragraphs,omitempty"`
  7119  	// Provenance: The history of this page.
  7120  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7121  	// Symbols: A list of visually detected symbols on the page.
  7122  	Symbols []*GoogleCloudDocumentaiV1beta3DocumentPageSymbol `json:"symbols,omitempty"`
  7123  	// Tables: A list of visually detected tables on the page.
  7124  	Tables []*GoogleCloudDocumentaiV1beta3DocumentPageTable `json:"tables,omitempty"`
  7125  	// Tokens: A list of visually detected tokens on the page.
  7126  	Tokens []*GoogleCloudDocumentaiV1beta3DocumentPageToken `json:"tokens,omitempty"`
  7127  	// Transforms: Transformation matrices that were applied to the original
  7128  	// document image to produce Page.image.
  7129  	Transforms []*GoogleCloudDocumentaiV1beta3DocumentPageMatrix `json:"transforms,omitempty"`
  7130  	// VisualElements: A list of detected non-text visual elements e.g. checkbox,
  7131  	// signature etc. on the page.
  7132  	VisualElements []*GoogleCloudDocumentaiV1beta3DocumentPageVisualElement `json:"visualElements,omitempty"`
  7133  	// ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally
  7134  	// include in API requests. By default, fields with empty or default values are
  7135  	// omitted from API requests. See
  7136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7137  	// details.
  7138  	ForceSendFields []string `json:"-"`
  7139  	// NullFields is a list of field names (e.g. "Blocks") to include in API
  7140  	// requests with the JSON null value. By default, fields with empty values are
  7141  	// omitted from API requests. See
  7142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7143  	NullFields []string `json:"-"`
  7144  }
  7145  
  7146  func (s *GoogleCloudDocumentaiV1beta3DocumentPage) MarshalJSON() ([]byte, error) {
  7147  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPage
  7148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7149  }
  7150  
  7151  // GoogleCloudDocumentaiV1beta3DocumentPageAnchor: Referencing the visual
  7152  // context of the entity in the Document.pages. Page anchors can be cross-page,
  7153  // consist of multiple bounding polygons and optionally reference specific
  7154  // layout element types.
  7155  type GoogleCloudDocumentaiV1beta3DocumentPageAnchor struct {
  7156  	// PageRefs: One or more references to visual page elements
  7157  	PageRefs []*GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef `json:"pageRefs,omitempty"`
  7158  	// ForceSendFields is a list of field names (e.g. "PageRefs") to
  7159  	// unconditionally include in API requests. By default, fields with empty or
  7160  	// default values are omitted from API requests. See
  7161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7162  	// details.
  7163  	ForceSendFields []string `json:"-"`
  7164  	// NullFields is a list of field names (e.g. "PageRefs") to include in API
  7165  	// requests with the JSON null value. By default, fields with empty values are
  7166  	// omitted from API requests. See
  7167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7168  	NullFields []string `json:"-"`
  7169  }
  7170  
  7171  func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchor) MarshalJSON() ([]byte, error) {
  7172  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchor
  7173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7174  }
  7175  
  7176  // GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef: Represents a weak
  7177  // reference to a page element within a document.
  7178  type GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef struct {
  7179  	// BoundingPoly: Optional. Identifies the bounding polygon of a layout element
  7180  	// on the page. If `layout_type` is set, the bounding polygon must be exactly
  7181  	// the same to the layout element it's referring to.
  7182  	BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"`
  7183  	// Confidence: Optional. Confidence of detected page element, if applicable.
  7184  	// Range `[0, 1]`.
  7185  	Confidence float64 `json:"confidence,omitempty"`
  7186  	// LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead.
  7187  	LayoutId string `json:"layoutId,omitempty"`
  7188  	// LayoutType: Optional. The type of the layout element that is being
  7189  	// referenced if any.
  7190  	//
  7191  	// Possible values:
  7192  	//   "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified.
  7193  	//   "BLOCK" - References a Page.blocks element.
  7194  	//   "PARAGRAPH" - References a Page.paragraphs element.
  7195  	//   "LINE" - References a Page.lines element.
  7196  	//   "TOKEN" - References a Page.tokens element.
  7197  	//   "VISUAL_ELEMENT" - References a Page.visual_elements element.
  7198  	//   "TABLE" - Refrrences a Page.tables element.
  7199  	//   "FORM_FIELD" - References a Page.form_fields element.
  7200  	LayoutType string `json:"layoutType,omitempty"`
  7201  	// Page: Required. Index into the Document.pages element, for example using
  7202  	// `Document.pages` to locate the related page element. This field is skipped
  7203  	// when its value is the default `0`. See
  7204  	// https://developers.google.com/protocol-buffers/docs/proto3#json.
  7205  	Page int64 `json:"page,omitempty,string"`
  7206  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  7207  	// unconditionally include in API requests. By default, fields with empty or
  7208  	// default values are omitted from API requests. See
  7209  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7210  	// details.
  7211  	ForceSendFields []string `json:"-"`
  7212  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  7213  	// requests with the JSON null value. By default, fields with empty values are
  7214  	// omitted from API requests. See
  7215  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7216  	NullFields []string `json:"-"`
  7217  }
  7218  
  7219  func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) {
  7220  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef
  7221  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7222  }
  7223  
  7224  func (s *GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error {
  7225  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef
  7226  	var s1 struct {
  7227  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7228  		*NoMethod
  7229  	}
  7230  	s1.NoMethod = (*NoMethod)(s)
  7231  	if err := json.Unmarshal(data, &s1); err != nil {
  7232  		return err
  7233  	}
  7234  	s.Confidence = float64(s1.Confidence)
  7235  	return nil
  7236  }
  7237  
  7238  // GoogleCloudDocumentaiV1beta3DocumentPageBlock: A block has a set of lines
  7239  // (collected into paragraphs) that have a common line-spacing and orientation.
  7240  type GoogleCloudDocumentaiV1beta3DocumentPageBlock struct {
  7241  	// DetectedLanguages: A list of detected languages together with confidence.
  7242  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7243  	// Layout: Layout for Block.
  7244  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7245  	// Provenance: The history of this annotation.
  7246  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7247  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  7248  	// unconditionally include in API requests. By default, fields with empty or
  7249  	// default values are omitted from API requests. See
  7250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7251  	// details.
  7252  	ForceSendFields []string `json:"-"`
  7253  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  7254  	// API requests with the JSON null value. By default, fields with empty values
  7255  	// are omitted from API requests. See
  7256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7257  	NullFields []string `json:"-"`
  7258  }
  7259  
  7260  func (s *GoogleCloudDocumentaiV1beta3DocumentPageBlock) MarshalJSON() ([]byte, error) {
  7261  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageBlock
  7262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7263  }
  7264  
  7265  // GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode: A detected barcode.
  7266  type GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode struct {
  7267  	// Barcode: Detailed barcode information of the DetectedBarcode.
  7268  	Barcode *GoogleCloudDocumentaiV1beta3Barcode `json:"barcode,omitempty"`
  7269  	// Layout: Layout for DetectedBarcode.
  7270  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7271  	// ForceSendFields is a list of field names (e.g. "Barcode") to unconditionally
  7272  	// include in API requests. By default, fields with empty or default values are
  7273  	// omitted from API requests. See
  7274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7275  	// details.
  7276  	ForceSendFields []string `json:"-"`
  7277  	// NullFields is a list of field names (e.g. "Barcode") to include in API
  7278  	// requests with the JSON null value. By default, fields with empty values are
  7279  	// omitted from API requests. See
  7280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7281  	NullFields []string `json:"-"`
  7282  }
  7283  
  7284  func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) {
  7285  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode
  7286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7287  }
  7288  
  7289  // GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage: Detected language
  7290  // for a structural component.
  7291  type GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage struct {
  7292  	// Confidence: Confidence of detected language. Range `[0, 1]`.
  7293  	Confidence float64 `json:"confidence,omitempty"`
  7294  	// LanguageCode: The BCP-47 language code
  7295  	// (https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as
  7296  	// `en-US` or `sr-Latn`.
  7297  	LanguageCode string `json:"languageCode,omitempty"`
  7298  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  7299  	// unconditionally include in API requests. By default, fields with empty or
  7300  	// default values are omitted from API requests. See
  7301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7302  	// details.
  7303  	ForceSendFields []string `json:"-"`
  7304  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  7305  	// requests with the JSON null value. By default, fields with empty values are
  7306  	// omitted from API requests. See
  7307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7308  	NullFields []string `json:"-"`
  7309  }
  7310  
  7311  func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) {
  7312  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
  7313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7314  }
  7315  
  7316  func (s *GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error {
  7317  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
  7318  	var s1 struct {
  7319  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7320  		*NoMethod
  7321  	}
  7322  	s1.NoMethod = (*NoMethod)(s)
  7323  	if err := json.Unmarshal(data, &s1); err != nil {
  7324  		return err
  7325  	}
  7326  	s.Confidence = float64(s1.Confidence)
  7327  	return nil
  7328  }
  7329  
  7330  // GoogleCloudDocumentaiV1beta3DocumentPageDimension: Dimension for the page.
  7331  type GoogleCloudDocumentaiV1beta3DocumentPageDimension struct {
  7332  	// Height: Page height.
  7333  	Height float64 `json:"height,omitempty"`
  7334  	// Unit: Dimension unit.
  7335  	Unit string `json:"unit,omitempty"`
  7336  	// Width: Page width.
  7337  	Width float64 `json:"width,omitempty"`
  7338  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  7339  	// include in API requests. By default, fields with empty or default values are
  7340  	// omitted from API requests. See
  7341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7342  	// details.
  7343  	ForceSendFields []string `json:"-"`
  7344  	// NullFields is a list of field names (e.g. "Height") to include in API
  7345  	// requests with the JSON null value. By default, fields with empty values are
  7346  	// omitted from API requests. See
  7347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7348  	NullFields []string `json:"-"`
  7349  }
  7350  
  7351  func (s *GoogleCloudDocumentaiV1beta3DocumentPageDimension) MarshalJSON() ([]byte, error) {
  7352  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDimension
  7353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7354  }
  7355  
  7356  func (s *GoogleCloudDocumentaiV1beta3DocumentPageDimension) UnmarshalJSON(data []byte) error {
  7357  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDimension
  7358  	var s1 struct {
  7359  		Height gensupport.JSONFloat64 `json:"height"`
  7360  		Width  gensupport.JSONFloat64 `json:"width"`
  7361  		*NoMethod
  7362  	}
  7363  	s1.NoMethod = (*NoMethod)(s)
  7364  	if err := json.Unmarshal(data, &s1); err != nil {
  7365  		return err
  7366  	}
  7367  	s.Height = float64(s1.Height)
  7368  	s.Width = float64(s1.Width)
  7369  	return nil
  7370  }
  7371  
  7372  // GoogleCloudDocumentaiV1beta3DocumentPageFormField: A form field detected on
  7373  // the page.
  7374  type GoogleCloudDocumentaiV1beta3DocumentPageFormField struct {
  7375  	// CorrectedKeyText: Created for Labeling UI to export key text. If corrections
  7376  	// were made to the text identified by the `field_name.text_anchor`, this field
  7377  	// will contain the correction.
  7378  	CorrectedKeyText string `json:"correctedKeyText,omitempty"`
  7379  	// CorrectedValueText: Created for Labeling UI to export value text. If
  7380  	// corrections were made to the text identified by the
  7381  	// `field_value.text_anchor`, this field will contain the correction.
  7382  	CorrectedValueText string `json:"correctedValueText,omitempty"`
  7383  	// FieldName: Layout for the FormField name. e.g. `Address`, `Email`, `Grand
  7384  	// total`, `Phone number`, etc.
  7385  	FieldName *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"fieldName,omitempty"`
  7386  	// FieldValue: Layout for the FormField value.
  7387  	FieldValue *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"fieldValue,omitempty"`
  7388  	// NameDetectedLanguages: A list of detected languages for name together with
  7389  	// confidence.
  7390  	NameDetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"`
  7391  	// Provenance: The history of this annotation.
  7392  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7393  	// ValueDetectedLanguages: A list of detected languages for value together with
  7394  	// confidence.
  7395  	ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"`
  7396  	// ValueType: If the value is non-textual, this field represents the type.
  7397  	// Current valid values are: - blank (this indicates the `field_value` is
  7398  	// normal text) - `unfilled_checkbox` - `filled_checkbox`
  7399  	ValueType string `json:"valueType,omitempty"`
  7400  	// ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to
  7401  	// unconditionally include in API requests. By default, fields with empty or
  7402  	// default values are omitted from API requests. See
  7403  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7404  	// details.
  7405  	ForceSendFields []string `json:"-"`
  7406  	// NullFields is a list of field names (e.g. "CorrectedKeyText") to include in
  7407  	// API requests with the JSON null value. By default, fields with empty values
  7408  	// are omitted from API requests. See
  7409  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7410  	NullFields []string `json:"-"`
  7411  }
  7412  
  7413  func (s *GoogleCloudDocumentaiV1beta3DocumentPageFormField) MarshalJSON() ([]byte, error) {
  7414  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageFormField
  7415  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7416  }
  7417  
  7418  // GoogleCloudDocumentaiV1beta3DocumentPageImage: Rendered image contents for
  7419  // this page.
  7420  type GoogleCloudDocumentaiV1beta3DocumentPageImage struct {
  7421  	// Content: Raw byte content of the image.
  7422  	Content string `json:"content,omitempty"`
  7423  	// Height: Height of the image in pixels.
  7424  	Height int64 `json:"height,omitempty"`
  7425  	// MimeType: Encoding media type (MIME type)
  7426  	// (https://www.iana.org/assignments/media-types/media-types.xhtml) for the
  7427  	// image.
  7428  	MimeType string `json:"mimeType,omitempty"`
  7429  	// Width: Width of the image in pixels.
  7430  	Width int64 `json:"width,omitempty"`
  7431  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  7432  	// include in API requests. By default, fields with empty or default values are
  7433  	// omitted from API requests. See
  7434  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7435  	// details.
  7436  	ForceSendFields []string `json:"-"`
  7437  	// NullFields is a list of field names (e.g. "Content") to include in API
  7438  	// requests with the JSON null value. By default, fields with empty values are
  7439  	// omitted from API requests. See
  7440  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7441  	NullFields []string `json:"-"`
  7442  }
  7443  
  7444  func (s *GoogleCloudDocumentaiV1beta3DocumentPageImage) MarshalJSON() ([]byte, error) {
  7445  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImage
  7446  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7447  }
  7448  
  7449  // GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores: Image quality
  7450  // scores for the page image.
  7451  type GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores struct {
  7452  	// DetectedDefects: A list of detected defects.
  7453  	DetectedDefects []*GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"`
  7454  	// QualityScore: The overall quality score. Range `[0, 1]` where `1` is perfect
  7455  	// quality.
  7456  	QualityScore float64 `json:"qualityScore,omitempty"`
  7457  	// ForceSendFields is a list of field names (e.g. "DetectedDefects") to
  7458  	// unconditionally include in API requests. By default, fields with empty or
  7459  	// default values are omitted from API requests. See
  7460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7461  	// details.
  7462  	ForceSendFields []string `json:"-"`
  7463  	// NullFields is a list of field names (e.g. "DetectedDefects") to include in
  7464  	// API requests with the JSON null value. By default, fields with empty values
  7465  	// are omitted from API requests. See
  7466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7467  	NullFields []string `json:"-"`
  7468  }
  7469  
  7470  func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) {
  7471  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
  7472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7473  }
  7474  
  7475  func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error {
  7476  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
  7477  	var s1 struct {
  7478  		QualityScore gensupport.JSONFloat64 `json:"qualityScore"`
  7479  		*NoMethod
  7480  	}
  7481  	s1.NoMethod = (*NoMethod)(s)
  7482  	if err := json.Unmarshal(data, &s1); err != nil {
  7483  		return err
  7484  	}
  7485  	s.QualityScore = float64(s1.QualityScore)
  7486  	return nil
  7487  }
  7488  
  7489  // GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect:
  7490  // Image Quality Defects
  7491  type GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect struct {
  7492  	// Confidence: Confidence of detected defect. Range `[0, 1]` where `1`
  7493  	// indicates strong confidence that the defect exists.
  7494  	Confidence float64 `json:"confidence,omitempty"`
  7495  	// Type: Name of the defect type. Supported values are: -
  7496  	// `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` -
  7497  	// `quality/defect_faint` - `quality/defect_text_too_small` -
  7498  	// `quality/defect_document_cutoff` - `quality/defect_text_cutoff` -
  7499  	// `quality/defect_glare`
  7500  	Type string `json:"type,omitempty"`
  7501  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  7502  	// unconditionally include in API requests. By default, fields with empty or
  7503  	// default values are omitted from API requests. See
  7504  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7505  	// details.
  7506  	ForceSendFields []string `json:"-"`
  7507  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  7508  	// requests with the JSON null value. By default, fields with empty values are
  7509  	// omitted from API requests. See
  7510  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7511  	NullFields []string `json:"-"`
  7512  }
  7513  
  7514  func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) {
  7515  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
  7516  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7517  }
  7518  
  7519  func (s *GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error {
  7520  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
  7521  	var s1 struct {
  7522  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7523  		*NoMethod
  7524  	}
  7525  	s1.NoMethod = (*NoMethod)(s)
  7526  	if err := json.Unmarshal(data, &s1); err != nil {
  7527  		return err
  7528  	}
  7529  	s.Confidence = float64(s1.Confidence)
  7530  	return nil
  7531  }
  7532  
  7533  // GoogleCloudDocumentaiV1beta3DocumentPageLayout: Visual element describing a
  7534  // layout unit on a page.
  7535  type GoogleCloudDocumentaiV1beta3DocumentPageLayout struct {
  7536  	// BoundingPoly: The bounding polygon for the Layout.
  7537  	BoundingPoly *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingPoly,omitempty"`
  7538  	// Confidence: Confidence of the current Layout within context of the object
  7539  	// this layout is for. e.g. confidence can be for a single token, a table, a
  7540  	// visual element, etc. depending on context. Range `[0, 1]`.
  7541  	Confidence float64 `json:"confidence,omitempty"`
  7542  	// Orientation: Detected orientation for the Layout.
  7543  	//
  7544  	// Possible values:
  7545  	//   "ORIENTATION_UNSPECIFIED" - Unspecified orientation.
  7546  	//   "PAGE_UP" - Orientation is aligned with page up.
  7547  	//   "PAGE_RIGHT" - Orientation is aligned with page right. Turn the head 90
  7548  	// degrees clockwise from upright to read.
  7549  	//   "PAGE_DOWN" - Orientation is aligned with page down. Turn the head 180
  7550  	// degrees from upright to read.
  7551  	//   "PAGE_LEFT" - Orientation is aligned with page left. Turn the head 90
  7552  	// degrees counterclockwise from upright to read.
  7553  	Orientation string `json:"orientation,omitempty"`
  7554  	// TextAnchor: Text anchor indexing into the Document.text.
  7555  	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
  7556  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  7557  	// unconditionally include in API requests. By default, fields with empty or
  7558  	// default values are omitted from API requests. See
  7559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7560  	// details.
  7561  	ForceSendFields []string `json:"-"`
  7562  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  7563  	// requests with the JSON null value. By default, fields with empty values are
  7564  	// omitted from API requests. See
  7565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7566  	NullFields []string `json:"-"`
  7567  }
  7568  
  7569  func (s *GoogleCloudDocumentaiV1beta3DocumentPageLayout) MarshalJSON() ([]byte, error) {
  7570  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLayout
  7571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7572  }
  7573  
  7574  func (s *GoogleCloudDocumentaiV1beta3DocumentPageLayout) UnmarshalJSON(data []byte) error {
  7575  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLayout
  7576  	var s1 struct {
  7577  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7578  		*NoMethod
  7579  	}
  7580  	s1.NoMethod = (*NoMethod)(s)
  7581  	if err := json.Unmarshal(data, &s1); err != nil {
  7582  		return err
  7583  	}
  7584  	s.Confidence = float64(s1.Confidence)
  7585  	return nil
  7586  }
  7587  
  7588  // GoogleCloudDocumentaiV1beta3DocumentPageLine: A collection of tokens that a
  7589  // human would perceive as a line. Does not cross column boundaries, can be
  7590  // horizontal, vertical, etc.
  7591  type GoogleCloudDocumentaiV1beta3DocumentPageLine struct {
  7592  	// DetectedLanguages: A list of detected languages together with confidence.
  7593  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7594  	// Layout: Layout for Line.
  7595  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7596  	// Provenance: The history of this annotation.
  7597  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7598  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  7599  	// unconditionally include in API requests. By default, fields with empty or
  7600  	// default values are omitted from API requests. See
  7601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7602  	// details.
  7603  	ForceSendFields []string `json:"-"`
  7604  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  7605  	// API requests with the JSON null value. By default, fields with empty values
  7606  	// are omitted from API requests. See
  7607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7608  	NullFields []string `json:"-"`
  7609  }
  7610  
  7611  func (s *GoogleCloudDocumentaiV1beta3DocumentPageLine) MarshalJSON() ([]byte, error) {
  7612  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageLine
  7613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7614  }
  7615  
  7616  // GoogleCloudDocumentaiV1beta3DocumentPageMatrix: Representation for
  7617  // transformation matrix, intended to be compatible and used with OpenCV format
  7618  // for image manipulation.
  7619  type GoogleCloudDocumentaiV1beta3DocumentPageMatrix struct {
  7620  	// Cols: Number of columns in the matrix.
  7621  	Cols int64 `json:"cols,omitempty"`
  7622  	// Data: The matrix data.
  7623  	Data string `json:"data,omitempty"`
  7624  	// Rows: Number of rows in the matrix.
  7625  	Rows int64 `json:"rows,omitempty"`
  7626  	// Type: This encodes information about what data type the matrix uses. For
  7627  	// example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV
  7628  	// primitive data types, please refer to
  7629  	// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
  7630  	Type int64 `json:"type,omitempty"`
  7631  	// ForceSendFields is a list of field names (e.g. "Cols") to unconditionally
  7632  	// include in API requests. By default, fields with empty or default values are
  7633  	// omitted from API requests. See
  7634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7635  	// details.
  7636  	ForceSendFields []string `json:"-"`
  7637  	// NullFields is a list of field names (e.g. "Cols") to include in API requests
  7638  	// with the JSON null value. By default, fields with empty values are omitted
  7639  	// from API requests. See
  7640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7641  	NullFields []string `json:"-"`
  7642  }
  7643  
  7644  func (s *GoogleCloudDocumentaiV1beta3DocumentPageMatrix) MarshalJSON() ([]byte, error) {
  7645  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageMatrix
  7646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7647  }
  7648  
  7649  // GoogleCloudDocumentaiV1beta3DocumentPageParagraph: A collection of lines
  7650  // that a human would perceive as a paragraph.
  7651  type GoogleCloudDocumentaiV1beta3DocumentPageParagraph struct {
  7652  	// DetectedLanguages: A list of detected languages together with confidence.
  7653  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7654  	// Layout: Layout for Paragraph.
  7655  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7656  	// Provenance: The history of this annotation.
  7657  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7658  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  7659  	// unconditionally include in API requests. By default, fields with empty or
  7660  	// default values are omitted from API requests. See
  7661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7662  	// details.
  7663  	ForceSendFields []string `json:"-"`
  7664  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  7665  	// API requests with the JSON null value. By default, fields with empty values
  7666  	// are omitted from API requests. See
  7667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7668  	NullFields []string `json:"-"`
  7669  }
  7670  
  7671  func (s *GoogleCloudDocumentaiV1beta3DocumentPageParagraph) MarshalJSON() ([]byte, error) {
  7672  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageParagraph
  7673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7674  }
  7675  
  7676  // GoogleCloudDocumentaiV1beta3DocumentPageSymbol: A detected symbol.
  7677  type GoogleCloudDocumentaiV1beta3DocumentPageSymbol struct {
  7678  	// DetectedLanguages: A list of detected languages together with confidence.
  7679  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7680  	// Layout: Layout for Symbol.
  7681  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7682  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  7683  	// unconditionally include in API requests. By default, fields with empty or
  7684  	// default values are omitted from API requests. See
  7685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7686  	// details.
  7687  	ForceSendFields []string `json:"-"`
  7688  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  7689  	// API requests with the JSON null value. By default, fields with empty values
  7690  	// are omitted from API requests. See
  7691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7692  	NullFields []string `json:"-"`
  7693  }
  7694  
  7695  func (s *GoogleCloudDocumentaiV1beta3DocumentPageSymbol) MarshalJSON() ([]byte, error) {
  7696  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageSymbol
  7697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7698  }
  7699  
  7700  // GoogleCloudDocumentaiV1beta3DocumentPageTable: A table representation
  7701  // similar to HTML table structure.
  7702  type GoogleCloudDocumentaiV1beta3DocumentPageTable struct {
  7703  	// BodyRows: Body rows of the table.
  7704  	BodyRows []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow `json:"bodyRows,omitempty"`
  7705  	// DetectedLanguages: A list of detected languages together with confidence.
  7706  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7707  	// HeaderRows: Header rows of the table.
  7708  	HeaderRows []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow `json:"headerRows,omitempty"`
  7709  	// Layout: Layout for Table.
  7710  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7711  	// Provenance: The history of this table.
  7712  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7713  	// ForceSendFields is a list of field names (e.g. "BodyRows") to
  7714  	// unconditionally include in API requests. By default, fields with empty or
  7715  	// default values are omitted from API requests. See
  7716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7717  	// details.
  7718  	ForceSendFields []string `json:"-"`
  7719  	// NullFields is a list of field names (e.g. "BodyRows") to include in API
  7720  	// requests with the JSON null value. By default, fields with empty values are
  7721  	// omitted from API requests. See
  7722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7723  	NullFields []string `json:"-"`
  7724  }
  7725  
  7726  func (s *GoogleCloudDocumentaiV1beta3DocumentPageTable) MarshalJSON() ([]byte, error) {
  7727  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTable
  7728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7729  }
  7730  
  7731  // GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell: A cell
  7732  // representation inside the table.
  7733  type GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell struct {
  7734  	// ColSpan: How many columns this cell spans.
  7735  	ColSpan int64 `json:"colSpan,omitempty"`
  7736  	// DetectedLanguages: A list of detected languages together with confidence.
  7737  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7738  	// Layout: Layout for TableCell.
  7739  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7740  	// RowSpan: How many rows this cell spans.
  7741  	RowSpan int64 `json:"rowSpan,omitempty"`
  7742  	// ForceSendFields is a list of field names (e.g. "ColSpan") to unconditionally
  7743  	// include in API requests. By default, fields with empty or default values are
  7744  	// omitted from API requests. See
  7745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7746  	// details.
  7747  	ForceSendFields []string `json:"-"`
  7748  	// NullFields is a list of field names (e.g. "ColSpan") to include in API
  7749  	// requests with the JSON null value. By default, fields with empty values are
  7750  	// omitted from API requests. See
  7751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7752  	NullFields []string `json:"-"`
  7753  }
  7754  
  7755  func (s *GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell) MarshalJSON() ([]byte, error) {
  7756  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell
  7757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7758  }
  7759  
  7760  // GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow: A row of table cells.
  7761  type GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow struct {
  7762  	// Cells: Cells that make up this row.
  7763  	Cells []*GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell `json:"cells,omitempty"`
  7764  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
  7765  	// include in API requests. By default, fields with empty or default values are
  7766  	// omitted from API requests. See
  7767  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7768  	// details.
  7769  	ForceSendFields []string `json:"-"`
  7770  	// NullFields is a list of field names (e.g. "Cells") to include in API
  7771  	// requests with the JSON null value. By default, fields with empty values are
  7772  	// omitted from API requests. See
  7773  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7774  	NullFields []string `json:"-"`
  7775  }
  7776  
  7777  func (s *GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow) MarshalJSON() ([]byte, error) {
  7778  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow
  7779  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7780  }
  7781  
  7782  // GoogleCloudDocumentaiV1beta3DocumentPageToken: A detected token.
  7783  type GoogleCloudDocumentaiV1beta3DocumentPageToken struct {
  7784  	// DetectedBreak: Detected break at the end of a Token.
  7785  	DetectedBreak *GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"`
  7786  	// DetectedLanguages: A list of detected languages together with confidence.
  7787  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7788  	// Layout: Layout for Token.
  7789  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7790  	// Provenance: The history of this annotation.
  7791  	Provenance *GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  7792  	// StyleInfo: Text style attributes.
  7793  	StyleInfo *GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"`
  7794  	// ForceSendFields is a list of field names (e.g. "DetectedBreak") to
  7795  	// unconditionally include in API requests. By default, fields with empty or
  7796  	// default values are omitted from API requests. See
  7797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7798  	// details.
  7799  	ForceSendFields []string `json:"-"`
  7800  	// NullFields is a list of field names (e.g. "DetectedBreak") to include in API
  7801  	// requests with the JSON null value. By default, fields with empty values are
  7802  	// omitted from API requests. See
  7803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7804  	NullFields []string `json:"-"`
  7805  }
  7806  
  7807  func (s *GoogleCloudDocumentaiV1beta3DocumentPageToken) MarshalJSON() ([]byte, error) {
  7808  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageToken
  7809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7810  }
  7811  
  7812  // GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak: Detected break
  7813  // at the end of a Token.
  7814  type GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak struct {
  7815  	// Type: Detected break type.
  7816  	//
  7817  	// Possible values:
  7818  	//   "TYPE_UNSPECIFIED" - Unspecified break type.
  7819  	//   "SPACE" - A single whitespace.
  7820  	//   "WIDE_SPACE" - A wider whitespace.
  7821  	//   "HYPHEN" - A hyphen that indicates that a token has been split across
  7822  	// lines.
  7823  	Type string `json:"type,omitempty"`
  7824  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  7825  	// include in API requests. By default, fields with empty or default values are
  7826  	// omitted from API requests. See
  7827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7828  	// details.
  7829  	ForceSendFields []string `json:"-"`
  7830  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  7831  	// with the JSON null value. By default, fields with empty values are omitted
  7832  	// from API requests. See
  7833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7834  	NullFields []string `json:"-"`
  7835  }
  7836  
  7837  func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) {
  7838  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak
  7839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7840  }
  7841  
  7842  // GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo: Font and other text
  7843  // style attributes.
  7844  type GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo struct {
  7845  	// BackgroundColor: Color of the background.
  7846  	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
  7847  	// Bold: Whether the text is bold (equivalent to font_weight is at least
  7848  	// `700`).
  7849  	Bold bool `json:"bold,omitempty"`
  7850  	// FontSize: Font size in points (`1` point is `¹⁄₇₂` inches).
  7851  	FontSize int64 `json:"fontSize,omitempty"`
  7852  	// FontType: Name or style of the font.
  7853  	FontType string `json:"fontType,omitempty"`
  7854  	// FontWeight: TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
  7855  	// Normal is `400`, bold is `700`.
  7856  	FontWeight int64 `json:"fontWeight,omitempty"`
  7857  	// Handwritten: Whether the text is handwritten.
  7858  	Handwritten bool `json:"handwritten,omitempty"`
  7859  	// Italic: Whether the text is italic.
  7860  	Italic bool `json:"italic,omitempty"`
  7861  	// LetterSpacing: Letter spacing in points.
  7862  	LetterSpacing float64 `json:"letterSpacing,omitempty"`
  7863  	// PixelFontSize: Font size in pixels, equal to _unrounded font_size_ *
  7864  	// _resolution_ ÷ `72.0`.
  7865  	PixelFontSize float64 `json:"pixelFontSize,omitempty"`
  7866  	// Smallcaps: Whether the text is in small caps. This feature is not supported
  7867  	// yet.
  7868  	Smallcaps bool `json:"smallcaps,omitempty"`
  7869  	// Strikeout: Whether the text is strikethrough. This feature is not supported
  7870  	// yet.
  7871  	Strikeout bool `json:"strikeout,omitempty"`
  7872  	// Subscript: Whether the text is a subscript. This feature is not supported
  7873  	// yet.
  7874  	Subscript bool `json:"subscript,omitempty"`
  7875  	// Superscript: Whether the text is a superscript. This feature is not
  7876  	// supported yet.
  7877  	Superscript bool `json:"superscript,omitempty"`
  7878  	// TextColor: Color of the text.
  7879  	TextColor *GoogleTypeColor `json:"textColor,omitempty"`
  7880  	// Underlined: Whether the text is underlined.
  7881  	Underlined bool `json:"underlined,omitempty"`
  7882  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  7883  	// unconditionally include in API requests. By default, fields with empty or
  7884  	// default values are omitted from API requests. See
  7885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7886  	// details.
  7887  	ForceSendFields []string `json:"-"`
  7888  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
  7889  	// API requests with the JSON null value. By default, fields with empty values
  7890  	// are omitted from API requests. See
  7891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7892  	NullFields []string `json:"-"`
  7893  }
  7894  
  7895  func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) {
  7896  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo
  7897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7898  }
  7899  
  7900  func (s *GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error {
  7901  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo
  7902  	var s1 struct {
  7903  		LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"`
  7904  		PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"`
  7905  		*NoMethod
  7906  	}
  7907  	s1.NoMethod = (*NoMethod)(s)
  7908  	if err := json.Unmarshal(data, &s1); err != nil {
  7909  		return err
  7910  	}
  7911  	s.LetterSpacing = float64(s1.LetterSpacing)
  7912  	s.PixelFontSize = float64(s1.PixelFontSize)
  7913  	return nil
  7914  }
  7915  
  7916  // GoogleCloudDocumentaiV1beta3DocumentPageVisualElement: Detected non-text
  7917  // visual elements e.g. checkbox, signature etc. on the page.
  7918  type GoogleCloudDocumentaiV1beta3DocumentPageVisualElement struct {
  7919  	// DetectedLanguages: A list of detected languages together with confidence.
  7920  	DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"`
  7921  	// Layout: Layout for VisualElement.
  7922  	Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"`
  7923  	// Type: Type of the VisualElement.
  7924  	Type string `json:"type,omitempty"`
  7925  	// ForceSendFields is a list of field names (e.g. "DetectedLanguages") to
  7926  	// unconditionally include in API requests. By default, fields with empty or
  7927  	// default values are omitted from API requests. See
  7928  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7929  	// details.
  7930  	ForceSendFields []string `json:"-"`
  7931  	// NullFields is a list of field names (e.g. "DetectedLanguages") to include in
  7932  	// API requests with the JSON null value. By default, fields with empty values
  7933  	// are omitted from API requests. See
  7934  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7935  	NullFields []string `json:"-"`
  7936  }
  7937  
  7938  func (s *GoogleCloudDocumentaiV1beta3DocumentPageVisualElement) MarshalJSON() ([]byte, error) {
  7939  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageVisualElement
  7940  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7941  }
  7942  
  7943  // GoogleCloudDocumentaiV1beta3DocumentProvenance: Structure to identify
  7944  // provenance relationships between annotations in different revisions.
  7945  type GoogleCloudDocumentaiV1beta3DocumentProvenance struct {
  7946  	// Id: The Id of this operation. Needs to be unique within the scope of the
  7947  	// revision.
  7948  	Id int64 `json:"id,omitempty"`
  7949  	// Parents: References to the original elements that are replaced.
  7950  	Parents []*GoogleCloudDocumentaiV1beta3DocumentProvenanceParent `json:"parents,omitempty"`
  7951  	// Revision: The index of the revision that produced this element.
  7952  	Revision int64 `json:"revision,omitempty"`
  7953  	// Type: The type of provenance operation.
  7954  	//
  7955  	// Possible values:
  7956  	//   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. If no operation
  7957  	// is specified a provenance entry is simply used to match against a `parent`.
  7958  	//   "ADD" - Add an element.
  7959  	//   "REMOVE" - Remove an element identified by `parent`.
  7960  	//   "UPDATE" - Updates any fields within the given provenance scope of the
  7961  	// message. It overwrites the fields rather than replacing them. Use this when
  7962  	// you want to update a field value of an entity without also updating all the
  7963  	// child properties.
  7964  	//   "REPLACE" - Currently unused. Replace an element identified by `parent`.
  7965  	//   "EVAL_REQUESTED" - Deprecated. Request human review for the element
  7966  	// identified by `parent`.
  7967  	//   "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at human
  7968  	// review, confidence will be set to 1.0.
  7969  	//   "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation process.
  7970  	Type string `json:"type,omitempty"`
  7971  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  7972  	// include in API requests. By default, fields with empty or default values are
  7973  	// omitted from API requests. See
  7974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7975  	// details.
  7976  	ForceSendFields []string `json:"-"`
  7977  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  7978  	// with the JSON null value. By default, fields with empty values are omitted
  7979  	// from API requests. See
  7980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7981  	NullFields []string `json:"-"`
  7982  }
  7983  
  7984  func (s *GoogleCloudDocumentaiV1beta3DocumentProvenance) MarshalJSON() ([]byte, error) {
  7985  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentProvenance
  7986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7987  }
  7988  
  7989  // GoogleCloudDocumentaiV1beta3DocumentProvenanceParent: The parent element the
  7990  // current element is based on. Used for referencing/aligning, removal and
  7991  // replacement operations.
  7992  type GoogleCloudDocumentaiV1beta3DocumentProvenanceParent struct {
  7993  	// Id: The id of the parent provenance.
  7994  	Id int64 `json:"id,omitempty"`
  7995  	// Index: The index of the parent item in the corresponding item list (eg. list
  7996  	// of entities, properties within entities, etc.) in the parent revision.
  7997  	Index int64 `json:"index,omitempty"`
  7998  	// Revision: The index of the index into current revision's parent_ids list.
  7999  	Revision int64 `json:"revision,omitempty"`
  8000  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  8001  	// include in API requests. By default, fields with empty or default values are
  8002  	// omitted from API requests. See
  8003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8004  	// details.
  8005  	ForceSendFields []string `json:"-"`
  8006  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  8007  	// with the JSON null value. By default, fields with empty values are omitted
  8008  	// from API requests. See
  8009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8010  	NullFields []string `json:"-"`
  8011  }
  8012  
  8013  func (s *GoogleCloudDocumentaiV1beta3DocumentProvenanceParent) MarshalJSON() ([]byte, error) {
  8014  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentProvenanceParent
  8015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8016  }
  8017  
  8018  // GoogleCloudDocumentaiV1beta3DocumentRevision: Contains past or forward
  8019  // revisions of this document.
  8020  type GoogleCloudDocumentaiV1beta3DocumentRevision struct {
  8021  	// Agent: If the change was made by a person specify the name or id of that
  8022  	// person.
  8023  	Agent string `json:"agent,omitempty"`
  8024  	// CreateTime: The time that the revision was created, internally generated by
  8025  	// doc proto storage at the time of create.
  8026  	CreateTime string `json:"createTime,omitempty"`
  8027  	// HumanReview: Human Review information of this revision.
  8028  	HumanReview *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview `json:"humanReview,omitempty"`
  8029  	// Id: Id of the revision, internally generated by doc proto storage. Unique
  8030  	// within the context of the document.
  8031  	Id string `json:"id,omitempty"`
  8032  	// Parent: The revisions that this revision is based on. This can include one
  8033  	// or more parent (when documents are merged.) This field represents the index
  8034  	// into the `revisions` field.
  8035  	Parent []int64 `json:"parent,omitempty"`
  8036  	// ParentIds: The revisions that this revision is based on. Must include all
  8037  	// the ids that have anything to do with this revision - eg. there are
  8038  	// `provenance.parent.revision` fields that index into this field.
  8039  	ParentIds []string `json:"parentIds,omitempty"`
  8040  	// Processor: If the annotation was made by processor identify the processor by
  8041  	// its resource name.
  8042  	Processor string `json:"processor,omitempty"`
  8043  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
  8044  	// include in API requests. By default, fields with empty or default values are
  8045  	// omitted from API requests. See
  8046  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8047  	// details.
  8048  	ForceSendFields []string `json:"-"`
  8049  	// NullFields is a list of field names (e.g. "Agent") to include in API
  8050  	// requests with the JSON null value. By default, fields with empty values are
  8051  	// omitted from API requests. See
  8052  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8053  	NullFields []string `json:"-"`
  8054  }
  8055  
  8056  func (s *GoogleCloudDocumentaiV1beta3DocumentRevision) MarshalJSON() ([]byte, error) {
  8057  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentRevision
  8058  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8059  }
  8060  
  8061  // GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview: Human Review
  8062  // information of the document.
  8063  type GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview struct {
  8064  	// State: Human review state. e.g. `requested`, `succeeded`, `rejected`.
  8065  	State string `json:"state,omitempty"`
  8066  	// StateMessage: A message providing more details about the current state of
  8067  	// processing. For example, the rejection reason when the state is `rejected`.
  8068  	StateMessage string `json:"stateMessage,omitempty"`
  8069  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  8070  	// include in API requests. By default, fields with empty or default values are
  8071  	// omitted from API requests. See
  8072  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8073  	// details.
  8074  	ForceSendFields []string `json:"-"`
  8075  	// NullFields is a list of field names (e.g. "State") to include in API
  8076  	// requests with the JSON null value. By default, fields with empty values are
  8077  	// omitted from API requests. See
  8078  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8079  	NullFields []string `json:"-"`
  8080  }
  8081  
  8082  func (s *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) {
  8083  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview
  8084  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8085  }
  8086  
  8087  // GoogleCloudDocumentaiV1beta3DocumentSchema: The schema defines the output of
  8088  // the processed document by a processor.
  8089  type GoogleCloudDocumentaiV1beta3DocumentSchema struct {
  8090  	// Description: Description of the schema.
  8091  	Description string `json:"description,omitempty"`
  8092  	// DisplayName: Display name to show to users.
  8093  	DisplayName string `json:"displayName,omitempty"`
  8094  	// EntityTypes: Entity types of the schema.
  8095  	EntityTypes []*GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType `json:"entityTypes,omitempty"`
  8096  	// Metadata: Metadata of the schema.
  8097  	Metadata *GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata `json:"metadata,omitempty"`
  8098  	// ForceSendFields is a list of field names (e.g. "Description") to
  8099  	// unconditionally include in API requests. By default, fields with empty or
  8100  	// default values are omitted from API requests. See
  8101  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8102  	// details.
  8103  	ForceSendFields []string `json:"-"`
  8104  	// NullFields is a list of field names (e.g. "Description") to include in API
  8105  	// requests with the JSON null value. By default, fields with empty values are
  8106  	// omitted from API requests. See
  8107  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8108  	NullFields []string `json:"-"`
  8109  }
  8110  
  8111  func (s *GoogleCloudDocumentaiV1beta3DocumentSchema) MarshalJSON() ([]byte, error) {
  8112  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchema
  8113  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8114  }
  8115  
  8116  // GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType: EntityType is the
  8117  // wrapper of a label of the corresponding model with detailed attributes and
  8118  // limitations for entity-based processors. Multiple types can also compose a
  8119  // dependency tree to represent nested types.
  8120  type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType struct {
  8121  	// BaseTypes: The entity type that this type is derived from. For now, one and
  8122  	// only one should be set.
  8123  	BaseTypes []string `json:"baseTypes,omitempty"`
  8124  	// DisplayName: User defined name for the type.
  8125  	DisplayName string `json:"displayName,omitempty"`
  8126  	// EntityTypeMetadata: Metadata for the entity type.
  8127  	EntityTypeMetadata *GoogleCloudDocumentaiV1beta3EntityTypeMetadata `json:"entityTypeMetadata,omitempty"`
  8128  	// EnumValues: If specified, lists all the possible values for this entity.
  8129  	// This should not be more than a handful of values. If the number of values is
  8130  	// >10 or could change frequently use the `EntityType.value_ontology` field and
  8131  	// specify a list of all possible values in a value ontology file.
  8132  	EnumValues *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues `json:"enumValues,omitempty"`
  8133  	// Name: Name of the type. It must be unique within the schema file and cannot
  8134  	// be a "Common Type". The following naming conventions are used: - Use
  8135  	// `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters.
  8136  	// - Must start with a letter. - Allowed characters: ASCII letters
  8137  	// `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
  8138  	// tooling can handle any ascii character.) - The `/` is sometimes used to
  8139  	// denote a property of a type. For example `line_item/amount`. This convention
  8140  	// is deprecated, but will still be honored for backward compatibility.
  8141  	Name string `json:"name,omitempty"`
  8142  	// Properties: Description the nested structure, or composition of an entity.
  8143  	Properties []*GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty `json:"properties,omitempty"`
  8144  	// ForceSendFields is a list of field names (e.g. "BaseTypes") to
  8145  	// unconditionally include in API requests. By default, fields with empty or
  8146  	// default values are omitted from API requests. See
  8147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8148  	// details.
  8149  	ForceSendFields []string `json:"-"`
  8150  	// NullFields is a list of field names (e.g. "BaseTypes") to include in API
  8151  	// requests with the JSON null value. By default, fields with empty values are
  8152  	// omitted from API requests. See
  8153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8154  	NullFields []string `json:"-"`
  8155  }
  8156  
  8157  func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType) MarshalJSON() ([]byte, error) {
  8158  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType
  8159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8160  }
  8161  
  8162  // GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues: Defines the
  8163  // a list of enum values.
  8164  type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues struct {
  8165  	// Values: The individual values that this enum values type can include.
  8166  	Values []string `json:"values,omitempty"`
  8167  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  8168  	// include in API requests. By default, fields with empty or default values are
  8169  	// omitted from API requests. See
  8170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8171  	// details.
  8172  	ForceSendFields []string `json:"-"`
  8173  	// NullFields is a list of field names (e.g. "Values") to include in API
  8174  	// requests with the JSON null value. By default, fields with empty values are
  8175  	// omitted from API requests. See
  8176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8177  	NullFields []string `json:"-"`
  8178  }
  8179  
  8180  func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues) MarshalJSON() ([]byte, error) {
  8181  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues
  8182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8183  }
  8184  
  8185  // GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty: Defines
  8186  // properties that can be part of the entity type.
  8187  type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct {
  8188  	// DisplayName: User defined name for the property.
  8189  	DisplayName string `json:"displayName,omitempty"`
  8190  	// Name: The name of the property. Follows the same guidelines as the
  8191  	// EntityType name.
  8192  	Name string `json:"name,omitempty"`
  8193  	// OccurrenceType: Occurrence type limits the number of instances an entity
  8194  	// type appears in the document.
  8195  	//
  8196  	// Possible values:
  8197  	//   "OCCURRENCE_TYPE_UNSPECIFIED" - Unspecified occurrence type.
  8198  	//   "OPTIONAL_ONCE" - There will be zero or one instance of this entity type.
  8199  	// The same entity instance may be mentioned multiple times.
  8200  	//   "OPTIONAL_MULTIPLE" - The entity type will appear zero or multiple times.
  8201  	//   "REQUIRED_ONCE" - The entity type will only appear exactly once. The same
  8202  	// entity instance may be mentioned multiple times.
  8203  	//   "REQUIRED_MULTIPLE" - The entity type will appear once or more times.
  8204  	OccurrenceType string `json:"occurrenceType,omitempty"`
  8205  	// PropertyMetadata: Any additional metadata about the property can be added
  8206  	// here.
  8207  	PropertyMetadata *GoogleCloudDocumentaiV1beta3PropertyMetadata `json:"propertyMetadata,omitempty"`
  8208  	// ValueType: A reference to the value type of the property. This type is
  8209  	// subject to the same conventions as the `Entity.base_types` field.
  8210  	ValueType string `json:"valueType,omitempty"`
  8211  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  8212  	// unconditionally include in API requests. By default, fields with empty or
  8213  	// default values are omitted from API requests. See
  8214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8215  	// details.
  8216  	ForceSendFields []string `json:"-"`
  8217  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  8218  	// requests with the JSON null value. By default, fields with empty values are
  8219  	// omitted from API requests. See
  8220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8221  	NullFields []string `json:"-"`
  8222  }
  8223  
  8224  func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty) MarshalJSON() ([]byte, error) {
  8225  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
  8226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8227  }
  8228  
  8229  // GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata: Metadata for global
  8230  // schema behavior.
  8231  type GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata struct {
  8232  	// DocumentAllowMultipleLabels: If true, on a given page, there can be multiple
  8233  	// `document` annotations covering it.
  8234  	DocumentAllowMultipleLabels bool `json:"documentAllowMultipleLabels,omitempty"`
  8235  	// DocumentSplitter: If true, a `document` entity type can be applied to
  8236  	// subdocument (splitting). Otherwise, it can only be applied to the entire
  8237  	// document (classification).
  8238  	DocumentSplitter bool `json:"documentSplitter,omitempty"`
  8239  	// PrefixedNamingOnProperties: If set, all the nested entities must be prefixed
  8240  	// with the parents.
  8241  	PrefixedNamingOnProperties bool `json:"prefixedNamingOnProperties,omitempty"`
  8242  	// SkipNamingValidation: If set, we will skip the naming format validation in
  8243  	// the schema. So the string values in `DocumentSchema.EntityType.name` and
  8244  	// `DocumentSchema.EntityType.Property.name` will not be checked.
  8245  	SkipNamingValidation bool `json:"skipNamingValidation,omitempty"`
  8246  	// ForceSendFields is a list of field names (e.g.
  8247  	// "DocumentAllowMultipleLabels") to unconditionally include in API requests.
  8248  	// By default, fields with empty or default values are omitted from API
  8249  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  8250  	// for more details.
  8251  	ForceSendFields []string `json:"-"`
  8252  	// NullFields is a list of field names (e.g. "DocumentAllowMultipleLabels") to
  8253  	// include in API requests with the JSON null value. By default, fields with
  8254  	// empty values are omitted from API requests. See
  8255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8256  	NullFields []string `json:"-"`
  8257  }
  8258  
  8259  func (s *GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata) MarshalJSON() ([]byte, error) {
  8260  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata
  8261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8262  }
  8263  
  8264  // GoogleCloudDocumentaiV1beta3DocumentShardInfo: For a large document,
  8265  // sharding may be performed to produce several document shards. Each document
  8266  // shard contains this field to detail which shard it is.
  8267  type GoogleCloudDocumentaiV1beta3DocumentShardInfo struct {
  8268  	// ShardCount: Total number of shards.
  8269  	ShardCount int64 `json:"shardCount,omitempty,string"`
  8270  	// ShardIndex: The 0-based index of this shard.
  8271  	ShardIndex int64 `json:"shardIndex,omitempty,string"`
  8272  	// TextOffset: The index of the first character in Document.text in the overall
  8273  	// document global text.
  8274  	TextOffset int64 `json:"textOffset,omitempty,string"`
  8275  	// ForceSendFields is a list of field names (e.g. "ShardCount") to
  8276  	// unconditionally include in API requests. By default, fields with empty or
  8277  	// default values are omitted from API requests. See
  8278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8279  	// details.
  8280  	ForceSendFields []string `json:"-"`
  8281  	// NullFields is a list of field names (e.g. "ShardCount") to include in API
  8282  	// requests with the JSON null value. By default, fields with empty values are
  8283  	// omitted from API requests. See
  8284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8285  	NullFields []string `json:"-"`
  8286  }
  8287  
  8288  func (s *GoogleCloudDocumentaiV1beta3DocumentShardInfo) MarshalJSON() ([]byte, error) {
  8289  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentShardInfo
  8290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8291  }
  8292  
  8293  // GoogleCloudDocumentaiV1beta3DocumentStyle: Annotation for common text style
  8294  // attributes. This adheres to CSS conventions as much as possible.
  8295  type GoogleCloudDocumentaiV1beta3DocumentStyle struct {
  8296  	// BackgroundColor: Text background color.
  8297  	BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
  8298  	// Color: Text color.
  8299  	Color *GoogleTypeColor `json:"color,omitempty"`
  8300  	// FontFamily: Font family such as `Arial`, `Times New Roman`.
  8301  	// https://www.w3schools.com/cssref/pr_font_font-family.asp
  8302  	FontFamily string `json:"fontFamily,omitempty"`
  8303  	// FontSize: Font size.
  8304  	FontSize *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize `json:"fontSize,omitempty"`
  8305  	// FontWeight: Font weight
  8306  	// (https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are
  8307  	// `normal`, `bold`, `bolder`, and `lighter`.
  8308  	FontWeight string `json:"fontWeight,omitempty"`
  8309  	// TextAnchor: Text anchor indexing into the Document.text.
  8310  	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
  8311  	// TextDecoration: Text decoration
  8312  	// (https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS
  8313  	// standard.
  8314  	TextDecoration string `json:"textDecoration,omitempty"`
  8315  	// TextStyle: Text style
  8316  	// (https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values
  8317  	// are `normal`, `italic`, and `oblique`.
  8318  	TextStyle string `json:"textStyle,omitempty"`
  8319  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  8320  	// unconditionally include in API requests. By default, fields with empty or
  8321  	// default values are omitted from API requests. See
  8322  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8323  	// details.
  8324  	ForceSendFields []string `json:"-"`
  8325  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
  8326  	// API requests with the JSON null value. By default, fields with empty values
  8327  	// are omitted from API requests. See
  8328  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8329  	NullFields []string `json:"-"`
  8330  }
  8331  
  8332  func (s *GoogleCloudDocumentaiV1beta3DocumentStyle) MarshalJSON() ([]byte, error) {
  8333  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyle
  8334  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8335  }
  8336  
  8337  // GoogleCloudDocumentaiV1beta3DocumentStyleFontSize: Font size with unit.
  8338  type GoogleCloudDocumentaiV1beta3DocumentStyleFontSize struct {
  8339  	// Size: Font size for the text.
  8340  	Size float64 `json:"size,omitempty"`
  8341  	// Unit: Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  8342  	// `pt`).
  8343  	Unit string `json:"unit,omitempty"`
  8344  	// ForceSendFields is a list of field names (e.g. "Size") to unconditionally
  8345  	// include in API requests. By default, fields with empty or default values are
  8346  	// omitted from API requests. See
  8347  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8348  	// details.
  8349  	ForceSendFields []string `json:"-"`
  8350  	// NullFields is a list of field names (e.g. "Size") to include in API requests
  8351  	// with the JSON null value. By default, fields with empty values are omitted
  8352  	// from API requests. See
  8353  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8354  	NullFields []string `json:"-"`
  8355  }
  8356  
  8357  func (s *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize) MarshalJSON() ([]byte, error) {
  8358  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyleFontSize
  8359  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8360  }
  8361  
  8362  func (s *GoogleCloudDocumentaiV1beta3DocumentStyleFontSize) UnmarshalJSON(data []byte) error {
  8363  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentStyleFontSize
  8364  	var s1 struct {
  8365  		Size gensupport.JSONFloat64 `json:"size"`
  8366  		*NoMethod
  8367  	}
  8368  	s1.NoMethod = (*NoMethod)(s)
  8369  	if err := json.Unmarshal(data, &s1); err != nil {
  8370  		return err
  8371  	}
  8372  	s.Size = float64(s1.Size)
  8373  	return nil
  8374  }
  8375  
  8376  // GoogleCloudDocumentaiV1beta3DocumentTextAnchor: Text reference indexing into
  8377  // the Document.text.
  8378  type GoogleCloudDocumentaiV1beta3DocumentTextAnchor struct {
  8379  	// Content: Contains the content of the text span so that users do not have to
  8380  	// look it up in the text_segments. It is always populated for formFields.
  8381  	Content string `json:"content,omitempty"`
  8382  	// TextSegments: The text segments from the Document.text.
  8383  	TextSegments []*GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment `json:"textSegments,omitempty"`
  8384  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  8385  	// include in API requests. By default, fields with empty or default values are
  8386  	// omitted from API requests. See
  8387  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8388  	// details.
  8389  	ForceSendFields []string `json:"-"`
  8390  	// NullFields is a list of field names (e.g. "Content") to include in API
  8391  	// requests with the JSON null value. By default, fields with empty values are
  8392  	// omitted from API requests. See
  8393  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8394  	NullFields []string `json:"-"`
  8395  }
  8396  
  8397  func (s *GoogleCloudDocumentaiV1beta3DocumentTextAnchor) MarshalJSON() ([]byte, error) {
  8398  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextAnchor
  8399  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8400  }
  8401  
  8402  // GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment: A text segment in
  8403  // the Document.text. The indices may be out of bounds which indicate that the
  8404  // text extends into another document shard for large sharded documents. See
  8405  // ShardInfo.text_offset
  8406  type GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment struct {
  8407  	// EndIndex: TextSegment half open end UTF-8 char index in the Document.text.
  8408  	EndIndex int64 `json:"endIndex,omitempty,string"`
  8409  	// StartIndex: TextSegment start UTF-8 char index in the Document.text.
  8410  	StartIndex int64 `json:"startIndex,omitempty,string"`
  8411  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  8412  	// unconditionally include in API requests. By default, fields with empty or
  8413  	// default values are omitted from API requests. See
  8414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8415  	// details.
  8416  	ForceSendFields []string `json:"-"`
  8417  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  8418  	// requests with the JSON null value. By default, fields with empty values are
  8419  	// omitted from API requests. See
  8420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8421  	NullFields []string `json:"-"`
  8422  }
  8423  
  8424  func (s *GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) {
  8425  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment
  8426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8427  }
  8428  
  8429  // GoogleCloudDocumentaiV1beta3DocumentTextChange: This message is used for
  8430  // text changes aka. OCR corrections.
  8431  type GoogleCloudDocumentaiV1beta3DocumentTextChange struct {
  8432  	// ChangedText: The text that replaces the text identified in the
  8433  	// `text_anchor`.
  8434  	ChangedText string `json:"changedText,omitempty"`
  8435  	// Provenance: The history of this annotation.
  8436  	Provenance []*GoogleCloudDocumentaiV1beta3DocumentProvenance `json:"provenance,omitempty"`
  8437  	// TextAnchor: Provenance of the correction. Text anchor indexing into the
  8438  	// Document.text. There can only be a single `TextAnchor.text_segments`
  8439  	// element. If the start and end index of the text segment are the same, the
  8440  	// text change is inserted before that index.
  8441  	TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"`
  8442  	// ForceSendFields is a list of field names (e.g. "ChangedText") to
  8443  	// unconditionally include in API requests. By default, fields with empty or
  8444  	// default values are omitted from API requests. See
  8445  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8446  	// details.
  8447  	ForceSendFields []string `json:"-"`
  8448  	// NullFields is a list of field names (e.g. "ChangedText") to include in API
  8449  	// requests with the JSON null value. By default, fields with empty values are
  8450  	// omitted from API requests. See
  8451  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8452  	NullFields []string `json:"-"`
  8453  }
  8454  
  8455  func (s *GoogleCloudDocumentaiV1beta3DocumentTextChange) MarshalJSON() ([]byte, error) {
  8456  	type NoMethod GoogleCloudDocumentaiV1beta3DocumentTextChange
  8457  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8458  }
  8459  
  8460  // GoogleCloudDocumentaiV1beta3EnableProcessorMetadata: The long-running
  8461  // operation metadata for the EnableProcessor method.
  8462  type GoogleCloudDocumentaiV1beta3EnableProcessorMetadata struct {
  8463  	// CommonMetadata: The basic metadata of the long-running operation.
  8464  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  8465  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  8466  	// unconditionally include in API requests. By default, fields with empty or
  8467  	// default values are omitted from API requests. See
  8468  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8469  	// details.
  8470  	ForceSendFields []string `json:"-"`
  8471  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  8472  	// API requests with the JSON null value. By default, fields with empty values
  8473  	// are omitted from API requests. See
  8474  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8475  	NullFields []string `json:"-"`
  8476  }
  8477  
  8478  func (s *GoogleCloudDocumentaiV1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) {
  8479  	type NoMethod GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
  8480  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8481  }
  8482  
  8483  // GoogleCloudDocumentaiV1beta3EnableProcessorRequest: Request message for the
  8484  // EnableProcessor method.
  8485  type GoogleCloudDocumentaiV1beta3EnableProcessorRequest struct {
  8486  }
  8487  
  8488  // GoogleCloudDocumentaiV1beta3EnableProcessorResponse: Response message for
  8489  // the EnableProcessor method. Intentionally empty proto for adding fields in
  8490  // future.
  8491  type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct {
  8492  }
  8493  
  8494  // GoogleCloudDocumentaiV1beta3EntityTypeMetadata: Metadata about an entity
  8495  // type.
  8496  type GoogleCloudDocumentaiV1beta3EntityTypeMetadata struct {
  8497  	// Inactive: Whether the entity type should be considered inactive.
  8498  	Inactive bool `json:"inactive,omitempty"`
  8499  	// ForceSendFields is a list of field names (e.g. "Inactive") to
  8500  	// unconditionally include in API requests. By default, fields with empty or
  8501  	// default values are omitted from API requests. See
  8502  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8503  	// details.
  8504  	ForceSendFields []string `json:"-"`
  8505  	// NullFields is a list of field names (e.g. "Inactive") to include in API
  8506  	// requests with the JSON null value. By default, fields with empty values are
  8507  	// omitted from API requests. See
  8508  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8509  	NullFields []string `json:"-"`
  8510  }
  8511  
  8512  func (s *GoogleCloudDocumentaiV1beta3EntityTypeMetadata) MarshalJSON() ([]byte, error) {
  8513  	type NoMethod GoogleCloudDocumentaiV1beta3EntityTypeMetadata
  8514  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8515  }
  8516  
  8517  // GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata: Metadata of
  8518  // the EvaluateProcessorVersion method.
  8519  type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata struct {
  8520  	// CommonMetadata: The basic metadata of the long-running operation.
  8521  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  8522  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  8523  	// unconditionally include in API requests. By default, fields with empty or
  8524  	// default values are omitted from API requests. See
  8525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8526  	// details.
  8527  	ForceSendFields []string `json:"-"`
  8528  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  8529  	// API requests with the JSON null value. By default, fields with empty values
  8530  	// are omitted from API requests. See
  8531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8532  	NullFields []string `json:"-"`
  8533  }
  8534  
  8535  func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  8536  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
  8537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8538  }
  8539  
  8540  // GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest: Evaluates the
  8541  // given ProcessorVersion against the supplied documents.
  8542  type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest struct {
  8543  	// EvaluationDocuments: Optional. The documents used in the evaluation. If
  8544  	// unspecified, use the processor's dataset as evaluation input.
  8545  	EvaluationDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"evaluationDocuments,omitempty"`
  8546  	// ForceSendFields is a list of field names (e.g. "EvaluationDocuments") to
  8547  	// unconditionally include in API requests. By default, fields with empty or
  8548  	// default values are omitted from API requests. See
  8549  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8550  	// details.
  8551  	ForceSendFields []string `json:"-"`
  8552  	// NullFields is a list of field names (e.g. "EvaluationDocuments") to include
  8553  	// in API requests with the JSON null value. By default, fields with empty
  8554  	// values are omitted from API requests. See
  8555  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8556  	NullFields []string `json:"-"`
  8557  }
  8558  
  8559  func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest) MarshalJSON() ([]byte, error) {
  8560  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest
  8561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8562  }
  8563  
  8564  // GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse: Response of
  8565  // the EvaluateProcessorVersion method.
  8566  type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse struct {
  8567  	// Evaluation: The resource name of the created evaluation.
  8568  	Evaluation string `json:"evaluation,omitempty"`
  8569  	// ForceSendFields is a list of field names (e.g. "Evaluation") to
  8570  	// unconditionally include in API requests. By default, fields with empty or
  8571  	// default values are omitted from API requests. See
  8572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8573  	// details.
  8574  	ForceSendFields []string `json:"-"`
  8575  	// NullFields is a list of field names (e.g. "Evaluation") to include in API
  8576  	// requests with the JSON null value. By default, fields with empty values are
  8577  	// omitted from API requests. See
  8578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8579  	NullFields []string `json:"-"`
  8580  }
  8581  
  8582  func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) {
  8583  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
  8584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8585  }
  8586  
  8587  // GoogleCloudDocumentaiV1beta3Evaluation: An evaluation of a
  8588  // ProcessorVersion's performance.
  8589  type GoogleCloudDocumentaiV1beta3Evaluation struct {
  8590  	// AllEntitiesMetrics: Metrics for all the entities in aggregate.
  8591  	AllEntitiesMetrics *GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics `json:"allEntitiesMetrics,omitempty"`
  8592  	// CreateTime: The time that the evaluation was created.
  8593  	CreateTime string `json:"createTime,omitempty"`
  8594  	// DocumentCounters: Counters for the documents used in the evaluation.
  8595  	DocumentCounters *GoogleCloudDocumentaiV1beta3EvaluationCounters `json:"documentCounters,omitempty"`
  8596  	// EntityMetrics: Metrics across confidence levels, for different entities.
  8597  	EntityMetrics map[string]GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics `json:"entityMetrics,omitempty"`
  8598  	// KmsKeyName: The KMS key name used for encryption.
  8599  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  8600  	// KmsKeyVersionName: The KMS key version with which data is encrypted.
  8601  	KmsKeyVersionName string `json:"kmsKeyVersionName,omitempty"`
  8602  	// Name: The resource name of the evaluation. Format:
  8603  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
  8604  	// ions/{processor_version}/evaluations/{evaluation}`
  8605  	Name string `json:"name,omitempty"`
  8606  
  8607  	// ServerResponse contains the HTTP response code and headers from the server.
  8608  	googleapi.ServerResponse `json:"-"`
  8609  	// ForceSendFields is a list of field names (e.g. "AllEntitiesMetrics") to
  8610  	// unconditionally include in API requests. By default, fields with empty or
  8611  	// default values are omitted from API requests. See
  8612  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8613  	// details.
  8614  	ForceSendFields []string `json:"-"`
  8615  	// NullFields is a list of field names (e.g. "AllEntitiesMetrics") to include
  8616  	// in API requests with the JSON null value. By default, fields with empty
  8617  	// values are omitted from API requests. See
  8618  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8619  	NullFields []string `json:"-"`
  8620  }
  8621  
  8622  func (s *GoogleCloudDocumentaiV1beta3Evaluation) MarshalJSON() ([]byte, error) {
  8623  	type NoMethod GoogleCloudDocumentaiV1beta3Evaluation
  8624  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8625  }
  8626  
  8627  // GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics: Evaluations
  8628  // metrics, at a specific confidence level.
  8629  type GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics struct {
  8630  	// ConfidenceLevel: The confidence level.
  8631  	ConfidenceLevel float64 `json:"confidenceLevel,omitempty"`
  8632  	// Metrics: The metrics at the specific confidence level.
  8633  	Metrics *GoogleCloudDocumentaiV1beta3EvaluationMetrics `json:"metrics,omitempty"`
  8634  	// ForceSendFields is a list of field names (e.g. "ConfidenceLevel") to
  8635  	// unconditionally include in API requests. By default, fields with empty or
  8636  	// default values are omitted from API requests. See
  8637  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8638  	// details.
  8639  	ForceSendFields []string `json:"-"`
  8640  	// NullFields is a list of field names (e.g. "ConfidenceLevel") to include in
  8641  	// API requests with the JSON null value. By default, fields with empty values
  8642  	// are omitted from API requests. See
  8643  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8644  	NullFields []string `json:"-"`
  8645  }
  8646  
  8647  func (s *GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics) MarshalJSON() ([]byte, error) {
  8648  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics
  8649  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8650  }
  8651  
  8652  func (s *GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics) UnmarshalJSON(data []byte) error {
  8653  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics
  8654  	var s1 struct {
  8655  		ConfidenceLevel gensupport.JSONFloat64 `json:"confidenceLevel"`
  8656  		*NoMethod
  8657  	}
  8658  	s1.NoMethod = (*NoMethod)(s)
  8659  	if err := json.Unmarshal(data, &s1); err != nil {
  8660  		return err
  8661  	}
  8662  	s.ConfidenceLevel = float64(s1.ConfidenceLevel)
  8663  	return nil
  8664  }
  8665  
  8666  // GoogleCloudDocumentaiV1beta3EvaluationCounters: Evaluation counters for the
  8667  // documents that were used.
  8668  type GoogleCloudDocumentaiV1beta3EvaluationCounters struct {
  8669  	// EvaluatedDocumentsCount: How many documents were used in the evaluation.
  8670  	EvaluatedDocumentsCount int64 `json:"evaluatedDocumentsCount,omitempty"`
  8671  	// FailedDocumentsCount: How many documents were not included in the evaluation
  8672  	// as Document AI failed to process them.
  8673  	FailedDocumentsCount int64 `json:"failedDocumentsCount,omitempty"`
  8674  	// InputDocumentsCount: How many documents were sent for evaluation.
  8675  	InputDocumentsCount int64 `json:"inputDocumentsCount,omitempty"`
  8676  	// InvalidDocumentsCount: How many documents were not included in the
  8677  	// evaluation as they didn't pass validation.
  8678  	InvalidDocumentsCount int64 `json:"invalidDocumentsCount,omitempty"`
  8679  	// ForceSendFields is a list of field names (e.g. "EvaluatedDocumentsCount") to
  8680  	// unconditionally include in API requests. By default, fields with empty or
  8681  	// default values are omitted from API requests. See
  8682  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8683  	// details.
  8684  	ForceSendFields []string `json:"-"`
  8685  	// NullFields is a list of field names (e.g. "EvaluatedDocumentsCount") to
  8686  	// include in API requests with the JSON null value. By default, fields with
  8687  	// empty values are omitted from API requests. See
  8688  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8689  	NullFields []string `json:"-"`
  8690  }
  8691  
  8692  func (s *GoogleCloudDocumentaiV1beta3EvaluationCounters) MarshalJSON() ([]byte, error) {
  8693  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationCounters
  8694  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8695  }
  8696  
  8697  // GoogleCloudDocumentaiV1beta3EvaluationMetrics: Evaluation metrics, either in
  8698  // aggregate or about a specific entity.
  8699  type GoogleCloudDocumentaiV1beta3EvaluationMetrics struct {
  8700  	// F1Score: The calculated f1 score.
  8701  	F1Score float64 `json:"f1Score,omitempty"`
  8702  	// FalseNegativesCount: The amount of false negatives.
  8703  	FalseNegativesCount int64 `json:"falseNegativesCount,omitempty"`
  8704  	// FalsePositivesCount: The amount of false positives.
  8705  	FalsePositivesCount int64 `json:"falsePositivesCount,omitempty"`
  8706  	// GroundTruthDocumentCount: The amount of documents with a ground truth
  8707  	// occurrence.
  8708  	GroundTruthDocumentCount int64 `json:"groundTruthDocumentCount,omitempty"`
  8709  	// GroundTruthOccurrencesCount: The amount of occurrences in ground truth
  8710  	// documents.
  8711  	GroundTruthOccurrencesCount int64 `json:"groundTruthOccurrencesCount,omitempty"`
  8712  	// Precision: The calculated precision.
  8713  	Precision float64 `json:"precision,omitempty"`
  8714  	// PredictedDocumentCount: The amount of documents with a predicted occurrence.
  8715  	PredictedDocumentCount int64 `json:"predictedDocumentCount,omitempty"`
  8716  	// PredictedOccurrencesCount: The amount of occurrences in predicted documents.
  8717  	PredictedOccurrencesCount int64 `json:"predictedOccurrencesCount,omitempty"`
  8718  	// Recall: The calculated recall.
  8719  	Recall float64 `json:"recall,omitempty"`
  8720  	// TotalDocumentsCount: The amount of documents that had an occurrence of this
  8721  	// label.
  8722  	TotalDocumentsCount int64 `json:"totalDocumentsCount,omitempty"`
  8723  	// TruePositivesCount: The amount of true positives.
  8724  	TruePositivesCount int64 `json:"truePositivesCount,omitempty"`
  8725  	// ForceSendFields is a list of field names (e.g. "F1Score") to unconditionally
  8726  	// include in API requests. By default, fields with empty or default values are
  8727  	// omitted from API requests. See
  8728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8729  	// details.
  8730  	ForceSendFields []string `json:"-"`
  8731  	// NullFields is a list of field names (e.g. "F1Score") to include in API
  8732  	// requests with the JSON null value. By default, fields with empty values are
  8733  	// omitted from API requests. See
  8734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8735  	NullFields []string `json:"-"`
  8736  }
  8737  
  8738  func (s *GoogleCloudDocumentaiV1beta3EvaluationMetrics) MarshalJSON() ([]byte, error) {
  8739  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMetrics
  8740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8741  }
  8742  
  8743  func (s *GoogleCloudDocumentaiV1beta3EvaluationMetrics) UnmarshalJSON(data []byte) error {
  8744  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMetrics
  8745  	var s1 struct {
  8746  		F1Score   gensupport.JSONFloat64 `json:"f1Score"`
  8747  		Precision gensupport.JSONFloat64 `json:"precision"`
  8748  		Recall    gensupport.JSONFloat64 `json:"recall"`
  8749  		*NoMethod
  8750  	}
  8751  	s1.NoMethod = (*NoMethod)(s)
  8752  	if err := json.Unmarshal(data, &s1); err != nil {
  8753  		return err
  8754  	}
  8755  	s.F1Score = float64(s1.F1Score)
  8756  	s.Precision = float64(s1.Precision)
  8757  	s.Recall = float64(s1.Recall)
  8758  	return nil
  8759  }
  8760  
  8761  // GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics: Metrics across
  8762  // multiple confidence levels.
  8763  type GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics struct {
  8764  	// Auprc: The calculated area under the precision recall curve (AUPRC),
  8765  	// computed by integrating over all confidence thresholds.
  8766  	Auprc float64 `json:"auprc,omitempty"`
  8767  	// AuprcExact: The AUPRC for metrics with fuzzy matching disabled, i.e., exact
  8768  	// matching only.
  8769  	AuprcExact float64 `json:"auprcExact,omitempty"`
  8770  	// ConfidenceLevelMetrics: Metrics across confidence levels with fuzzy matching
  8771  	// enabled.
  8772  	ConfidenceLevelMetrics []*GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics `json:"confidenceLevelMetrics,omitempty"`
  8773  	// ConfidenceLevelMetricsExact: Metrics across confidence levels with only
  8774  	// exact matching.
  8775  	ConfidenceLevelMetricsExact []*GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics `json:"confidenceLevelMetricsExact,omitempty"`
  8776  	// EstimatedCalibrationError: The Estimated Calibration Error (ECE) of the
  8777  	// confidence of the predicted entities.
  8778  	EstimatedCalibrationError float64 `json:"estimatedCalibrationError,omitempty"`
  8779  	// EstimatedCalibrationErrorExact: The ECE for the predicted entities with
  8780  	// fuzzy matching disabled, i.e., exact matching only.
  8781  	EstimatedCalibrationErrorExact float64 `json:"estimatedCalibrationErrorExact,omitempty"`
  8782  	// MetricsType: The metrics type for the label.
  8783  	//
  8784  	// Possible values:
  8785  	//   "METRICS_TYPE_UNSPECIFIED" - The metrics type is unspecified. By default,
  8786  	// metrics without a particular specification are for leaf entity types (i.e.,
  8787  	// top-level entity types without child types, or child types which are not
  8788  	// parent types themselves).
  8789  	//   "AGGREGATE" - Indicates whether metrics for this particular label type
  8790  	// represent an aggregate of metrics for other types instead of being based on
  8791  	// actual TP/FP/FN values for the label type. Metrics for parent (i.e.,
  8792  	// non-leaf) entity types are an aggregate of metrics for their children.
  8793  	MetricsType string `json:"metricsType,omitempty"`
  8794  	// ForceSendFields is a list of field names (e.g. "Auprc") to unconditionally
  8795  	// include in API requests. By default, fields with empty or default values are
  8796  	// omitted from API requests. See
  8797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8798  	// details.
  8799  	ForceSendFields []string `json:"-"`
  8800  	// NullFields is a list of field names (e.g. "Auprc") to include in API
  8801  	// requests with the JSON null value. By default, fields with empty values are
  8802  	// omitted from API requests. See
  8803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8804  	NullFields []string `json:"-"`
  8805  }
  8806  
  8807  func (s *GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics) MarshalJSON() ([]byte, error) {
  8808  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
  8809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8810  }
  8811  
  8812  func (s *GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics) UnmarshalJSON(data []byte) error {
  8813  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
  8814  	var s1 struct {
  8815  		Auprc                          gensupport.JSONFloat64 `json:"auprc"`
  8816  		AuprcExact                     gensupport.JSONFloat64 `json:"auprcExact"`
  8817  		EstimatedCalibrationError      gensupport.JSONFloat64 `json:"estimatedCalibrationError"`
  8818  		EstimatedCalibrationErrorExact gensupport.JSONFloat64 `json:"estimatedCalibrationErrorExact"`
  8819  		*NoMethod
  8820  	}
  8821  	s1.NoMethod = (*NoMethod)(s)
  8822  	if err := json.Unmarshal(data, &s1); err != nil {
  8823  		return err
  8824  	}
  8825  	s.Auprc = float64(s1.Auprc)
  8826  	s.AuprcExact = float64(s1.AuprcExact)
  8827  	s.EstimatedCalibrationError = float64(s1.EstimatedCalibrationError)
  8828  	s.EstimatedCalibrationErrorExact = float64(s1.EstimatedCalibrationErrorExact)
  8829  	return nil
  8830  }
  8831  
  8832  // GoogleCloudDocumentaiV1beta3EvaluationReference: Gives a short summary of an
  8833  // evaluation, and links to the evaluation itself.
  8834  type GoogleCloudDocumentaiV1beta3EvaluationReference struct {
  8835  	// AggregateMetrics: An aggregate of the statistics for the evaluation with
  8836  	// fuzzy matching on.
  8837  	AggregateMetrics *GoogleCloudDocumentaiV1beta3EvaluationMetrics `json:"aggregateMetrics,omitempty"`
  8838  	// AggregateMetricsExact: An aggregate of the statistics for the evaluation
  8839  	// with fuzzy matching off.
  8840  	AggregateMetricsExact *GoogleCloudDocumentaiV1beta3EvaluationMetrics `json:"aggregateMetricsExact,omitempty"`
  8841  	// Evaluation: The resource name of the evaluation.
  8842  	Evaluation string `json:"evaluation,omitempty"`
  8843  	// Operation: The resource name of the Long Running Operation for the
  8844  	// evaluation.
  8845  	Operation string `json:"operation,omitempty"`
  8846  	// ForceSendFields is a list of field names (e.g. "AggregateMetrics") to
  8847  	// unconditionally include in API requests. By default, fields with empty or
  8848  	// default values are omitted from API requests. See
  8849  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8850  	// details.
  8851  	ForceSendFields []string `json:"-"`
  8852  	// NullFields is a list of field names (e.g. "AggregateMetrics") to include in
  8853  	// API requests with the JSON null value. By default, fields with empty values
  8854  	// are omitted from API requests. See
  8855  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8856  	NullFields []string `json:"-"`
  8857  }
  8858  
  8859  func (s *GoogleCloudDocumentaiV1beta3EvaluationReference) MarshalJSON() ([]byte, error) {
  8860  	type NoMethod GoogleCloudDocumentaiV1beta3EvaluationReference
  8861  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8862  }
  8863  
  8864  // GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse: Response message
  8865  // for the FetchProcessorTypes method.
  8866  type GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse struct {
  8867  	// ProcessorTypes: The list of processor types.
  8868  	ProcessorTypes []*GoogleCloudDocumentaiV1beta3ProcessorType `json:"processorTypes,omitempty"`
  8869  
  8870  	// ServerResponse contains the HTTP response code and headers from the server.
  8871  	googleapi.ServerResponse `json:"-"`
  8872  	// ForceSendFields is a list of field names (e.g. "ProcessorTypes") to
  8873  	// unconditionally include in API requests. By default, fields with empty or
  8874  	// default values are omitted from API requests. See
  8875  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8876  	// details.
  8877  	ForceSendFields []string `json:"-"`
  8878  	// NullFields is a list of field names (e.g. "ProcessorTypes") to include in
  8879  	// API requests with the JSON null value. By default, fields with empty values
  8880  	// are omitted from API requests. See
  8881  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8882  	NullFields []string `json:"-"`
  8883  }
  8884  
  8885  func (s *GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse) MarshalJSON() ([]byte, error) {
  8886  	type NoMethod GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
  8887  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8888  }
  8889  
  8890  // GoogleCloudDocumentaiV1beta3FieldExtractionMetadata: Metadata for how this
  8891  // field value is extracted.
  8892  type GoogleCloudDocumentaiV1beta3FieldExtractionMetadata struct {
  8893  	// SummaryOptions: Summary options config.
  8894  	SummaryOptions *GoogleCloudDocumentaiV1beta3SummaryOptions `json:"summaryOptions,omitempty"`
  8895  	// ForceSendFields is a list of field names (e.g. "SummaryOptions") to
  8896  	// unconditionally include in API requests. By default, fields with empty or
  8897  	// default values are omitted from API requests. See
  8898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8899  	// details.
  8900  	ForceSendFields []string `json:"-"`
  8901  	// NullFields is a list of field names (e.g. "SummaryOptions") to include in
  8902  	// API requests with the JSON null value. By default, fields with empty values
  8903  	// are omitted from API requests. See
  8904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8905  	NullFields []string `json:"-"`
  8906  }
  8907  
  8908  func (s *GoogleCloudDocumentaiV1beta3FieldExtractionMetadata) MarshalJSON() ([]byte, error) {
  8909  	type NoMethod GoogleCloudDocumentaiV1beta3FieldExtractionMetadata
  8910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8911  }
  8912  
  8913  // GoogleCloudDocumentaiV1beta3GcsDocument: Specifies a document stored on
  8914  // Cloud Storage.
  8915  type GoogleCloudDocumentaiV1beta3GcsDocument struct {
  8916  	// GcsUri: The Cloud Storage object uri.
  8917  	GcsUri string `json:"gcsUri,omitempty"`
  8918  	// MimeType: An IANA MIME type (RFC6838) of the content.
  8919  	MimeType string `json:"mimeType,omitempty"`
  8920  	// ForceSendFields is a list of field names (e.g. "GcsUri") to unconditionally
  8921  	// include in API requests. By default, fields with empty or default values are
  8922  	// omitted from API requests. See
  8923  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8924  	// details.
  8925  	ForceSendFields []string `json:"-"`
  8926  	// NullFields is a list of field names (e.g. "GcsUri") to include in API
  8927  	// requests with the JSON null value. By default, fields with empty values are
  8928  	// omitted from API requests. See
  8929  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8930  	NullFields []string `json:"-"`
  8931  }
  8932  
  8933  func (s *GoogleCloudDocumentaiV1beta3GcsDocument) MarshalJSON() ([]byte, error) {
  8934  	type NoMethod GoogleCloudDocumentaiV1beta3GcsDocument
  8935  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8936  }
  8937  
  8938  // GoogleCloudDocumentaiV1beta3GcsDocuments: Specifies a set of documents on
  8939  // Cloud Storage.
  8940  type GoogleCloudDocumentaiV1beta3GcsDocuments struct {
  8941  	// Documents: The list of documents.
  8942  	Documents []*GoogleCloudDocumentaiV1beta3GcsDocument `json:"documents,omitempty"`
  8943  	// ForceSendFields is a list of field names (e.g. "Documents") to
  8944  	// unconditionally include in API requests. By default, fields with empty or
  8945  	// default values are omitted from API requests. See
  8946  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8947  	// details.
  8948  	ForceSendFields []string `json:"-"`
  8949  	// NullFields is a list of field names (e.g. "Documents") to include in API
  8950  	// requests with the JSON null value. By default, fields with empty values are
  8951  	// omitted from API requests. See
  8952  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8953  	NullFields []string `json:"-"`
  8954  }
  8955  
  8956  func (s *GoogleCloudDocumentaiV1beta3GcsDocuments) MarshalJSON() ([]byte, error) {
  8957  	type NoMethod GoogleCloudDocumentaiV1beta3GcsDocuments
  8958  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8959  }
  8960  
  8961  // GoogleCloudDocumentaiV1beta3GcsPrefix: Specifies all documents on Cloud
  8962  // Storage with a common prefix.
  8963  type GoogleCloudDocumentaiV1beta3GcsPrefix struct {
  8964  	// GcsUriPrefix: The URI prefix.
  8965  	GcsUriPrefix string `json:"gcsUriPrefix,omitempty"`
  8966  	// ForceSendFields is a list of field names (e.g. "GcsUriPrefix") to
  8967  	// unconditionally include in API requests. By default, fields with empty or
  8968  	// default values are omitted from API requests. See
  8969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8970  	// details.
  8971  	ForceSendFields []string `json:"-"`
  8972  	// NullFields is a list of field names (e.g. "GcsUriPrefix") to include in API
  8973  	// requests with the JSON null value. By default, fields with empty values are
  8974  	// omitted from API requests. See
  8975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8976  	NullFields []string `json:"-"`
  8977  }
  8978  
  8979  func (s *GoogleCloudDocumentaiV1beta3GcsPrefix) MarshalJSON() ([]byte, error) {
  8980  	type NoMethod GoogleCloudDocumentaiV1beta3GcsPrefix
  8981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8982  }
  8983  
  8984  type GoogleCloudDocumentaiV1beta3GetDocumentResponse struct {
  8985  	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
  8986  
  8987  	// ServerResponse contains the HTTP response code and headers from the server.
  8988  	googleapi.ServerResponse `json:"-"`
  8989  	// ForceSendFields is a list of field names (e.g. "Document") to
  8990  	// unconditionally include in API requests. By default, fields with empty or
  8991  	// default values are omitted from API requests. See
  8992  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8993  	// details.
  8994  	ForceSendFields []string `json:"-"`
  8995  	// NullFields is a list of field names (e.g. "Document") to include in API
  8996  	// requests with the JSON null value. By default, fields with empty values are
  8997  	// omitted from API requests. See
  8998  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8999  	NullFields []string `json:"-"`
  9000  }
  9001  
  9002  func (s *GoogleCloudDocumentaiV1beta3GetDocumentResponse) MarshalJSON() ([]byte, error) {
  9003  	type NoMethod GoogleCloudDocumentaiV1beta3GetDocumentResponse
  9004  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9005  }
  9006  
  9007  // GoogleCloudDocumentaiV1beta3HumanReviewStatus: The status of human review on
  9008  // a processed document.
  9009  type GoogleCloudDocumentaiV1beta3HumanReviewStatus struct {
  9010  	// HumanReviewOperation: The name of the operation triggered by the processed
  9011  	// document. This field is populated only when the state is
  9012  	// `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
  9013  	// the long-running operation returned by ReviewDocument.
  9014  	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
  9015  	// State: The state of human review on the processing request.
  9016  	//
  9017  	// Possible values:
  9018  	//   "STATE_UNSPECIFIED" - Human review state is unspecified. Most likely due
  9019  	// to an internal error.
  9020  	//   "SKIPPED" - Human review is skipped for the document. This can happen
  9021  	// because human review isn't enabled on the processor or the processing
  9022  	// request has been set to skip this document.
  9023  	//   "VALIDATION_PASSED" - Human review validation is triggered and passed, so
  9024  	// no review is needed.
  9025  	//   "IN_PROGRESS" - Human review validation is triggered and the document is
  9026  	// under review.
  9027  	//   "ERROR" - Some error happened during triggering human review, see the
  9028  	// state_message for details.
  9029  	State string `json:"state,omitempty"`
  9030  	// StateMessage: A message providing more details about the human review state.
  9031  	StateMessage string `json:"stateMessage,omitempty"`
  9032  	// ForceSendFields is a list of field names (e.g. "HumanReviewOperation") to
  9033  	// unconditionally include in API requests. By default, fields with empty or
  9034  	// default values are omitted from API requests. See
  9035  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9036  	// details.
  9037  	ForceSendFields []string `json:"-"`
  9038  	// NullFields is a list of field names (e.g. "HumanReviewOperation") to include
  9039  	// in API requests with the JSON null value. By default, fields with empty
  9040  	// values are omitted from API requests. See
  9041  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9042  	NullFields []string `json:"-"`
  9043  }
  9044  
  9045  func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, error) {
  9046  	type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewStatus
  9047  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9048  }
  9049  
  9050  // GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata: Metadata of the import
  9051  // document operation.
  9052  type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata struct {
  9053  	// CommonMetadata: The basic metadata of the long-running operation.
  9054  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  9055  	// ImportConfigValidationResults: Validation statuses of the batch documents
  9056  	// import config.
  9057  	ImportConfigValidationResults []*GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult `json:"importConfigValidationResults,omitempty"`
  9058  	// IndividualImportStatuses: The list of response details of each document.
  9059  	IndividualImportStatuses []*GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"`
  9060  	// TotalDocumentCount: Total number of the documents that are qualified for
  9061  	// importing.
  9062  	TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"`
  9063  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  9064  	// unconditionally include in API requests. By default, fields with empty or
  9065  	// default values are omitted from API requests. See
  9066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9067  	// details.
  9068  	ForceSendFields []string `json:"-"`
  9069  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  9070  	// API requests with the JSON null value. By default, fields with empty values
  9071  	// are omitted from API requests. See
  9072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9073  	NullFields []string `json:"-"`
  9074  }
  9075  
  9076  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  9077  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata
  9078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9079  }
  9080  
  9081  // GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResu
  9082  // lt: The validation status of each import config. Status is set to an error
  9083  // if there are no documents to import in the `import_config`, or `OK` if the
  9084  // operation will try to proceed with at least one document.
  9085  type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult struct {
  9086  	// InputGcsSource: The source Cloud Storage URI specified in the import config.
  9087  	InputGcsSource string `json:"inputGcsSource,omitempty"`
  9088  	// Status: The validation status of import config.
  9089  	Status *GoogleRpcStatus `json:"status,omitempty"`
  9090  	// ForceSendFields is a list of field names (e.g. "InputGcsSource") to
  9091  	// unconditionally include in API requests. By default, fields with empty or
  9092  	// default values are omitted from API requests. See
  9093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9094  	// details.
  9095  	ForceSendFields []string `json:"-"`
  9096  	// NullFields is a list of field names (e.g. "InputGcsSource") to include in
  9097  	// API requests with the JSON null value. By default, fields with empty values
  9098  	// are omitted from API requests. See
  9099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9100  	NullFields []string `json:"-"`
  9101  }
  9102  
  9103  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult) MarshalJSON() ([]byte, error) {
  9104  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult
  9105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9106  }
  9107  
  9108  // GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus:
  9109  // The status of each individual document in the import process.
  9110  type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus struct {
  9111  	// InputGcsSource: The source Cloud Storage URI of the document.
  9112  	InputGcsSource string `json:"inputGcsSource,omitempty"`
  9113  	// OutputDocumentId: The document id of imported document if it was successful,
  9114  	// otherwise empty.
  9115  	OutputDocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"outputDocumentId,omitempty"`
  9116  	// Status: The status of the importing of the document.
  9117  	Status *GoogleRpcStatus `json:"status,omitempty"`
  9118  	// ForceSendFields is a list of field names (e.g. "InputGcsSource") to
  9119  	// unconditionally include in API requests. By default, fields with empty or
  9120  	// default values are omitted from API requests. See
  9121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9122  	// details.
  9123  	ForceSendFields []string `json:"-"`
  9124  	// NullFields is a list of field names (e.g. "InputGcsSource") to include in
  9125  	// API requests with the JSON null value. By default, fields with empty values
  9126  	// are omitted from API requests. See
  9127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9128  	NullFields []string `json:"-"`
  9129  }
  9130  
  9131  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) {
  9132  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus
  9133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9134  }
  9135  
  9136  type GoogleCloudDocumentaiV1beta3ImportDocumentsRequest struct {
  9137  	// BatchDocumentsImportConfigs: Required. The Cloud Storage uri containing raw
  9138  	// documents that must be imported.
  9139  	BatchDocumentsImportConfigs []*GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig `json:"batchDocumentsImportConfigs,omitempty"`
  9140  	// ForceSendFields is a list of field names (e.g.
  9141  	// "BatchDocumentsImportConfigs") to unconditionally include in API requests.
  9142  	// By default, fields with empty or default values are omitted from API
  9143  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  9144  	// for more details.
  9145  	ForceSendFields []string `json:"-"`
  9146  	// NullFields is a list of field names (e.g. "BatchDocumentsImportConfigs") to
  9147  	// include in API requests with the JSON null value. By default, fields with
  9148  	// empty values are omitted from API requests. See
  9149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9150  	NullFields []string `json:"-"`
  9151  }
  9152  
  9153  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
  9154  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequest
  9155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9156  }
  9157  
  9158  // GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig:
  9159  //
  9160  //	Config for importing documents. Each batch can have its own dataset split
  9161  //
  9162  // type.
  9163  type GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig struct {
  9164  	// AutoSplitConfig: If set, documents will be automatically split into training
  9165  	// and test split category with the specified ratio.
  9166  	AutoSplitConfig *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig `json:"autoSplitConfig,omitempty"`
  9167  	// BatchInputConfig: The common config to specify a set of documents used as
  9168  	// input.
  9169  	BatchInputConfig *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"batchInputConfig,omitempty"`
  9170  	// DatasetSplit: Target dataset split where the documents must be stored.
  9171  	//
  9172  	// Possible values:
  9173  	//   "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set.
  9174  	//   "DATASET_SPLIT_TRAIN" - Identifies the train documents.
  9175  	//   "DATASET_SPLIT_TEST" - Identifies the test documents.
  9176  	//   "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents.
  9177  	DatasetSplit string `json:"datasetSplit,omitempty"`
  9178  	// ForceSendFields is a list of field names (e.g. "AutoSplitConfig") to
  9179  	// unconditionally include in API requests. By default, fields with empty or
  9180  	// default values are omitted from API requests. See
  9181  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9182  	// details.
  9183  	ForceSendFields []string `json:"-"`
  9184  	// NullFields is a list of field names (e.g. "AutoSplitConfig") to include in
  9185  	// API requests with the JSON null value. By default, fields with empty values
  9186  	// are omitted from API requests. See
  9187  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9188  	NullFields []string `json:"-"`
  9189  }
  9190  
  9191  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig) MarshalJSON() ([]byte, error) {
  9192  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig
  9193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9194  }
  9195  
  9196  // GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigA
  9197  // utoSplitConfig: The config for auto-split.
  9198  type GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig struct {
  9199  	// TrainingSplitRatio: Ratio of training dataset split.
  9200  	TrainingSplitRatio float64 `json:"trainingSplitRatio,omitempty"`
  9201  	// ForceSendFields is a list of field names (e.g. "TrainingSplitRatio") to
  9202  	// unconditionally include in API requests. By default, fields with empty or
  9203  	// default values are omitted from API requests. See
  9204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9205  	// details.
  9206  	ForceSendFields []string `json:"-"`
  9207  	// NullFields is a list of field names (e.g. "TrainingSplitRatio") to include
  9208  	// in API requests with the JSON null value. By default, fields with empty
  9209  	// values are omitted from API requests. See
  9210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9211  	NullFields []string `json:"-"`
  9212  }
  9213  
  9214  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig) MarshalJSON() ([]byte, error) {
  9215  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig
  9216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9217  }
  9218  
  9219  func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig) UnmarshalJSON(data []byte) error {
  9220  	type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig
  9221  	var s1 struct {
  9222  		TrainingSplitRatio gensupport.JSONFloat64 `json:"trainingSplitRatio"`
  9223  		*NoMethod
  9224  	}
  9225  	s1.NoMethod = (*NoMethod)(s)
  9226  	if err := json.Unmarshal(data, &s1); err != nil {
  9227  		return err
  9228  	}
  9229  	s.TrainingSplitRatio = float64(s1.TrainingSplitRatio)
  9230  	return nil
  9231  }
  9232  
  9233  // GoogleCloudDocumentaiV1beta3ImportDocumentsResponse: Response of the import
  9234  // document operation.
  9235  type GoogleCloudDocumentaiV1beta3ImportDocumentsResponse struct {
  9236  }
  9237  
  9238  // GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata: The long-running
  9239  // operation metadata for the ImportProcessorVersion method.
  9240  type GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata struct {
  9241  	// CommonMetadata: The basic metadata for the long-running operation.
  9242  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
  9243  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
  9244  	// unconditionally include in API requests. By default, fields with empty or
  9245  	// default values are omitted from API requests. See
  9246  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9247  	// details.
  9248  	ForceSendFields []string `json:"-"`
  9249  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
  9250  	// API requests with the JSON null value. By default, fields with empty values
  9251  	// are omitted from API requests. See
  9252  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9253  	NullFields []string `json:"-"`
  9254  }
  9255  
  9256  func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
  9257  	type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
  9258  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9259  }
  9260  
  9261  // GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest: The request
  9262  // message for the ImportProcessorVersion method. The Document AI Service Agent
  9263  // (https://cloud.google.com/iam/docs/service-agents) of the destination
  9264  // project must have Document AI Editor role
  9265  // (https://cloud.google.com/document-ai/docs/access-control/iam-roles) on the
  9266  // source project. The destination project is specified as part of the parent
  9267  // field. The source project is specified as part of the source or
  9268  // external_processor_version_source field.
  9269  type GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest struct {
  9270  	// ExternalProcessorVersionSource: The source processor version to import from.
  9271  	// It can be from a different environment and region than the destination
  9272  	// processor.
  9273  	ExternalProcessorVersionSource *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource `json:"externalProcessorVersionSource,omitempty"`
  9274  	// ProcessorVersionSource: The source processor version to import from. The
  9275  	// source processor version and destination processor need to be in the same
  9276  	// environment and region. Note that ProcessorVersions with `model_type`
  9277  	// `MODEL_TYPE_LLM` are not supported.
  9278  	ProcessorVersionSource string `json:"processorVersionSource,omitempty"`
  9279  	// ForceSendFields is a list of field names (e.g.
  9280  	// "ExternalProcessorVersionSource") to unconditionally include in API
  9281  	// requests. By default, fields with empty or default values are omitted from
  9282  	// API requests. See
  9283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9284  	// details.
  9285  	ForceSendFields []string `json:"-"`
  9286  	// NullFields is a list of field names (e.g. "ExternalProcessorVersionSource")
  9287  	// to include in API requests with the JSON null value. By default, fields with
  9288  	// empty values are omitted from API requests. See
  9289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9290  	NullFields []string `json:"-"`
  9291  }
  9292  
  9293  func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest) MarshalJSON() ([]byte, error) {
  9294  	type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
  9295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9296  }
  9297  
  9298  // GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVer
  9299  // sionSource: The external source processor version.
  9300  type GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource struct {
  9301  	// ProcessorVersion: Required. The processor version name. Format:
  9302  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
  9303  	// ions/{processorVersion}`
  9304  	ProcessorVersion string `json:"processorVersion,omitempty"`
  9305  	// ServiceEndpoint: Optional. The Document AI service endpoint. For example,
  9306  	// 'https://us-documentai.googleapis.com'
  9307  	ServiceEndpoint string `json:"serviceEndpoint,omitempty"`
  9308  	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
  9309  	// unconditionally include in API requests. By default, fields with empty or
  9310  	// default values are omitted from API requests. See
  9311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9312  	// details.
  9313  	ForceSendFields []string `json:"-"`
  9314  	// NullFields is a list of field names (e.g. "ProcessorVersion") to include in
  9315  	// API requests with the JSON null value. By default, fields with empty values
  9316  	// are omitted from API requests. See
  9317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9318  	NullFields []string `json:"-"`
  9319  }
  9320  
  9321  func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource) MarshalJSON() ([]byte, error) {
  9322  	type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource
  9323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9324  }
  9325  
  9326  // GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse: The response
  9327  // message for the ImportProcessorVersion method.
  9328  type GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse struct {
  9329  	// ProcessorVersion: The destination processor version name.
  9330  	ProcessorVersion string `json:"processorVersion,omitempty"`
  9331  	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
  9332  	// unconditionally include in API requests. By default, fields with empty or
  9333  	// default values are omitted from API requests. See
  9334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9335  	// details.
  9336  	ForceSendFields []string `json:"-"`
  9337  	// NullFields is a list of field names (e.g. "ProcessorVersion") to include in
  9338  	// API requests with the JSON null value. By default, fields with empty values
  9339  	// are omitted from API requests. See
  9340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9341  	NullFields []string `json:"-"`
  9342  }
  9343  
  9344  func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) {
  9345  	type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse
  9346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9347  }
  9348  
  9349  type GoogleCloudDocumentaiV1beta3ListDocumentsRequest struct {
  9350  	// Filter: Optional. Query to filter the documents based on
  9351  	// https://google.aip.dev/160. ## Currently support query strings are:
  9352  	// `SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED`
  9353  	// - `LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED`
  9354  	// - `DisplayName=\"file_name.pdf\" - `EntityType=abc/def` -
  9355  	// `TagName=\"auto-labeling-running\"|\"sampled\" Note: - Only `AND`, `=` and
  9356  	// `!=` are supported. e.g. `DisplayName=file_name AND EntityType!=abc` IS
  9357  	// supported. - Wildcard `*` is supported only in `DisplayName` filter - No
  9358  	// duplicate filter keys are allowed, e.g. `EntityType=a AND EntityType=b` is
  9359  	// NOT supported. - String match is case sensitive (for filter `DisplayName` &
  9360  	// `EntityType`).
  9361  	Filter string `json:"filter,omitempty"`
  9362  	// PageSize: The maximum number of documents to return. The service may return
  9363  	// fewer than this value. If unspecified, at most 20 documents will be
  9364  	// returned. The maximum value is 100; values above 100 will be coerced to 100.
  9365  	PageSize int64 `json:"pageSize,omitempty"`
  9366  	// PageToken: A page token, received from a previous `ListDocuments` call.
  9367  	// Provide this to retrieve the subsequent page. When paginating, all other
  9368  	// parameters provided to `ListDocuments` must match the call that provided the
  9369  	// page token.
  9370  	PageToken string `json:"pageToken,omitempty"`
  9371  	// ReturnTotalSize: Optional. Controls if the request requires a total size of
  9372  	// matched documents. See ListDocumentsResponse.total_size. Enabling this flag
  9373  	// may adversely impact performance. Defaults to false.
  9374  	ReturnTotalSize bool `json:"returnTotalSize,omitempty"`
  9375  	// Skip: Optional. Number of results to skip beginning from the `page_token` if
  9376  	// provided. https://google.aip.dev/158#skipping-results. It must be a
  9377  	// non-negative integer. Negative values will be rejected. Note that this is
  9378  	// not the number of pages to skip. If this value causes the cursor to move
  9379  	// past the end of results, ListDocumentsResponse.document_metadata and
  9380  	// ListDocumentsResponse.next_page_token will be empty.
  9381  	Skip int64 `json:"skip,omitempty"`
  9382  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  9383  	// include in API requests. By default, fields with empty or default values are
  9384  	// omitted from API requests. See
  9385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9386  	// details.
  9387  	ForceSendFields []string `json:"-"`
  9388  	// NullFields is a list of field names (e.g. "Filter") to include in API
  9389  	// requests with the JSON null value. By default, fields with empty values are
  9390  	// omitted from API requests. See
  9391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9392  	NullFields []string `json:"-"`
  9393  }
  9394  
  9395  func (s *GoogleCloudDocumentaiV1beta3ListDocumentsRequest) MarshalJSON() ([]byte, error) {
  9396  	type NoMethod GoogleCloudDocumentaiV1beta3ListDocumentsRequest
  9397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9398  }
  9399  
  9400  type GoogleCloudDocumentaiV1beta3ListDocumentsResponse struct {
  9401  	// DocumentMetadata: Document metadata corresponding to the listed documents.
  9402  	DocumentMetadata []*GoogleCloudDocumentaiV1beta3DocumentMetadata `json:"documentMetadata,omitempty"`
  9403  	// NextPageToken: A token, which can be sent as ListDocumentsRequest.page_token
  9404  	// to retrieve the next page. If this field is omitted, there are no subsequent
  9405  	// pages.
  9406  	NextPageToken string `json:"nextPageToken,omitempty"`
  9407  	// TotalSize: Total count of documents queried.
  9408  	TotalSize int64 `json:"totalSize,omitempty"`
  9409  
  9410  	// ServerResponse contains the HTTP response code and headers from the server.
  9411  	googleapi.ServerResponse `json:"-"`
  9412  	// ForceSendFields is a list of field names (e.g. "DocumentMetadata") to
  9413  	// unconditionally include in API requests. By default, fields with empty or
  9414  	// default values are omitted from API requests. See
  9415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9416  	// details.
  9417  	ForceSendFields []string `json:"-"`
  9418  	// NullFields is a list of field names (e.g. "DocumentMetadata") to include in
  9419  	// API requests with the JSON null value. By default, fields with empty values
  9420  	// are omitted from API requests. See
  9421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9422  	NullFields []string `json:"-"`
  9423  }
  9424  
  9425  func (s *GoogleCloudDocumentaiV1beta3ListDocumentsResponse) MarshalJSON() ([]byte, error) {
  9426  	type NoMethod GoogleCloudDocumentaiV1beta3ListDocumentsResponse
  9427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9428  }
  9429  
  9430  // GoogleCloudDocumentaiV1beta3ListEvaluationsResponse: The response from
  9431  // `ListEvaluations`.
  9432  type GoogleCloudDocumentaiV1beta3ListEvaluationsResponse struct {
  9433  	// Evaluations: The evaluations requested.
  9434  	Evaluations []*GoogleCloudDocumentaiV1beta3Evaluation `json:"evaluations,omitempty"`
  9435  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  9436  	// next page. If this field is omitted, there are no subsequent pages.
  9437  	NextPageToken string `json:"nextPageToken,omitempty"`
  9438  
  9439  	// ServerResponse contains the HTTP response code and headers from the server.
  9440  	googleapi.ServerResponse `json:"-"`
  9441  	// ForceSendFields is a list of field names (e.g. "Evaluations") to
  9442  	// unconditionally include in API requests. By default, fields with empty or
  9443  	// default values are omitted from API requests. See
  9444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9445  	// details.
  9446  	ForceSendFields []string `json:"-"`
  9447  	// NullFields is a list of field names (e.g. "Evaluations") to include in API
  9448  	// requests with the JSON null value. By default, fields with empty values are
  9449  	// omitted from API requests. See
  9450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9451  	NullFields []string `json:"-"`
  9452  }
  9453  
  9454  func (s *GoogleCloudDocumentaiV1beta3ListEvaluationsResponse) MarshalJSON() ([]byte, error) {
  9455  	type NoMethod GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
  9456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9457  }
  9458  
  9459  // GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse: Response message for
  9460  // the ListProcessorTypes method.
  9461  type GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse struct {
  9462  	// NextPageToken: Points to the next page, otherwise empty.
  9463  	NextPageToken string `json:"nextPageToken,omitempty"`
  9464  	// ProcessorTypes: The processor types.
  9465  	ProcessorTypes []*GoogleCloudDocumentaiV1beta3ProcessorType `json:"processorTypes,omitempty"`
  9466  
  9467  	// ServerResponse contains the HTTP response code and headers from the server.
  9468  	googleapi.ServerResponse `json:"-"`
  9469  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9470  	// unconditionally include in API requests. By default, fields with empty or
  9471  	// default values are omitted from API requests. See
  9472  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9473  	// details.
  9474  	ForceSendFields []string `json:"-"`
  9475  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9476  	// requests with the JSON null value. By default, fields with empty values are
  9477  	// omitted from API requests. See
  9478  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9479  	NullFields []string `json:"-"`
  9480  }
  9481  
  9482  func (s *GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse) MarshalJSON() ([]byte, error) {
  9483  	type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse
  9484  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9485  }
  9486  
  9487  // GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse: Response message
  9488  // for the ListProcessorVersions method.
  9489  type GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse struct {
  9490  	// NextPageToken: Points to the next processor, otherwise empty.
  9491  	NextPageToken string `json:"nextPageToken,omitempty"`
  9492  	// ProcessorVersions: The list of processors.
  9493  	ProcessorVersions []*GoogleCloudDocumentaiV1beta3ProcessorVersion `json:"processorVersions,omitempty"`
  9494  
  9495  	// ServerResponse contains the HTTP response code and headers from the server.
  9496  	googleapi.ServerResponse `json:"-"`
  9497  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9498  	// unconditionally include in API requests. By default, fields with empty or
  9499  	// default values are omitted from API requests. See
  9500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9501  	// details.
  9502  	ForceSendFields []string `json:"-"`
  9503  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9504  	// requests with the JSON null value. By default, fields with empty values are
  9505  	// omitted from API requests. See
  9506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9507  	NullFields []string `json:"-"`
  9508  }
  9509  
  9510  func (s *GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse) MarshalJSON() ([]byte, error) {
  9511  	type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse
  9512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9513  }
  9514  
  9515  // GoogleCloudDocumentaiV1beta3ListProcessorsResponse: Response message for the
  9516  // ListProcessors method.
  9517  type GoogleCloudDocumentaiV1beta3ListProcessorsResponse struct {
  9518  	// NextPageToken: Points to the next processor, otherwise empty.
  9519  	NextPageToken string `json:"nextPageToken,omitempty"`
  9520  	// Processors: The list of processors.
  9521  	Processors []*GoogleCloudDocumentaiV1beta3Processor `json:"processors,omitempty"`
  9522  
  9523  	// ServerResponse contains the HTTP response code and headers from the server.
  9524  	googleapi.ServerResponse `json:"-"`
  9525  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9526  	// unconditionally include in API requests. By default, fields with empty or
  9527  	// default values are omitted from API requests. See
  9528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9529  	// details.
  9530  	ForceSendFields []string `json:"-"`
  9531  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9532  	// requests with the JSON null value. By default, fields with empty values are
  9533  	// omitted from API requests. See
  9534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9535  	NullFields []string `json:"-"`
  9536  }
  9537  
  9538  func (s *GoogleCloudDocumentaiV1beta3ListProcessorsResponse) MarshalJSON() ([]byte, error) {
  9539  	type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorsResponse
  9540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9541  }
  9542  
  9543  // GoogleCloudDocumentaiV1beta3NormalizedVertex: A vertex represents a 2D point
  9544  // in the image. NOTE: the normalized vertex coordinates are relative to the
  9545  // original image and range from 0 to 1.
  9546  type GoogleCloudDocumentaiV1beta3NormalizedVertex struct {
  9547  	// X: X coordinate.
  9548  	X float64 `json:"x,omitempty"`
  9549  	// Y: Y coordinate (starts from the top of the image).
  9550  	Y float64 `json:"y,omitempty"`
  9551  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  9552  	// include in API requests. By default, fields with empty or default values are
  9553  	// omitted from API requests. See
  9554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9555  	// details.
  9556  	ForceSendFields []string `json:"-"`
  9557  	// NullFields is a list of field names (e.g. "X") to include in API requests
  9558  	// with the JSON null value. By default, fields with empty values are omitted
  9559  	// from API requests. See
  9560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9561  	NullFields []string `json:"-"`
  9562  }
  9563  
  9564  func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) MarshalJSON() ([]byte, error) {
  9565  	type NoMethod GoogleCloudDocumentaiV1beta3NormalizedVertex
  9566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9567  }
  9568  
  9569  func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) UnmarshalJSON(data []byte) error {
  9570  	type NoMethod GoogleCloudDocumentaiV1beta3NormalizedVertex
  9571  	var s1 struct {
  9572  		X gensupport.JSONFloat64 `json:"x"`
  9573  		Y gensupport.JSONFloat64 `json:"y"`
  9574  		*NoMethod
  9575  	}
  9576  	s1.NoMethod = (*NoMethod)(s)
  9577  	if err := json.Unmarshal(data, &s1); err != nil {
  9578  		return err
  9579  	}
  9580  	s.X = float64(s1.X)
  9581  	s.Y = float64(s1.Y)
  9582  	return nil
  9583  }
  9584  
  9585  // GoogleCloudDocumentaiV1beta3OcrConfig: Config for Document OCR.
  9586  type GoogleCloudDocumentaiV1beta3OcrConfig struct {
  9587  	// AdvancedOcrOptions: A list of advanced OCR options to further fine-tune OCR
  9588  	// behavior. Current valid values are: - `legacy_layout`: a heuristics layout
  9589  	// detection algorithm, which serves as an alternative to the current ML-based
  9590  	// layout detection algorithm. Customers can choose the best suitable layout
  9591  	// algorithm based on their situation.
  9592  	AdvancedOcrOptions []string `json:"advancedOcrOptions,omitempty"`
  9593  	// ComputeStyleInfo: Turn on font identification model and return font style
  9594  	// information. Deprecated, use PremiumFeatures.compute_style_info instead.
  9595  	ComputeStyleInfo bool `json:"computeStyleInfo,omitempty"`
  9596  	// DisableCharacterBoxesDetection: Turn off character box detector in OCR
  9597  	// engine. Character box detection is enabled by default in OCR 2.0 (and later)
  9598  	// processors.
  9599  	DisableCharacterBoxesDetection bool `json:"disableCharacterBoxesDetection,omitempty"`
  9600  	// EnableImageQualityScores: Enables intelligent document quality scores after
  9601  	// OCR. Can help with diagnosing why OCR responses are of poor quality for a
  9602  	// given input. Adds additional latency comparable to regular OCR to the
  9603  	// process call.
  9604  	EnableImageQualityScores bool `json:"enableImageQualityScores,omitempty"`
  9605  	// EnableNativePdfParsing: Enables special handling for PDFs with existing text
  9606  	// information. Results in better text extraction quality in such PDF inputs.
  9607  	EnableNativePdfParsing bool `json:"enableNativePdfParsing,omitempty"`
  9608  	// EnableSymbol: Includes symbol level OCR information if set to true.
  9609  	EnableSymbol bool `json:"enableSymbol,omitempty"`
  9610  	// Hints: Hints for the OCR model.
  9611  	Hints *GoogleCloudDocumentaiV1beta3OcrConfigHints `json:"hints,omitempty"`
  9612  	// PremiumFeatures: Configurations for premium OCR features.
  9613  	PremiumFeatures *GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures `json:"premiumFeatures,omitempty"`
  9614  	// ForceSendFields is a list of field names (e.g. "AdvancedOcrOptions") to
  9615  	// unconditionally include in API requests. By default, fields with empty or
  9616  	// default values are omitted from API requests. See
  9617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9618  	// details.
  9619  	ForceSendFields []string `json:"-"`
  9620  	// NullFields is a list of field names (e.g. "AdvancedOcrOptions") to include
  9621  	// in API requests with the JSON null value. By default, fields with empty
  9622  	// values are omitted from API requests. See
  9623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9624  	NullFields []string `json:"-"`
  9625  }
  9626  
  9627  func (s *GoogleCloudDocumentaiV1beta3OcrConfig) MarshalJSON() ([]byte, error) {
  9628  	type NoMethod GoogleCloudDocumentaiV1beta3OcrConfig
  9629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9630  }
  9631  
  9632  // GoogleCloudDocumentaiV1beta3OcrConfigHints: Hints for OCR Engine
  9633  type GoogleCloudDocumentaiV1beta3OcrConfigHints struct {
  9634  	// LanguageHints: List of BCP-47 language codes to use for OCR. In most cases,
  9635  	// not specifying it yields the best results since it enables automatic
  9636  	// language detection. For languages based on the Latin alphabet, setting hints
  9637  	// is not needed. In rare cases, when the language of the text in the image is
  9638  	// known, setting a hint will help get better results (although it will be a
  9639  	// significant hindrance if the hint is wrong).
  9640  	LanguageHints []string `json:"languageHints,omitempty"`
  9641  	// ForceSendFields is a list of field names (e.g. "LanguageHints") to
  9642  	// unconditionally include in API requests. By default, fields with empty or
  9643  	// default values are omitted from API requests. See
  9644  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9645  	// details.
  9646  	ForceSendFields []string `json:"-"`
  9647  	// NullFields is a list of field names (e.g. "LanguageHints") to include in API
  9648  	// requests with the JSON null value. By default, fields with empty values are
  9649  	// omitted from API requests. See
  9650  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9651  	NullFields []string `json:"-"`
  9652  }
  9653  
  9654  func (s *GoogleCloudDocumentaiV1beta3OcrConfigHints) MarshalJSON() ([]byte, error) {
  9655  	type NoMethod GoogleCloudDocumentaiV1beta3OcrConfigHints
  9656  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9657  }
  9658  
  9659  // GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures: Configurations for
  9660  // premium OCR features.
  9661  type GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures struct {
  9662  	// ComputeStyleInfo: Turn on font identification model and return font style
  9663  	// information.
  9664  	ComputeStyleInfo bool `json:"computeStyleInfo,omitempty"`
  9665  	// EnableMathOcr: Turn on the model that can extract LaTeX math formulas.
  9666  	EnableMathOcr bool `json:"enableMathOcr,omitempty"`
  9667  	// EnableSelectionMarkDetection: Turn on selection mark detector in OCR engine.
  9668  	// Only available in OCR 2.0 (and later) processors.
  9669  	EnableSelectionMarkDetection bool `json:"enableSelectionMarkDetection,omitempty"`
  9670  	// ForceSendFields is a list of field names (e.g. "ComputeStyleInfo") to
  9671  	// unconditionally include in API requests. By default, fields with empty or
  9672  	// default values are omitted from API requests. See
  9673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9674  	// details.
  9675  	ForceSendFields []string `json:"-"`
  9676  	// NullFields is a list of field names (e.g. "ComputeStyleInfo") to include in
  9677  	// API requests with the JSON null value. By default, fields with empty values
  9678  	// are omitted from API requests. See
  9679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9680  	NullFields []string `json:"-"`
  9681  }
  9682  
  9683  func (s *GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures) MarshalJSON() ([]byte, error) {
  9684  	type NoMethod GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures
  9685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9686  }
  9687  
  9688  // GoogleCloudDocumentaiV1beta3ProcessOptions: Options for Process API
  9689  type GoogleCloudDocumentaiV1beta3ProcessOptions struct {
  9690  	// FromEnd: Only process certain pages from the end, same as above.
  9691  	FromEnd int64 `json:"fromEnd,omitempty"`
  9692  	// FromStart: Only process certain pages from the start. Process all if the
  9693  	// document has fewer pages.
  9694  	FromStart int64 `json:"fromStart,omitempty"`
  9695  	// IndividualPageSelector: Which pages to process (1-indexed).
  9696  	IndividualPageSelector *GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector `json:"individualPageSelector,omitempty"`
  9697  	// LayoutConfig: Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`.
  9698  	// Returns error if set on other processor types.
  9699  	LayoutConfig *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig `json:"layoutConfig,omitempty"`
  9700  	// OcrConfig: Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
  9701  	// Returns error if set on other processor types.
  9702  	OcrConfig *GoogleCloudDocumentaiV1beta3OcrConfig `json:"ocrConfig,omitempty"`
  9703  	// SchemaOverride: Optional. Override the schema of the ProcessorVersion. Will
  9704  	// return an Invalid Argument error if this field is set when the underlying
  9705  	// ProcessorVersion doesn't support schema override.
  9706  	SchemaOverride *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"schemaOverride,omitempty"`
  9707  	// ForceSendFields is a list of field names (e.g. "FromEnd") to unconditionally
  9708  	// include in API requests. By default, fields with empty or default values are
  9709  	// omitted from API requests. See
  9710  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9711  	// details.
  9712  	ForceSendFields []string `json:"-"`
  9713  	// NullFields is a list of field names (e.g. "FromEnd") to include in API
  9714  	// requests with the JSON null value. By default, fields with empty values are
  9715  	// omitted from API requests. See
  9716  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9717  	NullFields []string `json:"-"`
  9718  }
  9719  
  9720  func (s *GoogleCloudDocumentaiV1beta3ProcessOptions) MarshalJSON() ([]byte, error) {
  9721  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptions
  9722  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9723  }
  9724  
  9725  // GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector: A list of
  9726  // individual page numbers.
  9727  type GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector struct {
  9728  	// Pages: Optional. Indices of the pages (starting from 1).
  9729  	Pages []int64 `json:"pages,omitempty"`
  9730  	// ForceSendFields is a list of field names (e.g. "Pages") to unconditionally
  9731  	// include in API requests. By default, fields with empty or default values are
  9732  	// omitted from API requests. See
  9733  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9734  	// details.
  9735  	ForceSendFields []string `json:"-"`
  9736  	// NullFields is a list of field names (e.g. "Pages") to include in API
  9737  	// requests with the JSON null value. By default, fields with empty values are
  9738  	// omitted from API requests. See
  9739  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9740  	NullFields []string `json:"-"`
  9741  }
  9742  
  9743  func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector) MarshalJSON() ([]byte, error) {
  9744  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
  9745  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9746  }
  9747  
  9748  // GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig: Serving config for
  9749  // layout parser processor.
  9750  type GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig struct {
  9751  	// ChunkingConfig: Optional. Config for chunking in layout parser processor.
  9752  	ChunkingConfig *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig `json:"chunkingConfig,omitempty"`
  9753  	// ForceSendFields is a list of field names (e.g. "ChunkingConfig") to
  9754  	// unconditionally include in API requests. By default, fields with empty or
  9755  	// default values are omitted from API requests. See
  9756  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9757  	// details.
  9758  	ForceSendFields []string `json:"-"`
  9759  	// NullFields is a list of field names (e.g. "ChunkingConfig") to include in
  9760  	// API requests with the JSON null value. By default, fields with empty values
  9761  	// are omitted from API requests. See
  9762  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9763  	NullFields []string `json:"-"`
  9764  }
  9765  
  9766  func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig) MarshalJSON() ([]byte, error) {
  9767  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig
  9768  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9769  }
  9770  
  9771  // GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig:
  9772  // Serving config for chunking.
  9773  type GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig struct {
  9774  	// BreakpointPercentileThreshold: Optional. The percentile of cosine
  9775  	// dissimilarity that must be exceeded between a group of tokens and the next.
  9776  	// The smaller this number is, the more chunks will be generated.
  9777  	BreakpointPercentileThreshold int64 `json:"breakpointPercentileThreshold,omitempty"`
  9778  	// ChunkSize: Optional. The chunk sizes to use when splitting documents, in
  9779  	// order of level.
  9780  	ChunkSize int64 `json:"chunkSize,omitempty"`
  9781  	// IncludeAncestorHeadings: Optional. Whether or not to include ancestor
  9782  	// headings when splitting.
  9783  	IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
  9784  	// SemanticChunkingGroupSize: Optional. The number of tokens to group together
  9785  	// when evaluating semantic similarity.
  9786  	SemanticChunkingGroupSize bool `json:"semanticChunkingGroupSize,omitempty"`
  9787  	// ForceSendFields is a list of field names (e.g.
  9788  	// "BreakpointPercentileThreshold") to unconditionally include in API requests.
  9789  	// By default, fields with empty or default values are omitted from API
  9790  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  9791  	// for more details.
  9792  	ForceSendFields []string `json:"-"`
  9793  	// NullFields is a list of field names (e.g. "BreakpointPercentileThreshold")
  9794  	// to include in API requests with the JSON null value. By default, fields with
  9795  	// empty values are omitted from API requests. See
  9796  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9797  	NullFields []string `json:"-"`
  9798  }
  9799  
  9800  func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig) MarshalJSON() ([]byte, error) {
  9801  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig
  9802  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9803  }
  9804  
  9805  // GoogleCloudDocumentaiV1beta3ProcessRequest: Request message for the
  9806  // ProcessDocument method.
  9807  type GoogleCloudDocumentaiV1beta3ProcessRequest struct {
  9808  	// Document: The document payload, the content and mime_type fields must be
  9809  	// set.
  9810  	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
  9811  	// FieldMask: Specifies which fields to include in the ProcessResponse.document
  9812  	// output. Only supports top-level document and pages field, so it must be in
  9813  	// the form of `{document_field_name}` or `pages.{page_field_name}`.
  9814  	FieldMask string `json:"fieldMask,omitempty"`
  9815  	// GcsDocument: A raw document on Google Cloud Storage.
  9816  	GcsDocument *GoogleCloudDocumentaiV1beta3GcsDocument `json:"gcsDocument,omitempty"`
  9817  	// InlineDocument: An inline document proto.
  9818  	InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"`
  9819  	// Labels: Optional. The labels with user-defined metadata for the request.
  9820  	// Label keys and values can be no longer than 63 characters (Unicode
  9821  	// codepoints) and can only contain lowercase letters, numeric characters,
  9822  	// underscores, and dashes. International characters are allowed. Label values
  9823  	// are optional. Label keys must start with a letter.
  9824  	Labels map[string]string `json:"labels,omitempty"`
  9825  	// ProcessOptions: Inference-time options for the process API
  9826  	ProcessOptions *GoogleCloudDocumentaiV1beta3ProcessOptions `json:"processOptions,omitempty"`
  9827  	// RawDocument: A raw document content (bytes).
  9828  	RawDocument *GoogleCloudDocumentaiV1beta3RawDocument `json:"rawDocument,omitempty"`
  9829  	// SkipHumanReview: Whether human review should be skipped for this request.
  9830  	// Default to `false`.
  9831  	SkipHumanReview bool `json:"skipHumanReview,omitempty"`
  9832  	// ForceSendFields is a list of field names (e.g. "Document") to
  9833  	// unconditionally include in API requests. By default, fields with empty or
  9834  	// default values are omitted from API requests. See
  9835  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9836  	// details.
  9837  	ForceSendFields []string `json:"-"`
  9838  	// NullFields is a list of field names (e.g. "Document") to include in API
  9839  	// requests with the JSON null value. By default, fields with empty values are
  9840  	// omitted from API requests. See
  9841  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9842  	NullFields []string `json:"-"`
  9843  }
  9844  
  9845  func (s *GoogleCloudDocumentaiV1beta3ProcessRequest) MarshalJSON() ([]byte, error) {
  9846  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessRequest
  9847  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9848  }
  9849  
  9850  // GoogleCloudDocumentaiV1beta3ProcessResponse: Response message for the
  9851  // ProcessDocument method.
  9852  type GoogleCloudDocumentaiV1beta3ProcessResponse struct {
  9853  	// Document: The document payload, will populate fields based on the
  9854  	// processor's behavior.
  9855  	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
  9856  	// HumanReviewOperation: The name of the operation triggered by the processed
  9857  	// document. If the human review process isn't triggered, this field is empty.
  9858  	// It has the same response type and metadata as the long-running operation
  9859  	// returned by ReviewDocument.
  9860  	HumanReviewOperation string `json:"humanReviewOperation,omitempty"`
  9861  	// HumanReviewStatus: The status of human review on the processed document.
  9862  	HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"`
  9863  
  9864  	// ServerResponse contains the HTTP response code and headers from the server.
  9865  	googleapi.ServerResponse `json:"-"`
  9866  	// ForceSendFields is a list of field names (e.g. "Document") to
  9867  	// unconditionally include in API requests. By default, fields with empty or
  9868  	// default values are omitted from API requests. See
  9869  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9870  	// details.
  9871  	ForceSendFields []string `json:"-"`
  9872  	// NullFields is a list of field names (e.g. "Document") to include in API
  9873  	// requests with the JSON null value. By default, fields with empty values are
  9874  	// omitted from API requests. See
  9875  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9876  	NullFields []string `json:"-"`
  9877  }
  9878  
  9879  func (s *GoogleCloudDocumentaiV1beta3ProcessResponse) MarshalJSON() ([]byte, error) {
  9880  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessResponse
  9881  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9882  }
  9883  
  9884  // GoogleCloudDocumentaiV1beta3Processor: The first-class citizen for Document
  9885  // AI. Each processor defines how to extract structural information from a
  9886  // document.
  9887  type GoogleCloudDocumentaiV1beta3Processor struct {
  9888  	// CreateTime: The time the processor was created.
  9889  	CreateTime string `json:"createTime,omitempty"`
  9890  	// DefaultProcessorVersion: The default processor version.
  9891  	DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
  9892  	// DisplayName: The display name of the processor.
  9893  	DisplayName string `json:"displayName,omitempty"`
  9894  	// KmsKeyName: The KMS key (https://cloud.google.com/security-key-management)
  9895  	// used for encryption and decryption in CMEK scenarios.
  9896  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  9897  	// Name: Output only. Immutable. The resource name of the processor. Format:
  9898  	// `projects/{project}/locations/{location}/processors/{processor}`
  9899  	Name string `json:"name,omitempty"`
  9900  	// ProcessEndpoint: Output only. Immutable. The http endpoint that can be
  9901  	// called to invoke processing.
  9902  	ProcessEndpoint string `json:"processEndpoint,omitempty"`
  9903  	// ProcessorVersionAliases: Output only. The processor version aliases.
  9904  	ProcessorVersionAliases []*GoogleCloudDocumentaiV1beta3ProcessorVersionAlias `json:"processorVersionAliases,omitempty"`
  9905  	// State: Output only. The state of the processor.
  9906  	//
  9907  	// Possible values:
  9908  	//   "STATE_UNSPECIFIED" - The processor is in an unspecified state.
  9909  	//   "ENABLED" - The processor is enabled, i.e., has an enabled version which
  9910  	// can currently serve processing requests and all the feature dependencies
  9911  	// have been successfully initialized.
  9912  	//   "DISABLED" - The processor is disabled.
  9913  	//   "ENABLING" - The processor is being enabled, will become `ENABLED` if
  9914  	// successful.
  9915  	//   "DISABLING" - The processor is being disabled, will become `DISABLED` if
  9916  	// successful.
  9917  	//   "CREATING" - The processor is being created, will become either `ENABLED`
  9918  	// (for successful creation) or `FAILED` (for failed ones). Once a processor is
  9919  	// in this state, it can then be used for document processing, but the feature
  9920  	// dependencies of the processor might not be fully created yet.
  9921  	//   "FAILED" - The processor failed during creation or initialization of
  9922  	// feature dependencies. The user should delete the processor and recreate one
  9923  	// as all the functionalities of the processor are disabled.
  9924  	//   "DELETING" - The processor is being deleted, will be removed if
  9925  	// successful.
  9926  	State string `json:"state,omitempty"`
  9927  	// Type: The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To
  9928  	// get a list of processor types, see FetchProcessorTypes.
  9929  	Type string `json:"type,omitempty"`
  9930  
  9931  	// ServerResponse contains the HTTP response code and headers from the server.
  9932  	googleapi.ServerResponse `json:"-"`
  9933  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9934  	// unconditionally include in API requests. By default, fields with empty or
  9935  	// default values are omitted from API requests. See
  9936  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9937  	// details.
  9938  	ForceSendFields []string `json:"-"`
  9939  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9940  	// requests with the JSON null value. By default, fields with empty values are
  9941  	// omitted from API requests. See
  9942  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9943  	NullFields []string `json:"-"`
  9944  }
  9945  
  9946  func (s *GoogleCloudDocumentaiV1beta3Processor) MarshalJSON() ([]byte, error) {
  9947  	type NoMethod GoogleCloudDocumentaiV1beta3Processor
  9948  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9949  }
  9950  
  9951  // GoogleCloudDocumentaiV1beta3ProcessorType: A processor type is responsible
  9952  // for performing a certain document understanding task on a certain type of
  9953  // document.
  9954  type GoogleCloudDocumentaiV1beta3ProcessorType struct {
  9955  	// AllowCreation: Whether the processor type allows creation. If true, users
  9956  	// can create a processor of this processor type. Otherwise, users need to
  9957  	// request access.
  9958  	AllowCreation bool `json:"allowCreation,omitempty"`
  9959  	// AvailableLocations: The locations in which this processor is available.
  9960  	AvailableLocations []*GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo `json:"availableLocations,omitempty"`
  9961  	// Category: The processor category, used by UI to group processor types.
  9962  	Category string `json:"category,omitempty"`
  9963  	// LaunchStage: Launch stage of the processor type
  9964  	//
  9965  	// Possible values:
  9966  	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
  9967  	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not use
  9968  	// it.
  9969  	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
  9970  	// visible internally.
  9971  	//   "EARLY_ACCESS" - Early Access features are limited to a closed group of
  9972  	// testers. To use these features, you must sign up in advance and sign a
  9973  	// Trusted Tester agreement (which includes confidentiality provisions). These
  9974  	// features may be unstable, changed in backward-incompatible ways, and are not
  9975  	// guaranteed to be released.
  9976  	//   "ALPHA" - Alpha is a limited availability test for releases before they
  9977  	// are cleared for widespread use. By Alpha, all significant design issues are
  9978  	// resolved and we are in the process of verifying functionality. Alpha
  9979  	// customers need to apply for access, agree to applicable terms, and have
  9980  	// their projects allowlisted. Alpha releases don't have to be feature
  9981  	// complete, no SLAs are provided, and there are no technical support
  9982  	// obligations, but they will be far enough along that customers can actually
  9983  	// use them in test environments or for limited-use tests -- just like they
  9984  	// would in normal production cases.
  9985  	//   "BETA" - Beta is the point at which we are ready to open a release for any
  9986  	// customer to use. There are no SLA or technical support obligations in a Beta
  9987  	// release. Products will be complete from a feature perspective, but may have
  9988  	// some open outstanding issues. Beta releases are suitable for limited
  9989  	// production use cases.
  9990  	//   "GA" - GA features are open to all developers and are considered stable
  9991  	// and fully qualified for production use.
  9992  	//   "DEPRECATED" - Deprecated features are scheduled to be shut down and
  9993  	// removed. For more information, see the "Deprecation Policy" section of our
  9994  	// [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud
  9995  	// Platform Subject to the Deprecation
  9996  	// Policy](https://cloud.google.com/terms/deprecation) documentation.
  9997  	LaunchStage string `json:"launchStage,omitempty"`
  9998  	// Name: The resource name of the processor type. Format:
  9999  	// `projects/{project}/processorTypes/{processor_type}`
 10000  	Name string `json:"name,omitempty"`
 10001  	// SampleDocumentUris: A set of Cloud Storage URIs of sample documents for this
 10002  	// processor.
 10003  	SampleDocumentUris []string `json:"sampleDocumentUris,omitempty"`
 10004  	// Type: The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
 10005  	Type string `json:"type,omitempty"`
 10006  
 10007  	// ServerResponse contains the HTTP response code and headers from the server.
 10008  	googleapi.ServerResponse `json:"-"`
 10009  	// ForceSendFields is a list of field names (e.g. "AllowCreation") to
 10010  	// unconditionally include in API requests. By default, fields with empty or
 10011  	// default values are omitted from API requests. See
 10012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10013  	// details.
 10014  	ForceSendFields []string `json:"-"`
 10015  	// NullFields is a list of field names (e.g. "AllowCreation") to include in API
 10016  	// requests with the JSON null value. By default, fields with empty values are
 10017  	// omitted from API requests. See
 10018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10019  	NullFields []string `json:"-"`
 10020  }
 10021  
 10022  func (s *GoogleCloudDocumentaiV1beta3ProcessorType) MarshalJSON() ([]byte, error) {
 10023  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorType
 10024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10025  }
 10026  
 10027  // GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo: The location
 10028  // information about where the processor is available.
 10029  type GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo struct {
 10030  	// LocationId: The location ID. For supported locations, refer to regional and
 10031  	// multi-regional support (/document-ai/docs/regions).
 10032  	LocationId string `json:"locationId,omitempty"`
 10033  	// ForceSendFields is a list of field names (e.g. "LocationId") to
 10034  	// unconditionally include in API requests. By default, fields with empty or
 10035  	// default values are omitted from API requests. See
 10036  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10037  	// details.
 10038  	ForceSendFields []string `json:"-"`
 10039  	// NullFields is a list of field names (e.g. "LocationId") to include in API
 10040  	// requests with the JSON null value. By default, fields with empty values are
 10041  	// omitted from API requests. See
 10042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10043  	NullFields []string `json:"-"`
 10044  }
 10045  
 10046  func (s *GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo) MarshalJSON() ([]byte, error) {
 10047  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
 10048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10049  }
 10050  
 10051  // GoogleCloudDocumentaiV1beta3ProcessorVersion: A processor version is an
 10052  // implementation of a processor. Each processor can have multiple versions,
 10053  // pretrained by Google internally or uptrained by the customer. A processor
 10054  // can only have one default version at a time. Its document-processing
 10055  // behavior is defined by that version.
 10056  type GoogleCloudDocumentaiV1beta3ProcessorVersion struct {
 10057  	// CreateTime: The time the processor version was created.
 10058  	CreateTime string `json:"createTime,omitempty"`
 10059  	// DeprecationInfo: If set, information about the eventual deprecation of this
 10060  	// version.
 10061  	DeprecationInfo *GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo `json:"deprecationInfo,omitempty"`
 10062  	// DisplayName: The display name of the processor version.
 10063  	DisplayName string `json:"displayName,omitempty"`
 10064  	// DocumentSchema: The schema of the processor version. Describes the output.
 10065  	DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
 10066  	// GoogleManaged: Output only. Denotes that this `ProcessorVersion` is managed
 10067  	// by Google.
 10068  	GoogleManaged bool `json:"googleManaged,omitempty"`
 10069  	// KmsKeyName: The KMS key name used for encryption.
 10070  	KmsKeyName string `json:"kmsKeyName,omitempty"`
 10071  	// KmsKeyVersionName: The KMS key version with which data is encrypted.
 10072  	KmsKeyVersionName string `json:"kmsKeyVersionName,omitempty"`
 10073  	// LatestEvaluation: The most recently invoked evaluation for the processor
 10074  	// version.
 10075  	LatestEvaluation *GoogleCloudDocumentaiV1beta3EvaluationReference `json:"latestEvaluation,omitempty"`
 10076  	// ModelType: Output only. The model type of this processor version.
 10077  	//
 10078  	// Possible values:
 10079  	//   "MODEL_TYPE_UNSPECIFIED" - The processor version has unspecified model
 10080  	// type.
 10081  	//   "MODEL_TYPE_GENERATIVE" - The processor version has generative model type.
 10082  	//   "MODEL_TYPE_CUSTOM" - The processor version has custom model type.
 10083  	ModelType string `json:"modelType,omitempty"`
 10084  	// Name: Identifier. The resource name of the processor version. Format:
 10085  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
 10086  	// ions/{processor_version}`
 10087  	Name string `json:"name,omitempty"`
 10088  	// State: Output only. The state of the processor version.
 10089  	//
 10090  	// Possible values:
 10091  	//   "STATE_UNSPECIFIED" - The processor version is in an unspecified state.
 10092  	//   "DEPLOYED" - The processor version is deployed and can be used for
 10093  	// processing.
 10094  	//   "DEPLOYING" - The processor version is being deployed.
 10095  	//   "UNDEPLOYED" - The processor version is not deployed and cannot be used
 10096  	// for processing.
 10097  	//   "UNDEPLOYING" - The processor version is being undeployed.
 10098  	//   "CREATING" - The processor version is being created.
 10099  	//   "DELETING" - The processor version is being deleted.
 10100  	//   "FAILED" - The processor version failed and is in an indeterminate state.
 10101  	//   "IMPORTING" - The processor version is being imported.
 10102  	State string `json:"state,omitempty"`
 10103  
 10104  	// ServerResponse contains the HTTP response code and headers from the server.
 10105  	googleapi.ServerResponse `json:"-"`
 10106  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10107  	// unconditionally include in API requests. By default, fields with empty or
 10108  	// default values are omitted from API requests. See
 10109  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10110  	// details.
 10111  	ForceSendFields []string `json:"-"`
 10112  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10113  	// requests with the JSON null value. By default, fields with empty values are
 10114  	// omitted from API requests. See
 10115  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10116  	NullFields []string `json:"-"`
 10117  }
 10118  
 10119  func (s *GoogleCloudDocumentaiV1beta3ProcessorVersion) MarshalJSON() ([]byte, error) {
 10120  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersion
 10121  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10122  }
 10123  
 10124  // GoogleCloudDocumentaiV1beta3ProcessorVersionAlias: Contains the alias and
 10125  // the aliased resource name of processor version.
 10126  type GoogleCloudDocumentaiV1beta3ProcessorVersionAlias struct {
 10127  	// Alias: The alias in the form of `processor_version` resource name.
 10128  	Alias string `json:"alias,omitempty"`
 10129  	// ProcessorVersion: The resource name of aliased processor version.
 10130  	ProcessorVersion string `json:"processorVersion,omitempty"`
 10131  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
 10132  	// include in API requests. By default, fields with empty or default values are
 10133  	// omitted from API requests. See
 10134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10135  	// details.
 10136  	ForceSendFields []string `json:"-"`
 10137  	// NullFields is a list of field names (e.g. "Alias") to include in API
 10138  	// requests with the JSON null value. By default, fields with empty values are
 10139  	// omitted from API requests. See
 10140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10141  	NullFields []string `json:"-"`
 10142  }
 10143  
 10144  func (s *GoogleCloudDocumentaiV1beta3ProcessorVersionAlias) MarshalJSON() ([]byte, error) {
 10145  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersionAlias
 10146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10147  }
 10148  
 10149  // GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo: Information
 10150  // about the upcoming deprecation of this processor version.
 10151  type GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo struct {
 10152  	// DeprecationTime: The time at which this processor version will be
 10153  	// deprecated.
 10154  	DeprecationTime string `json:"deprecationTime,omitempty"`
 10155  	// ReplacementProcessorVersion: If set, the processor version that will be used
 10156  	// as a replacement.
 10157  	ReplacementProcessorVersion string `json:"replacementProcessorVersion,omitempty"`
 10158  	// ForceSendFields is a list of field names (e.g. "DeprecationTime") to
 10159  	// unconditionally include in API requests. By default, fields with empty or
 10160  	// default values are omitted from API requests. See
 10161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10162  	// details.
 10163  	ForceSendFields []string `json:"-"`
 10164  	// NullFields is a list of field names (e.g. "DeprecationTime") to include in
 10165  	// API requests with the JSON null value. By default, fields with empty values
 10166  	// are omitted from API requests. See
 10167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10168  	NullFields []string `json:"-"`
 10169  }
 10170  
 10171  func (s *GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo) MarshalJSON() ([]byte, error) {
 10172  	type NoMethod GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo
 10173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10174  }
 10175  
 10176  // GoogleCloudDocumentaiV1beta3PropertyMetadata: Metadata about a property.
 10177  type GoogleCloudDocumentaiV1beta3PropertyMetadata struct {
 10178  	// FieldExtractionMetadata: Field extraction metadata on the property.
 10179  	FieldExtractionMetadata *GoogleCloudDocumentaiV1beta3FieldExtractionMetadata `json:"fieldExtractionMetadata,omitempty"`
 10180  	// Inactive: Whether the property should be considered as "inactive".
 10181  	Inactive bool `json:"inactive,omitempty"`
 10182  	// ForceSendFields is a list of field names (e.g. "FieldExtractionMetadata") to
 10183  	// unconditionally include in API requests. By default, fields with empty or
 10184  	// default values are omitted from API requests. See
 10185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10186  	// details.
 10187  	ForceSendFields []string `json:"-"`
 10188  	// NullFields is a list of field names (e.g. "FieldExtractionMetadata") to
 10189  	// include in API requests with the JSON null value. By default, fields with
 10190  	// empty values are omitted from API requests. See
 10191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10192  	NullFields []string `json:"-"`
 10193  }
 10194  
 10195  func (s *GoogleCloudDocumentaiV1beta3PropertyMetadata) MarshalJSON() ([]byte, error) {
 10196  	type NoMethod GoogleCloudDocumentaiV1beta3PropertyMetadata
 10197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10198  }
 10199  
 10200  // GoogleCloudDocumentaiV1beta3RawDocument: Payload message of raw document
 10201  // content (bytes).
 10202  type GoogleCloudDocumentaiV1beta3RawDocument struct {
 10203  	// Content: Inline document content.
 10204  	Content string `json:"content,omitempty"`
 10205  	// DisplayName: The display name of the document, it supports all Unicode
 10206  	// characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`,
 10207  	// `\", `,` `~`, `=` and `:` are reserved. If not specified, a default ID is
 10208  	// generated.
 10209  	DisplayName string `json:"displayName,omitempty"`
 10210  	// MimeType: An IANA MIME type (RFC6838) indicating the nature and format of
 10211  	// the content.
 10212  	MimeType string `json:"mimeType,omitempty"`
 10213  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 10214  	// include in API requests. By default, fields with empty or default values are
 10215  	// omitted from API requests. See
 10216  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10217  	// details.
 10218  	ForceSendFields []string `json:"-"`
 10219  	// NullFields is a list of field names (e.g. "Content") to include in API
 10220  	// requests with the JSON null value. By default, fields with empty values are
 10221  	// omitted from API requests. See
 10222  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10223  	NullFields []string `json:"-"`
 10224  }
 10225  
 10226  func (s *GoogleCloudDocumentaiV1beta3RawDocument) MarshalJSON() ([]byte, error) {
 10227  	type NoMethod GoogleCloudDocumentaiV1beta3RawDocument
 10228  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10229  }
 10230  
 10231  // GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata: The
 10232  // long-running operation metadata for the ReviewDocument method.
 10233  type GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata struct {
 10234  	// CommonMetadata: The basic metadata of the long-running operation.
 10235  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
 10236  	// CreateTime: The creation time of the operation.
 10237  	CreateTime string `json:"createTime,omitempty"`
 10238  	// QuestionId: The Crowd Compute question ID.
 10239  	QuestionId string `json:"questionId,omitempty"`
 10240  	// State: Used only when Operation.done is false.
 10241  	//
 10242  	// Possible values:
 10243  	//   "STATE_UNSPECIFIED" - Unspecified state.
 10244  	//   "RUNNING" - Operation is still running.
 10245  	//   "CANCELLING" - Operation is being cancelled.
 10246  	//   "SUCCEEDED" - Operation succeeded.
 10247  	//   "FAILED" - Operation failed.
 10248  	//   "CANCELLED" - Operation is cancelled.
 10249  	State string `json:"state,omitempty"`
 10250  	// StateMessage: A message providing more details about the current state of
 10251  	// processing. For example, the error message if the operation is failed.
 10252  	StateMessage string `json:"stateMessage,omitempty"`
 10253  	// UpdateTime: The last update time of the operation.
 10254  	UpdateTime string `json:"updateTime,omitempty"`
 10255  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
 10256  	// unconditionally include in API requests. By default, fields with empty or
 10257  	// default values are omitted from API requests. See
 10258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10259  	// details.
 10260  	ForceSendFields []string `json:"-"`
 10261  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
 10262  	// API requests with the JSON null value. By default, fields with empty values
 10263  	// are omitted from API requests. See
 10264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10265  	NullFields []string `json:"-"`
 10266  }
 10267  
 10268  func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 10269  	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
 10270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10271  }
 10272  
 10273  // GoogleCloudDocumentaiV1beta3ReviewDocumentRequest: Request message for the
 10274  // ReviewDocument method.
 10275  type GoogleCloudDocumentaiV1beta3ReviewDocumentRequest struct {
 10276  	// Document: The document that needs human review.
 10277  	Document *GoogleCloudDocumentaiV1beta3Document `json:"document,omitempty"`
 10278  	// DocumentSchema: The document schema of the human review task.
 10279  	DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
 10280  	// EnableSchemaValidation: Whether the validation should be performed on the
 10281  	// ad-hoc review request.
 10282  	EnableSchemaValidation bool `json:"enableSchemaValidation,omitempty"`
 10283  	// InlineDocument: An inline document proto.
 10284  	InlineDocument *GoogleCloudDocumentaiV1beta3Document `json:"inlineDocument,omitempty"`
 10285  	// Priority: The priority of the human review task.
 10286  	//
 10287  	// Possible values:
 10288  	//   "DEFAULT" - The default priority level.
 10289  	//   "URGENT" - The urgent priority level. The labeling manager should allocate
 10290  	// labeler resource to the urgent task queue to respect this priority level.
 10291  	Priority string `json:"priority,omitempty"`
 10292  	// ForceSendFields is a list of field names (e.g. "Document") to
 10293  	// unconditionally include in API requests. By default, fields with empty or
 10294  	// default values are omitted from API requests. See
 10295  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10296  	// details.
 10297  	ForceSendFields []string `json:"-"`
 10298  	// NullFields is a list of field names (e.g. "Document") to include in API
 10299  	// requests with the JSON null value. By default, fields with empty values are
 10300  	// omitted from API requests. See
 10301  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10302  	NullFields []string `json:"-"`
 10303  }
 10304  
 10305  func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest) MarshalJSON() ([]byte, error) {
 10306  	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
 10307  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10308  }
 10309  
 10310  // GoogleCloudDocumentaiV1beta3ReviewDocumentResponse: Response message for the
 10311  // ReviewDocument method.
 10312  type GoogleCloudDocumentaiV1beta3ReviewDocumentResponse struct {
 10313  	// GcsDestination: The Cloud Storage uri for the human reviewed document if the
 10314  	// review is succeeded.
 10315  	GcsDestination string `json:"gcsDestination,omitempty"`
 10316  	// RejectionReason: The reason why the review is rejected by reviewer.
 10317  	RejectionReason string `json:"rejectionReason,omitempty"`
 10318  	// State: The state of the review operation.
 10319  	//
 10320  	// Possible values:
 10321  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
 10322  	// is omitted.
 10323  	//   "REJECTED" - The review operation is rejected by the reviewer.
 10324  	//   "SUCCEEDED" - The review operation is succeeded.
 10325  	State string `json:"state,omitempty"`
 10326  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
 10327  	// unconditionally include in API requests. By default, fields with empty or
 10328  	// default values are omitted from API requests. See
 10329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10330  	// details.
 10331  	ForceSendFields []string `json:"-"`
 10332  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
 10333  	// API requests with the JSON null value. By default, fields with empty values
 10334  	// are omitted from API requests. See
 10335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10336  	NullFields []string `json:"-"`
 10337  }
 10338  
 10339  func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]byte, error) {
 10340  	type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
 10341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10342  }
 10343  
 10344  // GoogleCloudDocumentaiV1beta3RevisionRef: The revision reference specifies
 10345  // which revision on the document to read.
 10346  type GoogleCloudDocumentaiV1beta3RevisionRef struct {
 10347  	// LatestProcessorVersion: Reads the revision generated by the processor
 10348  	// version. The format takes the full resource name of processor version.
 10349  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
 10350  	// ions/{processorVersion}`
 10351  	LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"`
 10352  	// RevisionCase: Reads the revision by the predefined case.
 10353  	//
 10354  	// Possible values:
 10355  	//   "REVISION_CASE_UNSPECIFIED" - Unspecified case, fall back to read the
 10356  	// `LATEST_HUMAN_REVIEW`.
 10357  	//   "LATEST_HUMAN_REVIEW" - The latest revision made by a human.
 10358  	//   "LATEST_TIMESTAMP" - The latest revision based on timestamp.
 10359  	//   "BASE_OCR_REVISION" - The first (OCR) revision.
 10360  	RevisionCase string `json:"revisionCase,omitempty"`
 10361  	// RevisionId: Reads the revision given by the id.
 10362  	RevisionId string `json:"revisionId,omitempty"`
 10363  	// ForceSendFields is a list of field names (e.g. "LatestProcessorVersion") to
 10364  	// unconditionally include in API requests. By default, fields with empty or
 10365  	// default values are omitted from API requests. See
 10366  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10367  	// details.
 10368  	ForceSendFields []string `json:"-"`
 10369  	// NullFields is a list of field names (e.g. "LatestProcessorVersion") to
 10370  	// include in API requests with the JSON null value. By default, fields with
 10371  	// empty values are omitted from API requests. See
 10372  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10373  	NullFields []string `json:"-"`
 10374  }
 10375  
 10376  func (s *GoogleCloudDocumentaiV1beta3RevisionRef) MarshalJSON() ([]byte, error) {
 10377  	type NoMethod GoogleCloudDocumentaiV1beta3RevisionRef
 10378  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10379  }
 10380  
 10381  // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata: The
 10382  // long-running operation metadata for the SetDefaultProcessorVersion method.
 10383  type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata struct {
 10384  	// CommonMetadata: The basic metadata of the long-running operation.
 10385  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
 10386  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
 10387  	// unconditionally include in API requests. By default, fields with empty or
 10388  	// default values are omitted from API requests. See
 10389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10390  	// details.
 10391  	ForceSendFields []string `json:"-"`
 10392  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
 10393  	// API requests with the JSON null value. By default, fields with empty values
 10394  	// are omitted from API requests. See
 10395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10396  	NullFields []string `json:"-"`
 10397  }
 10398  
 10399  func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
 10400  	type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
 10401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10402  }
 10403  
 10404  // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest: Request
 10405  // message for the SetDefaultProcessorVersion method.
 10406  type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest struct {
 10407  	// DefaultProcessorVersion: Required. The resource name of child
 10408  	// ProcessorVersion to use as default. Format:
 10409  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
 10410  	// ions/{version}`
 10411  	DefaultProcessorVersion string `json:"defaultProcessorVersion,omitempty"`
 10412  	// ForceSendFields is a list of field names (e.g. "DefaultProcessorVersion") to
 10413  	// unconditionally include in API requests. By default, fields with empty or
 10414  	// default values are omitted from API requests. See
 10415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10416  	// details.
 10417  	ForceSendFields []string `json:"-"`
 10418  	// NullFields is a list of field names (e.g. "DefaultProcessorVersion") to
 10419  	// include in API requests with the JSON null value. By default, fields with
 10420  	// empty values are omitted from API requests. See
 10421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10422  	NullFields []string `json:"-"`
 10423  }
 10424  
 10425  func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest) MarshalJSON() ([]byte, error) {
 10426  	type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
 10427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10428  }
 10429  
 10430  // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse: Response
 10431  // message for the SetDefaultProcessorVersion method.
 10432  type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse struct {
 10433  }
 10434  
 10435  // GoogleCloudDocumentaiV1beta3SummaryOptions: Metadata for document
 10436  // summarization.
 10437  type GoogleCloudDocumentaiV1beta3SummaryOptions struct {
 10438  	// Format: The format the summary should be in.
 10439  	//
 10440  	// Possible values:
 10441  	//   "FORMAT_UNSPECIFIED" - Default.
 10442  	//   "PARAGRAPH" - Format the output in paragraphs.
 10443  	//   "BULLETS" - Format the output in bullets.
 10444  	Format string `json:"format,omitempty"`
 10445  	// Length: How long the summary should be.
 10446  	//
 10447  	// Possible values:
 10448  	//   "LENGTH_UNSPECIFIED" - Default.
 10449  	//   "BRIEF" - A brief summary of one or two sentences.
 10450  	//   "MODERATE" - A paragraph-length summary.
 10451  	//   "COMPREHENSIVE" - The longest option available.
 10452  	Length string `json:"length,omitempty"`
 10453  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
 10454  	// include in API requests. By default, fields with empty or default values are
 10455  	// omitted from API requests. See
 10456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10457  	// details.
 10458  	ForceSendFields []string `json:"-"`
 10459  	// NullFields is a list of field names (e.g. "Format") to include in API
 10460  	// requests with the JSON null value. By default, fields with empty values are
 10461  	// omitted from API requests. See
 10462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10463  	NullFields []string `json:"-"`
 10464  }
 10465  
 10466  func (s *GoogleCloudDocumentaiV1beta3SummaryOptions) MarshalJSON() ([]byte, error) {
 10467  	type NoMethod GoogleCloudDocumentaiV1beta3SummaryOptions
 10468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10469  }
 10470  
 10471  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata: The metadata that
 10472  // represents a processor version being created.
 10473  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata struct {
 10474  	// CommonMetadata: The basic metadata of the long-running operation.
 10475  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
 10476  	// TestDatasetValidation: The test dataset validation information.
 10477  	TestDatasetValidation *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"`
 10478  	// TrainingDatasetValidation: The training dataset validation information.
 10479  	TrainingDatasetValidation *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"`
 10480  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
 10481  	// unconditionally include in API requests. By default, fields with empty or
 10482  	// default values are omitted from API requests. See
 10483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10484  	// details.
 10485  	ForceSendFields []string `json:"-"`
 10486  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
 10487  	// API requests with the JSON null value. By default, fields with empty values
 10488  	// are omitted from API requests. See
 10489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10490  	NullFields []string `json:"-"`
 10491  }
 10492  
 10493  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
 10494  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
 10495  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10496  }
 10497  
 10498  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation:
 10499  // The dataset validation information. This includes any and all errors with
 10500  // documents and the dataset.
 10501  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation struct {
 10502  	// DatasetErrorCount: The total number of dataset errors.
 10503  	DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"`
 10504  	// DatasetErrors: Error information for the dataset as a whole. A maximum of 10
 10505  	// dataset errors will be returned. A single dataset error is terminal for
 10506  	// training.
 10507  	DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"`
 10508  	// DocumentErrorCount: The total number of document errors.
 10509  	DocumentErrorCount int64 `json:"documentErrorCount,omitempty"`
 10510  	// DocumentErrors: Error information pertaining to specific documents. A
 10511  	// maximum of 10 document errors will be returned. Any document with errors
 10512  	// will not be used throughout training.
 10513  	DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"`
 10514  	// ForceSendFields is a list of field names (e.g. "DatasetErrorCount") to
 10515  	// unconditionally include in API requests. By default, fields with empty or
 10516  	// default values are omitted from API requests. See
 10517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10518  	// details.
 10519  	ForceSendFields []string `json:"-"`
 10520  	// NullFields is a list of field names (e.g. "DatasetErrorCount") to include in
 10521  	// API requests with the JSON null value. By default, fields with empty values
 10522  	// are omitted from API requests. See
 10523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10524  	NullFields []string `json:"-"`
 10525  }
 10526  
 10527  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) {
 10528  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
 10529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10530  }
 10531  
 10532  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest: Request message
 10533  // for the TrainProcessorVersion method.
 10534  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest struct {
 10535  	// BaseProcessorVersion: Optional. The processor version to use as a base for
 10536  	// training. This processor version must be a child of `parent`. Format:
 10537  	// `projects/{project}/locations/{location}/processors/{processor}/processorVers
 10538  	// ions/{processorVersion}`.
 10539  	BaseProcessorVersion string `json:"baseProcessorVersion,omitempty"`
 10540  	// CustomDocumentExtractionOptions: Options to control Custom Document
 10541  	// Extraction (CDE) Processor.
 10542  	CustomDocumentExtractionOptions *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions `json:"customDocumentExtractionOptions,omitempty"`
 10543  	// DocumentSchema: Optional. The schema the processor version will be trained
 10544  	// with.
 10545  	DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"`
 10546  	// FoundationModelTuningOptions: Options to control foundation model tuning of
 10547  	// a processor.
 10548  	FoundationModelTuningOptions *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions `json:"foundationModelTuningOptions,omitempty"`
 10549  	// InputData: Optional. The input data used to train the ProcessorVersion.
 10550  	InputData *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData `json:"inputData,omitempty"`
 10551  	// ProcessorVersion: Required. The processor version to be created.
 10552  	ProcessorVersion *GoogleCloudDocumentaiV1beta3ProcessorVersion `json:"processorVersion,omitempty"`
 10553  	// ForceSendFields is a list of field names (e.g. "BaseProcessorVersion") to
 10554  	// unconditionally include in API requests. By default, fields with empty or
 10555  	// default values are omitted from API requests. See
 10556  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10557  	// details.
 10558  	ForceSendFields []string `json:"-"`
 10559  	// NullFields is a list of field names (e.g. "BaseProcessorVersion") to include
 10560  	// in API requests with the JSON null value. By default, fields with empty
 10561  	// values are omitted from API requests. See
 10562  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10563  	NullFields []string `json:"-"`
 10564  }
 10565  
 10566  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest) MarshalJSON() ([]byte, error) {
 10567  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
 10568  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10569  }
 10570  
 10571  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtract
 10572  // ionOptions: Options to control the training of the Custom Document
 10573  // Extraction (CDE) Processor.
 10574  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions struct {
 10575  	// TrainingMethod: Training method to use for CDE training.
 10576  	//
 10577  	// Possible values:
 10578  	//   "TRAINING_METHOD_UNSPECIFIED"
 10579  	//   "MODEL_BASED"
 10580  	//   "TEMPLATE_BASED"
 10581  	TrainingMethod string `json:"trainingMethod,omitempty"`
 10582  	// ForceSendFields is a list of field names (e.g. "TrainingMethod") to
 10583  	// unconditionally include in API requests. By default, fields with empty or
 10584  	// default values are omitted from API requests. See
 10585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10586  	// details.
 10587  	ForceSendFields []string `json:"-"`
 10588  	// NullFields is a list of field names (e.g. "TrainingMethod") to include in
 10589  	// API requests with the JSON null value. By default, fields with empty values
 10590  	// are omitted from API requests. See
 10591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10592  	NullFields []string `json:"-"`
 10593  }
 10594  
 10595  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions) MarshalJSON() ([]byte, error) {
 10596  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions
 10597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10598  }
 10599  
 10600  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuning
 10601  // Options: Options to control foundation model tuning of the processor.
 10602  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions struct {
 10603  	// LearningRateMultiplier: Optional. The multiplier to apply to the recommended
 10604  	// learning rate. Valid values are between 0.1 and 10. If not provided,
 10605  	// recommended learning rate will be used.
 10606  	LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"`
 10607  	// TrainSteps: Optional. The number of steps to run for model tuning. Valid
 10608  	// values are between 1 and 400. If not provided, recommended steps will be
 10609  	// used.
 10610  	TrainSteps int64 `json:"trainSteps,omitempty"`
 10611  	// ForceSendFields is a list of field names (e.g. "LearningRateMultiplier") to
 10612  	// unconditionally include in API requests. By default, fields with empty or
 10613  	// default values are omitted from API requests. See
 10614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10615  	// details.
 10616  	ForceSendFields []string `json:"-"`
 10617  	// NullFields is a list of field names (e.g. "LearningRateMultiplier") to
 10618  	// include in API requests with the JSON null value. By default, fields with
 10619  	// empty values are omitted from API requests. See
 10620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10621  	NullFields []string `json:"-"`
 10622  }
 10623  
 10624  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions) MarshalJSON() ([]byte, error) {
 10625  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
 10626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10627  }
 10628  
 10629  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions) UnmarshalJSON(data []byte) error {
 10630  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
 10631  	var s1 struct {
 10632  		LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"`
 10633  		*NoMethod
 10634  	}
 10635  	s1.NoMethod = (*NoMethod)(s)
 10636  	if err := json.Unmarshal(data, &s1); err != nil {
 10637  		return err
 10638  	}
 10639  	s.LearningRateMultiplier = float64(s1.LearningRateMultiplier)
 10640  	return nil
 10641  }
 10642  
 10643  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData: The input
 10644  // data used to train a new ProcessorVersion.
 10645  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData struct {
 10646  	// TestDocuments: The documents used for testing the trained version.
 10647  	TestDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"testDocuments,omitempty"`
 10648  	// TrainingDocuments: The documents used for training the new version.
 10649  	TrainingDocuments *GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig `json:"trainingDocuments,omitempty"`
 10650  	// ForceSendFields is a list of field names (e.g. "TestDocuments") to
 10651  	// unconditionally include in API requests. By default, fields with empty or
 10652  	// default values are omitted from API requests. See
 10653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10654  	// details.
 10655  	ForceSendFields []string `json:"-"`
 10656  	// NullFields is a list of field names (e.g. "TestDocuments") to include in API
 10657  	// requests with the JSON null value. By default, fields with empty values are
 10658  	// omitted from API requests. See
 10659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10660  	NullFields []string `json:"-"`
 10661  }
 10662  
 10663  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData) MarshalJSON() ([]byte, error) {
 10664  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
 10665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10666  }
 10667  
 10668  // GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse: The response for
 10669  // TrainProcessorVersion.
 10670  type GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse struct {
 10671  	// ProcessorVersion: The resource name of the processor version produced by
 10672  	// training.
 10673  	ProcessorVersion string `json:"processorVersion,omitempty"`
 10674  	// ForceSendFields is a list of field names (e.g. "ProcessorVersion") to
 10675  	// unconditionally include in API requests. By default, fields with empty or
 10676  	// default values are omitted from API requests. See
 10677  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10678  	// details.
 10679  	ForceSendFields []string `json:"-"`
 10680  	// NullFields is a list of field names (e.g. "ProcessorVersion") to include in
 10681  	// API requests with the JSON null value. By default, fields with empty values
 10682  	// are omitted from API requests. See
 10683  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10684  	NullFields []string `json:"-"`
 10685  }
 10686  
 10687  func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) {
 10688  	type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
 10689  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10690  }
 10691  
 10692  // GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata: The
 10693  // long-running operation metadata for the UndeployProcessorVersion method.
 10694  type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata struct {
 10695  	// CommonMetadata: The basic metadata of the long-running operation.
 10696  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
 10697  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
 10698  	// unconditionally include in API requests. By default, fields with empty or
 10699  	// default values are omitted from API requests. See
 10700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10701  	// details.
 10702  	ForceSendFields []string `json:"-"`
 10703  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
 10704  	// API requests with the JSON null value. By default, fields with empty values
 10705  	// are omitted from API requests. See
 10706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10707  	NullFields []string `json:"-"`
 10708  }
 10709  
 10710  func (s *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) {
 10711  	type NoMethod GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
 10712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10713  }
 10714  
 10715  // GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest: Request message
 10716  // for the UndeployProcessorVersion method.
 10717  type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest struct {
 10718  }
 10719  
 10720  // GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse: Response
 10721  // message for the UndeployProcessorVersion method.
 10722  type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse struct {
 10723  }
 10724  
 10725  type GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata struct {
 10726  	// CommonMetadata: The basic metadata of the long-running operation.
 10727  	CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"`
 10728  	// ForceSendFields is a list of field names (e.g. "CommonMetadata") to
 10729  	// unconditionally include in API requests. By default, fields with empty or
 10730  	// default values are omitted from API requests. See
 10731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10732  	// details.
 10733  	ForceSendFields []string `json:"-"`
 10734  	// NullFields is a list of field names (e.g. "CommonMetadata") to include in
 10735  	// API requests with the JSON null value. By default, fields with empty values
 10736  	// are omitted from API requests. See
 10737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10738  	NullFields []string `json:"-"`
 10739  }
 10740  
 10741  func (s *GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
 10742  	type NoMethod GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata
 10743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10744  }
 10745  
 10746  // GoogleCloudDocumentaiV1beta3Vertex: A vertex represents a 2D point in the
 10747  // image. NOTE: the vertex coordinates are in the same scale as the original
 10748  // image.
 10749  type GoogleCloudDocumentaiV1beta3Vertex struct {
 10750  	// X: X coordinate.
 10751  	X int64 `json:"x,omitempty"`
 10752  	// Y: Y coordinate (starts from the top of the image).
 10753  	Y int64 `json:"y,omitempty"`
 10754  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
 10755  	// include in API requests. By default, fields with empty or default values are
 10756  	// omitted from API requests. See
 10757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10758  	// details.
 10759  	ForceSendFields []string `json:"-"`
 10760  	// NullFields is a list of field names (e.g. "X") to include in API requests
 10761  	// with the JSON null value. By default, fields with empty values are omitted
 10762  	// from API requests. See
 10763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10764  	NullFields []string `json:"-"`
 10765  }
 10766  
 10767  func (s *GoogleCloudDocumentaiV1beta3Vertex) MarshalJSON() ([]byte, error) {
 10768  	type NoMethod GoogleCloudDocumentaiV1beta3Vertex
 10769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10770  }
 10771  
 10772  // GoogleCloudLocationListLocationsResponse: The response message for
 10773  // Locations.ListLocations.
 10774  type GoogleCloudLocationListLocationsResponse struct {
 10775  	// Locations: A list of locations that matches the specified filter in the
 10776  	// request.
 10777  	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
 10778  	// NextPageToken: The standard List next-page token.
 10779  	NextPageToken string `json:"nextPageToken,omitempty"`
 10780  
 10781  	// ServerResponse contains the HTTP response code and headers from the server.
 10782  	googleapi.ServerResponse `json:"-"`
 10783  	// ForceSendFields is a list of field names (e.g. "Locations") to
 10784  	// unconditionally include in API requests. By default, fields with empty or
 10785  	// default values are omitted from API requests. See
 10786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10787  	// details.
 10788  	ForceSendFields []string `json:"-"`
 10789  	// NullFields is a list of field names (e.g. "Locations") to include in API
 10790  	// requests with the JSON null value. By default, fields with empty values are
 10791  	// omitted from API requests. See
 10792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10793  	NullFields []string `json:"-"`
 10794  }
 10795  
 10796  func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
 10797  	type NoMethod GoogleCloudLocationListLocationsResponse
 10798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10799  }
 10800  
 10801  // GoogleCloudLocationLocation: A resource that represents a Google Cloud
 10802  // location.
 10803  type GoogleCloudLocationLocation struct {
 10804  	// DisplayName: The friendly name for this location, typically a nearby city
 10805  	// name. For example, "Tokyo".
 10806  	DisplayName string `json:"displayName,omitempty"`
 10807  	// Labels: Cross-service attributes for the location. For example
 10808  	// {"cloud.googleapis.com/region": "us-east1"}
 10809  	Labels map[string]string `json:"labels,omitempty"`
 10810  	// LocationId: The canonical id for this location. For example: "us-east1".
 10811  	LocationId string `json:"locationId,omitempty"`
 10812  	// Metadata: Service-specific metadata. For example the available capacity at
 10813  	// the given location.
 10814  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 10815  	// Name: Resource name for the location, which may vary between
 10816  	// implementations. For example:
 10817  	// "projects/example-project/locations/us-east1"
 10818  	Name string `json:"name,omitempty"`
 10819  
 10820  	// ServerResponse contains the HTTP response code and headers from the server.
 10821  	googleapi.ServerResponse `json:"-"`
 10822  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 10823  	// unconditionally include in API requests. By default, fields with empty or
 10824  	// default values are omitted from API requests. See
 10825  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10826  	// details.
 10827  	ForceSendFields []string `json:"-"`
 10828  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 10829  	// requests with the JSON null value. By default, fields with empty values are
 10830  	// omitted from API requests. See
 10831  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10832  	NullFields []string `json:"-"`
 10833  }
 10834  
 10835  func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
 10836  	type NoMethod GoogleCloudLocationLocation
 10837  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10838  }
 10839  
 10840  // GoogleLongrunningListOperationsResponse: The response message for
 10841  // Operations.ListOperations.
 10842  type GoogleLongrunningListOperationsResponse struct {
 10843  	// NextPageToken: The standard List next-page token.
 10844  	NextPageToken string `json:"nextPageToken,omitempty"`
 10845  	// Operations: A list of operations that matches the specified filter in the
 10846  	// request.
 10847  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 10848  
 10849  	// ServerResponse contains the HTTP response code and headers from the server.
 10850  	googleapi.ServerResponse `json:"-"`
 10851  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 10852  	// unconditionally include in API requests. By default, fields with empty or
 10853  	// default values are omitted from API requests. See
 10854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10855  	// details.
 10856  	ForceSendFields []string `json:"-"`
 10857  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 10858  	// requests with the JSON null value. By default, fields with empty values are
 10859  	// omitted from API requests. See
 10860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10861  	NullFields []string `json:"-"`
 10862  }
 10863  
 10864  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 10865  	type NoMethod GoogleLongrunningListOperationsResponse
 10866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10867  }
 10868  
 10869  // GoogleLongrunningOperation: This resource represents a long-running
 10870  // operation that is the result of a network API call.
 10871  type GoogleLongrunningOperation struct {
 10872  	// Done: If the value is `false`, it means the operation is still in progress.
 10873  	// If `true`, the operation is completed, and either `error` or `response` is
 10874  	// available.
 10875  	Done bool `json:"done,omitempty"`
 10876  	// Error: The error result of the operation in case of failure or cancellation.
 10877  	Error *GoogleRpcStatus `json:"error,omitempty"`
 10878  	// Metadata: Service-specific metadata associated with the operation. It
 10879  	// typically contains progress information and common metadata such as create
 10880  	// time. Some services might not provide such metadata. Any method that returns
 10881  	// a long-running operation should document the metadata type, if any.
 10882  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 10883  	// Name: The server-assigned name, which is only unique within the same service
 10884  	// that originally returns it. If you use the default HTTP mapping, the `name`
 10885  	// should be a resource name ending with `operations/{unique_id}`.
 10886  	Name string `json:"name,omitempty"`
 10887  	// Response: The normal, successful response of the operation. If the original
 10888  	// method returns no data on success, such as `Delete`, the response is
 10889  	// `google.protobuf.Empty`. If the original method is standard
 10890  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 10891  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 10892  	// original method name. For example, if the original method name is
 10893  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 10894  	Response googleapi.RawMessage `json:"response,omitempty"`
 10895  
 10896  	// ServerResponse contains the HTTP response code and headers from the server.
 10897  	googleapi.ServerResponse `json:"-"`
 10898  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 10899  	// include in API requests. By default, fields with empty or default values are
 10900  	// omitted from API requests. See
 10901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10902  	// details.
 10903  	ForceSendFields []string `json:"-"`
 10904  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 10905  	// with the JSON null value. By default, fields with empty values are omitted
 10906  	// from API requests. See
 10907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10908  	NullFields []string `json:"-"`
 10909  }
 10910  
 10911  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 10912  	type NoMethod GoogleLongrunningOperation
 10913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10914  }
 10915  
 10916  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 10917  // defining duplicated empty messages in your APIs. A typical example is to use
 10918  // it as the request or the response type of an API method. For instance:
 10919  // service Foo { rpc Bar(google.protobuf.Empty) returns
 10920  // (google.protobuf.Empty); }
 10921  type GoogleProtobufEmpty struct {
 10922  	// ServerResponse contains the HTTP response code and headers from the server.
 10923  	googleapi.ServerResponse `json:"-"`
 10924  }
 10925  
 10926  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 10927  // suitable for different programming environments, including REST APIs and RPC
 10928  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 10929  // contains three pieces of data: error code, error message, and error details.
 10930  // You can find out more about this error model and how to work with it in the
 10931  // API Design Guide (https://cloud.google.com/apis/design/errors).
 10932  type GoogleRpcStatus struct {
 10933  	// Code: The status code, which should be an enum value of google.rpc.Code.
 10934  	Code int64 `json:"code,omitempty"`
 10935  	// Details: A list of messages that carry the error details. There is a common
 10936  	// set of message types for APIs to use.
 10937  	Details []googleapi.RawMessage `json:"details,omitempty"`
 10938  	// Message: A developer-facing error message, which should be in English. Any
 10939  	// user-facing error message should be localized and sent in the
 10940  	// google.rpc.Status.details field, or localized by the client.
 10941  	Message string `json:"message,omitempty"`
 10942  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 10943  	// include in API requests. By default, fields with empty or default values are
 10944  	// omitted from API requests. See
 10945  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10946  	// details.
 10947  	ForceSendFields []string `json:"-"`
 10948  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 10949  	// with the JSON null value. By default, fields with empty values are omitted
 10950  	// from API requests. See
 10951  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10952  	NullFields []string `json:"-"`
 10953  }
 10954  
 10955  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 10956  	type NoMethod GoogleRpcStatus
 10957  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10958  }
 10959  
 10960  // GoogleTypeColor: Represents a color in the RGBA color space. This
 10961  // representation is designed for simplicity of conversion to and from color
 10962  // representations in various languages over compactness. For example, the
 10963  // fields of this representation can be trivially provided to the constructor
 10964  // of `java.awt.Color` in Java; it can also be trivially provided to UIColor's
 10965  // `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little
 10966  // work, it can be easily formatted into a CSS `rgba()` string in JavaScript.
 10967  // This reference page doesn't have information about the absolute color space
 10968  // that should be used to interpret the RGB value—for example, sRGB, Adobe
 10969  // RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB
 10970  // color space. When color equality needs to be decided, implementations,
 10971  // unless documented otherwise, treat two colors as equal if all their red,
 10972  // green, blue, and alpha values each differ by at most `1e-5`. Example (Java):
 10973  // import com.google.type.Color; // ... public static java.awt.Color
 10974  // fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ?
 10975  // protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color(
 10976  // protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); }
 10977  // public static Color toProto(java.awt.Color color) { float red = (float)
 10978  // color.getRed(); float green = (float) color.getGreen(); float blue = (float)
 10979  // color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder =
 10980  // Color .newBuilder() .setRed(red / denominator) .setGreen(green /
 10981  // denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if
 10982  // (alpha != 255) { result.setAlpha( FloatValue .newBuilder()
 10983  // .setValue(((float) alpha) / denominator) .build()); } return
 10984  // resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static
 10985  // UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float
 10986  // green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
 10987  // alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
 10988  // nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red
 10989  // green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color)
 10990  // { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green
 10991  // blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc]
 10992  // init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue];
 10993  // if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; }
 10994  // [result autorelease]; return result; } // ... Example (JavaScript): // ...
 10995  // var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red ||
 10996  // 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue
 10997  // || 0.0; var red = Math.floor(redFrac * 255); var green =
 10998  // Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if
 10999  // (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var
 11000  // alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green,
 11001  // blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(”);
 11002  // }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new
 11003  // Number((red << 16) | (green << 8) | blue); var hexString =
 11004  // rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
 11005  // resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) {
 11006  // resultBuilder.push('0'); } resultBuilder.push(hexString); return
 11007  // resultBuilder.join(”); }; // ...
 11008  type GoogleTypeColor struct {
 11009  	// Alpha: The fraction of this color that should be applied to the pixel. That
 11010  	// is, the final pixel color is defined by the equation: `pixel color = alpha *
 11011  	// (this color) + (1.0 - alpha) * (background color)` This means that a value
 11012  	// of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a
 11013  	// completely transparent color. This uses a wrapper message rather than a
 11014  	// simple float scalar so that it is possible to distinguish between a default
 11015  	// value and the value being unset. If omitted, this color object is rendered
 11016  	// as a solid color (as if the alpha value had been explicitly given a value of
 11017  	// 1.0).
 11018  	Alpha float64 `json:"alpha,omitempty"`
 11019  	// Blue: The amount of blue in the color as a value in the interval [0, 1].
 11020  	Blue float64 `json:"blue,omitempty"`
 11021  	// Green: The amount of green in the color as a value in the interval [0, 1].
 11022  	Green float64 `json:"green,omitempty"`
 11023  	// Red: The amount of red in the color as a value in the interval [0, 1].
 11024  	Red float64 `json:"red,omitempty"`
 11025  	// ForceSendFields is a list of field names (e.g. "Alpha") to unconditionally
 11026  	// include in API requests. By default, fields with empty or default values are
 11027  	// omitted from API requests. See
 11028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11029  	// details.
 11030  	ForceSendFields []string `json:"-"`
 11031  	// NullFields is a list of field names (e.g. "Alpha") to include in API
 11032  	// requests with the JSON null value. By default, fields with empty values are
 11033  	// omitted from API requests. See
 11034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11035  	NullFields []string `json:"-"`
 11036  }
 11037  
 11038  func (s *GoogleTypeColor) MarshalJSON() ([]byte, error) {
 11039  	type NoMethod GoogleTypeColor
 11040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11041  }
 11042  
 11043  func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error {
 11044  	type NoMethod GoogleTypeColor
 11045  	var s1 struct {
 11046  		Alpha gensupport.JSONFloat64 `json:"alpha"`
 11047  		Blue  gensupport.JSONFloat64 `json:"blue"`
 11048  		Green gensupport.JSONFloat64 `json:"green"`
 11049  		Red   gensupport.JSONFloat64 `json:"red"`
 11050  		*NoMethod
 11051  	}
 11052  	s1.NoMethod = (*NoMethod)(s)
 11053  	if err := json.Unmarshal(data, &s1); err != nil {
 11054  		return err
 11055  	}
 11056  	s.Alpha = float64(s1.Alpha)
 11057  	s.Blue = float64(s1.Blue)
 11058  	s.Green = float64(s1.Green)
 11059  	s.Red = float64(s1.Red)
 11060  	return nil
 11061  }
 11062  
 11063  // GoogleTypeDate: Represents a whole or partial calendar date, such as a
 11064  // birthday. The time of day and time zone are either specified elsewhere or
 11065  // are insignificant. The date is relative to the Gregorian Calendar. This can
 11066  // represent one of the following: * A full date, with non-zero year, month,
 11067  // and day values. * A month and day, with a zero year (for example, an
 11068  // anniversary). * A year on its own, with a zero month and a zero day. * A
 11069  // year and month, with a zero day (for example, a credit card expiration
 11070  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
 11071  // google.protobuf.Timestamp
 11072  type GoogleTypeDate struct {
 11073  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
 11074  	// or 0 to specify a year by itself or a year and month where the day isn't
 11075  	// significant.
 11076  	Day int64 `json:"day,omitempty"`
 11077  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
 11078  	// a month and day.
 11079  	Month int64 `json:"month,omitempty"`
 11080  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
 11081  	// without a year.
 11082  	Year int64 `json:"year,omitempty"`
 11083  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
 11084  	// include in API requests. By default, fields with empty or default values are
 11085  	// omitted from API requests. See
 11086  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11087  	// details.
 11088  	ForceSendFields []string `json:"-"`
 11089  	// NullFields is a list of field names (e.g. "Day") to include in API requests
 11090  	// with the JSON null value. By default, fields with empty values are omitted
 11091  	// from API requests. See
 11092  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11093  	NullFields []string `json:"-"`
 11094  }
 11095  
 11096  func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
 11097  	type NoMethod GoogleTypeDate
 11098  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11099  }
 11100  
 11101  // GoogleTypeDateTime: Represents civil time (or occasionally physical time).
 11102  // This type can represent a civil time in one of a few possible ways: * When
 11103  // utc_offset is set and time_zone is unset: a civil time on a calendar day
 11104  // with a particular offset from UTC. * When time_zone is set and utc_offset is
 11105  // unset: a civil time on a calendar day in a particular time zone. * When
 11106  // neither time_zone nor utc_offset is set: a civil time on a calendar day in
 11107  // local time. The date is relative to the Proleptic Gregorian Calendar. If
 11108  // year, month, or day are 0, the DateTime is considered not to have a specific
 11109  // year, month, or day respectively. This type may also be used to represent a
 11110  // physical time if all the date and time fields are set and either case of the
 11111  // `time_offset` oneof is set. Consider using `Timestamp` message for physical
 11112  // time instead. If your use case also would like to store the user's timezone,
 11113  // that can be done in another field. This type is more flexible than some
 11114  // applications may want. Make sure to document and validate your application's
 11115  // limitations.
 11116  type GoogleTypeDateTime struct {
 11117  	// Day: Optional. Day of month. Must be from 1 to 31 and valid for the year and
 11118  	// month, or 0 if specifying a datetime without a day.
 11119  	Day int64 `json:"day,omitempty"`
 11120  	// Hours: Optional. Hours of day in 24 hour format. Should be from 0 to 23,
 11121  	// defaults to 0 (midnight). An API may choose to allow the value "24:00:00"
 11122  	// for scenarios like business closing time.
 11123  	Hours int64 `json:"hours,omitempty"`
 11124  	// Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, defaults to
 11125  	// 0.
 11126  	Minutes int64 `json:"minutes,omitempty"`
 11127  	// Month: Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
 11128  	// datetime without a month.
 11129  	Month int64 `json:"month,omitempty"`
 11130  	// Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 to
 11131  	// 999,999,999, defaults to 0.
 11132  	Nanos int64 `json:"nanos,omitempty"`
 11133  	// Seconds: Optional. Seconds of minutes of the time. Must normally be from 0
 11134  	// to 59, defaults to 0. An API may allow the value 60 if it allows
 11135  	// leap-seconds.
 11136  	Seconds int64 `json:"seconds,omitempty"`
 11137  	// TimeZone: Time zone.
 11138  	TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"`
 11139  	// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and +18
 11140  	// hours. For example, a UTC offset of -4:00 would be represented as { seconds:
 11141  	// -14400 }.
 11142  	UtcOffset string `json:"utcOffset,omitempty"`
 11143  	// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
 11144  	// datetime without a year.
 11145  	Year int64 `json:"year,omitempty"`
 11146  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
 11147  	// include in API requests. By default, fields with empty or default values are
 11148  	// omitted from API requests. See
 11149  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11150  	// details.
 11151  	ForceSendFields []string `json:"-"`
 11152  	// NullFields is a list of field names (e.g. "Day") to include in API requests
 11153  	// with the JSON null value. By default, fields with empty values are omitted
 11154  	// from API requests. See
 11155  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11156  	NullFields []string `json:"-"`
 11157  }
 11158  
 11159  func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) {
 11160  	type NoMethod GoogleTypeDateTime
 11161  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11162  }
 11163  
 11164  // GoogleTypeMoney: Represents an amount of money with its currency type.
 11165  type GoogleTypeMoney struct {
 11166  	// CurrencyCode: The three-letter currency code defined in ISO 4217.
 11167  	CurrencyCode string `json:"currencyCode,omitempty"`
 11168  	// Nanos: Number of nano (10^-9) units of the amount. The value must be between
 11169  	// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
 11170  	// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,
 11171  	// or negative. If `units` is negative, `nanos` must be negative or zero. For
 11172  	// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
 11173  	Nanos int64 `json:"nanos,omitempty"`
 11174  	// Units: The whole units of the amount. For example if `currencyCode` is
 11175  	// "USD", then 1 unit is one US dollar.
 11176  	Units int64 `json:"units,omitempty,string"`
 11177  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
 11178  	// unconditionally include in API requests. By default, fields with empty or
 11179  	// default values are omitted from API requests. See
 11180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11181  	// details.
 11182  	ForceSendFields []string `json:"-"`
 11183  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
 11184  	// requests with the JSON null value. By default, fields with empty values are
 11185  	// omitted from API requests. See
 11186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11187  	NullFields []string `json:"-"`
 11188  }
 11189  
 11190  func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
 11191  	type NoMethod GoogleTypeMoney
 11192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11193  }
 11194  
 11195  // GoogleTypePostalAddress: Represents a postal address, e.g. for postal
 11196  // delivery or payments addresses. Given a postal address, a postal service can
 11197  // deliver items to a premise, P.O. Box or similar. It is not intended to model
 11198  // geographical locations (roads, towns, mountains). In typical usage an
 11199  // address would be created via user input or from importing existing data,
 11200  // depending on the type of process. Advice on address input / editing: - Use
 11201  // an internationalization-ready address widget such as
 11202  // https://github.com/google/libaddressinput) - Users should not be presented
 11203  // with UI elements for input or editing of fields outside countries where that
 11204  // field is used. For more guidance on how to use this schema, please see:
 11205  // https://support.google.com/business/answer/6397478
 11206  type GoogleTypePostalAddress struct {
 11207  	// AddressLines: Unstructured address lines describing the lower levels of an
 11208  	// address. Because values in address_lines do not have type information and
 11209  	// may sometimes contain multiple values in a single field (e.g. "Austin, TX"),
 11210  	// it is important that the line order is clear. The order of address lines
 11211  	// should be "envelope order" for the country/region of the address. In places
 11212  	// where this can vary (e.g. Japan), address_language is used to make it
 11213  	// explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for
 11214  	// small-to-large). This way, the most specific line of an address can be
 11215  	// selected based on the language. The minimum permitted structural
 11216  	// representation of an address consists of a region_code with all remaining
 11217  	// information placed in the address_lines. It would be possible to format such
 11218  	// an address very approximately without geocoding, but no semantic reasoning
 11219  	// could be made about any of the address components until it was at least
 11220  	// partially resolved. Creating an address only containing a region_code and
 11221  	// address_lines, and then geocoding is the recommended way to handle
 11222  	// completely unstructured addresses (as opposed to guessing which parts of the
 11223  	// address should be localities or administrative areas).
 11224  	AddressLines []string `json:"addressLines,omitempty"`
 11225  	// AdministrativeArea: Optional. Highest administrative subdivision which is
 11226  	// used for postal addresses of a country or region. For example, this can be a
 11227  	// state, a province, an oblast, or a prefecture. Specifically, for Spain this
 11228  	// is the province and not the autonomous community (e.g. "Barcelona" and not
 11229  	// "Catalonia"). Many countries don't use an administrative area in postal
 11230  	// addresses. E.g. in Switzerland this should be left unpopulated.
 11231  	AdministrativeArea string `json:"administrativeArea,omitempty"`
 11232  	// LanguageCode: Optional. BCP-47 language code of the contents of this address
 11233  	// (if known). This is often the UI language of the input form or is expected
 11234  	// to match one of the languages used in the address' country/region, or their
 11235  	// transliterated equivalents. This can affect formatting in certain countries,
 11236  	// but is not critical to the correctness of the data and will never affect any
 11237  	// validation or other non-formatting related operations. If this value is not
 11238  	// known, it should be omitted (rather than specifying a possibly incorrect
 11239  	// default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
 11240  	LanguageCode string `json:"languageCode,omitempty"`
 11241  	// Locality: Optional. Generally refers to the city/town portion of the
 11242  	// address. Examples: US city, IT comune, UK post town. In regions of the world
 11243  	// where localities are not well defined or do not fit into this structure
 11244  	// well, leave locality empty and use address_lines.
 11245  	Locality string `json:"locality,omitempty"`
 11246  	// Organization: Optional. The name of the organization at the address.
 11247  	Organization string `json:"organization,omitempty"`
 11248  	// PostalCode: Optional. Postal code of the address. Not all countries use or
 11249  	// require postal codes to be present, but where they are used, they may
 11250  	// trigger additional validation with other parts of the address (e.g.
 11251  	// state/zip validation in the U.S.A.).
 11252  	PostalCode string `json:"postalCode,omitempty"`
 11253  	// Recipients: Optional. The recipient at the address. This field may, under
 11254  	// certain circumstances, contain multiline information. For example, it might
 11255  	// contain "care of" information.
 11256  	Recipients []string `json:"recipients,omitempty"`
 11257  	// RegionCode: Required. CLDR region code of the country/region of the address.
 11258  	// This is never inferred and it is up to the user to ensure the value is
 11259  	// correct. See https://cldr.unicode.org/ and
 11260  	// https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
 11261  	// for details. Example: "CH" for Switzerland.
 11262  	RegionCode string `json:"regionCode,omitempty"`
 11263  	// Revision: The schema revision of the `PostalAddress`. This must be set to 0,
 11264  	// which is the latest revision. All new revisions **must** be backward
 11265  	// compatible with old revisions.
 11266  	Revision int64 `json:"revision,omitempty"`
 11267  	// SortingCode: Optional. Additional, country-specific, sorting code. This is
 11268  	// not used in most regions. Where it is used, the value is either a string
 11269  	// like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a
 11270  	// number alone, representing the "sector code" (Jamaica), "delivery area
 11271  	// indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
 11272  	SortingCode string `json:"sortingCode,omitempty"`
 11273  	// Sublocality: Optional. Sublocality of the address. For example, this can be
 11274  	// neighborhoods, boroughs, districts.
 11275  	Sublocality string `json:"sublocality,omitempty"`
 11276  	// ForceSendFields is a list of field names (e.g. "AddressLines") to
 11277  	// unconditionally include in API requests. By default, fields with empty or
 11278  	// default values are omitted from API requests. See
 11279  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11280  	// details.
 11281  	ForceSendFields []string `json:"-"`
 11282  	// NullFields is a list of field names (e.g. "AddressLines") to include in API
 11283  	// requests with the JSON null value. By default, fields with empty values are
 11284  	// omitted from API requests. See
 11285  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11286  	NullFields []string `json:"-"`
 11287  }
 11288  
 11289  func (s *GoogleTypePostalAddress) MarshalJSON() ([]byte, error) {
 11290  	type NoMethod GoogleTypePostalAddress
 11291  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11292  }
 11293  
 11294  // GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone Database
 11295  // (https://www.iana.org/time-zones).
 11296  type GoogleTypeTimeZone struct {
 11297  	// Id: IANA Time Zone Database time zone, e.g. "America/New_York".
 11298  	Id string `json:"id,omitempty"`
 11299  	// Version: Optional. IANA Time Zone Database version number, e.g. "2019a".
 11300  	Version string `json:"version,omitempty"`
 11301  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
 11302  	// include in API requests. By default, fields with empty or default values are
 11303  	// omitted from API requests. See
 11304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11305  	// details.
 11306  	ForceSendFields []string `json:"-"`
 11307  	// NullFields is a list of field names (e.g. "Id") to include in API requests
 11308  	// with the JSON null value. By default, fields with empty values are omitted
 11309  	// from API requests. See
 11310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11311  	NullFields []string `json:"-"`
 11312  }
 11313  
 11314  func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) {
 11315  	type NoMethod GoogleTypeTimeZone
 11316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11317  }
 11318  
 11319  type ProjectsLocationsFetchProcessorTypesCall struct {
 11320  	s            *Service
 11321  	parent       string
 11322  	urlParams_   gensupport.URLParams
 11323  	ifNoneMatch_ string
 11324  	ctx_         context.Context
 11325  	header_      http.Header
 11326  }
 11327  
 11328  // FetchProcessorTypes: Fetches processor types. Note that we don't use
 11329  // ListProcessorTypes here, because it isn't paginated.
 11330  //
 11331  //   - parent: The location of processor types to list. Format:
 11332  //     `projects/{project}/locations/{location}`.
 11333  func (r *ProjectsLocationsService) FetchProcessorTypes(parent string) *ProjectsLocationsFetchProcessorTypesCall {
 11334  	c := &ProjectsLocationsFetchProcessorTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11335  	c.parent = parent
 11336  	return c
 11337  }
 11338  
 11339  // Fields allows partial responses to be retrieved. See
 11340  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11341  // details.
 11342  func (c *ProjectsLocationsFetchProcessorTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFetchProcessorTypesCall {
 11343  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11344  	return c
 11345  }
 11346  
 11347  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11348  // object's ETag matches the given value. This is useful for getting updates
 11349  // only after the object has changed since the last request.
 11350  func (c *ProjectsLocationsFetchProcessorTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFetchProcessorTypesCall {
 11351  	c.ifNoneMatch_ = entityTag
 11352  	return c
 11353  }
 11354  
 11355  // Context sets the context to be used in this call's Do method.
 11356  func (c *ProjectsLocationsFetchProcessorTypesCall) Context(ctx context.Context) *ProjectsLocationsFetchProcessorTypesCall {
 11357  	c.ctx_ = ctx
 11358  	return c
 11359  }
 11360  
 11361  // Header returns a http.Header that can be modified by the caller to add
 11362  // headers to the request.
 11363  func (c *ProjectsLocationsFetchProcessorTypesCall) Header() http.Header {
 11364  	if c.header_ == nil {
 11365  		c.header_ = make(http.Header)
 11366  	}
 11367  	return c.header_
 11368  }
 11369  
 11370  func (c *ProjectsLocationsFetchProcessorTypesCall) doRequest(alt string) (*http.Response, error) {
 11371  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11372  	if c.ifNoneMatch_ != "" {
 11373  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11374  	}
 11375  	var body io.Reader = nil
 11376  	c.urlParams_.Set("alt", alt)
 11377  	c.urlParams_.Set("prettyPrint", "false")
 11378  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}:fetchProcessorTypes")
 11379  	urls += "?" + c.urlParams_.Encode()
 11380  	req, err := http.NewRequest("GET", urls, body)
 11381  	if err != nil {
 11382  		return nil, err
 11383  	}
 11384  	req.Header = reqHeaders
 11385  	googleapi.Expand(req.URL, map[string]string{
 11386  		"parent": c.parent,
 11387  	})
 11388  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11389  }
 11390  
 11391  // Do executes the "documentai.projects.locations.fetchProcessorTypes" call.
 11392  // Any non-2xx status code is an error. Response headers are in either
 11393  // *GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse.ServerResponse.Heade
 11394  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 11395  // Use googleapi.IsNotModified to check whether the returned error was because
 11396  // http.StatusNotModified was returned.
 11397  func (c *ProjectsLocationsFetchProcessorTypesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse, error) {
 11398  	gensupport.SetOptions(c.urlParams_, opts...)
 11399  	res, err := c.doRequest("json")
 11400  	if res != nil && res.StatusCode == http.StatusNotModified {
 11401  		if res.Body != nil {
 11402  			res.Body.Close()
 11403  		}
 11404  		return nil, gensupport.WrapError(&googleapi.Error{
 11405  			Code:   res.StatusCode,
 11406  			Header: res.Header,
 11407  		})
 11408  	}
 11409  	if err != nil {
 11410  		return nil, err
 11411  	}
 11412  	defer googleapi.CloseBody(res)
 11413  	if err := googleapi.CheckResponse(res); err != nil {
 11414  		return nil, gensupport.WrapError(err)
 11415  	}
 11416  	ret := &GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse{
 11417  		ServerResponse: googleapi.ServerResponse{
 11418  			Header:         res.Header,
 11419  			HTTPStatusCode: res.StatusCode,
 11420  		},
 11421  	}
 11422  	target := &ret
 11423  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11424  		return nil, err
 11425  	}
 11426  	return ret, nil
 11427  }
 11428  
 11429  type ProjectsLocationsGetCall struct {
 11430  	s            *Service
 11431  	name         string
 11432  	urlParams_   gensupport.URLParams
 11433  	ifNoneMatch_ string
 11434  	ctx_         context.Context
 11435  	header_      http.Header
 11436  }
 11437  
 11438  // Get: Gets information about a location.
 11439  //
 11440  // - name: Resource name for the location.
 11441  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
 11442  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11443  	c.name = name
 11444  	return c
 11445  }
 11446  
 11447  // Fields allows partial responses to be retrieved. See
 11448  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11449  // details.
 11450  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
 11451  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11452  	return c
 11453  }
 11454  
 11455  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11456  // object's ETag matches the given value. This is useful for getting updates
 11457  // only after the object has changed since the last request.
 11458  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
 11459  	c.ifNoneMatch_ = entityTag
 11460  	return c
 11461  }
 11462  
 11463  // Context sets the context to be used in this call's Do method.
 11464  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
 11465  	c.ctx_ = ctx
 11466  	return c
 11467  }
 11468  
 11469  // Header returns a http.Header that can be modified by the caller to add
 11470  // headers to the request.
 11471  func (c *ProjectsLocationsGetCall) Header() http.Header {
 11472  	if c.header_ == nil {
 11473  		c.header_ = make(http.Header)
 11474  	}
 11475  	return c.header_
 11476  }
 11477  
 11478  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
 11479  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11480  	if c.ifNoneMatch_ != "" {
 11481  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11482  	}
 11483  	var body io.Reader = nil
 11484  	c.urlParams_.Set("alt", alt)
 11485  	c.urlParams_.Set("prettyPrint", "false")
 11486  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 11487  	urls += "?" + c.urlParams_.Encode()
 11488  	req, err := http.NewRequest("GET", urls, body)
 11489  	if err != nil {
 11490  		return nil, err
 11491  	}
 11492  	req.Header = reqHeaders
 11493  	googleapi.Expand(req.URL, map[string]string{
 11494  		"name": c.name,
 11495  	})
 11496  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11497  }
 11498  
 11499  // Do executes the "documentai.projects.locations.get" call.
 11500  // Any non-2xx status code is an error. Response headers are in either
 11501  // *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was
 11502  // returned at all) in error.(*googleapi.Error).Header. Use
 11503  // googleapi.IsNotModified to check whether the returned error was because
 11504  // http.StatusNotModified was returned.
 11505  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
 11506  	gensupport.SetOptions(c.urlParams_, opts...)
 11507  	res, err := c.doRequest("json")
 11508  	if res != nil && res.StatusCode == http.StatusNotModified {
 11509  		if res.Body != nil {
 11510  			res.Body.Close()
 11511  		}
 11512  		return nil, gensupport.WrapError(&googleapi.Error{
 11513  			Code:   res.StatusCode,
 11514  			Header: res.Header,
 11515  		})
 11516  	}
 11517  	if err != nil {
 11518  		return nil, err
 11519  	}
 11520  	defer googleapi.CloseBody(res)
 11521  	if err := googleapi.CheckResponse(res); err != nil {
 11522  		return nil, gensupport.WrapError(err)
 11523  	}
 11524  	ret := &GoogleCloudLocationLocation{
 11525  		ServerResponse: googleapi.ServerResponse{
 11526  			Header:         res.Header,
 11527  			HTTPStatusCode: res.StatusCode,
 11528  		},
 11529  	}
 11530  	target := &ret
 11531  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11532  		return nil, err
 11533  	}
 11534  	return ret, nil
 11535  }
 11536  
 11537  type ProjectsLocationsListCall struct {
 11538  	s            *Service
 11539  	name         string
 11540  	urlParams_   gensupport.URLParams
 11541  	ifNoneMatch_ string
 11542  	ctx_         context.Context
 11543  	header_      http.Header
 11544  }
 11545  
 11546  // List: Lists information about the supported locations for this service.
 11547  //
 11548  // - name: The resource that owns the locations collection, if applicable.
 11549  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
 11550  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11551  	c.name = name
 11552  	return c
 11553  }
 11554  
 11555  // Filter sets the optional parameter "filter": A filter to narrow down results
 11556  // to a preferred subset. The filtering language accepts strings like
 11557  // "displayName=tokyo", and is documented in more detail in AIP-160
 11558  // (https://google.aip.dev/160).
 11559  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
 11560  	c.urlParams_.Set("filter", filter)
 11561  	return c
 11562  }
 11563  
 11564  // PageSize sets the optional parameter "pageSize": The maximum number of
 11565  // results to return. If not set, the service selects a default.
 11566  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
 11567  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11568  	return c
 11569  }
 11570  
 11571  // PageToken sets the optional parameter "pageToken": A page token received
 11572  // from the `next_page_token` field in the response. Send that page token to
 11573  // receive the subsequent page.
 11574  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
 11575  	c.urlParams_.Set("pageToken", pageToken)
 11576  	return c
 11577  }
 11578  
 11579  // Fields allows partial responses to be retrieved. See
 11580  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11581  // details.
 11582  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
 11583  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11584  	return c
 11585  }
 11586  
 11587  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11588  // object's ETag matches the given value. This is useful for getting updates
 11589  // only after the object has changed since the last request.
 11590  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
 11591  	c.ifNoneMatch_ = entityTag
 11592  	return c
 11593  }
 11594  
 11595  // Context sets the context to be used in this call's Do method.
 11596  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
 11597  	c.ctx_ = ctx
 11598  	return c
 11599  }
 11600  
 11601  // Header returns a http.Header that can be modified by the caller to add
 11602  // headers to the request.
 11603  func (c *ProjectsLocationsListCall) Header() http.Header {
 11604  	if c.header_ == nil {
 11605  		c.header_ = make(http.Header)
 11606  	}
 11607  	return c.header_
 11608  }
 11609  
 11610  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
 11611  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11612  	if c.ifNoneMatch_ != "" {
 11613  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11614  	}
 11615  	var body io.Reader = nil
 11616  	c.urlParams_.Set("alt", alt)
 11617  	c.urlParams_.Set("prettyPrint", "false")
 11618  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}/locations")
 11619  	urls += "?" + c.urlParams_.Encode()
 11620  	req, err := http.NewRequest("GET", urls, body)
 11621  	if err != nil {
 11622  		return nil, err
 11623  	}
 11624  	req.Header = reqHeaders
 11625  	googleapi.Expand(req.URL, map[string]string{
 11626  		"name": c.name,
 11627  	})
 11628  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11629  }
 11630  
 11631  // Do executes the "documentai.projects.locations.list" call.
 11632  // Any non-2xx status code is an error. Response headers are in either
 11633  // *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a
 11634  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11635  // googleapi.IsNotModified to check whether the returned error was because
 11636  // http.StatusNotModified was returned.
 11637  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
 11638  	gensupport.SetOptions(c.urlParams_, opts...)
 11639  	res, err := c.doRequest("json")
 11640  	if res != nil && res.StatusCode == http.StatusNotModified {
 11641  		if res.Body != nil {
 11642  			res.Body.Close()
 11643  		}
 11644  		return nil, gensupport.WrapError(&googleapi.Error{
 11645  			Code:   res.StatusCode,
 11646  			Header: res.Header,
 11647  		})
 11648  	}
 11649  	if err != nil {
 11650  		return nil, err
 11651  	}
 11652  	defer googleapi.CloseBody(res)
 11653  	if err := googleapi.CheckResponse(res); err != nil {
 11654  		return nil, gensupport.WrapError(err)
 11655  	}
 11656  	ret := &GoogleCloudLocationListLocationsResponse{
 11657  		ServerResponse: googleapi.ServerResponse{
 11658  			Header:         res.Header,
 11659  			HTTPStatusCode: res.StatusCode,
 11660  		},
 11661  	}
 11662  	target := &ret
 11663  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11664  		return nil, err
 11665  	}
 11666  	return ret, nil
 11667  }
 11668  
 11669  // Pages invokes f for each page of results.
 11670  // A non-nil error returned from f will halt the iteration.
 11671  // The provided context supersedes any context provided to the Context method.
 11672  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
 11673  	c.ctx_ = ctx
 11674  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11675  	for {
 11676  		x, err := c.Do()
 11677  		if err != nil {
 11678  			return err
 11679  		}
 11680  		if err := f(x); err != nil {
 11681  			return err
 11682  		}
 11683  		if x.NextPageToken == "" {
 11684  			return nil
 11685  		}
 11686  		c.PageToken(x.NextPageToken)
 11687  	}
 11688  }
 11689  
 11690  type ProjectsLocationsOperationsCancelCall struct {
 11691  	s          *Service
 11692  	name       string
 11693  	urlParams_ gensupport.URLParams
 11694  	ctx_       context.Context
 11695  	header_    http.Header
 11696  }
 11697  
 11698  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 11699  // server makes a best effort to cancel the operation, but success is not
 11700  // guaranteed. If the server doesn't support this method, it returns
 11701  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 11702  // other methods to check whether the cancellation succeeded or whether the
 11703  // operation completed despite cancellation. On successful cancellation, the
 11704  // operation is not deleted; instead, it becomes an operation with an
 11705  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 11706  // `Code.CANCELLED`.
 11707  //
 11708  // - name: The name of the operation resource to be cancelled.
 11709  func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
 11710  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11711  	c.name = name
 11712  	return c
 11713  }
 11714  
 11715  // Fields allows partial responses to be retrieved. See
 11716  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11717  // details.
 11718  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 11719  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11720  	return c
 11721  }
 11722  
 11723  // Context sets the context to be used in this call's Do method.
 11724  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 11725  	c.ctx_ = ctx
 11726  	return c
 11727  }
 11728  
 11729  // Header returns a http.Header that can be modified by the caller to add
 11730  // headers to the request.
 11731  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 11732  	if c.header_ == nil {
 11733  		c.header_ = make(http.Header)
 11734  	}
 11735  	return c.header_
 11736  }
 11737  
 11738  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 11739  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11740  	var body io.Reader = nil
 11741  	c.urlParams_.Set("alt", alt)
 11742  	c.urlParams_.Set("prettyPrint", "false")
 11743  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:cancel")
 11744  	urls += "?" + c.urlParams_.Encode()
 11745  	req, err := http.NewRequest("POST", urls, body)
 11746  	if err != nil {
 11747  		return nil, err
 11748  	}
 11749  	req.Header = reqHeaders
 11750  	googleapi.Expand(req.URL, map[string]string{
 11751  		"name": c.name,
 11752  	})
 11753  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11754  }
 11755  
 11756  // Do executes the "documentai.projects.locations.operations.cancel" call.
 11757  // Any non-2xx status code is an error. Response headers are in either
 11758  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11759  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11760  // check whether the returned error was because http.StatusNotModified was
 11761  // returned.
 11762  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11763  	gensupport.SetOptions(c.urlParams_, opts...)
 11764  	res, err := c.doRequest("json")
 11765  	if res != nil && res.StatusCode == http.StatusNotModified {
 11766  		if res.Body != nil {
 11767  			res.Body.Close()
 11768  		}
 11769  		return nil, gensupport.WrapError(&googleapi.Error{
 11770  			Code:   res.StatusCode,
 11771  			Header: res.Header,
 11772  		})
 11773  	}
 11774  	if err != nil {
 11775  		return nil, err
 11776  	}
 11777  	defer googleapi.CloseBody(res)
 11778  	if err := googleapi.CheckResponse(res); err != nil {
 11779  		return nil, gensupport.WrapError(err)
 11780  	}
 11781  	ret := &GoogleProtobufEmpty{
 11782  		ServerResponse: googleapi.ServerResponse{
 11783  			Header:         res.Header,
 11784  			HTTPStatusCode: res.StatusCode,
 11785  		},
 11786  	}
 11787  	target := &ret
 11788  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11789  		return nil, err
 11790  	}
 11791  	return ret, nil
 11792  }
 11793  
 11794  type ProjectsLocationsOperationsGetCall struct {
 11795  	s            *Service
 11796  	name         string
 11797  	urlParams_   gensupport.URLParams
 11798  	ifNoneMatch_ string
 11799  	ctx_         context.Context
 11800  	header_      http.Header
 11801  }
 11802  
 11803  // Get: Gets the latest state of a long-running operation. Clients can use this
 11804  // method to poll the operation result at intervals as recommended by the API
 11805  // service.
 11806  //
 11807  // - name: The name of the operation resource.
 11808  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 11809  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11810  	c.name = name
 11811  	return c
 11812  }
 11813  
 11814  // Fields allows partial responses to be retrieved. See
 11815  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11816  // details.
 11817  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 11818  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11819  	return c
 11820  }
 11821  
 11822  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11823  // object's ETag matches the given value. This is useful for getting updates
 11824  // only after the object has changed since the last request.
 11825  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 11826  	c.ifNoneMatch_ = entityTag
 11827  	return c
 11828  }
 11829  
 11830  // Context sets the context to be used in this call's Do method.
 11831  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 11832  	c.ctx_ = ctx
 11833  	return c
 11834  }
 11835  
 11836  // Header returns a http.Header that can be modified by the caller to add
 11837  // headers to the request.
 11838  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 11839  	if c.header_ == nil {
 11840  		c.header_ = make(http.Header)
 11841  	}
 11842  	return c.header_
 11843  }
 11844  
 11845  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 11846  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11847  	if c.ifNoneMatch_ != "" {
 11848  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11849  	}
 11850  	var body io.Reader = nil
 11851  	c.urlParams_.Set("alt", alt)
 11852  	c.urlParams_.Set("prettyPrint", "false")
 11853  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 11854  	urls += "?" + c.urlParams_.Encode()
 11855  	req, err := http.NewRequest("GET", urls, body)
 11856  	if err != nil {
 11857  		return nil, err
 11858  	}
 11859  	req.Header = reqHeaders
 11860  	googleapi.Expand(req.URL, map[string]string{
 11861  		"name": c.name,
 11862  	})
 11863  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11864  }
 11865  
 11866  // Do executes the "documentai.projects.locations.operations.get" call.
 11867  // Any non-2xx status code is an error. Response headers are in either
 11868  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11869  // returned at all) in error.(*googleapi.Error).Header. Use
 11870  // googleapi.IsNotModified to check whether the returned error was because
 11871  // http.StatusNotModified was returned.
 11872  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11873  	gensupport.SetOptions(c.urlParams_, opts...)
 11874  	res, err := c.doRequest("json")
 11875  	if res != nil && res.StatusCode == http.StatusNotModified {
 11876  		if res.Body != nil {
 11877  			res.Body.Close()
 11878  		}
 11879  		return nil, gensupport.WrapError(&googleapi.Error{
 11880  			Code:   res.StatusCode,
 11881  			Header: res.Header,
 11882  		})
 11883  	}
 11884  	if err != nil {
 11885  		return nil, err
 11886  	}
 11887  	defer googleapi.CloseBody(res)
 11888  	if err := googleapi.CheckResponse(res); err != nil {
 11889  		return nil, gensupport.WrapError(err)
 11890  	}
 11891  	ret := &GoogleLongrunningOperation{
 11892  		ServerResponse: googleapi.ServerResponse{
 11893  			Header:         res.Header,
 11894  			HTTPStatusCode: res.StatusCode,
 11895  		},
 11896  	}
 11897  	target := &ret
 11898  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11899  		return nil, err
 11900  	}
 11901  	return ret, nil
 11902  }
 11903  
 11904  type ProjectsLocationsOperationsListCall struct {
 11905  	s            *Service
 11906  	name         string
 11907  	urlParams_   gensupport.URLParams
 11908  	ifNoneMatch_ string
 11909  	ctx_         context.Context
 11910  	header_      http.Header
 11911  }
 11912  
 11913  // List: Lists operations that match the specified filter in the request. If
 11914  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 11915  //
 11916  // - name: The name of the operation's parent resource.
 11917  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 11918  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11919  	c.name = name
 11920  	return c
 11921  }
 11922  
 11923  // Filter sets the optional parameter "filter": The standard list filter.
 11924  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 11925  	c.urlParams_.Set("filter", filter)
 11926  	return c
 11927  }
 11928  
 11929  // PageSize sets the optional parameter "pageSize": The standard list page
 11930  // size.
 11931  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 11932  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11933  	return c
 11934  }
 11935  
 11936  // PageToken sets the optional parameter "pageToken": The standard list page
 11937  // token.
 11938  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 11939  	c.urlParams_.Set("pageToken", pageToken)
 11940  	return c
 11941  }
 11942  
 11943  // Fields allows partial responses to be retrieved. See
 11944  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11945  // details.
 11946  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 11947  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11948  	return c
 11949  }
 11950  
 11951  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11952  // object's ETag matches the given value. This is useful for getting updates
 11953  // only after the object has changed since the last request.
 11954  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 11955  	c.ifNoneMatch_ = entityTag
 11956  	return c
 11957  }
 11958  
 11959  // Context sets the context to be used in this call's Do method.
 11960  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 11961  	c.ctx_ = ctx
 11962  	return c
 11963  }
 11964  
 11965  // Header returns a http.Header that can be modified by the caller to add
 11966  // headers to the request.
 11967  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 11968  	if c.header_ == nil {
 11969  		c.header_ = make(http.Header)
 11970  	}
 11971  	return c.header_
 11972  }
 11973  
 11974  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 11975  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11976  	if c.ifNoneMatch_ != "" {
 11977  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11978  	}
 11979  	var body io.Reader = nil
 11980  	c.urlParams_.Set("alt", alt)
 11981  	c.urlParams_.Set("prettyPrint", "false")
 11982  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 11983  	urls += "?" + c.urlParams_.Encode()
 11984  	req, err := http.NewRequest("GET", urls, body)
 11985  	if err != nil {
 11986  		return nil, err
 11987  	}
 11988  	req.Header = reqHeaders
 11989  	googleapi.Expand(req.URL, map[string]string{
 11990  		"name": c.name,
 11991  	})
 11992  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11993  }
 11994  
 11995  // Do executes the "documentai.projects.locations.operations.list" call.
 11996  // Any non-2xx status code is an error. Response headers are in either
 11997  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 11998  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11999  // googleapi.IsNotModified to check whether the returned error was because
 12000  // http.StatusNotModified was returned.
 12001  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 12002  	gensupport.SetOptions(c.urlParams_, opts...)
 12003  	res, err := c.doRequest("json")
 12004  	if res != nil && res.StatusCode == http.StatusNotModified {
 12005  		if res.Body != nil {
 12006  			res.Body.Close()
 12007  		}
 12008  		return nil, gensupport.WrapError(&googleapi.Error{
 12009  			Code:   res.StatusCode,
 12010  			Header: res.Header,
 12011  		})
 12012  	}
 12013  	if err != nil {
 12014  		return nil, err
 12015  	}
 12016  	defer googleapi.CloseBody(res)
 12017  	if err := googleapi.CheckResponse(res); err != nil {
 12018  		return nil, gensupport.WrapError(err)
 12019  	}
 12020  	ret := &GoogleLongrunningListOperationsResponse{
 12021  		ServerResponse: googleapi.ServerResponse{
 12022  			Header:         res.Header,
 12023  			HTTPStatusCode: res.StatusCode,
 12024  		},
 12025  	}
 12026  	target := &ret
 12027  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12028  		return nil, err
 12029  	}
 12030  	return ret, nil
 12031  }
 12032  
 12033  // Pages invokes f for each page of results.
 12034  // A non-nil error returned from f will halt the iteration.
 12035  // The provided context supersedes any context provided to the Context method.
 12036  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 12037  	c.ctx_ = ctx
 12038  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12039  	for {
 12040  		x, err := c.Do()
 12041  		if err != nil {
 12042  			return err
 12043  		}
 12044  		if err := f(x); err != nil {
 12045  			return err
 12046  		}
 12047  		if x.NextPageToken == "" {
 12048  			return nil
 12049  		}
 12050  		c.PageToken(x.NextPageToken)
 12051  	}
 12052  }
 12053  
 12054  type ProjectsLocationsProcessorTypesGetCall struct {
 12055  	s            *Service
 12056  	name         string
 12057  	urlParams_   gensupport.URLParams
 12058  	ifNoneMatch_ string
 12059  	ctx_         context.Context
 12060  	header_      http.Header
 12061  }
 12062  
 12063  // Get: Gets a processor type detail.
 12064  //
 12065  // - name: The processor type resource name.
 12066  func (r *ProjectsLocationsProcessorTypesService) Get(name string) *ProjectsLocationsProcessorTypesGetCall {
 12067  	c := &ProjectsLocationsProcessorTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12068  	c.name = name
 12069  	return c
 12070  }
 12071  
 12072  // Fields allows partial responses to be retrieved. See
 12073  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12074  // details.
 12075  func (c *ProjectsLocationsProcessorTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorTypesGetCall {
 12076  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12077  	return c
 12078  }
 12079  
 12080  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12081  // object's ETag matches the given value. This is useful for getting updates
 12082  // only after the object has changed since the last request.
 12083  func (c *ProjectsLocationsProcessorTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorTypesGetCall {
 12084  	c.ifNoneMatch_ = entityTag
 12085  	return c
 12086  }
 12087  
 12088  // Context sets the context to be used in this call's Do method.
 12089  func (c *ProjectsLocationsProcessorTypesGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorTypesGetCall {
 12090  	c.ctx_ = ctx
 12091  	return c
 12092  }
 12093  
 12094  // Header returns a http.Header that can be modified by the caller to add
 12095  // headers to the request.
 12096  func (c *ProjectsLocationsProcessorTypesGetCall) Header() http.Header {
 12097  	if c.header_ == nil {
 12098  		c.header_ = make(http.Header)
 12099  	}
 12100  	return c.header_
 12101  }
 12102  
 12103  func (c *ProjectsLocationsProcessorTypesGetCall) doRequest(alt string) (*http.Response, error) {
 12104  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12105  	if c.ifNoneMatch_ != "" {
 12106  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12107  	}
 12108  	var body io.Reader = nil
 12109  	c.urlParams_.Set("alt", alt)
 12110  	c.urlParams_.Set("prettyPrint", "false")
 12111  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 12112  	urls += "?" + c.urlParams_.Encode()
 12113  	req, err := http.NewRequest("GET", urls, body)
 12114  	if err != nil {
 12115  		return nil, err
 12116  	}
 12117  	req.Header = reqHeaders
 12118  	googleapi.Expand(req.URL, map[string]string{
 12119  		"name": c.name,
 12120  	})
 12121  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12122  }
 12123  
 12124  // Do executes the "documentai.projects.locations.processorTypes.get" call.
 12125  // Any non-2xx status code is an error. Response headers are in either
 12126  // *GoogleCloudDocumentaiV1beta3ProcessorType.ServerResponse.Header or (if a
 12127  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12128  // googleapi.IsNotModified to check whether the returned error was because
 12129  // http.StatusNotModified was returned.
 12130  func (c *ProjectsLocationsProcessorTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessorType, error) {
 12131  	gensupport.SetOptions(c.urlParams_, opts...)
 12132  	res, err := c.doRequest("json")
 12133  	if res != nil && res.StatusCode == http.StatusNotModified {
 12134  		if res.Body != nil {
 12135  			res.Body.Close()
 12136  		}
 12137  		return nil, gensupport.WrapError(&googleapi.Error{
 12138  			Code:   res.StatusCode,
 12139  			Header: res.Header,
 12140  		})
 12141  	}
 12142  	if err != nil {
 12143  		return nil, err
 12144  	}
 12145  	defer googleapi.CloseBody(res)
 12146  	if err := googleapi.CheckResponse(res); err != nil {
 12147  		return nil, gensupport.WrapError(err)
 12148  	}
 12149  	ret := &GoogleCloudDocumentaiV1beta3ProcessorType{
 12150  		ServerResponse: googleapi.ServerResponse{
 12151  			Header:         res.Header,
 12152  			HTTPStatusCode: res.StatusCode,
 12153  		},
 12154  	}
 12155  	target := &ret
 12156  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12157  		return nil, err
 12158  	}
 12159  	return ret, nil
 12160  }
 12161  
 12162  type ProjectsLocationsProcessorTypesListCall struct {
 12163  	s            *Service
 12164  	parent       string
 12165  	urlParams_   gensupport.URLParams
 12166  	ifNoneMatch_ string
 12167  	ctx_         context.Context
 12168  	header_      http.Header
 12169  }
 12170  
 12171  // List: Lists the processor types that exist.
 12172  //
 12173  //   - parent: The location of processor types to list. Format:
 12174  //     `projects/{project}/locations/{location}`.
 12175  func (r *ProjectsLocationsProcessorTypesService) List(parent string) *ProjectsLocationsProcessorTypesListCall {
 12176  	c := &ProjectsLocationsProcessorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12177  	c.parent = parent
 12178  	return c
 12179  }
 12180  
 12181  // PageSize sets the optional parameter "pageSize": The maximum number of
 12182  // processor types to return. If unspecified, at most `100` processor types
 12183  // will be returned. The maximum value is `500`. Values above `500` will be
 12184  // coerced to `500`.
 12185  func (c *ProjectsLocationsProcessorTypesListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorTypesListCall {
 12186  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12187  	return c
 12188  }
 12189  
 12190  // PageToken sets the optional parameter "pageToken": Used to retrieve the next
 12191  // page of results, empty if at the end of the list.
 12192  func (c *ProjectsLocationsProcessorTypesListCall) PageToken(pageToken string) *ProjectsLocationsProcessorTypesListCall {
 12193  	c.urlParams_.Set("pageToken", pageToken)
 12194  	return c
 12195  }
 12196  
 12197  // Fields allows partial responses to be retrieved. See
 12198  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12199  // details.
 12200  func (c *ProjectsLocationsProcessorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorTypesListCall {
 12201  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12202  	return c
 12203  }
 12204  
 12205  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12206  // object's ETag matches the given value. This is useful for getting updates
 12207  // only after the object has changed since the last request.
 12208  func (c *ProjectsLocationsProcessorTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorTypesListCall {
 12209  	c.ifNoneMatch_ = entityTag
 12210  	return c
 12211  }
 12212  
 12213  // Context sets the context to be used in this call's Do method.
 12214  func (c *ProjectsLocationsProcessorTypesListCall) Context(ctx context.Context) *ProjectsLocationsProcessorTypesListCall {
 12215  	c.ctx_ = ctx
 12216  	return c
 12217  }
 12218  
 12219  // Header returns a http.Header that can be modified by the caller to add
 12220  // headers to the request.
 12221  func (c *ProjectsLocationsProcessorTypesListCall) Header() http.Header {
 12222  	if c.header_ == nil {
 12223  		c.header_ = make(http.Header)
 12224  	}
 12225  	return c.header_
 12226  }
 12227  
 12228  func (c *ProjectsLocationsProcessorTypesListCall) doRequest(alt string) (*http.Response, error) {
 12229  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12230  	if c.ifNoneMatch_ != "" {
 12231  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12232  	}
 12233  	var body io.Reader = nil
 12234  	c.urlParams_.Set("alt", alt)
 12235  	c.urlParams_.Set("prettyPrint", "false")
 12236  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorTypes")
 12237  	urls += "?" + c.urlParams_.Encode()
 12238  	req, err := http.NewRequest("GET", urls, body)
 12239  	if err != nil {
 12240  		return nil, err
 12241  	}
 12242  	req.Header = reqHeaders
 12243  	googleapi.Expand(req.URL, map[string]string{
 12244  		"parent": c.parent,
 12245  	})
 12246  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12247  }
 12248  
 12249  // Do executes the "documentai.projects.locations.processorTypes.list" call.
 12250  // Any non-2xx status code is an error. Response headers are in either
 12251  // *GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse.ServerResponse.Header
 12252  //
 12253  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 12254  //
 12255  // Use googleapi.IsNotModified to check whether the returned error was because
 12256  // http.StatusNotModified was returned.
 12257  func (c *ProjectsLocationsProcessorTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse, error) {
 12258  	gensupport.SetOptions(c.urlParams_, opts...)
 12259  	res, err := c.doRequest("json")
 12260  	if res != nil && res.StatusCode == http.StatusNotModified {
 12261  		if res.Body != nil {
 12262  			res.Body.Close()
 12263  		}
 12264  		return nil, gensupport.WrapError(&googleapi.Error{
 12265  			Code:   res.StatusCode,
 12266  			Header: res.Header,
 12267  		})
 12268  	}
 12269  	if err != nil {
 12270  		return nil, err
 12271  	}
 12272  	defer googleapi.CloseBody(res)
 12273  	if err := googleapi.CheckResponse(res); err != nil {
 12274  		return nil, gensupport.WrapError(err)
 12275  	}
 12276  	ret := &GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse{
 12277  		ServerResponse: googleapi.ServerResponse{
 12278  			Header:         res.Header,
 12279  			HTTPStatusCode: res.StatusCode,
 12280  		},
 12281  	}
 12282  	target := &ret
 12283  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12284  		return nil, err
 12285  	}
 12286  	return ret, nil
 12287  }
 12288  
 12289  // Pages invokes f for each page of results.
 12290  // A non-nil error returned from f will halt the iteration.
 12291  // The provided context supersedes any context provided to the Context method.
 12292  func (c *ProjectsLocationsProcessorTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse) error) error {
 12293  	c.ctx_ = ctx
 12294  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12295  	for {
 12296  		x, err := c.Do()
 12297  		if err != nil {
 12298  			return err
 12299  		}
 12300  		if err := f(x); err != nil {
 12301  			return err
 12302  		}
 12303  		if x.NextPageToken == "" {
 12304  			return nil
 12305  		}
 12306  		c.PageToken(x.NextPageToken)
 12307  	}
 12308  }
 12309  
 12310  type ProjectsLocationsProcessorsBatchProcessCall struct {
 12311  	s                                               *Service
 12312  	name                                            string
 12313  	googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest
 12314  	urlParams_                                      gensupport.URLParams
 12315  	ctx_                                            context.Context
 12316  	header_                                         http.Header
 12317  }
 12318  
 12319  // BatchProcess: LRO endpoint to batch process many documents. The output is
 12320  // written to Cloud Storage as JSON in the [Document] format.
 12321  //
 12322  //   - name: The resource name of Processor or ProcessorVersion. Format:
 12323  //     `projects/{project}/locations/{location}/processors/{processor}`, or
 12324  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 12325  //     rsions/{processorVersion}`.
 12326  func (r *ProjectsLocationsProcessorsService) BatchProcess(name string, googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest) *ProjectsLocationsProcessorsBatchProcessCall {
 12327  	c := &ProjectsLocationsProcessorsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12328  	c.name = name
 12329  	c.googleclouddocumentaiv1beta3batchprocessrequest = googleclouddocumentaiv1beta3batchprocessrequest
 12330  	return c
 12331  }
 12332  
 12333  // Fields allows partial responses to be retrieved. See
 12334  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12335  // details.
 12336  func (c *ProjectsLocationsProcessorsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsBatchProcessCall {
 12337  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12338  	return c
 12339  }
 12340  
 12341  // Context sets the context to be used in this call's Do method.
 12342  func (c *ProjectsLocationsProcessorsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsBatchProcessCall {
 12343  	c.ctx_ = ctx
 12344  	return c
 12345  }
 12346  
 12347  // Header returns a http.Header that can be modified by the caller to add
 12348  // headers to the request.
 12349  func (c *ProjectsLocationsProcessorsBatchProcessCall) Header() http.Header {
 12350  	if c.header_ == nil {
 12351  		c.header_ = make(http.Header)
 12352  	}
 12353  	return c.header_
 12354  }
 12355  
 12356  func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
 12357  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12358  	var body io.Reader = nil
 12359  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchprocessrequest)
 12360  	if err != nil {
 12361  		return nil, err
 12362  	}
 12363  	c.urlParams_.Set("alt", alt)
 12364  	c.urlParams_.Set("prettyPrint", "false")
 12365  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:batchProcess")
 12366  	urls += "?" + c.urlParams_.Encode()
 12367  	req, err := http.NewRequest("POST", urls, body)
 12368  	if err != nil {
 12369  		return nil, err
 12370  	}
 12371  	req.Header = reqHeaders
 12372  	googleapi.Expand(req.URL, map[string]string{
 12373  		"name": c.name,
 12374  	})
 12375  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12376  }
 12377  
 12378  // Do executes the "documentai.projects.locations.processors.batchProcess" call.
 12379  // Any non-2xx status code is an error. Response headers are in either
 12380  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12381  // returned at all) in error.(*googleapi.Error).Header. Use
 12382  // googleapi.IsNotModified to check whether the returned error was because
 12383  // http.StatusNotModified was returned.
 12384  func (c *ProjectsLocationsProcessorsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12385  	gensupport.SetOptions(c.urlParams_, opts...)
 12386  	res, err := c.doRequest("json")
 12387  	if res != nil && res.StatusCode == http.StatusNotModified {
 12388  		if res.Body != nil {
 12389  			res.Body.Close()
 12390  		}
 12391  		return nil, gensupport.WrapError(&googleapi.Error{
 12392  			Code:   res.StatusCode,
 12393  			Header: res.Header,
 12394  		})
 12395  	}
 12396  	if err != nil {
 12397  		return nil, err
 12398  	}
 12399  	defer googleapi.CloseBody(res)
 12400  	if err := googleapi.CheckResponse(res); err != nil {
 12401  		return nil, gensupport.WrapError(err)
 12402  	}
 12403  	ret := &GoogleLongrunningOperation{
 12404  		ServerResponse: googleapi.ServerResponse{
 12405  			Header:         res.Header,
 12406  			HTTPStatusCode: res.StatusCode,
 12407  		},
 12408  	}
 12409  	target := &ret
 12410  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12411  		return nil, err
 12412  	}
 12413  	return ret, nil
 12414  }
 12415  
 12416  type ProjectsLocationsProcessorsCreateCall struct {
 12417  	s                                     *Service
 12418  	parent                                string
 12419  	googleclouddocumentaiv1beta3processor *GoogleCloudDocumentaiV1beta3Processor
 12420  	urlParams_                            gensupport.URLParams
 12421  	ctx_                                  context.Context
 12422  	header_                               http.Header
 12423  }
 12424  
 12425  // Create: Creates a processor from the ProcessorType provided. The processor
 12426  // will be at `ENABLED` state by default after its creation.
 12427  //
 12428  //   - parent: The parent (project and location) under which to create the
 12429  //     processor. Format: `projects/{project}/locations/{location}`.
 12430  func (r *ProjectsLocationsProcessorsService) Create(parent string, googleclouddocumentaiv1beta3processor *GoogleCloudDocumentaiV1beta3Processor) *ProjectsLocationsProcessorsCreateCall {
 12431  	c := &ProjectsLocationsProcessorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12432  	c.parent = parent
 12433  	c.googleclouddocumentaiv1beta3processor = googleclouddocumentaiv1beta3processor
 12434  	return c
 12435  }
 12436  
 12437  // Fields allows partial responses to be retrieved. See
 12438  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12439  // details.
 12440  func (c *ProjectsLocationsProcessorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsCreateCall {
 12441  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12442  	return c
 12443  }
 12444  
 12445  // Context sets the context to be used in this call's Do method.
 12446  func (c *ProjectsLocationsProcessorsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessorsCreateCall {
 12447  	c.ctx_ = ctx
 12448  	return c
 12449  }
 12450  
 12451  // Header returns a http.Header that can be modified by the caller to add
 12452  // headers to the request.
 12453  func (c *ProjectsLocationsProcessorsCreateCall) Header() http.Header {
 12454  	if c.header_ == nil {
 12455  		c.header_ = make(http.Header)
 12456  	}
 12457  	return c.header_
 12458  }
 12459  
 12460  func (c *ProjectsLocationsProcessorsCreateCall) doRequest(alt string) (*http.Response, error) {
 12461  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12462  	var body io.Reader = nil
 12463  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processor)
 12464  	if err != nil {
 12465  		return nil, err
 12466  	}
 12467  	c.urlParams_.Set("alt", alt)
 12468  	c.urlParams_.Set("prettyPrint", "false")
 12469  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processors")
 12470  	urls += "?" + c.urlParams_.Encode()
 12471  	req, err := http.NewRequest("POST", urls, body)
 12472  	if err != nil {
 12473  		return nil, err
 12474  	}
 12475  	req.Header = reqHeaders
 12476  	googleapi.Expand(req.URL, map[string]string{
 12477  		"parent": c.parent,
 12478  	})
 12479  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12480  }
 12481  
 12482  // Do executes the "documentai.projects.locations.processors.create" call.
 12483  // Any non-2xx status code is an error. Response headers are in either
 12484  // *GoogleCloudDocumentaiV1beta3Processor.ServerResponse.Header or (if a
 12485  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12486  // googleapi.IsNotModified to check whether the returned error was because
 12487  // http.StatusNotModified was returned.
 12488  func (c *ProjectsLocationsProcessorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Processor, error) {
 12489  	gensupport.SetOptions(c.urlParams_, opts...)
 12490  	res, err := c.doRequest("json")
 12491  	if res != nil && res.StatusCode == http.StatusNotModified {
 12492  		if res.Body != nil {
 12493  			res.Body.Close()
 12494  		}
 12495  		return nil, gensupport.WrapError(&googleapi.Error{
 12496  			Code:   res.StatusCode,
 12497  			Header: res.Header,
 12498  		})
 12499  	}
 12500  	if err != nil {
 12501  		return nil, err
 12502  	}
 12503  	defer googleapi.CloseBody(res)
 12504  	if err := googleapi.CheckResponse(res); err != nil {
 12505  		return nil, gensupport.WrapError(err)
 12506  	}
 12507  	ret := &GoogleCloudDocumentaiV1beta3Processor{
 12508  		ServerResponse: googleapi.ServerResponse{
 12509  			Header:         res.Header,
 12510  			HTTPStatusCode: res.StatusCode,
 12511  		},
 12512  	}
 12513  	target := &ret
 12514  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12515  		return nil, err
 12516  	}
 12517  	return ret, nil
 12518  }
 12519  
 12520  type ProjectsLocationsProcessorsDeleteCall struct {
 12521  	s          *Service
 12522  	name       string
 12523  	urlParams_ gensupport.URLParams
 12524  	ctx_       context.Context
 12525  	header_    http.Header
 12526  }
 12527  
 12528  // Delete: Deletes the processor, unloads all deployed model artifacts if it
 12529  // was enabled and then deletes all artifacts associated with this processor.
 12530  //
 12531  // - name: The processor resource name to be deleted.
 12532  func (r *ProjectsLocationsProcessorsService) Delete(name string) *ProjectsLocationsProcessorsDeleteCall {
 12533  	c := &ProjectsLocationsProcessorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12534  	c.name = name
 12535  	return c
 12536  }
 12537  
 12538  // Fields allows partial responses to be retrieved. See
 12539  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12540  // details.
 12541  func (c *ProjectsLocationsProcessorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDeleteCall {
 12542  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12543  	return c
 12544  }
 12545  
 12546  // Context sets the context to be used in this call's Do method.
 12547  func (c *ProjectsLocationsProcessorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDeleteCall {
 12548  	c.ctx_ = ctx
 12549  	return c
 12550  }
 12551  
 12552  // Header returns a http.Header that can be modified by the caller to add
 12553  // headers to the request.
 12554  func (c *ProjectsLocationsProcessorsDeleteCall) Header() http.Header {
 12555  	if c.header_ == nil {
 12556  		c.header_ = make(http.Header)
 12557  	}
 12558  	return c.header_
 12559  }
 12560  
 12561  func (c *ProjectsLocationsProcessorsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12562  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12563  	var body io.Reader = nil
 12564  	c.urlParams_.Set("alt", alt)
 12565  	c.urlParams_.Set("prettyPrint", "false")
 12566  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 12567  	urls += "?" + c.urlParams_.Encode()
 12568  	req, err := http.NewRequest("DELETE", urls, body)
 12569  	if err != nil {
 12570  		return nil, err
 12571  	}
 12572  	req.Header = reqHeaders
 12573  	googleapi.Expand(req.URL, map[string]string{
 12574  		"name": c.name,
 12575  	})
 12576  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12577  }
 12578  
 12579  // Do executes the "documentai.projects.locations.processors.delete" call.
 12580  // Any non-2xx status code is an error. Response headers are in either
 12581  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12582  // returned at all) in error.(*googleapi.Error).Header. Use
 12583  // googleapi.IsNotModified to check whether the returned error was because
 12584  // http.StatusNotModified was returned.
 12585  func (c *ProjectsLocationsProcessorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12586  	gensupport.SetOptions(c.urlParams_, opts...)
 12587  	res, err := c.doRequest("json")
 12588  	if res != nil && res.StatusCode == http.StatusNotModified {
 12589  		if res.Body != nil {
 12590  			res.Body.Close()
 12591  		}
 12592  		return nil, gensupport.WrapError(&googleapi.Error{
 12593  			Code:   res.StatusCode,
 12594  			Header: res.Header,
 12595  		})
 12596  	}
 12597  	if err != nil {
 12598  		return nil, err
 12599  	}
 12600  	defer googleapi.CloseBody(res)
 12601  	if err := googleapi.CheckResponse(res); err != nil {
 12602  		return nil, gensupport.WrapError(err)
 12603  	}
 12604  	ret := &GoogleLongrunningOperation{
 12605  		ServerResponse: googleapi.ServerResponse{
 12606  			Header:         res.Header,
 12607  			HTTPStatusCode: res.StatusCode,
 12608  		},
 12609  	}
 12610  	target := &ret
 12611  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12612  		return nil, err
 12613  	}
 12614  	return ret, nil
 12615  }
 12616  
 12617  type ProjectsLocationsProcessorsDisableCall struct {
 12618  	s                                                   *Service
 12619  	name                                                string
 12620  	googleclouddocumentaiv1beta3disableprocessorrequest *GoogleCloudDocumentaiV1beta3DisableProcessorRequest
 12621  	urlParams_                                          gensupport.URLParams
 12622  	ctx_                                                context.Context
 12623  	header_                                             http.Header
 12624  }
 12625  
 12626  // Disable: Disables a processor
 12627  //
 12628  // - name: The processor resource name to be disabled.
 12629  func (r *ProjectsLocationsProcessorsService) Disable(name string, googleclouddocumentaiv1beta3disableprocessorrequest *GoogleCloudDocumentaiV1beta3DisableProcessorRequest) *ProjectsLocationsProcessorsDisableCall {
 12630  	c := &ProjectsLocationsProcessorsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12631  	c.name = name
 12632  	c.googleclouddocumentaiv1beta3disableprocessorrequest = googleclouddocumentaiv1beta3disableprocessorrequest
 12633  	return c
 12634  }
 12635  
 12636  // Fields allows partial responses to be retrieved. See
 12637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12638  // details.
 12639  func (c *ProjectsLocationsProcessorsDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDisableCall {
 12640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12641  	return c
 12642  }
 12643  
 12644  // Context sets the context to be used in this call's Do method.
 12645  func (c *ProjectsLocationsProcessorsDisableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDisableCall {
 12646  	c.ctx_ = ctx
 12647  	return c
 12648  }
 12649  
 12650  // Header returns a http.Header that can be modified by the caller to add
 12651  // headers to the request.
 12652  func (c *ProjectsLocationsProcessorsDisableCall) Header() http.Header {
 12653  	if c.header_ == nil {
 12654  		c.header_ = make(http.Header)
 12655  	}
 12656  	return c.header_
 12657  }
 12658  
 12659  func (c *ProjectsLocationsProcessorsDisableCall) doRequest(alt string) (*http.Response, error) {
 12660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12661  	var body io.Reader = nil
 12662  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3disableprocessorrequest)
 12663  	if err != nil {
 12664  		return nil, err
 12665  	}
 12666  	c.urlParams_.Set("alt", alt)
 12667  	c.urlParams_.Set("prettyPrint", "false")
 12668  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:disable")
 12669  	urls += "?" + c.urlParams_.Encode()
 12670  	req, err := http.NewRequest("POST", urls, body)
 12671  	if err != nil {
 12672  		return nil, err
 12673  	}
 12674  	req.Header = reqHeaders
 12675  	googleapi.Expand(req.URL, map[string]string{
 12676  		"name": c.name,
 12677  	})
 12678  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12679  }
 12680  
 12681  // Do executes the "documentai.projects.locations.processors.disable" call.
 12682  // Any non-2xx status code is an error. Response headers are in either
 12683  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12684  // returned at all) in error.(*googleapi.Error).Header. Use
 12685  // googleapi.IsNotModified to check whether the returned error was because
 12686  // http.StatusNotModified was returned.
 12687  func (c *ProjectsLocationsProcessorsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12688  	gensupport.SetOptions(c.urlParams_, opts...)
 12689  	res, err := c.doRequest("json")
 12690  	if res != nil && res.StatusCode == http.StatusNotModified {
 12691  		if res.Body != nil {
 12692  			res.Body.Close()
 12693  		}
 12694  		return nil, gensupport.WrapError(&googleapi.Error{
 12695  			Code:   res.StatusCode,
 12696  			Header: res.Header,
 12697  		})
 12698  	}
 12699  	if err != nil {
 12700  		return nil, err
 12701  	}
 12702  	defer googleapi.CloseBody(res)
 12703  	if err := googleapi.CheckResponse(res); err != nil {
 12704  		return nil, gensupport.WrapError(err)
 12705  	}
 12706  	ret := &GoogleLongrunningOperation{
 12707  		ServerResponse: googleapi.ServerResponse{
 12708  			Header:         res.Header,
 12709  			HTTPStatusCode: res.StatusCode,
 12710  		},
 12711  	}
 12712  	target := &ret
 12713  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12714  		return nil, err
 12715  	}
 12716  	return ret, nil
 12717  }
 12718  
 12719  type ProjectsLocationsProcessorsEnableCall struct {
 12720  	s                                                  *Service
 12721  	name                                               string
 12722  	googleclouddocumentaiv1beta3enableprocessorrequest *GoogleCloudDocumentaiV1beta3EnableProcessorRequest
 12723  	urlParams_                                         gensupport.URLParams
 12724  	ctx_                                               context.Context
 12725  	header_                                            http.Header
 12726  }
 12727  
 12728  // Enable: Enables a processor
 12729  //
 12730  // - name: The processor resource name to be enabled.
 12731  func (r *ProjectsLocationsProcessorsService) Enable(name string, googleclouddocumentaiv1beta3enableprocessorrequest *GoogleCloudDocumentaiV1beta3EnableProcessorRequest) *ProjectsLocationsProcessorsEnableCall {
 12732  	c := &ProjectsLocationsProcessorsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12733  	c.name = name
 12734  	c.googleclouddocumentaiv1beta3enableprocessorrequest = googleclouddocumentaiv1beta3enableprocessorrequest
 12735  	return c
 12736  }
 12737  
 12738  // Fields allows partial responses to be retrieved. See
 12739  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12740  // details.
 12741  func (c *ProjectsLocationsProcessorsEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsEnableCall {
 12742  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12743  	return c
 12744  }
 12745  
 12746  // Context sets the context to be used in this call's Do method.
 12747  func (c *ProjectsLocationsProcessorsEnableCall) Context(ctx context.Context) *ProjectsLocationsProcessorsEnableCall {
 12748  	c.ctx_ = ctx
 12749  	return c
 12750  }
 12751  
 12752  // Header returns a http.Header that can be modified by the caller to add
 12753  // headers to the request.
 12754  func (c *ProjectsLocationsProcessorsEnableCall) Header() http.Header {
 12755  	if c.header_ == nil {
 12756  		c.header_ = make(http.Header)
 12757  	}
 12758  	return c.header_
 12759  }
 12760  
 12761  func (c *ProjectsLocationsProcessorsEnableCall) doRequest(alt string) (*http.Response, error) {
 12762  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12763  	var body io.Reader = nil
 12764  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3enableprocessorrequest)
 12765  	if err != nil {
 12766  		return nil, err
 12767  	}
 12768  	c.urlParams_.Set("alt", alt)
 12769  	c.urlParams_.Set("prettyPrint", "false")
 12770  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:enable")
 12771  	urls += "?" + c.urlParams_.Encode()
 12772  	req, err := http.NewRequest("POST", urls, body)
 12773  	if err != nil {
 12774  		return nil, err
 12775  	}
 12776  	req.Header = reqHeaders
 12777  	googleapi.Expand(req.URL, map[string]string{
 12778  		"name": c.name,
 12779  	})
 12780  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12781  }
 12782  
 12783  // Do executes the "documentai.projects.locations.processors.enable" call.
 12784  // Any non-2xx status code is an error. Response headers are in either
 12785  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12786  // returned at all) in error.(*googleapi.Error).Header. Use
 12787  // googleapi.IsNotModified to check whether the returned error was because
 12788  // http.StatusNotModified was returned.
 12789  func (c *ProjectsLocationsProcessorsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12790  	gensupport.SetOptions(c.urlParams_, opts...)
 12791  	res, err := c.doRequest("json")
 12792  	if res != nil && res.StatusCode == http.StatusNotModified {
 12793  		if res.Body != nil {
 12794  			res.Body.Close()
 12795  		}
 12796  		return nil, gensupport.WrapError(&googleapi.Error{
 12797  			Code:   res.StatusCode,
 12798  			Header: res.Header,
 12799  		})
 12800  	}
 12801  	if err != nil {
 12802  		return nil, err
 12803  	}
 12804  	defer googleapi.CloseBody(res)
 12805  	if err := googleapi.CheckResponse(res); err != nil {
 12806  		return nil, gensupport.WrapError(err)
 12807  	}
 12808  	ret := &GoogleLongrunningOperation{
 12809  		ServerResponse: googleapi.ServerResponse{
 12810  			Header:         res.Header,
 12811  			HTTPStatusCode: res.StatusCode,
 12812  		},
 12813  	}
 12814  	target := &ret
 12815  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12816  		return nil, err
 12817  	}
 12818  	return ret, nil
 12819  }
 12820  
 12821  type ProjectsLocationsProcessorsGetCall struct {
 12822  	s            *Service
 12823  	name         string
 12824  	urlParams_   gensupport.URLParams
 12825  	ifNoneMatch_ string
 12826  	ctx_         context.Context
 12827  	header_      http.Header
 12828  }
 12829  
 12830  // Get: Gets a processor detail.
 12831  //
 12832  // - name: The processor resource name.
 12833  func (r *ProjectsLocationsProcessorsService) Get(name string) *ProjectsLocationsProcessorsGetCall {
 12834  	c := &ProjectsLocationsProcessorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12835  	c.name = name
 12836  	return c
 12837  }
 12838  
 12839  // Fields allows partial responses to be retrieved. See
 12840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12841  // details.
 12842  func (c *ProjectsLocationsProcessorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsGetCall {
 12843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12844  	return c
 12845  }
 12846  
 12847  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12848  // object's ETag matches the given value. This is useful for getting updates
 12849  // only after the object has changed since the last request.
 12850  func (c *ProjectsLocationsProcessorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsGetCall {
 12851  	c.ifNoneMatch_ = entityTag
 12852  	return c
 12853  }
 12854  
 12855  // Context sets the context to be used in this call's Do method.
 12856  func (c *ProjectsLocationsProcessorsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsGetCall {
 12857  	c.ctx_ = ctx
 12858  	return c
 12859  }
 12860  
 12861  // Header returns a http.Header that can be modified by the caller to add
 12862  // headers to the request.
 12863  func (c *ProjectsLocationsProcessorsGetCall) Header() http.Header {
 12864  	if c.header_ == nil {
 12865  		c.header_ = make(http.Header)
 12866  	}
 12867  	return c.header_
 12868  }
 12869  
 12870  func (c *ProjectsLocationsProcessorsGetCall) doRequest(alt string) (*http.Response, error) {
 12871  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12872  	if c.ifNoneMatch_ != "" {
 12873  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12874  	}
 12875  	var body io.Reader = nil
 12876  	c.urlParams_.Set("alt", alt)
 12877  	c.urlParams_.Set("prettyPrint", "false")
 12878  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 12879  	urls += "?" + c.urlParams_.Encode()
 12880  	req, err := http.NewRequest("GET", urls, body)
 12881  	if err != nil {
 12882  		return nil, err
 12883  	}
 12884  	req.Header = reqHeaders
 12885  	googleapi.Expand(req.URL, map[string]string{
 12886  		"name": c.name,
 12887  	})
 12888  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12889  }
 12890  
 12891  // Do executes the "documentai.projects.locations.processors.get" call.
 12892  // Any non-2xx status code is an error. Response headers are in either
 12893  // *GoogleCloudDocumentaiV1beta3Processor.ServerResponse.Header or (if a
 12894  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12895  // googleapi.IsNotModified to check whether the returned error was because
 12896  // http.StatusNotModified was returned.
 12897  func (c *ProjectsLocationsProcessorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Processor, error) {
 12898  	gensupport.SetOptions(c.urlParams_, opts...)
 12899  	res, err := c.doRequest("json")
 12900  	if res != nil && res.StatusCode == http.StatusNotModified {
 12901  		if res.Body != nil {
 12902  			res.Body.Close()
 12903  		}
 12904  		return nil, gensupport.WrapError(&googleapi.Error{
 12905  			Code:   res.StatusCode,
 12906  			Header: res.Header,
 12907  		})
 12908  	}
 12909  	if err != nil {
 12910  		return nil, err
 12911  	}
 12912  	defer googleapi.CloseBody(res)
 12913  	if err := googleapi.CheckResponse(res); err != nil {
 12914  		return nil, gensupport.WrapError(err)
 12915  	}
 12916  	ret := &GoogleCloudDocumentaiV1beta3Processor{
 12917  		ServerResponse: googleapi.ServerResponse{
 12918  			Header:         res.Header,
 12919  			HTTPStatusCode: res.StatusCode,
 12920  		},
 12921  	}
 12922  	target := &ret
 12923  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12924  		return nil, err
 12925  	}
 12926  	return ret, nil
 12927  }
 12928  
 12929  type ProjectsLocationsProcessorsListCall struct {
 12930  	s            *Service
 12931  	parent       string
 12932  	urlParams_   gensupport.URLParams
 12933  	ifNoneMatch_ string
 12934  	ctx_         context.Context
 12935  	header_      http.Header
 12936  }
 12937  
 12938  // List: Lists all processors which belong to this project.
 12939  //
 12940  //   - parent: The parent (project and location) which owns this collection of
 12941  //     Processors. Format: `projects/{project}/locations/{location}`.
 12942  func (r *ProjectsLocationsProcessorsService) List(parent string) *ProjectsLocationsProcessorsListCall {
 12943  	c := &ProjectsLocationsProcessorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12944  	c.parent = parent
 12945  	return c
 12946  }
 12947  
 12948  // PageSize sets the optional parameter "pageSize": The maximum number of
 12949  // processors to return. If unspecified, at most `50` processors will be
 12950  // returned. The maximum value is `100`. Values above `100` will be coerced to
 12951  // `100`.
 12952  func (c *ProjectsLocationsProcessorsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsListCall {
 12953  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12954  	return c
 12955  }
 12956  
 12957  // PageToken sets the optional parameter "pageToken": We will return the
 12958  // processors sorted by creation time. The page token will point to the next
 12959  // processor.
 12960  func (c *ProjectsLocationsProcessorsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsListCall {
 12961  	c.urlParams_.Set("pageToken", pageToken)
 12962  	return c
 12963  }
 12964  
 12965  // Fields allows partial responses to be retrieved. See
 12966  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12967  // details.
 12968  func (c *ProjectsLocationsProcessorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsListCall {
 12969  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12970  	return c
 12971  }
 12972  
 12973  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12974  // object's ETag matches the given value. This is useful for getting updates
 12975  // only after the object has changed since the last request.
 12976  func (c *ProjectsLocationsProcessorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsListCall {
 12977  	c.ifNoneMatch_ = entityTag
 12978  	return c
 12979  }
 12980  
 12981  // Context sets the context to be used in this call's Do method.
 12982  func (c *ProjectsLocationsProcessorsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsListCall {
 12983  	c.ctx_ = ctx
 12984  	return c
 12985  }
 12986  
 12987  // Header returns a http.Header that can be modified by the caller to add
 12988  // headers to the request.
 12989  func (c *ProjectsLocationsProcessorsListCall) Header() http.Header {
 12990  	if c.header_ == nil {
 12991  		c.header_ = make(http.Header)
 12992  	}
 12993  	return c.header_
 12994  }
 12995  
 12996  func (c *ProjectsLocationsProcessorsListCall) doRequest(alt string) (*http.Response, error) {
 12997  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12998  	if c.ifNoneMatch_ != "" {
 12999  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13000  	}
 13001  	var body io.Reader = nil
 13002  	c.urlParams_.Set("alt", alt)
 13003  	c.urlParams_.Set("prettyPrint", "false")
 13004  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processors")
 13005  	urls += "?" + c.urlParams_.Encode()
 13006  	req, err := http.NewRequest("GET", urls, body)
 13007  	if err != nil {
 13008  		return nil, err
 13009  	}
 13010  	req.Header = reqHeaders
 13011  	googleapi.Expand(req.URL, map[string]string{
 13012  		"parent": c.parent,
 13013  	})
 13014  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13015  }
 13016  
 13017  // Do executes the "documentai.projects.locations.processors.list" call.
 13018  // Any non-2xx status code is an error. Response headers are in either
 13019  // *GoogleCloudDocumentaiV1beta3ListProcessorsResponse.ServerResponse.Header or
 13020  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 13021  // googleapi.IsNotModified to check whether the returned error was because
 13022  // http.StatusNotModified was returned.
 13023  func (c *ProjectsLocationsProcessorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorsResponse, error) {
 13024  	gensupport.SetOptions(c.urlParams_, opts...)
 13025  	res, err := c.doRequest("json")
 13026  	if res != nil && res.StatusCode == http.StatusNotModified {
 13027  		if res.Body != nil {
 13028  			res.Body.Close()
 13029  		}
 13030  		return nil, gensupport.WrapError(&googleapi.Error{
 13031  			Code:   res.StatusCode,
 13032  			Header: res.Header,
 13033  		})
 13034  	}
 13035  	if err != nil {
 13036  		return nil, err
 13037  	}
 13038  	defer googleapi.CloseBody(res)
 13039  	if err := googleapi.CheckResponse(res); err != nil {
 13040  		return nil, gensupport.WrapError(err)
 13041  	}
 13042  	ret := &GoogleCloudDocumentaiV1beta3ListProcessorsResponse{
 13043  		ServerResponse: googleapi.ServerResponse{
 13044  			Header:         res.Header,
 13045  			HTTPStatusCode: res.StatusCode,
 13046  		},
 13047  	}
 13048  	target := &ret
 13049  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13050  		return nil, err
 13051  	}
 13052  	return ret, nil
 13053  }
 13054  
 13055  // Pages invokes f for each page of results.
 13056  // A non-nil error returned from f will halt the iteration.
 13057  // The provided context supersedes any context provided to the Context method.
 13058  func (c *ProjectsLocationsProcessorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorsResponse) error) error {
 13059  	c.ctx_ = ctx
 13060  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13061  	for {
 13062  		x, err := c.Do()
 13063  		if err != nil {
 13064  			return err
 13065  		}
 13066  		if err := f(x); err != nil {
 13067  			return err
 13068  		}
 13069  		if x.NextPageToken == "" {
 13070  			return nil
 13071  		}
 13072  		c.PageToken(x.NextPageToken)
 13073  	}
 13074  }
 13075  
 13076  type ProjectsLocationsProcessorsProcessCall struct {
 13077  	s                                          *Service
 13078  	name                                       string
 13079  	googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest
 13080  	urlParams_                                 gensupport.URLParams
 13081  	ctx_                                       context.Context
 13082  	header_                                    http.Header
 13083  }
 13084  
 13085  // Process: Processes a single document.
 13086  //
 13087  //   - name: The resource name of the Processor or ProcessorVersion to use for
 13088  //     processing. If a Processor is specified, the server will use its default
 13089  //     version. Format:
 13090  //     `projects/{project}/locations/{location}/processors/{processor}`, or
 13091  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 13092  //     rsions/{processorVersion}`.
 13093  func (r *ProjectsLocationsProcessorsService) Process(name string, googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest) *ProjectsLocationsProcessorsProcessCall {
 13094  	c := &ProjectsLocationsProcessorsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13095  	c.name = name
 13096  	c.googleclouddocumentaiv1beta3processrequest = googleclouddocumentaiv1beta3processrequest
 13097  	return c
 13098  }
 13099  
 13100  // Fields allows partial responses to be retrieved. See
 13101  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13102  // details.
 13103  func (c *ProjectsLocationsProcessorsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessCall {
 13104  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13105  	return c
 13106  }
 13107  
 13108  // Context sets the context to be used in this call's Do method.
 13109  func (c *ProjectsLocationsProcessorsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessCall {
 13110  	c.ctx_ = ctx
 13111  	return c
 13112  }
 13113  
 13114  // Header returns a http.Header that can be modified by the caller to add
 13115  // headers to the request.
 13116  func (c *ProjectsLocationsProcessorsProcessCall) Header() http.Header {
 13117  	if c.header_ == nil {
 13118  		c.header_ = make(http.Header)
 13119  	}
 13120  	return c.header_
 13121  }
 13122  
 13123  func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Response, error) {
 13124  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13125  	var body io.Reader = nil
 13126  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processrequest)
 13127  	if err != nil {
 13128  		return nil, err
 13129  	}
 13130  	c.urlParams_.Set("alt", alt)
 13131  	c.urlParams_.Set("prettyPrint", "false")
 13132  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:process")
 13133  	urls += "?" + c.urlParams_.Encode()
 13134  	req, err := http.NewRequest("POST", urls, body)
 13135  	if err != nil {
 13136  		return nil, err
 13137  	}
 13138  	req.Header = reqHeaders
 13139  	googleapi.Expand(req.URL, map[string]string{
 13140  		"name": c.name,
 13141  	})
 13142  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13143  }
 13144  
 13145  // Do executes the "documentai.projects.locations.processors.process" call.
 13146  // Any non-2xx status code is an error. Response headers are in either
 13147  // *GoogleCloudDocumentaiV1beta3ProcessResponse.ServerResponse.Header or (if a
 13148  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13149  // googleapi.IsNotModified to check whether the returned error was because
 13150  // http.StatusNotModified was returned.
 13151  func (c *ProjectsLocationsProcessorsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessResponse, error) {
 13152  	gensupport.SetOptions(c.urlParams_, opts...)
 13153  	res, err := c.doRequest("json")
 13154  	if res != nil && res.StatusCode == http.StatusNotModified {
 13155  		if res.Body != nil {
 13156  			res.Body.Close()
 13157  		}
 13158  		return nil, gensupport.WrapError(&googleapi.Error{
 13159  			Code:   res.StatusCode,
 13160  			Header: res.Header,
 13161  		})
 13162  	}
 13163  	if err != nil {
 13164  		return nil, err
 13165  	}
 13166  	defer googleapi.CloseBody(res)
 13167  	if err := googleapi.CheckResponse(res); err != nil {
 13168  		return nil, gensupport.WrapError(err)
 13169  	}
 13170  	ret := &GoogleCloudDocumentaiV1beta3ProcessResponse{
 13171  		ServerResponse: googleapi.ServerResponse{
 13172  			Header:         res.Header,
 13173  			HTTPStatusCode: res.StatusCode,
 13174  		},
 13175  	}
 13176  	target := &ret
 13177  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13178  		return nil, err
 13179  	}
 13180  	return ret, nil
 13181  }
 13182  
 13183  type ProjectsLocationsProcessorsSetDefaultProcessorVersionCall struct {
 13184  	s                                                             *Service
 13185  	processor                                                     string
 13186  	googleclouddocumentaiv1beta3setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
 13187  	urlParams_                                                    gensupport.URLParams
 13188  	ctx_                                                          context.Context
 13189  	header_                                                       http.Header
 13190  }
 13191  
 13192  // SetDefaultProcessorVersion: Set the default (active) version of a Processor
 13193  // that will be used in ProcessDocument and BatchProcessDocuments.
 13194  //
 13195  // - processor: The resource name of the Processor to change default version.
 13196  func (r *ProjectsLocationsProcessorsService) SetDefaultProcessorVersion(processor string, googleclouddocumentaiv1beta3setdefaultprocessorversionrequest *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
 13197  	c := &ProjectsLocationsProcessorsSetDefaultProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13198  	c.processor = processor
 13199  	c.googleclouddocumentaiv1beta3setdefaultprocessorversionrequest = googleclouddocumentaiv1beta3setdefaultprocessorversionrequest
 13200  	return c
 13201  }
 13202  
 13203  // Fields allows partial responses to be retrieved. See
 13204  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13205  // details.
 13206  func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
 13207  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13208  	return c
 13209  }
 13210  
 13211  // Context sets the context to be used in this call's Do method.
 13212  func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall {
 13213  	c.ctx_ = ctx
 13214  	return c
 13215  }
 13216  
 13217  // Header returns a http.Header that can be modified by the caller to add
 13218  // headers to the request.
 13219  func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Header() http.Header {
 13220  	if c.header_ == nil {
 13221  		c.header_ = make(http.Header)
 13222  	}
 13223  	return c.header_
 13224  }
 13225  
 13226  func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
 13227  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13228  	var body io.Reader = nil
 13229  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3setdefaultprocessorversionrequest)
 13230  	if err != nil {
 13231  		return nil, err
 13232  	}
 13233  	c.urlParams_.Set("alt", alt)
 13234  	c.urlParams_.Set("prettyPrint", "false")
 13235  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+processor}:setDefaultProcessorVersion")
 13236  	urls += "?" + c.urlParams_.Encode()
 13237  	req, err := http.NewRequest("POST", urls, body)
 13238  	if err != nil {
 13239  		return nil, err
 13240  	}
 13241  	req.Header = reqHeaders
 13242  	googleapi.Expand(req.URL, map[string]string{
 13243  		"processor": c.processor,
 13244  	})
 13245  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13246  }
 13247  
 13248  // Do executes the "documentai.projects.locations.processors.setDefaultProcessorVersion" call.
 13249  // Any non-2xx status code is an error. Response headers are in either
 13250  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13251  // returned at all) in error.(*googleapi.Error).Header. Use
 13252  // googleapi.IsNotModified to check whether the returned error was because
 13253  // http.StatusNotModified was returned.
 13254  func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13255  	gensupport.SetOptions(c.urlParams_, opts...)
 13256  	res, err := c.doRequest("json")
 13257  	if res != nil && res.StatusCode == http.StatusNotModified {
 13258  		if res.Body != nil {
 13259  			res.Body.Close()
 13260  		}
 13261  		return nil, gensupport.WrapError(&googleapi.Error{
 13262  			Code:   res.StatusCode,
 13263  			Header: res.Header,
 13264  		})
 13265  	}
 13266  	if err != nil {
 13267  		return nil, err
 13268  	}
 13269  	defer googleapi.CloseBody(res)
 13270  	if err := googleapi.CheckResponse(res); err != nil {
 13271  		return nil, gensupport.WrapError(err)
 13272  	}
 13273  	ret := &GoogleLongrunningOperation{
 13274  		ServerResponse: googleapi.ServerResponse{
 13275  			Header:         res.Header,
 13276  			HTTPStatusCode: res.StatusCode,
 13277  		},
 13278  	}
 13279  	target := &ret
 13280  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13281  		return nil, err
 13282  	}
 13283  	return ret, nil
 13284  }
 13285  
 13286  type ProjectsLocationsProcessorsUpdateDatasetCall struct {
 13287  	s                                   *Service
 13288  	name                                string
 13289  	googleclouddocumentaiv1beta3dataset *GoogleCloudDocumentaiV1beta3Dataset
 13290  	urlParams_                          gensupport.URLParams
 13291  	ctx_                                context.Context
 13292  	header_                             http.Header
 13293  }
 13294  
 13295  // UpdateDataset: Updates metadata associated with a dataset.
 13296  //
 13297  //   - name: Dataset resource name. Format:
 13298  //     `projects/{project}/locations/{location}/processors/{processor}/dataset`.
 13299  func (r *ProjectsLocationsProcessorsService) UpdateDataset(name string, googleclouddocumentaiv1beta3dataset *GoogleCloudDocumentaiV1beta3Dataset) *ProjectsLocationsProcessorsUpdateDatasetCall {
 13300  	c := &ProjectsLocationsProcessorsUpdateDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13301  	c.name = name
 13302  	c.googleclouddocumentaiv1beta3dataset = googleclouddocumentaiv1beta3dataset
 13303  	return c
 13304  }
 13305  
 13306  // UpdateMask sets the optional parameter "updateMask": The update mask applies
 13307  // to the resource.
 13308  func (c *ProjectsLocationsProcessorsUpdateDatasetCall) UpdateMask(updateMask string) *ProjectsLocationsProcessorsUpdateDatasetCall {
 13309  	c.urlParams_.Set("updateMask", updateMask)
 13310  	return c
 13311  }
 13312  
 13313  // Fields allows partial responses to be retrieved. See
 13314  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13315  // details.
 13316  func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsUpdateDatasetCall {
 13317  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13318  	return c
 13319  }
 13320  
 13321  // Context sets the context to be used in this call's Do method.
 13322  func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsUpdateDatasetCall {
 13323  	c.ctx_ = ctx
 13324  	return c
 13325  }
 13326  
 13327  // Header returns a http.Header that can be modified by the caller to add
 13328  // headers to the request.
 13329  func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Header() http.Header {
 13330  	if c.header_ == nil {
 13331  		c.header_ = make(http.Header)
 13332  	}
 13333  	return c.header_
 13334  }
 13335  
 13336  func (c *ProjectsLocationsProcessorsUpdateDatasetCall) doRequest(alt string) (*http.Response, error) {
 13337  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13338  	var body io.Reader = nil
 13339  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3dataset)
 13340  	if err != nil {
 13341  		return nil, err
 13342  	}
 13343  	c.urlParams_.Set("alt", alt)
 13344  	c.urlParams_.Set("prettyPrint", "false")
 13345  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 13346  	urls += "?" + c.urlParams_.Encode()
 13347  	req, err := http.NewRequest("PATCH", urls, body)
 13348  	if err != nil {
 13349  		return nil, err
 13350  	}
 13351  	req.Header = reqHeaders
 13352  	googleapi.Expand(req.URL, map[string]string{
 13353  		"name": c.name,
 13354  	})
 13355  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13356  }
 13357  
 13358  // Do executes the "documentai.projects.locations.processors.updateDataset" call.
 13359  // Any non-2xx status code is an error. Response headers are in either
 13360  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13361  // returned at all) in error.(*googleapi.Error).Header. Use
 13362  // googleapi.IsNotModified to check whether the returned error was because
 13363  // http.StatusNotModified was returned.
 13364  func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13365  	gensupport.SetOptions(c.urlParams_, opts...)
 13366  	res, err := c.doRequest("json")
 13367  	if res != nil && res.StatusCode == http.StatusNotModified {
 13368  		if res.Body != nil {
 13369  			res.Body.Close()
 13370  		}
 13371  		return nil, gensupport.WrapError(&googleapi.Error{
 13372  			Code:   res.StatusCode,
 13373  			Header: res.Header,
 13374  		})
 13375  	}
 13376  	if err != nil {
 13377  		return nil, err
 13378  	}
 13379  	defer googleapi.CloseBody(res)
 13380  	if err := googleapi.CheckResponse(res); err != nil {
 13381  		return nil, gensupport.WrapError(err)
 13382  	}
 13383  	ret := &GoogleLongrunningOperation{
 13384  		ServerResponse: googleapi.ServerResponse{
 13385  			Header:         res.Header,
 13386  			HTTPStatusCode: res.StatusCode,
 13387  		},
 13388  	}
 13389  	target := &ret
 13390  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13391  		return nil, err
 13392  	}
 13393  	return ret, nil
 13394  }
 13395  
 13396  type ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall struct {
 13397  	s                                                       *Service
 13398  	dataset                                                 string
 13399  	googleclouddocumentaiv1beta3batchdeletedocumentsrequest *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest
 13400  	urlParams_                                              gensupport.URLParams
 13401  	ctx_                                                    context.Context
 13402  	header_                                                 http.Header
 13403  }
 13404  
 13405  // BatchDeleteDocuments: Deletes a set of documents.
 13406  //
 13407  //   - dataset: The dataset resource name. Format:
 13408  //     projects/{project}/locations/{location}/processors/{processor}/dataset.
 13409  func (r *ProjectsLocationsProcessorsDatasetService) BatchDeleteDocuments(dataset string, googleclouddocumentaiv1beta3batchdeletedocumentsrequest *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsRequest) *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall {
 13410  	c := &ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13411  	c.dataset = dataset
 13412  	c.googleclouddocumentaiv1beta3batchdeletedocumentsrequest = googleclouddocumentaiv1beta3batchdeletedocumentsrequest
 13413  	return c
 13414  }
 13415  
 13416  // Fields allows partial responses to be retrieved. See
 13417  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13418  // details.
 13419  func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall {
 13420  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13421  	return c
 13422  }
 13423  
 13424  // Context sets the context to be used in this call's Do method.
 13425  func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall {
 13426  	c.ctx_ = ctx
 13427  	return c
 13428  }
 13429  
 13430  // Header returns a http.Header that can be modified by the caller to add
 13431  // headers to the request.
 13432  func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Header() http.Header {
 13433  	if c.header_ == nil {
 13434  		c.header_ = make(http.Header)
 13435  	}
 13436  	return c.header_
 13437  }
 13438  
 13439  func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) doRequest(alt string) (*http.Response, error) {
 13440  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13441  	var body io.Reader = nil
 13442  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchdeletedocumentsrequest)
 13443  	if err != nil {
 13444  		return nil, err
 13445  	}
 13446  	c.urlParams_.Set("alt", alt)
 13447  	c.urlParams_.Set("prettyPrint", "false")
 13448  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:batchDeleteDocuments")
 13449  	urls += "?" + c.urlParams_.Encode()
 13450  	req, err := http.NewRequest("POST", urls, body)
 13451  	if err != nil {
 13452  		return nil, err
 13453  	}
 13454  	req.Header = reqHeaders
 13455  	googleapi.Expand(req.URL, map[string]string{
 13456  		"dataset": c.dataset,
 13457  	})
 13458  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13459  }
 13460  
 13461  // Do executes the "documentai.projects.locations.processors.dataset.batchDeleteDocuments" call.
 13462  // Any non-2xx status code is an error. Response headers are in either
 13463  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13464  // returned at all) in error.(*googleapi.Error).Header. Use
 13465  // googleapi.IsNotModified to check whether the returned error was because
 13466  // http.StatusNotModified was returned.
 13467  func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13468  	gensupport.SetOptions(c.urlParams_, opts...)
 13469  	res, err := c.doRequest("json")
 13470  	if res != nil && res.StatusCode == http.StatusNotModified {
 13471  		if res.Body != nil {
 13472  			res.Body.Close()
 13473  		}
 13474  		return nil, gensupport.WrapError(&googleapi.Error{
 13475  			Code:   res.StatusCode,
 13476  			Header: res.Header,
 13477  		})
 13478  	}
 13479  	if err != nil {
 13480  		return nil, err
 13481  	}
 13482  	defer googleapi.CloseBody(res)
 13483  	if err := googleapi.CheckResponse(res); err != nil {
 13484  		return nil, gensupport.WrapError(err)
 13485  	}
 13486  	ret := &GoogleLongrunningOperation{
 13487  		ServerResponse: googleapi.ServerResponse{
 13488  			Header:         res.Header,
 13489  			HTTPStatusCode: res.StatusCode,
 13490  		},
 13491  	}
 13492  	target := &ret
 13493  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13494  		return nil, err
 13495  	}
 13496  	return ret, nil
 13497  }
 13498  
 13499  type ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall struct {
 13500  	s            *Service
 13501  	name         string
 13502  	urlParams_   gensupport.URLParams
 13503  	ifNoneMatch_ string
 13504  	ctx_         context.Context
 13505  	header_      http.Header
 13506  }
 13507  
 13508  // GetDatasetSchema: Gets the `DatasetSchema` of a `Dataset`.
 13509  //
 13510  //   - name: The dataset schema resource name. Format:
 13511  //     projects/{project}/locations/{location}/processors/{processor}/dataset/data
 13512  //     setSchema.
 13513  func (r *ProjectsLocationsProcessorsDatasetService) GetDatasetSchema(name string) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
 13514  	c := &ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13515  	c.name = name
 13516  	return c
 13517  }
 13518  
 13519  // VisibleFieldsOnly sets the optional parameter "visibleFieldsOnly": If set,
 13520  // only returns the visible fields of the schema.
 13521  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) VisibleFieldsOnly(visibleFieldsOnly bool) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
 13522  	c.urlParams_.Set("visibleFieldsOnly", fmt.Sprint(visibleFieldsOnly))
 13523  	return c
 13524  }
 13525  
 13526  // Fields allows partial responses to be retrieved. See
 13527  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13528  // details.
 13529  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
 13530  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13531  	return c
 13532  }
 13533  
 13534  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13535  // object's ETag matches the given value. This is useful for getting updates
 13536  // only after the object has changed since the last request.
 13537  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
 13538  	c.ifNoneMatch_ = entityTag
 13539  	return c
 13540  }
 13541  
 13542  // Context sets the context to be used in this call's Do method.
 13543  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall {
 13544  	c.ctx_ = ctx
 13545  	return c
 13546  }
 13547  
 13548  // Header returns a http.Header that can be modified by the caller to add
 13549  // headers to the request.
 13550  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Header() http.Header {
 13551  	if c.header_ == nil {
 13552  		c.header_ = make(http.Header)
 13553  	}
 13554  	return c.header_
 13555  }
 13556  
 13557  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) doRequest(alt string) (*http.Response, error) {
 13558  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13559  	if c.ifNoneMatch_ != "" {
 13560  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13561  	}
 13562  	var body io.Reader = nil
 13563  	c.urlParams_.Set("alt", alt)
 13564  	c.urlParams_.Set("prettyPrint", "false")
 13565  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 13566  	urls += "?" + c.urlParams_.Encode()
 13567  	req, err := http.NewRequest("GET", urls, body)
 13568  	if err != nil {
 13569  		return nil, err
 13570  	}
 13571  	req.Header = reqHeaders
 13572  	googleapi.Expand(req.URL, map[string]string{
 13573  		"name": c.name,
 13574  	})
 13575  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13576  }
 13577  
 13578  // Do executes the "documentai.projects.locations.processors.dataset.getDatasetSchema" call.
 13579  // Any non-2xx status code is an error. Response headers are in either
 13580  // *GoogleCloudDocumentaiV1beta3DatasetSchema.ServerResponse.Header or (if a
 13581  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13582  // googleapi.IsNotModified to check whether the returned error was because
 13583  // http.StatusNotModified was returned.
 13584  func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3DatasetSchema, error) {
 13585  	gensupport.SetOptions(c.urlParams_, opts...)
 13586  	res, err := c.doRequest("json")
 13587  	if res != nil && res.StatusCode == http.StatusNotModified {
 13588  		if res.Body != nil {
 13589  			res.Body.Close()
 13590  		}
 13591  		return nil, gensupport.WrapError(&googleapi.Error{
 13592  			Code:   res.StatusCode,
 13593  			Header: res.Header,
 13594  		})
 13595  	}
 13596  	if err != nil {
 13597  		return nil, err
 13598  	}
 13599  	defer googleapi.CloseBody(res)
 13600  	if err := googleapi.CheckResponse(res); err != nil {
 13601  		return nil, gensupport.WrapError(err)
 13602  	}
 13603  	ret := &GoogleCloudDocumentaiV1beta3DatasetSchema{
 13604  		ServerResponse: googleapi.ServerResponse{
 13605  			Header:         res.Header,
 13606  			HTTPStatusCode: res.StatusCode,
 13607  		},
 13608  	}
 13609  	target := &ret
 13610  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13611  		return nil, err
 13612  	}
 13613  	return ret, nil
 13614  }
 13615  
 13616  type ProjectsLocationsProcessorsDatasetGetDocumentCall struct {
 13617  	s            *Service
 13618  	dataset      string
 13619  	urlParams_   gensupport.URLParams
 13620  	ifNoneMatch_ string
 13621  	ctx_         context.Context
 13622  	header_      http.Header
 13623  }
 13624  
 13625  // GetDocument: Returns relevant fields present in the requested document.
 13626  //
 13627  //   - dataset: The resource name of the dataset that the document belongs to .
 13628  //     Format:
 13629  //     projects/{project}/locations/{location}/processors/{processor}/dataset.
 13630  func (r *ProjectsLocationsProcessorsDatasetService) GetDocument(dataset string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13631  	c := &ProjectsLocationsProcessorsDatasetGetDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13632  	c.dataset = dataset
 13633  	return c
 13634  }
 13635  
 13636  // DocumentIdGcsManagedDocIdCwDocId sets the optional parameter
 13637  // "documentId.gcsManagedDocId.cwDocId": Id of the document (indexed) managed
 13638  // by Content Warehouse.
 13639  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdGcsManagedDocIdCwDocId(documentIdGcsManagedDocIdCwDocId string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13640  	c.urlParams_.Set("documentId.gcsManagedDocId.cwDocId", documentIdGcsManagedDocIdCwDocId)
 13641  	return c
 13642  }
 13643  
 13644  // DocumentIdGcsManagedDocIdGcsUri sets the optional parameter
 13645  // "documentId.gcsManagedDocId.gcsUri": Required. The Cloud Storage URI where
 13646  // the actual document is stored.
 13647  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdGcsManagedDocIdGcsUri(documentIdGcsManagedDocIdGcsUri string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13648  	c.urlParams_.Set("documentId.gcsManagedDocId.gcsUri", documentIdGcsManagedDocIdGcsUri)
 13649  	return c
 13650  }
 13651  
 13652  // DocumentIdRevisionRefLatestProcessorVersion sets the optional parameter
 13653  // "documentId.revisionRef.latestProcessorVersion": Reads the revision
 13654  // generated by the processor version. The format takes the full resource name
 13655  // of processor version.
 13656  // `projects/{project}/locations/{location}/processors/{processor}/processorVers
 13657  // ions/{processorVersion}`
 13658  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdRevisionRefLatestProcessorVersion(documentIdRevisionRefLatestProcessorVersion string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13659  	c.urlParams_.Set("documentId.revisionRef.latestProcessorVersion", documentIdRevisionRefLatestProcessorVersion)
 13660  	return c
 13661  }
 13662  
 13663  // DocumentIdRevisionRefRevisionCase sets the optional parameter
 13664  // "documentId.revisionRef.revisionCase": Reads the revision by the predefined
 13665  // case.
 13666  //
 13667  // Possible values:
 13668  //
 13669  //	"REVISION_CASE_UNSPECIFIED" - Unspecified case, fall back to read the
 13670  //
 13671  // `LATEST_HUMAN_REVIEW`.
 13672  //
 13673  //	"LATEST_HUMAN_REVIEW" - The latest revision made by a human.
 13674  //	"LATEST_TIMESTAMP" - The latest revision based on timestamp.
 13675  //	"BASE_OCR_REVISION" - The first (OCR) revision.
 13676  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdRevisionRefRevisionCase(documentIdRevisionRefRevisionCase string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13677  	c.urlParams_.Set("documentId.revisionRef.revisionCase", documentIdRevisionRefRevisionCase)
 13678  	return c
 13679  }
 13680  
 13681  // DocumentIdRevisionRefRevisionId sets the optional parameter
 13682  // "documentId.revisionRef.revisionId": Reads the revision given by the id.
 13683  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdRevisionRefRevisionId(documentIdRevisionRefRevisionId string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13684  	c.urlParams_.Set("documentId.revisionRef.revisionId", documentIdRevisionRefRevisionId)
 13685  	return c
 13686  }
 13687  
 13688  // DocumentIdUnmanagedDocIdDocId sets the optional parameter
 13689  // "documentId.unmanagedDocId.docId": Required. The id of the document.
 13690  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) DocumentIdUnmanagedDocIdDocId(documentIdUnmanagedDocIdDocId string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13691  	c.urlParams_.Set("documentId.unmanagedDocId.docId", documentIdUnmanagedDocIdDocId)
 13692  	return c
 13693  }
 13694  
 13695  // PageRangeEnd sets the optional parameter "pageRange.end": Last page number
 13696  // (one-based index) to be returned.
 13697  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) PageRangeEnd(pageRangeEnd int64) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13698  	c.urlParams_.Set("pageRange.end", fmt.Sprint(pageRangeEnd))
 13699  	return c
 13700  }
 13701  
 13702  // PageRangeStart sets the optional parameter "pageRange.start": First page
 13703  // number (one-based index) to be returned.
 13704  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) PageRangeStart(pageRangeStart int64) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13705  	c.urlParams_.Set("pageRange.start", fmt.Sprint(pageRangeStart))
 13706  	return c
 13707  }
 13708  
 13709  // ReadMask sets the optional parameter "readMask": If set, only fields listed
 13710  // here will be returned. Otherwise, all fields will be returned by default.
 13711  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) ReadMask(readMask string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13712  	c.urlParams_.Set("readMask", readMask)
 13713  	return c
 13714  }
 13715  
 13716  // Fields allows partial responses to be retrieved. See
 13717  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13718  // details.
 13719  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13720  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13721  	return c
 13722  }
 13723  
 13724  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13725  // object's ETag matches the given value. This is useful for getting updates
 13726  // only after the object has changed since the last request.
 13727  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13728  	c.ifNoneMatch_ = entityTag
 13729  	return c
 13730  }
 13731  
 13732  // Context sets the context to be used in this call's Do method.
 13733  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetGetDocumentCall {
 13734  	c.ctx_ = ctx
 13735  	return c
 13736  }
 13737  
 13738  // Header returns a http.Header that can be modified by the caller to add
 13739  // headers to the request.
 13740  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Header() http.Header {
 13741  	if c.header_ == nil {
 13742  		c.header_ = make(http.Header)
 13743  	}
 13744  	return c.header_
 13745  }
 13746  
 13747  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) doRequest(alt string) (*http.Response, error) {
 13748  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13749  	if c.ifNoneMatch_ != "" {
 13750  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13751  	}
 13752  	var body io.Reader = nil
 13753  	c.urlParams_.Set("alt", alt)
 13754  	c.urlParams_.Set("prettyPrint", "false")
 13755  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:getDocument")
 13756  	urls += "?" + c.urlParams_.Encode()
 13757  	req, err := http.NewRequest("GET", urls, body)
 13758  	if err != nil {
 13759  		return nil, err
 13760  	}
 13761  	req.Header = reqHeaders
 13762  	googleapi.Expand(req.URL, map[string]string{
 13763  		"dataset": c.dataset,
 13764  	})
 13765  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13766  }
 13767  
 13768  // Do executes the "documentai.projects.locations.processors.dataset.getDocument" call.
 13769  // Any non-2xx status code is an error. Response headers are in either
 13770  // *GoogleCloudDocumentaiV1beta3GetDocumentResponse.ServerResponse.Header or
 13771  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 13772  // googleapi.IsNotModified to check whether the returned error was because
 13773  // http.StatusNotModified was returned.
 13774  func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3GetDocumentResponse, error) {
 13775  	gensupport.SetOptions(c.urlParams_, opts...)
 13776  	res, err := c.doRequest("json")
 13777  	if res != nil && res.StatusCode == http.StatusNotModified {
 13778  		if res.Body != nil {
 13779  			res.Body.Close()
 13780  		}
 13781  		return nil, gensupport.WrapError(&googleapi.Error{
 13782  			Code:   res.StatusCode,
 13783  			Header: res.Header,
 13784  		})
 13785  	}
 13786  	if err != nil {
 13787  		return nil, err
 13788  	}
 13789  	defer googleapi.CloseBody(res)
 13790  	if err := googleapi.CheckResponse(res); err != nil {
 13791  		return nil, gensupport.WrapError(err)
 13792  	}
 13793  	ret := &GoogleCloudDocumentaiV1beta3GetDocumentResponse{
 13794  		ServerResponse: googleapi.ServerResponse{
 13795  			Header:         res.Header,
 13796  			HTTPStatusCode: res.StatusCode,
 13797  		},
 13798  	}
 13799  	target := &ret
 13800  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13801  		return nil, err
 13802  	}
 13803  	return ret, nil
 13804  }
 13805  
 13806  type ProjectsLocationsProcessorsDatasetImportDocumentsCall struct {
 13807  	s                                                  *Service
 13808  	dataset                                            string
 13809  	googleclouddocumentaiv1beta3importdocumentsrequest *GoogleCloudDocumentaiV1beta3ImportDocumentsRequest
 13810  	urlParams_                                         gensupport.URLParams
 13811  	ctx_                                               context.Context
 13812  	header_                                            http.Header
 13813  }
 13814  
 13815  // ImportDocuments: Import documents into a dataset.
 13816  //
 13817  //   - dataset: The dataset resource name. Format:
 13818  //     projects/{project}/locations/{location}/processors/{processor}/dataset.
 13819  func (r *ProjectsLocationsProcessorsDatasetService) ImportDocuments(dataset string, googleclouddocumentaiv1beta3importdocumentsrequest *GoogleCloudDocumentaiV1beta3ImportDocumentsRequest) *ProjectsLocationsProcessorsDatasetImportDocumentsCall {
 13820  	c := &ProjectsLocationsProcessorsDatasetImportDocumentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13821  	c.dataset = dataset
 13822  	c.googleclouddocumentaiv1beta3importdocumentsrequest = googleclouddocumentaiv1beta3importdocumentsrequest
 13823  	return c
 13824  }
 13825  
 13826  // Fields allows partial responses to be retrieved. See
 13827  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13828  // details.
 13829  func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetImportDocumentsCall {
 13830  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13831  	return c
 13832  }
 13833  
 13834  // Context sets the context to be used in this call's Do method.
 13835  func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetImportDocumentsCall {
 13836  	c.ctx_ = ctx
 13837  	return c
 13838  }
 13839  
 13840  // Header returns a http.Header that can be modified by the caller to add
 13841  // headers to the request.
 13842  func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Header() http.Header {
 13843  	if c.header_ == nil {
 13844  		c.header_ = make(http.Header)
 13845  	}
 13846  	return c.header_
 13847  }
 13848  
 13849  func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) doRequest(alt string) (*http.Response, error) {
 13850  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13851  	var body io.Reader = nil
 13852  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3importdocumentsrequest)
 13853  	if err != nil {
 13854  		return nil, err
 13855  	}
 13856  	c.urlParams_.Set("alt", alt)
 13857  	c.urlParams_.Set("prettyPrint", "false")
 13858  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:importDocuments")
 13859  	urls += "?" + c.urlParams_.Encode()
 13860  	req, err := http.NewRequest("POST", urls, body)
 13861  	if err != nil {
 13862  		return nil, err
 13863  	}
 13864  	req.Header = reqHeaders
 13865  	googleapi.Expand(req.URL, map[string]string{
 13866  		"dataset": c.dataset,
 13867  	})
 13868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13869  }
 13870  
 13871  // Do executes the "documentai.projects.locations.processors.dataset.importDocuments" call.
 13872  // Any non-2xx status code is an error. Response headers are in either
 13873  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13874  // returned at all) in error.(*googleapi.Error).Header. Use
 13875  // googleapi.IsNotModified to check whether the returned error was because
 13876  // http.StatusNotModified was returned.
 13877  func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13878  	gensupport.SetOptions(c.urlParams_, opts...)
 13879  	res, err := c.doRequest("json")
 13880  	if res != nil && res.StatusCode == http.StatusNotModified {
 13881  		if res.Body != nil {
 13882  			res.Body.Close()
 13883  		}
 13884  		return nil, gensupport.WrapError(&googleapi.Error{
 13885  			Code:   res.StatusCode,
 13886  			Header: res.Header,
 13887  		})
 13888  	}
 13889  	if err != nil {
 13890  		return nil, err
 13891  	}
 13892  	defer googleapi.CloseBody(res)
 13893  	if err := googleapi.CheckResponse(res); err != nil {
 13894  		return nil, gensupport.WrapError(err)
 13895  	}
 13896  	ret := &GoogleLongrunningOperation{
 13897  		ServerResponse: googleapi.ServerResponse{
 13898  			Header:         res.Header,
 13899  			HTTPStatusCode: res.StatusCode,
 13900  		},
 13901  	}
 13902  	target := &ret
 13903  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13904  		return nil, err
 13905  	}
 13906  	return ret, nil
 13907  }
 13908  
 13909  type ProjectsLocationsProcessorsDatasetListDocumentsCall struct {
 13910  	s                                                *Service
 13911  	dataset                                          string
 13912  	googleclouddocumentaiv1beta3listdocumentsrequest *GoogleCloudDocumentaiV1beta3ListDocumentsRequest
 13913  	urlParams_                                       gensupport.URLParams
 13914  	ctx_                                             context.Context
 13915  	header_                                          http.Header
 13916  }
 13917  
 13918  // ListDocuments: Returns a list of documents present in the dataset.
 13919  //
 13920  //   - dataset: The resource name of the dataset to be listed. Format:
 13921  //     projects/{project}/locations/{location}/processors/{processor}/dataset.
 13922  func (r *ProjectsLocationsProcessorsDatasetService) ListDocuments(dataset string, googleclouddocumentaiv1beta3listdocumentsrequest *GoogleCloudDocumentaiV1beta3ListDocumentsRequest) *ProjectsLocationsProcessorsDatasetListDocumentsCall {
 13923  	c := &ProjectsLocationsProcessorsDatasetListDocumentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13924  	c.dataset = dataset
 13925  	c.googleclouddocumentaiv1beta3listdocumentsrequest = googleclouddocumentaiv1beta3listdocumentsrequest
 13926  	return c
 13927  }
 13928  
 13929  // Fields allows partial responses to be retrieved. See
 13930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13931  // details.
 13932  func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetListDocumentsCall {
 13933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13934  	return c
 13935  }
 13936  
 13937  // Context sets the context to be used in this call's Do method.
 13938  func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetListDocumentsCall {
 13939  	c.ctx_ = ctx
 13940  	return c
 13941  }
 13942  
 13943  // Header returns a http.Header that can be modified by the caller to add
 13944  // headers to the request.
 13945  func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Header() http.Header {
 13946  	if c.header_ == nil {
 13947  		c.header_ = make(http.Header)
 13948  	}
 13949  	return c.header_
 13950  }
 13951  
 13952  func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) doRequest(alt string) (*http.Response, error) {
 13953  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13954  	var body io.Reader = nil
 13955  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3listdocumentsrequest)
 13956  	if err != nil {
 13957  		return nil, err
 13958  	}
 13959  	c.urlParams_.Set("alt", alt)
 13960  	c.urlParams_.Set("prettyPrint", "false")
 13961  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+dataset}:listDocuments")
 13962  	urls += "?" + c.urlParams_.Encode()
 13963  	req, err := http.NewRequest("POST", urls, body)
 13964  	if err != nil {
 13965  		return nil, err
 13966  	}
 13967  	req.Header = reqHeaders
 13968  	googleapi.Expand(req.URL, map[string]string{
 13969  		"dataset": c.dataset,
 13970  	})
 13971  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13972  }
 13973  
 13974  // Do executes the "documentai.projects.locations.processors.dataset.listDocuments" call.
 13975  // Any non-2xx status code is an error. Response headers are in either
 13976  // *GoogleCloudDocumentaiV1beta3ListDocumentsResponse.ServerResponse.Header or
 13977  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 13978  // googleapi.IsNotModified to check whether the returned error was because
 13979  // http.StatusNotModified was returned.
 13980  func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListDocumentsResponse, error) {
 13981  	gensupport.SetOptions(c.urlParams_, opts...)
 13982  	res, err := c.doRequest("json")
 13983  	if res != nil && res.StatusCode == http.StatusNotModified {
 13984  		if res.Body != nil {
 13985  			res.Body.Close()
 13986  		}
 13987  		return nil, gensupport.WrapError(&googleapi.Error{
 13988  			Code:   res.StatusCode,
 13989  			Header: res.Header,
 13990  		})
 13991  	}
 13992  	if err != nil {
 13993  		return nil, err
 13994  	}
 13995  	defer googleapi.CloseBody(res)
 13996  	if err := googleapi.CheckResponse(res); err != nil {
 13997  		return nil, gensupport.WrapError(err)
 13998  	}
 13999  	ret := &GoogleCloudDocumentaiV1beta3ListDocumentsResponse{
 14000  		ServerResponse: googleapi.ServerResponse{
 14001  			Header:         res.Header,
 14002  			HTTPStatusCode: res.StatusCode,
 14003  		},
 14004  	}
 14005  	target := &ret
 14006  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14007  		return nil, err
 14008  	}
 14009  	return ret, nil
 14010  }
 14011  
 14012  // Pages invokes f for each page of results.
 14013  // A non-nil error returned from f will halt the iteration.
 14014  // The provided context supersedes any context provided to the Context method.
 14015  func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListDocumentsResponse) error) error {
 14016  	c.ctx_ = ctx
 14017  	defer func(pt string) { c.googleclouddocumentaiv1beta3listdocumentsrequest.PageToken = pt }(c.googleclouddocumentaiv1beta3listdocumentsrequest.PageToken)
 14018  	for {
 14019  		x, err := c.Do()
 14020  		if err != nil {
 14021  			return err
 14022  		}
 14023  		if err := f(x); err != nil {
 14024  			return err
 14025  		}
 14026  		if x.NextPageToken == "" {
 14027  			return nil
 14028  		}
 14029  		c.googleclouddocumentaiv1beta3listdocumentsrequest.PageToken = x.NextPageToken
 14030  	}
 14031  }
 14032  
 14033  type ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall struct {
 14034  	s                                         *Service
 14035  	name                                      string
 14036  	googleclouddocumentaiv1beta3datasetschema *GoogleCloudDocumentaiV1beta3DatasetSchema
 14037  	urlParams_                                gensupport.URLParams
 14038  	ctx_                                      context.Context
 14039  	header_                                   http.Header
 14040  }
 14041  
 14042  // UpdateDatasetSchema: Updates a `DatasetSchema`.
 14043  //
 14044  //   - name: Dataset schema resource name. Format:
 14045  //     `projects/{project}/locations/{location}/processors/{processor}/dataset/dat
 14046  //     asetSchema`.
 14047  func (r *ProjectsLocationsProcessorsDatasetService) UpdateDatasetSchema(name string, googleclouddocumentaiv1beta3datasetschema *GoogleCloudDocumentaiV1beta3DatasetSchema) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
 14048  	c := &ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14049  	c.name = name
 14050  	c.googleclouddocumentaiv1beta3datasetschema = googleclouddocumentaiv1beta3datasetschema
 14051  	return c
 14052  }
 14053  
 14054  // UpdateMask sets the optional parameter "updateMask": The update mask applies
 14055  // to the resource.
 14056  func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) UpdateMask(updateMask string) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
 14057  	c.urlParams_.Set("updateMask", updateMask)
 14058  	return c
 14059  }
 14060  
 14061  // Fields allows partial responses to be retrieved. See
 14062  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14063  // details.
 14064  func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
 14065  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14066  	return c
 14067  }
 14068  
 14069  // Context sets the context to be used in this call's Do method.
 14070  func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall {
 14071  	c.ctx_ = ctx
 14072  	return c
 14073  }
 14074  
 14075  // Header returns a http.Header that can be modified by the caller to add
 14076  // headers to the request.
 14077  func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Header() http.Header {
 14078  	if c.header_ == nil {
 14079  		c.header_ = make(http.Header)
 14080  	}
 14081  	return c.header_
 14082  }
 14083  
 14084  func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) doRequest(alt string) (*http.Response, error) {
 14085  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14086  	var body io.Reader = nil
 14087  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3datasetschema)
 14088  	if err != nil {
 14089  		return nil, err
 14090  	}
 14091  	c.urlParams_.Set("alt", alt)
 14092  	c.urlParams_.Set("prettyPrint", "false")
 14093  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 14094  	urls += "?" + c.urlParams_.Encode()
 14095  	req, err := http.NewRequest("PATCH", urls, body)
 14096  	if err != nil {
 14097  		return nil, err
 14098  	}
 14099  	req.Header = reqHeaders
 14100  	googleapi.Expand(req.URL, map[string]string{
 14101  		"name": c.name,
 14102  	})
 14103  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14104  }
 14105  
 14106  // Do executes the "documentai.projects.locations.processors.dataset.updateDatasetSchema" call.
 14107  // Any non-2xx status code is an error. Response headers are in either
 14108  // *GoogleCloudDocumentaiV1beta3DatasetSchema.ServerResponse.Header or (if a
 14109  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14110  // googleapi.IsNotModified to check whether the returned error was because
 14111  // http.StatusNotModified was returned.
 14112  func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3DatasetSchema, error) {
 14113  	gensupport.SetOptions(c.urlParams_, opts...)
 14114  	res, err := c.doRequest("json")
 14115  	if res != nil && res.StatusCode == http.StatusNotModified {
 14116  		if res.Body != nil {
 14117  			res.Body.Close()
 14118  		}
 14119  		return nil, gensupport.WrapError(&googleapi.Error{
 14120  			Code:   res.StatusCode,
 14121  			Header: res.Header,
 14122  		})
 14123  	}
 14124  	if err != nil {
 14125  		return nil, err
 14126  	}
 14127  	defer googleapi.CloseBody(res)
 14128  	if err := googleapi.CheckResponse(res); err != nil {
 14129  		return nil, gensupport.WrapError(err)
 14130  	}
 14131  	ret := &GoogleCloudDocumentaiV1beta3DatasetSchema{
 14132  		ServerResponse: googleapi.ServerResponse{
 14133  			Header:         res.Header,
 14134  			HTTPStatusCode: res.StatusCode,
 14135  		},
 14136  	}
 14137  	target := &ret
 14138  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14139  		return nil, err
 14140  	}
 14141  	return ret, nil
 14142  }
 14143  
 14144  type ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall struct {
 14145  	s                                                 *Service
 14146  	humanReviewConfig                                 string
 14147  	googleclouddocumentaiv1beta3reviewdocumentrequest *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
 14148  	urlParams_                                        gensupport.URLParams
 14149  	ctx_                                              context.Context
 14150  	header_                                           http.Header
 14151  }
 14152  
 14153  // ReviewDocument: Send a document for Human Review. The input document should
 14154  // be processed by the specified processor.
 14155  //
 14156  //   - humanReviewConfig: The resource name of the HumanReviewConfig that the
 14157  //     document will be reviewed with.
 14158  func (r *ProjectsLocationsProcessorsHumanReviewConfigService) ReviewDocument(humanReviewConfig string, googleclouddocumentaiv1beta3reviewdocumentrequest *GoogleCloudDocumentaiV1beta3ReviewDocumentRequest) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
 14159  	c := &ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14160  	c.humanReviewConfig = humanReviewConfig
 14161  	c.googleclouddocumentaiv1beta3reviewdocumentrequest = googleclouddocumentaiv1beta3reviewdocumentrequest
 14162  	return c
 14163  }
 14164  
 14165  // Fields allows partial responses to be retrieved. See
 14166  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14167  // details.
 14168  func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
 14169  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14170  	return c
 14171  }
 14172  
 14173  // Context sets the context to be used in this call's Do method.
 14174  func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Context(ctx context.Context) *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall {
 14175  	c.ctx_ = ctx
 14176  	return c
 14177  }
 14178  
 14179  // Header returns a http.Header that can be modified by the caller to add
 14180  // headers to the request.
 14181  func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Header() http.Header {
 14182  	if c.header_ == nil {
 14183  		c.header_ = make(http.Header)
 14184  	}
 14185  	return c.header_
 14186  }
 14187  
 14188  func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doRequest(alt string) (*http.Response, error) {
 14189  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14190  	var body io.Reader = nil
 14191  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3reviewdocumentrequest)
 14192  	if err != nil {
 14193  		return nil, err
 14194  	}
 14195  	c.urlParams_.Set("alt", alt)
 14196  	c.urlParams_.Set("prettyPrint", "false")
 14197  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+humanReviewConfig}:reviewDocument")
 14198  	urls += "?" + c.urlParams_.Encode()
 14199  	req, err := http.NewRequest("POST", urls, body)
 14200  	if err != nil {
 14201  		return nil, err
 14202  	}
 14203  	req.Header = reqHeaders
 14204  	googleapi.Expand(req.URL, map[string]string{
 14205  		"humanReviewConfig": c.humanReviewConfig,
 14206  	})
 14207  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14208  }
 14209  
 14210  // Do executes the "documentai.projects.locations.processors.humanReviewConfig.reviewDocument" call.
 14211  // Any non-2xx status code is an error. Response headers are in either
 14212  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14213  // returned at all) in error.(*googleapi.Error).Header. Use
 14214  // googleapi.IsNotModified to check whether the returned error was because
 14215  // http.StatusNotModified was returned.
 14216  func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14217  	gensupport.SetOptions(c.urlParams_, opts...)
 14218  	res, err := c.doRequest("json")
 14219  	if res != nil && res.StatusCode == http.StatusNotModified {
 14220  		if res.Body != nil {
 14221  			res.Body.Close()
 14222  		}
 14223  		return nil, gensupport.WrapError(&googleapi.Error{
 14224  			Code:   res.StatusCode,
 14225  			Header: res.Header,
 14226  		})
 14227  	}
 14228  	if err != nil {
 14229  		return nil, err
 14230  	}
 14231  	defer googleapi.CloseBody(res)
 14232  	if err := googleapi.CheckResponse(res); err != nil {
 14233  		return nil, gensupport.WrapError(err)
 14234  	}
 14235  	ret := &GoogleLongrunningOperation{
 14236  		ServerResponse: googleapi.ServerResponse{
 14237  			Header:         res.Header,
 14238  			HTTPStatusCode: res.StatusCode,
 14239  		},
 14240  	}
 14241  	target := &ret
 14242  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14243  		return nil, err
 14244  	}
 14245  	return ret, nil
 14246  }
 14247  
 14248  type ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall struct {
 14249  	s                                               *Service
 14250  	name                                            string
 14251  	googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest
 14252  	urlParams_                                      gensupport.URLParams
 14253  	ctx_                                            context.Context
 14254  	header_                                         http.Header
 14255  }
 14256  
 14257  // BatchProcess: LRO endpoint to batch process many documents. The output is
 14258  // written to Cloud Storage as JSON in the [Document] format.
 14259  //
 14260  //   - name: The resource name of Processor or ProcessorVersion. Format:
 14261  //     `projects/{project}/locations/{location}/processors/{processor}`, or
 14262  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 14263  //     rsions/{processorVersion}`.
 14264  func (r *ProjectsLocationsProcessorsProcessorVersionsService) BatchProcess(name string, googleclouddocumentaiv1beta3batchprocessrequest *GoogleCloudDocumentaiV1beta3BatchProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
 14265  	c := &ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14266  	c.name = name
 14267  	c.googleclouddocumentaiv1beta3batchprocessrequest = googleclouddocumentaiv1beta3batchprocessrequest
 14268  	return c
 14269  }
 14270  
 14271  // Fields allows partial responses to be retrieved. See
 14272  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14273  // details.
 14274  func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
 14275  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14276  	return c
 14277  }
 14278  
 14279  // Context sets the context to be used in this call's Do method.
 14280  func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall {
 14281  	c.ctx_ = ctx
 14282  	return c
 14283  }
 14284  
 14285  // Header returns a http.Header that can be modified by the caller to add
 14286  // headers to the request.
 14287  func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Header() http.Header {
 14288  	if c.header_ == nil {
 14289  		c.header_ = make(http.Header)
 14290  	}
 14291  	return c.header_
 14292  }
 14293  
 14294  func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) doRequest(alt string) (*http.Response, error) {
 14295  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14296  	var body io.Reader = nil
 14297  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3batchprocessrequest)
 14298  	if err != nil {
 14299  		return nil, err
 14300  	}
 14301  	c.urlParams_.Set("alt", alt)
 14302  	c.urlParams_.Set("prettyPrint", "false")
 14303  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:batchProcess")
 14304  	urls += "?" + c.urlParams_.Encode()
 14305  	req, err := http.NewRequest("POST", urls, body)
 14306  	if err != nil {
 14307  		return nil, err
 14308  	}
 14309  	req.Header = reqHeaders
 14310  	googleapi.Expand(req.URL, map[string]string{
 14311  		"name": c.name,
 14312  	})
 14313  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14314  }
 14315  
 14316  // Do executes the "documentai.projects.locations.processors.processorVersions.batchProcess" call.
 14317  // Any non-2xx status code is an error. Response headers are in either
 14318  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14319  // returned at all) in error.(*googleapi.Error).Header. Use
 14320  // googleapi.IsNotModified to check whether the returned error was because
 14321  // http.StatusNotModified was returned.
 14322  func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14323  	gensupport.SetOptions(c.urlParams_, opts...)
 14324  	res, err := c.doRequest("json")
 14325  	if res != nil && res.StatusCode == http.StatusNotModified {
 14326  		if res.Body != nil {
 14327  			res.Body.Close()
 14328  		}
 14329  		return nil, gensupport.WrapError(&googleapi.Error{
 14330  			Code:   res.StatusCode,
 14331  			Header: res.Header,
 14332  		})
 14333  	}
 14334  	if err != nil {
 14335  		return nil, err
 14336  	}
 14337  	defer googleapi.CloseBody(res)
 14338  	if err := googleapi.CheckResponse(res); err != nil {
 14339  		return nil, gensupport.WrapError(err)
 14340  	}
 14341  	ret := &GoogleLongrunningOperation{
 14342  		ServerResponse: googleapi.ServerResponse{
 14343  			Header:         res.Header,
 14344  			HTTPStatusCode: res.StatusCode,
 14345  		},
 14346  	}
 14347  	target := &ret
 14348  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14349  		return nil, err
 14350  	}
 14351  	return ret, nil
 14352  }
 14353  
 14354  type ProjectsLocationsProcessorsProcessorVersionsDeleteCall struct {
 14355  	s          *Service
 14356  	name       string
 14357  	urlParams_ gensupport.URLParams
 14358  	ctx_       context.Context
 14359  	header_    http.Header
 14360  }
 14361  
 14362  // Delete: Deletes the processor version, all artifacts under the processor
 14363  // version will be deleted.
 14364  //
 14365  // - name: The processor version resource name to be deleted.
 14366  func (r *ProjectsLocationsProcessorsProcessorVersionsService) Delete(name string) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
 14367  	c := &ProjectsLocationsProcessorsProcessorVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14368  	c.name = name
 14369  	return c
 14370  }
 14371  
 14372  // Fields allows partial responses to be retrieved. See
 14373  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14374  // details.
 14375  func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
 14376  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14377  	return c
 14378  }
 14379  
 14380  // Context sets the context to be used in this call's Do method.
 14381  func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeleteCall {
 14382  	c.ctx_ = ctx
 14383  	return c
 14384  }
 14385  
 14386  // Header returns a http.Header that can be modified by the caller to add
 14387  // headers to the request.
 14388  func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Header() http.Header {
 14389  	if c.header_ == nil {
 14390  		c.header_ = make(http.Header)
 14391  	}
 14392  	return c.header_
 14393  }
 14394  
 14395  func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 14396  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14397  	var body io.Reader = nil
 14398  	c.urlParams_.Set("alt", alt)
 14399  	c.urlParams_.Set("prettyPrint", "false")
 14400  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 14401  	urls += "?" + c.urlParams_.Encode()
 14402  	req, err := http.NewRequest("DELETE", urls, body)
 14403  	if err != nil {
 14404  		return nil, err
 14405  	}
 14406  	req.Header = reqHeaders
 14407  	googleapi.Expand(req.URL, map[string]string{
 14408  		"name": c.name,
 14409  	})
 14410  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14411  }
 14412  
 14413  // Do executes the "documentai.projects.locations.processors.processorVersions.delete" call.
 14414  // Any non-2xx status code is an error. Response headers are in either
 14415  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14416  // returned at all) in error.(*googleapi.Error).Header. Use
 14417  // googleapi.IsNotModified to check whether the returned error was because
 14418  // http.StatusNotModified was returned.
 14419  func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14420  	gensupport.SetOptions(c.urlParams_, opts...)
 14421  	res, err := c.doRequest("json")
 14422  	if res != nil && res.StatusCode == http.StatusNotModified {
 14423  		if res.Body != nil {
 14424  			res.Body.Close()
 14425  		}
 14426  		return nil, gensupport.WrapError(&googleapi.Error{
 14427  			Code:   res.StatusCode,
 14428  			Header: res.Header,
 14429  		})
 14430  	}
 14431  	if err != nil {
 14432  		return nil, err
 14433  	}
 14434  	defer googleapi.CloseBody(res)
 14435  	if err := googleapi.CheckResponse(res); err != nil {
 14436  		return nil, gensupport.WrapError(err)
 14437  	}
 14438  	ret := &GoogleLongrunningOperation{
 14439  		ServerResponse: googleapi.ServerResponse{
 14440  			Header:         res.Header,
 14441  			HTTPStatusCode: res.StatusCode,
 14442  		},
 14443  	}
 14444  	target := &ret
 14445  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14446  		return nil, err
 14447  	}
 14448  	return ret, nil
 14449  }
 14450  
 14451  type ProjectsLocationsProcessorsProcessorVersionsDeployCall struct {
 14452  	s                                                         *Service
 14453  	name                                                      string
 14454  	googleclouddocumentaiv1beta3deployprocessorversionrequest *GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest
 14455  	urlParams_                                                gensupport.URLParams
 14456  	ctx_                                                      context.Context
 14457  	header_                                                   http.Header
 14458  }
 14459  
 14460  // Deploy: Deploys the processor version.
 14461  //
 14462  // - name: The processor version resource name to be deployed.
 14463  func (r *ProjectsLocationsProcessorsProcessorVersionsService) Deploy(name string, googleclouddocumentaiv1beta3deployprocessorversionrequest *GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
 14464  	c := &ProjectsLocationsProcessorsProcessorVersionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14465  	c.name = name
 14466  	c.googleclouddocumentaiv1beta3deployprocessorversionrequest = googleclouddocumentaiv1beta3deployprocessorversionrequest
 14467  	return c
 14468  }
 14469  
 14470  // Fields allows partial responses to be retrieved. See
 14471  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14472  // details.
 14473  func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
 14474  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14475  	return c
 14476  }
 14477  
 14478  // Context sets the context to be used in this call's Do method.
 14479  func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsDeployCall {
 14480  	c.ctx_ = ctx
 14481  	return c
 14482  }
 14483  
 14484  // Header returns a http.Header that can be modified by the caller to add
 14485  // headers to the request.
 14486  func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Header() http.Header {
 14487  	if c.header_ == nil {
 14488  		c.header_ = make(http.Header)
 14489  	}
 14490  	return c.header_
 14491  }
 14492  
 14493  func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) doRequest(alt string) (*http.Response, error) {
 14494  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14495  	var body io.Reader = nil
 14496  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3deployprocessorversionrequest)
 14497  	if err != nil {
 14498  		return nil, err
 14499  	}
 14500  	c.urlParams_.Set("alt", alt)
 14501  	c.urlParams_.Set("prettyPrint", "false")
 14502  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:deploy")
 14503  	urls += "?" + c.urlParams_.Encode()
 14504  	req, err := http.NewRequest("POST", urls, body)
 14505  	if err != nil {
 14506  		return nil, err
 14507  	}
 14508  	req.Header = reqHeaders
 14509  	googleapi.Expand(req.URL, map[string]string{
 14510  		"name": c.name,
 14511  	})
 14512  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14513  }
 14514  
 14515  // Do executes the "documentai.projects.locations.processors.processorVersions.deploy" call.
 14516  // Any non-2xx status code is an error. Response headers are in either
 14517  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14518  // returned at all) in error.(*googleapi.Error).Header. Use
 14519  // googleapi.IsNotModified to check whether the returned error was because
 14520  // http.StatusNotModified was returned.
 14521  func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14522  	gensupport.SetOptions(c.urlParams_, opts...)
 14523  	res, err := c.doRequest("json")
 14524  	if res != nil && res.StatusCode == http.StatusNotModified {
 14525  		if res.Body != nil {
 14526  			res.Body.Close()
 14527  		}
 14528  		return nil, gensupport.WrapError(&googleapi.Error{
 14529  			Code:   res.StatusCode,
 14530  			Header: res.Header,
 14531  		})
 14532  	}
 14533  	if err != nil {
 14534  		return nil, err
 14535  	}
 14536  	defer googleapi.CloseBody(res)
 14537  	if err := googleapi.CheckResponse(res); err != nil {
 14538  		return nil, gensupport.WrapError(err)
 14539  	}
 14540  	ret := &GoogleLongrunningOperation{
 14541  		ServerResponse: googleapi.ServerResponse{
 14542  			Header:         res.Header,
 14543  			HTTPStatusCode: res.StatusCode,
 14544  		},
 14545  	}
 14546  	target := &ret
 14547  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14548  		return nil, err
 14549  	}
 14550  	return ret, nil
 14551  }
 14552  
 14553  type ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall struct {
 14554  	s                                                           *Service
 14555  	processorVersion                                            string
 14556  	googleclouddocumentaiv1beta3evaluateprocessorversionrequest *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest
 14557  	urlParams_                                                  gensupport.URLParams
 14558  	ctx_                                                        context.Context
 14559  	header_                                                     http.Header
 14560  }
 14561  
 14562  // EvaluateProcessorVersion: Evaluates a ProcessorVersion against annotated
 14563  // documents, producing an Evaluation.
 14564  //
 14565  //   - processorVersion: The resource name of the ProcessorVersion to evaluate.
 14566  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 14567  //     rsions/{processorVersion}`.
 14568  func (r *ProjectsLocationsProcessorsProcessorVersionsService) EvaluateProcessorVersion(processorVersion string, googleclouddocumentaiv1beta3evaluateprocessorversionrequest *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall {
 14569  	c := &ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14570  	c.processorVersion = processorVersion
 14571  	c.googleclouddocumentaiv1beta3evaluateprocessorversionrequest = googleclouddocumentaiv1beta3evaluateprocessorversionrequest
 14572  	return c
 14573  }
 14574  
 14575  // Fields allows partial responses to be retrieved. See
 14576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14577  // details.
 14578  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall {
 14579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14580  	return c
 14581  }
 14582  
 14583  // Context sets the context to be used in this call's Do method.
 14584  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall {
 14585  	c.ctx_ = ctx
 14586  	return c
 14587  }
 14588  
 14589  // Header returns a http.Header that can be modified by the caller to add
 14590  // headers to the request.
 14591  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Header() http.Header {
 14592  	if c.header_ == nil {
 14593  		c.header_ = make(http.Header)
 14594  	}
 14595  	return c.header_
 14596  }
 14597  
 14598  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
 14599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14600  	var body io.Reader = nil
 14601  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3evaluateprocessorversionrequest)
 14602  	if err != nil {
 14603  		return nil, err
 14604  	}
 14605  	c.urlParams_.Set("alt", alt)
 14606  	c.urlParams_.Set("prettyPrint", "false")
 14607  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+processorVersion}:evaluateProcessorVersion")
 14608  	urls += "?" + c.urlParams_.Encode()
 14609  	req, err := http.NewRequest("POST", urls, body)
 14610  	if err != nil {
 14611  		return nil, err
 14612  	}
 14613  	req.Header = reqHeaders
 14614  	googleapi.Expand(req.URL, map[string]string{
 14615  		"processorVersion": c.processorVersion,
 14616  	})
 14617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14618  }
 14619  
 14620  // Do executes the "documentai.projects.locations.processors.processorVersions.evaluateProcessorVersion" call.
 14621  // Any non-2xx status code is an error. Response headers are in either
 14622  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14623  // returned at all) in error.(*googleapi.Error).Header. Use
 14624  // googleapi.IsNotModified to check whether the returned error was because
 14625  // http.StatusNotModified was returned.
 14626  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14627  	gensupport.SetOptions(c.urlParams_, opts...)
 14628  	res, err := c.doRequest("json")
 14629  	if res != nil && res.StatusCode == http.StatusNotModified {
 14630  		if res.Body != nil {
 14631  			res.Body.Close()
 14632  		}
 14633  		return nil, gensupport.WrapError(&googleapi.Error{
 14634  			Code:   res.StatusCode,
 14635  			Header: res.Header,
 14636  		})
 14637  	}
 14638  	if err != nil {
 14639  		return nil, err
 14640  	}
 14641  	defer googleapi.CloseBody(res)
 14642  	if err := googleapi.CheckResponse(res); err != nil {
 14643  		return nil, gensupport.WrapError(err)
 14644  	}
 14645  	ret := &GoogleLongrunningOperation{
 14646  		ServerResponse: googleapi.ServerResponse{
 14647  			Header:         res.Header,
 14648  			HTTPStatusCode: res.StatusCode,
 14649  		},
 14650  	}
 14651  	target := &ret
 14652  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14653  		return nil, err
 14654  	}
 14655  	return ret, nil
 14656  }
 14657  
 14658  type ProjectsLocationsProcessorsProcessorVersionsGetCall struct {
 14659  	s            *Service
 14660  	name         string
 14661  	urlParams_   gensupport.URLParams
 14662  	ifNoneMatch_ string
 14663  	ctx_         context.Context
 14664  	header_      http.Header
 14665  }
 14666  
 14667  // Get: Gets a processor version detail.
 14668  //
 14669  // - name: The processor resource name.
 14670  func (r *ProjectsLocationsProcessorsProcessorVersionsService) Get(name string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
 14671  	c := &ProjectsLocationsProcessorsProcessorVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14672  	c.name = name
 14673  	return c
 14674  }
 14675  
 14676  // Fields allows partial responses to be retrieved. See
 14677  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14678  // details.
 14679  func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
 14680  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14681  	return c
 14682  }
 14683  
 14684  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14685  // object's ETag matches the given value. This is useful for getting updates
 14686  // only after the object has changed since the last request.
 14687  func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
 14688  	c.ifNoneMatch_ = entityTag
 14689  	return c
 14690  }
 14691  
 14692  // Context sets the context to be used in this call's Do method.
 14693  func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsGetCall {
 14694  	c.ctx_ = ctx
 14695  	return c
 14696  }
 14697  
 14698  // Header returns a http.Header that can be modified by the caller to add
 14699  // headers to the request.
 14700  func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Header() http.Header {
 14701  	if c.header_ == nil {
 14702  		c.header_ = make(http.Header)
 14703  	}
 14704  	return c.header_
 14705  }
 14706  
 14707  func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 14708  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14709  	if c.ifNoneMatch_ != "" {
 14710  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14711  	}
 14712  	var body io.Reader = nil
 14713  	c.urlParams_.Set("alt", alt)
 14714  	c.urlParams_.Set("prettyPrint", "false")
 14715  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 14716  	urls += "?" + c.urlParams_.Encode()
 14717  	req, err := http.NewRequest("GET", urls, body)
 14718  	if err != nil {
 14719  		return nil, err
 14720  	}
 14721  	req.Header = reqHeaders
 14722  	googleapi.Expand(req.URL, map[string]string{
 14723  		"name": c.name,
 14724  	})
 14725  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14726  }
 14727  
 14728  // Do executes the "documentai.projects.locations.processors.processorVersions.get" call.
 14729  // Any non-2xx status code is an error. Response headers are in either
 14730  // *GoogleCloudDocumentaiV1beta3ProcessorVersion.ServerResponse.Header or (if a
 14731  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14732  // googleapi.IsNotModified to check whether the returned error was because
 14733  // http.StatusNotModified was returned.
 14734  func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessorVersion, error) {
 14735  	gensupport.SetOptions(c.urlParams_, opts...)
 14736  	res, err := c.doRequest("json")
 14737  	if res != nil && res.StatusCode == http.StatusNotModified {
 14738  		if res.Body != nil {
 14739  			res.Body.Close()
 14740  		}
 14741  		return nil, gensupport.WrapError(&googleapi.Error{
 14742  			Code:   res.StatusCode,
 14743  			Header: res.Header,
 14744  		})
 14745  	}
 14746  	if err != nil {
 14747  		return nil, err
 14748  	}
 14749  	defer googleapi.CloseBody(res)
 14750  	if err := googleapi.CheckResponse(res); err != nil {
 14751  		return nil, gensupport.WrapError(err)
 14752  	}
 14753  	ret := &GoogleCloudDocumentaiV1beta3ProcessorVersion{
 14754  		ServerResponse: googleapi.ServerResponse{
 14755  			Header:         res.Header,
 14756  			HTTPStatusCode: res.StatusCode,
 14757  		},
 14758  	}
 14759  	target := &ret
 14760  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14761  		return nil, err
 14762  	}
 14763  	return ret, nil
 14764  }
 14765  
 14766  type ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall struct {
 14767  	s                                                         *Service
 14768  	parent                                                    string
 14769  	googleclouddocumentaiv1beta3importprocessorversionrequest *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
 14770  	urlParams_                                                gensupport.URLParams
 14771  	ctx_                                                      context.Context
 14772  	header_                                                   http.Header
 14773  }
 14774  
 14775  // ImportProcessorVersion: Imports a processor version from source processor
 14776  // version.
 14777  //
 14778  //   - parent: The destination processor name to create the processor version in.
 14779  //     Format: `projects/{project}/locations/{location}/processors/{processor}`.
 14780  func (r *ProjectsLocationsProcessorsProcessorVersionsService) ImportProcessorVersion(parent string, googleclouddocumentaiv1beta3importprocessorversionrequest *GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall {
 14781  	c := &ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14782  	c.parent = parent
 14783  	c.googleclouddocumentaiv1beta3importprocessorversionrequest = googleclouddocumentaiv1beta3importprocessorversionrequest
 14784  	return c
 14785  }
 14786  
 14787  // Fields allows partial responses to be retrieved. See
 14788  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14789  // details.
 14790  func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall {
 14791  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14792  	return c
 14793  }
 14794  
 14795  // Context sets the context to be used in this call's Do method.
 14796  func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall {
 14797  	c.ctx_ = ctx
 14798  	return c
 14799  }
 14800  
 14801  // Header returns a http.Header that can be modified by the caller to add
 14802  // headers to the request.
 14803  func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Header() http.Header {
 14804  	if c.header_ == nil {
 14805  		c.header_ = make(http.Header)
 14806  	}
 14807  	return c.header_
 14808  }
 14809  
 14810  func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) doRequest(alt string) (*http.Response, error) {
 14811  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14812  	var body io.Reader = nil
 14813  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3importprocessorversionrequest)
 14814  	if err != nil {
 14815  		return nil, err
 14816  	}
 14817  	c.urlParams_.Set("alt", alt)
 14818  	c.urlParams_.Set("prettyPrint", "false")
 14819  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions:importProcessorVersion")
 14820  	urls += "?" + c.urlParams_.Encode()
 14821  	req, err := http.NewRequest("POST", urls, body)
 14822  	if err != nil {
 14823  		return nil, err
 14824  	}
 14825  	req.Header = reqHeaders
 14826  	googleapi.Expand(req.URL, map[string]string{
 14827  		"parent": c.parent,
 14828  	})
 14829  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14830  }
 14831  
 14832  // Do executes the "documentai.projects.locations.processors.processorVersions.importProcessorVersion" call.
 14833  // Any non-2xx status code is an error. Response headers are in either
 14834  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14835  // returned at all) in error.(*googleapi.Error).Header. Use
 14836  // googleapi.IsNotModified to check whether the returned error was because
 14837  // http.StatusNotModified was returned.
 14838  func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14839  	gensupport.SetOptions(c.urlParams_, opts...)
 14840  	res, err := c.doRequest("json")
 14841  	if res != nil && res.StatusCode == http.StatusNotModified {
 14842  		if res.Body != nil {
 14843  			res.Body.Close()
 14844  		}
 14845  		return nil, gensupport.WrapError(&googleapi.Error{
 14846  			Code:   res.StatusCode,
 14847  			Header: res.Header,
 14848  		})
 14849  	}
 14850  	if err != nil {
 14851  		return nil, err
 14852  	}
 14853  	defer googleapi.CloseBody(res)
 14854  	if err := googleapi.CheckResponse(res); err != nil {
 14855  		return nil, gensupport.WrapError(err)
 14856  	}
 14857  	ret := &GoogleLongrunningOperation{
 14858  		ServerResponse: googleapi.ServerResponse{
 14859  			Header:         res.Header,
 14860  			HTTPStatusCode: res.StatusCode,
 14861  		},
 14862  	}
 14863  	target := &ret
 14864  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14865  		return nil, err
 14866  	}
 14867  	return ret, nil
 14868  }
 14869  
 14870  type ProjectsLocationsProcessorsProcessorVersionsListCall struct {
 14871  	s            *Service
 14872  	parent       string
 14873  	urlParams_   gensupport.URLParams
 14874  	ifNoneMatch_ string
 14875  	ctx_         context.Context
 14876  	header_      http.Header
 14877  }
 14878  
 14879  // List: Lists all versions of a processor.
 14880  //
 14881  //   - parent: The parent (project, location and processor) to list all versions.
 14882  //     Format: `projects/{project}/locations/{location}/processors/{processor}`.
 14883  func (r *ProjectsLocationsProcessorsProcessorVersionsService) List(parent string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
 14884  	c := &ProjectsLocationsProcessorsProcessorVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14885  	c.parent = parent
 14886  	return c
 14887  }
 14888  
 14889  // PageSize sets the optional parameter "pageSize": The maximum number of
 14890  // processor versions to return. If unspecified, at most `10` processor
 14891  // versions will be returned. The maximum value is `20`. Values above `20` will
 14892  // be coerced to `20`.
 14893  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsProcessorVersionsListCall {
 14894  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14895  	return c
 14896  }
 14897  
 14898  // PageToken sets the optional parameter "pageToken": We will return the
 14899  // processor versions sorted by creation time. The page token will point to the
 14900  // next processor version.
 14901  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
 14902  	c.urlParams_.Set("pageToken", pageToken)
 14903  	return c
 14904  }
 14905  
 14906  // Fields allows partial responses to be retrieved. See
 14907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14908  // details.
 14909  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsListCall {
 14910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14911  	return c
 14912  }
 14913  
 14914  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14915  // object's ETag matches the given value. This is useful for getting updates
 14916  // only after the object has changed since the last request.
 14917  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsListCall {
 14918  	c.ifNoneMatch_ = entityTag
 14919  	return c
 14920  }
 14921  
 14922  // Context sets the context to be used in this call's Do method.
 14923  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsListCall {
 14924  	c.ctx_ = ctx
 14925  	return c
 14926  }
 14927  
 14928  // Header returns a http.Header that can be modified by the caller to add
 14929  // headers to the request.
 14930  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Header() http.Header {
 14931  	if c.header_ == nil {
 14932  		c.header_ = make(http.Header)
 14933  	}
 14934  	return c.header_
 14935  }
 14936  
 14937  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) doRequest(alt string) (*http.Response, error) {
 14938  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14939  	if c.ifNoneMatch_ != "" {
 14940  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14941  	}
 14942  	var body io.Reader = nil
 14943  	c.urlParams_.Set("alt", alt)
 14944  	c.urlParams_.Set("prettyPrint", "false")
 14945  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions")
 14946  	urls += "?" + c.urlParams_.Encode()
 14947  	req, err := http.NewRequest("GET", urls, body)
 14948  	if err != nil {
 14949  		return nil, err
 14950  	}
 14951  	req.Header = reqHeaders
 14952  	googleapi.Expand(req.URL, map[string]string{
 14953  		"parent": c.parent,
 14954  	})
 14955  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14956  }
 14957  
 14958  // Do executes the "documentai.projects.locations.processors.processorVersions.list" call.
 14959  // Any non-2xx status code is an error. Response headers are in either
 14960  // *GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse.ServerResponse.Hea
 14961  // der or (if a response was returned at all) in
 14962  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14963  // whether the returned error was because http.StatusNotModified was returned.
 14964  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse, error) {
 14965  	gensupport.SetOptions(c.urlParams_, opts...)
 14966  	res, err := c.doRequest("json")
 14967  	if res != nil && res.StatusCode == http.StatusNotModified {
 14968  		if res.Body != nil {
 14969  			res.Body.Close()
 14970  		}
 14971  		return nil, gensupport.WrapError(&googleapi.Error{
 14972  			Code:   res.StatusCode,
 14973  			Header: res.Header,
 14974  		})
 14975  	}
 14976  	if err != nil {
 14977  		return nil, err
 14978  	}
 14979  	defer googleapi.CloseBody(res)
 14980  	if err := googleapi.CheckResponse(res); err != nil {
 14981  		return nil, gensupport.WrapError(err)
 14982  	}
 14983  	ret := &GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse{
 14984  		ServerResponse: googleapi.ServerResponse{
 14985  			Header:         res.Header,
 14986  			HTTPStatusCode: res.StatusCode,
 14987  		},
 14988  	}
 14989  	target := &ret
 14990  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14991  		return nil, err
 14992  	}
 14993  	return ret, nil
 14994  }
 14995  
 14996  // Pages invokes f for each page of results.
 14997  // A non-nil error returned from f will halt the iteration.
 14998  // The provided context supersedes any context provided to the Context method.
 14999  func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse) error) error {
 15000  	c.ctx_ = ctx
 15001  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15002  	for {
 15003  		x, err := c.Do()
 15004  		if err != nil {
 15005  			return err
 15006  		}
 15007  		if err := f(x); err != nil {
 15008  			return err
 15009  		}
 15010  		if x.NextPageToken == "" {
 15011  			return nil
 15012  		}
 15013  		c.PageToken(x.NextPageToken)
 15014  	}
 15015  }
 15016  
 15017  type ProjectsLocationsProcessorsProcessorVersionsProcessCall struct {
 15018  	s                                          *Service
 15019  	name                                       string
 15020  	googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest
 15021  	urlParams_                                 gensupport.URLParams
 15022  	ctx_                                       context.Context
 15023  	header_                                    http.Header
 15024  }
 15025  
 15026  // Process: Processes a single document.
 15027  //
 15028  //   - name: The resource name of the Processor or ProcessorVersion to use for
 15029  //     processing. If a Processor is specified, the server will use its default
 15030  //     version. Format:
 15031  //     `projects/{project}/locations/{location}/processors/{processor}`, or
 15032  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 15033  //     rsions/{processorVersion}`.
 15034  func (r *ProjectsLocationsProcessorsProcessorVersionsService) Process(name string, googleclouddocumentaiv1beta3processrequest *GoogleCloudDocumentaiV1beta3ProcessRequest) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
 15035  	c := &ProjectsLocationsProcessorsProcessorVersionsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15036  	c.name = name
 15037  	c.googleclouddocumentaiv1beta3processrequest = googleclouddocumentaiv1beta3processrequest
 15038  	return c
 15039  }
 15040  
 15041  // Fields allows partial responses to be retrieved. See
 15042  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15043  // details.
 15044  func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
 15045  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15046  	return c
 15047  }
 15048  
 15049  // Context sets the context to be used in this call's Do method.
 15050  func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsProcessCall {
 15051  	c.ctx_ = ctx
 15052  	return c
 15053  }
 15054  
 15055  // Header returns a http.Header that can be modified by the caller to add
 15056  // headers to the request.
 15057  func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Header() http.Header {
 15058  	if c.header_ == nil {
 15059  		c.header_ = make(http.Header)
 15060  	}
 15061  	return c.header_
 15062  }
 15063  
 15064  func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) doRequest(alt string) (*http.Response, error) {
 15065  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15066  	var body io.Reader = nil
 15067  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3processrequest)
 15068  	if err != nil {
 15069  		return nil, err
 15070  	}
 15071  	c.urlParams_.Set("alt", alt)
 15072  	c.urlParams_.Set("prettyPrint", "false")
 15073  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:process")
 15074  	urls += "?" + c.urlParams_.Encode()
 15075  	req, err := http.NewRequest("POST", urls, body)
 15076  	if err != nil {
 15077  		return nil, err
 15078  	}
 15079  	req.Header = reqHeaders
 15080  	googleapi.Expand(req.URL, map[string]string{
 15081  		"name": c.name,
 15082  	})
 15083  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15084  }
 15085  
 15086  // Do executes the "documentai.projects.locations.processors.processorVersions.process" call.
 15087  // Any non-2xx status code is an error. Response headers are in either
 15088  // *GoogleCloudDocumentaiV1beta3ProcessResponse.ServerResponse.Header or (if a
 15089  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15090  // googleapi.IsNotModified to check whether the returned error was because
 15091  // http.StatusNotModified was returned.
 15092  func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ProcessResponse, error) {
 15093  	gensupport.SetOptions(c.urlParams_, opts...)
 15094  	res, err := c.doRequest("json")
 15095  	if res != nil && res.StatusCode == http.StatusNotModified {
 15096  		if res.Body != nil {
 15097  			res.Body.Close()
 15098  		}
 15099  		return nil, gensupport.WrapError(&googleapi.Error{
 15100  			Code:   res.StatusCode,
 15101  			Header: res.Header,
 15102  		})
 15103  	}
 15104  	if err != nil {
 15105  		return nil, err
 15106  	}
 15107  	defer googleapi.CloseBody(res)
 15108  	if err := googleapi.CheckResponse(res); err != nil {
 15109  		return nil, gensupport.WrapError(err)
 15110  	}
 15111  	ret := &GoogleCloudDocumentaiV1beta3ProcessResponse{
 15112  		ServerResponse: googleapi.ServerResponse{
 15113  			Header:         res.Header,
 15114  			HTTPStatusCode: res.StatusCode,
 15115  		},
 15116  	}
 15117  	target := &ret
 15118  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15119  		return nil, err
 15120  	}
 15121  	return ret, nil
 15122  }
 15123  
 15124  type ProjectsLocationsProcessorsProcessorVersionsTrainCall struct {
 15125  	s                                                        *Service
 15126  	parent                                                   string
 15127  	googleclouddocumentaiv1beta3trainprocessorversionrequest *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
 15128  	urlParams_                                               gensupport.URLParams
 15129  	ctx_                                                     context.Context
 15130  	header_                                                  http.Header
 15131  }
 15132  
 15133  // Train: Trains a new processor version. Operation metadata is returned as
 15134  // TrainProcessorVersionMetadata.
 15135  //
 15136  //   - parent: The parent (project, location and processor) to create the new
 15137  //     version for. Format:
 15138  //     `projects/{project}/locations/{location}/processors/{processor}`.
 15139  func (r *ProjectsLocationsProcessorsProcessorVersionsService) Train(parent string, googleclouddocumentaiv1beta3trainprocessorversionrequest *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsTrainCall {
 15140  	c := &ProjectsLocationsProcessorsProcessorVersionsTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15141  	c.parent = parent
 15142  	c.googleclouddocumentaiv1beta3trainprocessorversionrequest = googleclouddocumentaiv1beta3trainprocessorversionrequest
 15143  	return c
 15144  }
 15145  
 15146  // Fields allows partial responses to be retrieved. See
 15147  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15148  // details.
 15149  func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsTrainCall {
 15150  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15151  	return c
 15152  }
 15153  
 15154  // Context sets the context to be used in this call's Do method.
 15155  func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsTrainCall {
 15156  	c.ctx_ = ctx
 15157  	return c
 15158  }
 15159  
 15160  // Header returns a http.Header that can be modified by the caller to add
 15161  // headers to the request.
 15162  func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Header() http.Header {
 15163  	if c.header_ == nil {
 15164  		c.header_ = make(http.Header)
 15165  	}
 15166  	return c.header_
 15167  }
 15168  
 15169  func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) doRequest(alt string) (*http.Response, error) {
 15170  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15171  	var body io.Reader = nil
 15172  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3trainprocessorversionrequest)
 15173  	if err != nil {
 15174  		return nil, err
 15175  	}
 15176  	c.urlParams_.Set("alt", alt)
 15177  	c.urlParams_.Set("prettyPrint", "false")
 15178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/processorVersions:train")
 15179  	urls += "?" + c.urlParams_.Encode()
 15180  	req, err := http.NewRequest("POST", urls, body)
 15181  	if err != nil {
 15182  		return nil, err
 15183  	}
 15184  	req.Header = reqHeaders
 15185  	googleapi.Expand(req.URL, map[string]string{
 15186  		"parent": c.parent,
 15187  	})
 15188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15189  }
 15190  
 15191  // Do executes the "documentai.projects.locations.processors.processorVersions.train" call.
 15192  // Any non-2xx status code is an error. Response headers are in either
 15193  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15194  // returned at all) in error.(*googleapi.Error).Header. Use
 15195  // googleapi.IsNotModified to check whether the returned error was because
 15196  // http.StatusNotModified was returned.
 15197  func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15198  	gensupport.SetOptions(c.urlParams_, opts...)
 15199  	res, err := c.doRequest("json")
 15200  	if res != nil && res.StatusCode == http.StatusNotModified {
 15201  		if res.Body != nil {
 15202  			res.Body.Close()
 15203  		}
 15204  		return nil, gensupport.WrapError(&googleapi.Error{
 15205  			Code:   res.StatusCode,
 15206  			Header: res.Header,
 15207  		})
 15208  	}
 15209  	if err != nil {
 15210  		return nil, err
 15211  	}
 15212  	defer googleapi.CloseBody(res)
 15213  	if err := googleapi.CheckResponse(res); err != nil {
 15214  		return nil, gensupport.WrapError(err)
 15215  	}
 15216  	ret := &GoogleLongrunningOperation{
 15217  		ServerResponse: googleapi.ServerResponse{
 15218  			Header:         res.Header,
 15219  			HTTPStatusCode: res.StatusCode,
 15220  		},
 15221  	}
 15222  	target := &ret
 15223  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15224  		return nil, err
 15225  	}
 15226  	return ret, nil
 15227  }
 15228  
 15229  type ProjectsLocationsProcessorsProcessorVersionsUndeployCall struct {
 15230  	s                                                           *Service
 15231  	name                                                        string
 15232  	googleclouddocumentaiv1beta3undeployprocessorversionrequest *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest
 15233  	urlParams_                                                  gensupport.URLParams
 15234  	ctx_                                                        context.Context
 15235  	header_                                                     http.Header
 15236  }
 15237  
 15238  // Undeploy: Undeploys the processor version.
 15239  //
 15240  // - name: The processor version resource name to be undeployed.
 15241  func (r *ProjectsLocationsProcessorsProcessorVersionsService) Undeploy(name string, googleclouddocumentaiv1beta3undeployprocessorversionrequest *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
 15242  	c := &ProjectsLocationsProcessorsProcessorVersionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15243  	c.name = name
 15244  	c.googleclouddocumentaiv1beta3undeployprocessorversionrequest = googleclouddocumentaiv1beta3undeployprocessorversionrequest
 15245  	return c
 15246  }
 15247  
 15248  // Fields allows partial responses to be retrieved. See
 15249  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15250  // details.
 15251  func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
 15252  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15253  	return c
 15254  }
 15255  
 15256  // Context sets the context to be used in this call's Do method.
 15257  func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsUndeployCall {
 15258  	c.ctx_ = ctx
 15259  	return c
 15260  }
 15261  
 15262  // Header returns a http.Header that can be modified by the caller to add
 15263  // headers to the request.
 15264  func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Header() http.Header {
 15265  	if c.header_ == nil {
 15266  		c.header_ = make(http.Header)
 15267  	}
 15268  	return c.header_
 15269  }
 15270  
 15271  func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) doRequest(alt string) (*http.Response, error) {
 15272  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15273  	var body io.Reader = nil
 15274  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta3undeployprocessorversionrequest)
 15275  	if err != nil {
 15276  		return nil, err
 15277  	}
 15278  	c.urlParams_.Set("alt", alt)
 15279  	c.urlParams_.Set("prettyPrint", "false")
 15280  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}:undeploy")
 15281  	urls += "?" + c.urlParams_.Encode()
 15282  	req, err := http.NewRequest("POST", urls, body)
 15283  	if err != nil {
 15284  		return nil, err
 15285  	}
 15286  	req.Header = reqHeaders
 15287  	googleapi.Expand(req.URL, map[string]string{
 15288  		"name": c.name,
 15289  	})
 15290  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15291  }
 15292  
 15293  // Do executes the "documentai.projects.locations.processors.processorVersions.undeploy" call.
 15294  // Any non-2xx status code is an error. Response headers are in either
 15295  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15296  // returned at all) in error.(*googleapi.Error).Header. Use
 15297  // googleapi.IsNotModified to check whether the returned error was because
 15298  // http.StatusNotModified was returned.
 15299  func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15300  	gensupport.SetOptions(c.urlParams_, opts...)
 15301  	res, err := c.doRequest("json")
 15302  	if res != nil && res.StatusCode == http.StatusNotModified {
 15303  		if res.Body != nil {
 15304  			res.Body.Close()
 15305  		}
 15306  		return nil, gensupport.WrapError(&googleapi.Error{
 15307  			Code:   res.StatusCode,
 15308  			Header: res.Header,
 15309  		})
 15310  	}
 15311  	if err != nil {
 15312  		return nil, err
 15313  	}
 15314  	defer googleapi.CloseBody(res)
 15315  	if err := googleapi.CheckResponse(res); err != nil {
 15316  		return nil, gensupport.WrapError(err)
 15317  	}
 15318  	ret := &GoogleLongrunningOperation{
 15319  		ServerResponse: googleapi.ServerResponse{
 15320  			Header:         res.Header,
 15321  			HTTPStatusCode: res.StatusCode,
 15322  		},
 15323  	}
 15324  	target := &ret
 15325  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15326  		return nil, err
 15327  	}
 15328  	return ret, nil
 15329  }
 15330  
 15331  type ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall struct {
 15332  	s            *Service
 15333  	name         string
 15334  	urlParams_   gensupport.URLParams
 15335  	ifNoneMatch_ string
 15336  	ctx_         context.Context
 15337  	header_      http.Header
 15338  }
 15339  
 15340  // Get: Retrieves a specific evaluation.
 15341  //
 15342  //   - name: The resource name of the Evaluation to get.
 15343  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 15344  //     rsions/{processorVersion}/evaluations/{evaluation}`.
 15345  func (r *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService) Get(name string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
 15346  	c := &ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15347  	c.name = name
 15348  	return c
 15349  }
 15350  
 15351  // Fields allows partial responses to be retrieved. See
 15352  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15353  // details.
 15354  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
 15355  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15356  	return c
 15357  }
 15358  
 15359  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15360  // object's ETag matches the given value. This is useful for getting updates
 15361  // only after the object has changed since the last request.
 15362  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
 15363  	c.ifNoneMatch_ = entityTag
 15364  	return c
 15365  }
 15366  
 15367  // Context sets the context to be used in this call's Do method.
 15368  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall {
 15369  	c.ctx_ = ctx
 15370  	return c
 15371  }
 15372  
 15373  // Header returns a http.Header that can be modified by the caller to add
 15374  // headers to the request.
 15375  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Header() http.Header {
 15376  	if c.header_ == nil {
 15377  		c.header_ = make(http.Header)
 15378  	}
 15379  	return c.header_
 15380  }
 15381  
 15382  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
 15383  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15384  	if c.ifNoneMatch_ != "" {
 15385  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15386  	}
 15387  	var body io.Reader = nil
 15388  	c.urlParams_.Set("alt", alt)
 15389  	c.urlParams_.Set("prettyPrint", "false")
 15390  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+name}")
 15391  	urls += "?" + c.urlParams_.Encode()
 15392  	req, err := http.NewRequest("GET", urls, body)
 15393  	if err != nil {
 15394  		return nil, err
 15395  	}
 15396  	req.Header = reqHeaders
 15397  	googleapi.Expand(req.URL, map[string]string{
 15398  		"name": c.name,
 15399  	})
 15400  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15401  }
 15402  
 15403  // Do executes the "documentai.projects.locations.processors.processorVersions.evaluations.get" call.
 15404  // Any non-2xx status code is an error. Response headers are in either
 15405  // *GoogleCloudDocumentaiV1beta3Evaluation.ServerResponse.Header or (if a
 15406  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15407  // googleapi.IsNotModified to check whether the returned error was because
 15408  // http.StatusNotModified was returned.
 15409  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3Evaluation, error) {
 15410  	gensupport.SetOptions(c.urlParams_, opts...)
 15411  	res, err := c.doRequest("json")
 15412  	if res != nil && res.StatusCode == http.StatusNotModified {
 15413  		if res.Body != nil {
 15414  			res.Body.Close()
 15415  		}
 15416  		return nil, gensupport.WrapError(&googleapi.Error{
 15417  			Code:   res.StatusCode,
 15418  			Header: res.Header,
 15419  		})
 15420  	}
 15421  	if err != nil {
 15422  		return nil, err
 15423  	}
 15424  	defer googleapi.CloseBody(res)
 15425  	if err := googleapi.CheckResponse(res); err != nil {
 15426  		return nil, gensupport.WrapError(err)
 15427  	}
 15428  	ret := &GoogleCloudDocumentaiV1beta3Evaluation{
 15429  		ServerResponse: googleapi.ServerResponse{
 15430  			Header:         res.Header,
 15431  			HTTPStatusCode: res.StatusCode,
 15432  		},
 15433  	}
 15434  	target := &ret
 15435  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15436  		return nil, err
 15437  	}
 15438  	return ret, nil
 15439  }
 15440  
 15441  type ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall struct {
 15442  	s            *Service
 15443  	parent       string
 15444  	urlParams_   gensupport.URLParams
 15445  	ifNoneMatch_ string
 15446  	ctx_         context.Context
 15447  	header_      http.Header
 15448  }
 15449  
 15450  // List: Retrieves a set of evaluations for a given processor version.
 15451  //
 15452  //   - parent: The resource name of the ProcessorVersion to list evaluations for.
 15453  //     `projects/{project}/locations/{location}/processors/{processor}/processorVe
 15454  //     rsions/{processorVersion}`.
 15455  func (r *ProjectsLocationsProcessorsProcessorVersionsEvaluationsService) List(parent string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
 15456  	c := &ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15457  	c.parent = parent
 15458  	return c
 15459  }
 15460  
 15461  // PageSize sets the optional parameter "pageSize": The standard list page
 15462  // size. If unspecified, at most `5` evaluations are returned. The maximum
 15463  // value is `100`. Values above `100` are coerced to `100`.
 15464  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
 15465  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15466  	return c
 15467  }
 15468  
 15469  // PageToken sets the optional parameter "pageToken": A page token, received
 15470  // from a previous `ListEvaluations` call. Provide this to retrieve the
 15471  // subsequent page.
 15472  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
 15473  	c.urlParams_.Set("pageToken", pageToken)
 15474  	return c
 15475  }
 15476  
 15477  // Fields allows partial responses to be retrieved. See
 15478  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15479  // details.
 15480  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
 15481  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15482  	return c
 15483  }
 15484  
 15485  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15486  // object's ETag matches the given value. This is useful for getting updates
 15487  // only after the object has changed since the last request.
 15488  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
 15489  	c.ifNoneMatch_ = entityTag
 15490  	return c
 15491  }
 15492  
 15493  // Context sets the context to be used in this call's Do method.
 15494  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall {
 15495  	c.ctx_ = ctx
 15496  	return c
 15497  }
 15498  
 15499  // Header returns a http.Header that can be modified by the caller to add
 15500  // headers to the request.
 15501  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Header() http.Header {
 15502  	if c.header_ == nil {
 15503  		c.header_ = make(http.Header)
 15504  	}
 15505  	return c.header_
 15506  }
 15507  
 15508  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
 15509  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15510  	if c.ifNoneMatch_ != "" {
 15511  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15512  	}
 15513  	var body io.Reader = nil
 15514  	c.urlParams_.Set("alt", alt)
 15515  	c.urlParams_.Set("prettyPrint", "false")
 15516  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta3/{+parent}/evaluations")
 15517  	urls += "?" + c.urlParams_.Encode()
 15518  	req, err := http.NewRequest("GET", urls, body)
 15519  	if err != nil {
 15520  		return nil, err
 15521  	}
 15522  	req.Header = reqHeaders
 15523  	googleapi.Expand(req.URL, map[string]string{
 15524  		"parent": c.parent,
 15525  	})
 15526  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15527  }
 15528  
 15529  // Do executes the "documentai.projects.locations.processors.processorVersions.evaluations.list" call.
 15530  // Any non-2xx status code is an error. Response headers are in either
 15531  // *GoogleCloudDocumentaiV1beta3ListEvaluationsResponse.ServerResponse.Header
 15532  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 15533  // Use googleapi.IsNotModified to check whether the returned error was because
 15534  // http.StatusNotModified was returned.
 15535  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListEvaluationsResponse, error) {
 15536  	gensupport.SetOptions(c.urlParams_, opts...)
 15537  	res, err := c.doRequest("json")
 15538  	if res != nil && res.StatusCode == http.StatusNotModified {
 15539  		if res.Body != nil {
 15540  			res.Body.Close()
 15541  		}
 15542  		return nil, gensupport.WrapError(&googleapi.Error{
 15543  			Code:   res.StatusCode,
 15544  			Header: res.Header,
 15545  		})
 15546  	}
 15547  	if err != nil {
 15548  		return nil, err
 15549  	}
 15550  	defer googleapi.CloseBody(res)
 15551  	if err := googleapi.CheckResponse(res); err != nil {
 15552  		return nil, gensupport.WrapError(err)
 15553  	}
 15554  	ret := &GoogleCloudDocumentaiV1beta3ListEvaluationsResponse{
 15555  		ServerResponse: googleapi.ServerResponse{
 15556  			Header:         res.Header,
 15557  			HTTPStatusCode: res.StatusCode,
 15558  		},
 15559  	}
 15560  	target := &ret
 15561  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15562  		return nil, err
 15563  	}
 15564  	return ret, nil
 15565  }
 15566  
 15567  // Pages invokes f for each page of results.
 15568  // A non-nil error returned from f will halt the iteration.
 15569  // The provided context supersedes any context provided to the Context method.
 15570  func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListEvaluationsResponse) error) error {
 15571  	c.ctx_ = ctx
 15572  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15573  	for {
 15574  		x, err := c.Do()
 15575  		if err != nil {
 15576  			return err
 15577  		}
 15578  		if err := f(x); err != nil {
 15579  			return err
 15580  		}
 15581  		if x.NextPageToken == "" {
 15582  			return nil
 15583  		}
 15584  		c.PageToken(x.NextPageToken)
 15585  	}
 15586  }
 15587  

View as plain text