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/v1beta2" 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/v1beta2" 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:v1beta2" 90 const apiName = "documentai" 91 const apiVersion = "v1beta2" 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.Documents = NewProjectsDocumentsService(s) 160 rs.Locations = NewProjectsLocationsService(s) 161 rs.Operations = NewProjectsOperationsService(s) 162 return rs 163 } 164 165 type ProjectsService struct { 166 s *Service 167 168 Documents *ProjectsDocumentsService 169 170 Locations *ProjectsLocationsService 171 172 Operations *ProjectsOperationsService 173 } 174 175 func NewProjectsDocumentsService(s *Service) *ProjectsDocumentsService { 176 rs := &ProjectsDocumentsService{s: s} 177 return rs 178 } 179 180 type ProjectsDocumentsService struct { 181 s *Service 182 } 183 184 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { 185 rs := &ProjectsLocationsService{s: s} 186 rs.Documents = NewProjectsLocationsDocumentsService(s) 187 rs.Operations = NewProjectsLocationsOperationsService(s) 188 return rs 189 } 190 191 type ProjectsLocationsService struct { 192 s *Service 193 194 Documents *ProjectsLocationsDocumentsService 195 196 Operations *ProjectsLocationsOperationsService 197 } 198 199 func NewProjectsLocationsDocumentsService(s *Service) *ProjectsLocationsDocumentsService { 200 rs := &ProjectsLocationsDocumentsService{s: s} 201 return rs 202 } 203 204 type ProjectsLocationsDocumentsService struct { 205 s *Service 206 } 207 208 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { 209 rs := &ProjectsLocationsOperationsService{s: s} 210 return rs 211 } 212 213 type ProjectsLocationsOperationsService struct { 214 s *Service 215 } 216 217 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService { 218 rs := &ProjectsOperationsService{s: s} 219 return rs 220 } 221 222 type ProjectsOperationsService struct { 223 s *Service 224 } 225 226 // GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata: Metadata of the 227 // auto-labeling documents operation. 228 type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata struct { 229 // CommonMetadata: The basic metadata of the long-running operation. 230 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 231 // IndividualAutoLabelStatuses: The list of individual auto-labeling statuses 232 // of the dataset documents. 233 IndividualAutoLabelStatuses []*GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus `json:"individualAutoLabelStatuses,omitempty"` 234 // TotalDocumentCount: Total number of the auto-labeling documents. 235 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` 236 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 237 // unconditionally include in API requests. By default, fields with empty or 238 // default values are omitted from API requests. See 239 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 240 // details. 241 ForceSendFields []string `json:"-"` 242 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 243 // API requests with the JSON null value. By default, fields with empty values 244 // are omitted from API requests. See 245 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 246 NullFields []string `json:"-"` 247 } 248 249 func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata) MarshalJSON() ([]byte, error) { 250 type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata 251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 252 } 253 254 // GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelSt 255 // atus: The status of individual documents in the auto-labeling process. 256 type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus struct { 257 // DocumentId: The document id of the auto-labeled document. This will replace 258 // the gcs_uri. 259 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"` 260 // Status: The status of the document auto-labeling. 261 Status *GoogleRpcStatus `json:"status,omitempty"` 262 // ForceSendFields is a list of field names (e.g. "DocumentId") to 263 // unconditionally include in API requests. By default, fields with empty or 264 // default values are omitted from API requests. See 265 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 266 // details. 267 ForceSendFields []string `json:"-"` 268 // NullFields is a list of field names (e.g. "DocumentId") to include in API 269 // requests with the JSON null value. By default, fields with empty values are 270 // omitted from API requests. See 271 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 272 NullFields []string `json:"-"` 273 } 274 275 func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus) MarshalJSON() ([]byte, error) { 276 type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus 277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 278 } 279 280 // GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse: The response proto 281 // of AutoLabelDocuments method. 282 type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse struct { 283 } 284 285 type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct { 286 // CommonMetadata: The basic metadata of the long-running operation. 287 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 288 // ErrorDocumentCount: Total number of documents that failed to be deleted in 289 // storage. 290 ErrorDocumentCount int64 `json:"errorDocumentCount,omitempty"` 291 // IndividualBatchDeleteStatuses: The list of response details of each 292 // document. 293 IndividualBatchDeleteStatuses []*GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus `json:"individualBatchDeleteStatuses,omitempty"` 294 // TotalDocumentCount: Total number of documents deleting from dataset. 295 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` 296 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 297 // unconditionally include in API requests. By default, fields with empty or 298 // default values are omitted from API requests. See 299 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 300 // details. 301 ForceSendFields []string `json:"-"` 302 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 303 // API requests with the JSON null value. By default, fields with empty values 304 // are omitted from API requests. See 305 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 306 NullFields []string `json:"-"` 307 } 308 309 func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) { 310 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata 311 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 312 } 313 314 // GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDele 315 // teStatus: The status of each individual document in the batch delete 316 // process. 317 type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus struct { 318 // DocumentId: The document id of the document. 319 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"` 320 // Status: The status of deleting the document in storage. 321 Status *GoogleRpcStatus `json:"status,omitempty"` 322 // ForceSendFields is a list of field names (e.g. "DocumentId") to 323 // unconditionally include in API requests. By default, fields with empty or 324 // default values are omitted from API requests. See 325 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 326 // details. 327 ForceSendFields []string `json:"-"` 328 // NullFields is a list of field names (e.g. "DocumentId") to include in API 329 // requests with the JSON null value. By default, fields with empty values are 330 // omitted from API requests. See 331 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 332 NullFields []string `json:"-"` 333 } 334 335 func (s *GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus) MarshalJSON() ([]byte, error) { 336 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus 337 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 338 } 339 340 // GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse: Response of the 341 // delete documents operation. 342 type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse struct { 343 } 344 345 type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata struct { 346 // CommonMetadata: The basic metadata of the long-running operation. 347 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 348 // DestDatasetType: The destination dataset split type. 349 // 350 // Possible values: 351 // "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set. 352 // "DATASET_SPLIT_TRAIN" - Identifies the train documents. 353 // "DATASET_SPLIT_TEST" - Identifies the test documents. 354 // "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents. 355 DestDatasetType string `json:"destDatasetType,omitempty"` 356 // DestSplitType: The destination dataset split type. 357 // 358 // Possible values: 359 // "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set. 360 // "DATASET_SPLIT_TRAIN" - Identifies the train documents. 361 // "DATASET_SPLIT_TEST" - Identifies the test documents. 362 // "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents. 363 DestSplitType string `json:"destSplitType,omitempty"` 364 // IndividualBatchMoveStatuses: The list of response details of each document. 365 IndividualBatchMoveStatuses []*GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus `json:"individualBatchMoveStatuses,omitempty"` 366 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 367 // unconditionally include in API requests. By default, fields with empty or 368 // default values are omitted from API requests. See 369 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 370 // details. 371 ForceSendFields []string `json:"-"` 372 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 373 // API requests with the JSON null value. By default, fields with empty values 374 // are omitted from API requests. See 375 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 376 NullFields []string `json:"-"` 377 } 378 379 func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata) MarshalJSON() ([]byte, error) { 380 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata 381 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 382 } 383 384 // GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveSt 385 // atus: The status of each individual document in the batch move process. 386 type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus struct { 387 // DocumentId: The document id of the document. 388 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"` 389 // Status: The status of moving the document. 390 Status *GoogleRpcStatus `json:"status,omitempty"` 391 // ForceSendFields is a list of field names (e.g. "DocumentId") to 392 // unconditionally include in API requests. By default, fields with empty or 393 // default values are omitted from API requests. See 394 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 395 // details. 396 ForceSendFields []string `json:"-"` 397 // NullFields is a list of field names (e.g. "DocumentId") to include in API 398 // requests with the JSON null value. By default, fields with empty values are 399 // omitted from API requests. See 400 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 401 NullFields []string `json:"-"` 402 } 403 404 func (s *GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus) MarshalJSON() ([]byte, error) { 405 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus 406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 407 } 408 409 // GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse: Response of the 410 // batch move documents operation. 411 type GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse struct { 412 } 413 414 type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata struct { 415 // CommonMetadata: The basic metadata of the long-running operation. 416 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 417 // IndividualBatchUpdateStatuses: The list of response details of each 418 // document. 419 IndividualBatchUpdateStatuses []*GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus `json:"individualBatchUpdateStatuses,omitempty"` 420 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 421 // unconditionally include in API requests. By default, fields with empty or 422 // default values are omitted from API requests. See 423 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 424 // details. 425 ForceSendFields []string `json:"-"` 426 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 427 // API requests with the JSON null value. By default, fields with empty values 428 // are omitted from API requests. See 429 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 430 NullFields []string `json:"-"` 431 } 432 433 func (s *GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata) MarshalJSON() ([]byte, error) { 434 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata 435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 436 } 437 438 // GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpda 439 // teStatus: The status of each individual document in the batch update 440 // process. 441 type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus struct { 442 // DocumentId: The document id of the document. 443 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"` 444 // Status: The status of updating the document in storage. 445 Status *GoogleRpcStatus `json:"status,omitempty"` 446 // ForceSendFields is a list of field names (e.g. "DocumentId") to 447 // unconditionally include in API requests. By default, fields with empty or 448 // default values are omitted from API requests. See 449 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 450 // details. 451 ForceSendFields []string `json:"-"` 452 // NullFields is a list of field names (e.g. "DocumentId") to include in API 453 // requests with the JSON null value. By default, fields with empty values are 454 // omitted from API requests. See 455 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 456 NullFields []string `json:"-"` 457 } 458 459 func (s *GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus) MarshalJSON() ([]byte, error) { 460 type NoMethod GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus 461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 462 } 463 464 // GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse: Response of the 465 // batch update documents operation. 466 type GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse struct { 467 } 468 469 // GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata: The common metadata 470 // for long running operations. 471 type GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata struct { 472 // CreateTime: The creation time of the operation. 473 CreateTime string `json:"createTime,omitempty"` 474 // Resource: A related resource to this operation. 475 Resource string `json:"resource,omitempty"` 476 // State: The state of the operation. 477 // 478 // Possible values: 479 // "STATE_UNSPECIFIED" - Unspecified state. 480 // "RUNNING" - Operation is still running. 481 // "CANCELLING" - Operation is being cancelled. 482 // "SUCCEEDED" - Operation succeeded. 483 // "FAILED" - Operation failed. 484 // "CANCELLED" - Operation is cancelled. 485 State string `json:"state,omitempty"` 486 // StateMessage: A message providing more details about the current state of 487 // processing. 488 StateMessage string `json:"stateMessage,omitempty"` 489 // UpdateTime: The last update time of the operation. 490 UpdateTime string `json:"updateTime,omitempty"` 491 // ForceSendFields is a list of field names (e.g. "CreateTime") to 492 // unconditionally include in API requests. By default, fields with empty or 493 // default values are omitted from API requests. See 494 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 495 // details. 496 ForceSendFields []string `json:"-"` 497 // NullFields is a list of field names (e.g. "CreateTime") to include in API 498 // requests with the JSON null value. By default, fields with empty values are 499 // omitted from API requests. See 500 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 501 NullFields []string `json:"-"` 502 } 503 504 func (s *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) { 505 type NoMethod GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata 506 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 507 } 508 509 // GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata: The 510 // long-running operation metadata for the CreateLabelerPool method. 511 type GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata struct { 512 // CommonMetadata: The basic metadata of the long-running operation. 513 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 514 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 515 // unconditionally include in API requests. By default, fields with empty or 516 // default values are omitted from API requests. See 517 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 518 // details. 519 ForceSendFields []string `json:"-"` 520 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 521 // API requests with the JSON null value. By default, fields with empty values 522 // are omitted from API requests. See 523 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 524 NullFields []string `json:"-"` 525 } 526 527 func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) { 528 type NoMethod GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata 529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 530 } 531 532 // GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The 533 // long-running operation metadata for DeleteLabelerPool. 534 type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct { 535 // CommonMetadata: The basic metadata of the long-running operation. 536 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 537 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 538 // unconditionally include in API requests. By default, fields with empty or 539 // default values are omitted from API requests. See 540 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 541 // details. 542 ForceSendFields []string `json:"-"` 543 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 544 // API requests with the JSON null value. By default, fields with empty values 545 // are omitted from API requests. See 546 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 547 NullFields []string `json:"-"` 548 } 549 550 func (s *GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) { 551 type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata 552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 553 } 554 555 // GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata: The long-running 556 // operation metadata for the DeleteProcessor method. 557 type GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata struct { 558 // CommonMetadata: The basic metadata of the long-running operation. 559 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 560 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 561 // unconditionally include in API requests. By default, fields with empty or 562 // default values are omitted from API requests. See 563 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 564 // details. 565 ForceSendFields []string `json:"-"` 566 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 567 // API requests with the JSON null value. By default, fields with empty values 568 // are omitted from API requests. See 569 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 570 NullFields []string `json:"-"` 571 } 572 573 func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) { 574 type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata 575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 576 } 577 578 // GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata: The 579 // long-running operation metadata for the DeleteProcessorVersion method. 580 type GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata struct { 581 // CommonMetadata: The basic metadata of the long-running operation. 582 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 583 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 584 // unconditionally include in API requests. By default, fields with empty or 585 // default values are omitted from API requests. See 586 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 587 // details. 588 ForceSendFields []string `json:"-"` 589 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 590 // API requests with the JSON null value. By default, fields with empty values 591 // are omitted from API requests. See 592 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 593 NullFields []string `json:"-"` 594 } 595 596 func (s *GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 597 type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata 598 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 599 } 600 601 // GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata: The 602 // long-running operation metadata for the DeployProcessorVersion method. 603 type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata struct { 604 // CommonMetadata: The basic metadata of the long-running operation. 605 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 606 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 607 // unconditionally include in API requests. By default, fields with empty or 608 // default values are omitted from API requests. See 609 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 610 // details. 611 ForceSendFields []string `json:"-"` 612 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 613 // API requests with the JSON null value. By default, fields with empty values 614 // are omitted from API requests. See 615 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 616 NullFields []string `json:"-"` 617 } 618 619 func (s *GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 620 type NoMethod GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata 621 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 622 } 623 624 // GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse: Response 625 // message for the DeployProcessorVersion method. 626 type GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse struct { 627 } 628 629 // GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata: The long-running 630 // operation metadata for the DisableProcessor method. 631 type GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata struct { 632 // CommonMetadata: The basic metadata of the long-running operation. 633 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 634 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 635 // unconditionally include in API requests. By default, fields with empty or 636 // default values are omitted from API requests. See 637 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 638 // details. 639 ForceSendFields []string `json:"-"` 640 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 641 // API requests with the JSON null value. By default, fields with empty values 642 // are omitted from API requests. See 643 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 644 NullFields []string `json:"-"` 645 } 646 647 func (s *GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) { 648 type NoMethod GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata 649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 650 } 651 652 // GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse: Response message for 653 // the DisableProcessor method. Intentionally empty proto for adding fields in 654 // future. 655 type GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse struct { 656 } 657 658 // GoogleCloudDocumentaiUiv1beta3DocumentId: Document Identifier. 659 type GoogleCloudDocumentaiUiv1beta3DocumentId struct { 660 // GcsManagedDocId: A document id within user-managed Cloud Storage. 661 GcsManagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"` 662 // RevisionRef: Points to a specific revision of the document if set. 663 RevisionRef *GoogleCloudDocumentaiUiv1beta3RevisionRef `json:"revisionRef,omitempty"` 664 // UnmanagedDocId: A document id within unmanaged dataset. 665 UnmanagedDocId *GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId `json:"unmanagedDocId,omitempty"` 666 // ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to 667 // unconditionally include in API requests. By default, fields with empty or 668 // default values are omitted from API requests. See 669 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 670 // details. 671 ForceSendFields []string `json:"-"` 672 // NullFields is a list of field names (e.g. "GcsManagedDocId") to include in 673 // API requests with the JSON null value. By default, fields with empty values 674 // are omitted from API requests. See 675 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 676 NullFields []string `json:"-"` 677 } 678 679 func (s *GoogleCloudDocumentaiUiv1beta3DocumentId) MarshalJSON() ([]byte, error) { 680 type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentId 681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 682 } 683 684 // GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId: Identifies a 685 // document uniquely within the scope of a dataset in the user-managed Cloud 686 // Storage option. 687 type GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId struct { 688 // CwDocId: Id of the document (indexed) managed by Content Warehouse. 689 CwDocId string `json:"cwDocId,omitempty"` 690 // GcsUri: Required. The Cloud Storage URI where the actual document is stored. 691 GcsUri string `json:"gcsUri,omitempty"` 692 // ForceSendFields is a list of field names (e.g. "CwDocId") to unconditionally 693 // include in API requests. By default, fields with empty or default values are 694 // omitted from API requests. See 695 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 696 // details. 697 ForceSendFields []string `json:"-"` 698 // NullFields is a list of field names (e.g. "CwDocId") to include in API 699 // requests with the JSON null value. By default, fields with empty values are 700 // omitted from API requests. See 701 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 702 NullFields []string `json:"-"` 703 } 704 705 func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) { 706 type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId 707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 708 } 709 710 // GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId: Identifies a 711 // document uniquely within the scope of a dataset in unmanaged option. 712 type GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId struct { 713 // DocId: Required. The id of the document. 714 DocId string `json:"docId,omitempty"` 715 // ForceSendFields is a list of field names (e.g. "DocId") to unconditionally 716 // include in API requests. By default, fields with empty or default values are 717 // omitted from API requests. See 718 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 719 // details. 720 ForceSendFields []string `json:"-"` 721 // NullFields is a list of field names (e.g. "DocId") to include in API 722 // requests with the JSON null value. By default, fields with empty values are 723 // omitted from API requests. See 724 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 725 NullFields []string `json:"-"` 726 } 727 728 func (s *GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId) MarshalJSON() ([]byte, error) { 729 type NoMethod GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId 730 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 731 } 732 733 // GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata: The long-running 734 // operation metadata for the EnableProcessor method. 735 type GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata struct { 736 // CommonMetadata: The basic metadata of the long-running operation. 737 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 738 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 739 // unconditionally include in API requests. By default, fields with empty or 740 // default values are omitted from API requests. See 741 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 742 // details. 743 ForceSendFields []string `json:"-"` 744 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 745 // API requests with the JSON null value. By default, fields with empty values 746 // are omitted from API requests. See 747 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 748 NullFields []string `json:"-"` 749 } 750 751 func (s *GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) { 752 type NoMethod GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata 753 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 754 } 755 756 // GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse: Response message for 757 // the EnableProcessor method. Intentionally empty proto for adding fields in 758 // future. 759 type GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse struct { 760 } 761 762 // GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata: Metadata of 763 // the EvaluateProcessorVersion method. 764 type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata struct { 765 // CommonMetadata: The basic metadata of the long-running operation. 766 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 767 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 768 // unconditionally include in API requests. By default, fields with empty or 769 // default values are omitted from API requests. See 770 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 771 // details. 772 ForceSendFields []string `json:"-"` 773 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 774 // API requests with the JSON null value. By default, fields with empty values 775 // are omitted from API requests. See 776 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 777 NullFields []string `json:"-"` 778 } 779 780 func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 781 type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata 782 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 783 } 784 785 // GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse: Response of 786 // the EvaluateProcessorVersion method. 787 type GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse struct { 788 // Evaluation: The resource name of the created evaluation. 789 Evaluation string `json:"evaluation,omitempty"` 790 // ForceSendFields is a list of field names (e.g. "Evaluation") to 791 // unconditionally include in API requests. By default, fields with empty or 792 // default values are omitted from API requests. See 793 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 794 // details. 795 ForceSendFields []string `json:"-"` 796 // NullFields is a list of field names (e.g. "Evaluation") to include in API 797 // requests with the JSON null value. By default, fields with empty values are 798 // omitted from API requests. See 799 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 800 NullFields []string `json:"-"` 801 } 802 803 func (s *GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) { 804 type NoMethod GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse 805 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 806 } 807 808 // GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata: Metadata of the batch 809 // export documents operation. 810 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata struct { 811 // CommonMetadata: The basic metadata of the long-running operation. 812 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 813 // IndividualExportStatuses: The list of response details of each document. 814 IndividualExportStatuses []*GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus `json:"individualExportStatuses,omitempty"` 815 // SplitExportStats: The list of statistics for each dataset split type. 816 SplitExportStats []*GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat `json:"splitExportStats,omitempty"` 817 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 818 // unconditionally include in API requests. By default, fields with empty or 819 // default values are omitted from API requests. See 820 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 821 // details. 822 ForceSendFields []string `json:"-"` 823 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 824 // API requests with the JSON null value. By default, fields with empty values 825 // are omitted from API requests. See 826 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 827 NullFields []string `json:"-"` 828 } 829 830 func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata) MarshalJSON() ([]byte, error) { 831 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata 832 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 833 } 834 835 // GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus: 836 // The status of each individual document in the export process. 837 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus struct { 838 // DocumentId: The path to source docproto of the document. 839 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"` 840 // OutputGcsDestination: The output_gcs_destination of the exported document if 841 // it was successful, otherwise empty. 842 OutputGcsDestination string `json:"outputGcsDestination,omitempty"` 843 // Status: The status of the exporting of the document. 844 Status *GoogleRpcStatus `json:"status,omitempty"` 845 // ForceSendFields is a list of field names (e.g. "DocumentId") to 846 // unconditionally include in API requests. By default, fields with empty or 847 // default values are omitted from API requests. See 848 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 849 // details. 850 ForceSendFields []string `json:"-"` 851 // NullFields is a list of field names (e.g. "DocumentId") to include in API 852 // requests with the JSON null value. By default, fields with empty values are 853 // omitted from API requests. See 854 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 855 NullFields []string `json:"-"` 856 } 857 858 func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus) MarshalJSON() ([]byte, error) { 859 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus 860 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 861 } 862 863 // GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat: The 864 // statistic representing a dataset split type for this export. 865 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat struct { 866 // SplitType: The dataset split type. 867 // 868 // Possible values: 869 // "DATASET_SPLIT_TYPE_UNSPECIFIED" - Default value if the enum is not set. 870 // "DATASET_SPLIT_TRAIN" - Identifies the train documents. 871 // "DATASET_SPLIT_TEST" - Identifies the test documents. 872 // "DATASET_SPLIT_UNASSIGNED" - Identifies the unassigned documents. 873 SplitType string `json:"splitType,omitempty"` 874 // TotalDocumentCount: Total number of documents with the given dataset split 875 // type to be exported. 876 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` 877 // ForceSendFields is a list of field names (e.g. "SplitType") to 878 // unconditionally include in API requests. By default, fields with empty or 879 // default values are omitted from API requests. See 880 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 881 // details. 882 ForceSendFields []string `json:"-"` 883 // NullFields is a list of field names (e.g. "SplitType") to include in API 884 // requests with the JSON null value. By default, fields with empty values are 885 // omitted from API requests. See 886 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 887 NullFields []string `json:"-"` 888 } 889 890 func (s *GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat) MarshalJSON() ([]byte, error) { 891 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat 892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 893 } 894 895 // GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse: The response proto of 896 // ExportDocuments method. 897 type GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse struct { 898 } 899 900 // GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata: Metadata 901 // message associated with the ExportProcessorVersion operation. 902 type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata struct { 903 // CommonMetadata: The common metadata about the operation. 904 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 905 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 906 // unconditionally include in API requests. By default, fields with empty or 907 // default values are omitted from API requests. See 908 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 909 // details. 910 ForceSendFields []string `json:"-"` 911 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 912 // API requests with the JSON null value. By default, fields with empty values 913 // are omitted from API requests. See 914 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 915 NullFields []string `json:"-"` 916 } 917 918 func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 919 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata 920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 921 } 922 923 // GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse: Response 924 // message associated with the ExportProcessorVersion operation. 925 type GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse struct { 926 // GcsUri: The Cloud Storage URI containing the output artifacts. 927 GcsUri string `json:"gcsUri,omitempty"` 928 // ForceSendFields is a list of field names (e.g. "GcsUri") to unconditionally 929 // include in API requests. By default, fields with empty or default values are 930 // omitted from API requests. See 931 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 932 // details. 933 ForceSendFields []string `json:"-"` 934 // NullFields is a list of field names (e.g. "GcsUri") to include in API 935 // requests with the JSON null value. By default, fields with empty values are 936 // omitted from API requests. See 937 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 938 NullFields []string `json:"-"` 939 } 940 941 func (s *GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse) MarshalJSON() ([]byte, error) { 942 type NoMethod GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse 943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 944 } 945 946 // GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata: Metadata of the 947 // import document operation. 948 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata struct { 949 // CommonMetadata: The basic metadata of the long-running operation. 950 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 951 // ImportConfigValidationResults: Validation statuses of the batch documents 952 // import config. 953 ImportConfigValidationResults []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult `json:"importConfigValidationResults,omitempty"` 954 // IndividualImportStatuses: The list of response details of each document. 955 IndividualImportStatuses []*GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"` 956 // TotalDocumentCount: Total number of the documents that are qualified for 957 // importing. 958 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` 959 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 960 // unconditionally include in API requests. By default, fields with empty or 961 // default values are omitted from API requests. See 962 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 963 // details. 964 ForceSendFields []string `json:"-"` 965 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 966 // API requests with the JSON null value. By default, fields with empty values 967 // are omitted from API requests. See 968 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 969 NullFields []string `json:"-"` 970 } 971 972 func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) { 973 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata 974 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 975 } 976 977 // GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationRe 978 // sult: The validation status of each import config. Status is set to an error 979 // if there are no documents to import in the `import_config`, or `OK` if the 980 // operation will try to proceed with at least one document. 981 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult struct { 982 // InputGcsSource: The source Cloud Storage URI specified in the import config. 983 InputGcsSource string `json:"inputGcsSource,omitempty"` 984 // Status: The validation status of import config. 985 Status *GoogleRpcStatus `json:"status,omitempty"` 986 // ForceSendFields is a list of field names (e.g. "InputGcsSource") to 987 // unconditionally include in API requests. By default, fields with empty or 988 // default values are omitted from API requests. See 989 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 990 // details. 991 ForceSendFields []string `json:"-"` 992 // NullFields is a list of field names (e.g. "InputGcsSource") to include in 993 // API requests with the JSON null value. By default, fields with empty values 994 // are omitted from API requests. See 995 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 996 NullFields []string `json:"-"` 997 } 998 999 func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult) MarshalJSON() ([]byte, error) { 1000 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult 1001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1002 } 1003 1004 // GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus: 1005 // The status of each individual document in the import process. 1006 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus struct { 1007 // InputGcsSource: The source Cloud Storage URI of the document. 1008 InputGcsSource string `json:"inputGcsSource,omitempty"` 1009 // OutputDocumentId: The document id of imported document if it was successful, 1010 // otherwise empty. 1011 OutputDocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"outputDocumentId,omitempty"` 1012 // OutputGcsDestination: The output_gcs_destination of the processed document 1013 // if it was successful, otherwise empty. 1014 OutputGcsDestination string `json:"outputGcsDestination,omitempty"` 1015 // Status: The status of the importing of the document. 1016 Status *GoogleRpcStatus `json:"status,omitempty"` 1017 // ForceSendFields is a list of field names (e.g. "InputGcsSource") to 1018 // unconditionally include in API requests. By default, fields with empty or 1019 // default values are omitted from API requests. See 1020 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1021 // details. 1022 ForceSendFields []string `json:"-"` 1023 // NullFields is a list of field names (e.g. "InputGcsSource") to include in 1024 // API requests with the JSON null value. By default, fields with empty values 1025 // are omitted from API requests. See 1026 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1027 NullFields []string `json:"-"` 1028 } 1029 1030 func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) { 1031 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus 1032 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1033 } 1034 1035 // GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse: Response of the 1036 // import document operation. 1037 type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct { 1038 } 1039 1040 // GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata: The 1041 // long-running operation metadata for the ImportProcessorVersion method. 1042 type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata struct { 1043 // CommonMetadata: The basic metadata for the long-running operation. 1044 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1045 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1046 // unconditionally include in API requests. By default, fields with empty or 1047 // default values are omitted from API requests. See 1048 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1049 // details. 1050 ForceSendFields []string `json:"-"` 1051 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1052 // API requests with the JSON null value. By default, fields with empty values 1053 // are omitted from API requests. See 1054 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1055 NullFields []string `json:"-"` 1056 } 1057 1058 func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1059 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata 1060 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1061 } 1062 1063 // GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse: The response 1064 // message for the ImportProcessorVersion method. 1065 type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse struct { 1066 // ProcessorVersion: The destination processor version name. 1067 ProcessorVersion string `json:"processorVersion,omitempty"` 1068 // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to 1069 // unconditionally include in API requests. By default, fields with empty or 1070 // default values are omitted from API requests. See 1071 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1072 // details. 1073 ForceSendFields []string `json:"-"` 1074 // NullFields is a list of field names (e.g. "ProcessorVersion") to include in 1075 // API requests with the JSON null value. By default, fields with empty values 1076 // are omitted from API requests. See 1077 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1078 NullFields []string `json:"-"` 1079 } 1080 1081 func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) { 1082 type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse 1083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1084 } 1085 1086 // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata: The metadata proto of 1087 // `ResyncDataset` method. 1088 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata struct { 1089 // CommonMetadata: The basic metadata of the long-running operation. 1090 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1091 // DatasetResyncStatuses: The list of dataset resync statuses. Not checked when 1092 // ResyncDatasetRequest.dataset_documents is specified. 1093 DatasetResyncStatuses []*GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus `json:"datasetResyncStatuses,omitempty"` 1094 // IndividualDocumentResyncStatuses: The list of document resync statuses. The 1095 // same document could have multiple `individual_document_resync_statuses` if 1096 // it has multiple inconsistencies. 1097 IndividualDocumentResyncStatuses []*GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus `json:"individualDocumentResyncStatuses,omitempty"` 1098 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1099 // unconditionally include in API requests. By default, fields with empty or 1100 // default values are omitted from API requests. See 1101 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1102 // details. 1103 ForceSendFields []string `json:"-"` 1104 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1105 // API requests with the JSON null value. By default, fields with empty values 1106 // are omitted from API requests. See 1107 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1108 NullFields []string `json:"-"` 1109 } 1110 1111 func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata) MarshalJSON() ([]byte, error) { 1112 type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata 1113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1114 } 1115 1116 // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus: 1117 // Resync status against inconsistency types on the dataset level. 1118 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus struct { 1119 // DatasetInconsistencyType: The type of the inconsistency of the dataset. 1120 // 1121 // Possible values: 1122 // "DATASET_INCONSISTENCY_TYPE_UNSPECIFIED" - Default value. 1123 // "DATASET_INCONSISTENCY_TYPE_NO_STORAGE_MARKER" - The marker file under the 1124 // dataset folder is not found. 1125 DatasetInconsistencyType string `json:"datasetInconsistencyType,omitempty"` 1126 // Status: The status of resyncing the dataset with regards to the detected 1127 // inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`. 1128 Status *GoogleRpcStatus `json:"status,omitempty"` 1129 // ForceSendFields is a list of field names (e.g. "DatasetInconsistencyType") 1130 // to unconditionally include in API requests. By default, fields with empty or 1131 // default values are omitted from API requests. See 1132 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1133 // details. 1134 ForceSendFields []string `json:"-"` 1135 // NullFields is a list of field names (e.g. "DatasetInconsistencyType") to 1136 // include in API requests with the JSON null value. By default, fields with 1137 // empty values are omitted from API requests. See 1138 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1139 NullFields []string `json:"-"` 1140 } 1141 1142 func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus) MarshalJSON() ([]byte, error) { 1143 type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus 1144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1145 } 1146 1147 // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncSt 1148 // atus: Resync status for each document per inconsistency type. 1149 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus struct { 1150 // DocumentId: The document identifier. 1151 DocumentId *GoogleCloudDocumentaiUiv1beta3DocumentId `json:"documentId,omitempty"` 1152 // DocumentInconsistencyType: The type of document inconsistency. 1153 // 1154 // Possible values: 1155 // "DOCUMENT_INCONSISTENCY_TYPE_UNSPECIFIED" - Default value. 1156 // "DOCUMENT_INCONSISTENCY_TYPE_INVALID_DOCPROTO" - The document proto is 1157 // invalid. 1158 // "DOCUMENT_INCONSISTENCY_TYPE_MISMATCHED_METADATA" - Indexed docproto 1159 // metadata is mismatched. 1160 // "DOCUMENT_INCONSISTENCY_TYPE_NO_PAGE_IMAGE" - The page image or thumbnails 1161 // are missing. 1162 DocumentInconsistencyType string `json:"documentInconsistencyType,omitempty"` 1163 // Status: The status of resyncing the document with regards to the detected 1164 // inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`. 1165 Status *GoogleRpcStatus `json:"status,omitempty"` 1166 // ForceSendFields is a list of field names (e.g. "DocumentId") to 1167 // unconditionally include in API requests. By default, fields with empty or 1168 // default values are omitted from API requests. See 1169 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1170 // details. 1171 ForceSendFields []string `json:"-"` 1172 // NullFields is a list of field names (e.g. "DocumentId") to include in API 1173 // requests with the JSON null value. By default, fields with empty values are 1174 // omitted from API requests. See 1175 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1176 NullFields []string `json:"-"` 1177 } 1178 1179 func (s *GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus) MarshalJSON() ([]byte, error) { 1180 type NoMethod GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus 1181 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1182 } 1183 1184 // GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse: The response proto of 1185 // ResyncDataset method. 1186 type GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse struct { 1187 } 1188 1189 // GoogleCloudDocumentaiUiv1beta3RevisionRef: The revision reference specifies 1190 // which revision on the document to read. 1191 type GoogleCloudDocumentaiUiv1beta3RevisionRef struct { 1192 // LatestProcessorVersion: Reads the revision generated by the processor 1193 // version. The format takes the full resource name of processor version. 1194 // `projects/{project}/locations/{location}/processors/{processor}/processorVers 1195 // ions/{processorVersion}` 1196 LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"` 1197 // RevisionCase: Reads the revision by the predefined case. 1198 // 1199 // Possible values: 1200 // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fall back to read the 1201 // `LATEST_HUMAN_REVIEW`. 1202 // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. 1203 // "LATEST_TIMESTAMP" - The latest revision based on timestamp. 1204 // "BASE_OCR_REVISION" - The first (OCR) revision. 1205 RevisionCase string `json:"revisionCase,omitempty"` 1206 // RevisionId: Reads the revision given by the id. 1207 RevisionId string `json:"revisionId,omitempty"` 1208 // ForceSendFields is a list of field names (e.g. "LatestProcessorVersion") to 1209 // unconditionally include in API requests. By default, fields with empty or 1210 // default values are omitted from API requests. See 1211 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1212 // details. 1213 ForceSendFields []string `json:"-"` 1214 // NullFields is a list of field names (e.g. "LatestProcessorVersion") to 1215 // include in API requests with the JSON null value. By default, fields with 1216 // empty values are omitted from API requests. See 1217 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1218 NullFields []string `json:"-"` 1219 } 1220 1221 func (s *GoogleCloudDocumentaiUiv1beta3RevisionRef) MarshalJSON() ([]byte, error) { 1222 type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionRef 1223 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1224 } 1225 1226 // GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata: Metadata of the 1227 // sample documents operation. 1228 type GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata struct { 1229 // CommonMetadata: The basic metadata of the long-running operation. 1230 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1231 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1232 // unconditionally include in API requests. By default, fields with empty or 1233 // default values are omitted from API requests. See 1234 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1235 // details. 1236 ForceSendFields []string `json:"-"` 1237 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1238 // API requests with the JSON null value. By default, fields with empty values 1239 // are omitted from API requests. See 1240 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1241 NullFields []string `json:"-"` 1242 } 1243 1244 func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata) MarshalJSON() ([]byte, error) { 1245 type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata 1246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1247 } 1248 1249 // GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse: Response of the 1250 // sample documents operation. 1251 type GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse struct { 1252 // SampleTestStatus: The status of sampling documents in test split. 1253 SampleTestStatus *GoogleRpcStatus `json:"sampleTestStatus,omitempty"` 1254 // SampleTrainingStatus: The status of sampling documents in training split. 1255 SampleTrainingStatus *GoogleRpcStatus `json:"sampleTrainingStatus,omitempty"` 1256 // SelectedDocuments: The result of the sampling process. 1257 SelectedDocuments []*GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument `json:"selectedDocuments,omitempty"` 1258 // ForceSendFields is a list of field names (e.g. "SampleTestStatus") to 1259 // unconditionally include in API requests. By default, fields with empty or 1260 // default values are omitted from API requests. See 1261 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1262 // details. 1263 ForceSendFields []string `json:"-"` 1264 // NullFields is a list of field names (e.g. "SampleTestStatus") to include in 1265 // API requests with the JSON null value. By default, fields with empty values 1266 // are omitted from API requests. See 1267 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1268 NullFields []string `json:"-"` 1269 } 1270 1271 func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse) MarshalJSON() ([]byte, error) { 1272 type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse 1273 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1274 } 1275 1276 type GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument struct { 1277 // DocumentId: An internal identifier for document. 1278 DocumentId string `json:"documentId,omitempty"` 1279 // ForceSendFields is a list of field names (e.g. "DocumentId") to 1280 // unconditionally include in API requests. By default, fields with empty or 1281 // default values are omitted from API requests. See 1282 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1283 // details. 1284 ForceSendFields []string `json:"-"` 1285 // NullFields is a list of field names (e.g. "DocumentId") to include in API 1286 // requests with the JSON null value. By default, fields with empty values are 1287 // omitted from API requests. See 1288 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1289 NullFields []string `json:"-"` 1290 } 1291 1292 func (s *GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument) MarshalJSON() ([]byte, error) { 1293 type NoMethod GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument 1294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1295 } 1296 1297 // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The 1298 // long-running operation metadata for the SetDefaultProcessorVersion method. 1299 type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata struct { 1300 // CommonMetadata: The basic metadata of the long-running operation. 1301 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1302 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1303 // unconditionally include in API requests. By default, fields with empty or 1304 // default values are omitted from API requests. See 1305 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1306 // details. 1307 ForceSendFields []string `json:"-"` 1308 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1309 // API requests with the JSON null value. By default, fields with empty values 1310 // are omitted from API requests. See 1311 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1312 NullFields []string `json:"-"` 1313 } 1314 1315 func (s *GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1316 type NoMethod GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata 1317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1318 } 1319 1320 // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse: Response 1321 // message for the SetDefaultProcessorVersion method. 1322 type GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse struct { 1323 } 1324 1325 // GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata: The metadata 1326 // that represents a processor version being created. 1327 type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata struct { 1328 // CommonMetadata: The basic metadata of the long-running operation. 1329 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1330 // TestDatasetValidation: The test dataset validation information. 1331 TestDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"` 1332 // TrainingDatasetValidation: The training dataset validation information. 1333 TrainingDatasetValidation *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"` 1334 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1335 // unconditionally include in API requests. By default, fields with empty or 1336 // default values are omitted from API requests. See 1337 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1338 // details. 1339 ForceSendFields []string `json:"-"` 1340 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1341 // API requests with the JSON null value. By default, fields with empty values 1342 // are omitted from API requests. See 1343 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1344 NullFields []string `json:"-"` 1345 } 1346 1347 func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1348 type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata 1349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1350 } 1351 1352 // GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation: 1353 // 1354 // The dataset validation information. This includes any and all errors with 1355 // 1356 // documents and the dataset. 1357 type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation struct { 1358 // DatasetErrorCount: The total number of dataset errors. 1359 DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"` 1360 // DatasetErrors: Error information for the dataset as a whole. A maximum of 10 1361 // dataset errors will be returned. A single dataset error is terminal for 1362 // training. 1363 DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"` 1364 // DocumentErrorCount: The total number of document errors. 1365 DocumentErrorCount int64 `json:"documentErrorCount,omitempty"` 1366 // DocumentErrors: Error information pertaining to specific documents. A 1367 // maximum of 10 document errors will be returned. Any document with errors 1368 // will not be used throughout training. 1369 DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"` 1370 // ForceSendFields is a list of field names (e.g. "DatasetErrorCount") 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. "DatasetErrorCount") 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 *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) { 1384 type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation 1385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1386 } 1387 1388 // GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse: The response 1389 // for TrainProcessorVersion. 1390 type GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse struct { 1391 // ProcessorVersion: The resource name of the processor version produced by 1392 // training. 1393 ProcessorVersion string `json:"processorVersion,omitempty"` 1394 // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to 1395 // unconditionally include in API requests. By default, fields with empty or 1396 // default values are omitted from API requests. See 1397 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1398 // details. 1399 ForceSendFields []string `json:"-"` 1400 // NullFields is a list of field names (e.g. "ProcessorVersion") to include in 1401 // API requests with the JSON null value. By default, fields with empty values 1402 // are omitted from API requests. See 1403 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1404 NullFields []string `json:"-"` 1405 } 1406 1407 func (s *GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) { 1408 type NoMethod GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse 1409 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1410 } 1411 1412 // GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata: The 1413 // long-running operation metadata for the UndeployProcessorVersion method. 1414 type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata struct { 1415 // CommonMetadata: The basic metadata of the long-running operation. 1416 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1417 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1418 // unconditionally include in API requests. By default, fields with empty or 1419 // default values are omitted from API requests. See 1420 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1421 // details. 1422 ForceSendFields []string `json:"-"` 1423 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1424 // API requests with the JSON null value. By default, fields with empty values 1425 // are omitted from API requests. See 1426 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1427 NullFields []string `json:"-"` 1428 } 1429 1430 func (s *GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1431 type NoMethod GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata 1432 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1433 } 1434 1435 // GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse: Response 1436 // message for the UndeployProcessorVersion method. 1437 type GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse struct { 1438 } 1439 1440 type GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata struct { 1441 // CommonMetadata: The basic metadata of the long-running operation. 1442 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1443 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1444 // unconditionally include in API requests. By default, fields with empty or 1445 // default values are omitted from API requests. See 1446 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1447 // details. 1448 ForceSendFields []string `json:"-"` 1449 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1450 // API requests with the JSON null value. By default, fields with empty values 1451 // are omitted from API requests. See 1452 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1453 NullFields []string `json:"-"` 1454 } 1455 1456 func (s *GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) { 1457 type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata 1458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1459 } 1460 1461 // GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata: The 1462 // long-running operation metadata for updating the human review configuration. 1463 type GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata struct { 1464 // CommonMetadata: The basic metadata of the long-running operation. 1465 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1466 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1467 // unconditionally include in API requests. By default, fields with empty or 1468 // default values are omitted from API requests. See 1469 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1470 // details. 1471 ForceSendFields []string `json:"-"` 1472 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1473 // API requests with the JSON null value. By default, fields with empty values 1474 // are omitted from API requests. See 1475 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1476 NullFields []string `json:"-"` 1477 } 1478 1479 func (s *GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata) MarshalJSON() ([]byte, error) { 1480 type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata 1481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1482 } 1483 1484 // GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata: The 1485 // long-running operation metadata for UpdateLabelerPool. 1486 type GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata struct { 1487 // CommonMetadata: The basic metadata of the long-running operation. 1488 CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 1489 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1490 // unconditionally include in API requests. By default, fields with empty or 1491 // default values are omitted from API requests. See 1492 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1493 // details. 1494 ForceSendFields []string `json:"-"` 1495 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1496 // API requests with the JSON null value. By default, fields with empty values 1497 // are omitted from API requests. See 1498 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1499 NullFields []string `json:"-"` 1500 } 1501 1502 func (s *GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata) MarshalJSON() ([]byte, error) { 1503 type NoMethod GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata 1504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1505 } 1506 1507 // GoogleCloudDocumentaiV1BatchProcessMetadata: The long-running operation 1508 // metadata for BatchProcessDocuments. 1509 type GoogleCloudDocumentaiV1BatchProcessMetadata struct { 1510 // CreateTime: The creation time of the operation. 1511 CreateTime string `json:"createTime,omitempty"` 1512 // IndividualProcessStatuses: The list of response details of each document. 1513 IndividualProcessStatuses []*GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"` 1514 // State: The state of the current batch processing. 1515 // 1516 // Possible values: 1517 // "STATE_UNSPECIFIED" - The default value. This value is used if the state 1518 // is omitted. 1519 // "WAITING" - Request operation is waiting for scheduling. 1520 // "RUNNING" - Request is being processed. 1521 // "SUCCEEDED" - The batch processing completed successfully. 1522 // "CANCELLING" - The batch processing was being cancelled. 1523 // "CANCELLED" - The batch processing was cancelled. 1524 // "FAILED" - The batch processing has failed. 1525 State string `json:"state,omitempty"` 1526 // StateMessage: A message providing more details about the current state of 1527 // processing. For example, the error message if the operation is failed. 1528 StateMessage string `json:"stateMessage,omitempty"` 1529 // UpdateTime: The last update time of the operation. 1530 UpdateTime string `json:"updateTime,omitempty"` 1531 // ForceSendFields is a list of field names (e.g. "CreateTime") to 1532 // unconditionally include in API requests. By default, fields with empty or 1533 // default values are omitted from API requests. See 1534 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1535 // details. 1536 ForceSendFields []string `json:"-"` 1537 // NullFields is a list of field names (e.g. "CreateTime") to include in API 1538 // requests with the JSON null value. By default, fields with empty values are 1539 // omitted from API requests. See 1540 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1541 NullFields []string `json:"-"` 1542 } 1543 1544 func (s *GoogleCloudDocumentaiV1BatchProcessMetadata) MarshalJSON() ([]byte, error) { 1545 type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadata 1546 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1547 } 1548 1549 // GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus: The 1550 // status of a each individual document in the batch process. 1551 type GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus struct { 1552 // HumanReviewStatus: The status of human review on the processed document. 1553 HumanReviewStatus *GoogleCloudDocumentaiV1HumanReviewStatus `json:"humanReviewStatus,omitempty"` 1554 // InputGcsSource: The source of the document, same as the input_gcs_source 1555 // field in the request when the batch process started. 1556 InputGcsSource string `json:"inputGcsSource,omitempty"` 1557 // OutputGcsDestination: The Cloud Storage output destination (in the request 1558 // as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document 1559 // if it was successful, otherwise empty. 1560 OutputGcsDestination string `json:"outputGcsDestination,omitempty"` 1561 // Status: The status processing the document. 1562 Status *GoogleRpcStatus `json:"status,omitempty"` 1563 // ForceSendFields is a list of field names (e.g. "HumanReviewStatus") to 1564 // unconditionally include in API requests. By default, fields with empty or 1565 // default values are omitted from API requests. See 1566 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1567 // details. 1568 ForceSendFields []string `json:"-"` 1569 // NullFields is a list of field names (e.g. "HumanReviewStatus") to include in 1570 // API requests with the JSON null value. By default, fields with empty values 1571 // are omitted from API requests. See 1572 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1573 NullFields []string `json:"-"` 1574 } 1575 1576 func (s *GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) { 1577 type NoMethod GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus 1578 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1579 } 1580 1581 // GoogleCloudDocumentaiV1BatchProcessResponse: Response message for 1582 // BatchProcessDocuments. 1583 type GoogleCloudDocumentaiV1BatchProcessResponse struct { 1584 } 1585 1586 // GoogleCloudDocumentaiV1CommonOperationMetadata: The common metadata for long 1587 // running operations. 1588 type GoogleCloudDocumentaiV1CommonOperationMetadata struct { 1589 // CreateTime: The creation time of the operation. 1590 CreateTime string `json:"createTime,omitempty"` 1591 // Resource: A related resource to this operation. 1592 Resource string `json:"resource,omitempty"` 1593 // State: The state of the operation. 1594 // 1595 // Possible values: 1596 // "STATE_UNSPECIFIED" - Unspecified state. 1597 // "RUNNING" - Operation is still running. 1598 // "CANCELLING" - Operation is being cancelled. 1599 // "SUCCEEDED" - Operation succeeded. 1600 // "FAILED" - Operation failed. 1601 // "CANCELLED" - Operation is cancelled. 1602 State string `json:"state,omitempty"` 1603 // StateMessage: A message providing more details about the current state of 1604 // processing. 1605 StateMessage string `json:"stateMessage,omitempty"` 1606 // UpdateTime: The last update time of the operation. 1607 UpdateTime string `json:"updateTime,omitempty"` 1608 // ForceSendFields is a list of field names (e.g. "CreateTime") to 1609 // unconditionally include in API requests. By default, fields with empty or 1610 // default values are omitted from API requests. See 1611 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1612 // details. 1613 ForceSendFields []string `json:"-"` 1614 // NullFields is a list of field names (e.g. "CreateTime") to include in API 1615 // requests with the JSON null value. By default, fields with empty values are 1616 // omitted from API requests. See 1617 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1618 NullFields []string `json:"-"` 1619 } 1620 1621 func (s *GoogleCloudDocumentaiV1CommonOperationMetadata) MarshalJSON() ([]byte, error) { 1622 type NoMethod GoogleCloudDocumentaiV1CommonOperationMetadata 1623 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1624 } 1625 1626 // GoogleCloudDocumentaiV1DeleteProcessorMetadata: The long-running operation 1627 // metadata for the DeleteProcessor method. 1628 type GoogleCloudDocumentaiV1DeleteProcessorMetadata struct { 1629 // CommonMetadata: The basic metadata of the long-running operation. 1630 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1631 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1632 // unconditionally include in API requests. By default, fields with empty or 1633 // default values are omitted from API requests. See 1634 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1635 // details. 1636 ForceSendFields []string `json:"-"` 1637 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1638 // API requests with the JSON null value. By default, fields with empty values 1639 // are omitted from API requests. See 1640 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1641 NullFields []string `json:"-"` 1642 } 1643 1644 func (s *GoogleCloudDocumentaiV1DeleteProcessorMetadata) MarshalJSON() ([]byte, error) { 1645 type NoMethod GoogleCloudDocumentaiV1DeleteProcessorMetadata 1646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1647 } 1648 1649 // GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata: The long-running 1650 // operation metadata for the DeleteProcessorVersion method. 1651 type GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata struct { 1652 // CommonMetadata: The basic metadata of the long-running operation. 1653 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1654 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1655 // unconditionally include in API requests. By default, fields with empty or 1656 // default values are omitted from API requests. See 1657 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1658 // details. 1659 ForceSendFields []string `json:"-"` 1660 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1661 // API requests with the JSON null value. By default, fields with empty values 1662 // are omitted from API requests. See 1663 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1664 NullFields []string `json:"-"` 1665 } 1666 1667 func (s *GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1668 type NoMethod GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata 1669 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1670 } 1671 1672 // GoogleCloudDocumentaiV1DeployProcessorVersionMetadata: The long-running 1673 // operation metadata for the DeployProcessorVersion method. 1674 type GoogleCloudDocumentaiV1DeployProcessorVersionMetadata struct { 1675 // CommonMetadata: The basic metadata of the long-running operation. 1676 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1677 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1678 // unconditionally include in API requests. By default, fields with empty or 1679 // default values are omitted from API requests. See 1680 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1681 // details. 1682 ForceSendFields []string `json:"-"` 1683 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1684 // API requests with the JSON null value. By default, fields with empty values 1685 // are omitted from API requests. See 1686 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1687 NullFields []string `json:"-"` 1688 } 1689 1690 func (s *GoogleCloudDocumentaiV1DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1691 type NoMethod GoogleCloudDocumentaiV1DeployProcessorVersionMetadata 1692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1693 } 1694 1695 // GoogleCloudDocumentaiV1DeployProcessorVersionResponse: Response message for 1696 // the DeployProcessorVersion method. 1697 type GoogleCloudDocumentaiV1DeployProcessorVersionResponse struct { 1698 } 1699 1700 // GoogleCloudDocumentaiV1DisableProcessorMetadata: The long-running operation 1701 // metadata for the DisableProcessor method. 1702 type GoogleCloudDocumentaiV1DisableProcessorMetadata struct { 1703 // CommonMetadata: The basic metadata of the long-running operation. 1704 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1705 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1706 // unconditionally include in API requests. By default, fields with empty or 1707 // default values are omitted from API requests. See 1708 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1709 // details. 1710 ForceSendFields []string `json:"-"` 1711 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1712 // API requests with the JSON null value. By default, fields with empty values 1713 // are omitted from API requests. See 1714 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1715 NullFields []string `json:"-"` 1716 } 1717 1718 func (s *GoogleCloudDocumentaiV1DisableProcessorMetadata) MarshalJSON() ([]byte, error) { 1719 type NoMethod GoogleCloudDocumentaiV1DisableProcessorMetadata 1720 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1721 } 1722 1723 // GoogleCloudDocumentaiV1DisableProcessorResponse: Response message for the 1724 // DisableProcessor method. Intentionally empty proto for adding fields in 1725 // future. 1726 type GoogleCloudDocumentaiV1DisableProcessorResponse struct { 1727 } 1728 1729 // GoogleCloudDocumentaiV1EnableProcessorMetadata: The long-running operation 1730 // metadata for the EnableProcessor method. 1731 type GoogleCloudDocumentaiV1EnableProcessorMetadata struct { 1732 // CommonMetadata: The basic metadata of the long-running operation. 1733 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1734 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1735 // unconditionally include in API requests. By default, fields with empty or 1736 // default values are omitted from API requests. See 1737 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1738 // details. 1739 ForceSendFields []string `json:"-"` 1740 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1741 // API requests with the JSON null value. By default, fields with empty values 1742 // are omitted from API requests. See 1743 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1744 NullFields []string `json:"-"` 1745 } 1746 1747 func (s *GoogleCloudDocumentaiV1EnableProcessorMetadata) MarshalJSON() ([]byte, error) { 1748 type NoMethod GoogleCloudDocumentaiV1EnableProcessorMetadata 1749 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1750 } 1751 1752 // GoogleCloudDocumentaiV1EnableProcessorResponse: Response message for the 1753 // EnableProcessor method. Intentionally empty proto for adding fields in 1754 // future. 1755 type GoogleCloudDocumentaiV1EnableProcessorResponse struct { 1756 } 1757 1758 // GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata: Metadata of the 1759 // EvaluateProcessorVersion method. 1760 type GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata struct { 1761 // CommonMetadata: The basic metadata of the long-running operation. 1762 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1763 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1764 // unconditionally include in API requests. By default, fields with empty or 1765 // default values are omitted from API requests. See 1766 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1767 // details. 1768 ForceSendFields []string `json:"-"` 1769 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1770 // API requests with the JSON null value. By default, fields with empty values 1771 // are omitted from API requests. See 1772 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1773 NullFields []string `json:"-"` 1774 } 1775 1776 func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1777 type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata 1778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1779 } 1780 1781 // GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse: Response of the 1782 // EvaluateProcessorVersion method. 1783 type GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse struct { 1784 // Evaluation: The resource name of the created evaluation. 1785 Evaluation string `json:"evaluation,omitempty"` 1786 // ForceSendFields is a list of field names (e.g. "Evaluation") to 1787 // unconditionally include in API requests. By default, fields with empty or 1788 // default values are omitted from API requests. See 1789 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1790 // details. 1791 ForceSendFields []string `json:"-"` 1792 // NullFields is a list of field names (e.g. "Evaluation") to include in API 1793 // requests with the JSON null value. By default, fields with empty values are 1794 // omitted from API requests. See 1795 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1796 NullFields []string `json:"-"` 1797 } 1798 1799 func (s *GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) { 1800 type NoMethod GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse 1801 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1802 } 1803 1804 // GoogleCloudDocumentaiV1HumanReviewStatus: The status of human review on a 1805 // processed document. 1806 type GoogleCloudDocumentaiV1HumanReviewStatus struct { 1807 // HumanReviewOperation: The name of the operation triggered by the processed 1808 // document. This field is populated only when the state is 1809 // `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as 1810 // the long-running operation returned by ReviewDocument. 1811 HumanReviewOperation string `json:"humanReviewOperation,omitempty"` 1812 // State: The state of human review on the processing request. 1813 // 1814 // Possible values: 1815 // "STATE_UNSPECIFIED" - Human review state is unspecified. Most likely due 1816 // to an internal error. 1817 // "SKIPPED" - Human review is skipped for the document. This can happen 1818 // because human review isn't enabled on the processor or the processing 1819 // request has been set to skip this document. 1820 // "VALIDATION_PASSED" - Human review validation is triggered and passed, so 1821 // no review is needed. 1822 // "IN_PROGRESS" - Human review validation is triggered and the document is 1823 // under review. 1824 // "ERROR" - Some error happened during triggering human review, see the 1825 // state_message for details. 1826 State string `json:"state,omitempty"` 1827 // StateMessage: A message providing more details about the human review state. 1828 StateMessage string `json:"stateMessage,omitempty"` 1829 // ForceSendFields is a list of field names (e.g. "HumanReviewOperation") to 1830 // unconditionally include in API requests. By default, fields with empty or 1831 // default values are omitted from API requests. See 1832 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1833 // details. 1834 ForceSendFields []string `json:"-"` 1835 // NullFields is a list of field names (e.g. "HumanReviewOperation") to include 1836 // in API requests with the JSON null value. By default, fields with empty 1837 // values are omitted from API requests. See 1838 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1839 NullFields []string `json:"-"` 1840 } 1841 1842 func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) { 1843 type NoMethod GoogleCloudDocumentaiV1HumanReviewStatus 1844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1845 } 1846 1847 // GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata: The long-running 1848 // operation metadata for the ReviewDocument method. 1849 type GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata struct { 1850 // CommonMetadata: The basic metadata of the long-running operation. 1851 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1852 // QuestionId: The Crowd Compute question ID. 1853 QuestionId string `json:"questionId,omitempty"` 1854 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1855 // unconditionally include in API requests. By default, fields with empty or 1856 // default values are omitted from API requests. See 1857 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1858 // details. 1859 ForceSendFields []string `json:"-"` 1860 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1861 // API requests with the JSON null value. By default, fields with empty values 1862 // are omitted from API requests. See 1863 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1864 NullFields []string `json:"-"` 1865 } 1866 1867 func (s *GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) { 1868 type NoMethod GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata 1869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1870 } 1871 1872 // GoogleCloudDocumentaiV1ReviewDocumentResponse: Response message for the 1873 // ReviewDocument method. 1874 type GoogleCloudDocumentaiV1ReviewDocumentResponse struct { 1875 // GcsDestination: The Cloud Storage uri for the human reviewed document if the 1876 // review is succeeded. 1877 GcsDestination string `json:"gcsDestination,omitempty"` 1878 // RejectionReason: The reason why the review is rejected by reviewer. 1879 RejectionReason string `json:"rejectionReason,omitempty"` 1880 // State: The state of the review operation. 1881 // 1882 // Possible values: 1883 // "STATE_UNSPECIFIED" - The default value. This value is used if the state 1884 // is omitted. 1885 // "REJECTED" - The review operation is rejected by the reviewer. 1886 // "SUCCEEDED" - The review operation is succeeded. 1887 State string `json:"state,omitempty"` 1888 // ForceSendFields is a list of field names (e.g. "GcsDestination") to 1889 // unconditionally include in API requests. By default, fields with empty or 1890 // default values are omitted from API requests. See 1891 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1892 // details. 1893 ForceSendFields []string `json:"-"` 1894 // NullFields is a list of field names (e.g. "GcsDestination") to include in 1895 // API requests with the JSON null value. By default, fields with empty values 1896 // are omitted from API requests. See 1897 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1898 NullFields []string `json:"-"` 1899 } 1900 1901 func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, error) { 1902 type NoMethod GoogleCloudDocumentaiV1ReviewDocumentResponse 1903 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1904 } 1905 1906 // GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata: The long-running 1907 // operation metadata for the SetDefaultProcessorVersion method. 1908 type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct { 1909 // CommonMetadata: The basic metadata of the long-running operation. 1910 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1911 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1912 // unconditionally include in API requests. By default, fields with empty or 1913 // default values are omitted from API requests. See 1914 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1915 // details. 1916 ForceSendFields []string `json:"-"` 1917 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1918 // API requests with the JSON null value. By default, fields with empty values 1919 // are omitted from API requests. See 1920 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1921 NullFields []string `json:"-"` 1922 } 1923 1924 func (s *GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1925 type NoMethod GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata 1926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1927 } 1928 1929 // GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse: Response message 1930 // for the SetDefaultProcessorVersion method. 1931 type GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse struct { 1932 } 1933 1934 // GoogleCloudDocumentaiV1TrainProcessorVersionMetadata: The metadata that 1935 // represents a processor version being created. 1936 type GoogleCloudDocumentaiV1TrainProcessorVersionMetadata struct { 1937 // CommonMetadata: The basic metadata of the long-running operation. 1938 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 1939 // TestDatasetValidation: The test dataset validation information. 1940 TestDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"` 1941 // TrainingDatasetValidation: The training dataset validation information. 1942 TrainingDatasetValidation *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"` 1943 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 1944 // unconditionally include in API requests. By default, fields with empty or 1945 // default values are omitted from API requests. See 1946 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1947 // details. 1948 ForceSendFields []string `json:"-"` 1949 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 1950 // API requests with the JSON null value. By default, fields with empty values 1951 // are omitted from API requests. See 1952 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1953 NullFields []string `json:"-"` 1954 } 1955 1956 func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 1957 type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadata 1958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1959 } 1960 1961 // GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation: The 1962 // dataset validation information. This includes any and all errors with 1963 // documents and the dataset. 1964 type GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation struct { 1965 // DatasetErrorCount: The total number of dataset errors. 1966 DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"` 1967 // DatasetErrors: Error information for the dataset as a whole. A maximum of 10 1968 // dataset errors will be returned. A single dataset error is terminal for 1969 // training. 1970 DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"` 1971 // DocumentErrorCount: The total number of document errors. 1972 DocumentErrorCount int64 `json:"documentErrorCount,omitempty"` 1973 // DocumentErrors: Error information pertaining to specific documents. A 1974 // maximum of 10 document errors will be returned. Any document with errors 1975 // will not be used throughout training. 1976 DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"` 1977 // ForceSendFields is a list of field names (e.g. "DatasetErrorCount") to 1978 // unconditionally include in API requests. By default, fields with empty or 1979 // default values are omitted from API requests. See 1980 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 1981 // details. 1982 ForceSendFields []string `json:"-"` 1983 // NullFields is a list of field names (e.g. "DatasetErrorCount") to include in 1984 // API requests with the JSON null value. By default, fields with empty values 1985 // are omitted from API requests. See 1986 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 1987 NullFields []string `json:"-"` 1988 } 1989 1990 func (s *GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) { 1991 type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation 1992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 1993 } 1994 1995 // GoogleCloudDocumentaiV1TrainProcessorVersionResponse: The response for 1996 // TrainProcessorVersion. 1997 type GoogleCloudDocumentaiV1TrainProcessorVersionResponse struct { 1998 // ProcessorVersion: The resource name of the processor version produced by 1999 // training. 2000 ProcessorVersion string `json:"processorVersion,omitempty"` 2001 // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to 2002 // unconditionally include in API requests. By default, fields with empty or 2003 // default values are omitted from API requests. See 2004 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2005 // details. 2006 ForceSendFields []string `json:"-"` 2007 // NullFields is a list of field names (e.g. "ProcessorVersion") to include in 2008 // API requests with the JSON null value. By default, fields with empty values 2009 // are omitted from API requests. See 2010 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2011 NullFields []string `json:"-"` 2012 } 2013 2014 func (s *GoogleCloudDocumentaiV1TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) { 2015 type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionResponse 2016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2017 } 2018 2019 // GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata: The long-running 2020 // operation metadata for the UndeployProcessorVersion method. 2021 type GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata struct { 2022 // CommonMetadata: The basic metadata of the long-running operation. 2023 CommonMetadata *GoogleCloudDocumentaiV1CommonOperationMetadata `json:"commonMetadata,omitempty"` 2024 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 2025 // unconditionally include in API requests. By default, fields with empty or 2026 // default values are omitted from API requests. See 2027 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2028 // details. 2029 ForceSendFields []string `json:"-"` 2030 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 2031 // API requests with the JSON null value. By default, fields with empty values 2032 // are omitted from API requests. See 2033 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2034 NullFields []string `json:"-"` 2035 } 2036 2037 func (s *GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 2038 type NoMethod GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata 2039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2040 } 2041 2042 // GoogleCloudDocumentaiV1UndeployProcessorVersionResponse: Response message 2043 // for the UndeployProcessorVersion method. 2044 type GoogleCloudDocumentaiV1UndeployProcessorVersionResponse struct { 2045 } 2046 2047 // GoogleCloudDocumentaiV1beta1Barcode: Encodes the detailed information of a 2048 // barcode. 2049 type GoogleCloudDocumentaiV1beta1Barcode struct { 2050 // Format: Format of a barcode. The supported formats are: - `CODE_128`: Code 2051 // 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: 2052 // Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - 2053 // `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. 2054 // - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - 2055 // `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type. 2056 Format string `json:"format,omitempty"` 2057 // RawValue: Raw value encoded in the barcode. For example: 2058 // `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. 2059 RawValue string `json:"rawValue,omitempty"` 2060 // ValueFormat: Value format describes the format of the value that a barcode 2061 // encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - 2062 // `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. 2063 // - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: 2064 // URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - 2065 // `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license. 2066 ValueFormat string `json:"valueFormat,omitempty"` 2067 // ForceSendFields is a list of field names (e.g. "Format") to unconditionally 2068 // include in API requests. By default, fields with empty or default values are 2069 // omitted from API requests. See 2070 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2071 // details. 2072 ForceSendFields []string `json:"-"` 2073 // NullFields is a list of field names (e.g. "Format") to include in API 2074 // requests with the JSON null value. By default, fields with empty values are 2075 // omitted from API requests. See 2076 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2077 NullFields []string `json:"-"` 2078 } 2079 2080 func (s *GoogleCloudDocumentaiV1beta1Barcode) MarshalJSON() ([]byte, error) { 2081 type NoMethod GoogleCloudDocumentaiV1beta1Barcode 2082 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2083 } 2084 2085 // GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response to an 2086 // batch document processing request. This is returned in the LRO Operation 2087 // after the operation is complete. 2088 type GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse struct { 2089 // Responses: Responses for each individual document. 2090 Responses []*GoogleCloudDocumentaiV1beta1ProcessDocumentResponse `json:"responses,omitempty"` 2091 // ForceSendFields is a list of field names (e.g. "Responses") to 2092 // unconditionally include in API requests. By default, fields with empty or 2093 // default values are omitted from API requests. See 2094 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2095 // details. 2096 ForceSendFields []string `json:"-"` 2097 // NullFields is a list of field names (e.g. "Responses") to include in API 2098 // requests with the JSON null value. By default, fields with empty values are 2099 // omitted from API requests. See 2100 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2101 NullFields []string `json:"-"` 2102 } 2103 2104 func (s *GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) { 2105 type NoMethod GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse 2106 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2107 } 2108 2109 // GoogleCloudDocumentaiV1beta1BoundingPoly: A bounding polygon for the 2110 // detected image annotation. 2111 type GoogleCloudDocumentaiV1beta1BoundingPoly struct { 2112 // NormalizedVertices: The bounding polygon normalized vertices. 2113 NormalizedVertices []*GoogleCloudDocumentaiV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"` 2114 // Vertices: The bounding polygon vertices. 2115 Vertices []*GoogleCloudDocumentaiV1beta1Vertex `json:"vertices,omitempty"` 2116 // ForceSendFields is a list of field names (e.g. "NormalizedVertices") to 2117 // unconditionally include in API requests. By default, fields with empty or 2118 // default values are omitted from API requests. See 2119 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2120 // details. 2121 ForceSendFields []string `json:"-"` 2122 // NullFields is a list of field names (e.g. "NormalizedVertices") to include 2123 // in API requests with the JSON null value. By default, fields with empty 2124 // values are omitted from API requests. See 2125 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2126 NullFields []string `json:"-"` 2127 } 2128 2129 func (s *GoogleCloudDocumentaiV1beta1BoundingPoly) MarshalJSON() ([]byte, error) { 2130 type NoMethod GoogleCloudDocumentaiV1beta1BoundingPoly 2131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2132 } 2133 2134 // GoogleCloudDocumentaiV1beta1Document: Document represents the canonical 2135 // document resource in Document AI. It is an interchange format that provides 2136 // insights into documents and allows for collaboration between users and 2137 // Document AI to iterate and optimize for quality. 2138 type GoogleCloudDocumentaiV1beta1Document struct { 2139 // Content: Optional. Inline document content, represented as a stream of 2140 // bytes. Note: As with all `bytes` fields, protobuffers use a pure binary 2141 // representation, whereas JSON representations use base64. 2142 Content string `json:"content,omitempty"` 2143 // Entities: A list of entities detected on Document.text. For document shards, 2144 // entities in this list may cross shard boundaries. 2145 Entities []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"entities,omitempty"` 2146 // EntityRelations: Placeholder. Relationship among Document.entities. 2147 EntityRelations []*GoogleCloudDocumentaiV1beta1DocumentEntityRelation `json:"entityRelations,omitempty"` 2148 // Error: Any error that occurred while processing this document. 2149 Error *GoogleRpcStatus `json:"error,omitempty"` 2150 // MimeType: An IANA published media type (MIME type) 2151 // (https://www.iana.org/assignments/media-types/media-types.xhtml). 2152 MimeType string `json:"mimeType,omitempty"` 2153 // Pages: Visual page layout for the Document. 2154 Pages []*GoogleCloudDocumentaiV1beta1DocumentPage `json:"pages,omitempty"` 2155 // Revisions: Placeholder. Revision history of this document. 2156 Revisions []*GoogleCloudDocumentaiV1beta1DocumentRevision `json:"revisions,omitempty"` 2157 // ShardInfo: Information about the sharding if this document is sharded part 2158 // of a larger document. If the document is not sharded, this message is not 2159 // specified. 2160 ShardInfo *GoogleCloudDocumentaiV1beta1DocumentShardInfo `json:"shardInfo,omitempty"` 2161 // Text: Optional. UTF-8 encoded text in reading order from the document. 2162 Text string `json:"text,omitempty"` 2163 // TextChanges: Placeholder. A list of text corrections made to Document.text. 2164 // This is usually used for annotating corrections to OCR mistakes. Text 2165 // changes for a given revision may not overlap with each other. 2166 TextChanges []*GoogleCloudDocumentaiV1beta1DocumentTextChange `json:"textChanges,omitempty"` 2167 // TextStyles: Styles for the Document.text. 2168 TextStyles []*GoogleCloudDocumentaiV1beta1DocumentStyle `json:"textStyles,omitempty"` 2169 // Uri: Optional. Currently supports Google Cloud Storage URI of the form 2170 // `gs://bucket_name/object_name`. Object versioning is not supported. For more 2171 // information, refer to Google Cloud Storage Request URIs 2172 // (https://cloud.google.com/storage/docs/reference-uris). 2173 Uri string `json:"uri,omitempty"` 2174 // ForceSendFields is a list of field names (e.g. "Content") to unconditionally 2175 // include in API requests. By default, fields with empty or default values are 2176 // omitted from API requests. See 2177 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2178 // details. 2179 ForceSendFields []string `json:"-"` 2180 // NullFields is a list of field names (e.g. "Content") to include in API 2181 // requests with the JSON null value. By default, fields with empty values are 2182 // omitted from API requests. See 2183 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2184 NullFields []string `json:"-"` 2185 } 2186 2187 func (s *GoogleCloudDocumentaiV1beta1Document) MarshalJSON() ([]byte, error) { 2188 type NoMethod GoogleCloudDocumentaiV1beta1Document 2189 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2190 } 2191 2192 // GoogleCloudDocumentaiV1beta1DocumentEntity: An entity that could be a phrase 2193 // in the text or a property that belongs to the document. It is a known entity 2194 // type, such as a person, an organization, or location. 2195 type GoogleCloudDocumentaiV1beta1DocumentEntity struct { 2196 // Confidence: Optional. Confidence of detected Schema entity. Range `[0, 1]`. 2197 Confidence float64 `json:"confidence,omitempty"` 2198 // Id: Optional. Canonical id. This will be a unique value in the entity list 2199 // for this document. 2200 Id string `json:"id,omitempty"` 2201 // MentionId: Optional. Deprecated. Use `id` field instead. 2202 MentionId string `json:"mentionId,omitempty"` 2203 // MentionText: Optional. Text value of the entity e.g. `1600 Amphitheatre 2204 // Pkwy`. 2205 MentionText string `json:"mentionText,omitempty"` 2206 // NormalizedValue: Optional. Normalized entity value. Absent if the extracted 2207 // value could not be converted or the type (e.g. address) is not supported for 2208 // certain parsers. This field is also only populated for certain supported 2209 // document types. 2210 NormalizedValue *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"` 2211 // PageAnchor: Optional. Represents the provenance of this entity wrt. the 2212 // location on the page where it was found. 2213 PageAnchor *GoogleCloudDocumentaiV1beta1DocumentPageAnchor `json:"pageAnchor,omitempty"` 2214 // Properties: Optional. Entities can be nested to form a hierarchical data 2215 // structure representing the content in the document. 2216 Properties []*GoogleCloudDocumentaiV1beta1DocumentEntity `json:"properties,omitempty"` 2217 // Provenance: Optional. The history of this annotation. 2218 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2219 // Redacted: Optional. Whether the entity will be redacted for 2220 // de-identification purposes. 2221 Redacted bool `json:"redacted,omitempty"` 2222 // TextAnchor: Optional. Provenance of the entity. Text anchor indexing into 2223 // the Document.text. 2224 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` 2225 // Type: Required. Entity type from a schema e.g. `Address`. 2226 Type string `json:"type,omitempty"` 2227 // ForceSendFields is a list of field names (e.g. "Confidence") to 2228 // unconditionally include in API requests. By default, fields with empty or 2229 // default values are omitted from API requests. See 2230 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2231 // details. 2232 ForceSendFields []string `json:"-"` 2233 // NullFields is a list of field names (e.g. "Confidence") to include in API 2234 // requests with the JSON null value. By default, fields with empty values are 2235 // omitted from API requests. See 2236 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2237 NullFields []string `json:"-"` 2238 } 2239 2240 func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) MarshalJSON() ([]byte, error) { 2241 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity 2242 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2243 } 2244 2245 func (s *GoogleCloudDocumentaiV1beta1DocumentEntity) UnmarshalJSON(data []byte) error { 2246 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntity 2247 var s1 struct { 2248 Confidence gensupport.JSONFloat64 `json:"confidence"` 2249 *NoMethod 2250 } 2251 s1.NoMethod = (*NoMethod)(s) 2252 if err := json.Unmarshal(data, &s1); err != nil { 2253 return err 2254 } 2255 s.Confidence = float64(s1.Confidence) 2256 return nil 2257 } 2258 2259 // GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue: Parsed and 2260 // normalized entity value. 2261 type GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue struct { 2262 // AddressValue: Postal address. See also: 2263 // https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto 2264 AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"` 2265 // BooleanValue: Boolean value. Can be used for entities with binary values, or 2266 // for checkboxes. 2267 BooleanValue bool `json:"booleanValue,omitempty"` 2268 // DateValue: Date value. Includes year, month, day. See also: 2269 // https://github.com/googleapis/googleapis/blob/master/google/type/date.proto 2270 DateValue *GoogleTypeDate `json:"dateValue,omitempty"` 2271 // DatetimeValue: DateTime value. Includes date, time, and timezone. See also: 2272 // https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto 2273 DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"` 2274 // FloatValue: Float value. 2275 FloatValue float64 `json:"floatValue,omitempty"` 2276 // IntegerValue: Integer value. 2277 IntegerValue int64 `json:"integerValue,omitempty"` 2278 // MoneyValue: Money value. See also: 2279 // https://github.com/googleapis/googleapis/blob/master/google/type/money.proto 2280 MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"` 2281 // Text: Optional. An optional field to store a normalized string. For some 2282 // entity types, one of respective `structured_value` fields may also be 2283 // populated. Also not all the types of `structured_value` will be normalized. 2284 // For example, some processors may not generate `float` or `integer` 2285 // normalized text by default. Below are sample formats mapped to structured 2286 // values. - Money/Currency type (`money_value`) is in the ISO 4217 text 2287 // format. - Date type (`date_value`) is in the ISO 8601 text format. - 2288 // Datetime type (`datetime_value`) is in the ISO 8601 text format. 2289 Text string `json:"text,omitempty"` 2290 // ForceSendFields is a list of field names (e.g. "AddressValue") to 2291 // unconditionally include in API requests. By default, fields with empty or 2292 // default values are omitted from API requests. See 2293 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2294 // details. 2295 ForceSendFields []string `json:"-"` 2296 // NullFields is a list of field names (e.g. "AddressValue") to include in API 2297 // requests with the JSON null value. By default, fields with empty values are 2298 // omitted from API requests. See 2299 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2300 NullFields []string `json:"-"` 2301 } 2302 2303 func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) { 2304 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue 2305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2306 } 2307 2308 func (s *GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error { 2309 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue 2310 var s1 struct { 2311 FloatValue gensupport.JSONFloat64 `json:"floatValue"` 2312 *NoMethod 2313 } 2314 s1.NoMethod = (*NoMethod)(s) 2315 if err := json.Unmarshal(data, &s1); err != nil { 2316 return err 2317 } 2318 s.FloatValue = float64(s1.FloatValue) 2319 return nil 2320 } 2321 2322 // GoogleCloudDocumentaiV1beta1DocumentEntityRelation: Relationship between 2323 // Entities. 2324 type GoogleCloudDocumentaiV1beta1DocumentEntityRelation struct { 2325 // ObjectId: Object entity id. 2326 ObjectId string `json:"objectId,omitempty"` 2327 // Relation: Relationship description. 2328 Relation string `json:"relation,omitempty"` 2329 // SubjectId: Subject entity id. 2330 SubjectId string `json:"subjectId,omitempty"` 2331 // ForceSendFields is a list of field names (e.g. "ObjectId") to 2332 // unconditionally include in API requests. By default, fields with empty or 2333 // default values are omitted from API requests. See 2334 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2335 // details. 2336 ForceSendFields []string `json:"-"` 2337 // NullFields is a list of field names (e.g. "ObjectId") to include in API 2338 // requests with the JSON null value. By default, fields with empty values are 2339 // omitted from API requests. See 2340 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2341 NullFields []string `json:"-"` 2342 } 2343 2344 func (s *GoogleCloudDocumentaiV1beta1DocumentEntityRelation) MarshalJSON() ([]byte, error) { 2345 type NoMethod GoogleCloudDocumentaiV1beta1DocumentEntityRelation 2346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2347 } 2348 2349 // GoogleCloudDocumentaiV1beta1DocumentPage: A page in a Document. 2350 type GoogleCloudDocumentaiV1beta1DocumentPage struct { 2351 // Blocks: A list of visually detected text blocks on the page. A block has a 2352 // set of lines (collected into paragraphs) that have a common line-spacing and 2353 // orientation. 2354 Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"` 2355 // DetectedBarcodes: A list of detected barcodes. 2356 DetectedBarcodes []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` 2357 // DetectedLanguages: A list of detected languages together with confidence. 2358 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2359 // Dimension: Physical dimension of the page. 2360 Dimension *GoogleCloudDocumentaiV1beta1DocumentPageDimension `json:"dimension,omitempty"` 2361 // FormFields: A list of visually detected form fields on the page. 2362 FormFields []*GoogleCloudDocumentaiV1beta1DocumentPageFormField `json:"formFields,omitempty"` 2363 // Image: Rendered image for this page. This image is preprocessed to remove 2364 // any skew, rotation, and distortions such that the annotation bounding boxes 2365 // can be upright and axis-aligned. 2366 Image *GoogleCloudDocumentaiV1beta1DocumentPageImage `json:"image,omitempty"` 2367 // ImageQualityScores: Image quality scores. 2368 ImageQualityScores *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"` 2369 // Layout: Layout for the page. 2370 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2371 // Lines: A list of visually detected text lines on the page. A collection of 2372 // tokens that a human would perceive as a line. 2373 Lines []*GoogleCloudDocumentaiV1beta1DocumentPageLine `json:"lines,omitempty"` 2374 // PageNumber: 1-based index for current Page in a parent Document. Useful when 2375 // a page is taken out of a Document for individual processing. 2376 PageNumber int64 `json:"pageNumber,omitempty"` 2377 // Paragraphs: A list of visually detected text paragraphs on the page. A 2378 // collection of lines that a human would perceive as a paragraph. 2379 Paragraphs []*GoogleCloudDocumentaiV1beta1DocumentPageParagraph `json:"paragraphs,omitempty"` 2380 // Provenance: The history of this page. 2381 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2382 // Symbols: A list of visually detected symbols on the page. 2383 Symbols []*GoogleCloudDocumentaiV1beta1DocumentPageSymbol `json:"symbols,omitempty"` 2384 // Tables: A list of visually detected tables on the page. 2385 Tables []*GoogleCloudDocumentaiV1beta1DocumentPageTable `json:"tables,omitempty"` 2386 // Tokens: A list of visually detected tokens on the page. 2387 Tokens []*GoogleCloudDocumentaiV1beta1DocumentPageToken `json:"tokens,omitempty"` 2388 // Transforms: Transformation matrices that were applied to the original 2389 // document image to produce Page.image. 2390 Transforms []*GoogleCloudDocumentaiV1beta1DocumentPageMatrix `json:"transforms,omitempty"` 2391 // VisualElements: A list of detected non-text visual elements e.g. checkbox, 2392 // signature etc. on the page. 2393 VisualElements []*GoogleCloudDocumentaiV1beta1DocumentPageVisualElement `json:"visualElements,omitempty"` 2394 // ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally 2395 // include in API requests. By default, fields with empty or default values are 2396 // omitted from API requests. See 2397 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2398 // details. 2399 ForceSendFields []string `json:"-"` 2400 // NullFields is a list of field names (e.g. "Blocks") to include in API 2401 // requests with the JSON null value. By default, fields with empty values are 2402 // omitted from API requests. See 2403 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2404 NullFields []string `json:"-"` 2405 } 2406 2407 func (s *GoogleCloudDocumentaiV1beta1DocumentPage) MarshalJSON() ([]byte, error) { 2408 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPage 2409 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2410 } 2411 2412 // GoogleCloudDocumentaiV1beta1DocumentPageAnchor: Referencing the visual 2413 // context of the entity in the Document.pages. Page anchors can be cross-page, 2414 // consist of multiple bounding polygons and optionally reference specific 2415 // layout element types. 2416 type GoogleCloudDocumentaiV1beta1DocumentPageAnchor struct { 2417 // PageRefs: One or more references to visual page elements 2418 PageRefs []*GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef `json:"pageRefs,omitempty"` 2419 // ForceSendFields is a list of field names (e.g. "PageRefs") to 2420 // unconditionally include in API requests. By default, fields with empty or 2421 // default values are omitted from API requests. See 2422 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2423 // details. 2424 ForceSendFields []string `json:"-"` 2425 // NullFields is a list of field names (e.g. "PageRefs") to include in API 2426 // requests with the JSON null value. By default, fields with empty values are 2427 // omitted from API requests. See 2428 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2429 NullFields []string `json:"-"` 2430 } 2431 2432 func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchor) MarshalJSON() ([]byte, error) { 2433 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchor 2434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2435 } 2436 2437 // GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef: Represents a weak 2438 // reference to a page element within a document. 2439 type GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef struct { 2440 // BoundingPoly: Optional. Identifies the bounding polygon of a layout element 2441 // on the page. If `layout_type` is set, the bounding polygon must be exactly 2442 // the same to the layout element it's referring to. 2443 BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"` 2444 // Confidence: Optional. Confidence of detected page element, if applicable. 2445 // Range `[0, 1]`. 2446 Confidence float64 `json:"confidence,omitempty"` 2447 // LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead. 2448 LayoutId string `json:"layoutId,omitempty"` 2449 // LayoutType: Optional. The type of the layout element that is being 2450 // referenced if any. 2451 // 2452 // Possible values: 2453 // "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified. 2454 // "BLOCK" - References a Page.blocks element. 2455 // "PARAGRAPH" - References a Page.paragraphs element. 2456 // "LINE" - References a Page.lines element. 2457 // "TOKEN" - References a Page.tokens element. 2458 // "VISUAL_ELEMENT" - References a Page.visual_elements element. 2459 // "TABLE" - Refrrences a Page.tables element. 2460 // "FORM_FIELD" - References a Page.form_fields element. 2461 LayoutType string `json:"layoutType,omitempty"` 2462 // Page: Required. Index into the Document.pages element, for example using 2463 // `Document.pages` to locate the related page element. This field is skipped 2464 // when its value is the default `0`. See 2465 // https://developers.google.com/protocol-buffers/docs/proto3#json. 2466 Page int64 `json:"page,omitempty,string"` 2467 // ForceSendFields is a list of field names (e.g. "BoundingPoly") to 2468 // unconditionally include in API requests. By default, fields with empty or 2469 // default values are omitted from API requests. See 2470 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2471 // details. 2472 ForceSendFields []string `json:"-"` 2473 // NullFields is a list of field names (e.g. "BoundingPoly") to include in API 2474 // requests with the JSON null value. By default, fields with empty values are 2475 // omitted from API requests. See 2476 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2477 NullFields []string `json:"-"` 2478 } 2479 2480 func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) { 2481 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef 2482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2483 } 2484 2485 func (s *GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error { 2486 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef 2487 var s1 struct { 2488 Confidence gensupport.JSONFloat64 `json:"confidence"` 2489 *NoMethod 2490 } 2491 s1.NoMethod = (*NoMethod)(s) 2492 if err := json.Unmarshal(data, &s1); err != nil { 2493 return err 2494 } 2495 s.Confidence = float64(s1.Confidence) 2496 return nil 2497 } 2498 2499 // GoogleCloudDocumentaiV1beta1DocumentPageBlock: A block has a set of lines 2500 // (collected into paragraphs) that have a common line-spacing and orientation. 2501 type GoogleCloudDocumentaiV1beta1DocumentPageBlock struct { 2502 // DetectedLanguages: A list of detected languages together with confidence. 2503 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2504 // Layout: Layout for Block. 2505 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2506 // Provenance: The history of this annotation. 2507 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2508 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 2509 // unconditionally include in API requests. By default, fields with empty or 2510 // default values are omitted from API requests. See 2511 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2512 // details. 2513 ForceSendFields []string `json:"-"` 2514 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 2515 // API requests with the JSON null value. By default, fields with empty values 2516 // are omitted from API requests. See 2517 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2518 NullFields []string `json:"-"` 2519 } 2520 2521 func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, error) { 2522 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageBlock 2523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2524 } 2525 2526 // GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode: A detected barcode. 2527 type GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode struct { 2528 // Barcode: Detailed barcode information of the DetectedBarcode. 2529 Barcode *GoogleCloudDocumentaiV1beta1Barcode `json:"barcode,omitempty"` 2530 // Layout: Layout for DetectedBarcode. 2531 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2532 // ForceSendFields is a list of field names (e.g. "Barcode") to unconditionally 2533 // include in API requests. By default, fields with empty or default values are 2534 // omitted from API requests. See 2535 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2536 // details. 2537 ForceSendFields []string `json:"-"` 2538 // NullFields is a list of field names (e.g. "Barcode") to include in API 2539 // requests with the JSON null value. By default, fields with empty values are 2540 // omitted from API requests. See 2541 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2542 NullFields []string `json:"-"` 2543 } 2544 2545 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { 2546 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode 2547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2548 } 2549 2550 // GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected language 2551 // for a structural component. 2552 type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct { 2553 // Confidence: Confidence of detected language. Range `[0, 1]`. 2554 Confidence float64 `json:"confidence,omitempty"` 2555 // LanguageCode: The BCP-47 language code 2556 // (https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as 2557 // `en-US` or `sr-Latn`. 2558 LanguageCode string `json:"languageCode,omitempty"` 2559 // ForceSendFields is a list of field names (e.g. "Confidence") to 2560 // unconditionally include in API requests. By default, fields with empty or 2561 // default values are omitted from API requests. See 2562 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2563 // details. 2564 ForceSendFields []string `json:"-"` 2565 // NullFields is a list of field names (e.g. "Confidence") to include in API 2566 // requests with the JSON null value. By default, fields with empty values are 2567 // omitted from API requests. See 2568 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2569 NullFields []string `json:"-"` 2570 } 2571 2572 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) { 2573 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage 2574 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2575 } 2576 2577 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error { 2578 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage 2579 var s1 struct { 2580 Confidence gensupport.JSONFloat64 `json:"confidence"` 2581 *NoMethod 2582 } 2583 s1.NoMethod = (*NoMethod)(s) 2584 if err := json.Unmarshal(data, &s1); err != nil { 2585 return err 2586 } 2587 s.Confidence = float64(s1.Confidence) 2588 return nil 2589 } 2590 2591 // GoogleCloudDocumentaiV1beta1DocumentPageDimension: Dimension for the page. 2592 type GoogleCloudDocumentaiV1beta1DocumentPageDimension struct { 2593 // Height: Page height. 2594 Height float64 `json:"height,omitempty"` 2595 // Unit: Dimension unit. 2596 Unit string `json:"unit,omitempty"` 2597 // Width: Page width. 2598 Width float64 `json:"width,omitempty"` 2599 // ForceSendFields is a list of field names (e.g. "Height") to unconditionally 2600 // include in API requests. By default, fields with empty or default values are 2601 // omitted from API requests. See 2602 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2603 // details. 2604 ForceSendFields []string `json:"-"` 2605 // NullFields is a list of field names (e.g. "Height") to include in API 2606 // requests with the JSON null value. By default, fields with empty values are 2607 // omitted from API requests. See 2608 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2609 NullFields []string `json:"-"` 2610 } 2611 2612 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) MarshalJSON() ([]byte, error) { 2613 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension 2614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2615 } 2616 2617 func (s *GoogleCloudDocumentaiV1beta1DocumentPageDimension) UnmarshalJSON(data []byte) error { 2618 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDimension 2619 var s1 struct { 2620 Height gensupport.JSONFloat64 `json:"height"` 2621 Width gensupport.JSONFloat64 `json:"width"` 2622 *NoMethod 2623 } 2624 s1.NoMethod = (*NoMethod)(s) 2625 if err := json.Unmarshal(data, &s1); err != nil { 2626 return err 2627 } 2628 s.Height = float64(s1.Height) 2629 s.Width = float64(s1.Width) 2630 return nil 2631 } 2632 2633 // GoogleCloudDocumentaiV1beta1DocumentPageFormField: A form field detected on 2634 // the page. 2635 type GoogleCloudDocumentaiV1beta1DocumentPageFormField struct { 2636 // CorrectedKeyText: Created for Labeling UI to export key text. If corrections 2637 // were made to the text identified by the `field_name.text_anchor`, this field 2638 // will contain the correction. 2639 CorrectedKeyText string `json:"correctedKeyText,omitempty"` 2640 // CorrectedValueText: Created for Labeling UI to export value text. If 2641 // corrections were made to the text identified by the 2642 // `field_value.text_anchor`, this field will contain the correction. 2643 CorrectedValueText string `json:"correctedValueText,omitempty"` 2644 // FieldName: Layout for the FormField name. e.g. `Address`, `Email`, `Grand 2645 // total`, `Phone number`, etc. 2646 FieldName *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldName,omitempty"` 2647 // FieldValue: Layout for the FormField value. 2648 FieldValue *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"fieldValue,omitempty"` 2649 // NameDetectedLanguages: A list of detected languages for name together with 2650 // confidence. 2651 NameDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"` 2652 // Provenance: The history of this annotation. 2653 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2654 // ValueDetectedLanguages: A list of detected languages for value together with 2655 // confidence. 2656 ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"` 2657 // ValueType: If the value is non-textual, this field represents the type. 2658 // Current valid values are: - blank (this indicates the `field_value` is 2659 // normal text) - `unfilled_checkbox` - `filled_checkbox` 2660 ValueType string `json:"valueType,omitempty"` 2661 // ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to 2662 // unconditionally include in API requests. By default, fields with empty or 2663 // default values are omitted from API requests. See 2664 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2665 // details. 2666 ForceSendFields []string `json:"-"` 2667 // NullFields is a list of field names (e.g. "CorrectedKeyText") to include in 2668 // API requests with the JSON null value. By default, fields with empty values 2669 // are omitted from API requests. See 2670 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2671 NullFields []string `json:"-"` 2672 } 2673 2674 func (s *GoogleCloudDocumentaiV1beta1DocumentPageFormField) MarshalJSON() ([]byte, error) { 2675 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageFormField 2676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2677 } 2678 2679 // GoogleCloudDocumentaiV1beta1DocumentPageImage: Rendered image contents for 2680 // this page. 2681 type GoogleCloudDocumentaiV1beta1DocumentPageImage struct { 2682 // Content: Raw byte content of the image. 2683 Content string `json:"content,omitempty"` 2684 // Height: Height of the image in pixels. 2685 Height int64 `json:"height,omitempty"` 2686 // MimeType: Encoding media type (MIME type) 2687 // (https://www.iana.org/assignments/media-types/media-types.xhtml) for the 2688 // image. 2689 MimeType string `json:"mimeType,omitempty"` 2690 // Width: Width of the image in pixels. 2691 Width int64 `json:"width,omitempty"` 2692 // ForceSendFields is a list of field names (e.g. "Content") to unconditionally 2693 // include in API requests. By default, fields with empty or default values are 2694 // omitted from API requests. See 2695 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2696 // details. 2697 ForceSendFields []string `json:"-"` 2698 // NullFields is a list of field names (e.g. "Content") to include in API 2699 // requests with the JSON null value. By default, fields with empty values are 2700 // omitted from API requests. See 2701 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2702 NullFields []string `json:"-"` 2703 } 2704 2705 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImage) MarshalJSON() ([]byte, error) { 2706 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImage 2707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2708 } 2709 2710 // GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores: Image quality 2711 // scores for the page image. 2712 type GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores struct { 2713 // DetectedDefects: A list of detected defects. 2714 DetectedDefects []*GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"` 2715 // QualityScore: The overall quality score. Range `[0, 1]` where `1` is perfect 2716 // quality. 2717 QualityScore float64 `json:"qualityScore,omitempty"` 2718 // ForceSendFields is a list of field names (e.g. "DetectedDefects") to 2719 // unconditionally include in API requests. By default, fields with empty or 2720 // default values are omitted from API requests. See 2721 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2722 // details. 2723 ForceSendFields []string `json:"-"` 2724 // NullFields is a list of field names (e.g. "DetectedDefects") to include in 2725 // API requests with the JSON null value. By default, fields with empty values 2726 // are omitted from API requests. See 2727 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2728 NullFields []string `json:"-"` 2729 } 2730 2731 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) { 2732 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores 2733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2734 } 2735 2736 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error { 2737 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores 2738 var s1 struct { 2739 QualityScore gensupport.JSONFloat64 `json:"qualityScore"` 2740 *NoMethod 2741 } 2742 s1.NoMethod = (*NoMethod)(s) 2743 if err := json.Unmarshal(data, &s1); err != nil { 2744 return err 2745 } 2746 s.QualityScore = float64(s1.QualityScore) 2747 return nil 2748 } 2749 2750 // GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect: 2751 // Image Quality Defects 2752 type GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect struct { 2753 // Confidence: Confidence of detected defect. Range `[0, 1]` where `1` 2754 // indicates strong confidence that the defect exists. 2755 Confidence float64 `json:"confidence,omitempty"` 2756 // Type: Name of the defect type. Supported values are: - 2757 // `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - 2758 // `quality/defect_faint` - `quality/defect_text_too_small` - 2759 // `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - 2760 // `quality/defect_glare` 2761 Type string `json:"type,omitempty"` 2762 // ForceSendFields is a list of field names (e.g. "Confidence") to 2763 // unconditionally include in API requests. By default, fields with empty or 2764 // default values are omitted from API requests. See 2765 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2766 // details. 2767 ForceSendFields []string `json:"-"` 2768 // NullFields is a list of field names (e.g. "Confidence") to include in API 2769 // requests with the JSON null value. By default, fields with empty values are 2770 // omitted from API requests. See 2771 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2772 NullFields []string `json:"-"` 2773 } 2774 2775 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) { 2776 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect 2777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2778 } 2779 2780 func (s *GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error { 2781 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect 2782 var s1 struct { 2783 Confidence gensupport.JSONFloat64 `json:"confidence"` 2784 *NoMethod 2785 } 2786 s1.NoMethod = (*NoMethod)(s) 2787 if err := json.Unmarshal(data, &s1); err != nil { 2788 return err 2789 } 2790 s.Confidence = float64(s1.Confidence) 2791 return nil 2792 } 2793 2794 // GoogleCloudDocumentaiV1beta1DocumentPageLayout: Visual element describing a 2795 // layout unit on a page. 2796 type GoogleCloudDocumentaiV1beta1DocumentPageLayout struct { 2797 // BoundingPoly: The bounding polygon for the Layout. 2798 BoundingPoly *GoogleCloudDocumentaiV1beta1BoundingPoly `json:"boundingPoly,omitempty"` 2799 // Confidence: Confidence of the current Layout within context of the object 2800 // this layout is for. e.g. confidence can be for a single token, a table, a 2801 // visual element, etc. depending on context. Range `[0, 1]`. 2802 Confidence float64 `json:"confidence,omitempty"` 2803 // Orientation: Detected orientation for the Layout. 2804 // 2805 // Possible values: 2806 // "ORIENTATION_UNSPECIFIED" - Unspecified orientation. 2807 // "PAGE_UP" - Orientation is aligned with page up. 2808 // "PAGE_RIGHT" - Orientation is aligned with page right. Turn the head 90 2809 // degrees clockwise from upright to read. 2810 // "PAGE_DOWN" - Orientation is aligned with page down. Turn the head 180 2811 // degrees from upright to read. 2812 // "PAGE_LEFT" - Orientation is aligned with page left. Turn the head 90 2813 // degrees counterclockwise from upright to read. 2814 Orientation string `json:"orientation,omitempty"` 2815 // TextAnchor: Text anchor indexing into the Document.text. 2816 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` 2817 // ForceSendFields is a list of field names (e.g. "BoundingPoly") to 2818 // unconditionally include in API requests. By default, fields with empty or 2819 // default values are omitted from API requests. See 2820 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2821 // details. 2822 ForceSendFields []string `json:"-"` 2823 // NullFields is a list of field names (e.g. "BoundingPoly") to include in API 2824 // requests with the JSON null value. By default, fields with empty values are 2825 // omitted from API requests. See 2826 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2827 NullFields []string `json:"-"` 2828 } 2829 2830 func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) MarshalJSON() ([]byte, error) { 2831 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout 2832 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2833 } 2834 2835 func (s *GoogleCloudDocumentaiV1beta1DocumentPageLayout) UnmarshalJSON(data []byte) error { 2836 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLayout 2837 var s1 struct { 2838 Confidence gensupport.JSONFloat64 `json:"confidence"` 2839 *NoMethod 2840 } 2841 s1.NoMethod = (*NoMethod)(s) 2842 if err := json.Unmarshal(data, &s1); err != nil { 2843 return err 2844 } 2845 s.Confidence = float64(s1.Confidence) 2846 return nil 2847 } 2848 2849 // GoogleCloudDocumentaiV1beta1DocumentPageLine: A collection of tokens that a 2850 // human would perceive as a line. Does not cross column boundaries, can be 2851 // horizontal, vertical, etc. 2852 type GoogleCloudDocumentaiV1beta1DocumentPageLine struct { 2853 // DetectedLanguages: A list of detected languages together with confidence. 2854 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2855 // Layout: Layout for Line. 2856 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2857 // Provenance: The history of this annotation. 2858 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2859 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 2860 // unconditionally include in API requests. By default, fields with empty or 2861 // default values are omitted from API requests. See 2862 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2863 // details. 2864 ForceSendFields []string `json:"-"` 2865 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 2866 // API requests with the JSON null value. By default, fields with empty values 2867 // are omitted from API requests. See 2868 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2869 NullFields []string `json:"-"` 2870 } 2871 2872 func (s *GoogleCloudDocumentaiV1beta1DocumentPageLine) MarshalJSON() ([]byte, error) { 2873 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageLine 2874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2875 } 2876 2877 // GoogleCloudDocumentaiV1beta1DocumentPageMatrix: Representation for 2878 // transformation matrix, intended to be compatible and used with OpenCV format 2879 // for image manipulation. 2880 type GoogleCloudDocumentaiV1beta1DocumentPageMatrix struct { 2881 // Cols: Number of columns in the matrix. 2882 Cols int64 `json:"cols,omitempty"` 2883 // Data: The matrix data. 2884 Data string `json:"data,omitempty"` 2885 // Rows: Number of rows in the matrix. 2886 Rows int64 `json:"rows,omitempty"` 2887 // Type: This encodes information about what data type the matrix uses. For 2888 // example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV 2889 // primitive data types, please refer to 2890 // https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html 2891 Type int64 `json:"type,omitempty"` 2892 // ForceSendFields is a list of field names (e.g. "Cols") to unconditionally 2893 // include in API requests. By default, fields with empty or default values are 2894 // omitted from API requests. See 2895 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2896 // details. 2897 ForceSendFields []string `json:"-"` 2898 // NullFields is a list of field names (e.g. "Cols") to include in API requests 2899 // with the JSON null value. By default, fields with empty values are omitted 2900 // from API requests. See 2901 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2902 NullFields []string `json:"-"` 2903 } 2904 2905 func (s *GoogleCloudDocumentaiV1beta1DocumentPageMatrix) MarshalJSON() ([]byte, error) { 2906 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageMatrix 2907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2908 } 2909 2910 // GoogleCloudDocumentaiV1beta1DocumentPageParagraph: A collection of lines 2911 // that a human would perceive as a paragraph. 2912 type GoogleCloudDocumentaiV1beta1DocumentPageParagraph struct { 2913 // DetectedLanguages: A list of detected languages together with confidence. 2914 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2915 // Layout: Layout for Paragraph. 2916 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2917 // Provenance: The history of this annotation. 2918 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2919 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 2920 // unconditionally include in API requests. By default, fields with empty or 2921 // default values are omitted from API requests. See 2922 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2923 // details. 2924 ForceSendFields []string `json:"-"` 2925 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 2926 // API requests with the JSON null value. By default, fields with empty values 2927 // are omitted from API requests. See 2928 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2929 NullFields []string `json:"-"` 2930 } 2931 2932 func (s *GoogleCloudDocumentaiV1beta1DocumentPageParagraph) MarshalJSON() ([]byte, error) { 2933 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageParagraph 2934 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2935 } 2936 2937 // GoogleCloudDocumentaiV1beta1DocumentPageSymbol: A detected symbol. 2938 type GoogleCloudDocumentaiV1beta1DocumentPageSymbol struct { 2939 // DetectedLanguages: A list of detected languages together with confidence. 2940 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2941 // Layout: Layout for Symbol. 2942 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2943 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 2944 // unconditionally include in API requests. By default, fields with empty or 2945 // default values are omitted from API requests. See 2946 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2947 // details. 2948 ForceSendFields []string `json:"-"` 2949 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 2950 // API requests with the JSON null value. By default, fields with empty values 2951 // are omitted from API requests. See 2952 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2953 NullFields []string `json:"-"` 2954 } 2955 2956 func (s *GoogleCloudDocumentaiV1beta1DocumentPageSymbol) MarshalJSON() ([]byte, error) { 2957 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageSymbol 2958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2959 } 2960 2961 // GoogleCloudDocumentaiV1beta1DocumentPageTable: A table representation 2962 // similar to HTML table structure. 2963 type GoogleCloudDocumentaiV1beta1DocumentPageTable struct { 2964 // BodyRows: Body rows of the table. 2965 BodyRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"bodyRows,omitempty"` 2966 // DetectedLanguages: A list of detected languages together with confidence. 2967 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2968 // HeaderRows: Header rows of the table. 2969 HeaderRows []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow `json:"headerRows,omitempty"` 2970 // Layout: Layout for Table. 2971 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 2972 // Provenance: The history of this table. 2973 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 2974 // ForceSendFields is a list of field names (e.g. "BodyRows") to 2975 // unconditionally include in API requests. By default, fields with empty or 2976 // default values are omitted from API requests. See 2977 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 2978 // details. 2979 ForceSendFields []string `json:"-"` 2980 // NullFields is a list of field names (e.g. "BodyRows") to include in API 2981 // requests with the JSON null value. By default, fields with empty values are 2982 // omitted from API requests. See 2983 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 2984 NullFields []string `json:"-"` 2985 } 2986 2987 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTable) MarshalJSON() ([]byte, error) { 2988 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTable 2989 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 2990 } 2991 2992 // GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell: A cell 2993 // representation inside the table. 2994 type GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell struct { 2995 // ColSpan: How many columns this cell spans. 2996 ColSpan int64 `json:"colSpan,omitempty"` 2997 // DetectedLanguages: A list of detected languages together with confidence. 2998 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 2999 // Layout: Layout for TableCell. 3000 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 3001 // RowSpan: How many rows this cell spans. 3002 RowSpan int64 `json:"rowSpan,omitempty"` 3003 // ForceSendFields is a list of field names (e.g. "ColSpan") to unconditionally 3004 // include in API requests. By default, fields with empty or default values are 3005 // omitted from API requests. See 3006 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3007 // details. 3008 ForceSendFields []string `json:"-"` 3009 // NullFields is a list of field names (e.g. "ColSpan") to include in API 3010 // requests with the JSON null value. By default, fields with empty values are 3011 // omitted from API requests. See 3012 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3013 NullFields []string `json:"-"` 3014 } 3015 3016 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell) MarshalJSON() ([]byte, error) { 3017 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell 3018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3019 } 3020 3021 // GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow: A row of table cells. 3022 type GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow struct { 3023 // Cells: Cells that make up this row. 3024 Cells []*GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell `json:"cells,omitempty"` 3025 // ForceSendFields is a list of field names (e.g. "Cells") to unconditionally 3026 // include in API requests. By default, fields with empty or default values are 3027 // omitted from API requests. See 3028 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3029 // details. 3030 ForceSendFields []string `json:"-"` 3031 // NullFields is a list of field names (e.g. "Cells") to include in API 3032 // requests with the JSON null value. By default, fields with empty values are 3033 // omitted from API requests. See 3034 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3035 NullFields []string `json:"-"` 3036 } 3037 3038 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow) MarshalJSON() ([]byte, error) { 3039 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow 3040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3041 } 3042 3043 // GoogleCloudDocumentaiV1beta1DocumentPageToken: A detected token. 3044 type GoogleCloudDocumentaiV1beta1DocumentPageToken struct { 3045 // DetectedBreak: Detected break at the end of a Token. 3046 DetectedBreak *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"` 3047 // DetectedLanguages: A list of detected languages together with confidence. 3048 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 3049 // Layout: Layout for Token. 3050 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 3051 // Provenance: The history of this annotation. 3052 Provenance *GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 3053 // StyleInfo: Text style attributes. 3054 StyleInfo *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"` 3055 // ForceSendFields is a list of field names (e.g. "DetectedBreak") to 3056 // unconditionally include in API requests. By default, fields with empty or 3057 // default values are omitted from API requests. See 3058 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3059 // details. 3060 ForceSendFields []string `json:"-"` 3061 // NullFields is a list of field names (e.g. "DetectedBreak") to include in API 3062 // requests with the JSON null value. By default, fields with empty values are 3063 // omitted from API requests. See 3064 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3065 NullFields []string `json:"-"` 3066 } 3067 3068 func (s *GoogleCloudDocumentaiV1beta1DocumentPageToken) MarshalJSON() ([]byte, error) { 3069 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageToken 3070 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3071 } 3072 3073 // GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak: Detected break 3074 // at the end of a Token. 3075 type GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak struct { 3076 // Type: Detected break type. 3077 // 3078 // Possible values: 3079 // "TYPE_UNSPECIFIED" - Unspecified break type. 3080 // "SPACE" - A single whitespace. 3081 // "WIDE_SPACE" - A wider whitespace. 3082 // "HYPHEN" - A hyphen that indicates that a token has been split across 3083 // lines. 3084 Type string `json:"type,omitempty"` 3085 // ForceSendFields is a list of field names (e.g. "Type") to unconditionally 3086 // include in API requests. By default, fields with empty or default values are 3087 // omitted from API requests. See 3088 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3089 // details. 3090 ForceSendFields []string `json:"-"` 3091 // NullFields is a list of field names (e.g. "Type") to include in API requests 3092 // with the JSON null value. By default, fields with empty values are omitted 3093 // from API requests. See 3094 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3095 NullFields []string `json:"-"` 3096 } 3097 3098 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) { 3099 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak 3100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3101 } 3102 3103 // GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo: Font and other text 3104 // style attributes. 3105 type GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo struct { 3106 // BackgroundColor: Color of the background. 3107 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"` 3108 // Bold: Whether the text is bold (equivalent to font_weight is at least 3109 // `700`). 3110 Bold bool `json:"bold,omitempty"` 3111 // FontSize: Font size in points (`1` point is `¹⁄₇₂` inches). 3112 FontSize int64 `json:"fontSize,omitempty"` 3113 // FontType: Name or style of the font. 3114 FontType string `json:"fontType,omitempty"` 3115 // FontWeight: TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). 3116 // Normal is `400`, bold is `700`. 3117 FontWeight int64 `json:"fontWeight,omitempty"` 3118 // Handwritten: Whether the text is handwritten. 3119 Handwritten bool `json:"handwritten,omitempty"` 3120 // Italic: Whether the text is italic. 3121 Italic bool `json:"italic,omitempty"` 3122 // LetterSpacing: Letter spacing in points. 3123 LetterSpacing float64 `json:"letterSpacing,omitempty"` 3124 // PixelFontSize: Font size in pixels, equal to _unrounded font_size_ * 3125 // _resolution_ ÷ `72.0`. 3126 PixelFontSize float64 `json:"pixelFontSize,omitempty"` 3127 // Smallcaps: Whether the text is in small caps. This feature is not supported 3128 // yet. 3129 Smallcaps bool `json:"smallcaps,omitempty"` 3130 // Strikeout: Whether the text is strikethrough. This feature is not supported 3131 // yet. 3132 Strikeout bool `json:"strikeout,omitempty"` 3133 // Subscript: Whether the text is a subscript. This feature is not supported 3134 // yet. 3135 Subscript bool `json:"subscript,omitempty"` 3136 // Superscript: Whether the text is a superscript. This feature is not 3137 // supported yet. 3138 Superscript bool `json:"superscript,omitempty"` 3139 // TextColor: Color of the text. 3140 TextColor *GoogleTypeColor `json:"textColor,omitempty"` 3141 // Underlined: Whether the text is underlined. 3142 Underlined bool `json:"underlined,omitempty"` 3143 // ForceSendFields is a list of field names (e.g. "BackgroundColor") to 3144 // unconditionally include in API requests. By default, fields with empty or 3145 // default values are omitted from API requests. See 3146 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3147 // details. 3148 ForceSendFields []string `json:"-"` 3149 // NullFields is a list of field names (e.g. "BackgroundColor") to include in 3150 // API requests with the JSON null value. By default, fields with empty values 3151 // are omitted from API requests. See 3152 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3153 NullFields []string `json:"-"` 3154 } 3155 3156 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) { 3157 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo 3158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3159 } 3160 3161 func (s *GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error { 3162 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo 3163 var s1 struct { 3164 LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"` 3165 PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"` 3166 *NoMethod 3167 } 3168 s1.NoMethod = (*NoMethod)(s) 3169 if err := json.Unmarshal(data, &s1); err != nil { 3170 return err 3171 } 3172 s.LetterSpacing = float64(s1.LetterSpacing) 3173 s.PixelFontSize = float64(s1.PixelFontSize) 3174 return nil 3175 } 3176 3177 // GoogleCloudDocumentaiV1beta1DocumentPageVisualElement: Detected non-text 3178 // visual elements e.g. checkbox, signature etc. on the page. 3179 type GoogleCloudDocumentaiV1beta1DocumentPageVisualElement struct { 3180 // DetectedLanguages: A list of detected languages together with confidence. 3181 DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 3182 // Layout: Layout for VisualElement. 3183 Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` 3184 // Type: Type of the VisualElement. 3185 Type string `json:"type,omitempty"` 3186 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 3187 // unconditionally include in API requests. By default, fields with empty or 3188 // default values are omitted from API requests. See 3189 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3190 // details. 3191 ForceSendFields []string `json:"-"` 3192 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 3193 // API requests with the JSON null value. By default, fields with empty values 3194 // are omitted from API requests. See 3195 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3196 NullFields []string `json:"-"` 3197 } 3198 3199 func (s *GoogleCloudDocumentaiV1beta1DocumentPageVisualElement) MarshalJSON() ([]byte, error) { 3200 type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageVisualElement 3201 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3202 } 3203 3204 // GoogleCloudDocumentaiV1beta1DocumentProvenance: Structure to identify 3205 // provenance relationships between annotations in different revisions. 3206 type GoogleCloudDocumentaiV1beta1DocumentProvenance struct { 3207 // Id: The Id of this operation. Needs to be unique within the scope of the 3208 // revision. 3209 Id int64 `json:"id,omitempty"` 3210 // Parents: References to the original elements that are replaced. 3211 Parents []*GoogleCloudDocumentaiV1beta1DocumentProvenanceParent `json:"parents,omitempty"` 3212 // Revision: The index of the revision that produced this element. 3213 Revision int64 `json:"revision,omitempty"` 3214 // Type: The type of provenance operation. 3215 // 3216 // Possible values: 3217 // "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. If no operation 3218 // is specified a provenance entry is simply used to match against a `parent`. 3219 // "ADD" - Add an element. 3220 // "REMOVE" - Remove an element identified by `parent`. 3221 // "UPDATE" - Updates any fields within the given provenance scope of the 3222 // message. It overwrites the fields rather than replacing them. Use this when 3223 // you want to update a field value of an entity without also updating all the 3224 // child properties. 3225 // "REPLACE" - Currently unused. Replace an element identified by `parent`. 3226 // "EVAL_REQUESTED" - Deprecated. Request human review for the element 3227 // identified by `parent`. 3228 // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at human 3229 // review, confidence will be set to 1.0. 3230 // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation process. 3231 Type string `json:"type,omitempty"` 3232 // ForceSendFields is a list of field names (e.g. "Id") to unconditionally 3233 // include in API requests. By default, fields with empty or default values are 3234 // omitted from API requests. See 3235 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3236 // details. 3237 ForceSendFields []string `json:"-"` 3238 // NullFields is a list of field names (e.g. "Id") to include in API requests 3239 // with the JSON null value. By default, fields with empty values are omitted 3240 // from API requests. See 3241 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3242 NullFields []string `json:"-"` 3243 } 3244 3245 func (s *GoogleCloudDocumentaiV1beta1DocumentProvenance) MarshalJSON() ([]byte, error) { 3246 type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenance 3247 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3248 } 3249 3250 // GoogleCloudDocumentaiV1beta1DocumentProvenanceParent: The parent element the 3251 // current element is based on. Used for referencing/aligning, removal and 3252 // replacement operations. 3253 type GoogleCloudDocumentaiV1beta1DocumentProvenanceParent struct { 3254 // Id: The id of the parent provenance. 3255 Id int64 `json:"id,omitempty"` 3256 // Index: The index of the parent item in the corresponding item list (eg. list 3257 // of entities, properties within entities, etc.) in the parent revision. 3258 Index int64 `json:"index,omitempty"` 3259 // Revision: The index of the index into current revision's parent_ids list. 3260 Revision int64 `json:"revision,omitempty"` 3261 // ForceSendFields is a list of field names (e.g. "Id") to unconditionally 3262 // include in API requests. By default, fields with empty or default values are 3263 // omitted from API requests. See 3264 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3265 // details. 3266 ForceSendFields []string `json:"-"` 3267 // NullFields is a list of field names (e.g. "Id") to include in API requests 3268 // with the JSON null value. By default, fields with empty values are omitted 3269 // from API requests. See 3270 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3271 NullFields []string `json:"-"` 3272 } 3273 3274 func (s *GoogleCloudDocumentaiV1beta1DocumentProvenanceParent) MarshalJSON() ([]byte, error) { 3275 type NoMethod GoogleCloudDocumentaiV1beta1DocumentProvenanceParent 3276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3277 } 3278 3279 // GoogleCloudDocumentaiV1beta1DocumentRevision: Contains past or forward 3280 // revisions of this document. 3281 type GoogleCloudDocumentaiV1beta1DocumentRevision struct { 3282 // Agent: If the change was made by a person specify the name or id of that 3283 // person. 3284 Agent string `json:"agent,omitempty"` 3285 // CreateTime: The time that the revision was created, internally generated by 3286 // doc proto storage at the time of create. 3287 CreateTime string `json:"createTime,omitempty"` 3288 // HumanReview: Human Review information of this revision. 3289 HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"` 3290 // Id: Id of the revision, internally generated by doc proto storage. Unique 3291 // within the context of the document. 3292 Id string `json:"id,omitempty"` 3293 // Parent: The revisions that this revision is based on. This can include one 3294 // or more parent (when documents are merged.) This field represents the index 3295 // into the `revisions` field. 3296 Parent []int64 `json:"parent,omitempty"` 3297 // ParentIds: The revisions that this revision is based on. Must include all 3298 // the ids that have anything to do with this revision - eg. there are 3299 // `provenance.parent.revision` fields that index into this field. 3300 ParentIds []string `json:"parentIds,omitempty"` 3301 // Processor: If the annotation was made by processor identify the processor by 3302 // its resource name. 3303 Processor string `json:"processor,omitempty"` 3304 // ForceSendFields is a list of field names (e.g. "Agent") to unconditionally 3305 // include in API requests. By default, fields with empty or default values are 3306 // omitted from API requests. See 3307 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3308 // details. 3309 ForceSendFields []string `json:"-"` 3310 // NullFields is a list of field names (e.g. "Agent") to include in API 3311 // requests with the JSON null value. By default, fields with empty values are 3312 // omitted from API requests. See 3313 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3314 NullFields []string `json:"-"` 3315 } 3316 3317 func (s *GoogleCloudDocumentaiV1beta1DocumentRevision) MarshalJSON() ([]byte, error) { 3318 type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevision 3319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3320 } 3321 3322 // GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview: Human Review 3323 // information of the document. 3324 type GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview struct { 3325 // State: Human review state. e.g. `requested`, `succeeded`, `rejected`. 3326 State string `json:"state,omitempty"` 3327 // StateMessage: A message providing more details about the current state of 3328 // processing. For example, the rejection reason when the state is `rejected`. 3329 StateMessage string `json:"stateMessage,omitempty"` 3330 // ForceSendFields is a list of field names (e.g. "State") to unconditionally 3331 // include in API requests. By default, fields with empty or default values are 3332 // omitted from API requests. See 3333 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3334 // details. 3335 ForceSendFields []string `json:"-"` 3336 // NullFields is a list of field names (e.g. "State") to include in API 3337 // requests with the JSON null value. By default, fields with empty values are 3338 // omitted from API requests. See 3339 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3340 NullFields []string `json:"-"` 3341 } 3342 3343 func (s *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) { 3344 type NoMethod GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview 3345 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3346 } 3347 3348 // GoogleCloudDocumentaiV1beta1DocumentShardInfo: For a large document, 3349 // sharding may be performed to produce several document shards. Each document 3350 // shard contains this field to detail which shard it is. 3351 type GoogleCloudDocumentaiV1beta1DocumentShardInfo struct { 3352 // ShardCount: Total number of shards. 3353 ShardCount int64 `json:"shardCount,omitempty,string"` 3354 // ShardIndex: The 0-based index of this shard. 3355 ShardIndex int64 `json:"shardIndex,omitempty,string"` 3356 // TextOffset: The index of the first character in Document.text in the overall 3357 // document global text. 3358 TextOffset int64 `json:"textOffset,omitempty,string"` 3359 // ForceSendFields is a list of field names (e.g. "ShardCount") to 3360 // unconditionally include in API requests. By default, fields with empty or 3361 // default values are omitted from API requests. See 3362 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3363 // details. 3364 ForceSendFields []string `json:"-"` 3365 // NullFields is a list of field names (e.g. "ShardCount") to include in API 3366 // requests with the JSON null value. By default, fields with empty values are 3367 // omitted from API requests. See 3368 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3369 NullFields []string `json:"-"` 3370 } 3371 3372 func (s *GoogleCloudDocumentaiV1beta1DocumentShardInfo) MarshalJSON() ([]byte, error) { 3373 type NoMethod GoogleCloudDocumentaiV1beta1DocumentShardInfo 3374 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3375 } 3376 3377 // GoogleCloudDocumentaiV1beta1DocumentStyle: Annotation for common text style 3378 // attributes. This adheres to CSS conventions as much as possible. 3379 type GoogleCloudDocumentaiV1beta1DocumentStyle struct { 3380 // BackgroundColor: Text background color. 3381 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"` 3382 // Color: Text color. 3383 Color *GoogleTypeColor `json:"color,omitempty"` 3384 // FontFamily: Font family such as `Arial`, `Times New Roman`. 3385 // https://www.w3schools.com/cssref/pr_font_font-family.asp 3386 FontFamily string `json:"fontFamily,omitempty"` 3387 // FontSize: Font size. 3388 FontSize *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize `json:"fontSize,omitempty"` 3389 // FontWeight: Font weight 3390 // (https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are 3391 // `normal`, `bold`, `bolder`, and `lighter`. 3392 FontWeight string `json:"fontWeight,omitempty"` 3393 // TextAnchor: Text anchor indexing into the Document.text. 3394 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` 3395 // TextDecoration: Text decoration 3396 // (https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS 3397 // standard. 3398 TextDecoration string `json:"textDecoration,omitempty"` 3399 // TextStyle: Text style 3400 // (https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values 3401 // are `normal`, `italic`, and `oblique`. 3402 TextStyle string `json:"textStyle,omitempty"` 3403 // ForceSendFields is a list of field names (e.g. "BackgroundColor") to 3404 // unconditionally include in API requests. By default, fields with empty or 3405 // default values are omitted from API requests. See 3406 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3407 // details. 3408 ForceSendFields []string `json:"-"` 3409 // NullFields is a list of field names (e.g. "BackgroundColor") to include in 3410 // API requests with the JSON null value. By default, fields with empty values 3411 // are omitted from API requests. See 3412 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3413 NullFields []string `json:"-"` 3414 } 3415 3416 func (s *GoogleCloudDocumentaiV1beta1DocumentStyle) MarshalJSON() ([]byte, error) { 3417 type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyle 3418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3419 } 3420 3421 // GoogleCloudDocumentaiV1beta1DocumentStyleFontSize: Font size with unit. 3422 type GoogleCloudDocumentaiV1beta1DocumentStyleFontSize struct { 3423 // Size: Font size for the text. 3424 Size float64 `json:"size,omitempty"` 3425 // Unit: Unit for the font size. Follows CSS naming (such as `in`, `px`, and 3426 // `pt`). 3427 Unit string `json:"unit,omitempty"` 3428 // ForceSendFields is a list of field names (e.g. "Size") to unconditionally 3429 // include in API requests. By default, fields with empty or default values are 3430 // omitted from API requests. See 3431 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3432 // details. 3433 ForceSendFields []string `json:"-"` 3434 // NullFields is a list of field names (e.g. "Size") to include in API requests 3435 // with the JSON null value. By default, fields with empty values are omitted 3436 // from API requests. See 3437 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3438 NullFields []string `json:"-"` 3439 } 3440 3441 func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) MarshalJSON() ([]byte, error) { 3442 type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize 3443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3444 } 3445 3446 func (s *GoogleCloudDocumentaiV1beta1DocumentStyleFontSize) UnmarshalJSON(data []byte) error { 3447 type NoMethod GoogleCloudDocumentaiV1beta1DocumentStyleFontSize 3448 var s1 struct { 3449 Size gensupport.JSONFloat64 `json:"size"` 3450 *NoMethod 3451 } 3452 s1.NoMethod = (*NoMethod)(s) 3453 if err := json.Unmarshal(data, &s1); err != nil { 3454 return err 3455 } 3456 s.Size = float64(s1.Size) 3457 return nil 3458 } 3459 3460 // GoogleCloudDocumentaiV1beta1DocumentTextAnchor: Text reference indexing into 3461 // the Document.text. 3462 type GoogleCloudDocumentaiV1beta1DocumentTextAnchor struct { 3463 // Content: Contains the content of the text span so that users do not have to 3464 // look it up in the text_segments. It is always populated for formFields. 3465 Content string `json:"content,omitempty"` 3466 // TextSegments: The text segments from the Document.text. 3467 TextSegments []*GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment `json:"textSegments,omitempty"` 3468 // ForceSendFields is a list of field names (e.g. "Content") to unconditionally 3469 // include in API requests. By default, fields with empty or default values are 3470 // omitted from API requests. See 3471 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3472 // details. 3473 ForceSendFields []string `json:"-"` 3474 // NullFields is a list of field names (e.g. "Content") to include in API 3475 // requests with the JSON null value. By default, fields with empty values are 3476 // omitted from API requests. See 3477 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3478 NullFields []string `json:"-"` 3479 } 3480 3481 func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchor) MarshalJSON() ([]byte, error) { 3482 type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchor 3483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3484 } 3485 3486 // GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment: A text segment in 3487 // the Document.text. The indices may be out of bounds which indicate that the 3488 // text extends into another document shard for large sharded documents. See 3489 // ShardInfo.text_offset 3490 type GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment struct { 3491 // EndIndex: TextSegment half open end UTF-8 char index in the Document.text. 3492 EndIndex int64 `json:"endIndex,omitempty,string"` 3493 // StartIndex: TextSegment start UTF-8 char index in the Document.text. 3494 StartIndex int64 `json:"startIndex,omitempty,string"` 3495 // ForceSendFields is a list of field names (e.g. "EndIndex") to 3496 // unconditionally include in API requests. By default, fields with empty or 3497 // default values are omitted from API requests. See 3498 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3499 // details. 3500 ForceSendFields []string `json:"-"` 3501 // NullFields is a list of field names (e.g. "EndIndex") to include in API 3502 // requests with the JSON null value. By default, fields with empty values are 3503 // omitted from API requests. See 3504 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3505 NullFields []string `json:"-"` 3506 } 3507 3508 func (s *GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) { 3509 type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment 3510 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3511 } 3512 3513 // GoogleCloudDocumentaiV1beta1DocumentTextChange: This message is used for 3514 // text changes aka. OCR corrections. 3515 type GoogleCloudDocumentaiV1beta1DocumentTextChange struct { 3516 // ChangedText: The text that replaces the text identified in the 3517 // `text_anchor`. 3518 ChangedText string `json:"changedText,omitempty"` 3519 // Provenance: The history of this annotation. 3520 Provenance []*GoogleCloudDocumentaiV1beta1DocumentProvenance `json:"provenance,omitempty"` 3521 // TextAnchor: Provenance of the correction. Text anchor indexing into the 3522 // Document.text. There can only be a single `TextAnchor.text_segments` 3523 // element. If the start and end index of the text segment are the same, the 3524 // text change is inserted before that index. 3525 TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` 3526 // ForceSendFields is a list of field names (e.g. "ChangedText") to 3527 // unconditionally include in API requests. By default, fields with empty or 3528 // default values are omitted from API requests. See 3529 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3530 // details. 3531 ForceSendFields []string `json:"-"` 3532 // NullFields is a list of field names (e.g. "ChangedText") to include in API 3533 // requests with the JSON null value. By default, fields with empty values are 3534 // omitted from API requests. See 3535 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3536 NullFields []string `json:"-"` 3537 } 3538 3539 func (s *GoogleCloudDocumentaiV1beta1DocumentTextChange) MarshalJSON() ([]byte, error) { 3540 type NoMethod GoogleCloudDocumentaiV1beta1DocumentTextChange 3541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3542 } 3543 3544 // GoogleCloudDocumentaiV1beta1GcsDestination: The Google Cloud Storage 3545 // location where the output file will be written to. 3546 type GoogleCloudDocumentaiV1beta1GcsDestination struct { 3547 Uri string `json:"uri,omitempty"` 3548 // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally 3549 // include in API requests. By default, fields with empty or default values are 3550 // omitted from API requests. See 3551 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3552 // details. 3553 ForceSendFields []string `json:"-"` 3554 // NullFields is a list of field names (e.g. "Uri") to include in API requests 3555 // with the JSON null value. By default, fields with empty values are omitted 3556 // from API requests. See 3557 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3558 NullFields []string `json:"-"` 3559 } 3560 3561 func (s *GoogleCloudDocumentaiV1beta1GcsDestination) MarshalJSON() ([]byte, error) { 3562 type NoMethod GoogleCloudDocumentaiV1beta1GcsDestination 3563 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3564 } 3565 3566 // GoogleCloudDocumentaiV1beta1GcsSource: The Google Cloud Storage location 3567 // where the input file will be read from. 3568 type GoogleCloudDocumentaiV1beta1GcsSource struct { 3569 Uri string `json:"uri,omitempty"` 3570 // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally 3571 // include in API requests. By default, fields with empty or default values are 3572 // omitted from API requests. See 3573 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3574 // details. 3575 ForceSendFields []string `json:"-"` 3576 // NullFields is a list of field names (e.g. "Uri") to include in API requests 3577 // with the JSON null value. By default, fields with empty values are omitted 3578 // from API requests. See 3579 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3580 NullFields []string `json:"-"` 3581 } 3582 3583 func (s *GoogleCloudDocumentaiV1beta1GcsSource) MarshalJSON() ([]byte, error) { 3584 type NoMethod GoogleCloudDocumentaiV1beta1GcsSource 3585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3586 } 3587 3588 // GoogleCloudDocumentaiV1beta1InputConfig: The desired input location and 3589 // metadata. 3590 type GoogleCloudDocumentaiV1beta1InputConfig struct { 3591 // GcsSource: The Google Cloud Storage location to read the input from. This 3592 // must be a single file. 3593 GcsSource *GoogleCloudDocumentaiV1beta1GcsSource `json:"gcsSource,omitempty"` 3594 // MimeType: Required. Mimetype of the input. Current supported mimetypes are 3595 // application/pdf, image/tiff, and image/gif. In addition, application/json 3596 // type is supported for requests with ProcessDocumentRequest.automl_params 3597 // field set. The JSON file needs to be in Document format. 3598 MimeType string `json:"mimeType,omitempty"` 3599 // ForceSendFields is a list of field names (e.g. "GcsSource") to 3600 // unconditionally include in API requests. By default, fields with empty or 3601 // default values are omitted from API requests. See 3602 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3603 // details. 3604 ForceSendFields []string `json:"-"` 3605 // NullFields is a list of field names (e.g. "GcsSource") to include in API 3606 // requests with the JSON null value. By default, fields with empty values are 3607 // omitted from API requests. See 3608 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3609 NullFields []string `json:"-"` 3610 } 3611 3612 func (s *GoogleCloudDocumentaiV1beta1InputConfig) MarshalJSON() ([]byte, error) { 3613 type NoMethod GoogleCloudDocumentaiV1beta1InputConfig 3614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3615 } 3616 3617 // GoogleCloudDocumentaiV1beta1NormalizedVertex: A vertex represents a 2D point 3618 // in the image. NOTE: the normalized vertex coordinates are relative to the 3619 // original image and range from 0 to 1. 3620 type GoogleCloudDocumentaiV1beta1NormalizedVertex struct { 3621 // X: X coordinate. 3622 X float64 `json:"x,omitempty"` 3623 // Y: Y coordinate (starts from the top of the image). 3624 Y float64 `json:"y,omitempty"` 3625 // ForceSendFields is a list of field names (e.g. "X") to unconditionally 3626 // include in API requests. By default, fields with empty or default values are 3627 // omitted from API requests. See 3628 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3629 // details. 3630 ForceSendFields []string `json:"-"` 3631 // NullFields is a list of field names (e.g. "X") to include in API requests 3632 // with the JSON null value. By default, fields with empty values are omitted 3633 // from API requests. See 3634 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3635 NullFields []string `json:"-"` 3636 } 3637 3638 func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) { 3639 type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex 3640 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3641 } 3642 3643 func (s *GoogleCloudDocumentaiV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error { 3644 type NoMethod GoogleCloudDocumentaiV1beta1NormalizedVertex 3645 var s1 struct { 3646 X gensupport.JSONFloat64 `json:"x"` 3647 Y gensupport.JSONFloat64 `json:"y"` 3648 *NoMethod 3649 } 3650 s1.NoMethod = (*NoMethod)(s) 3651 if err := json.Unmarshal(data, &s1); err != nil { 3652 return err 3653 } 3654 s.X = float64(s1.X) 3655 s.Y = float64(s1.Y) 3656 return nil 3657 } 3658 3659 // GoogleCloudDocumentaiV1beta1OperationMetadata: Contains metadata for the 3660 // BatchProcessDocuments operation. 3661 type GoogleCloudDocumentaiV1beta1OperationMetadata struct { 3662 // CreateTime: The creation time of the operation. 3663 CreateTime string `json:"createTime,omitempty"` 3664 // State: The state of the current batch processing. 3665 // 3666 // Possible values: 3667 // "STATE_UNSPECIFIED" - The default value. This value is used if the state 3668 // is omitted. 3669 // "ACCEPTED" - Request is received. 3670 // "WAITING" - Request operation is waiting for scheduling. 3671 // "RUNNING" - Request is being processed. 3672 // "SUCCEEDED" - The batch processing completed successfully. 3673 // "CANCELLED" - The batch processing was cancelled. 3674 // "FAILED" - The batch processing has failed. 3675 State string `json:"state,omitempty"` 3676 // StateMessage: A message providing more details about the current state of 3677 // processing. 3678 StateMessage string `json:"stateMessage,omitempty"` 3679 // UpdateTime: The last update time of the operation. 3680 UpdateTime string `json:"updateTime,omitempty"` 3681 // ForceSendFields is a list of field names (e.g. "CreateTime") to 3682 // unconditionally include in API requests. By default, fields with empty or 3683 // default values are omitted from API requests. See 3684 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3685 // details. 3686 ForceSendFields []string `json:"-"` 3687 // NullFields is a list of field names (e.g. "CreateTime") to include in API 3688 // requests with the JSON null value. By default, fields with empty values are 3689 // omitted from API requests. See 3690 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3691 NullFields []string `json:"-"` 3692 } 3693 3694 func (s *GoogleCloudDocumentaiV1beta1OperationMetadata) MarshalJSON() ([]byte, error) { 3695 type NoMethod GoogleCloudDocumentaiV1beta1OperationMetadata 3696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3697 } 3698 3699 // GoogleCloudDocumentaiV1beta1OutputConfig: The desired output location and 3700 // metadata. 3701 type GoogleCloudDocumentaiV1beta1OutputConfig struct { 3702 // GcsDestination: The Google Cloud Storage location to write the output to. 3703 GcsDestination *GoogleCloudDocumentaiV1beta1GcsDestination `json:"gcsDestination,omitempty"` 3704 // PagesPerShard: The max number of pages to include into each output Document 3705 // shard JSON on Google Cloud Storage. The valid range is [1, 100]. If not 3706 // specified, the default value is 20. For example, for one pdf file with 100 3707 // pages, 100 parsed pages will be produced. If `pages_per_shard` = 20, then 5 3708 // Document shard JSON files each containing 20 parsed pages will be written 3709 // under the prefix OutputConfig.gcs_destination.uri and suffix 3710 // pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS 3711 // outputs with 157 pages and pages_per_shard = 50: pages-001-to-050.json 3712 // pages-051-to-100.json pages-101-to-150.json pages-151-to-157.json 3713 PagesPerShard int64 `json:"pagesPerShard,omitempty"` 3714 // ForceSendFields is a list of field names (e.g. "GcsDestination") to 3715 // unconditionally include in API requests. By default, fields with empty or 3716 // default values are omitted from API requests. See 3717 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3718 // details. 3719 ForceSendFields []string `json:"-"` 3720 // NullFields is a list of field names (e.g. "GcsDestination") to include in 3721 // API requests with the JSON null value. By default, fields with empty values 3722 // are omitted from API requests. See 3723 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3724 NullFields []string `json:"-"` 3725 } 3726 3727 func (s *GoogleCloudDocumentaiV1beta1OutputConfig) MarshalJSON() ([]byte, error) { 3728 type NoMethod GoogleCloudDocumentaiV1beta1OutputConfig 3729 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3730 } 3731 3732 // GoogleCloudDocumentaiV1beta1ProcessDocumentResponse: Response to a single 3733 // document processing request. 3734 type GoogleCloudDocumentaiV1beta1ProcessDocumentResponse struct { 3735 // InputConfig: Information about the input file. This is the same as the 3736 // corresponding input config in the request. 3737 InputConfig *GoogleCloudDocumentaiV1beta1InputConfig `json:"inputConfig,omitempty"` 3738 // OutputConfig: The output location of the parsed responses. The responses are 3739 // written to this location as JSON-serialized `Document` objects. 3740 OutputConfig *GoogleCloudDocumentaiV1beta1OutputConfig `json:"outputConfig,omitempty"` 3741 // ForceSendFields is a list of field names (e.g. "InputConfig") to 3742 // unconditionally include in API requests. By default, fields with empty or 3743 // default values are omitted from API requests. See 3744 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3745 // details. 3746 ForceSendFields []string `json:"-"` 3747 // NullFields is a list of field names (e.g. "InputConfig") to include in API 3748 // requests with the JSON null value. By default, fields with empty values are 3749 // omitted from API requests. See 3750 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3751 NullFields []string `json:"-"` 3752 } 3753 3754 func (s *GoogleCloudDocumentaiV1beta1ProcessDocumentResponse) MarshalJSON() ([]byte, error) { 3755 type NoMethod GoogleCloudDocumentaiV1beta1ProcessDocumentResponse 3756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3757 } 3758 3759 // GoogleCloudDocumentaiV1beta1Vertex: A vertex represents a 2D point in the 3760 // image. NOTE: the vertex coordinates are in the same scale as the original 3761 // image. 3762 type GoogleCloudDocumentaiV1beta1Vertex struct { 3763 // X: X coordinate. 3764 X int64 `json:"x,omitempty"` 3765 // Y: Y coordinate (starts from the top of the image). 3766 Y int64 `json:"y,omitempty"` 3767 // ForceSendFields is a list of field names (e.g. "X") to unconditionally 3768 // include in API requests. By default, fields with empty or default values are 3769 // omitted from API requests. See 3770 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3771 // details. 3772 ForceSendFields []string `json:"-"` 3773 // NullFields is a list of field names (e.g. "X") to include in API requests 3774 // with the JSON null value. By default, fields with empty values are omitted 3775 // from API requests. See 3776 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3777 NullFields []string `json:"-"` 3778 } 3779 3780 func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) { 3781 type NoMethod GoogleCloudDocumentaiV1beta1Vertex 3782 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3783 } 3784 3785 // GoogleCloudDocumentaiV1beta2AutoMlParams: Parameters to control AutoML model 3786 // prediction behavior. 3787 type GoogleCloudDocumentaiV1beta2AutoMlParams struct { 3788 // Model: Resource name of the AutoML model. Format: 3789 // `projects/{project-id}/locations/{location-id}/models/{model-id}`. 3790 Model string `json:"model,omitempty"` 3791 // ForceSendFields is a list of field names (e.g. "Model") to unconditionally 3792 // include in API requests. By default, fields with empty or default values are 3793 // omitted from API requests. See 3794 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3795 // details. 3796 ForceSendFields []string `json:"-"` 3797 // NullFields is a list of field names (e.g. "Model") to include in API 3798 // requests with the JSON null value. By default, fields with empty values are 3799 // omitted from API requests. See 3800 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3801 NullFields []string `json:"-"` 3802 } 3803 3804 func (s *GoogleCloudDocumentaiV1beta2AutoMlParams) MarshalJSON() ([]byte, error) { 3805 type NoMethod GoogleCloudDocumentaiV1beta2AutoMlParams 3806 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3807 } 3808 3809 // GoogleCloudDocumentaiV1beta2Barcode: Encodes the detailed information of a 3810 // barcode. 3811 type GoogleCloudDocumentaiV1beta2Barcode struct { 3812 // Format: Format of a barcode. The supported formats are: - `CODE_128`: Code 3813 // 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: 3814 // Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - 3815 // `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. 3816 // - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - 3817 // `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type. 3818 Format string `json:"format,omitempty"` 3819 // RawValue: Raw value encoded in the barcode. For example: 3820 // `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. 3821 RawValue string `json:"rawValue,omitempty"` 3822 // ValueFormat: Value format describes the format of the value that a barcode 3823 // encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - 3824 // `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. 3825 // - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: 3826 // URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - 3827 // `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license. 3828 ValueFormat string `json:"valueFormat,omitempty"` 3829 // ForceSendFields is a list of field names (e.g. "Format") to unconditionally 3830 // include in API requests. By default, fields with empty or default values are 3831 // omitted from API requests. See 3832 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3833 // details. 3834 ForceSendFields []string `json:"-"` 3835 // NullFields is a list of field names (e.g. "Format") to include in API 3836 // requests with the JSON null value. By default, fields with empty values are 3837 // omitted from API requests. See 3838 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3839 NullFields []string `json:"-"` 3840 } 3841 3842 func (s *GoogleCloudDocumentaiV1beta2Barcode) MarshalJSON() ([]byte, error) { 3843 type NoMethod GoogleCloudDocumentaiV1beta2Barcode 3844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3845 } 3846 3847 // GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest: Request to batch 3848 // process documents as an asynchronous operation. The output is written to 3849 // Cloud Storage as JSON in the [Document] format. 3850 type GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest struct { 3851 // Requests: Required. Individual requests for each document. 3852 Requests []*GoogleCloudDocumentaiV1beta2ProcessDocumentRequest `json:"requests,omitempty"` 3853 // ForceSendFields is a list of field names (e.g. "Requests") to 3854 // unconditionally include in API requests. By default, fields with empty or 3855 // default values are omitted from API requests. See 3856 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3857 // details. 3858 ForceSendFields []string `json:"-"` 3859 // NullFields is a list of field names (e.g. "Requests") to include in API 3860 // requests with the JSON null value. By default, fields with empty values are 3861 // omitted from API requests. See 3862 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3863 NullFields []string `json:"-"` 3864 } 3865 3866 func (s *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest) MarshalJSON() ([]byte, error) { 3867 type NoMethod GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest 3868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3869 } 3870 3871 // GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse: Response to an 3872 // batch document processing request. This is returned in the LRO Operation 3873 // after the operation is complete. 3874 type GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse struct { 3875 // Responses: Responses for each individual document. 3876 Responses []*GoogleCloudDocumentaiV1beta2ProcessDocumentResponse `json:"responses,omitempty"` 3877 // ForceSendFields is a list of field names (e.g. "Responses") to 3878 // unconditionally include in API requests. By default, fields with empty or 3879 // default values are omitted from API requests. See 3880 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3881 // details. 3882 ForceSendFields []string `json:"-"` 3883 // NullFields is a list of field names (e.g. "Responses") to include in API 3884 // requests with the JSON null value. By default, fields with empty values are 3885 // omitted from API requests. See 3886 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3887 NullFields []string `json:"-"` 3888 } 3889 3890 func (s *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse) MarshalJSON() ([]byte, error) { 3891 type NoMethod GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse 3892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3893 } 3894 3895 // GoogleCloudDocumentaiV1beta2BoundingPoly: A bounding polygon for the 3896 // detected image annotation. 3897 type GoogleCloudDocumentaiV1beta2BoundingPoly struct { 3898 // NormalizedVertices: The bounding polygon normalized vertices. 3899 NormalizedVertices []*GoogleCloudDocumentaiV1beta2NormalizedVertex `json:"normalizedVertices,omitempty"` 3900 // Vertices: The bounding polygon vertices. 3901 Vertices []*GoogleCloudDocumentaiV1beta2Vertex `json:"vertices,omitempty"` 3902 // ForceSendFields is a list of field names (e.g. "NormalizedVertices") to 3903 // unconditionally include in API requests. By default, fields with empty or 3904 // default values are omitted from API requests. See 3905 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3906 // details. 3907 ForceSendFields []string `json:"-"` 3908 // NullFields is a list of field names (e.g. "NormalizedVertices") to include 3909 // in API requests with the JSON null value. By default, fields with empty 3910 // values are omitted from API requests. See 3911 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3912 NullFields []string `json:"-"` 3913 } 3914 3915 func (s *GoogleCloudDocumentaiV1beta2BoundingPoly) MarshalJSON() ([]byte, error) { 3916 type NoMethod GoogleCloudDocumentaiV1beta2BoundingPoly 3917 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3918 } 3919 3920 // GoogleCloudDocumentaiV1beta2Document: Document represents the canonical 3921 // document resource in Document AI. It is an interchange format that provides 3922 // insights into documents and allows for collaboration between users and 3923 // Document AI to iterate and optimize for quality. 3924 type GoogleCloudDocumentaiV1beta2Document struct { 3925 // Content: Optional. Inline document content, represented as a stream of 3926 // bytes. Note: As with all `bytes` fields, protobuffers use a pure binary 3927 // representation, whereas JSON representations use base64. 3928 Content string `json:"content,omitempty"` 3929 // Entities: A list of entities detected on Document.text. For document shards, 3930 // entities in this list may cross shard boundaries. 3931 Entities []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"entities,omitempty"` 3932 // EntityRelations: Placeholder. Relationship among Document.entities. 3933 EntityRelations []*GoogleCloudDocumentaiV1beta2DocumentEntityRelation `json:"entityRelations,omitempty"` 3934 // Error: Any error that occurred while processing this document. 3935 Error *GoogleRpcStatus `json:"error,omitempty"` 3936 // Labels: Labels for this document. 3937 Labels []*GoogleCloudDocumentaiV1beta2DocumentLabel `json:"labels,omitempty"` 3938 // MimeType: An IANA published media type (MIME type) 3939 // (https://www.iana.org/assignments/media-types/media-types.xhtml). 3940 MimeType string `json:"mimeType,omitempty"` 3941 // Pages: Visual page layout for the Document. 3942 Pages []*GoogleCloudDocumentaiV1beta2DocumentPage `json:"pages,omitempty"` 3943 // Revisions: Placeholder. Revision history of this document. 3944 Revisions []*GoogleCloudDocumentaiV1beta2DocumentRevision `json:"revisions,omitempty"` 3945 // ShardInfo: Information about the sharding if this document is sharded part 3946 // of a larger document. If the document is not sharded, this message is not 3947 // specified. 3948 ShardInfo *GoogleCloudDocumentaiV1beta2DocumentShardInfo `json:"shardInfo,omitempty"` 3949 // Text: Optional. UTF-8 encoded text in reading order from the document. 3950 Text string `json:"text,omitempty"` 3951 // TextChanges: Placeholder. A list of text corrections made to Document.text. 3952 // This is usually used for annotating corrections to OCR mistakes. Text 3953 // changes for a given revision may not overlap with each other. 3954 TextChanges []*GoogleCloudDocumentaiV1beta2DocumentTextChange `json:"textChanges,omitempty"` 3955 // TextStyles: Styles for the Document.text. 3956 TextStyles []*GoogleCloudDocumentaiV1beta2DocumentStyle `json:"textStyles,omitempty"` 3957 // Uri: Optional. Currently supports Google Cloud Storage URI of the form 3958 // `gs://bucket_name/object_name`. Object versioning is not supported. For more 3959 // information, refer to Google Cloud Storage Request URIs 3960 // (https://cloud.google.com/storage/docs/reference-uris). 3961 Uri string `json:"uri,omitempty"` 3962 3963 // ServerResponse contains the HTTP response code and headers from the server. 3964 googleapi.ServerResponse `json:"-"` 3965 // ForceSendFields is a list of field names (e.g. "Content") to unconditionally 3966 // include in API requests. By default, fields with empty or default values are 3967 // omitted from API requests. See 3968 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 3969 // details. 3970 ForceSendFields []string `json:"-"` 3971 // NullFields is a list of field names (e.g. "Content") to include in API 3972 // requests with the JSON null value. By default, fields with empty values are 3973 // omitted from API requests. See 3974 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 3975 NullFields []string `json:"-"` 3976 } 3977 3978 func (s *GoogleCloudDocumentaiV1beta2Document) MarshalJSON() ([]byte, error) { 3979 type NoMethod GoogleCloudDocumentaiV1beta2Document 3980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 3981 } 3982 3983 // GoogleCloudDocumentaiV1beta2DocumentEntity: An entity that could be a phrase 3984 // in the text or a property that belongs to the document. It is a known entity 3985 // type, such as a person, an organization, or location. 3986 type GoogleCloudDocumentaiV1beta2DocumentEntity struct { 3987 // Confidence: Optional. Confidence of detected Schema entity. Range `[0, 1]`. 3988 Confidence float64 `json:"confidence,omitempty"` 3989 // Id: Optional. Canonical id. This will be a unique value in the entity list 3990 // for this document. 3991 Id string `json:"id,omitempty"` 3992 // MentionId: Optional. Deprecated. Use `id` field instead. 3993 MentionId string `json:"mentionId,omitempty"` 3994 // MentionText: Optional. Text value of the entity e.g. `1600 Amphitheatre 3995 // Pkwy`. 3996 MentionText string `json:"mentionText,omitempty"` 3997 // NormalizedValue: Optional. Normalized entity value. Absent if the extracted 3998 // value could not be converted or the type (e.g. address) is not supported for 3999 // certain parsers. This field is also only populated for certain supported 4000 // document types. 4001 NormalizedValue *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue `json:"normalizedValue,omitempty"` 4002 // PageAnchor: Optional. Represents the provenance of this entity wrt. the 4003 // location on the page where it was found. 4004 PageAnchor *GoogleCloudDocumentaiV1beta2DocumentPageAnchor `json:"pageAnchor,omitempty"` 4005 // Properties: Optional. Entities can be nested to form a hierarchical data 4006 // structure representing the content in the document. 4007 Properties []*GoogleCloudDocumentaiV1beta2DocumentEntity `json:"properties,omitempty"` 4008 // Provenance: Optional. The history of this annotation. 4009 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4010 // Redacted: Optional. Whether the entity will be redacted for 4011 // de-identification purposes. 4012 Redacted bool `json:"redacted,omitempty"` 4013 // TextAnchor: Optional. Provenance of the entity. Text anchor indexing into 4014 // the Document.text. 4015 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` 4016 // Type: Required. Entity type from a schema e.g. `Address`. 4017 Type string `json:"type,omitempty"` 4018 // ForceSendFields is a list of field names (e.g. "Confidence") to 4019 // unconditionally include in API requests. By default, fields with empty or 4020 // default values are omitted from API requests. See 4021 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4022 // details. 4023 ForceSendFields []string `json:"-"` 4024 // NullFields is a list of field names (e.g. "Confidence") to include in API 4025 // requests with the JSON null value. By default, fields with empty values are 4026 // omitted from API requests. See 4027 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4028 NullFields []string `json:"-"` 4029 } 4030 4031 func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) MarshalJSON() ([]byte, error) { 4032 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity 4033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4034 } 4035 4036 func (s *GoogleCloudDocumentaiV1beta2DocumentEntity) UnmarshalJSON(data []byte) error { 4037 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntity 4038 var s1 struct { 4039 Confidence gensupport.JSONFloat64 `json:"confidence"` 4040 *NoMethod 4041 } 4042 s1.NoMethod = (*NoMethod)(s) 4043 if err := json.Unmarshal(data, &s1); err != nil { 4044 return err 4045 } 4046 s.Confidence = float64(s1.Confidence) 4047 return nil 4048 } 4049 4050 // GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue: Parsed and 4051 // normalized entity value. 4052 type GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue struct { 4053 // AddressValue: Postal address. See also: 4054 // https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto 4055 AddressValue *GoogleTypePostalAddress `json:"addressValue,omitempty"` 4056 // BooleanValue: Boolean value. Can be used for entities with binary values, or 4057 // for checkboxes. 4058 BooleanValue bool `json:"booleanValue,omitempty"` 4059 // DateValue: Date value. Includes year, month, day. See also: 4060 // https://github.com/googleapis/googleapis/blob/master/google/type/date.proto 4061 DateValue *GoogleTypeDate `json:"dateValue,omitempty"` 4062 // DatetimeValue: DateTime value. Includes date, time, and timezone. See also: 4063 // https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto 4064 DatetimeValue *GoogleTypeDateTime `json:"datetimeValue,omitempty"` 4065 // FloatValue: Float value. 4066 FloatValue float64 `json:"floatValue,omitempty"` 4067 // IntegerValue: Integer value. 4068 IntegerValue int64 `json:"integerValue,omitempty"` 4069 // MoneyValue: Money value. See also: 4070 // https://github.com/googleapis/googleapis/blob/master/google/type/money.proto 4071 MoneyValue *GoogleTypeMoney `json:"moneyValue,omitempty"` 4072 // Text: Optional. An optional field to store a normalized string. For some 4073 // entity types, one of respective `structured_value` fields may also be 4074 // populated. Also not all the types of `structured_value` will be normalized. 4075 // For example, some processors may not generate `float` or `integer` 4076 // normalized text by default. Below are sample formats mapped to structured 4077 // values. - Money/Currency type (`money_value`) is in the ISO 4217 text 4078 // format. - Date type (`date_value`) is in the ISO 8601 text format. - 4079 // Datetime type (`datetime_value`) is in the ISO 8601 text format. 4080 Text string `json:"text,omitempty"` 4081 // ForceSendFields is a list of field names (e.g. "AddressValue") to 4082 // unconditionally include in API requests. By default, fields with empty or 4083 // default values are omitted from API requests. See 4084 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4085 // details. 4086 ForceSendFields []string `json:"-"` 4087 // NullFields is a list of field names (e.g. "AddressValue") to include in API 4088 // requests with the JSON null value. By default, fields with empty values are 4089 // omitted from API requests. See 4090 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4091 NullFields []string `json:"-"` 4092 } 4093 4094 func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) MarshalJSON() ([]byte, error) { 4095 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue 4096 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4097 } 4098 4099 func (s *GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue) UnmarshalJSON(data []byte) error { 4100 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue 4101 var s1 struct { 4102 FloatValue gensupport.JSONFloat64 `json:"floatValue"` 4103 *NoMethod 4104 } 4105 s1.NoMethod = (*NoMethod)(s) 4106 if err := json.Unmarshal(data, &s1); err != nil { 4107 return err 4108 } 4109 s.FloatValue = float64(s1.FloatValue) 4110 return nil 4111 } 4112 4113 // GoogleCloudDocumentaiV1beta2DocumentEntityRelation: Relationship between 4114 // Entities. 4115 type GoogleCloudDocumentaiV1beta2DocumentEntityRelation struct { 4116 // ObjectId: Object entity id. 4117 ObjectId string `json:"objectId,omitempty"` 4118 // Relation: Relationship description. 4119 Relation string `json:"relation,omitempty"` 4120 // SubjectId: Subject entity id. 4121 SubjectId string `json:"subjectId,omitempty"` 4122 // ForceSendFields is a list of field names (e.g. "ObjectId") to 4123 // unconditionally include in API requests. By default, fields with empty or 4124 // default values are omitted from API requests. See 4125 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4126 // details. 4127 ForceSendFields []string `json:"-"` 4128 // NullFields is a list of field names (e.g. "ObjectId") to include in API 4129 // requests with the JSON null value. By default, fields with empty values are 4130 // omitted from API requests. See 4131 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4132 NullFields []string `json:"-"` 4133 } 4134 4135 func (s *GoogleCloudDocumentaiV1beta2DocumentEntityRelation) MarshalJSON() ([]byte, error) { 4136 type NoMethod GoogleCloudDocumentaiV1beta2DocumentEntityRelation 4137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4138 } 4139 4140 // GoogleCloudDocumentaiV1beta2DocumentLabel: Label attaches schema information 4141 // and/or other metadata to segments within a Document. Multiple Labels on a 4142 // single field can denote either different labels, different instances of the 4143 // same label created at different times, or some combination of both. 4144 type GoogleCloudDocumentaiV1beta2DocumentLabel struct { 4145 // AutomlModel: Label is generated AutoML model. This field stores the full 4146 // resource name of the AutoML model. Format: 4147 // `projects/{project-id}/locations/{location-id}/models/{model-id}` 4148 AutomlModel string `json:"automlModel,omitempty"` 4149 // Confidence: Confidence score between 0 and 1 for label assignment. 4150 Confidence float64 `json:"confidence,omitempty"` 4151 // Name: Name of the label. When the label is generated from AutoML Text 4152 // Classification model, this field represents the name of the category. 4153 Name string `json:"name,omitempty"` 4154 // ForceSendFields is a list of field names (e.g. "AutomlModel") to 4155 // unconditionally include in API requests. By default, fields with empty or 4156 // default values are omitted from API requests. See 4157 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4158 // details. 4159 ForceSendFields []string `json:"-"` 4160 // NullFields is a list of field names (e.g. "AutomlModel") to include in API 4161 // requests with the JSON null value. By default, fields with empty values are 4162 // omitted from API requests. See 4163 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4164 NullFields []string `json:"-"` 4165 } 4166 4167 func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) MarshalJSON() ([]byte, error) { 4168 type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel 4169 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4170 } 4171 4172 func (s *GoogleCloudDocumentaiV1beta2DocumentLabel) UnmarshalJSON(data []byte) error { 4173 type NoMethod GoogleCloudDocumentaiV1beta2DocumentLabel 4174 var s1 struct { 4175 Confidence gensupport.JSONFloat64 `json:"confidence"` 4176 *NoMethod 4177 } 4178 s1.NoMethod = (*NoMethod)(s) 4179 if err := json.Unmarshal(data, &s1); err != nil { 4180 return err 4181 } 4182 s.Confidence = float64(s1.Confidence) 4183 return nil 4184 } 4185 4186 // GoogleCloudDocumentaiV1beta2DocumentPage: A page in a Document. 4187 type GoogleCloudDocumentaiV1beta2DocumentPage struct { 4188 // Blocks: A list of visually detected text blocks on the page. A block has a 4189 // set of lines (collected into paragraphs) that have a common line-spacing and 4190 // orientation. 4191 Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"` 4192 // DetectedBarcodes: A list of detected barcodes. 4193 DetectedBarcodes []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` 4194 // DetectedLanguages: A list of detected languages together with confidence. 4195 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4196 // Dimension: Physical dimension of the page. 4197 Dimension *GoogleCloudDocumentaiV1beta2DocumentPageDimension `json:"dimension,omitempty"` 4198 // FormFields: A list of visually detected form fields on the page. 4199 FormFields []*GoogleCloudDocumentaiV1beta2DocumentPageFormField `json:"formFields,omitempty"` 4200 // Image: Rendered image for this page. This image is preprocessed to remove 4201 // any skew, rotation, and distortions such that the annotation bounding boxes 4202 // can be upright and axis-aligned. 4203 Image *GoogleCloudDocumentaiV1beta2DocumentPageImage `json:"image,omitempty"` 4204 // ImageQualityScores: Image quality scores. 4205 ImageQualityScores *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores `json:"imageQualityScores,omitempty"` 4206 // Layout: Layout for the page. 4207 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4208 // Lines: A list of visually detected text lines on the page. A collection of 4209 // tokens that a human would perceive as a line. 4210 Lines []*GoogleCloudDocumentaiV1beta2DocumentPageLine `json:"lines,omitempty"` 4211 // PageNumber: 1-based index for current Page in a parent Document. Useful when 4212 // a page is taken out of a Document for individual processing. 4213 PageNumber int64 `json:"pageNumber,omitempty"` 4214 // Paragraphs: A list of visually detected text paragraphs on the page. A 4215 // collection of lines that a human would perceive as a paragraph. 4216 Paragraphs []*GoogleCloudDocumentaiV1beta2DocumentPageParagraph `json:"paragraphs,omitempty"` 4217 // Provenance: The history of this page. 4218 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4219 // Symbols: A list of visually detected symbols on the page. 4220 Symbols []*GoogleCloudDocumentaiV1beta2DocumentPageSymbol `json:"symbols,omitempty"` 4221 // Tables: A list of visually detected tables on the page. 4222 Tables []*GoogleCloudDocumentaiV1beta2DocumentPageTable `json:"tables,omitempty"` 4223 // Tokens: A list of visually detected tokens on the page. 4224 Tokens []*GoogleCloudDocumentaiV1beta2DocumentPageToken `json:"tokens,omitempty"` 4225 // Transforms: Transformation matrices that were applied to the original 4226 // document image to produce Page.image. 4227 Transforms []*GoogleCloudDocumentaiV1beta2DocumentPageMatrix `json:"transforms,omitempty"` 4228 // VisualElements: A list of detected non-text visual elements e.g. checkbox, 4229 // signature etc. on the page. 4230 VisualElements []*GoogleCloudDocumentaiV1beta2DocumentPageVisualElement `json:"visualElements,omitempty"` 4231 // ForceSendFields is a list of field names (e.g. "Blocks") to unconditionally 4232 // include in API requests. By default, fields with empty or default values are 4233 // omitted from API requests. See 4234 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4235 // details. 4236 ForceSendFields []string `json:"-"` 4237 // NullFields is a list of field names (e.g. "Blocks") to include in API 4238 // requests with the JSON null value. By default, fields with empty values are 4239 // omitted from API requests. See 4240 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4241 NullFields []string `json:"-"` 4242 } 4243 4244 func (s *GoogleCloudDocumentaiV1beta2DocumentPage) MarshalJSON() ([]byte, error) { 4245 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPage 4246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4247 } 4248 4249 // GoogleCloudDocumentaiV1beta2DocumentPageAnchor: Referencing the visual 4250 // context of the entity in the Document.pages. Page anchors can be cross-page, 4251 // consist of multiple bounding polygons and optionally reference specific 4252 // layout element types. 4253 type GoogleCloudDocumentaiV1beta2DocumentPageAnchor struct { 4254 // PageRefs: One or more references to visual page elements 4255 PageRefs []*GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef `json:"pageRefs,omitempty"` 4256 // ForceSendFields is a list of field names (e.g. "PageRefs") to 4257 // unconditionally include in API requests. By default, fields with empty or 4258 // default values are omitted from API requests. See 4259 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4260 // details. 4261 ForceSendFields []string `json:"-"` 4262 // NullFields is a list of field names (e.g. "PageRefs") to include in API 4263 // requests with the JSON null value. By default, fields with empty values are 4264 // omitted from API requests. See 4265 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4266 NullFields []string `json:"-"` 4267 } 4268 4269 func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchor) MarshalJSON() ([]byte, error) { 4270 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchor 4271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4272 } 4273 4274 // GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef: Represents a weak 4275 // reference to a page element within a document. 4276 type GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef struct { 4277 // BoundingPoly: Optional. Identifies the bounding polygon of a layout element 4278 // on the page. If `layout_type` is set, the bounding polygon must be exactly 4279 // the same to the layout element it's referring to. 4280 BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"` 4281 // Confidence: Optional. Confidence of detected page element, if applicable. 4282 // Range `[0, 1]`. 4283 Confidence float64 `json:"confidence,omitempty"` 4284 // LayoutId: Optional. Deprecated. Use PageRef.bounding_poly instead. 4285 LayoutId string `json:"layoutId,omitempty"` 4286 // LayoutType: Optional. The type of the layout element that is being 4287 // referenced if any. 4288 // 4289 // Possible values: 4290 // "LAYOUT_TYPE_UNSPECIFIED" - Layout Unspecified. 4291 // "BLOCK" - References a Page.blocks element. 4292 // "PARAGRAPH" - References a Page.paragraphs element. 4293 // "LINE" - References a Page.lines element. 4294 // "TOKEN" - References a Page.tokens element. 4295 // "VISUAL_ELEMENT" - References a Page.visual_elements element. 4296 // "TABLE" - Refrrences a Page.tables element. 4297 // "FORM_FIELD" - References a Page.form_fields element. 4298 LayoutType string `json:"layoutType,omitempty"` 4299 // Page: Required. Index into the Document.pages element, for example using 4300 // `Document.pages` to locate the related page element. This field is skipped 4301 // when its value is the default `0`. See 4302 // https://developers.google.com/protocol-buffers/docs/proto3#json. 4303 Page int64 `json:"page,omitempty,string"` 4304 // ForceSendFields is a list of field names (e.g. "BoundingPoly") to 4305 // unconditionally include in API requests. By default, fields with empty or 4306 // default values are omitted from API requests. See 4307 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4308 // details. 4309 ForceSendFields []string `json:"-"` 4310 // NullFields is a list of field names (e.g. "BoundingPoly") to include in API 4311 // requests with the JSON null value. By default, fields with empty values are 4312 // omitted from API requests. See 4313 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4314 NullFields []string `json:"-"` 4315 } 4316 4317 func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) MarshalJSON() ([]byte, error) { 4318 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef 4319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4320 } 4321 4322 func (s *GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef) UnmarshalJSON(data []byte) error { 4323 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef 4324 var s1 struct { 4325 Confidence gensupport.JSONFloat64 `json:"confidence"` 4326 *NoMethod 4327 } 4328 s1.NoMethod = (*NoMethod)(s) 4329 if err := json.Unmarshal(data, &s1); err != nil { 4330 return err 4331 } 4332 s.Confidence = float64(s1.Confidence) 4333 return nil 4334 } 4335 4336 // GoogleCloudDocumentaiV1beta2DocumentPageBlock: A block has a set of lines 4337 // (collected into paragraphs) that have a common line-spacing and orientation. 4338 type GoogleCloudDocumentaiV1beta2DocumentPageBlock struct { 4339 // DetectedLanguages: A list of detected languages together with confidence. 4340 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4341 // Layout: Layout for Block. 4342 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4343 // Provenance: The history of this annotation. 4344 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4345 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 4346 // unconditionally include in API requests. By default, fields with empty or 4347 // default values are omitted from API requests. See 4348 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4349 // details. 4350 ForceSendFields []string `json:"-"` 4351 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 4352 // API requests with the JSON null value. By default, fields with empty values 4353 // are omitted from API requests. See 4354 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4355 NullFields []string `json:"-"` 4356 } 4357 4358 func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, error) { 4359 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageBlock 4360 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4361 } 4362 4363 // GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode: A detected barcode. 4364 type GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode struct { 4365 // Barcode: Detailed barcode information of the DetectedBarcode. 4366 Barcode *GoogleCloudDocumentaiV1beta2Barcode `json:"barcode,omitempty"` 4367 // Layout: Layout for DetectedBarcode. 4368 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4369 // ForceSendFields is a list of field names (e.g. "Barcode") to unconditionally 4370 // include in API requests. By default, fields with empty or default values are 4371 // omitted from API requests. See 4372 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4373 // details. 4374 ForceSendFields []string `json:"-"` 4375 // NullFields is a list of field names (e.g. "Barcode") to include in API 4376 // requests with the JSON null value. By default, fields with empty values are 4377 // omitted from API requests. See 4378 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4379 NullFields []string `json:"-"` 4380 } 4381 4382 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { 4383 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode 4384 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4385 } 4386 4387 // GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected language 4388 // for a structural component. 4389 type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct { 4390 // Confidence: Confidence of detected language. Range `[0, 1]`. 4391 Confidence float64 `json:"confidence,omitempty"` 4392 // LanguageCode: The BCP-47 language code 4393 // (https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as 4394 // `en-US` or `sr-Latn`. 4395 LanguageCode string `json:"languageCode,omitempty"` 4396 // ForceSendFields is a list of field names (e.g. "Confidence") to 4397 // unconditionally include in API requests. By default, fields with empty or 4398 // default values are omitted from API requests. See 4399 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4400 // details. 4401 ForceSendFields []string `json:"-"` 4402 // NullFields is a list of field names (e.g. "Confidence") to include in API 4403 // requests with the JSON null value. By default, fields with empty values are 4404 // omitted from API requests. See 4405 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4406 NullFields []string `json:"-"` 4407 } 4408 4409 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) MarshalJSON() ([]byte, error) { 4410 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage 4411 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4412 } 4413 4414 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage) UnmarshalJSON(data []byte) error { 4415 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage 4416 var s1 struct { 4417 Confidence gensupport.JSONFloat64 `json:"confidence"` 4418 *NoMethod 4419 } 4420 s1.NoMethod = (*NoMethod)(s) 4421 if err := json.Unmarshal(data, &s1); err != nil { 4422 return err 4423 } 4424 s.Confidence = float64(s1.Confidence) 4425 return nil 4426 } 4427 4428 // GoogleCloudDocumentaiV1beta2DocumentPageDimension: Dimension for the page. 4429 type GoogleCloudDocumentaiV1beta2DocumentPageDimension struct { 4430 // Height: Page height. 4431 Height float64 `json:"height,omitempty"` 4432 // Unit: Dimension unit. 4433 Unit string `json:"unit,omitempty"` 4434 // Width: Page width. 4435 Width float64 `json:"width,omitempty"` 4436 // ForceSendFields is a list of field names (e.g. "Height") to unconditionally 4437 // include in API requests. By default, fields with empty or default values are 4438 // omitted from API requests. See 4439 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4440 // details. 4441 ForceSendFields []string `json:"-"` 4442 // NullFields is a list of field names (e.g. "Height") to include in API 4443 // requests with the JSON null value. By default, fields with empty values are 4444 // omitted from API requests. See 4445 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4446 NullFields []string `json:"-"` 4447 } 4448 4449 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) MarshalJSON() ([]byte, error) { 4450 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension 4451 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4452 } 4453 4454 func (s *GoogleCloudDocumentaiV1beta2DocumentPageDimension) UnmarshalJSON(data []byte) error { 4455 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDimension 4456 var s1 struct { 4457 Height gensupport.JSONFloat64 `json:"height"` 4458 Width gensupport.JSONFloat64 `json:"width"` 4459 *NoMethod 4460 } 4461 s1.NoMethod = (*NoMethod)(s) 4462 if err := json.Unmarshal(data, &s1); err != nil { 4463 return err 4464 } 4465 s.Height = float64(s1.Height) 4466 s.Width = float64(s1.Width) 4467 return nil 4468 } 4469 4470 // GoogleCloudDocumentaiV1beta2DocumentPageFormField: A form field detected on 4471 // the page. 4472 type GoogleCloudDocumentaiV1beta2DocumentPageFormField struct { 4473 // CorrectedKeyText: Created for Labeling UI to export key text. If corrections 4474 // were made to the text identified by the `field_name.text_anchor`, this field 4475 // will contain the correction. 4476 CorrectedKeyText string `json:"correctedKeyText,omitempty"` 4477 // CorrectedValueText: Created for Labeling UI to export value text. If 4478 // corrections were made to the text identified by the 4479 // `field_value.text_anchor`, this field will contain the correction. 4480 CorrectedValueText string `json:"correctedValueText,omitempty"` 4481 // FieldName: Layout for the FormField name. e.g. `Address`, `Email`, `Grand 4482 // total`, `Phone number`, etc. 4483 FieldName *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldName,omitempty"` 4484 // FieldValue: Layout for the FormField value. 4485 FieldValue *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"fieldValue,omitempty"` 4486 // NameDetectedLanguages: A list of detected languages for name together with 4487 // confidence. 4488 NameDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"nameDetectedLanguages,omitempty"` 4489 // Provenance: The history of this annotation. 4490 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4491 // ValueDetectedLanguages: A list of detected languages for value together with 4492 // confidence. 4493 ValueDetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"valueDetectedLanguages,omitempty"` 4494 // ValueType: If the value is non-textual, this field represents the type. 4495 // Current valid values are: - blank (this indicates the `field_value` is 4496 // normal text) - `unfilled_checkbox` - `filled_checkbox` 4497 ValueType string `json:"valueType,omitempty"` 4498 // ForceSendFields is a list of field names (e.g. "CorrectedKeyText") to 4499 // unconditionally include in API requests. By default, fields with empty or 4500 // default values are omitted from API requests. See 4501 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4502 // details. 4503 ForceSendFields []string `json:"-"` 4504 // NullFields is a list of field names (e.g. "CorrectedKeyText") to include in 4505 // API requests with the JSON null value. By default, fields with empty values 4506 // are omitted from API requests. See 4507 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4508 NullFields []string `json:"-"` 4509 } 4510 4511 func (s *GoogleCloudDocumentaiV1beta2DocumentPageFormField) MarshalJSON() ([]byte, error) { 4512 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageFormField 4513 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4514 } 4515 4516 // GoogleCloudDocumentaiV1beta2DocumentPageImage: Rendered image contents for 4517 // this page. 4518 type GoogleCloudDocumentaiV1beta2DocumentPageImage struct { 4519 // Content: Raw byte content of the image. 4520 Content string `json:"content,omitempty"` 4521 // Height: Height of the image in pixels. 4522 Height int64 `json:"height,omitempty"` 4523 // MimeType: Encoding media type (MIME type) 4524 // (https://www.iana.org/assignments/media-types/media-types.xhtml) for the 4525 // image. 4526 MimeType string `json:"mimeType,omitempty"` 4527 // Width: Width of the image in pixels. 4528 Width int64 `json:"width,omitempty"` 4529 // ForceSendFields is a list of field names (e.g. "Content") to unconditionally 4530 // include in API requests. By default, fields with empty or default values are 4531 // omitted from API requests. See 4532 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4533 // details. 4534 ForceSendFields []string `json:"-"` 4535 // NullFields is a list of field names (e.g. "Content") to include in API 4536 // requests with the JSON null value. By default, fields with empty values are 4537 // omitted from API requests. See 4538 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4539 NullFields []string `json:"-"` 4540 } 4541 4542 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImage) MarshalJSON() ([]byte, error) { 4543 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImage 4544 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4545 } 4546 4547 // GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores: Image quality 4548 // scores for the page image. 4549 type GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores struct { 4550 // DetectedDefects: A list of detected defects. 4551 DetectedDefects []*GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect `json:"detectedDefects,omitempty"` 4552 // QualityScore: The overall quality score. Range `[0, 1]` where `1` is perfect 4553 // quality. 4554 QualityScore float64 `json:"qualityScore,omitempty"` 4555 // ForceSendFields is a list of field names (e.g. "DetectedDefects") to 4556 // unconditionally include in API requests. By default, fields with empty or 4557 // default values are omitted from API requests. See 4558 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4559 // details. 4560 ForceSendFields []string `json:"-"` 4561 // NullFields is a list of field names (e.g. "DetectedDefects") to include in 4562 // API requests with the JSON null value. By default, fields with empty values 4563 // are omitted from API requests. See 4564 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4565 NullFields []string `json:"-"` 4566 } 4567 4568 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores) MarshalJSON() ([]byte, error) { 4569 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores 4570 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4571 } 4572 4573 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores) UnmarshalJSON(data []byte) error { 4574 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores 4575 var s1 struct { 4576 QualityScore gensupport.JSONFloat64 `json:"qualityScore"` 4577 *NoMethod 4578 } 4579 s1.NoMethod = (*NoMethod)(s) 4580 if err := json.Unmarshal(data, &s1); err != nil { 4581 return err 4582 } 4583 s.QualityScore = float64(s1.QualityScore) 4584 return nil 4585 } 4586 4587 // GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect: 4588 // Image Quality Defects 4589 type GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect struct { 4590 // Confidence: Confidence of detected defect. Range `[0, 1]` where `1` 4591 // indicates strong confidence that the defect exists. 4592 Confidence float64 `json:"confidence,omitempty"` 4593 // Type: Name of the defect type. Supported values are: - 4594 // `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - 4595 // `quality/defect_faint` - `quality/defect_text_too_small` - 4596 // `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - 4597 // `quality/defect_glare` 4598 Type string `json:"type,omitempty"` 4599 // ForceSendFields is a list of field names (e.g. "Confidence") to 4600 // unconditionally include in API requests. By default, fields with empty or 4601 // default values are omitted from API requests. See 4602 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4603 // details. 4604 ForceSendFields []string `json:"-"` 4605 // NullFields is a list of field names (e.g. "Confidence") to include in API 4606 // requests with the JSON null value. By default, fields with empty values are 4607 // omitted from API requests. See 4608 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4609 NullFields []string `json:"-"` 4610 } 4611 4612 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect) MarshalJSON() ([]byte, error) { 4613 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect 4614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4615 } 4616 4617 func (s *GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect) UnmarshalJSON(data []byte) error { 4618 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect 4619 var s1 struct { 4620 Confidence gensupport.JSONFloat64 `json:"confidence"` 4621 *NoMethod 4622 } 4623 s1.NoMethod = (*NoMethod)(s) 4624 if err := json.Unmarshal(data, &s1); err != nil { 4625 return err 4626 } 4627 s.Confidence = float64(s1.Confidence) 4628 return nil 4629 } 4630 4631 // GoogleCloudDocumentaiV1beta2DocumentPageLayout: Visual element describing a 4632 // layout unit on a page. 4633 type GoogleCloudDocumentaiV1beta2DocumentPageLayout struct { 4634 // BoundingPoly: The bounding polygon for the Layout. 4635 BoundingPoly *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingPoly,omitempty"` 4636 // Confidence: Confidence of the current Layout within context of the object 4637 // this layout is for. e.g. confidence can be for a single token, a table, a 4638 // visual element, etc. depending on context. Range `[0, 1]`. 4639 Confidence float64 `json:"confidence,omitempty"` 4640 // Orientation: Detected orientation for the Layout. 4641 // 4642 // Possible values: 4643 // "ORIENTATION_UNSPECIFIED" - Unspecified orientation. 4644 // "PAGE_UP" - Orientation is aligned with page up. 4645 // "PAGE_RIGHT" - Orientation is aligned with page right. Turn the head 90 4646 // degrees clockwise from upright to read. 4647 // "PAGE_DOWN" - Orientation is aligned with page down. Turn the head 180 4648 // degrees from upright to read. 4649 // "PAGE_LEFT" - Orientation is aligned with page left. Turn the head 90 4650 // degrees counterclockwise from upright to read. 4651 Orientation string `json:"orientation,omitempty"` 4652 // TextAnchor: Text anchor indexing into the Document.text. 4653 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` 4654 // ForceSendFields is a list of field names (e.g. "BoundingPoly") to 4655 // unconditionally include in API requests. By default, fields with empty or 4656 // default values are omitted from API requests. See 4657 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4658 // details. 4659 ForceSendFields []string `json:"-"` 4660 // NullFields is a list of field names (e.g. "BoundingPoly") to include in API 4661 // requests with the JSON null value. By default, fields with empty values are 4662 // omitted from API requests. See 4663 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4664 NullFields []string `json:"-"` 4665 } 4666 4667 func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) MarshalJSON() ([]byte, error) { 4668 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout 4669 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4670 } 4671 4672 func (s *GoogleCloudDocumentaiV1beta2DocumentPageLayout) UnmarshalJSON(data []byte) error { 4673 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLayout 4674 var s1 struct { 4675 Confidence gensupport.JSONFloat64 `json:"confidence"` 4676 *NoMethod 4677 } 4678 s1.NoMethod = (*NoMethod)(s) 4679 if err := json.Unmarshal(data, &s1); err != nil { 4680 return err 4681 } 4682 s.Confidence = float64(s1.Confidence) 4683 return nil 4684 } 4685 4686 // GoogleCloudDocumentaiV1beta2DocumentPageLine: A collection of tokens that a 4687 // human would perceive as a line. Does not cross column boundaries, can be 4688 // horizontal, vertical, etc. 4689 type GoogleCloudDocumentaiV1beta2DocumentPageLine struct { 4690 // DetectedLanguages: A list of detected languages together with confidence. 4691 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4692 // Layout: Layout for Line. 4693 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4694 // Provenance: The history of this annotation. 4695 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4696 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 4697 // unconditionally include in API requests. By default, fields with empty or 4698 // default values are omitted from API requests. See 4699 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4700 // details. 4701 ForceSendFields []string `json:"-"` 4702 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 4703 // API requests with the JSON null value. By default, fields with empty values 4704 // are omitted from API requests. See 4705 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4706 NullFields []string `json:"-"` 4707 } 4708 4709 func (s *GoogleCloudDocumentaiV1beta2DocumentPageLine) MarshalJSON() ([]byte, error) { 4710 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageLine 4711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4712 } 4713 4714 // GoogleCloudDocumentaiV1beta2DocumentPageMatrix: Representation for 4715 // transformation matrix, intended to be compatible and used with OpenCV format 4716 // for image manipulation. 4717 type GoogleCloudDocumentaiV1beta2DocumentPageMatrix struct { 4718 // Cols: Number of columns in the matrix. 4719 Cols int64 `json:"cols,omitempty"` 4720 // Data: The matrix data. 4721 Data string `json:"data,omitempty"` 4722 // Rows: Number of rows in the matrix. 4723 Rows int64 `json:"rows,omitempty"` 4724 // Type: This encodes information about what data type the matrix uses. For 4725 // example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV 4726 // primitive data types, please refer to 4727 // https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html 4728 Type int64 `json:"type,omitempty"` 4729 // ForceSendFields is a list of field names (e.g. "Cols") to unconditionally 4730 // include in API requests. By default, fields with empty or default values are 4731 // omitted from API requests. See 4732 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4733 // details. 4734 ForceSendFields []string `json:"-"` 4735 // NullFields is a list of field names (e.g. "Cols") to include in API requests 4736 // with the JSON null value. By default, fields with empty values are omitted 4737 // from API requests. See 4738 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4739 NullFields []string `json:"-"` 4740 } 4741 4742 func (s *GoogleCloudDocumentaiV1beta2DocumentPageMatrix) MarshalJSON() ([]byte, error) { 4743 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageMatrix 4744 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4745 } 4746 4747 // GoogleCloudDocumentaiV1beta2DocumentPageParagraph: A collection of lines 4748 // that a human would perceive as a paragraph. 4749 type GoogleCloudDocumentaiV1beta2DocumentPageParagraph struct { 4750 // DetectedLanguages: A list of detected languages together with confidence. 4751 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4752 // Layout: Layout for Paragraph. 4753 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4754 // Provenance: The history of this annotation. 4755 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4756 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 4757 // unconditionally include in API requests. By default, fields with empty or 4758 // default values are omitted from API requests. See 4759 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4760 // details. 4761 ForceSendFields []string `json:"-"` 4762 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 4763 // API requests with the JSON null value. By default, fields with empty values 4764 // are omitted from API requests. See 4765 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4766 NullFields []string `json:"-"` 4767 } 4768 4769 func (s *GoogleCloudDocumentaiV1beta2DocumentPageParagraph) MarshalJSON() ([]byte, error) { 4770 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageParagraph 4771 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4772 } 4773 4774 // GoogleCloudDocumentaiV1beta2DocumentPageSymbol: A detected symbol. 4775 type GoogleCloudDocumentaiV1beta2DocumentPageSymbol struct { 4776 // DetectedLanguages: A list of detected languages together with confidence. 4777 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4778 // Layout: Layout for Symbol. 4779 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4780 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 4781 // unconditionally include in API requests. By default, fields with empty or 4782 // default values are omitted from API requests. See 4783 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4784 // details. 4785 ForceSendFields []string `json:"-"` 4786 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 4787 // API requests with the JSON null value. By default, fields with empty values 4788 // are omitted from API requests. See 4789 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4790 NullFields []string `json:"-"` 4791 } 4792 4793 func (s *GoogleCloudDocumentaiV1beta2DocumentPageSymbol) MarshalJSON() ([]byte, error) { 4794 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageSymbol 4795 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4796 } 4797 4798 // GoogleCloudDocumentaiV1beta2DocumentPageTable: A table representation 4799 // similar to HTML table structure. 4800 type GoogleCloudDocumentaiV1beta2DocumentPageTable struct { 4801 // BodyRows: Body rows of the table. 4802 BodyRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"bodyRows,omitempty"` 4803 // DetectedLanguages: A list of detected languages together with confidence. 4804 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4805 // HeaderRows: Header rows of the table. 4806 HeaderRows []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow `json:"headerRows,omitempty"` 4807 // Layout: Layout for Table. 4808 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4809 // Provenance: The history of this table. 4810 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4811 // ForceSendFields is a list of field names (e.g. "BodyRows") to 4812 // unconditionally include in API requests. By default, fields with empty or 4813 // default values are omitted from API requests. See 4814 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4815 // details. 4816 ForceSendFields []string `json:"-"` 4817 // NullFields is a list of field names (e.g. "BodyRows") to include in API 4818 // requests with the JSON null value. By default, fields with empty values are 4819 // omitted from API requests. See 4820 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4821 NullFields []string `json:"-"` 4822 } 4823 4824 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTable) MarshalJSON() ([]byte, error) { 4825 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTable 4826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4827 } 4828 4829 // GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell: A cell 4830 // representation inside the table. 4831 type GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell struct { 4832 // ColSpan: How many columns this cell spans. 4833 ColSpan int64 `json:"colSpan,omitempty"` 4834 // DetectedLanguages: A list of detected languages together with confidence. 4835 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4836 // Layout: Layout for TableCell. 4837 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4838 // RowSpan: How many rows this cell spans. 4839 RowSpan int64 `json:"rowSpan,omitempty"` 4840 // ForceSendFields is a list of field names (e.g. "ColSpan") to unconditionally 4841 // include in API requests. By default, fields with empty or default values are 4842 // omitted from API requests. See 4843 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4844 // details. 4845 ForceSendFields []string `json:"-"` 4846 // NullFields is a list of field names (e.g. "ColSpan") to include in API 4847 // requests with the JSON null value. By default, fields with empty values are 4848 // omitted from API requests. See 4849 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4850 NullFields []string `json:"-"` 4851 } 4852 4853 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell) MarshalJSON() ([]byte, error) { 4854 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell 4855 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4856 } 4857 4858 // GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow: A row of table cells. 4859 type GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow struct { 4860 // Cells: Cells that make up this row. 4861 Cells []*GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell `json:"cells,omitempty"` 4862 // ForceSendFields is a list of field names (e.g. "Cells") to unconditionally 4863 // include in API requests. By default, fields with empty or default values are 4864 // omitted from API requests. See 4865 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4866 // details. 4867 ForceSendFields []string `json:"-"` 4868 // NullFields is a list of field names (e.g. "Cells") to include in API 4869 // requests with the JSON null value. By default, fields with empty values are 4870 // omitted from API requests. See 4871 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4872 NullFields []string `json:"-"` 4873 } 4874 4875 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow) MarshalJSON() ([]byte, error) { 4876 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow 4877 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4878 } 4879 4880 // GoogleCloudDocumentaiV1beta2DocumentPageToken: A detected token. 4881 type GoogleCloudDocumentaiV1beta2DocumentPageToken struct { 4882 // DetectedBreak: Detected break at the end of a Token. 4883 DetectedBreak *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak `json:"detectedBreak,omitempty"` 4884 // DetectedLanguages: A list of detected languages together with confidence. 4885 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 4886 // Layout: Layout for Token. 4887 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 4888 // Provenance: The history of this annotation. 4889 Provenance *GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 4890 // StyleInfo: Text style attributes. 4891 StyleInfo *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo `json:"styleInfo,omitempty"` 4892 // ForceSendFields is a list of field names (e.g. "DetectedBreak") to 4893 // unconditionally include in API requests. By default, fields with empty or 4894 // default values are omitted from API requests. See 4895 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4896 // details. 4897 ForceSendFields []string `json:"-"` 4898 // NullFields is a list of field names (e.g. "DetectedBreak") to include in API 4899 // requests with the JSON null value. By default, fields with empty values are 4900 // omitted from API requests. See 4901 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4902 NullFields []string `json:"-"` 4903 } 4904 4905 func (s *GoogleCloudDocumentaiV1beta2DocumentPageToken) MarshalJSON() ([]byte, error) { 4906 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageToken 4907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4908 } 4909 4910 // GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak: Detected break 4911 // at the end of a Token. 4912 type GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak struct { 4913 // Type: Detected break type. 4914 // 4915 // Possible values: 4916 // "TYPE_UNSPECIFIED" - Unspecified break type. 4917 // "SPACE" - A single whitespace. 4918 // "WIDE_SPACE" - A wider whitespace. 4919 // "HYPHEN" - A hyphen that indicates that a token has been split across 4920 // lines. 4921 Type string `json:"type,omitempty"` 4922 // ForceSendFields is a list of field names (e.g. "Type") to unconditionally 4923 // include in API requests. By default, fields with empty or default values are 4924 // omitted from API requests. See 4925 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4926 // details. 4927 ForceSendFields []string `json:"-"` 4928 // NullFields is a list of field names (e.g. "Type") to include in API requests 4929 // with the JSON null value. By default, fields with empty values are omitted 4930 // from API requests. See 4931 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4932 NullFields []string `json:"-"` 4933 } 4934 4935 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak) MarshalJSON() ([]byte, error) { 4936 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak 4937 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4938 } 4939 4940 // GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo: Font and other text 4941 // style attributes. 4942 type GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo struct { 4943 // BackgroundColor: Color of the background. 4944 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"` 4945 // Bold: Whether the text is bold (equivalent to font_weight is at least 4946 // `700`). 4947 Bold bool `json:"bold,omitempty"` 4948 // FontSize: Font size in points (`1` point is `¹⁄₇₂` inches). 4949 FontSize int64 `json:"fontSize,omitempty"` 4950 // FontType: Name or style of the font. 4951 FontType string `json:"fontType,omitempty"` 4952 // FontWeight: TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). 4953 // Normal is `400`, bold is `700`. 4954 FontWeight int64 `json:"fontWeight,omitempty"` 4955 // Handwritten: Whether the text is handwritten. 4956 Handwritten bool `json:"handwritten,omitempty"` 4957 // Italic: Whether the text is italic. 4958 Italic bool `json:"italic,omitempty"` 4959 // LetterSpacing: Letter spacing in points. 4960 LetterSpacing float64 `json:"letterSpacing,omitempty"` 4961 // PixelFontSize: Font size in pixels, equal to _unrounded font_size_ * 4962 // _resolution_ ÷ `72.0`. 4963 PixelFontSize float64 `json:"pixelFontSize,omitempty"` 4964 // Smallcaps: Whether the text is in small caps. This feature is not supported 4965 // yet. 4966 Smallcaps bool `json:"smallcaps,omitempty"` 4967 // Strikeout: Whether the text is strikethrough. This feature is not supported 4968 // yet. 4969 Strikeout bool `json:"strikeout,omitempty"` 4970 // Subscript: Whether the text is a subscript. This feature is not supported 4971 // yet. 4972 Subscript bool `json:"subscript,omitempty"` 4973 // Superscript: Whether the text is a superscript. This feature is not 4974 // supported yet. 4975 Superscript bool `json:"superscript,omitempty"` 4976 // TextColor: Color of the text. 4977 TextColor *GoogleTypeColor `json:"textColor,omitempty"` 4978 // Underlined: Whether the text is underlined. 4979 Underlined bool `json:"underlined,omitempty"` 4980 // ForceSendFields is a list of field names (e.g. "BackgroundColor") to 4981 // unconditionally include in API requests. By default, fields with empty or 4982 // default values are omitted from API requests. See 4983 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 4984 // details. 4985 ForceSendFields []string `json:"-"` 4986 // NullFields is a list of field names (e.g. "BackgroundColor") to include in 4987 // API requests with the JSON null value. By default, fields with empty values 4988 // are omitted from API requests. See 4989 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 4990 NullFields []string `json:"-"` 4991 } 4992 4993 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo) MarshalJSON() ([]byte, error) { 4994 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo 4995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 4996 } 4997 4998 func (s *GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo) UnmarshalJSON(data []byte) error { 4999 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo 5000 var s1 struct { 5001 LetterSpacing gensupport.JSONFloat64 `json:"letterSpacing"` 5002 PixelFontSize gensupport.JSONFloat64 `json:"pixelFontSize"` 5003 *NoMethod 5004 } 5005 s1.NoMethod = (*NoMethod)(s) 5006 if err := json.Unmarshal(data, &s1); err != nil { 5007 return err 5008 } 5009 s.LetterSpacing = float64(s1.LetterSpacing) 5010 s.PixelFontSize = float64(s1.PixelFontSize) 5011 return nil 5012 } 5013 5014 // GoogleCloudDocumentaiV1beta2DocumentPageVisualElement: Detected non-text 5015 // visual elements e.g. checkbox, signature etc. on the page. 5016 type GoogleCloudDocumentaiV1beta2DocumentPageVisualElement struct { 5017 // DetectedLanguages: A list of detected languages together with confidence. 5018 DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` 5019 // Layout: Layout for VisualElement. 5020 Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` 5021 // Type: Type of the VisualElement. 5022 Type string `json:"type,omitempty"` 5023 // ForceSendFields is a list of field names (e.g. "DetectedLanguages") to 5024 // unconditionally include in API requests. By default, fields with empty or 5025 // default values are omitted from API requests. See 5026 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5027 // details. 5028 ForceSendFields []string `json:"-"` 5029 // NullFields is a list of field names (e.g. "DetectedLanguages") to include in 5030 // API requests with the JSON null value. By default, fields with empty values 5031 // are omitted from API requests. See 5032 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5033 NullFields []string `json:"-"` 5034 } 5035 5036 func (s *GoogleCloudDocumentaiV1beta2DocumentPageVisualElement) MarshalJSON() ([]byte, error) { 5037 type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageVisualElement 5038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5039 } 5040 5041 // GoogleCloudDocumentaiV1beta2DocumentProvenance: Structure to identify 5042 // provenance relationships between annotations in different revisions. 5043 type GoogleCloudDocumentaiV1beta2DocumentProvenance struct { 5044 // Id: The Id of this operation. Needs to be unique within the scope of the 5045 // revision. 5046 Id int64 `json:"id,omitempty"` 5047 // Parents: References to the original elements that are replaced. 5048 Parents []*GoogleCloudDocumentaiV1beta2DocumentProvenanceParent `json:"parents,omitempty"` 5049 // Revision: The index of the revision that produced this element. 5050 Revision int64 `json:"revision,omitempty"` 5051 // Type: The type of provenance operation. 5052 // 5053 // Possible values: 5054 // "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. If no operation 5055 // is specified a provenance entry is simply used to match against a `parent`. 5056 // "ADD" - Add an element. 5057 // "REMOVE" - Remove an element identified by `parent`. 5058 // "UPDATE" - Updates any fields within the given provenance scope of the 5059 // message. It overwrites the fields rather than replacing them. Use this when 5060 // you want to update a field value of an entity without also updating all the 5061 // child properties. 5062 // "REPLACE" - Currently unused. Replace an element identified by `parent`. 5063 // "EVAL_REQUESTED" - Deprecated. Request human review for the element 5064 // identified by `parent`. 5065 // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at human 5066 // review, confidence will be set to 1.0. 5067 // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation process. 5068 Type string `json:"type,omitempty"` 5069 // ForceSendFields is a list of field names (e.g. "Id") to unconditionally 5070 // include in API requests. By default, fields with empty or default values are 5071 // omitted from API requests. See 5072 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5073 // details. 5074 ForceSendFields []string `json:"-"` 5075 // NullFields is a list of field names (e.g. "Id") to include in API requests 5076 // with the JSON null value. By default, fields with empty values are omitted 5077 // from API requests. See 5078 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5079 NullFields []string `json:"-"` 5080 } 5081 5082 func (s *GoogleCloudDocumentaiV1beta2DocumentProvenance) MarshalJSON() ([]byte, error) { 5083 type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenance 5084 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5085 } 5086 5087 // GoogleCloudDocumentaiV1beta2DocumentProvenanceParent: The parent element the 5088 // current element is based on. Used for referencing/aligning, removal and 5089 // replacement operations. 5090 type GoogleCloudDocumentaiV1beta2DocumentProvenanceParent struct { 5091 // Id: The id of the parent provenance. 5092 Id int64 `json:"id,omitempty"` 5093 // Index: The index of the parent item in the corresponding item list (eg. list 5094 // of entities, properties within entities, etc.) in the parent revision. 5095 Index int64 `json:"index,omitempty"` 5096 // Revision: The index of the index into current revision's parent_ids list. 5097 Revision int64 `json:"revision,omitempty"` 5098 // ForceSendFields is a list of field names (e.g. "Id") to unconditionally 5099 // include in API requests. By default, fields with empty or default values are 5100 // omitted from API requests. See 5101 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5102 // details. 5103 ForceSendFields []string `json:"-"` 5104 // NullFields is a list of field names (e.g. "Id") to include in API requests 5105 // with the JSON null value. By default, fields with empty values are omitted 5106 // from API requests. See 5107 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5108 NullFields []string `json:"-"` 5109 } 5110 5111 func (s *GoogleCloudDocumentaiV1beta2DocumentProvenanceParent) MarshalJSON() ([]byte, error) { 5112 type NoMethod GoogleCloudDocumentaiV1beta2DocumentProvenanceParent 5113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5114 } 5115 5116 // GoogleCloudDocumentaiV1beta2DocumentRevision: Contains past or forward 5117 // revisions of this document. 5118 type GoogleCloudDocumentaiV1beta2DocumentRevision struct { 5119 // Agent: If the change was made by a person specify the name or id of that 5120 // person. 5121 Agent string `json:"agent,omitempty"` 5122 // CreateTime: The time that the revision was created, internally generated by 5123 // doc proto storage at the time of create. 5124 CreateTime string `json:"createTime,omitempty"` 5125 // HumanReview: Human Review information of this revision. 5126 HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"` 5127 // Id: Id of the revision, internally generated by doc proto storage. Unique 5128 // within the context of the document. 5129 Id string `json:"id,omitempty"` 5130 // Parent: The revisions that this revision is based on. This can include one 5131 // or more parent (when documents are merged.) This field represents the index 5132 // into the `revisions` field. 5133 Parent []int64 `json:"parent,omitempty"` 5134 // ParentIds: The revisions that this revision is based on. Must include all 5135 // the ids that have anything to do with this revision - eg. there are 5136 // `provenance.parent.revision` fields that index into this field. 5137 ParentIds []string `json:"parentIds,omitempty"` 5138 // Processor: If the annotation was made by processor identify the processor by 5139 // its resource name. 5140 Processor string `json:"processor,omitempty"` 5141 // ForceSendFields is a list of field names (e.g. "Agent") to unconditionally 5142 // include in API requests. By default, fields with empty or default values are 5143 // omitted from API requests. See 5144 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5145 // details. 5146 ForceSendFields []string `json:"-"` 5147 // NullFields is a list of field names (e.g. "Agent") to include in API 5148 // requests with the JSON null value. By default, fields with empty values are 5149 // omitted from API requests. See 5150 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5151 NullFields []string `json:"-"` 5152 } 5153 5154 func (s *GoogleCloudDocumentaiV1beta2DocumentRevision) MarshalJSON() ([]byte, error) { 5155 type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevision 5156 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5157 } 5158 5159 // GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview: Human Review 5160 // information of the document. 5161 type GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview struct { 5162 // State: Human review state. e.g. `requested`, `succeeded`, `rejected`. 5163 State string `json:"state,omitempty"` 5164 // StateMessage: A message providing more details about the current state of 5165 // processing. For example, the rejection reason when the state is `rejected`. 5166 StateMessage string `json:"stateMessage,omitempty"` 5167 // ForceSendFields is a list of field names (e.g. "State") to unconditionally 5168 // include in API requests. By default, fields with empty or default values are 5169 // omitted from API requests. See 5170 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5171 // details. 5172 ForceSendFields []string `json:"-"` 5173 // NullFields is a list of field names (e.g. "State") to include in API 5174 // requests with the JSON null value. By default, fields with empty values are 5175 // omitted from API requests. See 5176 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5177 NullFields []string `json:"-"` 5178 } 5179 5180 func (s *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview) MarshalJSON() ([]byte, error) { 5181 type NoMethod GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview 5182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5183 } 5184 5185 // GoogleCloudDocumentaiV1beta2DocumentShardInfo: For a large document, 5186 // sharding may be performed to produce several document shards. Each document 5187 // shard contains this field to detail which shard it is. 5188 type GoogleCloudDocumentaiV1beta2DocumentShardInfo struct { 5189 // ShardCount: Total number of shards. 5190 ShardCount int64 `json:"shardCount,omitempty,string"` 5191 // ShardIndex: The 0-based index of this shard. 5192 ShardIndex int64 `json:"shardIndex,omitempty,string"` 5193 // TextOffset: The index of the first character in Document.text in the overall 5194 // document global text. 5195 TextOffset int64 `json:"textOffset,omitempty,string"` 5196 // ForceSendFields is a list of field names (e.g. "ShardCount") to 5197 // unconditionally include in API requests. By default, fields with empty or 5198 // default values are omitted from API requests. See 5199 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5200 // details. 5201 ForceSendFields []string `json:"-"` 5202 // NullFields is a list of field names (e.g. "ShardCount") to include in API 5203 // requests with the JSON null value. By default, fields with empty values are 5204 // omitted from API requests. See 5205 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5206 NullFields []string `json:"-"` 5207 } 5208 5209 func (s *GoogleCloudDocumentaiV1beta2DocumentShardInfo) MarshalJSON() ([]byte, error) { 5210 type NoMethod GoogleCloudDocumentaiV1beta2DocumentShardInfo 5211 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5212 } 5213 5214 // GoogleCloudDocumentaiV1beta2DocumentStyle: Annotation for common text style 5215 // attributes. This adheres to CSS conventions as much as possible. 5216 type GoogleCloudDocumentaiV1beta2DocumentStyle struct { 5217 // BackgroundColor: Text background color. 5218 BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"` 5219 // Color: Text color. 5220 Color *GoogleTypeColor `json:"color,omitempty"` 5221 // FontFamily: Font family such as `Arial`, `Times New Roman`. 5222 // https://www.w3schools.com/cssref/pr_font_font-family.asp 5223 FontFamily string `json:"fontFamily,omitempty"` 5224 // FontSize: Font size. 5225 FontSize *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize `json:"fontSize,omitempty"` 5226 // FontWeight: Font weight 5227 // (https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are 5228 // `normal`, `bold`, `bolder`, and `lighter`. 5229 FontWeight string `json:"fontWeight,omitempty"` 5230 // TextAnchor: Text anchor indexing into the Document.text. 5231 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` 5232 // TextDecoration: Text decoration 5233 // (https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS 5234 // standard. 5235 TextDecoration string `json:"textDecoration,omitempty"` 5236 // TextStyle: Text style 5237 // (https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values 5238 // are `normal`, `italic`, and `oblique`. 5239 TextStyle string `json:"textStyle,omitempty"` 5240 // ForceSendFields is a list of field names (e.g. "BackgroundColor") to 5241 // unconditionally include in API requests. By default, fields with empty or 5242 // default values are omitted from API requests. See 5243 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5244 // details. 5245 ForceSendFields []string `json:"-"` 5246 // NullFields is a list of field names (e.g. "BackgroundColor") to include in 5247 // API requests with the JSON null value. By default, fields with empty values 5248 // are omitted from API requests. See 5249 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5250 NullFields []string `json:"-"` 5251 } 5252 5253 func (s *GoogleCloudDocumentaiV1beta2DocumentStyle) MarshalJSON() ([]byte, error) { 5254 type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyle 5255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5256 } 5257 5258 // GoogleCloudDocumentaiV1beta2DocumentStyleFontSize: Font size with unit. 5259 type GoogleCloudDocumentaiV1beta2DocumentStyleFontSize struct { 5260 // Size: Font size for the text. 5261 Size float64 `json:"size,omitempty"` 5262 // Unit: Unit for the font size. Follows CSS naming (such as `in`, `px`, and 5263 // `pt`). 5264 Unit string `json:"unit,omitempty"` 5265 // ForceSendFields is a list of field names (e.g. "Size") to unconditionally 5266 // include in API requests. By default, fields with empty or default values are 5267 // omitted from API requests. See 5268 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5269 // details. 5270 ForceSendFields []string `json:"-"` 5271 // NullFields is a list of field names (e.g. "Size") to include in API requests 5272 // with the JSON null value. By default, fields with empty values are omitted 5273 // from API requests. See 5274 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5275 NullFields []string `json:"-"` 5276 } 5277 5278 func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) MarshalJSON() ([]byte, error) { 5279 type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize 5280 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5281 } 5282 5283 func (s *GoogleCloudDocumentaiV1beta2DocumentStyleFontSize) UnmarshalJSON(data []byte) error { 5284 type NoMethod GoogleCloudDocumentaiV1beta2DocumentStyleFontSize 5285 var s1 struct { 5286 Size gensupport.JSONFloat64 `json:"size"` 5287 *NoMethod 5288 } 5289 s1.NoMethod = (*NoMethod)(s) 5290 if err := json.Unmarshal(data, &s1); err != nil { 5291 return err 5292 } 5293 s.Size = float64(s1.Size) 5294 return nil 5295 } 5296 5297 // GoogleCloudDocumentaiV1beta2DocumentTextAnchor: Text reference indexing into 5298 // the Document.text. 5299 type GoogleCloudDocumentaiV1beta2DocumentTextAnchor struct { 5300 // Content: Contains the content of the text span so that users do not have to 5301 // look it up in the text_segments. It is always populated for formFields. 5302 Content string `json:"content,omitempty"` 5303 // TextSegments: The text segments from the Document.text. 5304 TextSegments []*GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment `json:"textSegments,omitempty"` 5305 // ForceSendFields is a list of field names (e.g. "Content") to unconditionally 5306 // include in API requests. By default, fields with empty or default values are 5307 // omitted from API requests. See 5308 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5309 // details. 5310 ForceSendFields []string `json:"-"` 5311 // NullFields is a list of field names (e.g. "Content") to include in API 5312 // requests with the JSON null value. By default, fields with empty values are 5313 // omitted from API requests. See 5314 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5315 NullFields []string `json:"-"` 5316 } 5317 5318 func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchor) MarshalJSON() ([]byte, error) { 5319 type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchor 5320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5321 } 5322 5323 // GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment: A text segment in 5324 // the Document.text. The indices may be out of bounds which indicate that the 5325 // text extends into another document shard for large sharded documents. See 5326 // ShardInfo.text_offset 5327 type GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment struct { 5328 // EndIndex: TextSegment half open end UTF-8 char index in the Document.text. 5329 EndIndex int64 `json:"endIndex,omitempty,string"` 5330 // StartIndex: TextSegment start UTF-8 char index in the Document.text. 5331 StartIndex int64 `json:"startIndex,omitempty,string"` 5332 // ForceSendFields is a list of field names (e.g. "EndIndex") to 5333 // unconditionally include in API requests. By default, fields with empty or 5334 // default values are omitted from API requests. See 5335 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5336 // details. 5337 ForceSendFields []string `json:"-"` 5338 // NullFields is a list of field names (e.g. "EndIndex") to include in API 5339 // requests with the JSON null value. By default, fields with empty values are 5340 // omitted from API requests. See 5341 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5342 NullFields []string `json:"-"` 5343 } 5344 5345 func (s *GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment) MarshalJSON() ([]byte, error) { 5346 type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment 5347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5348 } 5349 5350 // GoogleCloudDocumentaiV1beta2DocumentTextChange: This message is used for 5351 // text changes aka. OCR corrections. 5352 type GoogleCloudDocumentaiV1beta2DocumentTextChange struct { 5353 // ChangedText: The text that replaces the text identified in the 5354 // `text_anchor`. 5355 ChangedText string `json:"changedText,omitempty"` 5356 // Provenance: The history of this annotation. 5357 Provenance []*GoogleCloudDocumentaiV1beta2DocumentProvenance `json:"provenance,omitempty"` 5358 // TextAnchor: Provenance of the correction. Text anchor indexing into the 5359 // Document.text. There can only be a single `TextAnchor.text_segments` 5360 // element. If the start and end index of the text segment are the same, the 5361 // text change is inserted before that index. 5362 TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` 5363 // ForceSendFields is a list of field names (e.g. "ChangedText") to 5364 // unconditionally include in API requests. By default, fields with empty or 5365 // default values are omitted from API requests. See 5366 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5367 // details. 5368 ForceSendFields []string `json:"-"` 5369 // NullFields is a list of field names (e.g. "ChangedText") to include in API 5370 // requests with the JSON null value. By default, fields with empty values are 5371 // omitted from API requests. See 5372 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5373 NullFields []string `json:"-"` 5374 } 5375 5376 func (s *GoogleCloudDocumentaiV1beta2DocumentTextChange) MarshalJSON() ([]byte, error) { 5377 type NoMethod GoogleCloudDocumentaiV1beta2DocumentTextChange 5378 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5379 } 5380 5381 // GoogleCloudDocumentaiV1beta2EntityExtractionParams: Parameters to control 5382 // entity extraction behavior. 5383 type GoogleCloudDocumentaiV1beta2EntityExtractionParams struct { 5384 // Enabled: Whether to enable entity extraction. 5385 Enabled bool `json:"enabled,omitempty"` 5386 // ModelVersion: Model version of the entity extraction. Default is 5387 // "builtin/stable". Specify "builtin/latest" for the latest model. 5388 ModelVersion string `json:"modelVersion,omitempty"` 5389 // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally 5390 // include in API requests. By default, fields with empty or default values are 5391 // omitted from API requests. See 5392 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5393 // details. 5394 ForceSendFields []string `json:"-"` 5395 // NullFields is a list of field names (e.g. "Enabled") to include in API 5396 // requests with the JSON null value. By default, fields with empty values are 5397 // omitted from API requests. See 5398 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5399 NullFields []string `json:"-"` 5400 } 5401 5402 func (s *GoogleCloudDocumentaiV1beta2EntityExtractionParams) MarshalJSON() ([]byte, error) { 5403 type NoMethod GoogleCloudDocumentaiV1beta2EntityExtractionParams 5404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5405 } 5406 5407 // GoogleCloudDocumentaiV1beta2FormExtractionParams: Parameters to control form 5408 // extraction behavior. 5409 type GoogleCloudDocumentaiV1beta2FormExtractionParams struct { 5410 // Enabled: Whether to enable form extraction. 5411 Enabled bool `json:"enabled,omitempty"` 5412 // KeyValuePairHints: Reserved for future use. 5413 KeyValuePairHints []*GoogleCloudDocumentaiV1beta2KeyValuePairHint `json:"keyValuePairHints,omitempty"` 5414 // ModelVersion: Model version of the form extraction system. Default is 5415 // "builtin/stable". Specify "builtin/latest" for the latest model. For custom 5416 // form models, specify: "custom/{model_name}". Model name format is 5417 // "bucket_name/path/to/modeldir" corresponding to 5418 // "gs://bucket_name/path/to/modeldir" where annotated examples are stored. 5419 ModelVersion string `json:"modelVersion,omitempty"` 5420 // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally 5421 // include in API requests. By default, fields with empty or default values are 5422 // omitted from API requests. See 5423 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5424 // details. 5425 ForceSendFields []string `json:"-"` 5426 // NullFields is a list of field names (e.g. "Enabled") to include in API 5427 // requests with the JSON null value. By default, fields with empty values are 5428 // omitted from API requests. See 5429 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5430 NullFields []string `json:"-"` 5431 } 5432 5433 func (s *GoogleCloudDocumentaiV1beta2FormExtractionParams) MarshalJSON() ([]byte, error) { 5434 type NoMethod GoogleCloudDocumentaiV1beta2FormExtractionParams 5435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5436 } 5437 5438 // GoogleCloudDocumentaiV1beta2GcsDestination: The Google Cloud Storage 5439 // location where the output file will be written to. 5440 type GoogleCloudDocumentaiV1beta2GcsDestination struct { 5441 Uri string `json:"uri,omitempty"` 5442 // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally 5443 // include in API requests. By default, fields with empty or default values are 5444 // omitted from API requests. See 5445 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5446 // details. 5447 ForceSendFields []string `json:"-"` 5448 // NullFields is a list of field names (e.g. "Uri") to include in API requests 5449 // with the JSON null value. By default, fields with empty values are omitted 5450 // from API requests. See 5451 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5452 NullFields []string `json:"-"` 5453 } 5454 5455 func (s *GoogleCloudDocumentaiV1beta2GcsDestination) MarshalJSON() ([]byte, error) { 5456 type NoMethod GoogleCloudDocumentaiV1beta2GcsDestination 5457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5458 } 5459 5460 // GoogleCloudDocumentaiV1beta2GcsSource: The Google Cloud Storage location 5461 // where the input file will be read from. 5462 type GoogleCloudDocumentaiV1beta2GcsSource struct { 5463 Uri string `json:"uri,omitempty"` 5464 // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally 5465 // include in API requests. By default, fields with empty or default values are 5466 // omitted from API requests. See 5467 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5468 // details. 5469 ForceSendFields []string `json:"-"` 5470 // NullFields is a list of field names (e.g. "Uri") to include in API requests 5471 // with the JSON null value. By default, fields with empty values are omitted 5472 // from API requests. See 5473 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5474 NullFields []string `json:"-"` 5475 } 5476 5477 func (s *GoogleCloudDocumentaiV1beta2GcsSource) MarshalJSON() ([]byte, error) { 5478 type NoMethod GoogleCloudDocumentaiV1beta2GcsSource 5479 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5480 } 5481 5482 // GoogleCloudDocumentaiV1beta2InputConfig: The desired input location and 5483 // metadata. 5484 type GoogleCloudDocumentaiV1beta2InputConfig struct { 5485 // Contents: Content in bytes, represented as a stream of bytes. Note: As with 5486 // all `bytes` fields, proto buffer messages use a pure binary representation, 5487 // whereas JSON representations use base64. This field only works for 5488 // synchronous ProcessDocument method. 5489 Contents string `json:"contents,omitempty"` 5490 // GcsSource: The Google Cloud Storage location to read the input from. This 5491 // must be a single file. 5492 GcsSource *GoogleCloudDocumentaiV1beta2GcsSource `json:"gcsSource,omitempty"` 5493 // MimeType: Required. Mimetype of the input. Current supported mimetypes are 5494 // application/pdf, image/tiff, and image/gif. In addition, application/json 5495 // type is supported for requests with ProcessDocumentRequest.automl_params 5496 // field set. The JSON file needs to be in Document format. 5497 MimeType string `json:"mimeType,omitempty"` 5498 // ForceSendFields is a list of field names (e.g. "Contents") to 5499 // unconditionally include in API requests. By default, fields with empty or 5500 // default values are omitted from API requests. See 5501 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5502 // details. 5503 ForceSendFields []string `json:"-"` 5504 // NullFields is a list of field names (e.g. "Contents") to include in API 5505 // requests with the JSON null value. By default, fields with empty values are 5506 // omitted from API requests. See 5507 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5508 NullFields []string `json:"-"` 5509 } 5510 5511 func (s *GoogleCloudDocumentaiV1beta2InputConfig) MarshalJSON() ([]byte, error) { 5512 type NoMethod GoogleCloudDocumentaiV1beta2InputConfig 5513 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5514 } 5515 5516 // GoogleCloudDocumentaiV1beta2KeyValuePairHint: Reserved for future use. 5517 type GoogleCloudDocumentaiV1beta2KeyValuePairHint struct { 5518 // Key: The key text for the hint. 5519 Key string `json:"key,omitempty"` 5520 // ValueTypes: Type of the value. This is case-insensitive, and could be one 5521 // of: ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, ID, NUMBER, 5522 // EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will be ignored. 5523 ValueTypes []string `json:"valueTypes,omitempty"` 5524 // ForceSendFields is a list of field names (e.g. "Key") to unconditionally 5525 // include in API requests. By default, fields with empty or default values are 5526 // omitted from API requests. See 5527 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5528 // details. 5529 ForceSendFields []string `json:"-"` 5530 // NullFields is a list of field names (e.g. "Key") to include in API requests 5531 // with the JSON null value. By default, fields with empty values are omitted 5532 // from API requests. See 5533 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5534 NullFields []string `json:"-"` 5535 } 5536 5537 func (s *GoogleCloudDocumentaiV1beta2KeyValuePairHint) MarshalJSON() ([]byte, error) { 5538 type NoMethod GoogleCloudDocumentaiV1beta2KeyValuePairHint 5539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5540 } 5541 5542 // GoogleCloudDocumentaiV1beta2NormalizedVertex: A vertex represents a 2D point 5543 // in the image. NOTE: the normalized vertex coordinates are relative to the 5544 // original image and range from 0 to 1. 5545 type GoogleCloudDocumentaiV1beta2NormalizedVertex struct { 5546 // X: X coordinate. 5547 X float64 `json:"x,omitempty"` 5548 // Y: Y coordinate (starts from the top of the image). 5549 Y float64 `json:"y,omitempty"` 5550 // ForceSendFields is a list of field names (e.g. "X") to unconditionally 5551 // include in API requests. By default, fields with empty or default values are 5552 // omitted from API requests. See 5553 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5554 // details. 5555 ForceSendFields []string `json:"-"` 5556 // NullFields is a list of field names (e.g. "X") to include in API requests 5557 // with the JSON null value. By default, fields with empty values are omitted 5558 // from API requests. See 5559 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5560 NullFields []string `json:"-"` 5561 } 5562 5563 func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) MarshalJSON() ([]byte, error) { 5564 type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex 5565 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5566 } 5567 5568 func (s *GoogleCloudDocumentaiV1beta2NormalizedVertex) UnmarshalJSON(data []byte) error { 5569 type NoMethod GoogleCloudDocumentaiV1beta2NormalizedVertex 5570 var s1 struct { 5571 X gensupport.JSONFloat64 `json:"x"` 5572 Y gensupport.JSONFloat64 `json:"y"` 5573 *NoMethod 5574 } 5575 s1.NoMethod = (*NoMethod)(s) 5576 if err := json.Unmarshal(data, &s1); err != nil { 5577 return err 5578 } 5579 s.X = float64(s1.X) 5580 s.Y = float64(s1.Y) 5581 return nil 5582 } 5583 5584 // GoogleCloudDocumentaiV1beta2OcrParams: Parameters to control Optical 5585 // Character Recognition (OCR) behavior. 5586 type GoogleCloudDocumentaiV1beta2OcrParams struct { 5587 // LanguageHints: List of languages to use for OCR. In most cases, an empty 5588 // value yields the best results since it enables automatic language detection. 5589 // For languages based on the Latin alphabet, setting `language_hints` is not 5590 // needed. In rare cases, when the language of the text in the image is known, 5591 // setting a hint will help get better results (although it will be a 5592 // significant hindrance if the hint is wrong). Document processing returns an 5593 // error if one or more of the specified languages is not one of the supported 5594 // languages. 5595 LanguageHints []string `json:"languageHints,omitempty"` 5596 // ForceSendFields is a list of field names (e.g. "LanguageHints") to 5597 // unconditionally include in API requests. By default, fields with empty or 5598 // default values are omitted from API requests. See 5599 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5600 // details. 5601 ForceSendFields []string `json:"-"` 5602 // NullFields is a list of field names (e.g. "LanguageHints") to include in API 5603 // requests with the JSON null value. By default, fields with empty values are 5604 // omitted from API requests. See 5605 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5606 NullFields []string `json:"-"` 5607 } 5608 5609 func (s *GoogleCloudDocumentaiV1beta2OcrParams) MarshalJSON() ([]byte, error) { 5610 type NoMethod GoogleCloudDocumentaiV1beta2OcrParams 5611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5612 } 5613 5614 // GoogleCloudDocumentaiV1beta2OperationMetadata: Contains metadata for the 5615 // BatchProcessDocuments operation. 5616 type GoogleCloudDocumentaiV1beta2OperationMetadata struct { 5617 // CreateTime: The creation time of the operation. 5618 CreateTime string `json:"createTime,omitempty"` 5619 // State: The state of the current batch processing. 5620 // 5621 // Possible values: 5622 // "STATE_UNSPECIFIED" - The default value. This value is used if the state 5623 // is omitted. 5624 // "ACCEPTED" - Request is received. 5625 // "WAITING" - Request operation is waiting for scheduling. 5626 // "RUNNING" - Request is being processed. 5627 // "SUCCEEDED" - The batch processing completed successfully. 5628 // "CANCELLED" - The batch processing was cancelled. 5629 // "FAILED" - The batch processing has failed. 5630 State string `json:"state,omitempty"` 5631 // StateMessage: A message providing more details about the current state of 5632 // processing. 5633 StateMessage string `json:"stateMessage,omitempty"` 5634 // UpdateTime: The last update time of the operation. 5635 UpdateTime string `json:"updateTime,omitempty"` 5636 // ForceSendFields is a list of field names (e.g. "CreateTime") to 5637 // unconditionally include in API requests. By default, fields with empty or 5638 // default values are omitted from API requests. See 5639 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5640 // details. 5641 ForceSendFields []string `json:"-"` 5642 // NullFields is a list of field names (e.g. "CreateTime") to include in API 5643 // requests with the JSON null value. By default, fields with empty values are 5644 // omitted from API requests. See 5645 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5646 NullFields []string `json:"-"` 5647 } 5648 5649 func (s *GoogleCloudDocumentaiV1beta2OperationMetadata) MarshalJSON() ([]byte, error) { 5650 type NoMethod GoogleCloudDocumentaiV1beta2OperationMetadata 5651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5652 } 5653 5654 // GoogleCloudDocumentaiV1beta2OutputConfig: The desired output location and 5655 // metadata. 5656 type GoogleCloudDocumentaiV1beta2OutputConfig struct { 5657 // GcsDestination: The Google Cloud Storage location to write the output to. 5658 GcsDestination *GoogleCloudDocumentaiV1beta2GcsDestination `json:"gcsDestination,omitempty"` 5659 // PagesPerShard: The max number of pages to include into each output Document 5660 // shard JSON on Google Cloud Storage. The valid range is [1, 100]. If not 5661 // specified, the default value is 20. For example, for one pdf file with 100 5662 // pages, 100 parsed pages will be produced. If `pages_per_shard` = 20, then 5 5663 // Document shard JSON files each containing 20 parsed pages will be written 5664 // under the prefix OutputConfig.gcs_destination.uri and suffix 5665 // pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS 5666 // outputs with 157 pages and pages_per_shard = 50: pages-001-to-050.json 5667 // pages-051-to-100.json pages-101-to-150.json pages-151-to-157.json 5668 PagesPerShard int64 `json:"pagesPerShard,omitempty"` 5669 // ForceSendFields is a list of field names (e.g. "GcsDestination") to 5670 // unconditionally include in API requests. By default, fields with empty or 5671 // default values are omitted from API requests. See 5672 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5673 // details. 5674 ForceSendFields []string `json:"-"` 5675 // NullFields is a list of field names (e.g. "GcsDestination") to include in 5676 // API requests with the JSON null value. By default, fields with empty values 5677 // are omitted from API requests. See 5678 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5679 NullFields []string `json:"-"` 5680 } 5681 5682 func (s *GoogleCloudDocumentaiV1beta2OutputConfig) MarshalJSON() ([]byte, error) { 5683 type NoMethod GoogleCloudDocumentaiV1beta2OutputConfig 5684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5685 } 5686 5687 // GoogleCloudDocumentaiV1beta2ProcessDocumentRequest: Request to process one 5688 // document. 5689 type GoogleCloudDocumentaiV1beta2ProcessDocumentRequest struct { 5690 // AutomlParams: Controls AutoML model prediction behavior. AutoMlParams cannot 5691 // be used together with other Params. 5692 AutomlParams *GoogleCloudDocumentaiV1beta2AutoMlParams `json:"automlParams,omitempty"` 5693 // DocumentType: Specifies a known document type for deeper structure 5694 // detection. Valid values are currently "general" and "invoice". If not 5695 // provided, "general"\ is used as default. If any other value is given, the 5696 // request is rejected. 5697 DocumentType string `json:"documentType,omitempty"` 5698 // EntityExtractionParams: Controls entity extraction behavior. If not 5699 // specified, the system will decide reasonable defaults. 5700 EntityExtractionParams *GoogleCloudDocumentaiV1beta2EntityExtractionParams `json:"entityExtractionParams,omitempty"` 5701 // FormExtractionParams: Controls form extraction behavior. If not specified, 5702 // the system will decide reasonable defaults. 5703 FormExtractionParams *GoogleCloudDocumentaiV1beta2FormExtractionParams `json:"formExtractionParams,omitempty"` 5704 // InputConfig: Required. Information about the input file. 5705 InputConfig *GoogleCloudDocumentaiV1beta2InputConfig `json:"inputConfig,omitempty"` 5706 // OcrParams: Controls OCR behavior. If not specified, the system will decide 5707 // reasonable defaults. 5708 OcrParams *GoogleCloudDocumentaiV1beta2OcrParams `json:"ocrParams,omitempty"` 5709 // OutputConfig: The desired output location. This field is only needed in 5710 // BatchProcessDocumentsRequest. 5711 OutputConfig *GoogleCloudDocumentaiV1beta2OutputConfig `json:"outputConfig,omitempty"` 5712 // Parent: Target project and location to make a call. Format: 5713 // `projects/{project-id}/locations/{location-id}`. If no location is 5714 // specified, a region will be chosen automatically. This field is only 5715 // populated when used in ProcessDocument method. 5716 Parent string `json:"parent,omitempty"` 5717 // TableExtractionParams: Controls table extraction behavior. If not specified, 5718 // the system will decide reasonable defaults. 5719 TableExtractionParams *GoogleCloudDocumentaiV1beta2TableExtractionParams `json:"tableExtractionParams,omitempty"` 5720 // ForceSendFields is a list of field names (e.g. "AutomlParams") to 5721 // unconditionally include in API requests. By default, fields with empty or 5722 // default values are omitted from API requests. See 5723 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5724 // details. 5725 ForceSendFields []string `json:"-"` 5726 // NullFields is a list of field names (e.g. "AutomlParams") to include in API 5727 // requests with the JSON null value. By default, fields with empty values are 5728 // omitted from API requests. See 5729 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5730 NullFields []string `json:"-"` 5731 } 5732 5733 func (s *GoogleCloudDocumentaiV1beta2ProcessDocumentRequest) MarshalJSON() ([]byte, error) { 5734 type NoMethod GoogleCloudDocumentaiV1beta2ProcessDocumentRequest 5735 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5736 } 5737 5738 // GoogleCloudDocumentaiV1beta2ProcessDocumentResponse: Response to a single 5739 // document processing request. 5740 type GoogleCloudDocumentaiV1beta2ProcessDocumentResponse struct { 5741 // InputConfig: Information about the input file. This is the same as the 5742 // corresponding input config in the request. 5743 InputConfig *GoogleCloudDocumentaiV1beta2InputConfig `json:"inputConfig,omitempty"` 5744 // OutputConfig: The output location of the parsed responses. The responses are 5745 // written to this location as JSON-serialized `Document` objects. 5746 OutputConfig *GoogleCloudDocumentaiV1beta2OutputConfig `json:"outputConfig,omitempty"` 5747 // ForceSendFields is a list of field names (e.g. "InputConfig") to 5748 // unconditionally include in API requests. By default, fields with empty or 5749 // default values are omitted from API requests. See 5750 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5751 // details. 5752 ForceSendFields []string `json:"-"` 5753 // NullFields is a list of field names (e.g. "InputConfig") to include in API 5754 // requests with the JSON null value. By default, fields with empty values are 5755 // omitted from API requests. See 5756 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5757 NullFields []string `json:"-"` 5758 } 5759 5760 func (s *GoogleCloudDocumentaiV1beta2ProcessDocumentResponse) MarshalJSON() ([]byte, error) { 5761 type NoMethod GoogleCloudDocumentaiV1beta2ProcessDocumentResponse 5762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5763 } 5764 5765 // GoogleCloudDocumentaiV1beta2TableBoundHint: A hint for a table bounding box 5766 // on the page for table parsing. 5767 type GoogleCloudDocumentaiV1beta2TableBoundHint struct { 5768 // BoundingBox: Bounding box hint for a table on this page. The coordinates 5769 // must be normalized to [0,1] and the bounding box must be an axis-aligned 5770 // rectangle. 5771 BoundingBox *GoogleCloudDocumentaiV1beta2BoundingPoly `json:"boundingBox,omitempty"` 5772 // PageNumber: Optional. Page number for multi-paged inputs this hint applies 5773 // to. If not provided, this hint will apply to all pages by default. This 5774 // value is 1-based. 5775 PageNumber int64 `json:"pageNumber,omitempty"` 5776 // ForceSendFields is a list of field names (e.g. "BoundingBox") to 5777 // unconditionally include in API requests. By default, fields with empty or 5778 // default values are omitted from API requests. See 5779 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5780 // details. 5781 ForceSendFields []string `json:"-"` 5782 // NullFields is a list of field names (e.g. "BoundingBox") to include in API 5783 // requests with the JSON null value. By default, fields with empty values are 5784 // omitted from API requests. See 5785 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5786 NullFields []string `json:"-"` 5787 } 5788 5789 func (s *GoogleCloudDocumentaiV1beta2TableBoundHint) MarshalJSON() ([]byte, error) { 5790 type NoMethod GoogleCloudDocumentaiV1beta2TableBoundHint 5791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5792 } 5793 5794 // GoogleCloudDocumentaiV1beta2TableExtractionParams: Parameters to control 5795 // table extraction behavior. 5796 type GoogleCloudDocumentaiV1beta2TableExtractionParams struct { 5797 // Enabled: Whether to enable table extraction. 5798 Enabled bool `json:"enabled,omitempty"` 5799 // HeaderHints: Optional. Reserved for future use. 5800 HeaderHints []string `json:"headerHints,omitempty"` 5801 // ModelVersion: Model version of the table extraction system. Default is 5802 // "builtin/stable". Specify "builtin/latest" for the latest model. 5803 ModelVersion string `json:"modelVersion,omitempty"` 5804 // TableBoundHints: Optional. Table bounding box hints that can be provided to 5805 // complex cases which our algorithm cannot locate the table(s) in. 5806 TableBoundHints []*GoogleCloudDocumentaiV1beta2TableBoundHint `json:"tableBoundHints,omitempty"` 5807 // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally 5808 // include in API requests. By default, fields with empty or default values are 5809 // omitted from API requests. See 5810 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5811 // details. 5812 ForceSendFields []string `json:"-"` 5813 // NullFields is a list of field names (e.g. "Enabled") to include in API 5814 // requests with the JSON null value. By default, fields with empty values are 5815 // omitted from API requests. See 5816 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5817 NullFields []string `json:"-"` 5818 } 5819 5820 func (s *GoogleCloudDocumentaiV1beta2TableExtractionParams) MarshalJSON() ([]byte, error) { 5821 type NoMethod GoogleCloudDocumentaiV1beta2TableExtractionParams 5822 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5823 } 5824 5825 // GoogleCloudDocumentaiV1beta2Vertex: A vertex represents a 2D point in the 5826 // image. NOTE: the vertex coordinates are in the same scale as the original 5827 // image. 5828 type GoogleCloudDocumentaiV1beta2Vertex struct { 5829 // X: X coordinate. 5830 X int64 `json:"x,omitempty"` 5831 // Y: Y coordinate (starts from the top of the image). 5832 Y int64 `json:"y,omitempty"` 5833 // ForceSendFields is a list of field names (e.g. "X") to unconditionally 5834 // include in API requests. By default, fields with empty or default values are 5835 // 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. "X") to include in API requests 5840 // with the JSON null value. By default, fields with empty values are omitted 5841 // 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 *GoogleCloudDocumentaiV1beta2Vertex) MarshalJSON() ([]byte, error) { 5847 type NoMethod GoogleCloudDocumentaiV1beta2Vertex 5848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5849 } 5850 5851 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata struct { 5852 // CommonMetadata: The basic metadata of the long-running operation. 5853 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 5854 // ErrorDocumentCount: Total number of documents that failed to be deleted in 5855 // storage. 5856 ErrorDocumentCount int64 `json:"errorDocumentCount,omitempty"` 5857 // IndividualBatchDeleteStatuses: The list of response details of each 5858 // document. 5859 IndividualBatchDeleteStatuses []*GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus `json:"individualBatchDeleteStatuses,omitempty"` 5860 // TotalDocumentCount: Total number of documents deleting from dataset. 5861 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` 5862 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 5863 // unconditionally include in API requests. By default, fields with empty or 5864 // default values are omitted from API requests. See 5865 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5866 // details. 5867 ForceSendFields []string `json:"-"` 5868 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 5869 // API requests with the JSON null value. By default, fields with empty values 5870 // are omitted from API requests. See 5871 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5872 NullFields []string `json:"-"` 5873 } 5874 5875 func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata) MarshalJSON() ([]byte, error) { 5876 type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata 5877 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5878 } 5879 5880 // GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDelete 5881 // Status: The status of each individual document in the batch delete process. 5882 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus struct { 5883 // DocumentId: The document id of the document. 5884 DocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"documentId,omitempty"` 5885 // Status: The status of deleting the document in storage. 5886 Status *GoogleRpcStatus `json:"status,omitempty"` 5887 // ForceSendFields is a list of field names (e.g. "DocumentId") to 5888 // unconditionally include in API requests. By default, fields with empty or 5889 // default values are omitted from API requests. See 5890 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5891 // details. 5892 ForceSendFields []string `json:"-"` 5893 // NullFields is a list of field names (e.g. "DocumentId") to include in API 5894 // requests with the JSON null value. By default, fields with empty values are 5895 // omitted from API requests. See 5896 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5897 NullFields []string `json:"-"` 5898 } 5899 5900 func (s *GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus) MarshalJSON() ([]byte, error) { 5901 type NoMethod GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus 5902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5903 } 5904 5905 // GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse: Response of the 5906 // delete documents operation. 5907 type GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse struct { 5908 } 5909 5910 // GoogleCloudDocumentaiV1beta3BatchProcessMetadata: The long-running operation 5911 // metadata for BatchProcessDocuments. 5912 type GoogleCloudDocumentaiV1beta3BatchProcessMetadata struct { 5913 // CreateTime: The creation time of the operation. 5914 CreateTime string `json:"createTime,omitempty"` 5915 // IndividualProcessStatuses: The list of response details of each document. 5916 IndividualProcessStatuses []*GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus `json:"individualProcessStatuses,omitempty"` 5917 // State: The state of the current batch processing. 5918 // 5919 // Possible values: 5920 // "STATE_UNSPECIFIED" - The default value. This value is used if the state 5921 // is omitted. 5922 // "WAITING" - Request operation is waiting for scheduling. 5923 // "RUNNING" - Request is being processed. 5924 // "SUCCEEDED" - The batch processing completed successfully. 5925 // "CANCELLING" - The batch processing was being cancelled. 5926 // "CANCELLED" - The batch processing was cancelled. 5927 // "FAILED" - The batch processing has failed. 5928 State string `json:"state,omitempty"` 5929 // StateMessage: A message providing more details about the current state of 5930 // processing. For example, the error message if the operation is failed. 5931 StateMessage string `json:"stateMessage,omitempty"` 5932 // UpdateTime: The last update time of the operation. 5933 UpdateTime string `json:"updateTime,omitempty"` 5934 // ForceSendFields is a list of field names (e.g. "CreateTime") to 5935 // unconditionally include in API requests. By default, fields with empty or 5936 // default values are omitted from API requests. See 5937 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5938 // details. 5939 ForceSendFields []string `json:"-"` 5940 // NullFields is a list of field names (e.g. "CreateTime") to include in API 5941 // requests with the JSON null value. By default, fields with empty values are 5942 // omitted from API requests. See 5943 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5944 NullFields []string `json:"-"` 5945 } 5946 5947 func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadata) MarshalJSON() ([]byte, error) { 5948 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadata 5949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5950 } 5951 5952 // GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus: The 5953 // status of a each individual document in the batch process. 5954 type GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus struct { 5955 // HumanReviewOperation: The name of the operation triggered by the processed 5956 // document. If the human review process isn't triggered, this field will be 5957 // empty. It has the same response type and metadata as the long-running 5958 // operation returned by the ReviewDocument method. 5959 HumanReviewOperation string `json:"humanReviewOperation,omitempty"` 5960 // HumanReviewStatus: The status of human review on the processed document. 5961 HumanReviewStatus *GoogleCloudDocumentaiV1beta3HumanReviewStatus `json:"humanReviewStatus,omitempty"` 5962 // InputGcsSource: The source of the document, same as the input_gcs_source 5963 // field in the request when the batch process started. 5964 InputGcsSource string `json:"inputGcsSource,omitempty"` 5965 // OutputGcsDestination: The Cloud Storage output destination (in the request 5966 // as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document 5967 // if it was successful, otherwise empty. 5968 OutputGcsDestination string `json:"outputGcsDestination,omitempty"` 5969 // Status: The status processing the document. 5970 Status *GoogleRpcStatus `json:"status,omitempty"` 5971 // ForceSendFields is a list of field names (e.g. "HumanReviewOperation") to 5972 // unconditionally include in API requests. By default, fields with empty or 5973 // default values are omitted from API requests. See 5974 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 5975 // details. 5976 ForceSendFields []string `json:"-"` 5977 // NullFields is a list of field names (e.g. "HumanReviewOperation") to include 5978 // in API requests with the JSON null value. By default, fields with empty 5979 // values are omitted from API requests. See 5980 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 5981 NullFields []string `json:"-"` 5982 } 5983 5984 func (s *GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus) MarshalJSON() ([]byte, error) { 5985 type NoMethod GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus 5986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 5987 } 5988 5989 // GoogleCloudDocumentaiV1beta3BatchProcessResponse: Response message for 5990 // BatchProcessDocuments. 5991 type GoogleCloudDocumentaiV1beta3BatchProcessResponse struct { 5992 } 5993 5994 // GoogleCloudDocumentaiV1beta3CommonOperationMetadata: The common metadata for 5995 // long running operations. 5996 type GoogleCloudDocumentaiV1beta3CommonOperationMetadata struct { 5997 // CreateTime: The creation time of the operation. 5998 CreateTime string `json:"createTime,omitempty"` 5999 // Resource: A related resource to this operation. 6000 Resource string `json:"resource,omitempty"` 6001 // State: The state of the operation. 6002 // 6003 // Possible values: 6004 // "STATE_UNSPECIFIED" - Unspecified state. 6005 // "RUNNING" - Operation is still running. 6006 // "CANCELLING" - Operation is being cancelled. 6007 // "SUCCEEDED" - Operation succeeded. 6008 // "FAILED" - Operation failed. 6009 // "CANCELLED" - Operation is cancelled. 6010 State string `json:"state,omitempty"` 6011 // StateMessage: A message providing more details about the current state of 6012 // processing. 6013 StateMessage string `json:"stateMessage,omitempty"` 6014 // UpdateTime: The last update time of the operation. 6015 UpdateTime string `json:"updateTime,omitempty"` 6016 // ForceSendFields is a list of field names (e.g. "CreateTime") to 6017 // unconditionally include in API requests. By default, fields with empty or 6018 // default values are omitted from API requests. See 6019 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6020 // details. 6021 ForceSendFields []string `json:"-"` 6022 // NullFields is a list of field names (e.g. "CreateTime") to include in API 6023 // requests with the JSON null value. By default, fields with empty values are 6024 // omitted from API requests. See 6025 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6026 NullFields []string `json:"-"` 6027 } 6028 6029 func (s *GoogleCloudDocumentaiV1beta3CommonOperationMetadata) MarshalJSON() ([]byte, error) { 6030 type NoMethod GoogleCloudDocumentaiV1beta3CommonOperationMetadata 6031 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6032 } 6033 6034 // GoogleCloudDocumentaiV1beta3Dataset: A singleton resource under a Processor 6035 // which configures a collection of documents. 6036 type GoogleCloudDocumentaiV1beta3Dataset struct { 6037 // DocumentWarehouseConfig: Optional. Deprecated. Warehouse-based dataset 6038 // configuration is not supported. 6039 DocumentWarehouseConfig *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig `json:"documentWarehouseConfig,omitempty"` 6040 // GcsManagedConfig: Optional. User-managed Cloud Storage dataset 6041 // configuration. Use this configuration if the dataset documents are stored 6042 // under a user-managed Cloud Storage location. 6043 GcsManagedConfig *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig `json:"gcsManagedConfig,omitempty"` 6044 // Name: Dataset resource name. Format: 6045 // `projects/{project}/locations/{location}/processors/{processor}/dataset` 6046 Name string `json:"name,omitempty"` 6047 // SpannerIndexingConfig: Optional. A lightweight indexing source with low 6048 // latency and high reliability, but lacking advanced features like CMEK and 6049 // content-based search. 6050 SpannerIndexingConfig *GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig `json:"spannerIndexingConfig,omitempty"` 6051 // State: Required. State of the dataset. Ignored when updating dataset. 6052 // 6053 // Possible values: 6054 // "STATE_UNSPECIFIED" - Default unspecified enum, should not be used. 6055 // "UNINITIALIZED" - Dataset has not been initialized. 6056 // "INITIALIZING" - Dataset is being initialized. 6057 // "INITIALIZED" - Dataset has been initialized. 6058 State string `json:"state,omitempty"` 6059 // UnmanagedDatasetConfig: Optional. Unmanaged dataset configuration. Use this 6060 // configuration if the dataset documents are managed by the document service 6061 // internally (not user-managed). 6062 UnmanagedDatasetConfig *GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig `json:"unmanagedDatasetConfig,omitempty"` 6063 // ForceSendFields is a list of field names (e.g. "DocumentWarehouseConfig") to 6064 // unconditionally include in API requests. By default, fields with empty or 6065 // default values are omitted from API requests. See 6066 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6067 // details. 6068 ForceSendFields []string `json:"-"` 6069 // NullFields is a list of field names (e.g. "DocumentWarehouseConfig") to 6070 // include in API requests with the JSON null value. By default, fields with 6071 // empty values are omitted from API requests. See 6072 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6073 NullFields []string `json:"-"` 6074 } 6075 6076 func (s *GoogleCloudDocumentaiV1beta3Dataset) MarshalJSON() ([]byte, error) { 6077 type NoMethod GoogleCloudDocumentaiV1beta3Dataset 6078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6079 } 6080 6081 // GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig: Configuration 6082 // specific to the Document AI Warehouse-based implementation. 6083 type GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig struct { 6084 // Collection: Output only. The collection in Document AI Warehouse associated 6085 // with the dataset. 6086 Collection string `json:"collection,omitempty"` 6087 // Schema: Output only. The schema in Document AI Warehouse associated with the 6088 // dataset. 6089 Schema string `json:"schema,omitempty"` 6090 // ForceSendFields is a list of field names (e.g. "Collection") to 6091 // unconditionally include in API requests. By default, fields with empty or 6092 // default values are omitted from API requests. See 6093 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6094 // details. 6095 ForceSendFields []string `json:"-"` 6096 // NullFields is a list of field names (e.g. "Collection") to include in API 6097 // requests with the JSON null value. By default, fields with empty values are 6098 // omitted from API requests. See 6099 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6100 NullFields []string `json:"-"` 6101 } 6102 6103 func (s *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig) MarshalJSON() ([]byte, error) { 6104 type NoMethod GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig 6105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6106 } 6107 6108 // GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig: Configuration specific 6109 // to the Cloud Storage-based implementation. 6110 type GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig struct { 6111 // GcsPrefix: Required. The Cloud Storage URI (a directory) where the documents 6112 // belonging to the dataset must be stored. 6113 GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"` 6114 // ForceSendFields is a list of field names (e.g. "GcsPrefix") to 6115 // unconditionally include in API requests. By default, fields with empty or 6116 // default values are omitted from API requests. See 6117 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6118 // details. 6119 ForceSendFields []string `json:"-"` 6120 // NullFields is a list of field names (e.g. "GcsPrefix") to include in API 6121 // requests with the JSON null value. By default, fields with empty values are 6122 // omitted from API requests. See 6123 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6124 NullFields []string `json:"-"` 6125 } 6126 6127 func (s *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig) MarshalJSON() ([]byte, error) { 6128 type NoMethod GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig 6129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6130 } 6131 6132 // GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig: Configuration 6133 // specific to spanner-based indexing. 6134 type GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig struct { 6135 } 6136 6137 // GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig: Configuration 6138 // specific to an unmanaged dataset. 6139 type GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig struct { 6140 } 6141 6142 // GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata: The long-running 6143 // operation metadata for the DeleteProcessor method. 6144 type GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata struct { 6145 // CommonMetadata: The basic metadata of the long-running operation. 6146 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6147 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6148 // unconditionally include in API requests. By default, fields with empty or 6149 // default values are omitted from API requests. See 6150 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6151 // details. 6152 ForceSendFields []string `json:"-"` 6153 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6154 // API requests with the JSON null value. By default, fields with empty values 6155 // are omitted from API requests. See 6156 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6157 NullFields []string `json:"-"` 6158 } 6159 6160 func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata) MarshalJSON() ([]byte, error) { 6161 type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata 6162 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6163 } 6164 6165 // GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata: The long-running 6166 // operation metadata for the DeleteProcessorVersion method. 6167 type GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata struct { 6168 // CommonMetadata: The basic metadata of the long-running operation. 6169 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6170 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6171 // unconditionally include in API requests. By default, fields with empty or 6172 // default values are omitted from API requests. See 6173 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6174 // details. 6175 ForceSendFields []string `json:"-"` 6176 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6177 // API requests with the JSON null value. By default, fields with empty values 6178 // are omitted from API requests. See 6179 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6180 NullFields []string `json:"-"` 6181 } 6182 6183 func (s *GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6184 type NoMethod GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata 6185 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6186 } 6187 6188 // GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata: The long-running 6189 // operation metadata for the DeployProcessorVersion method. 6190 type GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata struct { 6191 // CommonMetadata: The basic metadata of the long-running operation. 6192 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6193 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6194 // unconditionally include in API requests. By default, fields with empty or 6195 // default values are omitted from API requests. See 6196 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6197 // details. 6198 ForceSendFields []string `json:"-"` 6199 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6200 // API requests with the JSON null value. By default, fields with empty values 6201 // are omitted from API requests. See 6202 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6203 NullFields []string `json:"-"` 6204 } 6205 6206 func (s *GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6207 type NoMethod GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata 6208 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6209 } 6210 6211 // GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse: Response message 6212 // for the DeployProcessorVersion method. 6213 type GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse struct { 6214 } 6215 6216 // GoogleCloudDocumentaiV1beta3DisableProcessorMetadata: The long-running 6217 // operation metadata for the DisableProcessor method. 6218 type GoogleCloudDocumentaiV1beta3DisableProcessorMetadata struct { 6219 // CommonMetadata: The basic metadata of the long-running operation. 6220 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6221 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6222 // unconditionally include in API requests. By default, fields with empty or 6223 // default values are omitted from API requests. See 6224 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6225 // details. 6226 ForceSendFields []string `json:"-"` 6227 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6228 // API requests with the JSON null value. By default, fields with empty values 6229 // are omitted from API requests. See 6230 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6231 NullFields []string `json:"-"` 6232 } 6233 6234 func (s *GoogleCloudDocumentaiV1beta3DisableProcessorMetadata) MarshalJSON() ([]byte, error) { 6235 type NoMethod GoogleCloudDocumentaiV1beta3DisableProcessorMetadata 6236 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6237 } 6238 6239 // GoogleCloudDocumentaiV1beta3DisableProcessorResponse: Response message for 6240 // the DisableProcessor method. Intentionally empty proto for adding fields in 6241 // future. 6242 type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct { 6243 } 6244 6245 // GoogleCloudDocumentaiV1beta3DocumentId: Document Identifier. 6246 type GoogleCloudDocumentaiV1beta3DocumentId struct { 6247 // GcsManagedDocId: A document id within user-managed Cloud Storage. 6248 GcsManagedDocId *GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId `json:"gcsManagedDocId,omitempty"` 6249 // RevisionRef: Points to a specific revision of the document if set. 6250 RevisionRef *GoogleCloudDocumentaiV1beta3RevisionRef `json:"revisionRef,omitempty"` 6251 // UnmanagedDocId: A document id within unmanaged dataset. 6252 UnmanagedDocId *GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId `json:"unmanagedDocId,omitempty"` 6253 // ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to 6254 // unconditionally include in API requests. By default, fields with empty or 6255 // default values are omitted from API requests. See 6256 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6257 // details. 6258 ForceSendFields []string `json:"-"` 6259 // NullFields is a list of field names (e.g. "GcsManagedDocId") to include in 6260 // API requests with the JSON null value. By default, fields with empty values 6261 // are omitted from API requests. See 6262 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6263 NullFields []string `json:"-"` 6264 } 6265 6266 func (s *GoogleCloudDocumentaiV1beta3DocumentId) MarshalJSON() ([]byte, error) { 6267 type NoMethod GoogleCloudDocumentaiV1beta3DocumentId 6268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6269 } 6270 6271 // GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId: Identifies a 6272 // document uniquely within the scope of a dataset in the user-managed Cloud 6273 // Storage option. 6274 type GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId struct { 6275 // CwDocId: Id of the document (indexed) managed by Content Warehouse. 6276 CwDocId string `json:"cwDocId,omitempty"` 6277 // GcsUri: Required. The Cloud Storage URI where the actual document is stored. 6278 GcsUri string `json:"gcsUri,omitempty"` 6279 // ForceSendFields is a list of field names (e.g. "CwDocId") to unconditionally 6280 // include in API requests. By default, fields with empty or default values are 6281 // omitted from API requests. See 6282 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6283 // details. 6284 ForceSendFields []string `json:"-"` 6285 // NullFields is a list of field names (e.g. "CwDocId") to include in API 6286 // requests with the JSON null value. By default, fields with empty values are 6287 // omitted from API requests. See 6288 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6289 NullFields []string `json:"-"` 6290 } 6291 6292 func (s *GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId) MarshalJSON() ([]byte, error) { 6293 type NoMethod GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId 6294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6295 } 6296 6297 // GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId: Identifies a 6298 // document uniquely within the scope of a dataset in unmanaged option. 6299 type GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId struct { 6300 // DocId: Required. The id of the document. 6301 DocId string `json:"docId,omitempty"` 6302 // ForceSendFields is a list of field names (e.g. "DocId") to unconditionally 6303 // include in API requests. By default, fields with empty or default values are 6304 // omitted from API requests. See 6305 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6306 // details. 6307 ForceSendFields []string `json:"-"` 6308 // NullFields is a list of field names (e.g. "DocId") to include in API 6309 // requests with the JSON null value. By default, fields with empty values are 6310 // omitted from API requests. See 6311 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6312 NullFields []string `json:"-"` 6313 } 6314 6315 func (s *GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId) MarshalJSON() ([]byte, error) { 6316 type NoMethod GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId 6317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6318 } 6319 6320 // GoogleCloudDocumentaiV1beta3EnableProcessorMetadata: The long-running 6321 // operation metadata for the EnableProcessor method. 6322 type GoogleCloudDocumentaiV1beta3EnableProcessorMetadata struct { 6323 // CommonMetadata: The basic metadata of the long-running operation. 6324 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6325 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6326 // unconditionally include in API requests. By default, fields with empty or 6327 // default values are omitted from API requests. See 6328 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6329 // details. 6330 ForceSendFields []string `json:"-"` 6331 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6332 // API requests with the JSON null value. By default, fields with empty values 6333 // are omitted from API requests. See 6334 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6335 NullFields []string `json:"-"` 6336 } 6337 6338 func (s *GoogleCloudDocumentaiV1beta3EnableProcessorMetadata) MarshalJSON() ([]byte, error) { 6339 type NoMethod GoogleCloudDocumentaiV1beta3EnableProcessorMetadata 6340 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6341 } 6342 6343 // GoogleCloudDocumentaiV1beta3EnableProcessorResponse: Response message for 6344 // the EnableProcessor method. Intentionally empty proto for adding fields in 6345 // future. 6346 type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct { 6347 } 6348 6349 // GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata: Metadata of 6350 // the EvaluateProcessorVersion method. 6351 type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata struct { 6352 // CommonMetadata: The basic metadata of the long-running operation. 6353 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6354 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6355 // unconditionally include in API requests. By default, fields with empty or 6356 // default values are omitted from API requests. See 6357 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6358 // details. 6359 ForceSendFields []string `json:"-"` 6360 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6361 // API requests with the JSON null value. By default, fields with empty values 6362 // are omitted from API requests. See 6363 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6364 NullFields []string `json:"-"` 6365 } 6366 6367 func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6368 type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata 6369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6370 } 6371 6372 // GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse: Response of 6373 // the EvaluateProcessorVersion method. 6374 type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse struct { 6375 // Evaluation: The resource name of the created evaluation. 6376 Evaluation string `json:"evaluation,omitempty"` 6377 // ForceSendFields is a list of field names (e.g. "Evaluation") to 6378 // unconditionally include in API requests. By default, fields with empty or 6379 // default values are omitted from API requests. See 6380 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6381 // details. 6382 ForceSendFields []string `json:"-"` 6383 // NullFields is a list of field names (e.g. "Evaluation") to include in API 6384 // requests with the JSON null value. By default, fields with empty values are 6385 // omitted from API requests. See 6386 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6387 NullFields []string `json:"-"` 6388 } 6389 6390 func (s *GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse) MarshalJSON() ([]byte, error) { 6391 type NoMethod GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse 6392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6393 } 6394 6395 // GoogleCloudDocumentaiV1beta3GcsPrefix: Specifies all documents on Cloud 6396 // Storage with a common prefix. 6397 type GoogleCloudDocumentaiV1beta3GcsPrefix struct { 6398 // GcsUriPrefix: The URI prefix. 6399 GcsUriPrefix string `json:"gcsUriPrefix,omitempty"` 6400 // ForceSendFields is a list of field names (e.g. "GcsUriPrefix") to 6401 // unconditionally include in API requests. By default, fields with empty or 6402 // default values are omitted from API requests. See 6403 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6404 // details. 6405 ForceSendFields []string `json:"-"` 6406 // NullFields is a list of field names (e.g. "GcsUriPrefix") to include in API 6407 // requests with the JSON null value. By default, fields with empty values are 6408 // omitted from API requests. See 6409 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6410 NullFields []string `json:"-"` 6411 } 6412 6413 func (s *GoogleCloudDocumentaiV1beta3GcsPrefix) MarshalJSON() ([]byte, error) { 6414 type NoMethod GoogleCloudDocumentaiV1beta3GcsPrefix 6415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6416 } 6417 6418 // GoogleCloudDocumentaiV1beta3HumanReviewStatus: The status of human review on 6419 // a processed document. 6420 type GoogleCloudDocumentaiV1beta3HumanReviewStatus struct { 6421 // HumanReviewOperation: The name of the operation triggered by the processed 6422 // document. This field is populated only when the state is 6423 // `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as 6424 // the long-running operation returned by ReviewDocument. 6425 HumanReviewOperation string `json:"humanReviewOperation,omitempty"` 6426 // State: The state of human review on the processing request. 6427 // 6428 // Possible values: 6429 // "STATE_UNSPECIFIED" - Human review state is unspecified. Most likely due 6430 // to an internal error. 6431 // "SKIPPED" - Human review is skipped for the document. This can happen 6432 // because human review isn't enabled on the processor or the processing 6433 // request has been set to skip this document. 6434 // "VALIDATION_PASSED" - Human review validation is triggered and passed, so 6435 // no review is needed. 6436 // "IN_PROGRESS" - Human review validation is triggered and the document is 6437 // under review. 6438 // "ERROR" - Some error happened during triggering human review, see the 6439 // state_message for details. 6440 State string `json:"state,omitempty"` 6441 // StateMessage: A message providing more details about the human review state. 6442 StateMessage string `json:"stateMessage,omitempty"` 6443 // ForceSendFields is a list of field names (e.g. "HumanReviewOperation") to 6444 // unconditionally include in API requests. By default, fields with empty or 6445 // default values are omitted from API requests. See 6446 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6447 // details. 6448 ForceSendFields []string `json:"-"` 6449 // NullFields is a list of field names (e.g. "HumanReviewOperation") to include 6450 // in API requests with the JSON null value. By default, fields with empty 6451 // values are omitted from API requests. See 6452 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6453 NullFields []string `json:"-"` 6454 } 6455 6456 func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, error) { 6457 type NoMethod GoogleCloudDocumentaiV1beta3HumanReviewStatus 6458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6459 } 6460 6461 // GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata: Metadata of the import 6462 // document operation. 6463 type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata struct { 6464 // CommonMetadata: The basic metadata of the long-running operation. 6465 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6466 // ImportConfigValidationResults: Validation statuses of the batch documents 6467 // import config. 6468 ImportConfigValidationResults []*GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult `json:"importConfigValidationResults,omitempty"` 6469 // IndividualImportStatuses: The list of response details of each document. 6470 IndividualImportStatuses []*GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus `json:"individualImportStatuses,omitempty"` 6471 // TotalDocumentCount: Total number of the documents that are qualified for 6472 // importing. 6473 TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` 6474 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6475 // unconditionally include in API requests. By default, fields with empty or 6476 // default values are omitted from API requests. See 6477 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6478 // details. 6479 ForceSendFields []string `json:"-"` 6480 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6481 // API requests with the JSON null value. By default, fields with empty values 6482 // are omitted from API requests. See 6483 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6484 NullFields []string `json:"-"` 6485 } 6486 6487 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata) MarshalJSON() ([]byte, error) { 6488 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata 6489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6490 } 6491 6492 // GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResu 6493 // lt: The validation status of each import config. Status is set to an error 6494 // if there are no documents to import in the `import_config`, or `OK` if the 6495 // operation will try to proceed with at least one document. 6496 type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult struct { 6497 // InputGcsSource: The source Cloud Storage URI specified in the import config. 6498 InputGcsSource string `json:"inputGcsSource,omitempty"` 6499 // Status: The validation status of import config. 6500 Status *GoogleRpcStatus `json:"status,omitempty"` 6501 // ForceSendFields is a list of field names (e.g. "InputGcsSource") to 6502 // unconditionally include in API requests. By default, fields with empty or 6503 // default values are omitted from API requests. See 6504 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6505 // details. 6506 ForceSendFields []string `json:"-"` 6507 // NullFields is a list of field names (e.g. "InputGcsSource") to include in 6508 // API requests with the JSON null value. By default, fields with empty values 6509 // are omitted from API requests. See 6510 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6511 NullFields []string `json:"-"` 6512 } 6513 6514 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult) MarshalJSON() ([]byte, error) { 6515 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult 6516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6517 } 6518 6519 // GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus: 6520 // The status of each individual document in the import process. 6521 type GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus struct { 6522 // InputGcsSource: The source Cloud Storage URI of the document. 6523 InputGcsSource string `json:"inputGcsSource,omitempty"` 6524 // OutputDocumentId: The document id of imported document if it was successful, 6525 // otherwise empty. 6526 OutputDocumentId *GoogleCloudDocumentaiV1beta3DocumentId `json:"outputDocumentId,omitempty"` 6527 // Status: The status of the importing of the document. 6528 Status *GoogleRpcStatus `json:"status,omitempty"` 6529 // ForceSendFields is a list of field names (e.g. "InputGcsSource") to 6530 // unconditionally include in API requests. By default, fields with empty or 6531 // default values are omitted from API requests. See 6532 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6533 // details. 6534 ForceSendFields []string `json:"-"` 6535 // NullFields is a list of field names (e.g. "InputGcsSource") to include in 6536 // API requests with the JSON null value. By default, fields with empty values 6537 // are omitted from API requests. See 6538 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6539 NullFields []string `json:"-"` 6540 } 6541 6542 func (s *GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus) MarshalJSON() ([]byte, error) { 6543 type NoMethod GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus 6544 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6545 } 6546 6547 // GoogleCloudDocumentaiV1beta3ImportDocumentsResponse: Response of the import 6548 // document operation. 6549 type GoogleCloudDocumentaiV1beta3ImportDocumentsResponse struct { 6550 } 6551 6552 // GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata: The long-running 6553 // operation metadata for the ImportProcessorVersion method. 6554 type GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata struct { 6555 // CommonMetadata: The basic metadata for the long-running operation. 6556 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6557 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6558 // unconditionally include in API requests. By default, fields with empty or 6559 // default values are omitted from API requests. See 6560 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6561 // details. 6562 ForceSendFields []string `json:"-"` 6563 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6564 // API requests with the JSON null value. By default, fields with empty values 6565 // are omitted from API requests. See 6566 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6567 NullFields []string `json:"-"` 6568 } 6569 6570 func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6571 type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata 6572 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6573 } 6574 6575 // GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse: The response 6576 // message for the ImportProcessorVersion method. 6577 type GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse struct { 6578 // ProcessorVersion: The destination processor version name. 6579 ProcessorVersion string `json:"processorVersion,omitempty"` 6580 // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to 6581 // unconditionally include in API requests. By default, fields with empty or 6582 // default values are omitted from API requests. See 6583 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6584 // details. 6585 ForceSendFields []string `json:"-"` 6586 // NullFields is a list of field names (e.g. "ProcessorVersion") to include in 6587 // API requests with the JSON null value. By default, fields with empty values 6588 // are omitted from API requests. See 6589 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6590 NullFields []string `json:"-"` 6591 } 6592 6593 func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) { 6594 type NoMethod GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse 6595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6596 } 6597 6598 // GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata: The 6599 // long-running operation metadata for the ReviewDocument method. 6600 type GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata struct { 6601 // CommonMetadata: The basic metadata of the long-running operation. 6602 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6603 // CreateTime: The creation time of the operation. 6604 CreateTime string `json:"createTime,omitempty"` 6605 // QuestionId: The Crowd Compute question ID. 6606 QuestionId string `json:"questionId,omitempty"` 6607 // State: Used only when Operation.done is false. 6608 // 6609 // Possible values: 6610 // "STATE_UNSPECIFIED" - Unspecified state. 6611 // "RUNNING" - Operation is still running. 6612 // "CANCELLING" - Operation is being cancelled. 6613 // "SUCCEEDED" - Operation succeeded. 6614 // "FAILED" - Operation failed. 6615 // "CANCELLED" - Operation is cancelled. 6616 State string `json:"state,omitempty"` 6617 // StateMessage: A message providing more details about the current state of 6618 // processing. For example, the error message if the operation is failed. 6619 StateMessage string `json:"stateMessage,omitempty"` 6620 // UpdateTime: The last update time of the operation. 6621 UpdateTime string `json:"updateTime,omitempty"` 6622 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6623 // unconditionally include in API requests. By default, fields with empty or 6624 // default values are omitted from API requests. See 6625 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6626 // details. 6627 ForceSendFields []string `json:"-"` 6628 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6629 // API requests with the JSON null value. By default, fields with empty values 6630 // are omitted from API requests. See 6631 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6632 NullFields []string `json:"-"` 6633 } 6634 6635 func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata) MarshalJSON() ([]byte, error) { 6636 type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata 6637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6638 } 6639 6640 // GoogleCloudDocumentaiV1beta3ReviewDocumentResponse: Response message for the 6641 // ReviewDocument method. 6642 type GoogleCloudDocumentaiV1beta3ReviewDocumentResponse struct { 6643 // GcsDestination: The Cloud Storage uri for the human reviewed document if the 6644 // review is succeeded. 6645 GcsDestination string `json:"gcsDestination,omitempty"` 6646 // RejectionReason: The reason why the review is rejected by reviewer. 6647 RejectionReason string `json:"rejectionReason,omitempty"` 6648 // State: The state of the review operation. 6649 // 6650 // Possible values: 6651 // "STATE_UNSPECIFIED" - The default value. This value is used if the state 6652 // is omitted. 6653 // "REJECTED" - The review operation is rejected by the reviewer. 6654 // "SUCCEEDED" - The review operation is succeeded. 6655 State string `json:"state,omitempty"` 6656 // ForceSendFields is a list of field names (e.g. "GcsDestination") to 6657 // unconditionally include in API requests. By default, fields with empty or 6658 // default values are omitted from API requests. See 6659 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6660 // details. 6661 ForceSendFields []string `json:"-"` 6662 // NullFields is a list of field names (e.g. "GcsDestination") to include in 6663 // API requests with the JSON null value. By default, fields with empty values 6664 // are omitted from API requests. See 6665 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6666 NullFields []string `json:"-"` 6667 } 6668 6669 func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]byte, error) { 6670 type NoMethod GoogleCloudDocumentaiV1beta3ReviewDocumentResponse 6671 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6672 } 6673 6674 // GoogleCloudDocumentaiV1beta3RevisionRef: The revision reference specifies 6675 // which revision on the document to read. 6676 type GoogleCloudDocumentaiV1beta3RevisionRef struct { 6677 // LatestProcessorVersion: Reads the revision generated by the processor 6678 // version. The format takes the full resource name of processor version. 6679 // `projects/{project}/locations/{location}/processors/{processor}/processorVers 6680 // ions/{processorVersion}` 6681 LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"` 6682 // RevisionCase: Reads the revision by the predefined case. 6683 // 6684 // Possible values: 6685 // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fall back to read the 6686 // `LATEST_HUMAN_REVIEW`. 6687 // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. 6688 // "LATEST_TIMESTAMP" - The latest revision based on timestamp. 6689 // "BASE_OCR_REVISION" - The first (OCR) revision. 6690 RevisionCase string `json:"revisionCase,omitempty"` 6691 // RevisionId: Reads the revision given by the id. 6692 RevisionId string `json:"revisionId,omitempty"` 6693 // ForceSendFields is a list of field names (e.g. "LatestProcessorVersion") to 6694 // unconditionally include in API requests. By default, fields with empty or 6695 // default values are omitted from API requests. See 6696 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6697 // details. 6698 ForceSendFields []string `json:"-"` 6699 // NullFields is a list of field names (e.g. "LatestProcessorVersion") to 6700 // include in API requests with the JSON null value. By default, fields with 6701 // empty values are omitted from API requests. See 6702 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6703 NullFields []string `json:"-"` 6704 } 6705 6706 func (s *GoogleCloudDocumentaiV1beta3RevisionRef) MarshalJSON() ([]byte, error) { 6707 type NoMethod GoogleCloudDocumentaiV1beta3RevisionRef 6708 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6709 } 6710 6711 // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata: The 6712 // long-running operation metadata for the SetDefaultProcessorVersion method. 6713 type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata struct { 6714 // CommonMetadata: The basic metadata of the long-running operation. 6715 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6716 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6717 // unconditionally include in API requests. By default, fields with empty or 6718 // default values are omitted from API requests. See 6719 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6720 // details. 6721 ForceSendFields []string `json:"-"` 6722 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6723 // API requests with the JSON null value. By default, fields with empty values 6724 // are omitted from API requests. See 6725 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6726 NullFields []string `json:"-"` 6727 } 6728 6729 func (s *GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6730 type NoMethod GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata 6731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6732 } 6733 6734 // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse: Response 6735 // message for the SetDefaultProcessorVersion method. 6736 type GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse struct { 6737 } 6738 6739 // GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata: The metadata that 6740 // represents a processor version being created. 6741 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata struct { 6742 // CommonMetadata: The basic metadata of the long-running operation. 6743 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6744 // TestDatasetValidation: The test dataset validation information. 6745 TestDatasetValidation *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation `json:"testDatasetValidation,omitempty"` 6746 // TrainingDatasetValidation: The training dataset validation information. 6747 TrainingDatasetValidation *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation `json:"trainingDatasetValidation,omitempty"` 6748 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6749 // unconditionally include in API requests. By default, fields with empty or 6750 // default values are omitted from API requests. See 6751 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6752 // details. 6753 ForceSendFields []string `json:"-"` 6754 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6755 // API requests with the JSON null value. By default, fields with empty values 6756 // are omitted from API requests. See 6757 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6758 NullFields []string `json:"-"` 6759 } 6760 6761 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6762 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata 6763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6764 } 6765 6766 // GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation: 6767 // The dataset validation information. This includes any and all errors with 6768 // documents and the dataset. 6769 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation struct { 6770 // DatasetErrorCount: The total number of dataset errors. 6771 DatasetErrorCount int64 `json:"datasetErrorCount,omitempty"` 6772 // DatasetErrors: Error information for the dataset as a whole. A maximum of 10 6773 // dataset errors will be returned. A single dataset error is terminal for 6774 // training. 6775 DatasetErrors []*GoogleRpcStatus `json:"datasetErrors,omitempty"` 6776 // DocumentErrorCount: The total number of document errors. 6777 DocumentErrorCount int64 `json:"documentErrorCount,omitempty"` 6778 // DocumentErrors: Error information pertaining to specific documents. A 6779 // maximum of 10 document errors will be returned. Any document with errors 6780 // will not be used throughout training. 6781 DocumentErrors []*GoogleRpcStatus `json:"documentErrors,omitempty"` 6782 // ForceSendFields is a list of field names (e.g. "DatasetErrorCount") to 6783 // unconditionally include in API requests. By default, fields with empty or 6784 // default values are omitted from API requests. See 6785 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6786 // details. 6787 ForceSendFields []string `json:"-"` 6788 // NullFields is a list of field names (e.g. "DatasetErrorCount") to include in 6789 // API requests with the JSON null value. By default, fields with empty values 6790 // are omitted from API requests. See 6791 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6792 NullFields []string `json:"-"` 6793 } 6794 6795 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation) MarshalJSON() ([]byte, error) { 6796 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation 6797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6798 } 6799 6800 // GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse: The response for 6801 // TrainProcessorVersion. 6802 type GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse struct { 6803 // ProcessorVersion: The resource name of the processor version produced by 6804 // training. 6805 ProcessorVersion string `json:"processorVersion,omitempty"` 6806 // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to 6807 // unconditionally include in API requests. By default, fields with empty or 6808 // default values are omitted from API requests. See 6809 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6810 // details. 6811 ForceSendFields []string `json:"-"` 6812 // NullFields is a list of field names (e.g. "ProcessorVersion") to include in 6813 // API requests with the JSON null value. By default, fields with empty values 6814 // are omitted from API requests. See 6815 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6816 NullFields []string `json:"-"` 6817 } 6818 6819 func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse) MarshalJSON() ([]byte, error) { 6820 type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse 6821 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6822 } 6823 6824 // GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata: The 6825 // long-running operation metadata for the UndeployProcessorVersion method. 6826 type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata struct { 6827 // CommonMetadata: The basic metadata of the long-running operation. 6828 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6829 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6830 // unconditionally include in API requests. By default, fields with empty or 6831 // default values are omitted from API requests. See 6832 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6833 // details. 6834 ForceSendFields []string `json:"-"` 6835 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6836 // API requests with the JSON null value. By default, fields with empty values 6837 // are omitted from API requests. See 6838 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6839 NullFields []string `json:"-"` 6840 } 6841 6842 func (s *GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata) MarshalJSON() ([]byte, error) { 6843 type NoMethod GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata 6844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6845 } 6846 6847 // GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse: Response 6848 // message for the UndeployProcessorVersion method. 6849 type GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse struct { 6850 } 6851 6852 type GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata struct { 6853 // CommonMetadata: The basic metadata of the long-running operation. 6854 CommonMetadata *GoogleCloudDocumentaiV1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` 6855 // ForceSendFields is a list of field names (e.g. "CommonMetadata") to 6856 // unconditionally include in API requests. By default, fields with empty or 6857 // default values are omitted from API requests. See 6858 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6859 // details. 6860 ForceSendFields []string `json:"-"` 6861 // NullFields is a list of field names (e.g. "CommonMetadata") to include in 6862 // API requests with the JSON null value. By default, fields with empty values 6863 // are omitted from API requests. See 6864 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6865 NullFields []string `json:"-"` 6866 } 6867 6868 func (s *GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata) MarshalJSON() ([]byte, error) { 6869 type NoMethod GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata 6870 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6871 } 6872 6873 // GoogleLongrunningOperation: This resource represents a long-running 6874 // operation that is the result of a network API call. 6875 type GoogleLongrunningOperation struct { 6876 // Done: If the value is `false`, it means the operation is still in progress. 6877 // If `true`, the operation is completed, and either `error` or `response` is 6878 // available. 6879 Done bool `json:"done,omitempty"` 6880 // Error: The error result of the operation in case of failure or cancellation. 6881 Error *GoogleRpcStatus `json:"error,omitempty"` 6882 // Metadata: Service-specific metadata associated with the operation. It 6883 // typically contains progress information and common metadata such as create 6884 // time. Some services might not provide such metadata. Any method that returns 6885 // a long-running operation should document the metadata type, if any. 6886 Metadata googleapi.RawMessage `json:"metadata,omitempty"` 6887 // Name: The server-assigned name, which is only unique within the same service 6888 // that originally returns it. If you use the default HTTP mapping, the `name` 6889 // should be a resource name ending with `operations/{unique_id}`. 6890 Name string `json:"name,omitempty"` 6891 // Response: The normal, successful response of the operation. If the original 6892 // method returns no data on success, such as `Delete`, the response is 6893 // `google.protobuf.Empty`. If the original method is standard 6894 // `Get`/`Create`/`Update`, the response should be the resource. For other 6895 // methods, the response should have the type `XxxResponse`, where `Xxx` is the 6896 // original method name. For example, if the original method name is 6897 // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 6898 Response googleapi.RawMessage `json:"response,omitempty"` 6899 6900 // ServerResponse contains the HTTP response code and headers from the server. 6901 googleapi.ServerResponse `json:"-"` 6902 // ForceSendFields is a list of field names (e.g. "Done") to unconditionally 6903 // include in API requests. By default, fields with empty or default values are 6904 // omitted from API requests. See 6905 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6906 // details. 6907 ForceSendFields []string `json:"-"` 6908 // NullFields is a list of field names (e.g. "Done") to include in API requests 6909 // with the JSON null value. By default, fields with empty values are omitted 6910 // from API requests. See 6911 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6912 NullFields []string `json:"-"` 6913 } 6914 6915 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { 6916 type NoMethod GoogleLongrunningOperation 6917 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6918 } 6919 6920 // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid 6921 // defining duplicated empty messages in your APIs. A typical example is to use 6922 // it as the request or the response type of an API method. For instance: 6923 // service Foo { rpc Bar(google.protobuf.Empty) returns 6924 // (google.protobuf.Empty); } 6925 type GoogleProtobufEmpty struct { 6926 } 6927 6928 // GoogleRpcStatus: The `Status` type defines a logical error model that is 6929 // suitable for different programming environments, including REST APIs and RPC 6930 // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message 6931 // contains three pieces of data: error code, error message, and error details. 6932 // You can find out more about this error model and how to work with it in the 6933 // API Design Guide (https://cloud.google.com/apis/design/errors). 6934 type GoogleRpcStatus struct { 6935 // Code: The status code, which should be an enum value of google.rpc.Code. 6936 Code int64 `json:"code,omitempty"` 6937 // Details: A list of messages that carry the error details. There is a common 6938 // set of message types for APIs to use. 6939 Details []googleapi.RawMessage `json:"details,omitempty"` 6940 // Message: A developer-facing error message, which should be in English. Any 6941 // user-facing error message should be localized and sent in the 6942 // google.rpc.Status.details field, or localized by the client. 6943 Message string `json:"message,omitempty"` 6944 // ForceSendFields is a list of field names (e.g. "Code") to unconditionally 6945 // include in API requests. By default, fields with empty or default values are 6946 // omitted from API requests. See 6947 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 6948 // details. 6949 ForceSendFields []string `json:"-"` 6950 // NullFields is a list of field names (e.g. "Code") to include in API requests 6951 // with the JSON null value. By default, fields with empty values are omitted 6952 // from API requests. See 6953 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 6954 NullFields []string `json:"-"` 6955 } 6956 6957 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { 6958 type NoMethod GoogleRpcStatus 6959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 6960 } 6961 6962 // GoogleTypeColor: Represents a color in the RGBA color space. This 6963 // representation is designed for simplicity of conversion to and from color 6964 // representations in various languages over compactness. For example, the 6965 // fields of this representation can be trivially provided to the constructor 6966 // of `java.awt.Color` in Java; it can also be trivially provided to UIColor's 6967 // `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little 6968 // work, it can be easily formatted into a CSS `rgba()` string in JavaScript. 6969 // This reference page doesn't have information about the absolute color space 6970 // that should be used to interpret the RGB value—for example, sRGB, Adobe 6971 // RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB 6972 // color space. When color equality needs to be decided, implementations, 6973 // unless documented otherwise, treat two colors as equal if all their red, 6974 // green, blue, and alpha values each differ by at most `1e-5`. Example (Java): 6975 // import com.google.type.Color; // ... public static java.awt.Color 6976 // fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? 6977 // protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( 6978 // protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } 6979 // public static Color toProto(java.awt.Color color) { float red = (float) 6980 // color.getRed(); float green = (float) color.getGreen(); float blue = (float) 6981 // color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = 6982 // Color .newBuilder() .setRed(red / denominator) .setGreen(green / 6983 // denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if 6984 // (alpha != 255) { result.setAlpha( FloatValue .newBuilder() 6985 // .setValue(((float) alpha) / denominator) .build()); } return 6986 // resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static 6987 // UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float 6988 // green = [protocolor green]; float blue = [protocolor blue]; FloatValue* 6989 // alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != 6990 // nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red 6991 // green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) 6992 // { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green 6993 // blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] 6994 // init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; 6995 // if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } 6996 // [result autorelease]; return result; } // ... Example (JavaScript): // ... 6997 // var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 6998 // 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue 6999 // || 0.0; var red = Math.floor(redFrac * 255); var green = 7000 // Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if 7001 // (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var 7002 // alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, 7003 // blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(”); 7004 // }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new 7005 // Number((red << 16) | (green << 8) | blue); var hexString = 7006 // rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var 7007 // resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { 7008 // resultBuilder.push('0'); } resultBuilder.push(hexString); return 7009 // resultBuilder.join(”); }; // ... 7010 type GoogleTypeColor struct { 7011 // Alpha: The fraction of this color that should be applied to the pixel. That 7012 // is, the final pixel color is defined by the equation: `pixel color = alpha * 7013 // (this color) + (1.0 - alpha) * (background color)` This means that a value 7014 // of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a 7015 // completely transparent color. This uses a wrapper message rather than a 7016 // simple float scalar so that it is possible to distinguish between a default 7017 // value and the value being unset. If omitted, this color object is rendered 7018 // as a solid color (as if the alpha value had been explicitly given a value of 7019 // 1.0). 7020 Alpha float64 `json:"alpha,omitempty"` 7021 // Blue: The amount of blue in the color as a value in the interval [0, 1]. 7022 Blue float64 `json:"blue,omitempty"` 7023 // Green: The amount of green in the color as a value in the interval [0, 1]. 7024 Green float64 `json:"green,omitempty"` 7025 // Red: The amount of red in the color as a value in the interval [0, 1]. 7026 Red float64 `json:"red,omitempty"` 7027 // ForceSendFields is a list of field names (e.g. "Alpha") to unconditionally 7028 // include in API requests. By default, fields with empty or default values are 7029 // omitted from API requests. See 7030 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 7031 // details. 7032 ForceSendFields []string `json:"-"` 7033 // NullFields is a list of field names (e.g. "Alpha") to include in API 7034 // requests with the JSON null value. By default, fields with empty values are 7035 // omitted from API requests. See 7036 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 7037 NullFields []string `json:"-"` 7038 } 7039 7040 func (s *GoogleTypeColor) MarshalJSON() ([]byte, error) { 7041 type NoMethod GoogleTypeColor 7042 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 7043 } 7044 7045 func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { 7046 type NoMethod GoogleTypeColor 7047 var s1 struct { 7048 Alpha gensupport.JSONFloat64 `json:"alpha"` 7049 Blue gensupport.JSONFloat64 `json:"blue"` 7050 Green gensupport.JSONFloat64 `json:"green"` 7051 Red gensupport.JSONFloat64 `json:"red"` 7052 *NoMethod 7053 } 7054 s1.NoMethod = (*NoMethod)(s) 7055 if err := json.Unmarshal(data, &s1); err != nil { 7056 return err 7057 } 7058 s.Alpha = float64(s1.Alpha) 7059 s.Blue = float64(s1.Blue) 7060 s.Green = float64(s1.Green) 7061 s.Red = float64(s1.Red) 7062 return nil 7063 } 7064 7065 // GoogleTypeDate: Represents a whole or partial calendar date, such as a 7066 // birthday. The time of day and time zone are either specified elsewhere or 7067 // are insignificant. The date is relative to the Gregorian Calendar. This can 7068 // represent one of the following: * A full date, with non-zero year, month, 7069 // and day values. * A month and day, with a zero year (for example, an 7070 // anniversary). * A year on its own, with a zero month and a zero day. * A 7071 // year and month, with a zero day (for example, a credit card expiration 7072 // date). Related types: * google.type.TimeOfDay * google.type.DateTime * 7073 // google.protobuf.Timestamp 7074 type GoogleTypeDate struct { 7075 // Day: Day of a month. Must be from 1 to 31 and valid for the year and month, 7076 // or 0 to specify a year by itself or a year and month where the day isn't 7077 // significant. 7078 Day int64 `json:"day,omitempty"` 7079 // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without 7080 // a month and day. 7081 Month int64 `json:"month,omitempty"` 7082 // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date 7083 // without a year. 7084 Year int64 `json:"year,omitempty"` 7085 // ForceSendFields is a list of field names (e.g. "Day") to unconditionally 7086 // include in API requests. By default, fields with empty or default values are 7087 // omitted from API requests. See 7088 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 7089 // details. 7090 ForceSendFields []string `json:"-"` 7091 // NullFields is a list of field names (e.g. "Day") to include in API requests 7092 // with the JSON null value. By default, fields with empty values are omitted 7093 // from API requests. See 7094 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 7095 NullFields []string `json:"-"` 7096 } 7097 7098 func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) { 7099 type NoMethod GoogleTypeDate 7100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 7101 } 7102 7103 // GoogleTypeDateTime: Represents civil time (or occasionally physical time). 7104 // This type can represent a civil time in one of a few possible ways: * When 7105 // utc_offset is set and time_zone is unset: a civil time on a calendar day 7106 // with a particular offset from UTC. * When time_zone is set and utc_offset is 7107 // unset: a civil time on a calendar day in a particular time zone. * When 7108 // neither time_zone nor utc_offset is set: a civil time on a calendar day in 7109 // local time. The date is relative to the Proleptic Gregorian Calendar. If 7110 // year, month, or day are 0, the DateTime is considered not to have a specific 7111 // year, month, or day respectively. This type may also be used to represent a 7112 // physical time if all the date and time fields are set and either case of the 7113 // `time_offset` oneof is set. Consider using `Timestamp` message for physical 7114 // time instead. If your use case also would like to store the user's timezone, 7115 // that can be done in another field. This type is more flexible than some 7116 // applications may want. Make sure to document and validate your application's 7117 // limitations. 7118 type GoogleTypeDateTime struct { 7119 // Day: Optional. Day of month. Must be from 1 to 31 and valid for the year and 7120 // month, or 0 if specifying a datetime without a day. 7121 Day int64 `json:"day,omitempty"` 7122 // Hours: Optional. Hours of day in 24 hour format. Should be from 0 to 23, 7123 // defaults to 0 (midnight). An API may choose to allow the value "24:00:00" 7124 // for scenarios like business closing time. 7125 Hours int64 `json:"hours,omitempty"` 7126 // Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 7127 // 0. 7128 Minutes int64 `json:"minutes,omitempty"` 7129 // Month: Optional. Month of year. Must be from 1 to 12, or 0 if specifying a 7130 // datetime without a month. 7131 Month int64 `json:"month,omitempty"` 7132 // Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 to 7133 // 999,999,999, defaults to 0. 7134 Nanos int64 `json:"nanos,omitempty"` 7135 // Seconds: Optional. Seconds of minutes of the time. Must normally be from 0 7136 // to 59, defaults to 0. An API may allow the value 60 if it allows 7137 // leap-seconds. 7138 Seconds int64 `json:"seconds,omitempty"` 7139 // TimeZone: Time zone. 7140 TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"` 7141 // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and +18 7142 // hours. For example, a UTC offset of -4:00 would be represented as { seconds: 7143 // -14400 }. 7144 UtcOffset string `json:"utcOffset,omitempty"` 7145 // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a 7146 // datetime without a year. 7147 Year int64 `json:"year,omitempty"` 7148 // ForceSendFields is a list of field names (e.g. "Day") to unconditionally 7149 // include in API requests. By default, fields with empty or default values are 7150 // omitted from API requests. See 7151 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 7152 // details. 7153 ForceSendFields []string `json:"-"` 7154 // NullFields is a list of field names (e.g. "Day") to include in API requests 7155 // with the JSON null value. By default, fields with empty values are omitted 7156 // from API requests. See 7157 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 7158 NullFields []string `json:"-"` 7159 } 7160 7161 func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) { 7162 type NoMethod GoogleTypeDateTime 7163 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 7164 } 7165 7166 // GoogleTypeMoney: Represents an amount of money with its currency type. 7167 type GoogleTypeMoney struct { 7168 // CurrencyCode: The three-letter currency code defined in ISO 4217. 7169 CurrencyCode string `json:"currencyCode,omitempty"` 7170 // Nanos: Number of nano (10^-9) units of the amount. The value must be between 7171 // -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` 7172 // must be positive or zero. If `units` is zero, `nanos` can be positive, zero, 7173 // or negative. If `units` is negative, `nanos` must be negative or zero. For 7174 // example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. 7175 Nanos int64 `json:"nanos,omitempty"` 7176 // Units: The whole units of the amount. For example if `currencyCode` is 7177 // "USD", then 1 unit is one US dollar. 7178 Units int64 `json:"units,omitempty,string"` 7179 // ForceSendFields is a list of field names (e.g. "CurrencyCode") to 7180 // unconditionally include in API requests. By default, fields with empty or 7181 // default values are omitted from API requests. See 7182 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 7183 // details. 7184 ForceSendFields []string `json:"-"` 7185 // NullFields is a list of field names (e.g. "CurrencyCode") to include in API 7186 // requests with the JSON null value. By default, fields with empty values are 7187 // omitted from API requests. See 7188 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 7189 NullFields []string `json:"-"` 7190 } 7191 7192 func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) { 7193 type NoMethod GoogleTypeMoney 7194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 7195 } 7196 7197 // GoogleTypePostalAddress: Represents a postal address, e.g. for postal 7198 // delivery or payments addresses. Given a postal address, a postal service can 7199 // deliver items to a premise, P.O. Box or similar. It is not intended to model 7200 // geographical locations (roads, towns, mountains). In typical usage an 7201 // address would be created via user input or from importing existing data, 7202 // depending on the type of process. Advice on address input / editing: - Use 7203 // an internationalization-ready address widget such as 7204 // https://github.com/google/libaddressinput) - Users should not be presented 7205 // with UI elements for input or editing of fields outside countries where that 7206 // field is used. For more guidance on how to use this schema, please see: 7207 // https://support.google.com/business/answer/6397478 7208 type GoogleTypePostalAddress struct { 7209 // AddressLines: Unstructured address lines describing the lower levels of an 7210 // address. Because values in address_lines do not have type information and 7211 // may sometimes contain multiple values in a single field (e.g. "Austin, TX"), 7212 // it is important that the line order is clear. The order of address lines 7213 // should be "envelope order" for the country/region of the address. In places 7214 // where this can vary (e.g. Japan), address_language is used to make it 7215 // explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for 7216 // small-to-large). This way, the most specific line of an address can be 7217 // selected based on the language. The minimum permitted structural 7218 // representation of an address consists of a region_code with all remaining 7219 // information placed in the address_lines. It would be possible to format such 7220 // an address very approximately without geocoding, but no semantic reasoning 7221 // could be made about any of the address components until it was at least 7222 // partially resolved. Creating an address only containing a region_code and 7223 // address_lines, and then geocoding is the recommended way to handle 7224 // completely unstructured addresses (as opposed to guessing which parts of the 7225 // address should be localities or administrative areas). 7226 AddressLines []string `json:"addressLines,omitempty"` 7227 // AdministrativeArea: Optional. Highest administrative subdivision which is 7228 // used for postal addresses of a country or region. For example, this can be a 7229 // state, a province, an oblast, or a prefecture. Specifically, for Spain this 7230 // is the province and not the autonomous community (e.g. "Barcelona" and not 7231 // "Catalonia"). Many countries don't use an administrative area in postal 7232 // addresses. E.g. in Switzerland this should be left unpopulated. 7233 AdministrativeArea string `json:"administrativeArea,omitempty"` 7234 // LanguageCode: Optional. BCP-47 language code of the contents of this address 7235 // (if known). This is often the UI language of the input form or is expected 7236 // to match one of the languages used in the address' country/region, or their 7237 // transliterated equivalents. This can affect formatting in certain countries, 7238 // but is not critical to the correctness of the data and will never affect any 7239 // validation or other non-formatting related operations. If this value is not 7240 // known, it should be omitted (rather than specifying a possibly incorrect 7241 // default). Examples: "zh-Hant", "ja", "ja-Latn", "en". 7242 LanguageCode string `json:"languageCode,omitempty"` 7243 // Locality: Optional. Generally refers to the city/town portion of the 7244 // address. Examples: US city, IT comune, UK post town. In regions of the world 7245 // where localities are not well defined or do not fit into this structure 7246 // well, leave locality empty and use address_lines. 7247 Locality string `json:"locality,omitempty"` 7248 // Organization: Optional. The name of the organization at the address. 7249 Organization string `json:"organization,omitempty"` 7250 // PostalCode: Optional. Postal code of the address. Not all countries use or 7251 // require postal codes to be present, but where they are used, they may 7252 // trigger additional validation with other parts of the address (e.g. 7253 // state/zip validation in the U.S.A.). 7254 PostalCode string `json:"postalCode,omitempty"` 7255 // Recipients: Optional. The recipient at the address. This field may, under 7256 // certain circumstances, contain multiline information. For example, it might 7257 // contain "care of" information. 7258 Recipients []string `json:"recipients,omitempty"` 7259 // RegionCode: Required. CLDR region code of the country/region of the address. 7260 // This is never inferred and it is up to the user to ensure the value is 7261 // correct. See https://cldr.unicode.org/ and 7262 // https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html 7263 // for details. Example: "CH" for Switzerland. 7264 RegionCode string `json:"regionCode,omitempty"` 7265 // Revision: The schema revision of the `PostalAddress`. This must be set to 0, 7266 // which is the latest revision. All new revisions **must** be backward 7267 // compatible with old revisions. 7268 Revision int64 `json:"revision,omitempty"` 7269 // SortingCode: Optional. Additional, country-specific, sorting code. This is 7270 // not used in most regions. Where it is used, the value is either a string 7271 // like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a 7272 // number alone, representing the "sector code" (Jamaica), "delivery area 7273 // indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). 7274 SortingCode string `json:"sortingCode,omitempty"` 7275 // Sublocality: Optional. Sublocality of the address. For example, this can be 7276 // neighborhoods, boroughs, districts. 7277 Sublocality string `json:"sublocality,omitempty"` 7278 // ForceSendFields is a list of field names (e.g. "AddressLines") to 7279 // unconditionally include in API requests. By default, fields with empty or 7280 // default values are omitted from API requests. See 7281 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 7282 // details. 7283 ForceSendFields []string `json:"-"` 7284 // NullFields is a list of field names (e.g. "AddressLines") to include in API 7285 // requests with the JSON null value. By default, fields with empty values are 7286 // omitted from API requests. See 7287 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 7288 NullFields []string `json:"-"` 7289 } 7290 7291 func (s *GoogleTypePostalAddress) MarshalJSON() ([]byte, error) { 7292 type NoMethod GoogleTypePostalAddress 7293 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 7294 } 7295 7296 // GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone Database 7297 // (https://www.iana.org/time-zones). 7298 type GoogleTypeTimeZone struct { 7299 // Id: IANA Time Zone Database time zone, e.g. "America/New_York". 7300 Id string `json:"id,omitempty"` 7301 // Version: Optional. IANA Time Zone Database version number, e.g. "2019a". 7302 Version string `json:"version,omitempty"` 7303 // ForceSendFields is a list of field names (e.g. "Id") to unconditionally 7304 // include in API requests. By default, fields with empty or default values are 7305 // omitted from API requests. See 7306 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more 7307 // details. 7308 ForceSendFields []string `json:"-"` 7309 // NullFields is a list of field names (e.g. "Id") to include in API requests 7310 // with the JSON null value. By default, fields with empty values are omitted 7311 // from API requests. See 7312 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 7313 NullFields []string `json:"-"` 7314 } 7315 7316 func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) { 7317 type NoMethod GoogleTypeTimeZone 7318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) 7319 } 7320 7321 type ProjectsDocumentsBatchProcessCall struct { 7322 s *Service 7323 parent string 7324 googleclouddocumentaiv1beta2batchprocessdocumentsrequest *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest 7325 urlParams_ gensupport.URLParams 7326 ctx_ context.Context 7327 header_ http.Header 7328 } 7329 7330 // BatchProcess: LRO endpoint to batch process many documents. The output is 7331 // written to Cloud Storage as JSON in the [Document] format. 7332 // 7333 // - parent: Target project and location to make a call. Format: 7334 // `projects/{project-id}/locations/{location-id}`. If no location is 7335 // specified, a region will be chosen automatically. 7336 func (r *ProjectsDocumentsService) BatchProcess(parent string, googleclouddocumentaiv1beta2batchprocessdocumentsrequest *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest) *ProjectsDocumentsBatchProcessCall { 7337 c := &ProjectsDocumentsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)} 7338 c.parent = parent 7339 c.googleclouddocumentaiv1beta2batchprocessdocumentsrequest = googleclouddocumentaiv1beta2batchprocessdocumentsrequest 7340 return c 7341 } 7342 7343 // Fields allows partial responses to be retrieved. See 7344 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more 7345 // details. 7346 func (c *ProjectsDocumentsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsDocumentsBatchProcessCall { 7347 c.urlParams_.Set("fields", googleapi.CombineFields(s)) 7348 return c 7349 } 7350 7351 // Context sets the context to be used in this call's Do method. 7352 func (c *ProjectsDocumentsBatchProcessCall) Context(ctx context.Context) *ProjectsDocumentsBatchProcessCall { 7353 c.ctx_ = ctx 7354 return c 7355 } 7356 7357 // Header returns a http.Header that can be modified by the caller to add 7358 // headers to the request. 7359 func (c *ProjectsDocumentsBatchProcessCall) Header() http.Header { 7360 if c.header_ == nil { 7361 c.header_ = make(http.Header) 7362 } 7363 return c.header_ 7364 } 7365 7366 func (c *ProjectsDocumentsBatchProcessCall) doRequest(alt string) (*http.Response, error) { 7367 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) 7368 var body io.Reader = nil 7369 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta2batchprocessdocumentsrequest) 7370 if err != nil { 7371 return nil, err 7372 } 7373 c.urlParams_.Set("alt", alt) 7374 c.urlParams_.Set("prettyPrint", "false") 7375 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/documents:batchProcess") 7376 urls += "?" + c.urlParams_.Encode() 7377 req, err := http.NewRequest("POST", urls, body) 7378 if err != nil { 7379 return nil, err 7380 } 7381 req.Header = reqHeaders 7382 googleapi.Expand(req.URL, map[string]string{ 7383 "parent": c.parent, 7384 }) 7385 return gensupport.SendRequest(c.ctx_, c.s.client, req) 7386 } 7387 7388 // Do executes the "documentai.projects.documents.batchProcess" call. 7389 // Any non-2xx status code is an error. Response headers are in either 7390 // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was 7391 // returned at all) in error.(*googleapi.Error).Header. Use 7392 // googleapi.IsNotModified to check whether the returned error was because 7393 // http.StatusNotModified was returned. 7394 func (c *ProjectsDocumentsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { 7395 gensupport.SetOptions(c.urlParams_, opts...) 7396 res, err := c.doRequest("json") 7397 if res != nil && res.StatusCode == http.StatusNotModified { 7398 if res.Body != nil { 7399 res.Body.Close() 7400 } 7401 return nil, gensupport.WrapError(&googleapi.Error{ 7402 Code: res.StatusCode, 7403 Header: res.Header, 7404 }) 7405 } 7406 if err != nil { 7407 return nil, err 7408 } 7409 defer googleapi.CloseBody(res) 7410 if err := googleapi.CheckResponse(res); err != nil { 7411 return nil, gensupport.WrapError(err) 7412 } 7413 ret := &GoogleLongrunningOperation{ 7414 ServerResponse: googleapi.ServerResponse{ 7415 Header: res.Header, 7416 HTTPStatusCode: res.StatusCode, 7417 }, 7418 } 7419 target := &ret 7420 if err := gensupport.DecodeResponse(target, res); err != nil { 7421 return nil, err 7422 } 7423 return ret, nil 7424 } 7425 7426 type ProjectsDocumentsProcessCall struct { 7427 s *Service 7428 parent string 7429 googleclouddocumentaiv1beta2processdocumentrequest *GoogleCloudDocumentaiV1beta2ProcessDocumentRequest 7430 urlParams_ gensupport.URLParams 7431 ctx_ context.Context 7432 header_ http.Header 7433 } 7434 7435 // Process: Processes a single document. 7436 // 7437 // - parent: Target project and location to make a call. Format: 7438 // `projects/{project-id}/locations/{location-id}`. If no location is 7439 // specified, a region will be chosen automatically. This field is only 7440 // populated when used in ProcessDocument method. 7441 func (r *ProjectsDocumentsService) Process(parent string, googleclouddocumentaiv1beta2processdocumentrequest *GoogleCloudDocumentaiV1beta2ProcessDocumentRequest) *ProjectsDocumentsProcessCall { 7442 c := &ProjectsDocumentsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)} 7443 c.parent = parent 7444 c.googleclouddocumentaiv1beta2processdocumentrequest = googleclouddocumentaiv1beta2processdocumentrequest 7445 return c 7446 } 7447 7448 // Fields allows partial responses to be retrieved. See 7449 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more 7450 // details. 7451 func (c *ProjectsDocumentsProcessCall) Fields(s ...googleapi.Field) *ProjectsDocumentsProcessCall { 7452 c.urlParams_.Set("fields", googleapi.CombineFields(s)) 7453 return c 7454 } 7455 7456 // Context sets the context to be used in this call's Do method. 7457 func (c *ProjectsDocumentsProcessCall) Context(ctx context.Context) *ProjectsDocumentsProcessCall { 7458 c.ctx_ = ctx 7459 return c 7460 } 7461 7462 // Header returns a http.Header that can be modified by the caller to add 7463 // headers to the request. 7464 func (c *ProjectsDocumentsProcessCall) Header() http.Header { 7465 if c.header_ == nil { 7466 c.header_ = make(http.Header) 7467 } 7468 return c.header_ 7469 } 7470 7471 func (c *ProjectsDocumentsProcessCall) doRequest(alt string) (*http.Response, error) { 7472 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) 7473 var body io.Reader = nil 7474 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta2processdocumentrequest) 7475 if err != nil { 7476 return nil, err 7477 } 7478 c.urlParams_.Set("alt", alt) 7479 c.urlParams_.Set("prettyPrint", "false") 7480 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/documents:process") 7481 urls += "?" + c.urlParams_.Encode() 7482 req, err := http.NewRequest("POST", urls, body) 7483 if err != nil { 7484 return nil, err 7485 } 7486 req.Header = reqHeaders 7487 googleapi.Expand(req.URL, map[string]string{ 7488 "parent": c.parent, 7489 }) 7490 return gensupport.SendRequest(c.ctx_, c.s.client, req) 7491 } 7492 7493 // Do executes the "documentai.projects.documents.process" call. 7494 // Any non-2xx status code is an error. Response headers are in either 7495 // *GoogleCloudDocumentaiV1beta2Document.ServerResponse.Header or (if a 7496 // response was returned at all) in error.(*googleapi.Error).Header. Use 7497 // googleapi.IsNotModified to check whether the returned error was because 7498 // http.StatusNotModified was returned. 7499 func (c *ProjectsDocumentsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta2Document, error) { 7500 gensupport.SetOptions(c.urlParams_, opts...) 7501 res, err := c.doRequest("json") 7502 if res != nil && res.StatusCode == http.StatusNotModified { 7503 if res.Body != nil { 7504 res.Body.Close() 7505 } 7506 return nil, gensupport.WrapError(&googleapi.Error{ 7507 Code: res.StatusCode, 7508 Header: res.Header, 7509 }) 7510 } 7511 if err != nil { 7512 return nil, err 7513 } 7514 defer googleapi.CloseBody(res) 7515 if err := googleapi.CheckResponse(res); err != nil { 7516 return nil, gensupport.WrapError(err) 7517 } 7518 ret := &GoogleCloudDocumentaiV1beta2Document{ 7519 ServerResponse: googleapi.ServerResponse{ 7520 Header: res.Header, 7521 HTTPStatusCode: res.StatusCode, 7522 }, 7523 } 7524 target := &ret 7525 if err := gensupport.DecodeResponse(target, res); err != nil { 7526 return nil, err 7527 } 7528 return ret, nil 7529 } 7530 7531 type ProjectsLocationsDocumentsBatchProcessCall struct { 7532 s *Service 7533 parent string 7534 googleclouddocumentaiv1beta2batchprocessdocumentsrequest *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest 7535 urlParams_ gensupport.URLParams 7536 ctx_ context.Context 7537 header_ http.Header 7538 } 7539 7540 // BatchProcess: LRO endpoint to batch process many documents. The output is 7541 // written to Cloud Storage as JSON in the [Document] format. 7542 // 7543 // - parent: Target project and location to make a call. Format: 7544 // `projects/{project-id}/locations/{location-id}`. If no location is 7545 // specified, a region will be chosen automatically. 7546 func (r *ProjectsLocationsDocumentsService) BatchProcess(parent string, googleclouddocumentaiv1beta2batchprocessdocumentsrequest *GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest) *ProjectsLocationsDocumentsBatchProcessCall { 7547 c := &ProjectsLocationsDocumentsBatchProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)} 7548 c.parent = parent 7549 c.googleclouddocumentaiv1beta2batchprocessdocumentsrequest = googleclouddocumentaiv1beta2batchprocessdocumentsrequest 7550 return c 7551 } 7552 7553 // Fields allows partial responses to be retrieved. See 7554 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more 7555 // details. 7556 func (c *ProjectsLocationsDocumentsBatchProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentsBatchProcessCall { 7557 c.urlParams_.Set("fields", googleapi.CombineFields(s)) 7558 return c 7559 } 7560 7561 // Context sets the context to be used in this call's Do method. 7562 func (c *ProjectsLocationsDocumentsBatchProcessCall) Context(ctx context.Context) *ProjectsLocationsDocumentsBatchProcessCall { 7563 c.ctx_ = ctx 7564 return c 7565 } 7566 7567 // Header returns a http.Header that can be modified by the caller to add 7568 // headers to the request. 7569 func (c *ProjectsLocationsDocumentsBatchProcessCall) Header() http.Header { 7570 if c.header_ == nil { 7571 c.header_ = make(http.Header) 7572 } 7573 return c.header_ 7574 } 7575 7576 func (c *ProjectsLocationsDocumentsBatchProcessCall) doRequest(alt string) (*http.Response, error) { 7577 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) 7578 var body io.Reader = nil 7579 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta2batchprocessdocumentsrequest) 7580 if err != nil { 7581 return nil, err 7582 } 7583 c.urlParams_.Set("alt", alt) 7584 c.urlParams_.Set("prettyPrint", "false") 7585 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/documents:batchProcess") 7586 urls += "?" + c.urlParams_.Encode() 7587 req, err := http.NewRequest("POST", urls, body) 7588 if err != nil { 7589 return nil, err 7590 } 7591 req.Header = reqHeaders 7592 googleapi.Expand(req.URL, map[string]string{ 7593 "parent": c.parent, 7594 }) 7595 return gensupport.SendRequest(c.ctx_, c.s.client, req) 7596 } 7597 7598 // Do executes the "documentai.projects.locations.documents.batchProcess" call. 7599 // Any non-2xx status code is an error. Response headers are in either 7600 // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was 7601 // returned at all) in error.(*googleapi.Error).Header. Use 7602 // googleapi.IsNotModified to check whether the returned error was because 7603 // http.StatusNotModified was returned. 7604 func (c *ProjectsLocationsDocumentsBatchProcessCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { 7605 gensupport.SetOptions(c.urlParams_, opts...) 7606 res, err := c.doRequest("json") 7607 if res != nil && res.StatusCode == http.StatusNotModified { 7608 if res.Body != nil { 7609 res.Body.Close() 7610 } 7611 return nil, gensupport.WrapError(&googleapi.Error{ 7612 Code: res.StatusCode, 7613 Header: res.Header, 7614 }) 7615 } 7616 if err != nil { 7617 return nil, err 7618 } 7619 defer googleapi.CloseBody(res) 7620 if err := googleapi.CheckResponse(res); err != nil { 7621 return nil, gensupport.WrapError(err) 7622 } 7623 ret := &GoogleLongrunningOperation{ 7624 ServerResponse: googleapi.ServerResponse{ 7625 Header: res.Header, 7626 HTTPStatusCode: res.StatusCode, 7627 }, 7628 } 7629 target := &ret 7630 if err := gensupport.DecodeResponse(target, res); err != nil { 7631 return nil, err 7632 } 7633 return ret, nil 7634 } 7635 7636 type ProjectsLocationsDocumentsProcessCall struct { 7637 s *Service 7638 parent string 7639 googleclouddocumentaiv1beta2processdocumentrequest *GoogleCloudDocumentaiV1beta2ProcessDocumentRequest 7640 urlParams_ gensupport.URLParams 7641 ctx_ context.Context 7642 header_ http.Header 7643 } 7644 7645 // Process: Processes a single document. 7646 // 7647 // - parent: Target project and location to make a call. Format: 7648 // `projects/{project-id}/locations/{location-id}`. If no location is 7649 // specified, a region will be chosen automatically. This field is only 7650 // populated when used in ProcessDocument method. 7651 func (r *ProjectsLocationsDocumentsService) Process(parent string, googleclouddocumentaiv1beta2processdocumentrequest *GoogleCloudDocumentaiV1beta2ProcessDocumentRequest) *ProjectsLocationsDocumentsProcessCall { 7652 c := &ProjectsLocationsDocumentsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)} 7653 c.parent = parent 7654 c.googleclouddocumentaiv1beta2processdocumentrequest = googleclouddocumentaiv1beta2processdocumentrequest 7655 return c 7656 } 7657 7658 // Fields allows partial responses to be retrieved. See 7659 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more 7660 // details. 7661 func (c *ProjectsLocationsDocumentsProcessCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentsProcessCall { 7662 c.urlParams_.Set("fields", googleapi.CombineFields(s)) 7663 return c 7664 } 7665 7666 // Context sets the context to be used in this call's Do method. 7667 func (c *ProjectsLocationsDocumentsProcessCall) Context(ctx context.Context) *ProjectsLocationsDocumentsProcessCall { 7668 c.ctx_ = ctx 7669 return c 7670 } 7671 7672 // Header returns a http.Header that can be modified by the caller to add 7673 // headers to the request. 7674 func (c *ProjectsLocationsDocumentsProcessCall) Header() http.Header { 7675 if c.header_ == nil { 7676 c.header_ = make(http.Header) 7677 } 7678 return c.header_ 7679 } 7680 7681 func (c *ProjectsLocationsDocumentsProcessCall) doRequest(alt string) (*http.Response, error) { 7682 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) 7683 var body io.Reader = nil 7684 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddocumentaiv1beta2processdocumentrequest) 7685 if err != nil { 7686 return nil, err 7687 } 7688 c.urlParams_.Set("alt", alt) 7689 c.urlParams_.Set("prettyPrint", "false") 7690 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/documents:process") 7691 urls += "?" + c.urlParams_.Encode() 7692 req, err := http.NewRequest("POST", urls, body) 7693 if err != nil { 7694 return nil, err 7695 } 7696 req.Header = reqHeaders 7697 googleapi.Expand(req.URL, map[string]string{ 7698 "parent": c.parent, 7699 }) 7700 return gensupport.SendRequest(c.ctx_, c.s.client, req) 7701 } 7702 7703 // Do executes the "documentai.projects.locations.documents.process" call. 7704 // Any non-2xx status code is an error. Response headers are in either 7705 // *GoogleCloudDocumentaiV1beta2Document.ServerResponse.Header or (if a 7706 // response was returned at all) in error.(*googleapi.Error).Header. Use 7707 // googleapi.IsNotModified to check whether the returned error was because 7708 // http.StatusNotModified was returned. 7709 func (c *ProjectsLocationsDocumentsProcessCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta2Document, error) { 7710 gensupport.SetOptions(c.urlParams_, opts...) 7711 res, err := c.doRequest("json") 7712 if res != nil && res.StatusCode == http.StatusNotModified { 7713 if res.Body != nil { 7714 res.Body.Close() 7715 } 7716 return nil, gensupport.WrapError(&googleapi.Error{ 7717 Code: res.StatusCode, 7718 Header: res.Header, 7719 }) 7720 } 7721 if err != nil { 7722 return nil, err 7723 } 7724 defer googleapi.CloseBody(res) 7725 if err := googleapi.CheckResponse(res); err != nil { 7726 return nil, gensupport.WrapError(err) 7727 } 7728 ret := &GoogleCloudDocumentaiV1beta2Document{ 7729 ServerResponse: googleapi.ServerResponse{ 7730 Header: res.Header, 7731 HTTPStatusCode: res.StatusCode, 7732 }, 7733 } 7734 target := &ret 7735 if err := gensupport.DecodeResponse(target, res); err != nil { 7736 return nil, err 7737 } 7738 return ret, nil 7739 } 7740 7741 type ProjectsLocationsOperationsGetCall struct { 7742 s *Service 7743 name string 7744 urlParams_ gensupport.URLParams 7745 ifNoneMatch_ string 7746 ctx_ context.Context 7747 header_ http.Header 7748 } 7749 7750 // Get: Gets the latest state of a long-running operation. Clients can use this 7751 // method to poll the operation result at intervals as recommended by the API 7752 // service. 7753 // 7754 // - name: The name of the operation resource. 7755 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { 7756 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} 7757 c.name = name 7758 return c 7759 } 7760 7761 // Fields allows partial responses to be retrieved. See 7762 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more 7763 // details. 7764 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { 7765 c.urlParams_.Set("fields", googleapi.CombineFields(s)) 7766 return c 7767 } 7768 7769 // IfNoneMatch sets an optional parameter which makes the operation fail if the 7770 // object's ETag matches the given value. This is useful for getting updates 7771 // only after the object has changed since the last request. 7772 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { 7773 c.ifNoneMatch_ = entityTag 7774 return c 7775 } 7776 7777 // Context sets the context to be used in this call's Do method. 7778 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { 7779 c.ctx_ = ctx 7780 return c 7781 } 7782 7783 // Header returns a http.Header that can be modified by the caller to add 7784 // headers to the request. 7785 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { 7786 if c.header_ == nil { 7787 c.header_ = make(http.Header) 7788 } 7789 return c.header_ 7790 } 7791 7792 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { 7793 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) 7794 if c.ifNoneMatch_ != "" { 7795 reqHeaders.Set("If-None-Match", c.ifNoneMatch_) 7796 } 7797 var body io.Reader = nil 7798 c.urlParams_.Set("alt", alt) 7799 c.urlParams_.Set("prettyPrint", "false") 7800 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") 7801 urls += "?" + c.urlParams_.Encode() 7802 req, err := http.NewRequest("GET", urls, body) 7803 if err != nil { 7804 return nil, err 7805 } 7806 req.Header = reqHeaders 7807 googleapi.Expand(req.URL, map[string]string{ 7808 "name": c.name, 7809 }) 7810 return gensupport.SendRequest(c.ctx_, c.s.client, req) 7811 } 7812 7813 // Do executes the "documentai.projects.locations.operations.get" call. 7814 // Any non-2xx status code is an error. Response headers are in either 7815 // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was 7816 // returned at all) in error.(*googleapi.Error).Header. Use 7817 // googleapi.IsNotModified to check whether the returned error was because 7818 // http.StatusNotModified was returned. 7819 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { 7820 gensupport.SetOptions(c.urlParams_, opts...) 7821 res, err := c.doRequest("json") 7822 if res != nil && res.StatusCode == http.StatusNotModified { 7823 if res.Body != nil { 7824 res.Body.Close() 7825 } 7826 return nil, gensupport.WrapError(&googleapi.Error{ 7827 Code: res.StatusCode, 7828 Header: res.Header, 7829 }) 7830 } 7831 if err != nil { 7832 return nil, err 7833 } 7834 defer googleapi.CloseBody(res) 7835 if err := googleapi.CheckResponse(res); err != nil { 7836 return nil, gensupport.WrapError(err) 7837 } 7838 ret := &GoogleLongrunningOperation{ 7839 ServerResponse: googleapi.ServerResponse{ 7840 Header: res.Header, 7841 HTTPStatusCode: res.StatusCode, 7842 }, 7843 } 7844 target := &ret 7845 if err := gensupport.DecodeResponse(target, res); err != nil { 7846 return nil, err 7847 } 7848 return ret, nil 7849 } 7850 7851 type ProjectsOperationsGetCall struct { 7852 s *Service 7853 name string 7854 urlParams_ gensupport.URLParams 7855 ifNoneMatch_ string 7856 ctx_ context.Context 7857 header_ http.Header 7858 } 7859 7860 // Get: Gets the latest state of a long-running operation. Clients can use this 7861 // method to poll the operation result at intervals as recommended by the API 7862 // service. 7863 // 7864 // - name: The name of the operation resource. 7865 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { 7866 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} 7867 c.name = name 7868 return c 7869 } 7870 7871 // Fields allows partial responses to be retrieved. See 7872 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more 7873 // details. 7874 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { 7875 c.urlParams_.Set("fields", googleapi.CombineFields(s)) 7876 return c 7877 } 7878 7879 // IfNoneMatch sets an optional parameter which makes the operation fail if the 7880 // object's ETag matches the given value. This is useful for getting updates 7881 // only after the object has changed since the last request. 7882 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { 7883 c.ifNoneMatch_ = entityTag 7884 return c 7885 } 7886 7887 // Context sets the context to be used in this call's Do method. 7888 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { 7889 c.ctx_ = ctx 7890 return c 7891 } 7892 7893 // Header returns a http.Header that can be modified by the caller to add 7894 // headers to the request. 7895 func (c *ProjectsOperationsGetCall) Header() http.Header { 7896 if c.header_ == nil { 7897 c.header_ = make(http.Header) 7898 } 7899 return c.header_ 7900 } 7901 7902 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { 7903 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) 7904 if c.ifNoneMatch_ != "" { 7905 reqHeaders.Set("If-None-Match", c.ifNoneMatch_) 7906 } 7907 var body io.Reader = nil 7908 c.urlParams_.Set("alt", alt) 7909 c.urlParams_.Set("prettyPrint", "false") 7910 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") 7911 urls += "?" + c.urlParams_.Encode() 7912 req, err := http.NewRequest("GET", urls, body) 7913 if err != nil { 7914 return nil, err 7915 } 7916 req.Header = reqHeaders 7917 googleapi.Expand(req.URL, map[string]string{ 7918 "name": c.name, 7919 }) 7920 return gensupport.SendRequest(c.ctx_, c.s.client, req) 7921 } 7922 7923 // Do executes the "documentai.projects.operations.get" call. 7924 // Any non-2xx status code is an error. Response headers are in either 7925 // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was 7926 // returned at all) in error.(*googleapi.Error).Header. Use 7927 // googleapi.IsNotModified to check whether the returned error was because 7928 // http.StatusNotModified was returned. 7929 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { 7930 gensupport.SetOptions(c.urlParams_, opts...) 7931 res, err := c.doRequest("json") 7932 if res != nil && res.StatusCode == http.StatusNotModified { 7933 if res.Body != nil { 7934 res.Body.Close() 7935 } 7936 return nil, gensupport.WrapError(&googleapi.Error{ 7937 Code: res.StatusCode, 7938 Header: res.Header, 7939 }) 7940 } 7941 if err != nil { 7942 return nil, err 7943 } 7944 defer googleapi.CloseBody(res) 7945 if err := googleapi.CheckResponse(res); err != nil { 7946 return nil, gensupport.WrapError(err) 7947 } 7948 ret := &GoogleLongrunningOperation{ 7949 ServerResponse: googleapi.ServerResponse{ 7950 Header: res.Header, 7951 HTTPStatusCode: res.StatusCode, 7952 }, 7953 } 7954 target := &ret 7955 if err := gensupport.DecodeResponse(target, res); err != nil { 7956 return nil, err 7957 } 7958 return ret, nil 7959 } 7960