Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [DocumentAi] A new field imageless_mode is added to message .google.cloud.documentai.v1.ProcessRequest #7573

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading