Skip to content

Commit

Permalink
feat: Add adaptation proto for v1 api (#371)
Browse files Browse the repository at this point in the history
* feat: Add adaptation proto for v1 api

PiperOrigin-RevId: 447561222

Source-Link: googleapis/googleapis@ec9193e

Source-Link: googleapis/googleapis-gen@cd279b0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2QyNzliMDAzZTQ0NTVjOWI4MDVmMjJmYzNiOTk3NmFkODYzOWVlNiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 9, 2022
1 parent c471e0f commit b33a1d8
Show file tree
Hide file tree
Showing 39 changed files with 12,028 additions and 5 deletions.
10 changes: 10 additions & 0 deletions packages/google-cloud-python-speech/docs/speech_v1/adaptation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Adaptation
----------------------------

.. automodule:: google.cloud.speech_v1.services.adaptation
:members:
:inherited-members:

.. automodule:: google.cloud.speech_v1.services.adaptation.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Services for Google Cloud Speech v1 API
.. toctree::
:maxdepth: 2

adaptation
speech
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# limitations under the License.
#

from google.cloud.speech_v1.services.adaptation.client import AdaptationClient
from google.cloud.speech_v1.services.adaptation.async_client import (
AdaptationAsyncClient,
)
from google.cloud.speech_v1 import SpeechClient
from google.cloud.speech_v1.services.speech.async_client import SpeechAsyncClient

Expand All @@ -35,11 +39,35 @@
from google.cloud.speech_v1.types.cloud_speech import StreamingRecognizeResponse
from google.cloud.speech_v1.types.cloud_speech import TranscriptOutputConfig
from google.cloud.speech_v1.types.cloud_speech import WordInfo
from google.cloud.speech_v1.types.cloud_speech_adaptation import (
CreateCustomClassRequest,
)
from google.cloud.speech_v1.types.cloud_speech_adaptation import CreatePhraseSetRequest
from google.cloud.speech_v1.types.cloud_speech_adaptation import (
DeleteCustomClassRequest,
)
from google.cloud.speech_v1.types.cloud_speech_adaptation import DeletePhraseSetRequest
from google.cloud.speech_v1.types.cloud_speech_adaptation import GetCustomClassRequest
from google.cloud.speech_v1.types.cloud_speech_adaptation import GetPhraseSetRequest
from google.cloud.speech_v1.types.cloud_speech_adaptation import (
ListCustomClassesRequest,
)
from google.cloud.speech_v1.types.cloud_speech_adaptation import (
ListCustomClassesResponse,
)
from google.cloud.speech_v1.types.cloud_speech_adaptation import ListPhraseSetRequest
from google.cloud.speech_v1.types.cloud_speech_adaptation import ListPhraseSetResponse
from google.cloud.speech_v1.types.cloud_speech_adaptation import (
UpdateCustomClassRequest,
)
from google.cloud.speech_v1.types.cloud_speech_adaptation import UpdatePhraseSetRequest
from google.cloud.speech_v1.types.resource import CustomClass
from google.cloud.speech_v1.types.resource import PhraseSet
from google.cloud.speech_v1.types.resource import SpeechAdaptation

__all__ = (
"AdaptationClient",
"AdaptationAsyncClient",
"SpeechClient",
"SpeechAsyncClient",
"LongRunningRecognizeMetadata",
Expand All @@ -60,6 +88,18 @@
"StreamingRecognizeResponse",
"TranscriptOutputConfig",
"WordInfo",
"CreateCustomClassRequest",
"CreatePhraseSetRequest",
"DeleteCustomClassRequest",
"DeletePhraseSetRequest",
"GetCustomClassRequest",
"GetPhraseSetRequest",
"ListCustomClassesRequest",
"ListCustomClassesResponse",
"ListPhraseSetRequest",
"ListPhraseSetResponse",
"UpdateCustomClassRequest",
"UpdatePhraseSetRequest",
"CustomClass",
"PhraseSet",
"SpeechAdaptation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# limitations under the License.
#

from .services.adaptation import AdaptationClient
from .services.adaptation import AdaptationAsyncClient
from .services.speech import SpeechClient
from .services.speech import SpeechAsyncClient

Expand All @@ -35,6 +37,18 @@
from .types.cloud_speech import StreamingRecognizeResponse
from .types.cloud_speech import TranscriptOutputConfig
from .types.cloud_speech import WordInfo
from .types.cloud_speech_adaptation import CreateCustomClassRequest
from .types.cloud_speech_adaptation import CreatePhraseSetRequest
from .types.cloud_speech_adaptation import DeleteCustomClassRequest
from .types.cloud_speech_adaptation import DeletePhraseSetRequest
from .types.cloud_speech_adaptation import GetCustomClassRequest
from .types.cloud_speech_adaptation import GetPhraseSetRequest
from .types.cloud_speech_adaptation import ListCustomClassesRequest
from .types.cloud_speech_adaptation import ListCustomClassesResponse
from .types.cloud_speech_adaptation import ListPhraseSetRequest
from .types.cloud_speech_adaptation import ListPhraseSetResponse
from .types.cloud_speech_adaptation import UpdateCustomClassRequest
from .types.cloud_speech_adaptation import UpdatePhraseSetRequest
from .types.resource import CustomClass
from .types.resource import PhraseSet
from .types.resource import SpeechAdaptation
Expand All @@ -47,8 +61,20 @@ class SpeechClient(SpeechHelpers, SpeechClient):


__all__ = (
"AdaptationAsyncClient",
"SpeechAsyncClient",
"AdaptationClient",
"CreateCustomClassRequest",
"CreatePhraseSetRequest",
"CustomClass",
"DeleteCustomClassRequest",
"DeletePhraseSetRequest",
"GetCustomClassRequest",
"GetPhraseSetRequest",
"ListCustomClassesRequest",
"ListCustomClassesResponse",
"ListPhraseSetRequest",
"ListPhraseSetResponse",
"LongRunningRecognizeMetadata",
"LongRunningRecognizeRequest",
"LongRunningRecognizeResponse",
Expand All @@ -69,5 +95,7 @@ class SpeechClient(SpeechHelpers, SpeechClient):
"StreamingRecognizeRequest",
"StreamingRecognizeResponse",
"TranscriptOutputConfig",
"UpdateCustomClassRequest",
"UpdatePhraseSetRequest",
"WordInfo",
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,120 @@
"protoPackage": "google.cloud.speech.v1",
"schema": "1.0",
"services": {
"Adaptation": {
"clients": {
"grpc": {
"libraryClient": "AdaptationClient",
"rpcs": {
"CreateCustomClass": {
"methods": [
"create_custom_class"
]
},
"CreatePhraseSet": {
"methods": [
"create_phrase_set"
]
},
"DeleteCustomClass": {
"methods": [
"delete_custom_class"
]
},
"DeletePhraseSet": {
"methods": [
"delete_phrase_set"
]
},
"GetCustomClass": {
"methods": [
"get_custom_class"
]
},
"GetPhraseSet": {
"methods": [
"get_phrase_set"
]
},
"ListCustomClasses": {
"methods": [
"list_custom_classes"
]
},
"ListPhraseSet": {
"methods": [
"list_phrase_set"
]
},
"UpdateCustomClass": {
"methods": [
"update_custom_class"
]
},
"UpdatePhraseSet": {
"methods": [
"update_phrase_set"
]
}
}
},
"grpc-async": {
"libraryClient": "AdaptationAsyncClient",
"rpcs": {
"CreateCustomClass": {
"methods": [
"create_custom_class"
]
},
"CreatePhraseSet": {
"methods": [
"create_phrase_set"
]
},
"DeleteCustomClass": {
"methods": [
"delete_custom_class"
]
},
"DeletePhraseSet": {
"methods": [
"delete_phrase_set"
]
},
"GetCustomClass": {
"methods": [
"get_custom_class"
]
},
"GetPhraseSet": {
"methods": [
"get_phrase_set"
]
},
"ListCustomClasses": {
"methods": [
"list_custom_classes"
]
},
"ListPhraseSet": {
"methods": [
"list_phrase_set"
]
},
"UpdateCustomClass": {
"methods": [
"update_custom_class"
]
},
"UpdatePhraseSet": {
"methods": [
"update_phrase_set"
]
}
}
}
}
},
"Speech": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import AdaptationClient
from .async_client import AdaptationAsyncClient

__all__ = (
"AdaptationClient",
"AdaptationAsyncClient",
)
Loading

0 comments on commit b33a1d8

Please sign in to comment.