Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit e20fa00

Browse filesBrowse files
docs: Add documentation for enums (#476)
* docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: googleapis/googleapis@a391fd1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 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>
1 parent 409ad1c commit e20fa00
Copy full SHA for e20fa00

4 files changed

+170-6Lines changed: 170 additions & 6 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google/cloud/translate_v3/services/translation_service/client.py‎

Copy file name to clipboardExpand all lines: google/cloud/translate_v3/services/translation_service/client.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ def sample_delete_glossary():
18351835
# Done; return the response.
18361836
return response
18371837

1838-
def __enter__(self):
1838+
def __enter__(self) -> "TranslationServiceClient":
18391839
return self
18401840

18411841
def __exit__(self, type, value, traceback):
Collapse file

‎google/cloud/translate_v3/types/translation_service.py‎

Copy file name to clipboardExpand all lines: google/cloud/translate_v3/types/translation_service.py
+84-2Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,30 @@ class BatchTranslateMetadata(proto.Message):
11431143
"""
11441144

11451145
class State(proto.Enum):
1146-
r"""State of the job."""
1146+
r"""State of the job.
1147+
1148+
Values:
1149+
STATE_UNSPECIFIED (0):
1150+
Invalid.
1151+
RUNNING (1):
1152+
Request is being processed.
1153+
SUCCEEDED (2):
1154+
The batch is processed, and at least one item
1155+
was successfully processed.
1156+
FAILED (3):
1157+
The batch is done and no item was
1158+
successfully processed.
1159+
CANCELLING (4):
1160+
Request is in the process of being canceled
1161+
after caller invoked
1162+
longrunning.Operations.CancelOperation on the
1163+
request id.
1164+
CANCELLED (5):
1165+
The batch is done after the user has called
1166+
the longrunning.Operations.CancelOperation. Any
1167+
records processed before the cancel command are
1168+
output as specified in the request.
1169+
"""
11471170
STATE_UNSPECIFIED = 0
11481171
RUNNING = 1
11491172
SUCCEEDED = 2
@@ -1540,6 +1563,24 @@ class CreateGlossaryMetadata(proto.Message):
15401563
class State(proto.Enum):
15411564
r"""Enumerates the possible states that the creation request can
15421565
be in.
1566+
1567+
Values:
1568+
STATE_UNSPECIFIED (0):
1569+
Invalid.
1570+
RUNNING (1):
1571+
Request is being processed.
1572+
SUCCEEDED (2):
1573+
The glossary was successfully created.
1574+
FAILED (3):
1575+
Failed to create the glossary.
1576+
CANCELLING (4):
1577+
Request is in the process of being canceled
1578+
after caller invoked
1579+
longrunning.Operations.CancelOperation on the
1580+
request id.
1581+
CANCELLED (5):
1582+
The glossary creation request was
1583+
successfully canceled.
15431584
"""
15441585
STATE_UNSPECIFIED = 0
15451586
RUNNING = 1
@@ -1584,6 +1625,24 @@ class DeleteGlossaryMetadata(proto.Message):
15841625
class State(proto.Enum):
15851626
r"""Enumerates the possible states that the creation request can
15861627
be in.
1628+
1629+
Values:
1630+
STATE_UNSPECIFIED (0):
1631+
Invalid.
1632+
RUNNING (1):
1633+
Request is being processed.
1634+
SUCCEEDED (2):
1635+
The glossary was successfully deleted.
1636+
FAILED (3):
1637+
Failed to delete the glossary.
1638+
CANCELLING (4):
1639+
Request is in the process of being canceled
1640+
after caller invoked
1641+
longrunning.Operations.CancelOperation on the
1642+
request id.
1643+
CANCELLED (5):
1644+
The glossary deletion request was
1645+
successfully canceled.
15871646
"""
15881647
STATE_UNSPECIFIED = 0
15891648
RUNNING = 1
@@ -1989,7 +2048,30 @@ class BatchTranslateDocumentMetadata(proto.Message):
19892048
"""
19902049

19912050
class State(proto.Enum):
1992-
r"""State of the job."""
2051+
r"""State of the job.
2052+
2053+
Values:
2054+
STATE_UNSPECIFIED (0):
2055+
Invalid.
2056+
RUNNING (1):
2057+
Request is being processed.
2058+
SUCCEEDED (2):
2059+
The batch is processed, and at least one item
2060+
was successfully processed.
2061+
FAILED (3):
2062+
The batch is done and no item was
2063+
successfully processed.
2064+
CANCELLING (4):
2065+
Request is in the process of being canceled
2066+
after caller invoked
2067+
longrunning.Operations.CancelOperation on the
2068+
request id.
2069+
CANCELLED (5):
2070+
The batch is done after the user has called
2071+
the longrunning.Operations.CancelOperation. Any
2072+
records processed before the cancel command are
2073+
output as specified in the request.
2074+
"""
19932075
STATE_UNSPECIFIED = 0
19942076
RUNNING = 1
19952077
SUCCEEDED = 2
Collapse file

‎google/cloud/translate_v3beta1/services/translation_service/client.py‎

Copy file name to clipboardExpand all lines: google/cloud/translate_v3beta1/services/translation_service/client.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ def sample_delete_glossary():
17401740
# Done; return the response.
17411741
return response
17421742

1743-
def __enter__(self):
1743+
def __enter__(self) -> "TranslationServiceClient":
17441744
return self
17451745

17461746
def __exit__(self, type, value, traceback):
Collapse file

‎google/cloud/translate_v3beta1/types/translation_service.py‎

Copy file name to clipboardExpand all lines: google/cloud/translate_v3beta1/types/translation_service.py
+84-2Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,30 @@ class BatchTranslateMetadata(proto.Message):
11331133
"""
11341134

11351135
class State(proto.Enum):
1136-
r"""State of the job."""
1136+
r"""State of the job.
1137+
1138+
Values:
1139+
STATE_UNSPECIFIED (0):
1140+
Invalid.
1141+
RUNNING (1):
1142+
Request is being processed.
1143+
SUCCEEDED (2):
1144+
The batch is processed, and at least one item
1145+
was successfully processed.
1146+
FAILED (3):
1147+
The batch is done and no item was
1148+
successfully processed.
1149+
CANCELLING (4):
1150+
Request is in the process of being canceled
1151+
after caller invoked
1152+
longrunning.Operations.CancelOperation on the
1153+
request id.
1154+
CANCELLED (5):
1155+
The batch is done after the user has called
1156+
the longrunning.Operations.CancelOperation. Any
1157+
records processed before the cancel command are
1158+
output as specified in the request.
1159+
"""
11371160
STATE_UNSPECIFIED = 0
11381161
RUNNING = 1
11391162
SUCCEEDED = 2
@@ -1531,6 +1554,24 @@ class CreateGlossaryMetadata(proto.Message):
15311554
class State(proto.Enum):
15321555
r"""Enumerates the possible states that the creation request can
15331556
be in.
1557+
1558+
Values:
1559+
STATE_UNSPECIFIED (0):
1560+
Invalid.
1561+
RUNNING (1):
1562+
Request is being processed.
1563+
SUCCEEDED (2):
1564+
The glossary was successfully created.
1565+
FAILED (3):
1566+
Failed to create the glossary.
1567+
CANCELLING (4):
1568+
Request is in the process of being canceled
1569+
after caller invoked
1570+
longrunning.Operations.CancelOperation on the
1571+
request id.
1572+
CANCELLED (5):
1573+
The glossary creation request was
1574+
successfully canceled.
15341575
"""
15351576
STATE_UNSPECIFIED = 0
15361577
RUNNING = 1
@@ -1575,6 +1616,24 @@ class DeleteGlossaryMetadata(proto.Message):
15751616
class State(proto.Enum):
15761617
r"""Enumerates the possible states that the creation request can
15771618
be in.
1619+
1620+
Values:
1621+
STATE_UNSPECIFIED (0):
1622+
Invalid.
1623+
RUNNING (1):
1624+
Request is being processed.
1625+
SUCCEEDED (2):
1626+
The glossary was successfully deleted.
1627+
FAILED (3):
1628+
Failed to delete the glossary.
1629+
CANCELLING (4):
1630+
Request is in the process of being canceled
1631+
after caller invoked
1632+
longrunning.Operations.CancelOperation on the
1633+
request id.
1634+
CANCELLED (5):
1635+
The glossary deletion request was
1636+
successfully canceled.
15781637
"""
15791638
STATE_UNSPECIFIED = 0
15801639
RUNNING = 1
@@ -1980,7 +2039,30 @@ class BatchTranslateDocumentMetadata(proto.Message):
19802039
"""
19812040

19822041
class State(proto.Enum):
1983-
r"""State of the job."""
2042+
r"""State of the job.
2043+
2044+
Values:
2045+
STATE_UNSPECIFIED (0):
2046+
Invalid.
2047+
RUNNING (1):
2048+
Request is being processed.
2049+
SUCCEEDED (2):
2050+
The batch is processed, and at least one item
2051+
was successfully processed.
2052+
FAILED (3):
2053+
The batch is done and no item was
2054+
successfully processed.
2055+
CANCELLING (4):
2056+
Request is in the process of being canceled
2057+
after caller invoked
2058+
longrunning.Operations.CancelOperation on the
2059+
request id.
2060+
CANCELLED (5):
2061+
The batch is done after the user has called
2062+
the longrunning.Operations.CancelOperation. Any
2063+
records processed before the cancel command are
2064+
output as specified in the request.
2065+
"""
19842066
STATE_UNSPECIFIED = 0
19852067
RUNNING = 1
19862068
SUCCEEDED = 2

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.