google-cloud-video-transcoder 1.12.2__tar.gz → 1.12.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. {google-cloud-video-transcoder-1.12.2/google_cloud_video_transcoder.egg-info → google-cloud-video-transcoder-1.12.4}/PKG-INFO +4 -4
  2. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/README.rst +1 -1
  3. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder/__init__.py +1 -1
  4. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder/gapic_version.py +2 -2
  5. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/__init__.py +1 -1
  6. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/gapic_version.py +2 -2
  7. {google-cloud-video-transcoder-1.12.2/tests/unit → google-cloud-video-transcoder-1.12.4/google/cloud/video/transcoder_v1/services}/__init__.py +1 -1
  8. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/__init__.py +1 -1
  9. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/async_client.py +84 -69
  10. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/client.py +56 -55
  11. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/pagers.py +1 -1
  12. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/transports/__init__.py +1 -1
  13. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/transports/base.py +4 -2
  14. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py +18 -12
  15. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py +64 -12
  16. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/services/transcoder_service/transports/rest.py +1 -1
  17. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/types/__init__.py +1 -1
  18. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/types/resources.py +1 -1
  19. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/types/services.py +1 -1
  20. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4/google_cloud_video_transcoder.egg-info}/PKG-INFO +4 -4
  21. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google_cloud_video_transcoder.egg-info/requires.txt +2 -2
  22. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/setup.py +5 -3
  23. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/tests/__init__.py +1 -1
  24. {google-cloud-video-transcoder-1.12.2/tests/unit/gapic → google-cloud-video-transcoder-1.12.4/tests/unit}/__init__.py +1 -1
  25. {google-cloud-video-transcoder-1.12.2/google/cloud/video/transcoder_v1/services → google-cloud-video-transcoder-1.12.4/tests/unit/gapic}/__init__.py +1 -1
  26. google-cloud-video-transcoder-1.12.4/tests/unit/gapic/transcoder_v1/__init__.py +15 -0
  27. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/tests/unit/gapic/transcoder_v1/test_transcoder_service.py +1432 -34
  28. google-cloud-video-transcoder-1.12.2/tests/unit/gapic/transcoder_v1/__init__.py +0 -15
  29. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/LICENSE +0 -0
  30. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/MANIFEST.in +0 -0
  31. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder/py.typed +0 -0
  32. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/gapic_metadata.json +0 -0
  33. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google/cloud/video/transcoder_v1/py.typed +0 -0
  34. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google_cloud_video_transcoder.egg-info/SOURCES.txt +0 -0
  35. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google_cloud_video_transcoder.egg-info/dependency_links.txt +0 -0
  36. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google_cloud_video_transcoder.egg-info/not-zip-safe +0 -0
  37. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/google_cloud_video_transcoder.egg-info/top_level.txt +0 -0
  38. {google-cloud-video-transcoder-1.12.2 → google-cloud-video-transcoder-1.12.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-video-transcoder
3
- Version: 1.12.2
3
+ Version: 1.12.4
4
4
  Summary: Google Cloud Video Transcoder API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-video-transcoder
6
6
  Author: Google LLC
@@ -23,9 +23,9 @@ Classifier: Topic :: Internet
23
23
  Requires-Python: >=3.7
24
24
  License-File: LICENSE
25
25
  Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
26
- Requires-Dist: google-auth<3.0.0dev,>=2.14.1
26
+ Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
27
27
  Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
28
- Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
28
+ Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
29
29
 
30
30
  Python Client for Transcoder
31
31
  ============================
@@ -44,7 +44,7 @@ Python Client for Transcoder
44
44
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-video-transcoder.svg
45
45
  :target: https://pypi.org/project/google-cloud-video-transcoder/
46
46
  .. _Transcoder: https://cloud.google.com/transcoder
47
- .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/transcoder/latest
47
+ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/transcoder/latest/summary_overview
48
48
  .. _Product Documentation: https://cloud.google.com/transcoder
49
49
 
50
50
  Quick Start
@@ -15,7 +15,7 @@ Python Client for Transcoder
15
15
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-video-transcoder.svg
16
16
  :target: https://pypi.org/project/google-cloud-video-transcoder/
17
17
  .. _Transcoder: https://cloud.google.com/transcoder
18
- .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/transcoder/latest
18
+ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/transcoder/latest/summary_overview
19
19
  .. _Product Documentation: https://cloud.google.com/transcoder
20
20
 
21
21
  Quick Start
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "1.12.2" # {x-release-please-version}
16
+ __version__ = "1.12.4" # {x-release-please-version}
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "1.12.2" # {x-release-please-version}
16
+ __version__ = "1.12.4" # {x-release-please-version}
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2023 Google LLC
2
+ # Copyright 2024 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ from collections import OrderedDict
17
17
  import functools
18
18
  import re
19
19
  from typing import (
20
+ Callable,
20
21
  Dict,
21
22
  Mapping,
22
23
  MutableMapping,
@@ -208,7 +209,13 @@ class TranscoderServiceAsyncClient:
208
209
  self,
209
210
  *,
210
211
  credentials: Optional[ga_credentials.Credentials] = None,
211
- transport: Union[str, TranscoderServiceTransport] = "grpc_asyncio",
212
+ transport: Optional[
213
+ Union[
214
+ str,
215
+ TranscoderServiceTransport,
216
+ Callable[..., TranscoderServiceTransport],
217
+ ]
218
+ ] = "grpc_asyncio",
212
219
  client_options: Optional[ClientOptions] = None,
213
220
  client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
214
221
  ) -> None:
@@ -220,9 +227,11 @@ class TranscoderServiceAsyncClient:
220
227
  credentials identify the application to the service; if none
221
228
  are specified, the client will attempt to ascertain the
222
229
  credentials from the environment.
223
- transport (Union[str, ~.TranscoderServiceTransport]): The
224
- transport to use. If set to None, a transport is chosen
225
- automatically.
230
+ transport (Optional[Union[str,TranscoderServiceTransport,Callable[..., TranscoderServiceTransport]]]):
231
+ The transport to use, or a Callable that constructs and returns a new transport to use.
232
+ If a Callable is given, it will be called with the same set of initialization
233
+ arguments as used in the TranscoderServiceTransport constructor.
234
+ If set to None, a transport is chosen automatically.
226
235
  client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
227
236
  Custom options for the client.
228
237
 
@@ -336,8 +345,8 @@ class TranscoderServiceAsyncClient:
336
345
  Transcoding job resource.
337
346
  """
338
347
  # Create or coerce a protobuf request object.
339
- # Quick check: If we got a request object, we should *not* have
340
- # gotten any keyword arguments that map to the request.
348
+ # - Quick check: If we got a request object, we should *not* have
349
+ # gotten any keyword arguments that map to the request.
341
350
  has_flattened_params = any([parent, job])
342
351
  if request is not None and has_flattened_params:
343
352
  raise ValueError(
@@ -345,7 +354,10 @@ class TranscoderServiceAsyncClient:
345
354
  "the individual field arguments should be set."
346
355
  )
347
356
 
348
- request = services.CreateJobRequest(request)
357
+ # - Use the request object if provided (there's no risk of modifying the input as
358
+ # there are no flattened fields), or create one.
359
+ if not isinstance(request, services.CreateJobRequest):
360
+ request = services.CreateJobRequest(request)
349
361
 
350
362
  # If we have keyword arguments corresponding to fields on the
351
363
  # request, apply these.
@@ -356,11 +368,9 @@ class TranscoderServiceAsyncClient:
356
368
 
357
369
  # Wrap the RPC method; this adds retry and timeout information,
358
370
  # and friendly error handling.
359
- rpc = gapic_v1.method_async.wrap_method(
360
- self._client._transport.create_job,
361
- default_timeout=60.0,
362
- client_info=DEFAULT_CLIENT_INFO,
363
- )
371
+ rpc = self._client._transport._wrapped_methods[
372
+ self._client._transport.create_job
373
+ ]
364
374
 
365
375
  # Certain fields should be provided within the metadata header;
366
376
  # add these here.
@@ -447,8 +457,8 @@ class TranscoderServiceAsyncClient:
447
457
 
448
458
  """
449
459
  # Create or coerce a protobuf request object.
450
- # Quick check: If we got a request object, we should *not* have
451
- # gotten any keyword arguments that map to the request.
460
+ # - Quick check: If we got a request object, we should *not* have
461
+ # gotten any keyword arguments that map to the request.
452
462
  has_flattened_params = any([parent])
453
463
  if request is not None and has_flattened_params:
454
464
  raise ValueError(
@@ -456,7 +466,10 @@ class TranscoderServiceAsyncClient:
456
466
  "the individual field arguments should be set."
457
467
  )
458
468
 
459
- request = services.ListJobsRequest(request)
469
+ # - Use the request object if provided (there's no risk of modifying the input as
470
+ # there are no flattened fields), or create one.
471
+ if not isinstance(request, services.ListJobsRequest):
472
+ request = services.ListJobsRequest(request)
460
473
 
461
474
  # If we have keyword arguments corresponding to fields on the
462
475
  # request, apply these.
@@ -465,11 +478,9 @@ class TranscoderServiceAsyncClient:
465
478
 
466
479
  # Wrap the RPC method; this adds retry and timeout information,
467
480
  # and friendly error handling.
468
- rpc = gapic_v1.method_async.wrap_method(
469
- self._client._transport.list_jobs,
470
- default_timeout=60.0,
471
- client_info=DEFAULT_CLIENT_INFO,
472
- )
481
+ rpc = self._client._transport._wrapped_methods[
482
+ self._client._transport.list_jobs
483
+ ]
473
484
 
474
485
  # Certain fields should be provided within the metadata header;
475
486
  # add these here.
@@ -558,8 +569,8 @@ class TranscoderServiceAsyncClient:
558
569
  Transcoding job resource.
559
570
  """
560
571
  # Create or coerce a protobuf request object.
561
- # Quick check: If we got a request object, we should *not* have
562
- # gotten any keyword arguments that map to the request.
572
+ # - Quick check: If we got a request object, we should *not* have
573
+ # gotten any keyword arguments that map to the request.
563
574
  has_flattened_params = any([name])
564
575
  if request is not None and has_flattened_params:
565
576
  raise ValueError(
@@ -567,7 +578,10 @@ class TranscoderServiceAsyncClient:
567
578
  "the individual field arguments should be set."
568
579
  )
569
580
 
570
- request = services.GetJobRequest(request)
581
+ # - Use the request object if provided (there's no risk of modifying the input as
582
+ # there are no flattened fields), or create one.
583
+ if not isinstance(request, services.GetJobRequest):
584
+ request = services.GetJobRequest(request)
571
585
 
572
586
  # If we have keyword arguments corresponding to fields on the
573
587
  # request, apply these.
@@ -576,11 +590,7 @@ class TranscoderServiceAsyncClient:
576
590
 
577
591
  # Wrap the RPC method; this adds retry and timeout information,
578
592
  # and friendly error handling.
579
- rpc = gapic_v1.method_async.wrap_method(
580
- self._client._transport.get_job,
581
- default_timeout=60.0,
582
- client_info=DEFAULT_CLIENT_INFO,
583
- )
593
+ rpc = self._client._transport._wrapped_methods[self._client._transport.get_job]
584
594
 
585
595
  # Certain fields should be provided within the metadata header;
586
596
  # add these here.
@@ -653,8 +663,8 @@ class TranscoderServiceAsyncClient:
653
663
  sent along with the request as metadata.
654
664
  """
655
665
  # Create or coerce a protobuf request object.
656
- # Quick check: If we got a request object, we should *not* have
657
- # gotten any keyword arguments that map to the request.
666
+ # - Quick check: If we got a request object, we should *not* have
667
+ # gotten any keyword arguments that map to the request.
658
668
  has_flattened_params = any([name])
659
669
  if request is not None and has_flattened_params:
660
670
  raise ValueError(
@@ -662,7 +672,10 @@ class TranscoderServiceAsyncClient:
662
672
  "the individual field arguments should be set."
663
673
  )
664
674
 
665
- request = services.DeleteJobRequest(request)
675
+ # - Use the request object if provided (there's no risk of modifying the input as
676
+ # there are no flattened fields), or create one.
677
+ if not isinstance(request, services.DeleteJobRequest):
678
+ request = services.DeleteJobRequest(request)
666
679
 
667
680
  # If we have keyword arguments corresponding to fields on the
668
681
  # request, apply these.
@@ -671,11 +684,9 @@ class TranscoderServiceAsyncClient:
671
684
 
672
685
  # Wrap the RPC method; this adds retry and timeout information,
673
686
  # and friendly error handling.
674
- rpc = gapic_v1.method_async.wrap_method(
675
- self._client._transport.delete_job,
676
- default_timeout=60.0,
677
- client_info=DEFAULT_CLIENT_INFO,
678
- )
687
+ rpc = self._client._transport._wrapped_methods[
688
+ self._client._transport.delete_job
689
+ ]
679
690
 
680
691
  # Certain fields should be provided within the metadata header;
681
692
  # add these here.
@@ -776,8 +787,8 @@ class TranscoderServiceAsyncClient:
776
787
  Transcoding job template resource.
777
788
  """
778
789
  # Create or coerce a protobuf request object.
779
- # Quick check: If we got a request object, we should *not* have
780
- # gotten any keyword arguments that map to the request.
790
+ # - Quick check: If we got a request object, we should *not* have
791
+ # gotten any keyword arguments that map to the request.
781
792
  has_flattened_params = any([parent, job_template, job_template_id])
782
793
  if request is not None and has_flattened_params:
783
794
  raise ValueError(
@@ -785,7 +796,10 @@ class TranscoderServiceAsyncClient:
785
796
  "the individual field arguments should be set."
786
797
  )
787
798
 
788
- request = services.CreateJobTemplateRequest(request)
799
+ # - Use the request object if provided (there's no risk of modifying the input as
800
+ # there are no flattened fields), or create one.
801
+ if not isinstance(request, services.CreateJobTemplateRequest):
802
+ request = services.CreateJobTemplateRequest(request)
789
803
 
790
804
  # If we have keyword arguments corresponding to fields on the
791
805
  # request, apply these.
@@ -798,11 +812,9 @@ class TranscoderServiceAsyncClient:
798
812
 
799
813
  # Wrap the RPC method; this adds retry and timeout information,
800
814
  # and friendly error handling.
801
- rpc = gapic_v1.method_async.wrap_method(
802
- self._client._transport.create_job_template,
803
- default_timeout=60.0,
804
- client_info=DEFAULT_CLIENT_INFO,
805
- )
815
+ rpc = self._client._transport._wrapped_methods[
816
+ self._client._transport.create_job_template
817
+ ]
806
818
 
807
819
  # Certain fields should be provided within the metadata header;
808
820
  # add these here.
@@ -889,8 +901,8 @@ class TranscoderServiceAsyncClient:
889
901
 
890
902
  """
891
903
  # Create or coerce a protobuf request object.
892
- # Quick check: If we got a request object, we should *not* have
893
- # gotten any keyword arguments that map to the request.
904
+ # - Quick check: If we got a request object, we should *not* have
905
+ # gotten any keyword arguments that map to the request.
894
906
  has_flattened_params = any([parent])
895
907
  if request is not None and has_flattened_params:
896
908
  raise ValueError(
@@ -898,7 +910,10 @@ class TranscoderServiceAsyncClient:
898
910
  "the individual field arguments should be set."
899
911
  )
900
912
 
901
- request = services.ListJobTemplatesRequest(request)
913
+ # - Use the request object if provided (there's no risk of modifying the input as
914
+ # there are no flattened fields), or create one.
915
+ if not isinstance(request, services.ListJobTemplatesRequest):
916
+ request = services.ListJobTemplatesRequest(request)
902
917
 
903
918
  # If we have keyword arguments corresponding to fields on the
904
919
  # request, apply these.
@@ -907,11 +922,9 @@ class TranscoderServiceAsyncClient:
907
922
 
908
923
  # Wrap the RPC method; this adds retry and timeout information,
909
924
  # and friendly error handling.
910
- rpc = gapic_v1.method_async.wrap_method(
911
- self._client._transport.list_job_templates,
912
- default_timeout=60.0,
913
- client_info=DEFAULT_CLIENT_INFO,
914
- )
925
+ rpc = self._client._transport._wrapped_methods[
926
+ self._client._transport.list_job_templates
927
+ ]
915
928
 
916
929
  # Certain fields should be provided within the metadata header;
917
930
  # add these here.
@@ -1002,8 +1015,8 @@ class TranscoderServiceAsyncClient:
1002
1015
  Transcoding job template resource.
1003
1016
  """
1004
1017
  # Create or coerce a protobuf request object.
1005
- # Quick check: If we got a request object, we should *not* have
1006
- # gotten any keyword arguments that map to the request.
1018
+ # - Quick check: If we got a request object, we should *not* have
1019
+ # gotten any keyword arguments that map to the request.
1007
1020
  has_flattened_params = any([name])
1008
1021
  if request is not None and has_flattened_params:
1009
1022
  raise ValueError(
@@ -1011,7 +1024,10 @@ class TranscoderServiceAsyncClient:
1011
1024
  "the individual field arguments should be set."
1012
1025
  )
1013
1026
 
1014
- request = services.GetJobTemplateRequest(request)
1027
+ # - Use the request object if provided (there's no risk of modifying the input as
1028
+ # there are no flattened fields), or create one.
1029
+ if not isinstance(request, services.GetJobTemplateRequest):
1030
+ request = services.GetJobTemplateRequest(request)
1015
1031
 
1016
1032
  # If we have keyword arguments corresponding to fields on the
1017
1033
  # request, apply these.
@@ -1020,11 +1036,9 @@ class TranscoderServiceAsyncClient:
1020
1036
 
1021
1037
  # Wrap the RPC method; this adds retry and timeout information,
1022
1038
  # and friendly error handling.
1023
- rpc = gapic_v1.method_async.wrap_method(
1024
- self._client._transport.get_job_template,
1025
- default_timeout=60.0,
1026
- client_info=DEFAULT_CLIENT_INFO,
1027
- )
1039
+ rpc = self._client._transport._wrapped_methods[
1040
+ self._client._transport.get_job_template
1041
+ ]
1028
1042
 
1029
1043
  # Certain fields should be provided within the metadata header;
1030
1044
  # add these here.
@@ -1098,8 +1112,8 @@ class TranscoderServiceAsyncClient:
1098
1112
  sent along with the request as metadata.
1099
1113
  """
1100
1114
  # Create or coerce a protobuf request object.
1101
- # Quick check: If we got a request object, we should *not* have
1102
- # gotten any keyword arguments that map to the request.
1115
+ # - Quick check: If we got a request object, we should *not* have
1116
+ # gotten any keyword arguments that map to the request.
1103
1117
  has_flattened_params = any([name])
1104
1118
  if request is not None and has_flattened_params:
1105
1119
  raise ValueError(
@@ -1107,7 +1121,10 @@ class TranscoderServiceAsyncClient:
1107
1121
  "the individual field arguments should be set."
1108
1122
  )
1109
1123
 
1110
- request = services.DeleteJobTemplateRequest(request)
1124
+ # - Use the request object if provided (there's no risk of modifying the input as
1125
+ # there are no flattened fields), or create one.
1126
+ if not isinstance(request, services.DeleteJobTemplateRequest):
1127
+ request = services.DeleteJobTemplateRequest(request)
1111
1128
 
1112
1129
  # If we have keyword arguments corresponding to fields on the
1113
1130
  # request, apply these.
@@ -1116,11 +1133,9 @@ class TranscoderServiceAsyncClient:
1116
1133
 
1117
1134
  # Wrap the RPC method; this adds retry and timeout information,
1118
1135
  # and friendly error handling.
1119
- rpc = gapic_v1.method_async.wrap_method(
1120
- self._client._transport.delete_job_template,
1121
- default_timeout=60.0,
1122
- client_info=DEFAULT_CLIENT_INFO,
1123
- )
1136
+ rpc = self._client._transport._wrapped_methods[
1137
+ self._client._transport.delete_job_template
1138
+ ]
1124
1139
 
1125
1140
  # Certain fields should be provided within the metadata header;
1126
1141
  # add these here.