
    |                     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 speech version v2.    )absolute_import)base_api)speech_v2_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rU =r$ )SpeechV2
   z7Generated client library for service speech version v2.zhttps://speech.googleapis.com/z#https://speech.mtls.googleapis.com/speechz.https://www.googleapis.com/auth/cloud-platformv2	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        g)zCreate a new speech handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__ProjectsLocationsConfigServiceprojects_locations_config%ProjectsLocationsCustomClassesService projects_locations_customClasses"ProjectsLocationsOperationsServiceprojects_locations_operations"ProjectsLocationsPhraseSetsServiceprojects_locations_phraseSets#ProjectsLocationsRecognizersServiceprojects_locations_recognizersProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Glib/googlecloudsdk/generated_clients/apis/speech/v2/speech_v2_client.pyr   SpeechV2.__init__   s     
C	(D"'%)3 7+ # - &*%H%H%ND",0,V,VW[,\D))-)P)PQU)VD&)-)P)PQU)VD&*.*R*RSW*XD'";;DAD((.DM    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$ )'SpeechV2.ProjectsLocationsConfigService2   z9Service class for the projects_locations_config resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr)   clientr+   s     r,   r   0SpeechV2.ProjectsLocationsConfigService.__init__7   s"    H33TCFKdr.   c                 D    U R                  S5      nU R                  X1US9$ )zReturns the requested Config.

Args:
  request: (SpeechProjectsLocationsConfigGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Config) The response message.
Getglobal_paramsGetMethodConfig
_RunMethodr)   requestr;   configs       r,   r9   +SpeechV2.ProjectsLocationsConfigService.Get<   /     ##E*f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N7v2/projects/{projectsId}/locations/{locationsId}/configGETz$speech.projects.locations.config.getname
v2/{+name} 'SpeechProjectsLocationsConfigGetRequestConfigF	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 r.   r,   <lambda>0SpeechV2.ProjectsLocationsConfigService.<lambda>I   s4     6 6K8xH"C#!r.   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates the Config.

Args:
  request: (SpeechProjectsLocationsConfigUpdateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Config) The response message.
Updater:   r<   r?   s       r,   r^   .SpeechV2.ProjectsLocationsConfigService.UpdateW   /     ##H-f__
  8 8r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NrE   PATCHz'speech.projects.locations.config.updaterG   
updateMaskrH   rA   *SpeechProjectsLocationsConfigUpdateRequestrK   FrL   rX   rZ   r.   r,   r[   r\   d   s6    8#9#9K;xH"^"F#$r.   r4   r3   )__name__
__module____qualname____firstlineno____doc___NAMEr   r9   method_configr^   __static_attributes____classcell__r+   s   @r,   r   r0   2   s1    C'E
8C8Fr.   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$ ).SpeechV2.ProjectsLocationsCustomClassesServicer   z@Service class for the projects_locations_customClasses resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r   r   r4   r5   s     r,   r   7SpeechV2.ProjectsLocationsCustomClassesService.__init__w   s"    H::DJ6Rdr.   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a CustomClass.

