transcodely 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- buf/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/validate_pb2.py +469 -0
- buf/validate/validate_pb2.pyi +651 -0
- transcodely/__init__.py +175 -0
- transcodely/_codec/__init__.py +0 -0
- transcodely/_codec/json_codec.py +193 -0
- transcodely/_transport/__init__.py +0 -0
- transcodely/_transport/error_mapping.py +102 -0
- transcodely/_transport/headers.py +31 -0
- transcodely/_transport/transport.py +312 -0
- transcodely/client.py +160 -0
- transcodely/errors.py +115 -0
- transcodely/pagination.py +53 -0
- transcodely/py.typed +0 -0
- transcodely/resources/__init__.py +0 -0
- transcodely/resources/_helpers.py +29 -0
- transcodely/resources/api_keys.py +48 -0
- transcodely/resources/apps.py +59 -0
- transcodely/resources/events.py +118 -0
- transcodely/resources/health.py +19 -0
- transcodely/resources/jobs.py +120 -0
- transcodely/resources/memberships.py +54 -0
- transcodely/resources/organizations.py +73 -0
- transcodely/resources/origins.py +55 -0
- transcodely/resources/presets.py +63 -0
- transcodely/resources/users.py +46 -0
- transcodely/resources/videos.py +114 -0
- transcodely/resources/webhook_endpoints.py +242 -0
- transcodely/streaming.py +47 -0
- transcodely/types.py +570 -0
- transcodely/v1/api_key_pb2.py +69 -0
- transcodely/v1/api_key_pb2.pyi +97 -0
- transcodely/v1/app_pb2.py +107 -0
- transcodely/v1/app_pb2.pyi +219 -0
- transcodely/v1/codec_av1_pb2.py +55 -0
- transcodely/v1/codec_av1_pb2.pyi +34 -0
- transcodely/v1/codec_h264_pb2.py +71 -0
- transcodely/v1/codec_h264_pb2.pyi +44 -0
- transcodely/v1/codec_h265_pb2.py +69 -0
- transcodely/v1/codec_h265_pb2.pyi +42 -0
- transcodely/v1/codec_vp9_pb2.py +57 -0
- transcodely/v1/codec_vp9_pb2.pyi +30 -0
- transcodely/v1/common_pb2.py +67 -0
- transcodely/v1/common_pb2.pyi +171 -0
- transcodely/v1/content_aware_pb2.py +56 -0
- transcodely/v1/content_aware_pb2.pyi +51 -0
- transcodely/v1/drm_pb2.py +65 -0
- transcodely/v1/drm_pb2.pyi +68 -0
- transcodely/v1/hdr_pb2.py +57 -0
- transcodely/v1/hdr_pb2.pyi +64 -0
- transcodely/v1/health_pb2.py +44 -0
- transcodely/v1/health_pb2.pyi +44 -0
- transcodely/v1/job_pb2.py +201 -0
- transcodely/v1/job_pb2.pyi +546 -0
- transcodely/v1/media_pb2.py +43 -0
- transcodely/v1/media_pb2.pyi +100 -0
- transcodely/v1/membership_pb2.py +71 -0
- transcodely/v1/membership_pb2.pyi +122 -0
- transcodely/v1/organization_pb2.py +81 -0
- transcodely/v1/organization_pb2.pyi +121 -0
- transcodely/v1/origin_pb2.py +157 -0
- transcodely/v1/origin_pb2.pyi +317 -0
- transcodely/v1/preset_pb2.py +192 -0
- transcodely/v1/preset_pb2.pyi +290 -0
- transcodely/v1/streaming_pb2.py +59 -0
- transcodely/v1/streaming_pb2.pyi +56 -0
- transcodely/v1/subtitles_pb2.py +69 -0
- transcodely/v1/subtitles_pb2.pyi +75 -0
- transcodely/v1/thumbnails_pb2.py +63 -0
- transcodely/v1/thumbnails_pb2.pyi +74 -0
- transcodely/v1/user_pb2.py +72 -0
- transcodely/v1/user_pb2.pyi +137 -0
- transcodely/v1/video_pb2.py +166 -0
- transcodely/v1/video_pb2.pyi +367 -0
- transcodely/v1/webhook_pb2.py +151 -0
- transcodely/v1/webhook_pb2.pyi +336 -0
- transcodely/version.py +11 -0
- transcodely/webhooks/__init__.py +44 -0
- transcodely/webhooks/construct_event.py +111 -0
- transcodely/webhooks/signature.py +110 -0
- transcodely/webhooks/types.py +115 -0
- transcodely-0.2.0.dist-info/METADATA +349 -0
- transcodely-0.2.0.dist-info/RECORD +86 -0
- transcodely-0.2.0.dist-info/WHEEL +4 -0
- transcodely-0.2.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from transcodely.v1 import common_pb2 as _common_pb2
|
|
4
|
+
from transcodely.v1 import media_pb2 as _media_pb2
|
|
5
|
+
from transcodely.v1 import codec_h264_pb2 as _codec_h264_pb2
|
|
6
|
+
from transcodely.v1 import codec_h265_pb2 as _codec_h265_pb2
|
|
7
|
+
from transcodely.v1 import codec_vp9_pb2 as _codec_vp9_pb2
|
|
8
|
+
from transcodely.v1 import codec_av1_pb2 as _codec_av1_pb2
|
|
9
|
+
from transcodely.v1 import origin_pb2 as _origin_pb2
|
|
10
|
+
from transcodely.v1 import streaming_pb2 as _streaming_pb2
|
|
11
|
+
from transcodely.v1 import thumbnails_pb2 as _thumbnails_pb2
|
|
12
|
+
from transcodely.v1 import subtitles_pb2 as _subtitles_pb2
|
|
13
|
+
from transcodely.v1 import drm_pb2 as _drm_pb2
|
|
14
|
+
from transcodely.v1 import hdr_pb2 as _hdr_pb2
|
|
15
|
+
from transcodely.v1 import content_aware_pb2 as _content_aware_pb2
|
|
16
|
+
from google.protobuf.internal import containers as _containers
|
|
17
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
18
|
+
from google.protobuf import descriptor as _descriptor
|
|
19
|
+
from google.protobuf import message as _message
|
|
20
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
23
|
+
|
|
24
|
+
class JobStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
25
|
+
__slots__ = ()
|
|
26
|
+
JOB_STATUS_UNSPECIFIED: _ClassVar[JobStatus]
|
|
27
|
+
JOB_STATUS_PENDING: _ClassVar[JobStatus]
|
|
28
|
+
JOB_STATUS_PROBING: _ClassVar[JobStatus]
|
|
29
|
+
JOB_STATUS_PROCESSING: _ClassVar[JobStatus]
|
|
30
|
+
JOB_STATUS_COMPLETED: _ClassVar[JobStatus]
|
|
31
|
+
JOB_STATUS_FAILED: _ClassVar[JobStatus]
|
|
32
|
+
JOB_STATUS_CANCELED: _ClassVar[JobStatus]
|
|
33
|
+
JOB_STATUS_PARTIAL: _ClassVar[JobStatus]
|
|
34
|
+
JOB_STATUS_AWAITING_CONFIRMATION: _ClassVar[JobStatus]
|
|
35
|
+
|
|
36
|
+
class OutputStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
37
|
+
__slots__ = ()
|
|
38
|
+
OUTPUT_STATUS_UNSPECIFIED: _ClassVar[OutputStatus]
|
|
39
|
+
OUTPUT_STATUS_PENDING: _ClassVar[OutputStatus]
|
|
40
|
+
OUTPUT_STATUS_PROCESSING: _ClassVar[OutputStatus]
|
|
41
|
+
OUTPUT_STATUS_COMPLETED: _ClassVar[OutputStatus]
|
|
42
|
+
OUTPUT_STATUS_FAILED: _ClassVar[OutputStatus]
|
|
43
|
+
OUTPUT_STATUS_CANCELED: _ClassVar[OutputStatus]
|
|
44
|
+
|
|
45
|
+
class JobPriority(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
46
|
+
__slots__ = ()
|
|
47
|
+
JOB_PRIORITY_UNSPECIFIED: _ClassVar[JobPriority]
|
|
48
|
+
JOB_PRIORITY_ECONOMY: _ClassVar[JobPriority]
|
|
49
|
+
JOB_PRIORITY_STANDARD: _ClassVar[JobPriority]
|
|
50
|
+
JOB_PRIORITY_PREMIUM: _ClassVar[JobPriority]
|
|
51
|
+
|
|
52
|
+
class WatchEventType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
53
|
+
__slots__ = ()
|
|
54
|
+
WATCH_EVENT_TYPE_UNSPECIFIED: _ClassVar[WatchEventType]
|
|
55
|
+
WATCH_EVENT_TYPE_SNAPSHOT: _ClassVar[WatchEventType]
|
|
56
|
+
WATCH_EVENT_TYPE_PROGRESS: _ClassVar[WatchEventType]
|
|
57
|
+
WATCH_EVENT_TYPE_STATUS_CHANGE: _ClassVar[WatchEventType]
|
|
58
|
+
WATCH_EVENT_TYPE_COMPLETED: _ClassVar[WatchEventType]
|
|
59
|
+
WATCH_EVENT_TYPE_HEARTBEAT: _ClassVar[WatchEventType]
|
|
60
|
+
JOB_STATUS_UNSPECIFIED: JobStatus
|
|
61
|
+
JOB_STATUS_PENDING: JobStatus
|
|
62
|
+
JOB_STATUS_PROBING: JobStatus
|
|
63
|
+
JOB_STATUS_PROCESSING: JobStatus
|
|
64
|
+
JOB_STATUS_COMPLETED: JobStatus
|
|
65
|
+
JOB_STATUS_FAILED: JobStatus
|
|
66
|
+
JOB_STATUS_CANCELED: JobStatus
|
|
67
|
+
JOB_STATUS_PARTIAL: JobStatus
|
|
68
|
+
JOB_STATUS_AWAITING_CONFIRMATION: JobStatus
|
|
69
|
+
OUTPUT_STATUS_UNSPECIFIED: OutputStatus
|
|
70
|
+
OUTPUT_STATUS_PENDING: OutputStatus
|
|
71
|
+
OUTPUT_STATUS_PROCESSING: OutputStatus
|
|
72
|
+
OUTPUT_STATUS_COMPLETED: OutputStatus
|
|
73
|
+
OUTPUT_STATUS_FAILED: OutputStatus
|
|
74
|
+
OUTPUT_STATUS_CANCELED: OutputStatus
|
|
75
|
+
JOB_PRIORITY_UNSPECIFIED: JobPriority
|
|
76
|
+
JOB_PRIORITY_ECONOMY: JobPriority
|
|
77
|
+
JOB_PRIORITY_STANDARD: JobPriority
|
|
78
|
+
JOB_PRIORITY_PREMIUM: JobPriority
|
|
79
|
+
WATCH_EVENT_TYPE_UNSPECIFIED: WatchEventType
|
|
80
|
+
WATCH_EVENT_TYPE_SNAPSHOT: WatchEventType
|
|
81
|
+
WATCH_EVENT_TYPE_PROGRESS: WatchEventType
|
|
82
|
+
WATCH_EVENT_TYPE_STATUS_CHANGE: WatchEventType
|
|
83
|
+
WATCH_EVENT_TYPE_COMPLETED: WatchEventType
|
|
84
|
+
WATCH_EVENT_TYPE_HEARTBEAT: WatchEventType
|
|
85
|
+
|
|
86
|
+
class AudioTrackConfig(_message.Message):
|
|
87
|
+
__slots__ = ("language", "label", "source_track", "is_default")
|
|
88
|
+
LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
SOURCE_TRACK_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
IS_DEFAULT_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
language: str
|
|
93
|
+
label: str
|
|
94
|
+
source_track: int
|
|
95
|
+
is_default: bool
|
|
96
|
+
def __init__(self, language: _Optional[str] = ..., label: _Optional[str] = ..., source_track: _Optional[int] = ..., is_default: bool = ...) -> None: ...
|
|
97
|
+
|
|
98
|
+
class VideoVariant(_message.Message):
|
|
99
|
+
__slots__ = ("codec", "resolution", "quality", "framerate", "width", "height", "bitrate", "h264", "h265", "vp9", "av1", "hdr")
|
|
100
|
+
CODEC_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
RESOLUTION_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
QUALITY_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
FRAMERATE_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
BITRATE_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
H264_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
H265_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
VP9_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
AV1_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
HDR_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
codec: _common_pb2.VideoCodec
|
|
113
|
+
resolution: _common_pb2.Resolution
|
|
114
|
+
quality: _common_pb2.QualityTier
|
|
115
|
+
framerate: int
|
|
116
|
+
width: int
|
|
117
|
+
height: int
|
|
118
|
+
bitrate: int
|
|
119
|
+
h264: _codec_h264_pb2.H264Options
|
|
120
|
+
h265: _codec_h265_pb2.H265Options
|
|
121
|
+
vp9: _codec_vp9_pb2.VP9Options
|
|
122
|
+
av1: _codec_av1_pb2.AV1Options
|
|
123
|
+
hdr: _hdr_pb2.HDRConfig
|
|
124
|
+
def __init__(self, codec: _Optional[_Union[_common_pb2.VideoCodec, str]] = ..., resolution: _Optional[_Union[_common_pb2.Resolution, str]] = ..., quality: _Optional[_Union[_common_pb2.QualityTier, str]] = ..., framerate: _Optional[int] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., bitrate: _Optional[int] = ..., h264: _Optional[_Union[_codec_h264_pb2.H264Options, _Mapping]] = ..., h265: _Optional[_Union[_codec_h265_pb2.H265Options, _Mapping]] = ..., vp9: _Optional[_Union[_codec_vp9_pb2.VP9Options, _Mapping]] = ..., av1: _Optional[_Union[_codec_av1_pb2.AV1Options, _Mapping]] = ..., hdr: _Optional[_Union[_hdr_pb2.HDRConfig, _Mapping]] = ...) -> None: ...
|
|
125
|
+
|
|
126
|
+
class HLSConfig(_message.Message):
|
|
127
|
+
__slots__ = ("manifest", "segment_format", "playlist_type", "variant_pattern")
|
|
128
|
+
MANIFEST_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
SEGMENT_FORMAT_FIELD_NUMBER: _ClassVar[int]
|
|
130
|
+
PLAYLIST_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
131
|
+
VARIANT_PATTERN_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
manifest: str
|
|
133
|
+
segment_format: _streaming_pb2.HLSSegmentFormat
|
|
134
|
+
playlist_type: _streaming_pb2.HLSPlaylistType
|
|
135
|
+
variant_pattern: str
|
|
136
|
+
def __init__(self, manifest: _Optional[str] = ..., segment_format: _Optional[_Union[_streaming_pb2.HLSSegmentFormat, str]] = ..., playlist_type: _Optional[_Union[_streaming_pb2.HLSPlaylistType, str]] = ..., variant_pattern: _Optional[str] = ...) -> None: ...
|
|
137
|
+
|
|
138
|
+
class DASHConfig(_message.Message):
|
|
139
|
+
__slots__ = ("manifest",)
|
|
140
|
+
MANIFEST_FIELD_NUMBER: _ClassVar[int]
|
|
141
|
+
manifest: str
|
|
142
|
+
def __init__(self, manifest: _Optional[str] = ...) -> None: ...
|
|
143
|
+
|
|
144
|
+
class SegmentConfig(_message.Message):
|
|
145
|
+
__slots__ = ("duration", "gop_alignment", "gop_size")
|
|
146
|
+
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
GOP_ALIGNMENT_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
GOP_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
149
|
+
duration: int
|
|
150
|
+
gop_alignment: _streaming_pb2.GOPAlignmentMode
|
|
151
|
+
gop_size: int
|
|
152
|
+
def __init__(self, duration: _Optional[int] = ..., gop_alignment: _Optional[_Union[_streaming_pb2.GOPAlignmentMode, str]] = ..., gop_size: _Optional[int] = ...) -> None: ...
|
|
153
|
+
|
|
154
|
+
class OutputSpec(_message.Message):
|
|
155
|
+
__slots__ = ("type", "video", "audio", "hls", "dash", "segments", "path_template", "preset", "subtitle_tracks", "drm", "content_aware", "encoding_mode", "effective_path_template", "disable_audio")
|
|
156
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
157
|
+
VIDEO_FIELD_NUMBER: _ClassVar[int]
|
|
158
|
+
AUDIO_FIELD_NUMBER: _ClassVar[int]
|
|
159
|
+
HLS_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
DASH_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
SEGMENTS_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
PATH_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
|
163
|
+
PRESET_FIELD_NUMBER: _ClassVar[int]
|
|
164
|
+
SUBTITLE_TRACKS_FIELD_NUMBER: _ClassVar[int]
|
|
165
|
+
DRM_FIELD_NUMBER: _ClassVar[int]
|
|
166
|
+
CONTENT_AWARE_FIELD_NUMBER: _ClassVar[int]
|
|
167
|
+
ENCODING_MODE_FIELD_NUMBER: _ClassVar[int]
|
|
168
|
+
EFFECTIVE_PATH_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
|
169
|
+
DISABLE_AUDIO_FIELD_NUMBER: _ClassVar[int]
|
|
170
|
+
type: _common_pb2.OutputFormat
|
|
171
|
+
video: _containers.RepeatedCompositeFieldContainer[VideoVariant]
|
|
172
|
+
audio: _containers.RepeatedCompositeFieldContainer[AudioTrackConfig]
|
|
173
|
+
hls: HLSConfig
|
|
174
|
+
dash: DASHConfig
|
|
175
|
+
segments: SegmentConfig
|
|
176
|
+
path_template: str
|
|
177
|
+
preset: str
|
|
178
|
+
subtitle_tracks: _containers.RepeatedCompositeFieldContainer[_subtitles_pb2.SubtitleTrack]
|
|
179
|
+
drm: _drm_pb2.DRMConfig
|
|
180
|
+
content_aware: _content_aware_pb2.ContentAwareConfig
|
|
181
|
+
encoding_mode: str
|
|
182
|
+
effective_path_template: str
|
|
183
|
+
disable_audio: bool
|
|
184
|
+
def __init__(self, type: _Optional[_Union[_common_pb2.OutputFormat, str]] = ..., video: _Optional[_Iterable[_Union[VideoVariant, _Mapping]]] = ..., audio: _Optional[_Iterable[_Union[AudioTrackConfig, _Mapping]]] = ..., hls: _Optional[_Union[HLSConfig, _Mapping]] = ..., dash: _Optional[_Union[DASHConfig, _Mapping]] = ..., segments: _Optional[_Union[SegmentConfig, _Mapping]] = ..., path_template: _Optional[str] = ..., preset: _Optional[str] = ..., subtitle_tracks: _Optional[_Iterable[_Union[_subtitles_pb2.SubtitleTrack, _Mapping]]] = ..., drm: _Optional[_Union[_drm_pb2.DRMConfig, _Mapping]] = ..., content_aware: _Optional[_Union[_content_aware_pb2.ContentAwareConfig, _Mapping]] = ..., encoding_mode: _Optional[str] = ..., effective_path_template: _Optional[str] = ..., disable_audio: bool = ...) -> None: ...
|
|
185
|
+
|
|
186
|
+
class PricingSnapshot(_message.Message):
|
|
187
|
+
__slots__ = ("base_price", "codec_multiplier", "resolution_multiplier", "framerate_multiplier", "quality_multiplier", "resolution_tier", "actual_framerate", "pixel_count", "feature_multiplier")
|
|
188
|
+
BASE_PRICE_FIELD_NUMBER: _ClassVar[int]
|
|
189
|
+
CODEC_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
190
|
+
RESOLUTION_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
191
|
+
FRAMERATE_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
192
|
+
QUALITY_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
193
|
+
RESOLUTION_TIER_FIELD_NUMBER: _ClassVar[int]
|
|
194
|
+
ACTUAL_FRAMERATE_FIELD_NUMBER: _ClassVar[int]
|
|
195
|
+
PIXEL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
196
|
+
FEATURE_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
197
|
+
base_price: float
|
|
198
|
+
codec_multiplier: float
|
|
199
|
+
resolution_multiplier: float
|
|
200
|
+
framerate_multiplier: float
|
|
201
|
+
quality_multiplier: float
|
|
202
|
+
resolution_tier: _common_pb2.Resolution
|
|
203
|
+
actual_framerate: float
|
|
204
|
+
pixel_count: int
|
|
205
|
+
feature_multiplier: float
|
|
206
|
+
def __init__(self, base_price: _Optional[float] = ..., codec_multiplier: _Optional[float] = ..., resolution_multiplier: _Optional[float] = ..., framerate_multiplier: _Optional[float] = ..., quality_multiplier: _Optional[float] = ..., resolution_tier: _Optional[_Union[_common_pb2.Resolution, str]] = ..., actual_framerate: _Optional[float] = ..., pixel_count: _Optional[int] = ..., feature_multiplier: _Optional[float] = ...) -> None: ...
|
|
207
|
+
|
|
208
|
+
class VariantPricingSnapshot(_message.Message):
|
|
209
|
+
__slots__ = ("index", "codec", "resolution", "framerate", "quality", "width", "height", "base_price", "codec_multiplier", "resolution_multiplier", "framerate_multiplier", "quality_multiplier", "resolution_tier", "actual_framerate", "pixel_count", "estimated_cost", "actual_cost", "status", "progress", "feature_multiplier")
|
|
210
|
+
INDEX_FIELD_NUMBER: _ClassVar[int]
|
|
211
|
+
CODEC_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
+
RESOLUTION_FIELD_NUMBER: _ClassVar[int]
|
|
213
|
+
FRAMERATE_FIELD_NUMBER: _ClassVar[int]
|
|
214
|
+
QUALITY_FIELD_NUMBER: _ClassVar[int]
|
|
215
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
216
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
217
|
+
BASE_PRICE_FIELD_NUMBER: _ClassVar[int]
|
|
218
|
+
CODEC_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
219
|
+
RESOLUTION_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
220
|
+
FRAMERATE_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
221
|
+
QUALITY_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
222
|
+
RESOLUTION_TIER_FIELD_NUMBER: _ClassVar[int]
|
|
223
|
+
ACTUAL_FRAMERATE_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
PIXEL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
225
|
+
ESTIMATED_COST_FIELD_NUMBER: _ClassVar[int]
|
|
226
|
+
ACTUAL_COST_FIELD_NUMBER: _ClassVar[int]
|
|
227
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
228
|
+
PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
229
|
+
FEATURE_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
|
230
|
+
index: int
|
|
231
|
+
codec: _common_pb2.VideoCodec
|
|
232
|
+
resolution: _common_pb2.Resolution
|
|
233
|
+
framerate: int
|
|
234
|
+
quality: _common_pb2.QualityTier
|
|
235
|
+
width: int
|
|
236
|
+
height: int
|
|
237
|
+
base_price: float
|
|
238
|
+
codec_multiplier: float
|
|
239
|
+
resolution_multiplier: float
|
|
240
|
+
framerate_multiplier: float
|
|
241
|
+
quality_multiplier: float
|
|
242
|
+
resolution_tier: _common_pb2.Resolution
|
|
243
|
+
actual_framerate: float
|
|
244
|
+
pixel_count: int
|
|
245
|
+
estimated_cost: float
|
|
246
|
+
actual_cost: float
|
|
247
|
+
status: str
|
|
248
|
+
progress: int
|
|
249
|
+
feature_multiplier: float
|
|
250
|
+
def __init__(self, index: _Optional[int] = ..., codec: _Optional[_Union[_common_pb2.VideoCodec, str]] = ..., resolution: _Optional[_Union[_common_pb2.Resolution, str]] = ..., framerate: _Optional[int] = ..., quality: _Optional[_Union[_common_pb2.QualityTier, str]] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., base_price: _Optional[float] = ..., codec_multiplier: _Optional[float] = ..., resolution_multiplier: _Optional[float] = ..., framerate_multiplier: _Optional[float] = ..., quality_multiplier: _Optional[float] = ..., resolution_tier: _Optional[_Union[_common_pb2.Resolution, str]] = ..., actual_framerate: _Optional[float] = ..., pixel_count: _Optional[int] = ..., estimated_cost: _Optional[float] = ..., actual_cost: _Optional[float] = ..., status: _Optional[str] = ..., progress: _Optional[int] = ..., feature_multiplier: _Optional[float] = ...) -> None: ...
|
|
251
|
+
|
|
252
|
+
class JobOutput(_message.Message):
|
|
253
|
+
__slots__ = ("id", "spec", "status", "progress", "output_url", "output_size_bytes", "duration_seconds", "pricing", "estimated_duration_seconds", "estimated_cost", "actual_cost", "error_code", "error_message", "started_at", "completed_at", "preset_id", "preset_slug", "variant_pricing", "object", "width", "height", "average_bitrate_kbps", "variant_results")
|
|
254
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
255
|
+
SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
256
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
257
|
+
PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
258
|
+
OUTPUT_URL_FIELD_NUMBER: _ClassVar[int]
|
|
259
|
+
OUTPUT_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
260
|
+
DURATION_SECONDS_FIELD_NUMBER: _ClassVar[int]
|
|
261
|
+
PRICING_FIELD_NUMBER: _ClassVar[int]
|
|
262
|
+
ESTIMATED_DURATION_SECONDS_FIELD_NUMBER: _ClassVar[int]
|
|
263
|
+
ESTIMATED_COST_FIELD_NUMBER: _ClassVar[int]
|
|
264
|
+
ACTUAL_COST_FIELD_NUMBER: _ClassVar[int]
|
|
265
|
+
ERROR_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
266
|
+
ERROR_MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
267
|
+
STARTED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
268
|
+
COMPLETED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
269
|
+
PRESET_ID_FIELD_NUMBER: _ClassVar[int]
|
|
270
|
+
PRESET_SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
271
|
+
VARIANT_PRICING_FIELD_NUMBER: _ClassVar[int]
|
|
272
|
+
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
|
273
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
274
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
275
|
+
AVERAGE_BITRATE_KBPS_FIELD_NUMBER: _ClassVar[int]
|
|
276
|
+
VARIANT_RESULTS_FIELD_NUMBER: _ClassVar[int]
|
|
277
|
+
id: str
|
|
278
|
+
spec: OutputSpec
|
|
279
|
+
status: OutputStatus
|
|
280
|
+
progress: int
|
|
281
|
+
output_url: str
|
|
282
|
+
output_size_bytes: int
|
|
283
|
+
duration_seconds: int
|
|
284
|
+
pricing: PricingSnapshot
|
|
285
|
+
estimated_duration_seconds: int
|
|
286
|
+
estimated_cost: float
|
|
287
|
+
actual_cost: float
|
|
288
|
+
error_code: str
|
|
289
|
+
error_message: str
|
|
290
|
+
started_at: _timestamp_pb2.Timestamp
|
|
291
|
+
completed_at: _timestamp_pb2.Timestamp
|
|
292
|
+
preset_id: str
|
|
293
|
+
preset_slug: str
|
|
294
|
+
variant_pricing: _containers.RepeatedCompositeFieldContainer[VariantPricingSnapshot]
|
|
295
|
+
object: str
|
|
296
|
+
width: int
|
|
297
|
+
height: int
|
|
298
|
+
average_bitrate_kbps: int
|
|
299
|
+
variant_results: _containers.RepeatedCompositeFieldContainer[OutputVariantResult]
|
|
300
|
+
def __init__(self, id: _Optional[str] = ..., spec: _Optional[_Union[OutputSpec, _Mapping]] = ..., status: _Optional[_Union[OutputStatus, str]] = ..., progress: _Optional[int] = ..., output_url: _Optional[str] = ..., output_size_bytes: _Optional[int] = ..., duration_seconds: _Optional[int] = ..., pricing: _Optional[_Union[PricingSnapshot, _Mapping]] = ..., estimated_duration_seconds: _Optional[int] = ..., estimated_cost: _Optional[float] = ..., actual_cost: _Optional[float] = ..., error_code: _Optional[str] = ..., error_message: _Optional[str] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., completed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., preset_id: _Optional[str] = ..., preset_slug: _Optional[str] = ..., variant_pricing: _Optional[_Iterable[_Union[VariantPricingSnapshot, _Mapping]]] = ..., object: _Optional[str] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., average_bitrate_kbps: _Optional[int] = ..., variant_results: _Optional[_Iterable[_Union[OutputVariantResult, _Mapping]]] = ...) -> None: ...
|
|
301
|
+
|
|
302
|
+
class OutputVariantResult(_message.Message):
|
|
303
|
+
__slots__ = ("index", "width", "height", "average_bitrate_kbps", "size_bytes")
|
|
304
|
+
INDEX_FIELD_NUMBER: _ClassVar[int]
|
|
305
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
306
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
307
|
+
AVERAGE_BITRATE_KBPS_FIELD_NUMBER: _ClassVar[int]
|
|
308
|
+
SIZE_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
309
|
+
index: int
|
|
310
|
+
width: int
|
|
311
|
+
height: int
|
|
312
|
+
average_bitrate_kbps: int
|
|
313
|
+
size_bytes: int
|
|
314
|
+
def __init__(self, index: _Optional[int] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., average_bitrate_kbps: _Optional[int] = ..., size_bytes: _Optional[int] = ...) -> None: ...
|
|
315
|
+
|
|
316
|
+
class ExecutionTiming(_message.Message):
|
|
317
|
+
__slots__ = ("instance_id", "instance_type", "instance_location", "vcpu_count", "memory_mb", "boot_duration_ms", "download_duration_ms", "probe_duration_ms", "encode_duration_ms", "upload_duration_ms", "packaging_duration_ms", "total_duration_ms", "download_bytes", "download_speed_mbps", "upload_bytes", "upload_speed_mbps", "avg_cpu_percent", "peak_cpu_percent", "avg_memory_mb", "peak_memory_mb", "chunk_count", "chunk_strategy", "exit_code", "exit_reason")
|
|
318
|
+
INSTANCE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
319
|
+
INSTANCE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
320
|
+
INSTANCE_LOCATION_FIELD_NUMBER: _ClassVar[int]
|
|
321
|
+
VCPU_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
322
|
+
MEMORY_MB_FIELD_NUMBER: _ClassVar[int]
|
|
323
|
+
BOOT_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
324
|
+
DOWNLOAD_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
325
|
+
PROBE_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
326
|
+
ENCODE_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
327
|
+
UPLOAD_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
328
|
+
PACKAGING_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
329
|
+
TOTAL_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
330
|
+
DOWNLOAD_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
331
|
+
DOWNLOAD_SPEED_MBPS_FIELD_NUMBER: _ClassVar[int]
|
|
332
|
+
UPLOAD_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
333
|
+
UPLOAD_SPEED_MBPS_FIELD_NUMBER: _ClassVar[int]
|
|
334
|
+
AVG_CPU_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
335
|
+
PEAK_CPU_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
336
|
+
AVG_MEMORY_MB_FIELD_NUMBER: _ClassVar[int]
|
|
337
|
+
PEAK_MEMORY_MB_FIELD_NUMBER: _ClassVar[int]
|
|
338
|
+
CHUNK_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
339
|
+
CHUNK_STRATEGY_FIELD_NUMBER: _ClassVar[int]
|
|
340
|
+
EXIT_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
341
|
+
EXIT_REASON_FIELD_NUMBER: _ClassVar[int]
|
|
342
|
+
instance_id: str
|
|
343
|
+
instance_type: str
|
|
344
|
+
instance_location: str
|
|
345
|
+
vcpu_count: int
|
|
346
|
+
memory_mb: int
|
|
347
|
+
boot_duration_ms: int
|
|
348
|
+
download_duration_ms: int
|
|
349
|
+
probe_duration_ms: int
|
|
350
|
+
encode_duration_ms: int
|
|
351
|
+
upload_duration_ms: int
|
|
352
|
+
packaging_duration_ms: int
|
|
353
|
+
total_duration_ms: int
|
|
354
|
+
download_bytes: int
|
|
355
|
+
download_speed_mbps: float
|
|
356
|
+
upload_bytes: int
|
|
357
|
+
upload_speed_mbps: float
|
|
358
|
+
avg_cpu_percent: float
|
|
359
|
+
peak_cpu_percent: float
|
|
360
|
+
avg_memory_mb: int
|
|
361
|
+
peak_memory_mb: int
|
|
362
|
+
chunk_count: int
|
|
363
|
+
chunk_strategy: str
|
|
364
|
+
exit_code: int
|
|
365
|
+
exit_reason: str
|
|
366
|
+
def __init__(self, instance_id: _Optional[str] = ..., instance_type: _Optional[str] = ..., instance_location: _Optional[str] = ..., vcpu_count: _Optional[int] = ..., memory_mb: _Optional[int] = ..., boot_duration_ms: _Optional[int] = ..., download_duration_ms: _Optional[int] = ..., probe_duration_ms: _Optional[int] = ..., encode_duration_ms: _Optional[int] = ..., upload_duration_ms: _Optional[int] = ..., packaging_duration_ms: _Optional[int] = ..., total_duration_ms: _Optional[int] = ..., download_bytes: _Optional[int] = ..., download_speed_mbps: _Optional[float] = ..., upload_bytes: _Optional[int] = ..., upload_speed_mbps: _Optional[float] = ..., avg_cpu_percent: _Optional[float] = ..., peak_cpu_percent: _Optional[float] = ..., avg_memory_mb: _Optional[int] = ..., peak_memory_mb: _Optional[int] = ..., chunk_count: _Optional[int] = ..., chunk_strategy: _Optional[str] = ..., exit_code: _Optional[int] = ..., exit_reason: _Optional[str] = ...) -> None: ...
|
|
367
|
+
|
|
368
|
+
class Job(_message.Message):
|
|
369
|
+
__slots__ = ("id", "input_url", "input_origin", "output_origin", "status", "progress", "priority", "input_metadata", "outputs", "total_estimated_cost", "total_actual_cost", "error_code", "error_message", "webhook_url", "metadata", "created_at", "updated_at", "probed_at", "started_at", "completed_at", "delayed_start", "confirmed_at", "currency", "execution", "thumbnails", "thumbnail_results", "output_path_template", "object")
|
|
370
|
+
class MetadataEntry(_message.Message):
|
|
371
|
+
__slots__ = ("key", "value")
|
|
372
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
373
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
374
|
+
key: str
|
|
375
|
+
value: str
|
|
376
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
377
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
378
|
+
INPUT_URL_FIELD_NUMBER: _ClassVar[int]
|
|
379
|
+
INPUT_ORIGIN_FIELD_NUMBER: _ClassVar[int]
|
|
380
|
+
OUTPUT_ORIGIN_FIELD_NUMBER: _ClassVar[int]
|
|
381
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
382
|
+
PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
383
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
384
|
+
INPUT_METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
385
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
|
386
|
+
TOTAL_ESTIMATED_COST_FIELD_NUMBER: _ClassVar[int]
|
|
387
|
+
TOTAL_ACTUAL_COST_FIELD_NUMBER: _ClassVar[int]
|
|
388
|
+
ERROR_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
389
|
+
ERROR_MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
390
|
+
WEBHOOK_URL_FIELD_NUMBER: _ClassVar[int]
|
|
391
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
392
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
393
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
394
|
+
PROBED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
395
|
+
STARTED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
396
|
+
COMPLETED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
397
|
+
DELAYED_START_FIELD_NUMBER: _ClassVar[int]
|
|
398
|
+
CONFIRMED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
399
|
+
CURRENCY_FIELD_NUMBER: _ClassVar[int]
|
|
400
|
+
EXECUTION_FIELD_NUMBER: _ClassVar[int]
|
|
401
|
+
THUMBNAILS_FIELD_NUMBER: _ClassVar[int]
|
|
402
|
+
THUMBNAIL_RESULTS_FIELD_NUMBER: _ClassVar[int]
|
|
403
|
+
OUTPUT_PATH_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
|
404
|
+
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
|
405
|
+
id: str
|
|
406
|
+
input_url: str
|
|
407
|
+
input_origin: _origin_pb2.OriginRef
|
|
408
|
+
output_origin: _origin_pb2.OriginRef
|
|
409
|
+
status: JobStatus
|
|
410
|
+
progress: int
|
|
411
|
+
priority: JobPriority
|
|
412
|
+
input_metadata: _media_pb2.InputMetadata
|
|
413
|
+
outputs: _containers.RepeatedCompositeFieldContainer[JobOutput]
|
|
414
|
+
total_estimated_cost: float
|
|
415
|
+
total_actual_cost: float
|
|
416
|
+
error_code: str
|
|
417
|
+
error_message: str
|
|
418
|
+
webhook_url: str
|
|
419
|
+
metadata: _containers.ScalarMap[str, str]
|
|
420
|
+
created_at: _timestamp_pb2.Timestamp
|
|
421
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
422
|
+
probed_at: _timestamp_pb2.Timestamp
|
|
423
|
+
started_at: _timestamp_pb2.Timestamp
|
|
424
|
+
completed_at: _timestamp_pb2.Timestamp
|
|
425
|
+
delayed_start: bool
|
|
426
|
+
confirmed_at: _timestamp_pb2.Timestamp
|
|
427
|
+
currency: str
|
|
428
|
+
execution: ExecutionTiming
|
|
429
|
+
thumbnails: _containers.RepeatedCompositeFieldContainer[_thumbnails_pb2.ThumbnailSpec]
|
|
430
|
+
thumbnail_results: _containers.RepeatedCompositeFieldContainer[_thumbnails_pb2.ThumbnailResult]
|
|
431
|
+
output_path_template: str
|
|
432
|
+
object: str
|
|
433
|
+
def __init__(self, id: _Optional[str] = ..., input_url: _Optional[str] = ..., input_origin: _Optional[_Union[_origin_pb2.OriginRef, _Mapping]] = ..., output_origin: _Optional[_Union[_origin_pb2.OriginRef, _Mapping]] = ..., status: _Optional[_Union[JobStatus, str]] = ..., progress: _Optional[int] = ..., priority: _Optional[_Union[JobPriority, str]] = ..., input_metadata: _Optional[_Union[_media_pb2.InputMetadata, _Mapping]] = ..., outputs: _Optional[_Iterable[_Union[JobOutput, _Mapping]]] = ..., total_estimated_cost: _Optional[float] = ..., total_actual_cost: _Optional[float] = ..., error_code: _Optional[str] = ..., error_message: _Optional[str] = ..., webhook_url: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., probed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., completed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., delayed_start: bool = ..., confirmed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., currency: _Optional[str] = ..., execution: _Optional[_Union[ExecutionTiming, _Mapping]] = ..., thumbnails: _Optional[_Iterable[_Union[_thumbnails_pb2.ThumbnailSpec, _Mapping]]] = ..., thumbnail_results: _Optional[_Iterable[_Union[_thumbnails_pb2.ThumbnailResult, _Mapping]]] = ..., output_path_template: _Optional[str] = ..., object: _Optional[str] = ...) -> None: ...
|
|
434
|
+
|
|
435
|
+
class CreateJobRequest(_message.Message):
|
|
436
|
+
__slots__ = ("input_url", "input_origin_id", "input_path", "output_origin_id", "outputs", "priority", "webhook_url", "idempotency_key", "metadata", "delayed_start", "thumbnails", "output_path_template", "managed")
|
|
437
|
+
class MetadataEntry(_message.Message):
|
|
438
|
+
__slots__ = ("key", "value")
|
|
439
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
440
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
441
|
+
key: str
|
|
442
|
+
value: str
|
|
443
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
444
|
+
INPUT_URL_FIELD_NUMBER: _ClassVar[int]
|
|
445
|
+
INPUT_ORIGIN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
446
|
+
INPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
447
|
+
OUTPUT_ORIGIN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
448
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
|
449
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
450
|
+
WEBHOOK_URL_FIELD_NUMBER: _ClassVar[int]
|
|
451
|
+
IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
452
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
453
|
+
DELAYED_START_FIELD_NUMBER: _ClassVar[int]
|
|
454
|
+
THUMBNAILS_FIELD_NUMBER: _ClassVar[int]
|
|
455
|
+
OUTPUT_PATH_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
|
456
|
+
MANAGED_FIELD_NUMBER: _ClassVar[int]
|
|
457
|
+
input_url: str
|
|
458
|
+
input_origin_id: str
|
|
459
|
+
input_path: str
|
|
460
|
+
output_origin_id: str
|
|
461
|
+
outputs: _containers.RepeatedCompositeFieldContainer[OutputSpec]
|
|
462
|
+
priority: JobPriority
|
|
463
|
+
webhook_url: str
|
|
464
|
+
idempotency_key: str
|
|
465
|
+
metadata: _containers.ScalarMap[str, str]
|
|
466
|
+
delayed_start: bool
|
|
467
|
+
thumbnails: _containers.RepeatedCompositeFieldContainer[_thumbnails_pb2.ThumbnailSpec]
|
|
468
|
+
output_path_template: str
|
|
469
|
+
managed: bool
|
|
470
|
+
def __init__(self, input_url: _Optional[str] = ..., input_origin_id: _Optional[str] = ..., input_path: _Optional[str] = ..., output_origin_id: _Optional[str] = ..., outputs: _Optional[_Iterable[_Union[OutputSpec, _Mapping]]] = ..., priority: _Optional[_Union[JobPriority, str]] = ..., webhook_url: _Optional[str] = ..., idempotency_key: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ..., delayed_start: bool = ..., thumbnails: _Optional[_Iterable[_Union[_thumbnails_pb2.ThumbnailSpec, _Mapping]]] = ..., output_path_template: _Optional[str] = ..., managed: bool = ...) -> None: ...
|
|
471
|
+
|
|
472
|
+
class CreateJobResponse(_message.Message):
|
|
473
|
+
__slots__ = ("job", "video_id")
|
|
474
|
+
JOB_FIELD_NUMBER: _ClassVar[int]
|
|
475
|
+
VIDEO_ID_FIELD_NUMBER: _ClassVar[int]
|
|
476
|
+
job: Job
|
|
477
|
+
video_id: str
|
|
478
|
+
def __init__(self, job: _Optional[_Union[Job, _Mapping]] = ..., video_id: _Optional[str] = ...) -> None: ...
|
|
479
|
+
|
|
480
|
+
class GetJobRequest(_message.Message):
|
|
481
|
+
__slots__ = ("id",)
|
|
482
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
483
|
+
id: str
|
|
484
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
485
|
+
|
|
486
|
+
class GetJobResponse(_message.Message):
|
|
487
|
+
__slots__ = ("job",)
|
|
488
|
+
JOB_FIELD_NUMBER: _ClassVar[int]
|
|
489
|
+
job: Job
|
|
490
|
+
def __init__(self, job: _Optional[_Union[Job, _Mapping]] = ...) -> None: ...
|
|
491
|
+
|
|
492
|
+
class ListJobsRequest(_message.Message):
|
|
493
|
+
__slots__ = ("status", "pagination")
|
|
494
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
495
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
496
|
+
status: JobStatus
|
|
497
|
+
pagination: _common_pb2.PaginationRequest
|
|
498
|
+
def __init__(self, status: _Optional[_Union[JobStatus, str]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationRequest, _Mapping]] = ...) -> None: ...
|
|
499
|
+
|
|
500
|
+
class ListJobsResponse(_message.Message):
|
|
501
|
+
__slots__ = ("jobs", "pagination")
|
|
502
|
+
JOBS_FIELD_NUMBER: _ClassVar[int]
|
|
503
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
504
|
+
jobs: _containers.RepeatedCompositeFieldContainer[Job]
|
|
505
|
+
pagination: _common_pb2.PaginationResponse
|
|
506
|
+
def __init__(self, jobs: _Optional[_Iterable[_Union[Job, _Mapping]]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationResponse, _Mapping]] = ...) -> None: ...
|
|
507
|
+
|
|
508
|
+
class CancelJobRequest(_message.Message):
|
|
509
|
+
__slots__ = ("id",)
|
|
510
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
511
|
+
id: str
|
|
512
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
513
|
+
|
|
514
|
+
class CancelJobResponse(_message.Message):
|
|
515
|
+
__slots__ = ("job",)
|
|
516
|
+
JOB_FIELD_NUMBER: _ClassVar[int]
|
|
517
|
+
job: Job
|
|
518
|
+
def __init__(self, job: _Optional[_Union[Job, _Mapping]] = ...) -> None: ...
|
|
519
|
+
|
|
520
|
+
class ConfirmJobRequest(_message.Message):
|
|
521
|
+
__slots__ = ("id",)
|
|
522
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
523
|
+
id: str
|
|
524
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
525
|
+
|
|
526
|
+
class ConfirmJobResponse(_message.Message):
|
|
527
|
+
__slots__ = ("job",)
|
|
528
|
+
JOB_FIELD_NUMBER: _ClassVar[int]
|
|
529
|
+
job: Job
|
|
530
|
+
def __init__(self, job: _Optional[_Union[Job, _Mapping]] = ...) -> None: ...
|
|
531
|
+
|
|
532
|
+
class WatchJobRequest(_message.Message):
|
|
533
|
+
__slots__ = ("id",)
|
|
534
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
535
|
+
id: str
|
|
536
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
537
|
+
|
|
538
|
+
class WatchJobResponse(_message.Message):
|
|
539
|
+
__slots__ = ("job", "event", "server_time")
|
|
540
|
+
JOB_FIELD_NUMBER: _ClassVar[int]
|
|
541
|
+
EVENT_FIELD_NUMBER: _ClassVar[int]
|
|
542
|
+
SERVER_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
543
|
+
job: Job
|
|
544
|
+
event: WatchEventType
|
|
545
|
+
server_time: _timestamp_pb2.Timestamp
|
|
546
|
+
def __init__(self, job: _Optional[_Union[Job, _Mapping]] = ..., event: _Optional[_Union[WatchEventType, str]] = ..., server_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: transcodely/v1/media.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.3
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
28,
|
|
16
|
+
3,
|
|
17
|
+
'',
|
|
18
|
+
'transcodely/v1/media.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1atranscodely/v1/media.proto\x12\x0etranscodely.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x02\n\rInputMetadata\x12\x16\n\x06\x66ormat\x18\x01 \x01(\tR\x06\x66ormat\x12\x1f\n\x0b\x64uration_ms\x18\x02 \x01(\x03R\ndurationMs\x12\x1d\n\nsize_bytes\x18\x03 \x01(\x03R\tsizeBytes\x12\x19\n\x08\x62it_rate\x18\x04 \x01(\x03R\x07\x62itRate\x12\x35\n\x05video\x18\x05 \x01(\x0b\x32\x1f.transcodely.v1.VideoStreamInfoR\x05video\x12\x35\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1f.transcodely.v1.AudioStreamInfoR\x05\x61udio\x12\x37\n\tprobed_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08probedAt\"\xb1\x06\n\x0fVideoStreamInfo\x12\x14\n\x05\x63odec\x18\x01 \x01(\tR\x05\x63odec\x12\x14\n\x05width\x18\x02 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x03 \x01(\x05R\x06height\x12\x1d\n\nframe_rate\x18\x04 \x01(\x01R\tframeRate\x12\x19\n\x08\x62it_rate\x18\x05 \x01(\x03R\x07\x62itRate\x12!\n\x0cpixel_format\x18\x06 \x01(\tR\x0bpixelFormat\x12$\n\x0b\x63olor_space\x18\x07 \x01(\tH\x00R\ncolorSpace\x88\x01\x01\x12*\n\x0e\x63olor_transfer\x18\x08 \x01(\tH\x01R\rcolorTransfer\x88\x01\x01\x12\x1f\n\x0b\x64uration_ms\x18\t \x01(\x03R\ndurationMs\x12,\n\x0f\x63olor_primaries\x18\n \x01(\tH\x02R\x0e\x63olorPrimaries\x88\x01\x01\x12,\n\x0f\x63hroma_location\x18\x0b \x01(\tH\x03R\x0e\x63hromaLocation\x88\x01\x01\x12 \n\tbit_depth\x18\x0c \x01(\x05H\x04R\x08\x62itDepth\x88\x01\x01\x12#\n\ninterlaced\x18\r \x01(\x08H\x05R\ninterlaced\x88\x01\x01\x12$\n\x0b\x66rame_count\x18\x0e \x01(\x03H\x06R\nframeCount\x88\x01\x01\x12\x35\n\x14\x64isplay_aspect_ratio\x18\x0f \x01(\tH\x07R\x12\x64isplayAspectRatio\x88\x01\x01\x12\x33\n\x13sample_aspect_ratio\x18\x10 \x01(\tH\x08R\x11sampleAspectRatio\x88\x01\x01\x12\x1f\n\x08rotation\x18\x11 \x01(\x05H\tR\x08rotation\x88\x01\x01\x42\x0e\n\x0c_color_spaceB\x11\n\x0f_color_transferB\x12\n\x10_color_primariesB\x12\n\x10_chroma_locationB\x0c\n\n_bit_depthB\r\n\x0b_interlacedB\x0e\n\x0c_frame_countB\x17\n\x15_display_aspect_ratioB\x16\n\x14_sample_aspect_ratioB\x0b\n\t_rotation\"\xe9\x02\n\x0f\x41udioStreamInfo\x12\x14\n\x05\x63odec\x18\x01 \x01(\tR\x05\x63odec\x12\x1f\n\x0bsample_rate\x18\x02 \x01(\x05R\nsampleRate\x12\x1a\n\x08\x63hannels\x18\x03 \x01(\x05R\x08\x63hannels\x12%\n\x0e\x63hannel_layout\x18\x04 \x01(\tR\rchannelLayout\x12\x19\n\x08\x62it_rate\x18\x05 \x01(\x03R\x07\x62itRate\x12\x1f\n\x0b\x64uration_ms\x18\x06 \x01(\x03R\ndurationMs\x12+\n\x0f\x62its_per_sample\x18\x07 \x01(\x05H\x00R\rbitsPerSample\x88\x01\x01\x12\x1f\n\x08language\x18\x08 \x01(\tH\x01R\x08language\x88\x01\x01\x12\"\n\nis_default\x18\t \x01(\x08H\x02R\tisDefault\x88\x01\x01\x42\x12\n\x10_bits_per_sampleB\x0b\n\t_languageB\r\n\x0b_is_default\"\x9d\x02\n\x12SubtitleStreamInfo\x12\x14\n\x05\x63odec\x18\x01 \x01(\tR\x05\x63odec\x12\x1f\n\x08language\x18\x02 \x01(\tH\x00R\x08language\x88\x01\x01\x12\x19\n\x05title\x18\x03 \x01(\tH\x01R\x05title\x88\x01\x01\x12\"\n\nis_default\x18\x04 \x01(\x08H\x02R\tisDefault\x88\x01\x01\x12.\n\x10hearing_impaired\x18\x05 \x01(\x08H\x03R\x0fhearingImpaired\x88\x01\x01\x12\x1b\n\x06\x66orced\x18\x06 \x01(\x08H\x04R\x06\x66orced\x88\x01\x01\x42\x0b\n\t_languageB\x08\n\x06_titleB\r\n\x0b_is_defaultB\x13\n\x11_hearing_impairedB\t\n\x07_forcedb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.media_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_INPUTMETADATA']._serialized_start=80
|
|
36
|
+
_globals['_INPUTMETADATA']._serialized_end=377
|
|
37
|
+
_globals['_VIDEOSTREAMINFO']._serialized_start=380
|
|
38
|
+
_globals['_VIDEOSTREAMINFO']._serialized_end=1197
|
|
39
|
+
_globals['_AUDIOSTREAMINFO']._serialized_start=1200
|
|
40
|
+
_globals['_AUDIOSTREAMINFO']._serialized_end=1561
|
|
41
|
+
_globals['_SUBTITLESTREAMINFO']._serialized_start=1564
|
|
42
|
+
_globals['_SUBTITLESTREAMINFO']._serialized_end=1849
|
|
43
|
+
# @@protoc_insertion_point(module_scope)
|