
    dH                     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 v1.    )absolute_import)base_api)speech_v1_messagesc                   h  ^  \ 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rU =r$ )SpeechV1
   z7Generated client library for service speech version v1.zhttps://speech.googleapis.com/z#https://speech.mtls.googleapis.com/speechz.https://www.googleapis.com/auth/cloud-platformv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                 h  > 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        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__OperationsService
operations%ProjectsLocationsCustomClassesService projects_locations_customClasses"ProjectsLocationsPhraseSetsServiceprojects_locations_phraseSetsProjectsLocationsServiceprojects_locationsProjectsServiceprojectsSpeechServicer	   )selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Glib/googlecloudsdk/generated_clients/apis/speech/v1/speech_v1_client.pyr   SpeechV1.__init__   s     
C	(D"'%)3 7+ # - ,,T2DO,0,V,VW[,\D))-)P)PQU)VD&";;DAD((.DM$$T*DK    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$ )SpeechV1.OperationsService1   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r&   clientr(   s     r)   r   #SpeechV1.OperationsService.__init__6   s"    H&&6v>dr+   c                 D    U R                  S5      nU R                  X1US9$ )aQ  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: (SpeechOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Getglobal_paramsGetMethodConfig
_RunMethodr&   requestr8   configs       r)   r6   SpeechV1.OperationsService.Get;   /     ##E*f__
  8 8r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzv1/operations/{operationsId}GETzspeech.operations.getnamezv1/operations/{+name} SpeechOperationsGetRequest	OperationF	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>#SpeechV1.OperationsService.<lambda>H   s4     6 60)xH-6&!r+   c                 D    U R                  S5      nU R                  X1US9$ )aK  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (SpeechOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
Listr7   r9   r<   s       r)   rY   SpeechV1.OperationsService.ListV   /     ##F+f__
  8 8r+   c                  @    [         R                  " SS/ / / SQSSSSSS	9
$ )
NrB   zspeech.operations.list)filterrC   pageSize	pageTokenreturnPartialSuccesszv1/operationsrD   SpeechOperationsListRequestListOperationsResponseF
rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rU   r+   r)   rV   rW   c   s-    !7!7*X%73"r+   r1   r0   )__name__
__module____qualname____firstlineno____doc___NAMEr   r6   method_configrY   __static_attributes____classcell__r(   s   @r)   r   r-   1   s1    4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rU =r$ ).SpeechV1.ProjectsLocationsCustomClassesServicep   z@Service class for the projects_locations_customClasses resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r0   )r   r   r   r   r1   r2   s     r)   r   7SpeechV1.ProjectsLocationsCustomClassesService.__init__u   s"    H::DJ6Rdr+   c                 D    U R                  S5      nU R                  X1US9$ )zCreate a custom class.

Args:
  request: (SpeechProjectsLocationsCustomClassesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CustomClass) The response message.
Creater7   r9   r<   s       r)   ru   5SpeechV1.ProjectsLocationsCustomClassesService.Createz   /     ##H-f__
  8 8r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N>v1/projects/{projectsId}/locations/{locationsId}/customClassesPOSTz.speech.projects.locations.customClasses.createparentv1/{+parent}/customClassescreateCustomClassRequest1SpeechProjectsLocationsCustomClassesCreateRequestCustomClassFrG   rS   rU   r+   r)   rV   7SpeechV1.ProjectsLocationsCustomClassesService.<lambda>   s4    8#9#9RB zJ20M($r+   c                 D    U R                  S5      nU R                  X1US9$ )zDelete a custom class.

Args:
  request: (SpeechProjectsLocationsCustomClassesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter7   r9   r<   s       r)   r   5SpeechV1.ProjectsLocationsCustomClassesService.Delete   rw   r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NPv1/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}DELETEz.speech.projects.locations.customClasses.deleterC   
v1/{+name}rD   1SpeechProjectsLocationsCustomClassesDeleteRequestEmptyFrG   rS   rU   r+   r)   rV   r      s4    8#9#9dBxH"M"$r+   c                 D    U R                  S5      nU R                  X1US9$ )zGet a custom class.

