GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(translate): generate v3 by busunkim96 · Pull Request #9020 · googleapis/google-cloud-python

feat(translate): generate v3 #9020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
busunkim96 merged 5 commits into googleapis:master from busunkim96:translate-v3
Oct 4, 2019
+6,954 −20
Merged

feat(translate): generate v3 #9020

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5 commits
Select commit Hold shift + click to select a range
cea1942
Generate v3
busunkim96 Aug 12, 2019
cbe75f2
docs: split docs toctree
busunkim96 Oct 4, 2019
a2958d6
docs: more tweaks to index
busunkim96 Oct 4, 2019
56722c2
docs: another tweak
busunkim96 Oct 4, 2019
c1f58e6
docs: add usage back in
busunkim96 Oct 4, 2019
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

6 changes: 6 additions & 0 deletions 6 translate/docs/gapic/v3/api.rst
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Client for Cloud Translation API
================================

.. automodule:: google.cloud.translate_v3
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions 5 translate/docs/gapic/v3/types.rst
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Types for Cloud Translation API Client
======================================

.. automodule:: google.cloud.translate_v3.types
:members:
26 changes: 13 additions & 13 deletions 26 translate/docs/index.rst
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
.. include:: README.rst

Detailed Usage Guide
v2 Usage Guide
--------------------
.. toctree::
:maxdepth: 2

usage


API Reference
-------------

A new beta release, spelled ``v3beta1``, is provided to provide for preview
of upcoming features. In order to use this, you will want to import from
``google.cloud.translate_v3beta1`` in lieu of ``google.cloud.translate``.

.. toctree::
:maxdepth: 2
An API and type reference is provided for ``v3``, ``v3beta1``, and ``v2``.

gapic/v3beta1/api
gapic/v3beta1/types
By default, you will get ``v3``. A beta release, spelled ``v3beta1`` is
provided for preview of upcoming features. In order to use this, you will
want to import from ``google.cloud.translate_v3beta1`` in lieu of
``google.cloud.translate``. The previous release ``v2`` is also available.
Import from ``google.cloud.translate_v2`` to use this release.

An API and type reference is provided for v2:

.. toctree::
:maxdepth: 2

client
:maxdepth: 2

v3
v3beta1
v2


Changelog
Expand Down
7 changes: 7 additions & 0 deletions 7 translate/docs/v2.rst
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v2
===

.. toctree::
:maxdepth: 2

client
8 changes: 8 additions & 0 deletions 8 translate/docs/v3.rst
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v3
===

.. toctree::
:maxdepth: 2

gapic/v3/api
gapic/v3/types
8 changes: 8 additions & 0 deletions 8 translate/docs/v3beta1.rst
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v3beta1
=======

.. toctree::
:maxdepth: 2

gapic/v3beta1/api
gapic/v3beta1/types
30 changes: 30 additions & 0 deletions 30 translate/google/cloud/translate_v3/__init__.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 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
#
# https://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 __future__ import absolute_import

from google.cloud.translate_v3 import types
from google.cloud.translate_v3.gapic import enums
from google.cloud.translate_v3.gapic import translation_service_client


class TranslationServiceClient(translation_service_client.TranslationServiceClient):
__doc__ = translation_service_client.TranslationServiceClient.__doc__
enums = enums


__all__ = ("enums", "types", "TranslationServiceClient")
Empty file added 0 translate/google/cloud/translate_v3/gapic/__init__.py
Show comments
View file
Open in desktop
Empty file.
91 changes: 91 additions & 0 deletions 91 translate/google/cloud/translate_v3/gapic/enums.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 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
#
# https://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.

"""Wrappers for protocol buffer enum types."""

import enum


class BatchTranslateMetadata(object):
class State(enum.IntEnum):
"""
State of the job.

Attributes:
STATE_UNSPECIFIED (int): Invalid.
RUNNING (int): Request is being processed.
SUCCEEDED (int): The batch is processed, and at least one item was successfully
processed.
FAILED (int): The batch is done and no item was successfully processed.
CANCELLING (int): Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
CANCELLED (int): The batch is done after the user has called the
longrunning.Operations.CancelOperation. Any records processed before the
cancel command are output as specified in the request.
"""

STATE_UNSPECIFIED = 0
RUNNING = 1
SUCCEEDED = 2
FAILED = 3
CANCELLING = 4
CANCELLED = 5


class CreateGlossaryMetadata(object):
class State(enum.IntEnum):
"""
Enumerates the possible states that the creation request can be in.

Attributes:
STATE_UNSPECIFIED (int): Invalid.
RUNNING (int): Request is being processed.
SUCCEEDED (int): The glossary was successfully created.
FAILED (int): Failed to create the glossary.
CANCELLING (int): Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
CANCELLED (int): The glossary creation request was successfully canceled.
"""

STATE_UNSPECIFIED = 0
RUNNING = 1
SUCCEEDED = 2
FAILED = 3
CANCELLING = 4
CANCELLED = 5


class DeleteGlossaryMetadata(object):
class State(enum.IntEnum):
"""
Enumerates the possible states that the creation request can be in.

Attributes:
STATE_UNSPECIFIED (int): Invalid.
RUNNING (int): Request is being processed.
SUCCEEDED (int): The glossary was successfully deleted.
FAILED (int): Failed to delete the glossary.
CANCELLING (int): Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
CANCELLED (int): The glossary deletion request was successfully canceled.
"""

STATE_UNSPECIFIED = 0
RUNNING = 1
SUCCEEDED = 2
FAILED = 3
CANCELLING = 4
CANCELLED = 5
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.