
    X=                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z:Generated client library for videointelligence version v1.    )absolute_import)base_api)videointelligence_v1_messagesc                     ^  \ 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rU =r$ )VideointelligenceV1
   zBGenerated client library for service videointelligence version v1.z)https://videointelligence.googleapis.com/z.https://videointelligence.mtls.googleapis.com/videointelligencez.https://www.googleapis.com/auth/cloud-platformv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                   > 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        g)z&Create a new videointelligence handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__,OperationsProjectsLocationsOperationsService(operations_projects_locations_operations"OperationsProjectsLocationsServiceoperations_projects_locationsOperationsProjectsServiceoperations_projectsOperationsService
operations"ProjectsLocationsOperationsServiceprojects_locations_operationsProjectsLocationsServiceprojects_locationsProjectsServiceprojectsVideosServicevideos)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               ]lib/googlecloudsdk/generated_clients/apis/videointelligence/v1/videointelligence_v1_client.pyr   VideointelligenceV1.__init__   s     
C	
t-'%)3 7+ . - 594e4efj4kD1)-)P)PQU)VD&#==dCD,,T2DO)-)P)PQU)VD&";;DAD((.DM$$T*DK    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$ )@VideointelligenceV1.OperationsProjectsLocationsOperationsService3   zHService class for the operations_projects_locations_operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr+   clientr-   s     r.   r   IVideointelligenceV1.OperationsProjectsLocationsOperationsService.__init__8   s$    LLd\]cddr0   c                 D    U R                  S5      nU R                  X1US9$ )a4  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: (VideointelligenceOperationsProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
Cancelglobal_paramsGetMethodConfig
_RunMethodr+   requestr=   configs       r.   r;   GVideointelligenceV1.OperationsProjectsLocationsOperationsService.Cancel=   /     ##H-f__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz\v1/operations/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTzAvideointelligence.operations.projects.locations.operations.cancelnamezv1/operations/{+name}:cancel CVideointelligenceOperationsProjectsLocationsOperationsCancelRequest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 r0   r.   <lambda>IVideointelligenceV1.OperationsProjectsLocationsOperationsService.<lambda>J   s4    8#9#9pUxH4_0$r0   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: (VideointelligenceOperationsProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
Deleter<   r>   rA   s       r.   r^   GVideointelligenceV1.OperationsProjectsLocationsOperationsService.DeleteX   rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NUv1/operations/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}DELETEzAvideointelligence.operations.projects.locations.operations.deleterH   v1/operations/{+name}rI   CVideointelligenceOperationsProjectsLocationsOperationsDeleteRequestrK   FrL   rX   rZ   r0   r.   r[   r\   e   s4    8#9#9iUxH-_0$r0   c                 D    U R                  S5      nU R                  X1US9$ )a  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: (VideointelligenceOperationsProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
Getr<   r>   rA   s       r.   rf   DVideointelligenceV1.OperationsProjectsLocationsOperationsService.Gets   /     ##E*f__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nra   GETz>videointelligence.operations.projects.locations.operations.getrH   rc   rI   @VideointelligenceOperationsProjectsLocationsOperationsGetRequestGoogleLongrunningOperationFrL   rX   rZ   r0   r.   r[   r\      s4     6 6iRxH-\7!r0   r6   r5   )__name__
__module____qualname____firstlineno____doc___NAMEr   r;   method_configr^   rf   __static_attributes____classcell__r-   s   @r.   r   r2   3   s@    R6E
8F8F8Cr0   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )6VideointelligenceV1.OperationsProjectsLocationsService   z=Service class for the operations_projects_locations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r   r   r6   r7   s     r.   r   ?VideointelligenceV1.OperationsProjectsLocationsService.__init__   $    BBDRSYZdr0   rm   	rn   ro   rp   rq   rr   rs   r   ru   rv   rw   s   @r.   r   ry      s    G+E r0   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )-VideointelligenceV1.OperationsProjectsService   z3Service class for the operations_projects resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r   r   r6   r7   s     r.   r   6VideointelligenceV1.OperationsProjectsService.__init__   s#    994I&Qdr0   rm   r~   rw   s   @r.   r   r      s    =!E r0   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )%VideointelligenceV1.OperationsService   z*Service class for the operations resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r!   r   r6   r7   s     r.   r   .VideointelligenceV1.OperationsService.__init__   s#    114A&Idr0   rm   r~   rw   s   @r.   r!   r      s    4E r0   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rU =r$ )6VideointelligenceV1.ProjectsLocationsOperationsService   z=Service class for the projects_locations_operations resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r#   r   r6   r7   s     r.   r   ?VideointelligenceV1.ProjectsLocationsOperationsService.__init__   r}   r0   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: (VideointelligenceProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
r;   r<   r>   rA   s       r.   r;   =VideointelligenceV1.ProjectsLocationsOperationsService.Cancel   rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzQv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelrG   z6videointelligence.projects.locations.operations.cancelrH   zv1/{+name}:cancel'googleLongrunningCancelOperationRequest9VideointelligenceProjectsLocationsOperationsCancelRequestrK   FrL   rX   rZ   r0   r.   r[   ?VideointelligenceV1.ProjectsLocationsOperationsService.<lambda>   s4    8#9#9eJxH)?U0$r0   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: (VideointelligenceProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
r^   r<   r>   rA   s       r.   r^   =VideointelligenceV1.ProjectsLocationsOperationsService.Delete   rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NJv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}rb   z6videointelligence.projects.locations.operations.deleterH   
v1/{+name}rI   9VideointelligenceProjectsLocationsOperationsDeleteRequestrK   FrL   rX   rZ   r0   r.   r[   r      s4    8#9#9^JxH"U0$r0   c                 D    U R                  S5      nU R                  X1US9$ )a~  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: (VideointelligenceProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
rf   r<   r>   rA   s       r.   rf   :VideointelligenceV1.ProjectsLocationsOperationsService.Get   rh   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rj   z3videointelligence.projects.locations.operations.getrH   r   rI   6VideointelligenceProjectsLocationsOperationsGetRequestrl   FrL   rX   rZ   r0   r.   r[   r      s4     6 6^GxH"R7!r0   c                 D    U R                  S5      nU R                  X1US9$ )ax  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (VideointelligenceProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningListOperationsResponse) The response message.
Listr<   r>   rA   s       r.   r   ;VideointelligenceV1.ProjectsLocationsOperationsService.List  s/     ##F+f__
  8 8r0   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz;v1/projects/{projectsId}/locations/{locationsId}/operationsrj   z4videointelligence.projects.locations.operations.listrH   )filterpageSize	pageTokenreturnPartialSuccesszv1/{+name}/operationsrI   7VideointelligenceProjectsLocationsOperationsListRequest'GoogleLongrunningListOperationsResponseFrL   rX   rZ   r0   r.   r[   r     s4    !7!7OHxHP-SD"r0   rm   r5   )rn   ro   rp   rq   rr   rs   r   r;   rt   r^   rf   r   ru   rv   rw   s   @r.   r#   r      sO    G+E
8F8F8C8Dr0   r#   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ ),VideointelligenceV1.ProjectsLocationsServicei"  z2Service class for the projects_locations resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r%   r   r6   r7   s     r.   r   5VideointelligenceV1.ProjectsLocationsService.__init__'  s#    88$HPdr0   rm   r~   rw   s   @r.   r%   r   "  s    < E r0   r%   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )#VideointelligenceV1.ProjectsServicei,  z(Service class for the projects resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r'   r   r6   r7   s     r.   r   ,VideointelligenceV1.ProjectsService.__init__1  s#    //?Gdr0   rm   r~   rw   s   @r.   r'   r   ,  s    2E r0   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
$ )	!VideointelligenceV1.VideosServicei6  z&Service class for the videos resource.r*   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r)   r   r6   r7   s     r.   r   *VideointelligenceV1.VideosService.__init__;  s#    --t=fEdr0   c                 D    U R                  S5      nU R                  X1US9$ )a  Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).

