Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 37abda1

Browse files
docs: Add documentation for enums (#271)
* 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 361f779 commit 37abda1

File tree

3 files changed

+40
-5
lines changed

3 files changed

+40
-5
lines changed

google/cloud/video/transcoder_v1/services/transcoder_service/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ def sample_delete_job_template():
13251325
metadata=metadata,
13261326
)
13271327

1328-
def __enter__(self):
1328+
def __enter__(self) -> "TranscoderServiceClient":
13291329
return self
13301330

13311331
def __exit__(self, type, value, traceback):

google/cloud/video/transcoder_v1/types/resources.py

+38-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,22 @@ class Job(proto.Message):
115115
"""
116116

117117
class ProcessingState(proto.Enum):
118-
r"""The current state of the job."""
118+
r"""The current state of the job.
119+
120+
Values:
121+
PROCESSING_STATE_UNSPECIFIED (0):
122+
The processing state is not specified.
123+
PENDING (1):
124+
The job is enqueued and will be picked up for
125+
processing soon.
126+
RUNNING (2):
127+
The job is being processed.
128+
SUCCEEDED (3):
129+
The job has been completed successfully.
130+
FAILED (4):
131+
The job has failed. For additional information, see
132+
``failure_reason`` and ``failure_details``
133+
"""
119134
PROCESSING_STATE_UNSPECIFIED = 0
120135
PENDING = 1
121136
RUNNING = 2
@@ -536,7 +551,18 @@ class Manifest(proto.Message):
536551
"""
537552

538553
class ManifestType(proto.Enum):
539-
r"""The manifest type can be either ``HLS`` or ``DASH``."""
554+
r"""The manifest type can be either ``HLS`` or ``DASH``.
555+
556+
Values:
557+
MANIFEST_TYPE_UNSPECIFIED (0):
558+
The manifest type is not specified.
559+
HLS (1):
560+
Create ``HLS`` manifest. The corresponding file extension is
561+
``.m3u8``.
562+
DASH (2):
563+
Create ``DASH`` manifest. The corresponding file extension
564+
is ``.mpd``.
565+
"""
540566
MANIFEST_TYPE_UNSPECIFIED = 0
541567
HLS = 1
542568
DASH = 2
@@ -723,7 +749,16 @@ class Overlay(proto.Message):
723749
"""
724750

725751
class FadeType(proto.Enum):
726-
r"""Fade type for the overlay: ``FADE_IN`` or ``FADE_OUT``."""
752+
r"""Fade type for the overlay: ``FADE_IN`` or ``FADE_OUT``.
753+
754+
Values:
755+
FADE_TYPE_UNSPECIFIED (0):
756+
The fade type is not specified.
757+
FADE_IN (1):
758+
Fade the overlay object into view.
759+
FADE_OUT (2):
760+
Fade the overlay object out of view.
761+
"""
727762
FADE_TYPE_UNSPECIFIED = 0
728763
FADE_IN = 1
729764
FADE_OUT = 2

samples/generated_samples/snippet_metadata_google.cloud.video.transcoder.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-video-transcoder",
11-
"version": "1.6.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)