
                         V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z3Generated client library for documentai version v1.    )absolute_import)base_api)documentai_v1_messagesc                   d  ^  \ rS rSrSr\rSrSrSr	S/r
SrSrS	rS
rS rSrSr     S&U 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S \R(                  5      r " S! S"\R(                  5      r " S# S$\R(                  5      r S%r!U =r"$ )'DocumentaiV1
   z;Generated client library for service documentai version v1.z"https://documentai.googleapis.com/z'https://documentai.mtls.googleapis.com/
documentaiz.https://www.googleapis.com/auth/cloud-platformv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                 p  > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        U R                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l        U R!                  U 5      U l        U R%                  U 5      U l        U R)                  U 5      U l        U R-                  U 5      U l        U R1                  U 5      U l        U R5                  U 5      U l        g)zCreate a new documentai handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__OperationsService
operations"ProjectsLocationsOperationsServiceprojects_locations_operations&ProjectsLocationsProcessorTypesService!projects_locations_processorTypes3ProjectsLocationsProcessorsHumanReviewConfigService/projects_locations_processors_humanReviewConfig>ProjectsLocationsProcessorsProcessorVersionsEvaluationsService;projects_locations_processors_processorVersions_evaluations3ProjectsLocationsProcessorsProcessorVersionsService/projects_locations_processors_processorVersions"ProjectsLocationsProcessorsServiceprojects_locations_processors-ProjectsLocationsSchemasSchemaVersionsService)projects_locations_schemas_schemaVersionsProjectsLocationsSchemasServiceprojects_locations_schemasProjectsLocationsServiceprojects_locationsProjectsOperationsServiceprojects_operationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Olib/googlecloudsdk/generated_clients/apis/documentai/v1/documentai_v1_client.pyr   DocumentaiV1.__init__   s9    
C	,&'%)3 7+ ' - ,,T2DO)-)P)PQU)VD&-1-X-XY]-^D*;?;s;stx;yD8GK  HK  HK  LP  HQDD;?;s;stx;yD8)-)P)PQU)VD&595g5ghl5mD2&*&J&J4&PD#";;DAD#==dCD((.DM    c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	DocumentaiV1.OperationsService7   z*Service class for the operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr3   clientr5   s     r6   r   'DocumentaiV1.OperationsService.__init__<   s"    L**D:6Bdr8   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Args:
  request: (DocumentaiOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
Deleteglobal_paramsGetMethodConfig
_RunMethodr3   requestrE   configs       r6   rC   %DocumentaiV1.OperationsService.DeleteA   /     ##H-f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzv1/operations/{operationsId}DELETEzdocumentai.operations.deletename
v1/{+name} !DocumentaiOperationsDeleteRequestGoogleProtobufEmptyF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r8   r6   <lambda>'DocumentaiV1.OperationsService.<lambda>N   s4    8#9#900xH"=0$r8   r>   r=   )__name__
__module____qualname____firstlineno____doc___NAMEr   rC   method_config__static_attributes____classcell__r5   s   @r6   r   r:   7   s"    4E
8Fr8   r   c                   ~   ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SrU =r$ )/DocumentaiV1.ProjectsLocationsOperationsService\   z=Service class for the projects_locations_operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r   r   r>   r?   s     r6   r   8DocumentaiV1.ProjectsLocationsOperationsService.__init__a   "    L;;TKFSdr8   c                 D    U R                  S5      nU R                  X1US9$ )a#  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
  request: (DocumentaiProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
CancelrD   rF   rI   s       r6   rx   6DocumentaiV1.ProjectsLocationsOperationsService.Cancelf   rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzQv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTz/documentai.projects.locations.operations.cancelrP   zv1/{+name}:cancelrR   2DocumentaiProjectsLocationsOperationsCancelRequestrT   FrU   ra   rc   r8   r6   rd   8DocumentaiV1.ProjectsLocationsOperationsService.<lambda>s   s4    8#9#9eCxH)N0$r8   c                 D    U R                  S5      nU R                  X1US9$ )aw  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Args:
  request: (DocumentaiProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
GetrD   rF   rI   s       r6   r   3DocumentaiV1.ProjectsLocationsOperationsService.Get   /     ##E*f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzJv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}GETz,documentai.projects.locations.operations.getrP   rQ   rR   /DocumentaiProjectsLocationsOperationsGetRequestGoogleLongrunningOperationFrU   ra   rc   r8   r6   rd   r}      s4     6 6^@xH"K7!r8   c                 D    U R                  S5      nU R                  X1US9$ )aq  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (DocumentaiProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningListOperationsResponse) The response message.
ListrD   rF   rI   s       r6   r   4DocumentaiV1.ProjectsLocationsOperationsService.List   /     ##F+f__
  8 8r8   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz;v1/projects/{projectsId}/locations/{locationsId}/operationsr   z-documentai.projects.locations.operations.listrP   )filterpageSize	pageTokenreturnPartialSuccessrQ   rR   0DocumentaiProjectsLocationsOperationsListRequest'GoogleLongrunningListOperationsResponseFrU   ra   rc   r8   r6   rd   r}      s4    !7!7OAxHP"LD"r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   rx   rm   r   r   rn   ro   rp   s   @r6   r   rr   \   s@    G+E
8F8C8Dr8   r   c                   d   ^  \ rS rSrSrSrU 4S jrS
S jrS \l        S
S jr	S \	l        S	r
U =r$ )3DocumentaiV1.ProjectsLocationsProcessorTypesService   zAService class for the projects_locations_processorTypes resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r   r   r>   r?   s     r6   r   <DocumentaiV1.ProjectsLocationsProcessorTypesService.__init__   s#    L??OPVWdr8   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets a processor type detail.