Args:
  request: (GoogleCloudVideointelligenceV1AnnotateVideoRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleLongrunningOperation) The response message.
Annotater<   r>   rA   s       r.   r   *VideointelligenceV1.VideosService.Annotate@  s/     ##J/f__
  8 8r0   c                  <    [         R                  " SS/ / / SSSSSS9
$ )	NrG   z!videointelligence.videos.annotatezv1/videos:annotatez	<request>2GoogleCloudVideointelligenceV1AnnotateVideoRequestrl   F)
rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rZ   r0   r.   r[   *VideointelligenceV1.VideosService.<lambda>M  s-    X%;%;5*!N7&r0   rm   r5   )rn   ro   rp   rq   rr   rs   r   r   rt   ru   rv   rw   s   @r.   r)   r   6  s"    0E
8Hr0   r)   )r"   r    r   r   r(   r&   r$   r*   )rI   NTNNFFNNNN)rn   ro   rp   rq   rr   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)   ru   rv   rw   s   @r.   r   r   
   s    J/8(B- (=>'(*"."+,,()-6:/4<@?C	+0YX5L5L Yv8+B+B ("9"9 (11 t8+B+B tl!8!8 // "h-- " "r0   r   N)
rr   
__future__r   apitools.base.pyr   :googlecloudsdk.generated_clients.apis.videointelligence.v1r   r   BaseApiClientr   rZ   r0   r.   <module>r      s'    @ ' % pN(00 Nr0   