Skip to content

Commit 6952d41

Browse files
feat: [DocumentAi] Added new messages EntityValidationOutput and EntitiesRevision (#8649)
* feat: Added new messages `EntityValidationOutput` and `EntitiesRevision` feat: Added new fields `entity_validation_output`, `entities_revisions`, and `entities_revision_id` to the `Document` message docs: The field `training_method` in `TrainProcessorVersionRequest` is now marked as optional PiperOrigin-RevId: 816853859 Source-Link: googleapis/googleapis@1a87094 Source-Link: googleapis/googleapis-gen@4518457 Copy-Tag: eyJwIjoiRG9jdW1lbnRBaS8uT3dsQm90LnlhbWwiLCJoIjoiNDUxODQ1NzZkMWQ2OTZmZTg1NDRlODE1YTU1ZDlkOTNlYTMxMWJlZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 95b34bb commit 6952d41

9 files changed

Lines changed: 697 additions & 31 deletions

File tree

1005 Bytes
Binary file not shown.
5 Bytes
Binary file not shown.

DocumentAi/src/V1/Client/DocumentProcessorServiceClient.php

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ final class DocumentProcessorServiceClient
145145
private const CODEGEN_NAME = 'gapic';
146146

147147
/** The default scopes required by the service. */
148-
public static $serviceScopes = [
149-
'https://www.googleapis.com/auth/cloud-platform',
150-
];
148+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
151149

152150
private $operationsClient;
153151

@@ -164,7 +162,8 @@ private static function getClientDefaults()
164162
],
165163
'transportConfig' => [
166164
'rest' => [
167-
'restClientConfigPath' => __DIR__ . '/../resources/document_processor_service_rest_client_config.php',
165+
'restClientConfigPath' =>
166+
__DIR__ . '/../resources/document_processor_service_rest_client_config.php',
168167
],
169168
],
170169
];
@@ -230,8 +229,13 @@ private function createOperationsClient(array $options)
230229
*
231230
* @return string The formatted evaluation resource.
232231
*/
233-
public static function evaluationName(string $project, string $location, string $processor, string $processorVersion, string $evaluation): string
234-
{
232+
public static function evaluationName(
233+
string $project,
234+
string $location,
235+
string $processor,
236+
string $processorVersion,
237+
string $evaluation
238+
): string {
235239
return self::getPathTemplate('evaluation')->render([
236240
'project' => $project,
237241
'location' => $location,
@@ -326,8 +330,12 @@ public static function processorTypeName(string $project, string $location, stri
326330
*
327331
* @return string The formatted processor_version resource.
328332
*/
329-
public static function processorVersionName(string $project, string $location, string $processor, string $processorVersion): string
330-
{
333+
public static function processorVersionName(
334+
string $project,
335+
string $location,
336+
string $processor,
337+
string $processorVersion
338+
): string {
331339
return self::getPathTemplate('processorVersion')->render([
332340
'project' => $project,
333341
'location' => $location,
@@ -563,8 +571,10 @@ public function deleteProcessor(DeleteProcessorRequest $request, array $callOpti
563571
*
564572
* @throws ApiException Thrown if the API call fails.
565573
*/
566-
public function deleteProcessorVersion(DeleteProcessorVersionRequest $request, array $callOptions = []): OperationResponse
567-
{
574+
public function deleteProcessorVersion(
575+
DeleteProcessorVersionRequest $request,
576+
array $callOptions = []
577+
): OperationResponse {
568578
return $this->startApiCall('DeleteProcessorVersion', $request, $callOptions)->wait();
569579
}
570580

@@ -590,8 +600,10 @@ public function deleteProcessorVersion(DeleteProcessorVersionRequest $request, a
590600
*
591601
* @throws ApiException Thrown if the API call fails.
592602
*/
593-
public function deployProcessorVersion(DeployProcessorVersionRequest $request, array $callOptions = []): OperationResponse
594-
{
603+
public function deployProcessorVersion(
604+
DeployProcessorVersionRequest $request,
605+
array $callOptions = []
606+
): OperationResponse {
595607
return $this->startApiCall('DeployProcessorVersion', $request, $callOptions)->wait();
596608
}
597609

@@ -672,8 +684,10 @@ public function enableProcessor(EnableProcessorRequest $request, array $callOpti
672684
*
673685
* @throws ApiException Thrown if the API call fails.
674686
*/
675-
public function evaluateProcessorVersion(EvaluateProcessorVersionRequest $request, array $callOptions = []): OperationResponse
676-
{
687+
public function evaluateProcessorVersion(
688+
EvaluateProcessorVersionRequest $request,
689+
array $callOptions = []
690+
): OperationResponse {
677691
return $this->startApiCall('EvaluateProcessorVersion', $request, $callOptions)->wait();
678692
}
679693

@@ -701,8 +715,10 @@ public function evaluateProcessorVersion(EvaluateProcessorVersionRequest $reques
701715
*
702716
* @throws ApiException Thrown if the API call fails.
703717
*/
704-
public function fetchProcessorTypes(FetchProcessorTypesRequest $request, array $callOptions = []): FetchProcessorTypesResponse
705-
{
718+
public function fetchProcessorTypes(
719+
FetchProcessorTypesRequest $request,
720+
array $callOptions = []
721+
): FetchProcessorTypesResponse {
706722
return $this->startApiCall('FetchProcessorTypes', $request, $callOptions)->wait();
707723
}
708724

@@ -890,8 +906,10 @@ public function listProcessorTypes(ListProcessorTypesRequest $request, array $ca
890906
*
891907
* @throws ApiException Thrown if the API call fails.
892908
*/
893-
public function listProcessorVersions(ListProcessorVersionsRequest $request, array $callOptions = []): PagedListResponse
894-
{
909+
public function listProcessorVersions(
910+
ListProcessorVersionsRequest $request,
911+
array $callOptions = []
912+
): PagedListResponse {
895913
return $this->startApiCall('ListProcessorVersions', $request, $callOptions);
896914
}
897915

@@ -1003,8 +1021,10 @@ public function reviewDocument(ReviewDocumentRequest $request, array $callOption
10031021
*
10041022
* @throws ApiException Thrown if the API call fails.
10051023
*/
1006-
public function setDefaultProcessorVersion(SetDefaultProcessorVersionRequest $request, array $callOptions = []): OperationResponse
1007-
{
1024+
public function setDefaultProcessorVersion(
1025+
SetDefaultProcessorVersionRequest $request,
1026+
array $callOptions = []
1027+
): OperationResponse {
10081028
return $this->startApiCall('SetDefaultProcessorVersion', $request, $callOptions)->wait();
10091029
}
10101030

@@ -1032,8 +1052,10 @@ public function setDefaultProcessorVersion(SetDefaultProcessorVersionRequest $re
10321052
*
10331053
* @throws ApiException Thrown if the API call fails.
10341054
*/
1035-
public function trainProcessorVersion(TrainProcessorVersionRequest $request, array $callOptions = []): OperationResponse
1036-
{
1055+
public function trainProcessorVersion(
1056+
TrainProcessorVersionRequest $request,
1057+
array $callOptions = []
1058+
): OperationResponse {
10371059
return $this->startApiCall('TrainProcessorVersion', $request, $callOptions)->wait();
10381060
}
10391061

@@ -1059,8 +1081,10 @@ public function trainProcessorVersion(TrainProcessorVersionRequest $request, arr
10591081
*
10601082
* @throws ApiException Thrown if the API call fails.
10611083
*/
1062-
public function undeployProcessorVersion(UndeployProcessorVersionRequest $request, array $callOptions = []): OperationResponse
1063-
{
1084+
public function undeployProcessorVersion(
1085+
UndeployProcessorVersionRequest $request,
1086+
array $callOptions = []
1087+
): OperationResponse {
10641088
return $this->startApiCall('UndeployProcessorVersion', $request, $callOptions)->wait();
10651089
}
10661090

DocumentAi/src/V1/Document.php

Lines changed: 140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)