Args:
  request: (DocumentaiProjectsLocationsProcessorTypesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ProcessorType) The response message.
r   rD   rF   rI   s       r6   r   7DocumentaiV1.ProjectsLocationsProcessorTypesService.Get   r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzRv1/projects/{projectsId}/locations/{locationsId}/processorTypes/{processorTypesId}r   z0documentai.projects.locations.processorTypes.getrP   rQ   rR   3DocumentaiProjectsLocationsProcessorTypesGetRequest$GoogleCloudDocumentaiV1ProcessorTypeFrU   ra   rc   r8   r6   rd   <DocumentaiV1.ProjectsLocationsProcessorTypesService.<lambda>   s4     6 6fDxH"OA!r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists the processor types that exist.

Args:
  request: (DocumentaiProjectsLocationsProcessorTypesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ListProcessorTypesResponse) The response message.
r   rD   rF   rI   s       r6   r   8DocumentaiV1.ProjectsLocationsProcessorTypesService.List   r   r8   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz?v1/projects/{projectsId}/locations/{locationsId}/processorTypesr   z1documentai.projects.locations.processorTypes.listparentr   r   zv1/{+parent}/processorTypesrR   4DocumentaiProjectsLocationsProcessorTypesListRequest1GoogleCloudDocumentaiV1ListProcessorTypesResponseFrU   ra   rc   r8   r6   rd   r      s9    !7!7SE zJ +.3PN"r8   rf   r=   rg   rh   ri   rj   rk   rl   r   r   rm   r   rn   ro   rp   s   @r6   r   r      s1    K/E
8C8Dr8   r   c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	@DocumentaiV1.ProjectsLocationsProcessorsHumanReviewConfigService   zOService class for the projects_locations_processors_humanReviewConfig resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r!   r   r>   r?   s     r6   r   IDocumentaiV1.ProjectsLocationsProcessorsHumanReviewConfigService.__init__   #    LLLd\]cddr8   c                 D    U R                  S5      nU R                  X1US9$ )a\  Send a document for Human Review. The input document should be processed by the specified processor.

