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

Commit 6bc0894

Browse files
docs: Add documentation for enums (#124)
* 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 * restore rest support Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 884897d commit 6bc0894

File tree

5 files changed

+88
-4
lines changed

5 files changed

+88
-4
lines changed

google/cloud/video/stitcher_v1/services/video_stitcher_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2830,7 +2830,7 @@ def sample_get_live_session():
28302830
# Done; return the response.
28312831
return response
28322832

2833-
def __enter__(self):
2833+
def __enter__(self) -> "VideoStitcherServiceClient":
28342834
return self
28352835

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

google/cloud/video/stitcher_v1/types/companions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ class CompanionAds(proto.Message):
4545
class DisplayRequirement(proto.Enum):
4646
r"""Indicates how many of the companions should be displayed with
4747
the ad.
48+
49+
Values:
50+
DISPLAY_REQUIREMENT_UNSPECIFIED (0):
51+
Required companions are not specified. The
52+
default is ALL.
53+
ALL (1):
54+
All companions are required to be displayed.
55+
ANY (2):
56+
At least one of companions needs to be
57+
displayed.
58+
NONE (3):
59+
All companions are optional for display.
4860
"""
4961
DISPLAY_REQUIREMENT_UNSPECIFIED = 0
5062
ALL = 1

google/cloud/video/stitcher_v1/types/events.py

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,60 @@ class Event(proto.Message):
4242
"""
4343

4444
class EventType(proto.Enum):
45-
r"""Describes the event that occurred."""
45+
r"""Describes the event that occurred.
46+
47+
Values:
48+
EVENT_TYPE_UNSPECIFIED (0):
49+
The event type is unspecified.
50+
CREATIVE_VIEW (1):
51+
First frame of creative ad viewed.
52+
START (2):
53+
Creative ad started.
54+
BREAK_START (3):
55+
Start of an ad break.
56+
BREAK_END (4):
57+
End of an ad break.
58+
IMPRESSION (5):
59+
Impression.
60+
FIRST_QUARTILE (6):
61+
First quartile progress.
62+
MIDPOINT (7):
63+
Midpoint progress.
64+
THIRD_QUARTILE (8):
65+
Third quartile progress.
66+
COMPLETE (9):
67+
Ad progress completed.
68+
PROGRESS (10):
69+
Specific progress event with an offset.
70+
MUTE (11):
71+
Player muted.
72+
UNMUTE (12):
73+
Player unmuted.
74+
PAUSE (13):
75+
Player paused.
76+
CLICK (14):
77+
Click event.
78+
CLICK_THROUGH (15):
79+
Click-through event.
80+
REWIND (16):
81+
Player rewinding.
82+
RESUME (17):
83+
Player resumed.
84+
ERROR (18):
85+
Error event.
86+
EXPAND (21):
87+
Ad expanded to a larger size.
88+
COLLAPSE (22):
89+
Ad collapsed to a smaller size.
90+
CLOSE (24):
91+
Non-linear ad closed.
92+
CLOSE_LINEAR (25):
93+
Linear ad closed.
94+
SKIP (26):
95+
Ad skipped.
96+
ACCEPT_INVITATION (27):
97+
Accept invitation event.
98+
"""
4699
EVENT_TYPE_UNSPECIFIED = 0
47100
CREATIVE_VIEW = 1
48101
START = 2

google/cloud/video/stitcher_v1/types/sessions.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,16 @@ class StitchingPolicy(proto.Enum):
305305
r"""Defines the stitcher behavior in case an ad does not align exactly
306306
with the ad break boundaries. If not specified, the default is
307307
COMPLETE_AD.
308+
309+
Values:
310+
STITCHING_POLICY_UNSPECIFIED (0):
311+
Stitching policy is not specified.
312+
COMPLETE_AD (1):
313+
Finishes stitching the current ad before
314+
returning to content.
315+
CUT_CURRENT (3):
316+
Cuts an ad short and returns to content in
317+
the middle of the ad.
308318
"""
309319
STITCHING_POLICY_UNSPECIFIED = 0
310320
COMPLETE_AD = 1
@@ -390,7 +400,16 @@ class ManifestOptions(proto.Message):
390400
"""
391401

392402
class OrderPolicy(proto.Enum):
393-
r"""Defines the ordering policy during manifest generation."""
403+
r"""Defines the ordering policy during manifest generation.
404+
405+
Values:
406+
ORDER_POLICY_UNSPECIFIED (0):
407+
Ordering policy is not specified.
408+
ASCENDING (1):
409+
Order by ascending.
410+
DESCENDING (2):
411+
Order by descending.
412+
"""
394413
ORDER_POLICY_UNSPECIFIED = 0
395414
ASCENDING = 1
396415
DESCENDING = 2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-video-stitcher",
11-
"version": "0.6.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)