Skip to content

Commit

Permalink
feat: [google-cloud-translate] Add BigQuery Metastore Partition Servi…
Browse files Browse the repository at this point in the history
…ce API version v1alpha (#13006)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 662212485

Source-Link:
googleapis/googleapis@456a812

Source-Link:
googleapis/googleapis-gen@2ec266e
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiMmVjMjY2ZTZkYTAzMjA4YTc2YjBmZDYwMDFiYTdkZjkzZGFlNDRlNiJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent 0cc38a2 commit 95fb211
Show file tree
Hide file tree
Showing 12 changed files with 340 additions and 270 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.16.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.16.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
from collections import OrderedDict
import functools
import re
from typing import (
Callable,
Expand Down Expand Up @@ -228,10 +227,7 @@ def universe_domain(self) -> str:
"""
return self._client._universe_domain

get_transport_class = functools.partial(
type(TranslationServiceClient).get_transport_class,
type(TranslationServiceClient),
)
get_transport_class = TranslationServiceClient.get_transport_class

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def __init__(
Type[TranslationServiceTransport],
Callable[..., TranslationServiceTransport],
] = (
type(self).get_transport_class(transport)
TranslationServiceClient.get_transport_class(transport)
if isinstance(transport, str) or transport is None
else cast(Callable[..., TranslationServiceTransport], transport)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class Example(proto.Message):
Attributes:
name (str):
Output only. The resource name of the example, in form of
\`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}'
``projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}``
source_text (str):
Sentence in source language.
target_text (str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.16.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
from collections import OrderedDict
import functools
import re
from typing import (
Callable,
Expand Down Expand Up @@ -191,10 +190,7 @@ def universe_domain(self) -> str:
"""
return self._client._universe_domain

get_transport_class = functools.partial(
type(TranslationServiceClient).get_transport_class,
type(TranslationServiceClient),
)
get_transport_class = TranslationServiceClient.get_transport_class

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def __init__(
Type[TranslationServiceTransport],
Callable[..., TranslationServiceTransport],
] = (
type(self).get_transport_class(transport)
TranslationServiceClient.get_transport_class(transport)
if isinstance(transport, str) or transport is None
else cast(Callable[..., TranslationServiceTransport], transport)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-translate",
"version": "3.16.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-translate",
"version": "3.16.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Loading

0 comments on commit 95fb211

Please sign in to comment.