yandexcloud 0.324.0__py3-none-any.whl → 0.325.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.
- yandex/cloud/ai/foundation_models/v1/embedding/embedding_service_pb2.pyi +1 -1
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.pyi +4 -2
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2.pyi +6 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2_grpc.py +3 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2_grpc.pyi +3 -3
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_pb2.pyi +3 -3
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2.pyi +25 -10
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.py +11 -5
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.pyi +33 -9
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +3 -3
- yandex/cloud/ai/stt/v3/stt_pb2.py +5 -3
- yandex/cloud/ai/stt/v3/stt_pb2.pyi +15 -0
- yandex/cloud/ai/stt/v3/stt_service_pb2.py +10 -7
- yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.py +34 -0
- yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.pyi +18 -0
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.py +26 -26
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.pyi +7 -1
- yandex/cloud/backup/v1/policy_pb2.pyi +1 -1
- yandex/cloud/cdn/v1/resource_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/resource_service_pb2.pyi +5 -1
- yandex/cloud/cloudregistry/v1/artifact_pb2.pyi +2 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2.pyi +3 -3
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.py +9 -6
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.pyi +15 -9
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +1 -1
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +42 -38
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.py +2 -2
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.pyi +6 -6
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +9 -5
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +96 -0
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +55 -53
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +14 -2
- yandex/cloud/iam/v1/user_account_pb2.pyi +2 -2
- yandex/cloud/iam/v1/user_account_service_pb2_grpc.py +3 -3
- yandex/cloud/iam/v1/user_account_service_pb2_grpc.pyi +3 -3
- yandex/cloud/mdb/redis/v1/backup_pb2.py +4 -2
- yandex/cloud/mdb/redis/v1/backup_pb2.pyi +31 -1
- yandex/cloud/organizationmanager/v1/user_account_pb2.pyi +2 -2
- yandex/cloud/searchapi/__init__.py +0 -0
- yandex/cloud/searchapi/v2/__init__.py +0 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +37 -0
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +100 -0
- yandex/cloud/searchapi/v2/search_query_pb2_grpc.py +4 -0
- yandex/cloud/searchapi/v2/search_query_pb2_grpc.pyi +17 -0
- yandex/cloud/searchapi/v2/search_service_pb2.py +61 -0
- yandex/cloud/searchapi/v2/search_service_pb2.pyi +218 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.py +70 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.pyi +48 -0
- yandex/cloud/serverless/containers/v1/container_pb2.py +42 -34
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +52 -2
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +18 -18
- yandex/cloud/serverless/containers/v1/container_service_pb2.pyi +8 -2
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +9 -9
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +8 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.py +31 -31
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +4 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +23 -15
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.pyi +32 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.py +34 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.pyi +20 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.py +46 -40
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.pyi +47 -2
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.py +18 -18
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.pyi +16 -3
- yandex/cloud/video/v1/channel_pb2.py +1 -1
- yandex/cloud/video/v1/channel_service_pb2.py +58 -25
- yandex/cloud/video/v1/channel_service_pb2.pyi +40 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +34 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +20 -0
- yandex/cloud/video/v1/episode_pb2.py +10 -8
- yandex/cloud/video/v1/episode_pb2.pyi +19 -3
- yandex/cloud/video/v1/episode_service_pb2.py +96 -43
- yandex/cloud/video/v1/episode_service_pb2.pyi +68 -6
- yandex/cloud/video/v1/episode_service_pb2_grpc.py +34 -0
- yandex/cloud/video/v1/episode_service_pb2_grpc.pyi +20 -0
- yandex/cloud/video/v1/manifest_pb2.py +3 -3
- yandex/cloud/video/v1/manifest_pb2.pyi +1 -5
- yandex/cloud/video/v1/playlist_pb2.py +29 -0
- yandex/cloud/video/v1/playlist_pb2.pyi +89 -0
- yandex/cloud/video/v1/playlist_pb2_grpc.py +4 -0
- yandex/cloud/video/v1/playlist_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/playlist_service_pb2.py +102 -0
- yandex/cloud/video/v1/playlist_service_pb2.pyi +331 -0
- yandex/cloud/video/v1/playlist_service_pb2_grpc.py +276 -0
- yandex/cloud/video/v1/playlist_service_pb2_grpc.pyi +172 -0
- yandex/cloud/video/v1/stream_line_pb2.py +1 -1
- yandex/cloud/video/v1/stream_line_service_pb2.py +122 -55
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +80 -0
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.py +68 -0
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.pyi +40 -0
- yandex/cloud/video/v1/stream_pb2.py +1 -1
- yandex/cloud/video/v1/stream_service_pb2.py +98 -37
- yandex/cloud/video/v1/stream_service_pb2.pyi +80 -0
- yandex/cloud/video/v1/stream_service_pb2_grpc.py +68 -0
- yandex/cloud/video/v1/stream_service_pb2_grpc.pyi +40 -0
- yandex/cloud/video/v1/subtitle_pb2.py +29 -0
- yandex/cloud/video/v1/subtitle_pb2.pyi +90 -0
- yandex/cloud/video/v1/subtitle_pb2_grpc.py +4 -0
- yandex/cloud/video/v1/subtitle_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/subtitle_service_pb2.py +83 -0
- yandex/cloud/video/v1/subtitle_service_pb2.pyi +212 -0
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.py +208 -0
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.pyi +132 -0
- yandex/cloud/video/v1/thumbnail_service_pb2.py +50 -21
- yandex/cloud/video/v1/thumbnail_service_pb2.pyi +48 -0
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.py +69 -0
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.pyi +41 -0
- yandex/cloud/video/v1/video_pb2.py +18 -14
- yandex/cloud/video/v1/video_pb2.pyi +55 -3
- yandex/cloud/video/v1/video_service_pb2.py +118 -49
- yandex/cloud/video/v1/video_service_pb2.pyi +161 -6
- yandex/cloud/video/v1/video_service_pb2_grpc.py +102 -0
- yandex/cloud/video/v1/video_service_pb2_grpc.pyi +60 -0
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.325.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.325.0.dist-info}/RECORD +119 -93
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.325.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.325.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.325.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.325.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/video/v1/subtitle_service.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
16
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
17
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
18
|
+
from yandex.cloud.video.v1 import subtitle_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/video/v1/subtitle_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a$yandex/cloud/video/v1/subtitle.proto\"7\n\x12GetSubtitleRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x93\x01\n\x14ListSubtitlesRequest\x12\x1d\n\tpage_size\x18\x64 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x65 \x01(\tB\t\x8a\xc8\x31\x05<=200\x12\x1d\n\x08video_id\x18\xe8\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x01\x10\x64J\x05\x08\x66\x10\xe8\x07\"j\n\x15ListSubtitlesResponse\x12\x32\n\tsubtitles\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.video.v1.Subtitle\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"\xc9\x01\n\x15\x43reateSubtitleRequest\x12\x10\n\x08language\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x1d\n\x08video_id\x18\xe8\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12>\n\x06upload\x18\xcc\x08 \x01(\x0b\x32+.yandex.cloud.video.v1.SubtitleUploadParamsH\x01\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01\x42\x0e\n\x06source\x12\x04\xc0\xc1\x31\x01J\x05\x08\x03\x10\xe8\x07J\x06\x08\xe9\x07\x10\xcc\x08\".\n\x14SubtitleUploadParams\x12\x16\n\x08\x66ilename\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"-\n\x16\x43reateSubtitleMetadata\x12\x13\n\x0bsubtitle_id\x18\x01 \x01(\t\"E\n GenerateSubtitleUploadURLRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"7\n!GenerateSubtitleUploadURLResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\":\n\x15\x44\x65leteSubtitleRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"-\n\x16\x44\x65leteSubtitleMetadata\x12\x13\n\x0bsubtitle_id\x18\x01 \x01(\t2\xb1\x06\n\x0fSubtitleService\x12|\n\x03Get\x12).yandex.cloud.video.v1.GetSubtitleRequest\x1a\x1f.yandex.cloud.video.v1.Subtitle\")\x82\xd3\xe4\x93\x02#\x12!/video/v1/subtitles/{subtitle_id}\x12~\n\x04List\x12+.yandex.cloud.video.v1.ListSubtitlesRequest\x1a,.yandex.cloud.video.v1.ListSubtitlesResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/video/v1/subtitles\x12\x9f\x01\n\x06\x43reate\x12,.yandex.cloud.video.v1.CreateSubtitleRequest\x1a!.yandex.cloud.operation.Operation\"D\xb2\xd2*\"\n\x16\x43reateSubtitleMetadata\x12\x08Subtitle\x82\xd3\xe4\x93\x02\x18\"\x13/video/v1/subtitles:\x01*\x12\xc3\x01\n\x11GenerateUploadURL\x12\x37.yandex.cloud.video.v1.GenerateSubtitleUploadURLRequest\x1a\x38.yandex.cloud.video.v1.GenerateSubtitleUploadURLResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/video/v1/subtitles/{subtitle_id}:generateUploadURL\x12\xb7\x01\n\x06\x44\x65lete\x12,.yandex.cloud.video.v1.DeleteSubtitleRequest\x1a!.yandex.cloud.operation.Operation\"\\\xb2\xd2*/\n\x16\x44\x65leteSubtitleMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02#*!/video/v1/subtitles/{subtitle_id}B\\\n\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.video.v1.subtitle_service_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n\031yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;video'
|
|
29
|
+
_GETSUBTITLEREQUEST.fields_by_name['subtitle_id']._options = None
|
|
30
|
+
_GETSUBTITLEREQUEST.fields_by_name['subtitle_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
31
|
+
_LISTSUBTITLESREQUEST.oneofs_by_name['parent_id']._options = None
|
|
32
|
+
_LISTSUBTITLESREQUEST.oneofs_by_name['parent_id']._serialized_options = b'\300\3011\001'
|
|
33
|
+
_LISTSUBTITLESREQUEST.fields_by_name['page_size']._options = None
|
|
34
|
+
_LISTSUBTITLESREQUEST.fields_by_name['page_size']._serialized_options = b'\372\3071\006<=1000'
|
|
35
|
+
_LISTSUBTITLESREQUEST.fields_by_name['page_token']._options = None
|
|
36
|
+
_LISTSUBTITLESREQUEST.fields_by_name['page_token']._serialized_options = b'\212\3101\005<=200'
|
|
37
|
+
_LISTSUBTITLESREQUEST.fields_by_name['video_id']._options = None
|
|
38
|
+
_LISTSUBTITLESREQUEST.fields_by_name['video_id']._serialized_options = b'\212\3101\004<=50'
|
|
39
|
+
_CREATESUBTITLEREQUEST.oneofs_by_name['parent_id']._options = None
|
|
40
|
+
_CREATESUBTITLEREQUEST.oneofs_by_name['parent_id']._serialized_options = b'\300\3011\001'
|
|
41
|
+
_CREATESUBTITLEREQUEST.oneofs_by_name['source']._options = None
|
|
42
|
+
_CREATESUBTITLEREQUEST.oneofs_by_name['source']._serialized_options = b'\300\3011\001'
|
|
43
|
+
_CREATESUBTITLEREQUEST.fields_by_name['video_id']._options = None
|
|
44
|
+
_CREATESUBTITLEREQUEST.fields_by_name['video_id']._serialized_options = b'\212\3101\004<=50'
|
|
45
|
+
_SUBTITLEUPLOADPARAMS.fields_by_name['filename']._options = None
|
|
46
|
+
_SUBTITLEUPLOADPARAMS.fields_by_name['filename']._serialized_options = b'\350\3071\001'
|
|
47
|
+
_GENERATESUBTITLEUPLOADURLREQUEST.fields_by_name['subtitle_id']._options = None
|
|
48
|
+
_GENERATESUBTITLEUPLOADURLREQUEST.fields_by_name['subtitle_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
49
|
+
_DELETESUBTITLEREQUEST.fields_by_name['subtitle_id']._options = None
|
|
50
|
+
_DELETESUBTITLEREQUEST.fields_by_name['subtitle_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
51
|
+
_SUBTITLESERVICE.methods_by_name['Get']._options = None
|
|
52
|
+
_SUBTITLESERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002#\022!/video/v1/subtitles/{subtitle_id}'
|
|
53
|
+
_SUBTITLESERVICE.methods_by_name['List']._options = None
|
|
54
|
+
_SUBTITLESERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\025\022\023/video/v1/subtitles'
|
|
55
|
+
_SUBTITLESERVICE.methods_by_name['Create']._options = None
|
|
56
|
+
_SUBTITLESERVICE.methods_by_name['Create']._serialized_options = b'\262\322*\"\n\026CreateSubtitleMetadata\022\010Subtitle\202\323\344\223\002\030\"\023/video/v1/subtitles:\001*'
|
|
57
|
+
_SUBTITLESERVICE.methods_by_name['GenerateUploadURL']._options = None
|
|
58
|
+
_SUBTITLESERVICE.methods_by_name['GenerateUploadURL']._serialized_options = b'\202\323\344\223\0025\0223/video/v1/subtitles/{subtitle_id}:generateUploadURL'
|
|
59
|
+
_SUBTITLESERVICE.methods_by_name['Delete']._options = None
|
|
60
|
+
_SUBTITLESERVICE.methods_by_name['Delete']._serialized_options = b'\262\322*/\n\026DeleteSubtitleMetadata\022\025google.protobuf.Empty\202\323\344\223\002#*!/video/v1/subtitles/{subtitle_id}'
|
|
61
|
+
_globals['_GETSUBTITLEREQUEST']._serialized_start=244
|
|
62
|
+
_globals['_GETSUBTITLEREQUEST']._serialized_end=299
|
|
63
|
+
_globals['_LISTSUBTITLESREQUEST']._serialized_start=302
|
|
64
|
+
_globals['_LISTSUBTITLESREQUEST']._serialized_end=449
|
|
65
|
+
_globals['_LISTSUBTITLESRESPONSE']._serialized_start=451
|
|
66
|
+
_globals['_LISTSUBTITLESRESPONSE']._serialized_end=557
|
|
67
|
+
_globals['_CREATESUBTITLEREQUEST']._serialized_start=560
|
|
68
|
+
_globals['_CREATESUBTITLEREQUEST']._serialized_end=761
|
|
69
|
+
_globals['_SUBTITLEUPLOADPARAMS']._serialized_start=763
|
|
70
|
+
_globals['_SUBTITLEUPLOADPARAMS']._serialized_end=809
|
|
71
|
+
_globals['_CREATESUBTITLEMETADATA']._serialized_start=811
|
|
72
|
+
_globals['_CREATESUBTITLEMETADATA']._serialized_end=856
|
|
73
|
+
_globals['_GENERATESUBTITLEUPLOADURLREQUEST']._serialized_start=858
|
|
74
|
+
_globals['_GENERATESUBTITLEUPLOADURLREQUEST']._serialized_end=927
|
|
75
|
+
_globals['_GENERATESUBTITLEUPLOADURLRESPONSE']._serialized_start=929
|
|
76
|
+
_globals['_GENERATESUBTITLEUPLOADURLRESPONSE']._serialized_end=984
|
|
77
|
+
_globals['_DELETESUBTITLEREQUEST']._serialized_start=986
|
|
78
|
+
_globals['_DELETESUBTITLEREQUEST']._serialized_end=1044
|
|
79
|
+
_globals['_DELETESUBTITLEMETADATA']._serialized_start=1046
|
|
80
|
+
_globals['_DELETESUBTITLEMETADATA']._serialized_end=1091
|
|
81
|
+
_globals['_SUBTITLESERVICE']._serialized_start=1094
|
|
82
|
+
_globals['_SUBTITLESERVICE']._serialized_end=1911
|
|
83
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.video.v1.subtitle_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class GetSubtitleRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
SUBTITLE_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
subtitle_id: builtins.str
|
|
22
|
+
"""ID of the subtitle."""
|
|
23
|
+
def __init__(
|
|
24
|
+
self,
|
|
25
|
+
*,
|
|
26
|
+
subtitle_id: builtins.str = ...,
|
|
27
|
+
) -> None: ...
|
|
28
|
+
def ClearField(self, field_name: typing.Literal["subtitle_id", b"subtitle_id"]) -> None: ...
|
|
29
|
+
|
|
30
|
+
global___GetSubtitleRequest = GetSubtitleRequest
|
|
31
|
+
|
|
32
|
+
@typing.final
|
|
33
|
+
class ListSubtitlesRequest(google.protobuf.message.Message):
|
|
34
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
35
|
+
|
|
36
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
37
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
38
|
+
VIDEO_ID_FIELD_NUMBER: builtins.int
|
|
39
|
+
page_size: builtins.int
|
|
40
|
+
"""The maximum number of the results per page to return."""
|
|
41
|
+
page_token: builtins.str
|
|
42
|
+
"""Page token for getting the next page of the result."""
|
|
43
|
+
video_id: builtins.str
|
|
44
|
+
"""ID of the video."""
|
|
45
|
+
def __init__(
|
|
46
|
+
self,
|
|
47
|
+
*,
|
|
48
|
+
page_size: builtins.int = ...,
|
|
49
|
+
page_token: builtins.str = ...,
|
|
50
|
+
video_id: builtins.str = ...,
|
|
51
|
+
) -> None: ...
|
|
52
|
+
def HasField(self, field_name: typing.Literal["parent_id", b"parent_id", "video_id", b"video_id"]) -> builtins.bool: ...
|
|
53
|
+
def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token", "parent_id", b"parent_id", "video_id", b"video_id"]) -> None: ...
|
|
54
|
+
def WhichOneof(self, oneof_group: typing.Literal["parent_id", b"parent_id"]) -> typing.Literal["video_id"] | None: ...
|
|
55
|
+
|
|
56
|
+
global___ListSubtitlesRequest = ListSubtitlesRequest
|
|
57
|
+
|
|
58
|
+
@typing.final
|
|
59
|
+
class ListSubtitlesResponse(google.protobuf.message.Message):
|
|
60
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
61
|
+
|
|
62
|
+
SUBTITLES_FIELD_NUMBER: builtins.int
|
|
63
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
64
|
+
next_page_token: builtins.str
|
|
65
|
+
"""Token for getting the next page."""
|
|
66
|
+
@property
|
|
67
|
+
def subtitles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.video.v1.subtitle_pb2.Subtitle]: ...
|
|
68
|
+
def __init__(
|
|
69
|
+
self,
|
|
70
|
+
*,
|
|
71
|
+
subtitles: collections.abc.Iterable[yandex.cloud.video.v1.subtitle_pb2.Subtitle] | None = ...,
|
|
72
|
+
next_page_token: builtins.str = ...,
|
|
73
|
+
) -> None: ...
|
|
74
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "subtitles", b"subtitles"]) -> None: ...
|
|
75
|
+
|
|
76
|
+
global___ListSubtitlesResponse = ListSubtitlesResponse
|
|
77
|
+
|
|
78
|
+
@typing.final
|
|
79
|
+
class CreateSubtitleRequest(google.protobuf.message.Message):
|
|
80
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
81
|
+
|
|
82
|
+
LANGUAGE_FIELD_NUMBER: builtins.int
|
|
83
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
84
|
+
VIDEO_ID_FIELD_NUMBER: builtins.int
|
|
85
|
+
UPLOAD_FIELD_NUMBER: builtins.int
|
|
86
|
+
language: builtins.str
|
|
87
|
+
"""The language of the subtitles, represented as a three-letter ISO 639 code.
|
|
88
|
+
Supports ISO 639-2/T (terminological), ISO 639-2/B (bibliographical) variants and ISO 639-3.
|
|
89
|
+
Valid ISO language code corresponding to the subtitle text must be provided.
|
|
90
|
+
"""
|
|
91
|
+
label: builtins.str
|
|
92
|
+
"""Contains the subtitle label (or title) that will be displayed on screen during video playback.
|
|
93
|
+
Should provide a concise and accurate representation of the spoken content.
|
|
94
|
+
If not provided, will be auto-generated based on the specified language.
|
|
95
|
+
"""
|
|
96
|
+
video_id: builtins.str
|
|
97
|
+
"""ID of the video."""
|
|
98
|
+
@property
|
|
99
|
+
def upload(self) -> global___SubtitleUploadParams:
|
|
100
|
+
"""Upload subtitle."""
|
|
101
|
+
|
|
102
|
+
def __init__(
|
|
103
|
+
self,
|
|
104
|
+
*,
|
|
105
|
+
language: builtins.str = ...,
|
|
106
|
+
label: builtins.str = ...,
|
|
107
|
+
video_id: builtins.str = ...,
|
|
108
|
+
upload: global___SubtitleUploadParams | None = ...,
|
|
109
|
+
) -> None: ...
|
|
110
|
+
def HasField(self, field_name: typing.Literal["parent_id", b"parent_id", "source", b"source", "upload", b"upload", "video_id", b"video_id"]) -> builtins.bool: ...
|
|
111
|
+
def ClearField(self, field_name: typing.Literal["label", b"label", "language", b"language", "parent_id", b"parent_id", "source", b"source", "upload", b"upload", "video_id", b"video_id"]) -> None: ...
|
|
112
|
+
@typing.overload
|
|
113
|
+
def WhichOneof(self, oneof_group: typing.Literal["parent_id", b"parent_id"]) -> typing.Literal["video_id"] | None: ...
|
|
114
|
+
@typing.overload
|
|
115
|
+
def WhichOneof(self, oneof_group: typing.Literal["source", b"source"]) -> typing.Literal["upload"] | None: ...
|
|
116
|
+
|
|
117
|
+
global___CreateSubtitleRequest = CreateSubtitleRequest
|
|
118
|
+
|
|
119
|
+
@typing.final
|
|
120
|
+
class SubtitleUploadParams(google.protobuf.message.Message):
|
|
121
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
122
|
+
|
|
123
|
+
FILENAME_FIELD_NUMBER: builtins.int
|
|
124
|
+
filename: builtins.str
|
|
125
|
+
def __init__(
|
|
126
|
+
self,
|
|
127
|
+
*,
|
|
128
|
+
filename: builtins.str = ...,
|
|
129
|
+
) -> None: ...
|
|
130
|
+
def ClearField(self, field_name: typing.Literal["filename", b"filename"]) -> None: ...
|
|
131
|
+
|
|
132
|
+
global___SubtitleUploadParams = SubtitleUploadParams
|
|
133
|
+
|
|
134
|
+
@typing.final
|
|
135
|
+
class CreateSubtitleMetadata(google.protobuf.message.Message):
|
|
136
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
137
|
+
|
|
138
|
+
SUBTITLE_ID_FIELD_NUMBER: builtins.int
|
|
139
|
+
subtitle_id: builtins.str
|
|
140
|
+
"""ID of the subtitle."""
|
|
141
|
+
def __init__(
|
|
142
|
+
self,
|
|
143
|
+
*,
|
|
144
|
+
subtitle_id: builtins.str = ...,
|
|
145
|
+
) -> None: ...
|
|
146
|
+
def ClearField(self, field_name: typing.Literal["subtitle_id", b"subtitle_id"]) -> None: ...
|
|
147
|
+
|
|
148
|
+
global___CreateSubtitleMetadata = CreateSubtitleMetadata
|
|
149
|
+
|
|
150
|
+
@typing.final
|
|
151
|
+
class GenerateSubtitleUploadURLRequest(google.protobuf.message.Message):
|
|
152
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
153
|
+
|
|
154
|
+
SUBTITLE_ID_FIELD_NUMBER: builtins.int
|
|
155
|
+
subtitle_id: builtins.str
|
|
156
|
+
"""ID of the subtitle."""
|
|
157
|
+
def __init__(
|
|
158
|
+
self,
|
|
159
|
+
*,
|
|
160
|
+
subtitle_id: builtins.str = ...,
|
|
161
|
+
) -> None: ...
|
|
162
|
+
def ClearField(self, field_name: typing.Literal["subtitle_id", b"subtitle_id"]) -> None: ...
|
|
163
|
+
|
|
164
|
+
global___GenerateSubtitleUploadURLRequest = GenerateSubtitleUploadURLRequest
|
|
165
|
+
|
|
166
|
+
@typing.final
|
|
167
|
+
class GenerateSubtitleUploadURLResponse(google.protobuf.message.Message):
|
|
168
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
169
|
+
|
|
170
|
+
UPLOAD_URL_FIELD_NUMBER: builtins.int
|
|
171
|
+
upload_url: builtins.str
|
|
172
|
+
"""Upload url."""
|
|
173
|
+
def __init__(
|
|
174
|
+
self,
|
|
175
|
+
*,
|
|
176
|
+
upload_url: builtins.str = ...,
|
|
177
|
+
) -> None: ...
|
|
178
|
+
def ClearField(self, field_name: typing.Literal["upload_url", b"upload_url"]) -> None: ...
|
|
179
|
+
|
|
180
|
+
global___GenerateSubtitleUploadURLResponse = GenerateSubtitleUploadURLResponse
|
|
181
|
+
|
|
182
|
+
@typing.final
|
|
183
|
+
class DeleteSubtitleRequest(google.protobuf.message.Message):
|
|
184
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
185
|
+
|
|
186
|
+
SUBTITLE_ID_FIELD_NUMBER: builtins.int
|
|
187
|
+
subtitle_id: builtins.str
|
|
188
|
+
"""ID of the subtitle."""
|
|
189
|
+
def __init__(
|
|
190
|
+
self,
|
|
191
|
+
*,
|
|
192
|
+
subtitle_id: builtins.str = ...,
|
|
193
|
+
) -> None: ...
|
|
194
|
+
def ClearField(self, field_name: typing.Literal["subtitle_id", b"subtitle_id"]) -> None: ...
|
|
195
|
+
|
|
196
|
+
global___DeleteSubtitleRequest = DeleteSubtitleRequest
|
|
197
|
+
|
|
198
|
+
@typing.final
|
|
199
|
+
class DeleteSubtitleMetadata(google.protobuf.message.Message):
|
|
200
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
201
|
+
|
|
202
|
+
SUBTITLE_ID_FIELD_NUMBER: builtins.int
|
|
203
|
+
subtitle_id: builtins.str
|
|
204
|
+
"""ID of the subtitle."""
|
|
205
|
+
def __init__(
|
|
206
|
+
self,
|
|
207
|
+
*,
|
|
208
|
+
subtitle_id: builtins.str = ...,
|
|
209
|
+
) -> None: ...
|
|
210
|
+
def ClearField(self, field_name: typing.Literal["subtitle_id", b"subtitle_id"]) -> None: ...
|
|
211
|
+
|
|
212
|
+
global___DeleteSubtitleMetadata = DeleteSubtitleMetadata
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
6
|
+
from yandex.cloud.video.v1 import subtitle_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__pb2
|
|
7
|
+
from yandex.cloud.video.v1 import subtitle_service_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SubtitleServiceStub(object):
|
|
11
|
+
"""Subtitle management service.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.Get = channel.unary_unary(
|
|
21
|
+
'/yandex.cloud.video.v1.SubtitleService/Get',
|
|
22
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GetSubtitleRequest.SerializeToString,
|
|
23
|
+
response_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__pb2.Subtitle.FromString,
|
|
24
|
+
)
|
|
25
|
+
self.List = channel.unary_unary(
|
|
26
|
+
'/yandex.cloud.video.v1.SubtitleService/List',
|
|
27
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.ListSubtitlesRequest.SerializeToString,
|
|
28
|
+
response_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.ListSubtitlesResponse.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.Create = channel.unary_unary(
|
|
31
|
+
'/yandex.cloud.video.v1.SubtitleService/Create',
|
|
32
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.CreateSubtitleRequest.SerializeToString,
|
|
33
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.GenerateUploadURL = channel.unary_unary(
|
|
36
|
+
'/yandex.cloud.video.v1.SubtitleService/GenerateUploadURL',
|
|
37
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GenerateSubtitleUploadURLRequest.SerializeToString,
|
|
38
|
+
response_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GenerateSubtitleUploadURLResponse.FromString,
|
|
39
|
+
)
|
|
40
|
+
self.Delete = channel.unary_unary(
|
|
41
|
+
'/yandex.cloud.video.v1.SubtitleService/Delete',
|
|
42
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.DeleteSubtitleRequest.SerializeToString,
|
|
43
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class SubtitleServiceServicer(object):
|
|
48
|
+
"""Subtitle management service.
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def Get(self, request, context):
|
|
52
|
+
"""Return a specific subtitle.
|
|
53
|
+
"""
|
|
54
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
55
|
+
context.set_details('Method not implemented!')
|
|
56
|
+
raise NotImplementedError('Method not implemented!')
|
|
57
|
+
|
|
58
|
+
def List(self, request, context):
|
|
59
|
+
"""List subtitles.
|
|
60
|
+
"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def Create(self, request, context):
|
|
66
|
+
"""Create a new subtitle.
|
|
67
|
+
"""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
def GenerateUploadURL(self, request, context):
|
|
73
|
+
"""Generate an upload URL to add a new subtitle file.
|
|
74
|
+
"""
|
|
75
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
76
|
+
context.set_details('Method not implemented!')
|
|
77
|
+
raise NotImplementedError('Method not implemented!')
|
|
78
|
+
|
|
79
|
+
def Delete(self, request, context):
|
|
80
|
+
"""Delete a specific subtitle.
|
|
81
|
+
"""
|
|
82
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
83
|
+
context.set_details('Method not implemented!')
|
|
84
|
+
raise NotImplementedError('Method not implemented!')
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def add_SubtitleServiceServicer_to_server(servicer, server):
|
|
88
|
+
rpc_method_handlers = {
|
|
89
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
90
|
+
servicer.Get,
|
|
91
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GetSubtitleRequest.FromString,
|
|
92
|
+
response_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__pb2.Subtitle.SerializeToString,
|
|
93
|
+
),
|
|
94
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
95
|
+
servicer.List,
|
|
96
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.ListSubtitlesRequest.FromString,
|
|
97
|
+
response_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.ListSubtitlesResponse.SerializeToString,
|
|
98
|
+
),
|
|
99
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
100
|
+
servicer.Create,
|
|
101
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.CreateSubtitleRequest.FromString,
|
|
102
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
103
|
+
),
|
|
104
|
+
'GenerateUploadURL': grpc.unary_unary_rpc_method_handler(
|
|
105
|
+
servicer.GenerateUploadURL,
|
|
106
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GenerateSubtitleUploadURLRequest.FromString,
|
|
107
|
+
response_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GenerateSubtitleUploadURLResponse.SerializeToString,
|
|
108
|
+
),
|
|
109
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
110
|
+
servicer.Delete,
|
|
111
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.DeleteSubtitleRequest.FromString,
|
|
112
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
113
|
+
),
|
|
114
|
+
}
|
|
115
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
116
|
+
'yandex.cloud.video.v1.SubtitleService', rpc_method_handlers)
|
|
117
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# This class is part of an EXPERIMENTAL API.
|
|
121
|
+
class SubtitleService(object):
|
|
122
|
+
"""Subtitle management service.
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
@staticmethod
|
|
126
|
+
def Get(request,
|
|
127
|
+
target,
|
|
128
|
+
options=(),
|
|
129
|
+
channel_credentials=None,
|
|
130
|
+
call_credentials=None,
|
|
131
|
+
insecure=False,
|
|
132
|
+
compression=None,
|
|
133
|
+
wait_for_ready=None,
|
|
134
|
+
timeout=None,
|
|
135
|
+
metadata=None):
|
|
136
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.video.v1.SubtitleService/Get',
|
|
137
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GetSubtitleRequest.SerializeToString,
|
|
138
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__pb2.Subtitle.FromString,
|
|
139
|
+
options, channel_credentials,
|
|
140
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
141
|
+
|
|
142
|
+
@staticmethod
|
|
143
|
+
def List(request,
|
|
144
|
+
target,
|
|
145
|
+
options=(),
|
|
146
|
+
channel_credentials=None,
|
|
147
|
+
call_credentials=None,
|
|
148
|
+
insecure=False,
|
|
149
|
+
compression=None,
|
|
150
|
+
wait_for_ready=None,
|
|
151
|
+
timeout=None,
|
|
152
|
+
metadata=None):
|
|
153
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.video.v1.SubtitleService/List',
|
|
154
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.ListSubtitlesRequest.SerializeToString,
|
|
155
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.ListSubtitlesResponse.FromString,
|
|
156
|
+
options, channel_credentials,
|
|
157
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
158
|
+
|
|
159
|
+
@staticmethod
|
|
160
|
+
def Create(request,
|
|
161
|
+
target,
|
|
162
|
+
options=(),
|
|
163
|
+
channel_credentials=None,
|
|
164
|
+
call_credentials=None,
|
|
165
|
+
insecure=False,
|
|
166
|
+
compression=None,
|
|
167
|
+
wait_for_ready=None,
|
|
168
|
+
timeout=None,
|
|
169
|
+
metadata=None):
|
|
170
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.video.v1.SubtitleService/Create',
|
|
171
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.CreateSubtitleRequest.SerializeToString,
|
|
172
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
173
|
+
options, channel_credentials,
|
|
174
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
175
|
+
|
|
176
|
+
@staticmethod
|
|
177
|
+
def GenerateUploadURL(request,
|
|
178
|
+
target,
|
|
179
|
+
options=(),
|
|
180
|
+
channel_credentials=None,
|
|
181
|
+
call_credentials=None,
|
|
182
|
+
insecure=False,
|
|
183
|
+
compression=None,
|
|
184
|
+
wait_for_ready=None,
|
|
185
|
+
timeout=None,
|
|
186
|
+
metadata=None):
|
|
187
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.video.v1.SubtitleService/GenerateUploadURL',
|
|
188
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GenerateSubtitleUploadURLRequest.SerializeToString,
|
|
189
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.GenerateSubtitleUploadURLResponse.FromString,
|
|
190
|
+
options, channel_credentials,
|
|
191
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
192
|
+
|
|
193
|
+
@staticmethod
|
|
194
|
+
def Delete(request,
|
|
195
|
+
target,
|
|
196
|
+
options=(),
|
|
197
|
+
channel_credentials=None,
|
|
198
|
+
call_credentials=None,
|
|
199
|
+
insecure=False,
|
|
200
|
+
compression=None,
|
|
201
|
+
wait_for_ready=None,
|
|
202
|
+
timeout=None,
|
|
203
|
+
metadata=None):
|
|
204
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.video.v1.SubtitleService/Delete',
|
|
205
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__service__pb2.DeleteSubtitleRequest.SerializeToString,
|
|
206
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
207
|
+
options, channel_credentials,
|
|
208
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
import yandex.cloud.operation.operation_pb2
|
|
12
|
+
import yandex.cloud.video.v1.subtitle_pb2
|
|
13
|
+
import yandex.cloud.video.v1.subtitle_service_pb2
|
|
14
|
+
|
|
15
|
+
_T = typing.TypeVar("_T")
|
|
16
|
+
|
|
17
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
18
|
+
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
21
|
+
|
|
22
|
+
class SubtitleServiceStub:
|
|
23
|
+
"""Subtitle management service."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.video.v1.subtitle_service_pb2.GetSubtitleRequest,
|
|
28
|
+
yandex.cloud.video.v1.subtitle_pb2.Subtitle,
|
|
29
|
+
]
|
|
30
|
+
"""Return a specific subtitle."""
|
|
31
|
+
|
|
32
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesRequest,
|
|
34
|
+
yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesResponse,
|
|
35
|
+
]
|
|
36
|
+
"""List subtitles."""
|
|
37
|
+
|
|
38
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.video.v1.subtitle_service_pb2.CreateSubtitleRequest,
|
|
40
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
41
|
+
]
|
|
42
|
+
"""Create a new subtitle."""
|
|
43
|
+
|
|
44
|
+
GenerateUploadURL: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLRequest,
|
|
46
|
+
yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLResponse,
|
|
47
|
+
]
|
|
48
|
+
"""Generate an upload URL to add a new subtitle file."""
|
|
49
|
+
|
|
50
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.video.v1.subtitle_service_pb2.DeleteSubtitleRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
"""Delete a specific subtitle."""
|
|
55
|
+
|
|
56
|
+
class SubtitleServiceAsyncStub:
|
|
57
|
+
"""Subtitle management service."""
|
|
58
|
+
|
|
59
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.video.v1.subtitle_service_pb2.GetSubtitleRequest,
|
|
61
|
+
yandex.cloud.video.v1.subtitle_pb2.Subtitle,
|
|
62
|
+
]
|
|
63
|
+
"""Return a specific subtitle."""
|
|
64
|
+
|
|
65
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesRequest,
|
|
67
|
+
yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesResponse,
|
|
68
|
+
]
|
|
69
|
+
"""List subtitles."""
|
|
70
|
+
|
|
71
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.video.v1.subtitle_service_pb2.CreateSubtitleRequest,
|
|
73
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
74
|
+
]
|
|
75
|
+
"""Create a new subtitle."""
|
|
76
|
+
|
|
77
|
+
GenerateUploadURL: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLRequest,
|
|
79
|
+
yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLResponse,
|
|
80
|
+
]
|
|
81
|
+
"""Generate an upload URL to add a new subtitle file."""
|
|
82
|
+
|
|
83
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.video.v1.subtitle_service_pb2.DeleteSubtitleRequest,
|
|
85
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
86
|
+
]
|
|
87
|
+
"""Delete a specific subtitle."""
|
|
88
|
+
|
|
89
|
+
class SubtitleServiceServicer(metaclass=abc.ABCMeta):
|
|
90
|
+
"""Subtitle management service."""
|
|
91
|
+
|
|
92
|
+
@abc.abstractmethod
|
|
93
|
+
def Get(
|
|
94
|
+
self,
|
|
95
|
+
request: yandex.cloud.video.v1.subtitle_service_pb2.GetSubtitleRequest,
|
|
96
|
+
context: _ServicerContext,
|
|
97
|
+
) -> typing.Union[yandex.cloud.video.v1.subtitle_pb2.Subtitle, collections.abc.Awaitable[yandex.cloud.video.v1.subtitle_pb2.Subtitle]]:
|
|
98
|
+
"""Return a specific subtitle."""
|
|
99
|
+
|
|
100
|
+
@abc.abstractmethod
|
|
101
|
+
def List(
|
|
102
|
+
self,
|
|
103
|
+
request: yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesRequest,
|
|
104
|
+
context: _ServicerContext,
|
|
105
|
+
) -> typing.Union[yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesResponse, collections.abc.Awaitable[yandex.cloud.video.v1.subtitle_service_pb2.ListSubtitlesResponse]]:
|
|
106
|
+
"""List subtitles."""
|
|
107
|
+
|
|
108
|
+
@abc.abstractmethod
|
|
109
|
+
def Create(
|
|
110
|
+
self,
|
|
111
|
+
request: yandex.cloud.video.v1.subtitle_service_pb2.CreateSubtitleRequest,
|
|
112
|
+
context: _ServicerContext,
|
|
113
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
114
|
+
"""Create a new subtitle."""
|
|
115
|
+
|
|
116
|
+
@abc.abstractmethod
|
|
117
|
+
def GenerateUploadURL(
|
|
118
|
+
self,
|
|
119
|
+
request: yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLRequest,
|
|
120
|
+
context: _ServicerContext,
|
|
121
|
+
) -> typing.Union[yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLResponse, collections.abc.Awaitable[yandex.cloud.video.v1.subtitle_service_pb2.GenerateSubtitleUploadURLResponse]]:
|
|
122
|
+
"""Generate an upload URL to add a new subtitle file."""
|
|
123
|
+
|
|
124
|
+
@abc.abstractmethod
|
|
125
|
+
def Delete(
|
|
126
|
+
self,
|
|
127
|
+
request: yandex.cloud.video.v1.subtitle_service_pb2.DeleteSubtitleRequest,
|
|
128
|
+
context: _ServicerContext,
|
|
129
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
130
|
+
"""Delete a specific subtitle."""
|
|
131
|
+
|
|
132
|
+
def add_SubtitleServiceServicer_to_server(servicer: SubtitleServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|