Args:
  request: (SpeechProjectsLocationsCustomClassesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CustomClass) The response message.
r6   r7   r9   r<   s       r)   r6   2SpeechV1.ProjectsLocationsCustomClassesService.Get   r@   r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rB   z+speech.projects.locations.customClasses.getrC   r   rD   .SpeechProjectsLocationsCustomClassesGetRequestr   FrG   rS   rU   r+   r)   rV   r      s4     6 6d?xH"J(!r+   c                 D    U R                  S5      nU R                  X1US9$ )zList custom classes.

Args:
  request: (SpeechProjectsLocationsCustomClassesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListCustomClassesResponse) The response message.
rY   r7   r9   r<   s       r)   rY   3SpeechV1.ProjectsLocationsCustomClassesService.List   r[   r+   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nry   rB   z,speech.projects.locations.customClasses.listr{   r^   r_   r|   rD   /SpeechProjectsLocationsCustomClassesListRequestListCustomClassesResponseFrG   rS   rU   r+   r)   rV   r      s9    !7!7R@ zJ +.2K6"r+   c                 D    U R                  S5      nU R                  X1US9$ )zUpdate a custom class.

Args:
  request: (SpeechProjectsLocationsCustomClassesPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CustomClass) The response message.
Patchr7   r9   r<   s       r)   r   4SpeechV1.ProjectsLocationsCustomClassesService.Patch   /     ##G,f__
  8 8r+   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   PATCHz-speech.projects.locations.customClasses.patchrC   
updateMaskr   customClass0SpeechProjectsLocationsCustomClassesPatchRequestr   FrG   rS   rU   r+   r)   rV   r      s6    ("8"8dAxH"^"#L(#r+   rd   r0   re   rf   rg   rh   ri   rj   r   ru   rk   r   r6   rY   r   rl   rm   rn   s   @r)   r   rp   p   s^    J.E
8F8F8C8D8E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rU =r$ )+SpeechV1.ProjectsLocationsPhraseSetsServicei  z=Service class for the projects_locations_phraseSets resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r0   )r   r   r   r   r1   r2   s     r)   r   4SpeechV1.ProjectsLocationsPhraseSetsService.__init__  s"    H77GOdr+   c                 D    U R                  S5      nU R                  X1US9$ )a  Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.

Args:
  request: (SpeechProjectsLocationsPhraseSetsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PhraseSet) The response message.
ru   r7   r9   r<   s       r)   ru   2SpeechV1.ProjectsLocationsPhraseSetsService.Create  rw   r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N;v1/projects/{projectsId}/locations/{locationsId}/phraseSetsrz   z+speech.projects.locations.phraseSets.creater{   v1/{+parent}/phraseSetscreatePhraseSetRequest.SpeechProjectsLocationsPhraseSetsCreateRequest	PhraseSetFrG   rS   rU   r+   r)   rV   4SpeechV1.ProjectsLocationsPhraseSetsService.<lambda>  s4    8#9#9O? zJ/.J&$r+   c                 D    U R                  S5      nU R                  X1US9$ )zDelete a phrase set.

Args:
  request: (SpeechProjectsLocationsPhraseSetsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
r   r7   r9   r<   s       r)   r   2SpeechV1.ProjectsLocationsPhraseSetsService.Delete&  rw   r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NJv1/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}r   z+speech.projects.locations.phraseSets.deleterC   r   rD   .SpeechProjectsLocationsPhraseSetsDeleteRequestr   FrG   rS   rU   r+   r)   rV   r   3  s4    8#9#9^?xH"J"$r+   c                 D    U R                  S5      nU R                  X1US9$ )zGet a phrase set.

Args:
  request: (SpeechProjectsLocationsPhraseSetsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PhraseSet) The response message.
r6   r7   r9   r<   s       r)   r6   /SpeechV1.ProjectsLocationsPhraseSetsService.GetA  r@   r+   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rB   z(speech.projects.locations.phraseSets.getrC   r   rD   +SpeechProjectsLocationsPhraseSetsGetRequestr   FrG   rS   rU   r+   r)   rV   r   N  s4     6 6^<xH"G&!r+   c                 D    U R                  S5      nU R                  X1US9$ )zList phrase sets.