Args:
  request: (DocumentaiProjectsLocationsProcessorsHumanReviewConfigReviewDocumentRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
ReviewDocumentrD   rF   rI   s       r6   r   ODocumentaiV1.ProjectsLocationsProcessorsHumanReviewConfigService.ReviewDocument  s0     ##$45f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzkv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/humanReviewConfig:reviewDocumentr{   zIdocumentai.projects.locations.processors.humanReviewConfig.reviewDocumenthumanReviewConfigz&v1/{+humanReviewConfig}:reviewDocument,googleCloudDocumentaiV1ReviewDocumentRequestKDocumentaiProjectsLocationsProcessorsHumanReviewConfigReviewDocumentRequestr   FrU   ra   rc   r8   r6   rd   IDocumentaiV1.ProjectsLocationsProcessorsHumanReviewConfigService.<lambda>  s6    8+A+A]+,()>Dg7,r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r   rm   rn   ro   rp   s   @r6   r!   r      s"    Y=E
8$N  r8   r!   c                   d   ^  \ rS rSrSrSrU 4S jrS
S jrS \l        S
S jr	S \	l        S	r
U =r$ )KDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsEvaluationsServicei  z[Service class for the projects_locations_processors_processorVersions_evaluations resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r#   r   r>   r?   s     r6   r   TDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsEvaluationsService.__init__!  s$    LWWY]ghnodr8   c                 D    U R                  S5      nU R                  X1US9$ )a  Retrieves a specific evaluation.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsEvaluationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1Evaluation) The response message.
r   rD   rF   rI   s       r6   r   ODocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsEvaluationsService.Get&  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}/evaluations/{evaluationsId}r   zJdocumentai.projects.locations.processors.processorVersions.evaluations.getrP   rQ   rR   KDocumentaiProjectsLocationsProcessorsProcessorVersionsEvaluationsGetRequest!GoogleCloudDocumentaiV1EvaluationFrU   ra   rc   r8   r6   rd   TDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsEvaluationsService.<lambda>3  s7     6 6 c^xH"g>!r8   c                 D    U R                  S5      nU R                  X1US9$ )aJ  Retrieves a set of evaluations for a given processor version.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsEvaluationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ListEvaluationsResponse) The response message.
r   rD   rF   rI   s       r6   r   PDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsEvaluationsService.ListA  r   r8   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz~v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}/evaluationsr   zKdocumentai.projects.locations.processors.processorVersions.evaluations.listr   r   r   zv1/{+parent}/evaluationsrR   LDocumentaiProjectsLocationsProcessorsProcessorVersionsEvaluationsListRequest.GoogleCloudDocumentaiV1ListEvaluationsResponseFrU   ra   rc   r8   r6   rd   r   N  s<    !7!7 S_ zJ +.0hK"r8   rf   r=   r   rp   s   @r6   r#   r     s1    eIE
8C8Dr8   r#   c                     ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )@DocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsServicei\  zOService class for the projects_locations_processors_processorVersions resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r%   r   r>   r?   s     r6   r   IDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.__init__a  r   r8   c                 D    U R                  S5      nU R                  X1US9$ )al  LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsBatchProcessRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
BatchProcessrD   rF   rI   s       r6   r   MDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.BatchProcessf  /     ##N3f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:batchProcessr{   zGdocumentai.projects.locations.processors.processorVersions.batchProcessrP   v1/{+name}:batchProcess*googleCloudDocumentaiV1BatchProcessRequestIDocumentaiProjectsLocationsProcessorsProcessorVersionsBatchProcessRequestr   FrU   ra   rc   r8   r6   rd   IDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.<lambda>s  s7    )?)? T[xH/Be7*r8   c                 D    U R                  S5      nU R                  X1US9$ )aI  Deletes the processor version, all artifacts under the processor version will be deleted.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
rC   rD   rF   rI   s       r6   rC   GDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.Delete  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}rO   zAdocumentai.projects.locations.processors.processorVersions.deleterP   rQ   rR   CDocumentaiProjectsLocationsProcessorsProcessorVersionsDeleteRequestr   FrU   ra   rc   r8   r6   rd   r     s7    8#9#9 GUxH"_7$r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Deploys the processor version.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsDeployRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
DeployrD   rF   rI   s       r6   r   GDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.Deploy  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzyv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:deployr{   zAdocumentai.projects.locations.processors.processorVersions.deployrP   zv1/{+name}:deploy4googleCloudDocumentaiV1DeployProcessorVersionRequestCDocumentaiProjectsLocationsProcessorsProcessorVersionsDeployRequestr   FrU   ra   rc   r8   r6   rd   r     s7    8#9#9 NUxH)L_7$r8   c                 D    U R                  S5      nU R                  X1US9$ )aT  Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
EvaluateProcessorVersionrD   rF   rI   s       r6   r   YDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.EvaluateProcessorVersion  s0     ##$>?f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:evaluateProcessorVersionr{   zSdocumentai.projects.locations.processors.processorVersions.evaluateProcessorVersionprocessorVersionz/v1/{+processorVersion}:evaluateProcessorVersion6googleCloudDocumentaiV1EvaluateProcessorVersionRequestUDocumentaiProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionRequestr   FrU   ra   rc   r8   r6   rd   r     s9    X5K5K `g*+'(GNq76r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets a processor version detail.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ProcessorVersion) The response message.
r   rD   rF   rI   s       r6   r   DDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.Get  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   r   z>documentai.projects.locations.processors.processorVersions.getrP   rQ   rR   @DocumentaiProjectsLocationsProcessorsProcessorVersionsGetRequest'GoogleCloudDocumentaiV1ProcessorVersionFrU   ra   rc   r8   r6   rd   r     s7     6 6 GRxH"\D!r8   c                 D    U R                  S5      nU R                  X1US9$ )a*  Lists all versions of a processor.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ListProcessorVersionsResponse) The response message.
r   rD   rF   rI   s       r6   r   EDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.List  r   r8   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz\v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersionsr   z?documentai.projects.locations.processors.processorVersions.listr   r   r   zv1/{+parent}/processorVersionsrR   ADocumentaiProjectsLocationsProcessorsProcessorVersionsListRequest4GoogleCloudDocumentaiV1ListProcessorVersionsResponseFrU   ra   rc   r8   r6   rd   r     s9    !7!7pS zJ +.6]Q"r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Processes a single document.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsProcessRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ProcessResponse) The response message.
ProcessrD   rF   rI   s       r6   r   HDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.Process  /     ##I.f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzzv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:processr{   zBdocumentai.projects.locations.processors.processorVersions.processrP   v1/{+name}:process%googleCloudDocumentaiV1ProcessRequestDDocumentaiProjectsLocationsProcessorsProcessorVersionsProcessRequest&GoogleCloudDocumentaiV1ProcessResponseFrU   ra   rc   r8   r6   rd   r     s7    H$:$: OVxH*=`C%r8   c                 D    U R                  S5      nU R                  X1US9$ )aO  Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsTrainRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
TrainrD   rF   rI   s       r6   r   FDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.Train#  /     ##G,f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzbv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions:trainr{   z@documentai.projects.locations.processors.processorVersions.trainr   z$v1/{+parent}/processorVersions:train3googleCloudDocumentaiV1TrainProcessorVersionRequestBDocumentaiProjectsLocationsProcessorsProcessorVersionsTrainRequestr   FrU   ra   rc   r8   r6   rd   r   0  s4    ("8"8vT zJ<K^7#r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Undeploys the processor version.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessorVersionsUndeployRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
UndeployrD   rF   rI   s       r6   r   IDocumentaiV1.ProjectsLocationsProcessorsProcessorVersionsService.Undeploy>  /     ##J/f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz{v1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/processorVersions/{processorVersionsId}:undeployr{   zCdocumentai.projects.locations.processors.processorVersions.undeployrP   zv1/{+name}:undeploy6googleCloudDocumentaiV1UndeployProcessorVersionRequestEDocumentaiProjectsLocationsProcessorsProcessorVersionsUndeployRequestr   FrU   ra   rc   r8   r6   rd   r   K  s7    X%;%; PWxH+Na7&r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r   rm   rC   r   r   r   r   r   r   r   rn   ro   rp   s   @r6   r%   r   \  s    Y=E
8"L8F8F8.*8C8D8G8E8Hr8   r%   c                     ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )/DocumentaiV1.ProjectsLocationsProcessorsServiceiY  z=Service class for the projects_locations_processors resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r'   r   r>   r?   s     r6   r   8DocumentaiV1.ProjectsLocationsProcessorsService.__init__^  rv   r8   c                 D    U R                  S5      nU R                  X1US9$ )a[  LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