Args:
  request: (SpeechProjectsLocationsCustomClassesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Creater:   r<   r?   s       r,   rv   5SpeechV2.ProjectsLocationsCustomClassesService.Create|   r`   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N>v2/projects/{projectsId}/locations/{locationsId}/customClassesPOSTz.speech.projects.locations.customClasses.createparentcustomClassIdvalidateOnlyv2/{+parent}/customClassescustomClass1SpeechProjectsLocationsCustomClassesCreateRequest	OperationFrL   rX   rZ   r.   r,   r[   7SpeechV2.ProjectsLocationsCustomClassesService.<lambda>   s9    8#9#9RB zJ%~62#M&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes the CustomClass.

Args:
  request: (SpeechProjectsLocationsCustomClassesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Deleter:   r<   r?   s       r,   r   5SpeechV2.ProjectsLocationsCustomClassesService.Delete   r`   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NPv2/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}DELETEz.speech.projects.locations.customClasses.deleterG   allowMissingetagr}   rH   rI   1SpeechProjectsLocationsCustomClassesDeleteRequestr   FrL   rX   rZ   r.   r,   r[   r      s4    8#9#9dBxH="M&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zReturns the requested CustomClass.

Args:
  request: (SpeechProjectsLocationsCustomClassesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CustomClass) The response message.
r9   r:   r<   r?   s       r,   r9   2SpeechV2.ProjectsLocationsCustomClassesService.Get   rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rF   z+speech.projects.locations.customClasses.getrG   rH   rI   .SpeechProjectsLocationsCustomClassesGetRequestCustomClassFrL   rX   rZ   r.   r,   r[   r      s4     6 6d?xH"J(!r.   c                 D    U R                  S5      nU R                  X1US9$ )zLists CustomClasses.

Args:
  request: (SpeechProjectsLocationsCustomClassesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListCustomClassesResponse) The response message.
Listr:   r<   r?   s       r,   r   3SpeechV2.ProjectsLocationsCustomClassesService.List   /     ##F+f__
  8 8r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nry   rF   z,speech.projects.locations.customClasses.listr{   pageSize	pageTokenshowDeletedr~   rI   /SpeechProjectsLocationsCustomClassesListRequestListCustomClassesResponseFrL   rX   rZ   r.   r,   r[   r      s4    !7!7R@ zJ=2K6"r.   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates the CustomClass.

Args:
  request: (SpeechProjectsLocationsCustomClassesPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Patchr:   r<   r?   s       r,   r   4SpeechV2.ProjectsLocationsCustomClassesService.Patch   /     ##G,f__
  8 8r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rb   z-speech.projects.locations.customClasses.patchrG   rc   r}   rH   r   0SpeechProjectsLocationsCustomClassesPatchRequestr   FrL   rX   rZ   r.   r,   r[   r      s9    ("8"8dAxH"N3"#L&#r.   c                 D    U R                  S5      nU R                  X1US9$ )zUndeletes the CustomClass.

Args:
  request: (UndeleteCustomClassRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Undeleter:   r<   r?   s       r,   r   7SpeechV2.ProjectsLocationsCustomClassesService.Undelete  /     ##J/f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzYv2/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}:undeleterz   z0speech.projects.locations.customClasses.undeleterG   v2/{+name}:undelete	<request>UndeleteCustomClassRequestr   FrL   rX   rZ   r.   r,   r[   r     s4    X%;%;mDxH+!6&&r.   re   r3   rf   rg   rh   ri   rj   rk   r   rv   rl   r   r9   r   r   r   rm   rn   ro   s   @r,   r   rq   r   sm    J.E
8F8F8C8D8E8Hr.   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$ )+SpeechV2.ProjectsLocationsOperationsServicei  z=Service class for the projects_locations_operations resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r   r   r4   r5   s     r,   r   4SpeechV2.ProjectsLocationsOperationsService.__init__#  "    H77GOdr.   c                 D    U R                  S5      nU R                  X1US9$ )ab  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: (SpeechProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r9   r:   r<   r?   s       r,   r9   /SpeechV2.ProjectsLocationsOperationsService.Get(  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzJv2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}rF   z(speech.projects.locations.operations.getrG   rH   rI   +SpeechProjectsLocationsOperationsGetRequestr   FrL   rX   rZ   r.   r,   r[   4SpeechV2.ProjectsLocationsOperationsService.<lambda>5  4     6 6^<xH"G&!r.   c                 D    U R                  S5      nU R                  X1US9$ )a\  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (SpeechProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
r   r:   r<   r?   s       r,   r   0SpeechV2.ProjectsLocationsOperationsService.ListC  r   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz;v2/projects/{projectsId}/locations/{locationsId}/operationsrF   z)speech.projects.locations.operations.listrG   )filterr   r   returnPartialSuccesszv2/{+name}/operationsrI   ,SpeechProjectsLocationsOperationsListRequestListOperationsResponseFrL   rX   rZ   r.   r,   r[   r   P  s4    !7!7O=xHP-H3"r.   re   r3   rf   rg   rh   ri   rj   rk   r   r9   rl   r   rm   rn   ro   s   @r,   r   r     s1    G+E
8C8Dr.   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$ )+SpeechV2.ProjectsLocationsPhraseSetsServicei^  z=Service class for the projects_locations_phraseSets resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r!   r   r4   r5   s     r,   r   4SpeechV2.ProjectsLocationsPhraseSetsService.__init__c  r   r.   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a PhraseSet.

Args:
  request: (SpeechProjectsLocationsPhraseSetsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rv   r:   r<   r?   s       r,   rv   2SpeechV2.ProjectsLocationsPhraseSetsService.Createh  r`   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N;v2/projects/{projectsId}/locations/{locationsId}/phraseSetsrz   z+speech.projects.locations.phraseSets.creater{   phraseSetIdr}   v2/{+parent}/phraseSets	phraseSet.SpeechProjectsLocationsPhraseSetsCreateRequestr   FrL   rX   rZ   r.   r,   r[   4SpeechV2.ProjectsLocationsPhraseSetsService.<lambda>u  s9    8#9#9O? zJ#^4/!J&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes the PhraseSet.

Args:
  request: (SpeechProjectsLocationsPhraseSetsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   2SpeechV2.ProjectsLocationsPhraseSetsService.Delete  r`   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NJv2/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}r   z+speech.projects.locations.phraseSets.deleterG   r   rH   rI   .SpeechProjectsLocationsPhraseSetsDeleteRequestr   FrL   rX   rZ   r.   r,   r[   r     s4    8#9#9^?xH="J&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zReturns the requested PhraseSet.

Args:
  request: (SpeechProjectsLocationsPhraseSetsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PhraseSet) The response message.
r9   r:   r<   r?   s       r,   r9   /SpeechV2.ProjectsLocationsPhraseSetsService.Get  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rF   z(speech.projects.locations.phraseSets.getrG   rH   rI   +SpeechProjectsLocationsPhraseSetsGetRequest	PhraseSetFrL   rX   rZ   r.   r,   r[   r     r   r.   c                 D    U R                  S5      nU R                  X1US9$ )zLists PhraseSets.

Args:
  request: (SpeechProjectsLocationsPhraseSetsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListPhraseSetsResponse) The response message.
r   r:   r<   r?   s       r,   r   0SpeechV2.ProjectsLocationsPhraseSetsService.List  r   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr   rF   z)speech.projects.locations.phraseSets.listr{   r   r   rI   ,SpeechProjectsLocationsPhraseSetsListRequestListPhraseSetsResponseFrL   rX   rZ   r.   r,   r[   r     s4    !7!7O= zJ=/H3"r.   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates the PhraseSet.

Args:
  request: (SpeechProjectsLocationsPhraseSetsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   1SpeechV2.ProjectsLocationsPhraseSetsService.Patch  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rb   z*speech.projects.locations.phraseSets.patchrG   rc   r}   rH   r   -SpeechProjectsLocationsPhraseSetsPatchRequestr   FrL   rX   rZ   r.   r,   r[   r     s9    ("8"8^>xH"N3"!I&#r.   c                 D    U R                  S5      nU R                  X1US9$ )zUndeletes the PhraseSet.

Args:
  request: (UndeletePhraseSetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   4SpeechV2.ProjectsLocationsPhraseSetsService.Undelete  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzSv2/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}:undeleterz   z-speech.projects.locations.phraseSets.undeleterG   r   r   UndeletePhraseSetRequestr   FrL   rX   rZ   r.   r,   r[   r     s4    X%;%;gAxH+!4&&r.   re   r3   r   ro   s   @r,   r!   r   ^  sm    G+E
8F8F8C8D8E8Hr.   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rU =r$ ),SpeechV2.ProjectsLocationsRecognizersServicei
  z>Service class for the projects_locations_recognizers resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r#   r   r4   r5   s     r,   r   5SpeechV2.ProjectsLocationsRecognizersService.__init__  s"    H88$HPdr.   c                 D    U R                  S5      nU R                  X1US9$ )ag  Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.

Args:
  request: (BatchRecognizeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
BatchRecognizer:   r<   r?   s       r,   r   ;SpeechV2.ProjectsLocationsRecognizersService.BatchRecognize  s0     ##$45f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz[v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}:batchRecognizerz   z4speech.projects.locations.recognizers.batchRecognize
recognizerzv2/{+recognizer}:batchRecognizer   BatchRecognizeRequestr   FrL   rX   rZ   r.   r,   r[   5SpeechV2.ProjectsLocationsRecognizersService.<lambda>!  s4    8+A+AoH$~!N7!1&,r.   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a Recognizer.

Args:
  request: (SpeechProjectsLocationsRecognizersCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rv   r:   r<   r?   s       r,   rv   3SpeechV2.ProjectsLocationsRecognizersService.Create/  r`   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N<v2/projects/{projectsId}/locations/{locationsId}/recognizersrz   z,speech.projects.locations.recognizers.creater{   recognizerIdr}   v2/{+parent}/recognizersr   /SpeechProjectsLocationsRecognizersCreateRequestr   FrL   rX   rZ   r.   r,   r[   r   <  s9    8#9#9P@ zJ$n50"K&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes the Recognizer.

Args:
  request: (SpeechProjectsLocationsRecognizersDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   3SpeechV2.ProjectsLocationsRecognizersService.DeleteJ  r`   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NLv2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}r   z,speech.projects.locations.recognizers.deleterG   r   rH   rI   /SpeechProjectsLocationsRecognizersDeleteRequestr   FrL   rX   rZ   r.   r,   r[   r   W  s4    8#9#9`@xH="K&$r.   c                 D    U R                  S5      nU R                  X1US9$ )a*  Returns the requested Recognizer. Fails with NOT_FOUND if the requested Recognizer doesn't exist.

Args:
  request: (SpeechProjectsLocationsRecognizersGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Recognizer) The response message.
r9   r:   r<   r?   s       r,   r9   0SpeechV2.ProjectsLocationsRecognizersService.Gete  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rF   z)speech.projects.locations.recognizers.getrG   rH   rI   ,SpeechProjectsLocationsRecognizersGetRequest
RecognizerFrL   rX   rZ   r.   r,   r[   r   r  s4     6 6`=xH"H'!r.   c                 D    U R                  S5      nU R                  X1US9$ )zLists Recognizers.

Args:
  request: (SpeechProjectsLocationsRecognizersListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListRecognizersResponse) The response message.
r   r:   r<   r?   s       r,   r   1SpeechV2.ProjectsLocationsRecognizersService.List  r   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr   rF   z*speech.projects.locations.recognizers.listr{   r   r   rI   -SpeechProjectsLocationsRecognizersListRequestListRecognizersResponseFrL   rX   rZ   r.   r,   r[   r     s4    !7!7P> zJ=0I4"r.   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates the Recognizer.

Args:
  request: (SpeechProjectsLocationsRecognizersPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   2SpeechV2.ProjectsLocationsRecognizersService.Patch  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rb   z+speech.projects.locations.recognizers.patchrG   rc   r}   rH   r   .SpeechProjectsLocationsRecognizersPatchRequestr   FrL   rX   rZ   r.   r,   r[   r     s9    ("8"8`?xH"N3""J&#r.   c                 D    U R                  S5      nU R                  X1US9$ )a;  Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

Args:
  request: (SpeechProjectsLocationsRecognizersRecognizeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (RecognizeResponse) The response message.
	Recognizer:   r<   r?   s       r,   r	  6SpeechV2.ProjectsLocationsRecognizersService.Recognize  s/     ##K0f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzVv2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}:recognizerz   z/speech.projects.locations.recognizers.recognizer   zv2/{+recognizer}:recognizerecognizeRequest2SpeechProjectsLocationsRecognizersRecognizeRequestRecognizeResponseFrL   rX   rZ   r.   r,   r[   r     s4    h&<&<jC$~!N2(N.'r.   c                 D    U R                  S5      nU R                  X1US9$ )zUndeletes the Recognizer.

Args:
  request: (UndeleteRecognizerRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   5SpeechV2.ProjectsLocationsRecognizersService.Undelete  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzUv2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}:undeleterz   z.speech.projects.locations.recognizers.undeleterG   r   r   UndeleteRecognizerRequestr   FrL   rX   rZ   r.   r,   r[   r     s4    X%;%;iBxH+!5&&r.   re   r3   )rf   rg   rh   ri   rj   rk   r   r   rl   rv   r   r9   r   r   r	  r   rm   rn   ro   s   @r,   r#   r   
  s    H,E
8$N 8F8F8C8D8E8I8Hr.   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$ )!SpeechV2.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r%   r   r4   r5   s     r,   r   *SpeechV2.ProjectsLocationsService.__init__  s"    H--t=fEdr.   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (SpeechProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
r9   r:   r<   r?   s       r,   r9   %SpeechV2.ProjectsLocationsService.Get  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz0v2/projects/{projectsId}/locations/{locationsId}rF   zspeech.projects.locations.getrG   rH   rI   !SpeechProjectsLocationsGetRequestLocationFrL   rX   rZ   r.   r,   r[   *SpeechV2.ProjectsLocationsService.<lambda>  s4     6 6D1xH"=%!r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists information about the supported locations for this service.

Args:
  request: (SpeechProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
r   r:   r<   r?   s       r,   r   &SpeechV2.ProjectsLocationsService.List  r   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz"v2/projects/{projectsId}/locationsrF   zspeech.projects.locations.listrG   )extraLocationTypesr   r   r   zv2/{+name}/locationsrI   "SpeechProjectsLocationsListRequestListLocationsResponseFrL   rX   rZ   r.   r,   r[   r    s4    !7!762xHN,>2"r.   re   r3   r   ro   s   @r,   r%   r    s1    < E
8C8Dr.   r%   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )SpeechV2.ProjectsServicei,  z(Service class for the projects resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r'   r   r4   r5   s     r,   r   !SpeechV2.ProjectsService.__init__1  s"    H$$d4V<dr.   re   )	rf   rg   rh   ri   rj   rk   r   rm   rn   ro   s   @r,   r'   r$  ,  s    2E r.   r'   )r(   r&   r   r   r    r"   r$   )rI   NTNNFFNNNN)rf   rg   rh   ri   rj   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'   rm   rn   ro   s   @r,   r   r   
   s    ?/-(7-(=>'(*"."+!,()-6:/4<@?C	/.>x'>'> >@jh.E.E jX>8+B+B >@j8+B+B jX`H,C,C `D>!8!8 >@//  r.   r   N)
rj   
__future__r   apitools.base.pyr   /googlecloudsdk.generated_clients.apis.speech.v2r   r'  BaseApiClientr   rZ   r.   r,   <module>r8     s'    5 ' % Zjx%% jr.   