Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

chore: Update gapic-generator-python to v1.11.9 #547

Merged
merged 9 commits into from
Oct 20, 2023
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547
digest: sha256:4f9b3b106ad0beafc2c8a415e3f62c1a0cc23cabea115dbe841b848f581cfe99
# created: 2023-10-09T14:06:13.397766266Z
6 changes: 3 additions & 3 deletions .kokoro/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ typing-extensions==4.4.0 \
--hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
--hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e
# via -r requirements.in
urllib3==1.26.17 \
--hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \
--hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b
urllib3==1.26.18 \
--hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \
--hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0
# via
# requests
# twine
Expand Down
12 changes: 6 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ API Reference
.. toctree::
:maxdepth: 2

speech_v1/services
speech_v1/types
speech_v1/services_
speech_v1/types_

API Reference
-------------
.. toctree::
:maxdepth: 2

speech_v1p1beta1/services
speech_v1p1beta1/types
speech_v1p1beta1/services_
speech_v1p1beta1/types_

API Reference
-------------
.. toctree::
:maxdepth: 2

speech_v2/services
speech_v2/types
speech_v2/services_
speech_v2/types_


Migration Guide
Expand Down
File renamed without changes.
File renamed without changes.
268 changes: 210 additions & 58 deletions tests/unit/gapic/speech_v1/test_adaptation.py

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions tests/unit/gapic/speech_v1/test_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,8 +1162,9 @@ def test_recognize_rest(request_type):
# Wrap the value into a proper Response obj
response_value = Response()
response_value.status_code = 200
pb_return_value = cloud_speech.RecognizeResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = cloud_speech.RecognizeResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)

response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value
Expand Down Expand Up @@ -1232,8 +1233,9 @@ def test_recognize_rest_required_fields(request_type=cloud_speech.RecognizeReque
response_value = Response()
response_value.status_code = 200

pb_return_value = cloud_speech.RecognizeResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = cloud_speech.RecognizeResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)

response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value
Expand Down Expand Up @@ -1365,8 +1367,9 @@ def test_recognize_rest_flattened():
# Wrap the value into a proper Response obj
response_value = Response()
response_value.status_code = 200
pb_return_value = cloud_speech.RecognizeResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = cloud_speech.RecognizeResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)
response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value

Expand Down
Loading