Args:
  request: (DocumentaiProjectsLocationsProcessorsBatchProcessRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
r   rD   rF   rI   s       r6   r   <DocumentaiV1.ProjectsLocationsProcessorsService.BatchProcessc  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzWv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:batchProcessr{   z5documentai.projects.locations.processors.batchProcessrP   r   r   8DocumentaiProjectsLocationsProcessorsBatchProcessRequestr   FrU   ra   rc   r8   r6   rd   8DocumentaiV1.ProjectsLocationsProcessorsService.<lambda>p  s4    )?)?kIxH/BT7*r8   c                 D    U R                  S5      nU R                  X1US9$ )aZ  Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.

Args:
  request: (DocumentaiProjectsLocationsProcessorsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1Processor) The response message.
CreaterD   rF   rI   s       r6   r
  6DocumentaiV1.ProjectsLocationsProcessorsService.Create~  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N;v1/projects/{projectsId}/locations/{locationsId}/processorsr{   z/documentai.projects.locations.processors.creater   v1/{+parent}/processors googleCloudDocumentaiV1Processor2DocumentaiProjectsLocationsProcessorsCreateRequest GoogleCloudDocumentaiV1ProcessorFrU   ra   rc   r8   r6   rd   r    s4    8#9#9OC zJ/8N=$r8   c                 D    U R                  S5      nU R                  X1US9$ )ak  Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

Args:
  request: (DocumentaiProjectsLocationsProcessorsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
rC   rD   rF   rI   s       r6   rC   6DocumentaiV1.ProjectsLocationsProcessorsService.Delete  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NJv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}rO   z/documentai.projects.locations.processors.deleterP   rQ   rR   2DocumentaiProjectsLocationsProcessorsDeleteRequestr   FrU   ra   rc   r8   r6   rd   r    s4    8#9#9^CxH"N7$r8   c                 D    U R                  S5      nU R                  X1US9$ )zDisables a processor.

Args:
  request: (DocumentaiProjectsLocationsProcessorsDisableRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
DisablerD   rF   rI   s       r6   r  7DocumentaiV1.ProjectsLocationsProcessorsService.Disable  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzRv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:disabler{   z0documentai.projects.locations.processors.disablerP   zv1/{+name}:disable.googleCloudDocumentaiV1DisableProcessorRequest3DocumentaiProjectsLocationsProcessorsDisableRequestr   FrU   ra   rc   r8   r6   rd   r    s4    H$:$:fDxH*FO7%r8   c                 D    U R                  S5      nU R                  X1US9$ )zEnables a processor.

Args:
  request: (DocumentaiProjectsLocationsProcessorsEnableRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
EnablerD   rF   rI   s       r6   r  6DocumentaiV1.ProjectsLocationsProcessorsService.Enable  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzQv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:enabler{   z/documentai.projects.locations.processors.enablerP   zv1/{+name}:enable-googleCloudDocumentaiV1EnableProcessorRequest2DocumentaiProjectsLocationsProcessorsEnableRequestr   FrU   ra   rc   r8   r6   rd   r    s4    8#9#9eCxH)EN7$r8   c                 D    U R                  S5      nU R                  X1US9$ )zGets a processor detail.

Args:
  request: (DocumentaiProjectsLocationsProcessorsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1Processor) The response message.
r   rD   rF   rI   s       r6   r   3DocumentaiV1.ProjectsLocationsProcessorsService.Get  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr  r   z,documentai.projects.locations.processors.getrP   rQ   rR   /DocumentaiProjectsLocationsProcessorsGetRequestr  FrU   ra   rc   r8   r6   rd   r    s4     6 6^@xH"K=!r8   c                 D    U R                  S5      nU R                  X1US9$ )a"  Lists all processors which belong to this project.

Args:
  request: (DocumentaiProjectsLocationsProcessorsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ListProcessorsResponse) The response message.
r   rD   rF   rI   s       r6   r   4DocumentaiV1.ProjectsLocationsProcessorsService.List  r   r8   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr  r   z-documentai.projects.locations.processors.listr   r   r   r  rR   0DocumentaiProjectsLocationsProcessorsListRequest-GoogleCloudDocumentaiV1ListProcessorsResponseFrU   ra   rc   r8   r6   rd   r    s9    !7!7OA zJ +./LJ"r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Processes a single document.

Args:
  request: (DocumentaiProjectsLocationsProcessorsProcessRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ProcessResponse) The response message.
r   rD   rF   rI   s       r6   r   7DocumentaiV1.ProjectsLocationsProcessorsService.Process   r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzRv1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:processr{   z0documentai.projects.locations.processors.processrP   r   r   3DocumentaiProjectsLocationsProcessorsProcessRequestr   FrU   ra   rc   r8   r6   rd   r  -  s4    H$:$:fDxH*=OC%r8   c                 D    U R                  S5      nU R                  X1US9$ )ab  Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.

Args:
  request: (DocumentaiProjectsLocationsProcessorsSetDefaultProcessorVersionRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
SetDefaultProcessorVersionrD   rF   rI   s       r6   r1  JDocumentaiV1.ProjectsLocationsProcessorsService.SetDefaultProcessorVersion;  s0     ##$@Af__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzev1/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}:setDefaultProcessorVersionr{   zCdocumentai.projects.locations.processors.setDefaultProcessorVersion	processorz*v1/{+processor}:setDefaultProcessorVersion8googleCloudDocumentaiV1SetDefaultProcessorVersionRequestFDocumentaiProjectsLocationsProcessorsSetDefaultProcessorVersionRequestr   FrU   ra   rc   r8   r6   rd   r  H  s4    x7M7MyW#} MBPb78r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r   rm   r
  rC   r  r  r   r   r   r1  rn   ro   rp   s   @r6   r'   r  Y  s    G+E
8"L8F8F8G8F8C8D8G80,,r8   r'   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ ):DocumentaiV1.ProjectsLocationsSchemasSchemaVersionsServiceiV  zIService class for the projects_locations_schemas_schemaVersions resource.r*   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r)   r   r>   r?   s     r6   r   CDocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.__init__[  s#    LFFVW]^dr8   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a schema version.

Args:
  request: (DocumentaiProjectsLocationsSchemasSchemaVersionsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1SchemaVersion) The response message.
r
  rD   rF   rI   s       r6   r
  ADocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.Create`  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NSv1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersionsr{   z;documentai.projects.locations.schemas.schemaVersions.creater   v1/{+parent}/schemaVersions$googleCloudDocumentaiV1SchemaVersion=DocumentaiProjectsLocationsSchemasSchemaVersionsCreateRequest$GoogleCloudDocumentaiV1SchemaVersionFrU   ra   rc   r8   r6   rd   CDocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.<lambda>m  s4    8#9#9gO zJ3<YA$r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a schema version.

Args:
  request: (DocumentaiProjectsLocationsSchemasSchemaVersionsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
rC   rD   rF   rI   s       r6   rC   ADocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.Delete{  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nfv1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}rO   z;documentai.projects.locations.schemas.schemaVersions.deleterP   rQ   rR   =DocumentaiProjectsLocationsSchemasSchemaVersionsDeleteRequestr   FrU   ra   rc   r8   r6   rd   rC    s4    8#9#9zOxH"Y7$r8   c                 D    U R                  S5      nU R                  X1US9$ )a!  Generates a schema version.

Args:
  request: (DocumentaiProjectsLocationsSchemasSchemaVersionsGenerateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1GenerateSchemaVersionResponse) The response message.
GeneraterD   rF   rI   s       r6   rJ  CDocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.Generate  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz\v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions:generater{   z=documentai.projects.locations.schemas.schemaVersions.generater   z$v1/{+parent}/schemaVersions:generate3googleCloudDocumentaiV1GenerateSchemaVersionRequest?DocumentaiProjectsLocationsSchemasSchemaVersionsGenerateRequest4GoogleCloudDocumentaiV1GenerateSchemaVersionResponseFrU   ra   rc   r8   r6   rd   rC    s4    X%;%;pQ zJ<K[Q&r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets a schema version.

Args:
  request: (DocumentaiProjectsLocationsSchemasSchemaVersionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1SchemaVersion) The response message.
r   rD   rF   rI   s       r6   r   >DocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.Get  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NrG  r   z8documentai.projects.locations.schemas.schemaVersions.getrP   rQ   rR   :DocumentaiProjectsLocationsSchemasSchemaVersionsGetRequestrB  FrU   ra   rc   r8   r6   rd   rC    s4     6 6zLxH"VA!r8   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists SchemaVersions.

Args:
  request: (DocumentaiProjectsLocationsSchemasSchemaVersionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ListSchemaVersionsResponse) The response message.
r   rD   rF   rI   s       r6   r   ?DocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.List  r   r8   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr>  r   z9documentai.projects.locations.schemas.schemaVersions.listr   r   r   r?  rR   ;DocumentaiProjectsLocationsSchemasSchemaVersionsListRequest1GoogleCloudDocumentaiV1ListSchemaVersionsResponseFrU   ra   rc   r8   r6   rd   rC    s9    !7!7gM zJ +.3WN"r8   c                 D    U R                  S5      nU R                  X1US9$ )a>  Updates a schema version. Editable fields are: - `display_name` - `labels`.

Args:
  request: (DocumentaiProjectsLocationsSchemasSchemaVersionsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1SchemaVersion) The response message.
PatchrD   rF   rI   s       r6   rZ  @DocumentaiV1.ProjectsLocationsSchemasSchemaVersionsService.Patch  r   r8   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NrG  PATCHz:documentai.projects.locations.schemas.schemaVersions.patchrP   
updateMaskrQ   r@  <DocumentaiProjectsLocationsSchemasSchemaVersionsPatchRequestrB  FrU   ra   rc   r8   r6   rd   rC    s6    ("8"8zNxH"^"<XA#r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r
  rm   rC   rJ  r   r   rZ  rn   ro   rp   s   @r6   r)   r8  V  sm    S7E
8F8F8H8C8D8Er8   r)   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SrU =r$ ),DocumentaiV1.ProjectsLocationsSchemasServicei  z:Service class for the projects_locations_schemas resource.r,   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r+   r   r>   r?   s     r6   r   5DocumentaiV1.ProjectsLocationsSchemasService.__init__  s"    L88$HPdr8   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a schema.

Args:
  request: (DocumentaiProjectsLocationsSchemasCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1NextSchema) The response message.
r
  rD   rF   rI   s       r6   r
  3DocumentaiV1.ProjectsLocationsSchemasService.Create  rM   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N8v1/projects/{projectsId}/locations/{locationsId}/schemasr{   z,documentai.projects.locations.schemas.creater   v1/{+parent}/schemas!googleCloudDocumentaiV1NextSchema/DocumentaiProjectsLocationsSchemasCreateRequest!GoogleCloudDocumentaiV1NextSchemaFrU   ra   rc   r8   r6   rd   5DocumentaiV1.ProjectsLocationsSchemasService.<lambda>  s4    8#9#9L@ zJ,9K>$r8   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a schema.

Args:
  request: (DocumentaiProjectsLocationsSchemasDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
rC   rD   rF   rI   s       r6   rC   3DocumentaiV1.ProjectsLocationsSchemasService.Delete'  rM   r8   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NDv1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}rO   z,documentai.projects.locations.schemas.deleterP   forcerQ   rR   /DocumentaiProjectsLocationsSchemasDeleteRequestr   FrU   ra   rc   r8   r6   rd   rl  4  s6    8#9#9X@xHY"K7$r8   c                 D    U R                  S5      nU R                  X1US9$ )zGets a schema.

Args:
  request: (DocumentaiProjectsLocationsSchemasGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1NextSchema) The response message.
r   rD   rF   rI   s       r6   r   0DocumentaiV1.ProjectsLocationsSchemasService.GetB  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrp  r   z)documentai.projects.locations.schemas.getrP   rQ   rR   ,DocumentaiProjectsLocationsSchemasGetRequestrk  FrU   ra   rc   r8   r6   rd   rl  O  s4     6 6X=xH"H>!r8   c                 D    U R                  S5      nU R                  X1US9$ )zLists Schemas.

Args:
  request: (DocumentaiProjectsLocationsSchemasListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1ListSchemasResponse) The response message.
r   rD   rF   rI   s       r6   r   1DocumentaiV1.ProjectsLocationsSchemasService.List]  r   r8   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nrg  r   z*documentai.projects.locations.schemas.listr   r   r   rh  rR   -DocumentaiProjectsLocationsSchemasListRequest*GoogleCloudDocumentaiV1ListSchemasResponseFrU   ra   rc   r8   r6   rd   rl  j  s9    !7!7L> zJ +.,IG"r8   c                 D    U R                  S5      nU R                  X1US9$ )a%  Updates a schema. Editable fields are: - `display_name` - `labels`.

Args:
  request: (DocumentaiProjectsLocationsSchemasPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1NextSchema) The response message.
rZ  rD   rF   rI   s       r6   rZ  2DocumentaiV1.ProjectsLocationsSchemasService.Patchx  r   r8   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nrp  r]  z+documentai.projects.locations.schemas.patchrP   r^  rQ   ri  .DocumentaiProjectsLocationsSchemasPatchRequestrk  FrU   ra   rc   r8   r6   rd   rl    s6    ("8"8X?xH"^"9J>#r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r
  rm   rC   r   r   rZ  rn   ro   rp   s   @r6   r+   ra    s^    D(E
8F8F8C8D8Er8   r+   c                   ~   ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SrU =r$ )%DocumentaiV1.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r.   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r-   r   r>   r?   s     r6   r   .DocumentaiV1.ProjectsLocationsService.__init__  s"    L114A&Idr8   c                 D    U R                  S5      nU R                  X1US9$ )a^  Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated.

Args:
  request: (DocumentaiProjectsLocationsFetchProcessorTypesRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDocumentaiV1FetchProcessorTypesResponse) The response message.
FetchProcessorTypesrD   rF   rI   s       r6   r  9DocumentaiV1.ProjectsLocationsService.FetchProcessorTypes  s0     ##$9:f__
  8 8r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzDv1/projects/{projectsId}/locations/{locationsId}:fetchProcessorTypesr   z1documentai.projects.locations.fetchProcessorTypesr   z v1/{+parent}:fetchProcessorTypesrR   5DocumentaiProjectsLocationsFetchProcessorTypesRequest2GoogleCloudDocumentaiV1FetchProcessorTypesResponseFrU   ra   rc   r8   r6   rd   .DocumentaiV1.ProjectsLocationsService.<lambda>  s4    0F0FXE zJ8QO1r8   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (DocumentaiProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudLocationLocation) The response message.
r   rD   rF   rI   s       r6   r   )DocumentaiV1.ProjectsLocationsService.Get  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz0v1/projects/{projectsId}/locations/{locationsId}r   z!documentai.projects.locations.getrP   rQ   rR   %DocumentaiProjectsLocationsGetRequestGoogleCloudLocationLocationFrU   ra   rc   r8   r6   rd   r    s4     6 6D5xH"A8!r8   c                 D    U R                  S5      nU R                  X1US9$ )a"  Lists information about the supported locations for this service.

Args:
  request: (DocumentaiProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudLocationListLocationsResponse) The response message.
r   rD   rF   rI   s       r6   r   *DocumentaiV1.ProjectsLocationsService.List  r   r8   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz"v1/projects/{projectsId}/locationsr   z"documentai.projects.locations.listrP   )extraLocationTypesr   r   r   zv1/{+name}/locationsrR   &DocumentaiProjectsLocationsListRequest(GoogleCloudLocationListLocationsResponseFrU   ra   rc   r8   r6   rd   r    s4    !7!766xHN,BE"r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r  rm   r   r   rn   ro   rp   s   @r6   r-   r    sA    < E
8)%8C8Dr8   r-   c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	&DocumentaiV1.ProjectsOperationsServicei  z3Service class for the projects_operations resource.r0   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r/   r   r>   r?   s     r6   r   /DocumentaiV1.ProjectsOperationsService.__init__  s"    L22DB6Jdr8   c                 D    U R                  S5      nU R                  X1US9$ )an  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Args:
  request: (DocumentaiProjectsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
r   rD   rF   rI   s       r6   r   *DocumentaiV1.ProjectsOperationsService.Get  r   r8   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz2v1/projects/{projectsId}/operations/{operationsId}r   z"documentai.projects.operations.getrP   rQ   rR   &DocumentaiProjectsOperationsGetRequestr   FrU   ra   rc   r8   r6   rd   /DocumentaiV1.ProjectsOperationsService.<lambda>  s4     6 6F6xH"B7!r8   rf   r=   )rg   rh   ri   rj   rk   rl   r   r   rm   rn   ro   rp   s   @r6   r/   r    s"    =!E
8Cr8   r/   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )DocumentaiV1.ProjectsServicei  z(Service class for the projects resource.r2   c                 N   > [         [        R                  U ]  U5        0 U l        g r=   )r   r   r1   r   r>   r?   s     r6   r   %DocumentaiV1.ProjectsService.__init__  s"    L(($8@dr8   rf   )	rg   rh   ri   rj   rk   rl   r   rn   ro   rp   s   @r6   r1   r    s    2E r8   r1   )r   r2   r.   r   r    r(   r"   r&   r$   r,   r*   r0   )rR   NTNNFFNNNN)#rg   rh   ri   rj   rk   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   r!   r#   r%   r'   r)   r+   r-   r/   r1   rn   ro   rp   s   @r6   r   r   
   sN   C/1(;-(=>'(*"."+%,()-6:/4<@?C	/8#(11 #JY8+B+B Yv>x/F/F >@#H<S<S #J>xG^G^ >@{H<S<S {z{8+B+B {zjh6M6M jXO(?(? ObY!8!8 Yv#("9"9 #J//  r8   r   N)
rk   
__future__r   apitools.base.pyr   3googlecloudsdk.generated_clients.apis.documentai.v1r   r  BaseApiClientr   rc   r8   r6   <module>r     s'    9 ' % bQ8)) Qr8   