3636from google .api_core .client_options import ClientOptions
3737from google .api_core import exceptions as core_exceptions
3838from google .api_core import gapic_v1
39- from google .api_core import retry as retries
39+ from google .api_core import retry_async as retries
4040from google .auth import credentials as ga_credentials # type: ignore
4141from google .oauth2 import service_account # type: ignore
4242
4343try :
44- OptionalRetry = Union [retries .Retry , gapic_v1 .method ._MethodDefault ]
44+ OptionalRetry = Union [retries .AsyncRetry , gapic_v1 .method ._MethodDefault ]
4545except AttributeError : # pragma: NO COVER
46- OptionalRetry = Union [retries .Retry , object ] # type: ignore
46+ OptionalRetry = Union [retries .AsyncRetry , object ] # type: ignore
4747
4848from google .cloud .bigquery_storage_v1 .types import storage
4949from google .cloud .bigquery_storage_v1 .types import stream
@@ -288,7 +288,7 @@ async def sample_create_write_stream():
288288 This corresponds to the ``write_stream`` field
289289 on the ``request`` instance; if ``request`` is provided, this
290290 should not be set.
291- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
291+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
292292 should be retried.
293293 timeout (float): The timeout for this request.
294294 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -324,7 +324,7 @@ async def sample_create_write_stream():
324324 # and friendly error handling.
325325 rpc = gapic_v1 .method_async .wrap_method (
326326 self ._client ._transport .create_write_stream ,
327- default_retry = retries .Retry (
327+ default_retry = retries .AsyncRetry (
328328 initial = 10.0 ,
329329 maximum = 120.0 ,
330330 multiplier = 1.3 ,
@@ -449,7 +449,7 @@ def request_generator():
449449 The size of a single AppendRowsRequest must be less than
450450 10 MB in size. Requests larger than this return an
451451 error, typically ``INVALID_ARGUMENT``.
452- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
452+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
453453 should be retried.
454454 timeout (float): The timeout for this request.
455455 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -464,7 +464,7 @@ def request_generator():
464464 # and friendly error handling.
465465 rpc = gapic_v1 .method_async .wrap_method (
466466 self ._client ._transport .append_rows ,
467- default_retry = retries .Retry (
467+ default_retry = retries .AsyncRetry (
468468 initial = 0.1 ,
469469 maximum = 60.0 ,
470470 multiplier = 1.3 ,
@@ -539,7 +539,7 @@ async def sample_get_write_stream():
539539 This corresponds to the ``name`` field
540540 on the ``request`` instance; if ``request`` is provided, this
541541 should not be set.
542- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
542+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
543543 should be retried.
544544 timeout (float): The timeout for this request.
545545 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -573,7 +573,7 @@ async def sample_get_write_stream():
573573 # and friendly error handling.
574574 rpc = gapic_v1 .method_async .wrap_method (
575575 self ._client ._transport .get_write_stream ,
576- default_retry = retries .Retry (
576+ default_retry = retries .AsyncRetry (
577577 initial = 0.1 ,
578578 maximum = 60.0 ,
579579 multiplier = 1.3 ,
@@ -653,7 +653,7 @@ async def sample_finalize_write_stream():
653653 This corresponds to the ``name`` field
654654 on the ``request`` instance; if ``request`` is provided, this
655655 should not be set.
656- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
656+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
657657 should be retried.
658658 timeout (float): The timeout for this request.
659659 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -684,7 +684,7 @@ async def sample_finalize_write_stream():
684684 # and friendly error handling.
685685 rpc = gapic_v1 .method_async .wrap_method (
686686 self ._client ._transport .finalize_write_stream ,
687- default_retry = retries .Retry (
687+ default_retry = retries .AsyncRetry (
688688 initial = 0.1 ,
689689 maximum = 60.0 ,
690690 multiplier = 1.3 ,
@@ -770,7 +770,7 @@ async def sample_batch_commit_write_streams():
770770 This corresponds to the ``parent`` field
771771 on the ``request`` instance; if ``request`` is provided, this
772772 should not be set.
773- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
773+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
774774 should be retried.
775775 timeout (float): The timeout for this request.
776776 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -801,7 +801,7 @@ async def sample_batch_commit_write_streams():
801801 # and friendly error handling.
802802 rpc = gapic_v1 .method_async .wrap_method (
803803 self ._client ._transport .batch_commit_write_streams ,
804- default_retry = retries .Retry (
804+ default_retry = retries .AsyncRetry (
805805 initial = 0.1 ,
806806 maximum = 60.0 ,
807807 multiplier = 1.3 ,
@@ -889,7 +889,7 @@ async def sample_flush_rows():
889889 This corresponds to the ``write_stream`` field
890890 on the ``request`` instance; if ``request`` is provided, this
891891 should not be set.
892- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
892+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
893893 should be retried.
894894 timeout (float): The timeout for this request.
895895 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -920,7 +920,7 @@ async def sample_flush_rows():
920920 # and friendly error handling.
921921 rpc = gapic_v1 .method_async .wrap_method (
922922 self ._client ._transport .flush_rows ,
923- default_retry = retries .Retry (
923+ default_retry = retries .AsyncRetry (
924924 initial = 0.1 ,
925925 maximum = 60.0 ,
926926 multiplier = 1.3 ,
0 commit comments