Args:
  request: (SpeechProjectsLocationsPhraseSetsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListPhraseSetResponse) The response message.
rY   r7   r9   r<   s       r)   rY   0SpeechV1.ProjectsLocationsPhraseSetsService.List\  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.listr{   r^   r_   r   rD   ,SpeechProjectsLocationsPhraseSetsListRequestListPhraseSetResponseFrG   rS   rU   r+   r)   rV   r   i  s9    !7!7O= zJ +./H2"r+   c                 D    U R                  S5      nU R                  X1US9$ )zUpdate a phrase set.

Args:
  request: (SpeechProjectsLocationsPhraseSetsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PhraseSet) The response message.
r   r7   r9   r<   s       r)   r   1SpeechV1.ProjectsLocationsPhraseSetsService.Patchw  r   r+   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   r   z*speech.projects.locations.phraseSets.patchrC   r   r   	phraseSet-SpeechProjectsLocationsPhraseSetsPatchRequestr   FrG   rS   rU   r+   r)   rV   r     s6    ("8"8^>xH"^"!I&#r+   rd   r0   r   rn   s   @r)   r   r     s^    G+E
8F8F8C8D8Er+   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )!SpeechV1.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r0   )r   r   r!   r   r1   r2   s     r)   r   *SpeechV1.ProjectsLocationsService.__init__  s"    H--t=fEdr+   rd   	re   rf   rg   rh   ri   rj   r   rl   rm   rn   s   @r)   r!   r     s    < E r+   r!   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )SpeechV1.ProjectsServicei  z(Service class for the projects resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r0   )r   r   r#   r   r1   r2   s     r)   r   !SpeechV1.ProjectsService.__init__  s"    H$$d4V<dr+   rd   r   rn   s   @r)   r#   r     s    2E 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$ )SpeechV1.SpeechServicei  z&Service class for the speech resource.r	   c                 N   > [         [        R                  U ]  U5        0 U l        g r0   )r   r   r%   r   r1   r2   s     r)   r   SpeechV1.SpeechService.__init__  s"    H""D26:dr+   c                 D    U R                  S5      nU R                  X1US9$ )a"  Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).

Args:
  request: (LongRunningRecognizeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Longrunningrecognizer7   r9   r<   s       r)   r   +SpeechV1.SpeechService.Longrunningrecognize  s0     ##$:;f__
  8 8r+   c                  <    [         R                  " SS/ / / SSSSSS9
$ )	Nrz   z"speech.speech.longrunningrecognizezv1/speech:longrunningrecognize	<request>LongRunningRecognizeRequestrF   Frc   rS   rU   r+   r)   rV   SpeechV1.SpeechService.<lambda>  s-    1G1G66!7&2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: (RecognizeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (RecognizeResponse) The response message.
	Recognizer7   r9   r<   s       r)   r    SpeechV1.SpeechService.Recognize  s/     ##K0f__
  8 8r+   c                  <    [         R                  " SS/ / / SSSSSS9
$ )	Nrz   zspeech.speech.recognizezv1/speech:recognizer   RecognizeRequestRecognizeResponseFrc   rS   rU   r+   r)   rV   r     s-    h&<&<++!,.'r+   rd   r0   )re   rf   rg   rh   ri   rj   r   r   rk   r   rl   rm   rn   s   @r)   r%   r     s2    0E
8*&8Ir+   r%   )r   r$   r"   r   r    r	   )rD   NTNNFFNNNN)re   rf   rg   rh   ri   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%   rl   rm   rn   s   @r)   r   r   
   s    ?/-(7-(=>'(*"."+!,()-6:/4<@?C	+,=(11 =~Oh.E.E ObO8+B+B Ob!8!8 // <h-- < <r+   r   N)
ri   
__future__r   apitools.base.pyr   /googlecloudsdk.generated_clients.apis.speech.v1r   r   BaseApiClientr   rU   r+   r)   <module>r      s'    5 ' % ZXx%% Xr+   