Skip to content

Commit

Permalink
feat: A new field imageless_mode is added to message `.google.cloud…
Browse files Browse the repository at this point in the history
….documentai.v1.ProcessRequest` (#7573)

feat: A new field `gen_ai_model_info` is added to message `.google.cloud.documentai.v1.ProcessorVersion`
PiperOrigin-RevId: 658521163
Source-Link: googleapis/googleapis@f7bcaab
Source-Link: googleapis/googleapis-gen@799a34c
Copy-Tag: eyJwIjoiRG9jdW1lbnRBaS8uT3dsQm90LnlhbWwiLCJoIjoiNzk5YTM0Y2EzMWY5YTFlZTIxYTQ3ZTA5NWZmMmE5ZmEwOWJkNzlkOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Aug 2, 2024
1 parent 7d6d011 commit c5b4542
Show file tree
Hide file tree
Showing 9 changed files with 469 additions and 0 deletions.
Binary file modified DocumentAi/metadata/V1/DocumentProcessorService.php
Binary file not shown.
Binary file modified DocumentAi/metadata/V1/Processor.php
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,8 @@ public function listProcessors($parent, array $optionalArgs = [])
* (Unicode codepoints) and can only contain lowercase letters, numeric
* characters, underscores, and dashes. International characters are allowed.
* Label values are optional. Label keys must start with a letter.
* @type bool $imagelessMode
* Optional. Option to remove images from the document.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand Down Expand Up @@ -1863,6 +1865,10 @@ public function processDocument($name, array $optionalArgs = [])
$request->setLabels($optionalArgs['labels']);
}

if (isset($optionalArgs['imagelessMode'])) {
$request->setImagelessMode($optionalArgs['imagelessMode']);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down
34 changes: 34 additions & 0 deletions DocumentAi/src/V1/ProcessRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions DocumentAi/src/V1/ProcessorVersion.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 109 additions & 0 deletions DocumentAi/src/V1/ProcessorVersion/GenAiModelInfo.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c5b4542

Please sign in to comment.