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,97 @@
|
|
|
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 google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
8
|
+
|
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
+
|
|
11
|
+
class APIKey(_message.Message):
|
|
12
|
+
__slots__ = ("id", "name", "description", "key_prefix", "key_hint", "scopes", "last_used_at", "expires_at", "created_at", "is_revoked", "revoked_at")
|
|
13
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
KEY_PREFIX_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
KEY_HINT_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
SCOPES_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
LAST_USED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
EXPIRES_AT_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
IS_REVOKED_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
REVOKED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
id: str
|
|
25
|
+
name: str
|
|
26
|
+
description: str
|
|
27
|
+
key_prefix: str
|
|
28
|
+
key_hint: str
|
|
29
|
+
scopes: _containers.RepeatedScalarFieldContainer[str]
|
|
30
|
+
last_used_at: _timestamp_pb2.Timestamp
|
|
31
|
+
expires_at: _timestamp_pb2.Timestamp
|
|
32
|
+
created_at: _timestamp_pb2.Timestamp
|
|
33
|
+
is_revoked: bool
|
|
34
|
+
revoked_at: _timestamp_pb2.Timestamp
|
|
35
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., key_prefix: _Optional[str] = ..., key_hint: _Optional[str] = ..., scopes: _Optional[_Iterable[str]] = ..., last_used_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., is_revoked: bool = ..., revoked_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
36
|
+
|
|
37
|
+
class CreateAPIKeyRequest(_message.Message):
|
|
38
|
+
__slots__ = ("name", "description", "expires_at", "app_id")
|
|
39
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
EXPIRES_AT_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
APP_ID_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
name: str
|
|
44
|
+
description: str
|
|
45
|
+
expires_at: _timestamp_pb2.Timestamp
|
|
46
|
+
app_id: str
|
|
47
|
+
def __init__(self, name: _Optional[str] = ..., description: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., app_id: _Optional[str] = ...) -> None: ...
|
|
48
|
+
|
|
49
|
+
class CreateAPIKeyResponse(_message.Message):
|
|
50
|
+
__slots__ = ("api_key", "secret")
|
|
51
|
+
API_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
api_key: APIKey
|
|
54
|
+
secret: str
|
|
55
|
+
def __init__(self, api_key: _Optional[_Union[APIKey, _Mapping]] = ..., secret: _Optional[str] = ...) -> None: ...
|
|
56
|
+
|
|
57
|
+
class GetAPIKeyRequest(_message.Message):
|
|
58
|
+
__slots__ = ("id",)
|
|
59
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
id: str
|
|
61
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
62
|
+
|
|
63
|
+
class GetAPIKeyResponse(_message.Message):
|
|
64
|
+
__slots__ = ("api_key",)
|
|
65
|
+
API_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
api_key: APIKey
|
|
67
|
+
def __init__(self, api_key: _Optional[_Union[APIKey, _Mapping]] = ...) -> None: ...
|
|
68
|
+
|
|
69
|
+
class ListAPIKeysRequest(_message.Message):
|
|
70
|
+
__slots__ = ("include_revoked", "pagination")
|
|
71
|
+
INCLUDE_REVOKED_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
include_revoked: bool
|
|
74
|
+
pagination: _common_pb2.PaginationRequest
|
|
75
|
+
def __init__(self, include_revoked: bool = ..., pagination: _Optional[_Union[_common_pb2.PaginationRequest, _Mapping]] = ...) -> None: ...
|
|
76
|
+
|
|
77
|
+
class ListAPIKeysResponse(_message.Message):
|
|
78
|
+
__slots__ = ("api_keys", "pagination")
|
|
79
|
+
API_KEYS_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
81
|
+
api_keys: _containers.RepeatedCompositeFieldContainer[APIKey]
|
|
82
|
+
pagination: _common_pb2.PaginationResponse
|
|
83
|
+
def __init__(self, api_keys: _Optional[_Iterable[_Union[APIKey, _Mapping]]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationResponse, _Mapping]] = ...) -> None: ...
|
|
84
|
+
|
|
85
|
+
class RevokeAPIKeyRequest(_message.Message):
|
|
86
|
+
__slots__ = ("id", "reason")
|
|
87
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
id: str
|
|
90
|
+
reason: str
|
|
91
|
+
def __init__(self, id: _Optional[str] = ..., reason: _Optional[str] = ...) -> None: ...
|
|
92
|
+
|
|
93
|
+
class RevokeAPIKeyResponse(_message.Message):
|
|
94
|
+
__slots__ = ("api_key",)
|
|
95
|
+
API_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
api_key: APIKey
|
|
97
|
+
def __init__(self, api_key: _Optional[_Union[APIKey, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: transcodely/v1/app.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/app.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
from transcodely.v1 import common_pb2 as transcodely_dot_v1_dot_common__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18transcodely/v1/app.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1btranscodely/v1/common.proto\"\xec\x05\n\x03\x41pp\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x00R\x0b\x64\x65scription\x88\x01\x01\x12<\n\x07webhook\x18\x05 \x01(\x0b\x32\x1d.transcodely.v1.WebhookConfigH\x01R\x07webhook\x88\x01\x01\x12\x31\n\x06status\x18\x06 \x01(\x0e\x32\x19.transcodely.v1.AppStatusR\x06status\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12@\n\x0b\x61rchived_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\narchivedAt\x88\x01\x01\x12,\n\x0fhosting_enabled\x18\n \x01(\x08H\x03R\x0ehostingEnabled\x88\x01\x01\x12*\n\x0ehosting_status\x18\x0b \x01(\tH\x04R\rhostingStatus\x88\x01\x01\x12&\n\x0c\x63\x64n_hostname\x18\x0c \x01(\tH\x05R\x0b\x63\x64nHostname\x88\x01\x01\x12I\n\x0ehosting_config\x18\r \x01(\x0b\x32\x1d.transcodely.v1.HostingConfigH\x06R\rhostingConfig\x88\x01\x01\x12\x16\n\x06object\x18\x0e \x01(\tR\x06objectB\x0e\n\x0c_descriptionB\n\n\x08_webhookB\x0e\n\x0c_archived_atB\x12\n\x10_hosting_enabledB\x11\n\x0f_hosting_statusB\x0f\n\r_cdn_hostnameB\x11\n\x0f_hosting_config\"\x8e\x01\n\rWebhookConfig\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\x12$\n\x0bsecret_hint\x18\x02 \x01(\tH\x00R\nsecretHint\x88\x01\x01\x12\x1d\n\nhas_secret\x18\x03 \x01(\x08R\thasSecret\x12\x16\n\x06\x65vents\x18\x04 \x03(\tR\x06\x65ventsB\x0e\n\x0c_secret_hint\"\xbb\x02\n\x10\x43reateAppRequest\x12\x35\n\x06org_id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^org_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x05orgId\x12 \n\x04name\x18\x02 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18<\xc8\x01\x01R\x04name\x12/\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x42\n\x07webhook\x18\x04 \x01(\x0b\x32#.transcodely.v1.CreateWebhookConfigH\x01R\x07webhook\x88\x01\x01\x12*\n\x0e\x65nable_hosting\x18\x05 \x01(\x08H\x02R\renableHosting\x88\x01\x01\x42\x0e\n\x0c_descriptionB\n\n\x08_webhookB\x11\n\x0f_enable_hosting\"\x7f\n\x13\x43reateWebhookConfig\x12\'\n\x03url\x18\x01 \x01(\tB\x15\xbaH\x12r\r:\x08https://\x88\x01\x01\xc8\x01\x01R\x03url\x12\'\n\x0fgenerate_secret\x18\x02 \x01(\x08R\x0egenerateSecret\x12\x16\n\x06\x65vents\x18\x03 \x03(\tR\x06\x65vents\"y\n\x11\x43reateAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\x12*\n\x0ewebhook_secret\x18\x02 \x01(\tH\x00R\rwebhookSecret\x88\x01\x01\x42\x11\n\x0f_webhook_secret\"?\n\rGetAppRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\"7\n\x0eGetAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"\x80\x02\n\x10UpdateAppRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12\"\n\x04name\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18<H\x00R\x04name\x88\x01\x01\x12/\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03H\x01R\x0b\x64\x65scription\x88\x01\x01\x12\x42\n\x07webhook\x18\x04 \x01(\x0b\x32#.transcodely.v1.UpdateWebhookConfigH\x02R\x07webhook\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_descriptionB\n\n\x08_webhook\"\x9a\x02\n\x13UpdateWebhookConfig\x12\xb5\x01\n\x03url\x18\x01 \x01(\tB\x9d\x01\xbaH\x99\x01\xba\x01\x95\x01\n(update_webhook_config.url_https_or_empty\x12,webhook url must be empty or an https:// URL\x1a;this == \'\' || (this.isUri() && this.startsWith(\'https://\'))H\x00R\x03url\x88\x01\x01\x12+\n\x11regenerate_secret\x18\x02 \x01(\x08R\x10regenerateSecret\x12\x16\n\x06\x65vents\x18\x03 \x03(\tR\x06\x65ventsB\x06\n\x04_url\"y\n\x11UpdateAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\x12*\n\x0ewebhook_secret\x18\x02 \x01(\tH\x00R\rwebhookSecret\x88\x01\x01\x42\x11\n\x0f_webhook_secret\"\xb6\x01\n\x0fListAppsRequest\x12\x35\n\x06org_id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^org_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x05orgId\x12\x41\n\npagination\x18\x02 \x01(\x0b\x32!.transcodely.v1.PaginationRequestR\npagination\x12)\n\x10include_archived\x18\x03 \x01(\x08R\x0fincludeArchived\"\x7f\n\x10ListAppsResponse\x12\'\n\x04\x61pps\x18\x01 \x03(\x0b\x32\x13.transcodely.v1.AppR\x04\x61pps\x12\x42\n\npagination\x18\x02 \x01(\x0b\x32\".transcodely.v1.PaginationResponseR\npagination\"C\n\x11\x41rchiveAppRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\";\n\x12\x41rchiveAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"F\n\x14\x45nableHostingRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\">\n\x15\x45nableHostingResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"\xd6\x02\n\rHostingConfig\x12\x32\n\x12\x64\x65\x66\x61ult_visibility\x18\x01 \x01(\tH\x00R\x11\x64\x65\x66\x61ultVisibility\x88\x01\x01\x12\x36\n\x15max_upload_size_bytes\x18\x02 \x01(\x03H\x01R\x12maxUploadSizeBytes\x88\x01\x01\x12\x30\n\x14\x63ors_allowed_origins\x18\x03 \x03(\tR\x12\x63orsAllowedOrigins\x12\\\n\x15\x61uto_profile_defaults\x18\x04 \x01(\x0b\x32#.transcodely.v1.AutoProfileDefaultsH\x02R\x13\x61utoProfileDefaults\x88\x01\x01\x42\x15\n\x13_default_visibilityB\x18\n\x16_max_upload_size_bytesB\x18\n\x16_auto_profile_defaults\"\x96\x02\n\x13\x41utoProfileDefaults\x12\x1b\n\x06\x66ormat\x18\x01 \x01(\tH\x00R\x06\x66ormat\x88\x01\x01\x12\x19\n\x05\x63odec\x18\x02 \x01(\tH\x01R\x05\x63odec\x88\x01\x01\x12*\n\x0emax_resolution\x18\x03 \x01(\tH\x02R\rmaxResolution\x88\x01\x01\x12&\n\x0cquality_tier\x18\x04 \x01(\tH\x03R\x0bqualityTier\x88\x01\x01\x12(\n\rencoding_mode\x18\x05 \x01(\tH\x04R\x0c\x65ncodingMode\x88\x01\x01\x42\t\n\x07_formatB\x08\n\x06_codecB\x11\n\x0f_max_resolutionB\x0f\n\r_quality_tierB\x10\n\x0e_encoding_mode\"\x92\x01\n\x1aUpdateHostingConfigRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12\x44\n\x0ehosting_config\x18\x02 \x01(\x0b\x32\x1d.transcodely.v1.HostingConfigR\rhostingConfig\"D\n\x1bUpdateHostingConfigResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp*W\n\tAppStatus\x12\x1a\n\x16\x41PP_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41PP_STATUS_ACTIVE\x10\x01\x12\x17\n\x13\x41PP_STATUS_ARCHIVED\x10\x02\x32\xdb\x04\n\nAppService\x12M\n\x06\x43reate\x12 .transcodely.v1.CreateAppRequest\x1a!.transcodely.v1.CreateAppResponse\x12\x44\n\x03Get\x12\x1d.transcodely.v1.GetAppRequest\x1a\x1e.transcodely.v1.GetAppResponse\x12M\n\x06Update\x12 .transcodely.v1.UpdateAppRequest\x1a!.transcodely.v1.UpdateAppResponse\x12I\n\x04List\x12\x1f.transcodely.v1.ListAppsRequest\x1a .transcodely.v1.ListAppsResponse\x12P\n\x07\x41rchive\x12!.transcodely.v1.ArchiveAppRequest\x1a\".transcodely.v1.ArchiveAppResponse\x12\\\n\rEnableHosting\x12$.transcodely.v1.EnableHostingRequest\x1a%.transcodely.v1.EnableHostingResponse\x12n\n\x13UpdateHostingConfig\x12*.transcodely.v1.UpdateHostingConfigRequest\x1a+.transcodely.v1.UpdateHostingConfigResponseb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.app_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
DESCRIPTOR._loaded_options = None
|
|
37
|
+
_globals['_CREATEAPPREQUEST'].fields_by_name['org_id']._loaded_options = None
|
|
38
|
+
_globals['_CREATEAPPREQUEST'].fields_by_name['org_id']._serialized_options = b'\272H\033r\0262\024^org_[a-zA-Z0-9_-]+$\310\001\001'
|
|
39
|
+
_globals['_CREATEAPPREQUEST'].fields_by_name['name']._loaded_options = None
|
|
40
|
+
_globals['_CREATEAPPREQUEST'].fields_by_name['name']._serialized_options = b'\272H\tr\004\020\001\030<\310\001\001'
|
|
41
|
+
_globals['_CREATEAPPREQUEST'].fields_by_name['description']._loaded_options = None
|
|
42
|
+
_globals['_CREATEAPPREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
|
|
43
|
+
_globals['_CREATEWEBHOOKCONFIG'].fields_by_name['url']._loaded_options = None
|
|
44
|
+
_globals['_CREATEWEBHOOKCONFIG'].fields_by_name['url']._serialized_options = b'\272H\022r\r:\010https://\210\001\001\310\001\001'
|
|
45
|
+
_globals['_GETAPPREQUEST'].fields_by_name['id']._loaded_options = None
|
|
46
|
+
_globals['_GETAPPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
|
|
47
|
+
_globals['_UPDATEAPPREQUEST'].fields_by_name['id']._loaded_options = None
|
|
48
|
+
_globals['_UPDATEAPPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
|
|
49
|
+
_globals['_UPDATEAPPREQUEST'].fields_by_name['name']._loaded_options = None
|
|
50
|
+
_globals['_UPDATEAPPREQUEST'].fields_by_name['name']._serialized_options = b'\272H\006r\004\020\001\030<'
|
|
51
|
+
_globals['_UPDATEAPPREQUEST'].fields_by_name['description']._loaded_options = None
|
|
52
|
+
_globals['_UPDATEAPPREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
|
|
53
|
+
_globals['_UPDATEWEBHOOKCONFIG'].fields_by_name['url']._loaded_options = None
|
|
54
|
+
_globals['_UPDATEWEBHOOKCONFIG'].fields_by_name['url']._serialized_options = b'\272H\231\001\272\001\225\001\n(update_webhook_config.url_https_or_empty\022,webhook url must be empty or an https:// URL\032;this == \'\' || (this.isUri() && this.startsWith(\'https://\'))'
|
|
55
|
+
_globals['_LISTAPPSREQUEST'].fields_by_name['org_id']._loaded_options = None
|
|
56
|
+
_globals['_LISTAPPSREQUEST'].fields_by_name['org_id']._serialized_options = b'\272H\033r\0262\024^org_[a-zA-Z0-9_-]+$\310\001\001'
|
|
57
|
+
_globals['_ARCHIVEAPPREQUEST'].fields_by_name['id']._loaded_options = None
|
|
58
|
+
_globals['_ARCHIVEAPPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
|
|
59
|
+
_globals['_ENABLEHOSTINGREQUEST'].fields_by_name['id']._loaded_options = None
|
|
60
|
+
_globals['_ENABLEHOSTINGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
|
|
61
|
+
_globals['_UPDATEHOSTINGCONFIGREQUEST'].fields_by_name['id']._loaded_options = None
|
|
62
|
+
_globals['_UPDATEHOSTINGCONFIGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
|
|
63
|
+
_globals['_APPSTATUS']._serialized_start=3815
|
|
64
|
+
_globals['_APPSTATUS']._serialized_end=3902
|
|
65
|
+
_globals['_APP']._serialized_start=136
|
|
66
|
+
_globals['_APP']._serialized_end=884
|
|
67
|
+
_globals['_WEBHOOKCONFIG']._serialized_start=887
|
|
68
|
+
_globals['_WEBHOOKCONFIG']._serialized_end=1029
|
|
69
|
+
_globals['_CREATEAPPREQUEST']._serialized_start=1032
|
|
70
|
+
_globals['_CREATEAPPREQUEST']._serialized_end=1347
|
|
71
|
+
_globals['_CREATEWEBHOOKCONFIG']._serialized_start=1349
|
|
72
|
+
_globals['_CREATEWEBHOOKCONFIG']._serialized_end=1476
|
|
73
|
+
_globals['_CREATEAPPRESPONSE']._serialized_start=1478
|
|
74
|
+
_globals['_CREATEAPPRESPONSE']._serialized_end=1599
|
|
75
|
+
_globals['_GETAPPREQUEST']._serialized_start=1601
|
|
76
|
+
_globals['_GETAPPREQUEST']._serialized_end=1664
|
|
77
|
+
_globals['_GETAPPRESPONSE']._serialized_start=1666
|
|
78
|
+
_globals['_GETAPPRESPONSE']._serialized_end=1721
|
|
79
|
+
_globals['_UPDATEAPPREQUEST']._serialized_start=1724
|
|
80
|
+
_globals['_UPDATEAPPREQUEST']._serialized_end=1980
|
|
81
|
+
_globals['_UPDATEWEBHOOKCONFIG']._serialized_start=1983
|
|
82
|
+
_globals['_UPDATEWEBHOOKCONFIG']._serialized_end=2265
|
|
83
|
+
_globals['_UPDATEAPPRESPONSE']._serialized_start=2267
|
|
84
|
+
_globals['_UPDATEAPPRESPONSE']._serialized_end=2388
|
|
85
|
+
_globals['_LISTAPPSREQUEST']._serialized_start=2391
|
|
86
|
+
_globals['_LISTAPPSREQUEST']._serialized_end=2573
|
|
87
|
+
_globals['_LISTAPPSRESPONSE']._serialized_start=2575
|
|
88
|
+
_globals['_LISTAPPSRESPONSE']._serialized_end=2702
|
|
89
|
+
_globals['_ARCHIVEAPPREQUEST']._serialized_start=2704
|
|
90
|
+
_globals['_ARCHIVEAPPREQUEST']._serialized_end=2771
|
|
91
|
+
_globals['_ARCHIVEAPPRESPONSE']._serialized_start=2773
|
|
92
|
+
_globals['_ARCHIVEAPPRESPONSE']._serialized_end=2832
|
|
93
|
+
_globals['_ENABLEHOSTINGREQUEST']._serialized_start=2834
|
|
94
|
+
_globals['_ENABLEHOSTINGREQUEST']._serialized_end=2904
|
|
95
|
+
_globals['_ENABLEHOSTINGRESPONSE']._serialized_start=2906
|
|
96
|
+
_globals['_ENABLEHOSTINGRESPONSE']._serialized_end=2968
|
|
97
|
+
_globals['_HOSTINGCONFIG']._serialized_start=2971
|
|
98
|
+
_globals['_HOSTINGCONFIG']._serialized_end=3313
|
|
99
|
+
_globals['_AUTOPROFILEDEFAULTS']._serialized_start=3316
|
|
100
|
+
_globals['_AUTOPROFILEDEFAULTS']._serialized_end=3594
|
|
101
|
+
_globals['_UPDATEHOSTINGCONFIGREQUEST']._serialized_start=3597
|
|
102
|
+
_globals['_UPDATEHOSTINGCONFIGREQUEST']._serialized_end=3743
|
|
103
|
+
_globals['_UPDATEHOSTINGCONFIGRESPONSE']._serialized_start=3745
|
|
104
|
+
_globals['_UPDATEHOSTINGCONFIGRESPONSE']._serialized_end=3813
|
|
105
|
+
_globals['_APPSERVICE']._serialized_start=3905
|
|
106
|
+
_globals['_APPSERVICE']._serialized_end=4508
|
|
107
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,219 @@
|
|
|
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 google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class AppStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
APP_STATUS_UNSPECIFIED: _ClassVar[AppStatus]
|
|
15
|
+
APP_STATUS_ACTIVE: _ClassVar[AppStatus]
|
|
16
|
+
APP_STATUS_ARCHIVED: _ClassVar[AppStatus]
|
|
17
|
+
APP_STATUS_UNSPECIFIED: AppStatus
|
|
18
|
+
APP_STATUS_ACTIVE: AppStatus
|
|
19
|
+
APP_STATUS_ARCHIVED: AppStatus
|
|
20
|
+
|
|
21
|
+
class App(_message.Message):
|
|
22
|
+
__slots__ = ("id", "org_id", "name", "description", "webhook", "status", "created_at", "updated_at", "archived_at", "hosting_enabled", "hosting_status", "cdn_hostname", "hosting_config", "object")
|
|
23
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
ORG_ID_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
WEBHOOK_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
ARCHIVED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
HOSTING_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
HOSTING_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
CDN_HOSTNAME_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
HOSTING_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
id: str
|
|
38
|
+
org_id: str
|
|
39
|
+
name: str
|
|
40
|
+
description: str
|
|
41
|
+
webhook: WebhookConfig
|
|
42
|
+
status: AppStatus
|
|
43
|
+
created_at: _timestamp_pb2.Timestamp
|
|
44
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
45
|
+
archived_at: _timestamp_pb2.Timestamp
|
|
46
|
+
hosting_enabled: bool
|
|
47
|
+
hosting_status: str
|
|
48
|
+
cdn_hostname: str
|
|
49
|
+
hosting_config: HostingConfig
|
|
50
|
+
object: str
|
|
51
|
+
def __init__(self, id: _Optional[str] = ..., org_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., webhook: _Optional[_Union[WebhookConfig, _Mapping]] = ..., status: _Optional[_Union[AppStatus, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., archived_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., hosting_enabled: bool = ..., hosting_status: _Optional[str] = ..., cdn_hostname: _Optional[str] = ..., hosting_config: _Optional[_Union[HostingConfig, _Mapping]] = ..., object: _Optional[str] = ...) -> None: ...
|
|
52
|
+
|
|
53
|
+
class WebhookConfig(_message.Message):
|
|
54
|
+
__slots__ = ("url", "secret_hint", "has_secret", "events")
|
|
55
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
SECRET_HINT_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
HAS_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
url: str
|
|
60
|
+
secret_hint: str
|
|
61
|
+
has_secret: bool
|
|
62
|
+
events: _containers.RepeatedScalarFieldContainer[str]
|
|
63
|
+
def __init__(self, url: _Optional[str] = ..., secret_hint: _Optional[str] = ..., has_secret: bool = ..., events: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
64
|
+
|
|
65
|
+
class CreateAppRequest(_message.Message):
|
|
66
|
+
__slots__ = ("org_id", "name", "description", "webhook", "enable_hosting")
|
|
67
|
+
ORG_ID_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
WEBHOOK_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
ENABLE_HOSTING_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
org_id: str
|
|
73
|
+
name: str
|
|
74
|
+
description: str
|
|
75
|
+
webhook: CreateWebhookConfig
|
|
76
|
+
enable_hosting: bool
|
|
77
|
+
def __init__(self, org_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., webhook: _Optional[_Union[CreateWebhookConfig, _Mapping]] = ..., enable_hosting: bool = ...) -> None: ...
|
|
78
|
+
|
|
79
|
+
class CreateWebhookConfig(_message.Message):
|
|
80
|
+
__slots__ = ("url", "generate_secret", "events")
|
|
81
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
GENERATE_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
url: str
|
|
85
|
+
generate_secret: bool
|
|
86
|
+
events: _containers.RepeatedScalarFieldContainer[str]
|
|
87
|
+
def __init__(self, url: _Optional[str] = ..., generate_secret: bool = ..., events: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class CreateAppResponse(_message.Message):
|
|
90
|
+
__slots__ = ("app", "webhook_secret")
|
|
91
|
+
APP_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
WEBHOOK_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
app: App
|
|
94
|
+
webhook_secret: str
|
|
95
|
+
def __init__(self, app: _Optional[_Union[App, _Mapping]] = ..., webhook_secret: _Optional[str] = ...) -> None: ...
|
|
96
|
+
|
|
97
|
+
class GetAppRequest(_message.Message):
|
|
98
|
+
__slots__ = ("id",)
|
|
99
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
id: str
|
|
101
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
102
|
+
|
|
103
|
+
class GetAppResponse(_message.Message):
|
|
104
|
+
__slots__ = ("app",)
|
|
105
|
+
APP_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
app: App
|
|
107
|
+
def __init__(self, app: _Optional[_Union[App, _Mapping]] = ...) -> None: ...
|
|
108
|
+
|
|
109
|
+
class UpdateAppRequest(_message.Message):
|
|
110
|
+
__slots__ = ("id", "name", "description", "webhook")
|
|
111
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
114
|
+
WEBHOOK_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
id: str
|
|
116
|
+
name: str
|
|
117
|
+
description: str
|
|
118
|
+
webhook: UpdateWebhookConfig
|
|
119
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., webhook: _Optional[_Union[UpdateWebhookConfig, _Mapping]] = ...) -> None: ...
|
|
120
|
+
|
|
121
|
+
class UpdateWebhookConfig(_message.Message):
|
|
122
|
+
__slots__ = ("url", "regenerate_secret", "events")
|
|
123
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
REGENERATE_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
url: str
|
|
127
|
+
regenerate_secret: bool
|
|
128
|
+
events: _containers.RepeatedScalarFieldContainer[str]
|
|
129
|
+
def __init__(self, url: _Optional[str] = ..., regenerate_secret: bool = ..., events: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
130
|
+
|
|
131
|
+
class UpdateAppResponse(_message.Message):
|
|
132
|
+
__slots__ = ("app", "webhook_secret")
|
|
133
|
+
APP_FIELD_NUMBER: _ClassVar[int]
|
|
134
|
+
WEBHOOK_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
135
|
+
app: App
|
|
136
|
+
webhook_secret: str
|
|
137
|
+
def __init__(self, app: _Optional[_Union[App, _Mapping]] = ..., webhook_secret: _Optional[str] = ...) -> None: ...
|
|
138
|
+
|
|
139
|
+
class ListAppsRequest(_message.Message):
|
|
140
|
+
__slots__ = ("org_id", "pagination", "include_archived")
|
|
141
|
+
ORG_ID_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
INCLUDE_ARCHIVED_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
org_id: str
|
|
145
|
+
pagination: _common_pb2.PaginationRequest
|
|
146
|
+
include_archived: bool
|
|
147
|
+
def __init__(self, org_id: _Optional[str] = ..., pagination: _Optional[_Union[_common_pb2.PaginationRequest, _Mapping]] = ..., include_archived: bool = ...) -> None: ...
|
|
148
|
+
|
|
149
|
+
class ListAppsResponse(_message.Message):
|
|
150
|
+
__slots__ = ("apps", "pagination")
|
|
151
|
+
APPS_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
+
apps: _containers.RepeatedCompositeFieldContainer[App]
|
|
154
|
+
pagination: _common_pb2.PaginationResponse
|
|
155
|
+
def __init__(self, apps: _Optional[_Iterable[_Union[App, _Mapping]]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationResponse, _Mapping]] = ...) -> None: ...
|
|
156
|
+
|
|
157
|
+
class ArchiveAppRequest(_message.Message):
|
|
158
|
+
__slots__ = ("id",)
|
|
159
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
id: str
|
|
161
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
162
|
+
|
|
163
|
+
class ArchiveAppResponse(_message.Message):
|
|
164
|
+
__slots__ = ("app",)
|
|
165
|
+
APP_FIELD_NUMBER: _ClassVar[int]
|
|
166
|
+
app: App
|
|
167
|
+
def __init__(self, app: _Optional[_Union[App, _Mapping]] = ...) -> None: ...
|
|
168
|
+
|
|
169
|
+
class EnableHostingRequest(_message.Message):
|
|
170
|
+
__slots__ = ("id",)
|
|
171
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
id: str
|
|
173
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
174
|
+
|
|
175
|
+
class EnableHostingResponse(_message.Message):
|
|
176
|
+
__slots__ = ("app",)
|
|
177
|
+
APP_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
+
app: App
|
|
179
|
+
def __init__(self, app: _Optional[_Union[App, _Mapping]] = ...) -> None: ...
|
|
180
|
+
|
|
181
|
+
class HostingConfig(_message.Message):
|
|
182
|
+
__slots__ = ("default_visibility", "max_upload_size_bytes", "cors_allowed_origins", "auto_profile_defaults")
|
|
183
|
+
DEFAULT_VISIBILITY_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
MAX_UPLOAD_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
185
|
+
CORS_ALLOWED_ORIGINS_FIELD_NUMBER: _ClassVar[int]
|
|
186
|
+
AUTO_PROFILE_DEFAULTS_FIELD_NUMBER: _ClassVar[int]
|
|
187
|
+
default_visibility: str
|
|
188
|
+
max_upload_size_bytes: int
|
|
189
|
+
cors_allowed_origins: _containers.RepeatedScalarFieldContainer[str]
|
|
190
|
+
auto_profile_defaults: AutoProfileDefaults
|
|
191
|
+
def __init__(self, default_visibility: _Optional[str] = ..., max_upload_size_bytes: _Optional[int] = ..., cors_allowed_origins: _Optional[_Iterable[str]] = ..., auto_profile_defaults: _Optional[_Union[AutoProfileDefaults, _Mapping]] = ...) -> None: ...
|
|
192
|
+
|
|
193
|
+
class AutoProfileDefaults(_message.Message):
|
|
194
|
+
__slots__ = ("format", "codec", "max_resolution", "quality_tier", "encoding_mode")
|
|
195
|
+
FORMAT_FIELD_NUMBER: _ClassVar[int]
|
|
196
|
+
CODEC_FIELD_NUMBER: _ClassVar[int]
|
|
197
|
+
MAX_RESOLUTION_FIELD_NUMBER: _ClassVar[int]
|
|
198
|
+
QUALITY_TIER_FIELD_NUMBER: _ClassVar[int]
|
|
199
|
+
ENCODING_MODE_FIELD_NUMBER: _ClassVar[int]
|
|
200
|
+
format: str
|
|
201
|
+
codec: str
|
|
202
|
+
max_resolution: str
|
|
203
|
+
quality_tier: str
|
|
204
|
+
encoding_mode: str
|
|
205
|
+
def __init__(self, format: _Optional[str] = ..., codec: _Optional[str] = ..., max_resolution: _Optional[str] = ..., quality_tier: _Optional[str] = ..., encoding_mode: _Optional[str] = ...) -> None: ...
|
|
206
|
+
|
|
207
|
+
class UpdateHostingConfigRequest(_message.Message):
|
|
208
|
+
__slots__ = ("id", "hosting_config")
|
|
209
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
210
|
+
HOSTING_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
211
|
+
id: str
|
|
212
|
+
hosting_config: HostingConfig
|
|
213
|
+
def __init__(self, id: _Optional[str] = ..., hosting_config: _Optional[_Union[HostingConfig, _Mapping]] = ...) -> None: ...
|
|
214
|
+
|
|
215
|
+
class UpdateHostingConfigResponse(_message.Message):
|
|
216
|
+
__slots__ = ("app",)
|
|
217
|
+
APP_FIELD_NUMBER: _ClassVar[int]
|
|
218
|
+
app: App
|
|
219
|
+
def __init__(self, app: _Optional[_Union[App, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: transcodely/v1/codec_av1.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/codec_av1.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1etranscodely/v1/codec_av1.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\"\xb6\x05\n\nAV1Options\x12&\n\x06preset\x18\x01 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\r(\x00H\x00R\x06preset\x88\x01\x01\x12\"\n\x04tune\x18\x02 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x01(\x00H\x01R\x04tune\x88\x01\x01\x12 \n\x03\x63rf\x18\x03 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18?(\x00H\x02R\x03\x63rf\x88\x01\x01\x12*\n\x07\x62itrate\x18\x04 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xa0\x8d\x06(dH\x03R\x07\x62itrate\x88\x01\x01\x12\x31\n\x0bmax_bitrate\x18\x05 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xa0\x8d\x06(dH\x04R\nmaxBitrate\x88\x01\x01\x12\'\n\x06keyint\x18\x06 \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xd8\x04(\x01H\x05R\x06keyint\x88\x01\x01\x12\x31\n\x0ctile_columns\x18\x07 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x04(\x00H\x06R\x0btileColumns\x88\x01\x01\x12+\n\ttile_rows\x18\x08 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x04(\x00H\x07R\x08tileRows\x88\x01\x01\x12-\n\nfilm_grain\x18\t \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x32(\x00H\x08R\tfilmGrain\x88\x01\x01\x12\"\n\nenable_dlf\x18\n \x01(\x08H\tR\tenableDlf\x88\x01\x01\x12$\n\x0b\x65nable_cdef\x18\x0b \x01(\x08H\nR\nenableCdef\x88\x01\x01\x12\x32\n\x12\x65nable_restoration\x18\x0c \x01(\x08H\x0bR\x11\x65nableRestoration\x88\x01\x01\x42\t\n\x07_presetB\x07\n\x05_tuneB\x06\n\x04_crfB\n\n\x08_bitrateB\x0e\n\x0c_max_bitrateB\t\n\x07_keyintB\x0f\n\r_tile_columnsB\x0c\n\n_tile_rowsB\r\n\x0b_film_grainB\r\n\x0b_enable_dlfB\x0e\n\x0c_enable_cdefB\x15\n\x13_enable_restorationb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.codec_av1_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_AV1OPTIONS'].fields_by_name['preset']._loaded_options = None
|
|
36
|
+
_globals['_AV1OPTIONS'].fields_by_name['preset']._serialized_options = b'\272H\006\032\004\030\r(\000'
|
|
37
|
+
_globals['_AV1OPTIONS'].fields_by_name['tune']._loaded_options = None
|
|
38
|
+
_globals['_AV1OPTIONS'].fields_by_name['tune']._serialized_options = b'\272H\006\032\004\030\001(\000'
|
|
39
|
+
_globals['_AV1OPTIONS'].fields_by_name['crf']._loaded_options = None
|
|
40
|
+
_globals['_AV1OPTIONS'].fields_by_name['crf']._serialized_options = b'\272H\006\032\004\030?(\000'
|
|
41
|
+
_globals['_AV1OPTIONS'].fields_by_name['bitrate']._loaded_options = None
|
|
42
|
+
_globals['_AV1OPTIONS'].fields_by_name['bitrate']._serialized_options = b'\272H\010\032\006\030\240\215\006(d'
|
|
43
|
+
_globals['_AV1OPTIONS'].fields_by_name['max_bitrate']._loaded_options = None
|
|
44
|
+
_globals['_AV1OPTIONS'].fields_by_name['max_bitrate']._serialized_options = b'\272H\010\032\006\030\240\215\006(d'
|
|
45
|
+
_globals['_AV1OPTIONS'].fields_by_name['keyint']._loaded_options = None
|
|
46
|
+
_globals['_AV1OPTIONS'].fields_by_name['keyint']._serialized_options = b'\272H\007\032\005\030\330\004(\001'
|
|
47
|
+
_globals['_AV1OPTIONS'].fields_by_name['tile_columns']._loaded_options = None
|
|
48
|
+
_globals['_AV1OPTIONS'].fields_by_name['tile_columns']._serialized_options = b'\272H\006\032\004\030\004(\000'
|
|
49
|
+
_globals['_AV1OPTIONS'].fields_by_name['tile_rows']._loaded_options = None
|
|
50
|
+
_globals['_AV1OPTIONS'].fields_by_name['tile_rows']._serialized_options = b'\272H\006\032\004\030\004(\000'
|
|
51
|
+
_globals['_AV1OPTIONS'].fields_by_name['film_grain']._loaded_options = None
|
|
52
|
+
_globals['_AV1OPTIONS'].fields_by_name['film_grain']._serialized_options = b'\272H\006\032\004\0302(\000'
|
|
53
|
+
_globals['_AV1OPTIONS']._serialized_start=80
|
|
54
|
+
_globals['_AV1OPTIONS']._serialized_end=774
|
|
55
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class AV1Options(_message.Message):
|
|
9
|
+
__slots__ = ("preset", "tune", "crf", "bitrate", "max_bitrate", "keyint", "tile_columns", "tile_rows", "film_grain", "enable_dlf", "enable_cdef", "enable_restoration")
|
|
10
|
+
PRESET_FIELD_NUMBER: _ClassVar[int]
|
|
11
|
+
TUNE_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
CRF_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
BITRATE_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
MAX_BITRATE_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
KEYINT_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
TILE_COLUMNS_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
TILE_ROWS_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
FILM_GRAIN_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
ENABLE_DLF_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
ENABLE_CDEF_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
ENABLE_RESTORATION_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
preset: int
|
|
23
|
+
tune: int
|
|
24
|
+
crf: int
|
|
25
|
+
bitrate: int
|
|
26
|
+
max_bitrate: int
|
|
27
|
+
keyint: int
|
|
28
|
+
tile_columns: int
|
|
29
|
+
tile_rows: int
|
|
30
|
+
film_grain: int
|
|
31
|
+
enable_dlf: bool
|
|
32
|
+
enable_cdef: bool
|
|
33
|
+
enable_restoration: bool
|
|
34
|
+
def __init__(self, preset: _Optional[int] = ..., tune: _Optional[int] = ..., crf: _Optional[int] = ..., bitrate: _Optional[int] = ..., max_bitrate: _Optional[int] = ..., keyint: _Optional[int] = ..., tile_columns: _Optional[int] = ..., tile_rows: _Optional[int] = ..., film_grain: _Optional[int] = ..., enable_dlf: bool = ..., enable_cdef: bool = ..., enable_restoration: bool = ...) -> None: ...
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: transcodely/v1/codec_h264.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/codec_h264.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ftranscodely/v1/codec_h264.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\"\xd2\x07\n\x0bH264Options\x12$\n\x06preset\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x00R\x06preset\x88\x01\x01\x12 \n\x04tune\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x01R\x04tune\x88\x01\x01\x12&\n\x07profile\x18\x03 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x02R\x07profile\x88\x01\x01\x12\"\n\x05level\x18\x04 \x01(\tB\x07\xbaH\x04r\x02\x18\nH\x03R\x05level\x88\x01\x01\x12 \n\x03\x63rf\x18\x05 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x33(\x00H\x04R\x03\x63rf\x88\x01\x01\x12*\n\x07\x62itrate\x18\x06 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\x80\xd3\x0e(dH\x05R\x07\x62itrate\x88\x01\x01\x12*\n\x07maxrate\x18\x07 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\x80\xd3\x0e(dH\x06R\x07maxrate\x88\x01\x01\x12*\n\x07\x62ufsize\x18\x08 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\x80\xa6\x1d(dH\x07R\x07\x62ufsize\x88\x01\x01\x12\'\n\x06keyint\x18\t \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xd8\x04(\x01H\x08R\x06keyint\x88\x01\x01\x12-\n\nmin_keyint\x18\n \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18<(\x01H\tR\tminKeyint\x88\x01\x01\x12(\n\x07\x62\x66rames\x18\x0b \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x10(\x00H\nR\x07\x62\x66rames\x88\x01\x01\x12 \n\x03ref\x18\x0c \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x10(\x01H\x0bR\x03ref\x88\x01\x01\x12\x32\n\x0crc_lookahead\x18\r \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xfa\x01(\x00H\x0cR\x0brcLookahead\x88\x01\x01\x12\'\n\x07\x61q_mode\x18\x0e \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x03(\x00H\rR\x06\x61qMode\x88\x01\x01\x12=\n\x0b\x61q_strength\x18\x0f \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\x08@)\x00\x00\x00\x00\x00\x00\x00\x00H\x0eR\naqStrength\x88\x01\x01\x12H\n\x06psy_rd\x18\x10 \x01(\tB,\xbaH)r\'2%^[0-9]+(\\.[0-9]+)?:[0-9]+(\\.[0-9]+)?$H\x0fR\x05psyRd\x88\x01\x01\x12\x37\n\x07\x64\x65\x62lock\x18\x11 \x01(\tB\x18\xbaH\x15r\x13\x32\x11^-?[0-6]:-?[0-6]$H\x10R\x07\x64\x65\x62lock\x88\x01\x01\x42\t\n\x07_presetB\x07\n\x05_tuneB\n\n\x08_profileB\x08\n\x06_levelB\x06\n\x04_crfB\n\n\x08_bitrateB\n\n\x08_maxrateB\n\n\x08_bufsizeB\t\n\x07_keyintB\r\n\x0b_min_keyintB\n\n\x08_bframesB\x06\n\x04_refB\x0f\n\r_rc_lookaheadB\n\n\x08_aq_modeB\x0e\n\x0c_aq_strengthB\t\n\x07_psy_rdB\n\n\x08_deblockb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.codec_h264_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_H264OPTIONS'].fields_by_name['preset']._loaded_options = None
|
|
36
|
+
_globals['_H264OPTIONS'].fields_by_name['preset']._serialized_options = b'\272H\004r\002\030\024'
|
|
37
|
+
_globals['_H264OPTIONS'].fields_by_name['tune']._loaded_options = None
|
|
38
|
+
_globals['_H264OPTIONS'].fields_by_name['tune']._serialized_options = b'\272H\004r\002\030\024'
|
|
39
|
+
_globals['_H264OPTIONS'].fields_by_name['profile']._loaded_options = None
|
|
40
|
+
_globals['_H264OPTIONS'].fields_by_name['profile']._serialized_options = b'\272H\004r\002\030\024'
|
|
41
|
+
_globals['_H264OPTIONS'].fields_by_name['level']._loaded_options = None
|
|
42
|
+
_globals['_H264OPTIONS'].fields_by_name['level']._serialized_options = b'\272H\004r\002\030\n'
|
|
43
|
+
_globals['_H264OPTIONS'].fields_by_name['crf']._loaded_options = None
|
|
44
|
+
_globals['_H264OPTIONS'].fields_by_name['crf']._serialized_options = b'\272H\006\032\004\0303(\000'
|
|
45
|
+
_globals['_H264OPTIONS'].fields_by_name['bitrate']._loaded_options = None
|
|
46
|
+
_globals['_H264OPTIONS'].fields_by_name['bitrate']._serialized_options = b'\272H\010\032\006\030\200\323\016(d'
|
|
47
|
+
_globals['_H264OPTIONS'].fields_by_name['maxrate']._loaded_options = None
|
|
48
|
+
_globals['_H264OPTIONS'].fields_by_name['maxrate']._serialized_options = b'\272H\010\032\006\030\200\323\016(d'
|
|
49
|
+
_globals['_H264OPTIONS'].fields_by_name['bufsize']._loaded_options = None
|
|
50
|
+
_globals['_H264OPTIONS'].fields_by_name['bufsize']._serialized_options = b'\272H\010\032\006\030\200\246\035(d'
|
|
51
|
+
_globals['_H264OPTIONS'].fields_by_name['keyint']._loaded_options = None
|
|
52
|
+
_globals['_H264OPTIONS'].fields_by_name['keyint']._serialized_options = b'\272H\007\032\005\030\330\004(\001'
|
|
53
|
+
_globals['_H264OPTIONS'].fields_by_name['min_keyint']._loaded_options = None
|
|
54
|
+
_globals['_H264OPTIONS'].fields_by_name['min_keyint']._serialized_options = b'\272H\006\032\004\030<(\001'
|
|
55
|
+
_globals['_H264OPTIONS'].fields_by_name['bframes']._loaded_options = None
|
|
56
|
+
_globals['_H264OPTIONS'].fields_by_name['bframes']._serialized_options = b'\272H\006\032\004\030\020(\000'
|
|
57
|
+
_globals['_H264OPTIONS'].fields_by_name['ref']._loaded_options = None
|
|
58
|
+
_globals['_H264OPTIONS'].fields_by_name['ref']._serialized_options = b'\272H\006\032\004\030\020(\001'
|
|
59
|
+
_globals['_H264OPTIONS'].fields_by_name['rc_lookahead']._loaded_options = None
|
|
60
|
+
_globals['_H264OPTIONS'].fields_by_name['rc_lookahead']._serialized_options = b'\272H\007\032\005\030\372\001(\000'
|
|
61
|
+
_globals['_H264OPTIONS'].fields_by_name['aq_mode']._loaded_options = None
|
|
62
|
+
_globals['_H264OPTIONS'].fields_by_name['aq_mode']._serialized_options = b'\272H\006\032\004\030\003(\000'
|
|
63
|
+
_globals['_H264OPTIONS'].fields_by_name['aq_strength']._loaded_options = None
|
|
64
|
+
_globals['_H264OPTIONS'].fields_by_name['aq_strength']._serialized_options = b'\272H\024\022\022\031\000\000\000\000\000\000\010@)\000\000\000\000\000\000\000\000'
|
|
65
|
+
_globals['_H264OPTIONS'].fields_by_name['psy_rd']._loaded_options = None
|
|
66
|
+
_globals['_H264OPTIONS'].fields_by_name['psy_rd']._serialized_options = b'\272H)r\'2%^[0-9]+(\\.[0-9]+)?:[0-9]+(\\.[0-9]+)?$'
|
|
67
|
+
_globals['_H264OPTIONS'].fields_by_name['deblock']._loaded_options = None
|
|
68
|
+
_globals['_H264OPTIONS'].fields_by_name['deblock']._serialized_options = b'\272H\025r\0232\021^-?[0-6]:-?[0-6]$'
|
|
69
|
+
_globals['_H264OPTIONS']._serialized_start=81
|
|
70
|
+
_globals['_H264OPTIONS']._serialized_end=1059
|
|
71
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class H264Options(_message.Message):
|
|
9
|
+
__slots__ = ("preset", "tune", "profile", "level", "crf", "bitrate", "maxrate", "bufsize", "keyint", "min_keyint", "bframes", "ref", "rc_lookahead", "aq_mode", "aq_strength", "psy_rd", "deblock")
|
|
10
|
+
PRESET_FIELD_NUMBER: _ClassVar[int]
|
|
11
|
+
TUNE_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
PROFILE_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
LEVEL_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
CRF_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
BITRATE_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
MAXRATE_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
BUFSIZE_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
KEYINT_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
MIN_KEYINT_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
BFRAMES_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
REF_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
RC_LOOKAHEAD_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
AQ_MODE_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
AQ_STRENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
PSY_RD_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
DEBLOCK_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
preset: str
|
|
28
|
+
tune: str
|
|
29
|
+
profile: str
|
|
30
|
+
level: str
|
|
31
|
+
crf: int
|
|
32
|
+
bitrate: int
|
|
33
|
+
maxrate: int
|
|
34
|
+
bufsize: int
|
|
35
|
+
keyint: int
|
|
36
|
+
min_keyint: int
|
|
37
|
+
bframes: int
|
|
38
|
+
ref: int
|
|
39
|
+
rc_lookahead: int
|
|
40
|
+
aq_mode: int
|
|
41
|
+
aq_strength: float
|
|
42
|
+
psy_rd: str
|
|
43
|
+
deblock: str
|
|
44
|
+
def __init__(self, preset: _Optional[str] = ..., tune: _Optional[str] = ..., profile: _Optional[str] = ..., level: _Optional[str] = ..., crf: _Optional[int] = ..., bitrate: _Optional[int] = ..., maxrate: _Optional[int] = ..., bufsize: _Optional[int] = ..., keyint: _Optional[int] = ..., min_keyint: _Optional[int] = ..., bframes: _Optional[int] = ..., ref: _Optional[int] = ..., rc_lookahead: _Optional[int] = ..., aq_mode: _Optional[int] = ..., aq_strength: _Optional[float] = ..., psy_rd: _Optional[str] = ..., deblock: _Optional[str] = ...) -> None: ...
|