add rich output support for slide notes
Docker server image / build-and-push (push) Successful in 3m2s
Docker server image / build-and-push (push) Successful in 3m2s
This commit is contained in:
1 parent
500b767d58
commit
06d4122e4e
11 files changed
+831
-140
No files matched your search
@@ -7,6 +7,7 @@ from typing import Protocol
|
||||
|
||||
from connectrpc.client import ConnectClient, ConnectClientSync
|
||||
from connectrpc.code import Code
|
||||
from connectrpc.codec import Codec
|
||||
from connectrpc.compression import Compression
|
||||
from connectrpc.errors import ConnectError
|
||||
from connectrpc.interceptor import Interceptor, InterceptorSync
|
||||
@@ -34,7 +35,7 @@ class ConversionService(Protocol):
|
||||
|
||||
|
||||
class ConversionServiceASGIApplication(ConnectASGIApplication[ConversionService]):
|
||||
def __init__(self, service: ConversionService | AsyncGenerator[ConversionService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None) -> None:
|
||||
def __init__(self, service: ConversionService | AsyncGenerator[ConversionService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
||||
super().__init__(
|
||||
service=service,
|
||||
endpoints=lambda svc: {
|
||||
@@ -92,6 +93,7 @@ class ConversionServiceASGIApplication(ConnectASGIApplication[ConversionService]
|
||||
interceptors=interceptors,
|
||||
read_max_bytes=read_max_bytes,
|
||||
compressions=compressions,
|
||||
codecs=codecs,
|
||||
)
|
||||
|
||||
@property
|
||||
@@ -202,6 +204,9 @@ class ConversionServiceClient(ConnectClient):
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class ConversionServiceSync(Protocol):
|
||||
def create_conversion(self, request: officeconvertapi_dot_v1_dot_conversion__pb2.CreateConversionRequest, ctx: RequestContext) -> officeconvertapi_dot_v1_dot_conversion__pb2.CreateConversionResponse:
|
||||
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
||||
@@ -216,7 +221,7 @@ class ConversionServiceSync(Protocol):
|
||||
|
||||
|
||||
class ConversionServiceWSGIApplication(ConnectWSGIApplication):
|
||||
def __init__(self, service: ConversionServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None) -> None:
|
||||
def __init__(self, service: ConversionServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
||||
super().__init__(
|
||||
endpoints={
|
||||
"/officeconvertapi.v1.ConversionService/CreateConversion": EndpointSync.unary(
|
||||
@@ -273,6 +278,7 @@ class ConversionServiceWSGIApplication(ConnectWSGIApplication):
|
||||
interceptors=interceptors,
|
||||
read_max_bytes=read_max_bytes,
|
||||
compressions=compressions,
|
||||
codecs=codecs,
|
||||
)
|
||||
|
||||
@property
|
||||
@@ -381,3 +387,5 @@ class ConversionServiceClientSync(ConnectClientSync):
|
||||
headers=headers,
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$officeconvertapi/v1/conversion.proto\x12\x13officeconvertapi.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"-\n\x11JpegOutputOptions\x12\x18\n\x07quality\x18\x01 \x01(\x05R\x07quality\"\xa7\x01\n\x12SlideRasterOptions\x12I\n\nresolution\x18\x01 \x01(\x0e\x32).officeconvertapi.v1.ConversionResolutionR\nresolution\x12<\n\x04jpeg\x18\x02 \x01(\x0b\x32&.officeconvertapi.v1.JpegOutputOptionsH\x00R\x04jpegB\x08\n\x06\x66ormat\"\x8b\x01\n\x05Slide\x12\x14\n\x05index\x18\x01 \x01(\x05R\x05index\x12\x1f\n\x0bnotes_plain\x18\x02 \x01(\tR\nnotesPlain\x12\x1b\n\timage_url\x18\x03 \x01(\tR\x08imageUrl\x12.\n\x13thumbnail_image_url\x18\x04 \x01(\tR\x11thumbnailImageUrl\"\xca\x02\n\tSlideDeck\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12\'\n\x0fsource_filename\x18\x02 \x01(\tR\x0esourceFilename\x12\x32\n\x06slides\x18\x03 \x03(\x0b\x32\x1a.officeconvertapi.v1.SlideR\x06slides\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x14\n\x05width\x18\x05 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x06 \x01(\x05R\x06height\x12\'\n\x0fthumbnail_width\x18\x07 \x01(\x05R\x0ethumbnailWidth\x12)\n\x10thumbnail_height\x18\x08 \x01(\x05R\x0fthumbnailHeight\"\xc6\x01\n\x17\x43reateConversionRequest\x12\'\n\x0fsource_filename\x18\x01 \x01(\tR\x0esourceFilename\x12;\n\x04\x66ull\x18\x02 \x01(\x0b\x32\'.officeconvertapi.v1.SlideRasterOptionsR\x04\x66ull\x12\x45\n\tthumbnail\x18\x03 \x01(\x0b\x32\'.officeconvertapi.v1.SlideRasterOptionsR\tthumbnail\"\xea\x01\n\x18\x43reateConversionResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12#\n\rupload_bucket\x18\x02 \x01(\tR\x0cuploadBucket\x12*\n\x11upload_object_key\x18\x03 \x01(\tR\x0fuploadObjectKey\x12\x1d\n\nupload_url\x18\x04 \x01(\tR\tuploadUrl\x12\x39\n\nexpires_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"=\n\x16StartConversionRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"}\n\x17StartConversionResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12=\n\x06status\x18\x02 \x01(\x0e\x32%.officeconvertapi.v1.ConversionStatusR\x06status\"A\n\x1aGetConversionStatusRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"\xeb\x02\n\x1bGetConversionStatusResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12=\n\x06status\x18\x02 \x01(\x0e\x32%.officeconvertapi.v1.ConversionStatusR\x06status\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\x12\x39\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12:\n\x05phase\x18\x05 \x01(\x0e\x32$.officeconvertapi.v1.ConversionPhaseR\x05phase\x12)\n\x10\x63urrent_progress\x18\x06 \x01(\x05R\x0f\x63urrentProgress\x12!\n\x0cmax_progress\x18\x07 \x01(\x05R\x0bmaxProgress\":\n\x13GetSlideDeckRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"U\n\x14GetSlideDeckResponse\x12=\n\nslide_deck\x18\x01 \x01(\x0b\x32\x1e.officeconvertapi.v1.SlideDeckR\tslideDeck\">\n\x17\x44\x65leteConversionRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"Y\n\x18\x44\x65leteConversionResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12\x18\n\x07\x64\x65leted\x18\x02 \x01(\x08R\x07\x64\x65leted*\xb2\x01\n\x10\x43onversionStatus\x12!\n\x1d\x43ONVERSION_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43ONVERSION_STATUS_PENDING\x10\x01\x12\x1d\n\x19\x43ONVERSION_STATUS_RUNNING\x10\x02\x12\x1f\n\x1b\x43ONVERSION_STATUS_SUCCEEDED\x10\x03\x12\x1c\n\x18\x43ONVERSION_STATUS_FAILED\x10\x04*\xe7\x01\n\x0f\x43onversionPhase\x12 \n\x1c\x43ONVERSION_PHASE_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43ONVERSION_PHASE_INACTIVE\x10\x01\x12%\n!CONVERSION_PHASE_EXTRACTING_NOTES\x10\x02\x12 \n\x1c\x43ONVERSION_PHASE_PPTX_TO_PDF\x10\x03\x12\"\n\x1e\x43ONVERSION_PHASE_PDF_TO_IMAGES\x10\x04\x12&\n\"CONVERSION_PHASE_UPLOADING_RESULTS\x10\x05*\xd6\x01\n\x14\x43onversionResolution\x12%\n!CONVERSION_RESOLUTION_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x43ONVERSION_RESOLUTION_SD\x10\x01\x12\x1c\n\x18\x43ONVERSION_RESOLUTION_HD\x10\x02\x12\x1d\n\x19\x43ONVERSION_RESOLUTION_FHD\x10\x03\x12\x1d\n\x19\x43ONVERSION_RESOLUTION_QHD\x10\x04\x12\x1d\n\x19\x43ONVERSION_RESOLUTION_UHD\x10\x05\x32\xcc\x04\n\x11\x43onversionService\x12q\n\x10\x43reateConversion\x12,.officeconvertapi.v1.CreateConversionRequest\x1a-.officeconvertapi.v1.CreateConversionResponse\"\x00\x12n\n\x0fStartConversion\x12+.officeconvertapi.v1.StartConversionRequest\x1a,.officeconvertapi.v1.StartConversionResponse\"\x00\x12z\n\x13GetConversionStatus\x12/.officeconvertapi.v1.GetConversionStatusRequest\x1a\x30.officeconvertapi.v1.GetConversionStatusResponse\"\x00\x12\x65\n\x0cGetSlideDeck\x12(.officeconvertapi.v1.GetSlideDeckRequest\x1a).officeconvertapi.v1.GetSlideDeckResponse\"\x00\x12q\n\x10\x44\x65leteConversion\x12,.officeconvertapi.v1.DeleteConversionRequest\x1a-.officeconvertapi.v1.DeleteConversionResponse\"\x00\x42ZZXgitea.auvem.com/end-internal/officeconvert/gen/go/officeLine truncated
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$officeconvertapi/v1/conversion.proto\x12\x13officeconvertapi.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"-\n\x11JpegOutputOptions\x12\x18\n\x07quality\x18\x01 \x01(\x05R\x07quality\"\xa7\x01\n\x12SlideRasterOptions\x12I\n\nresolution\x18\x01 \x01(\x0e\x32).officeconvertapi.v1.ConversionResolutionR\nresolution\x12<\n\x04jpeg\x18\x02 \x01(\x0b\x32&.officeconvertapi.v1.JpegOutputOptionsH\x00R\x04jpegB\x08\n\x06\x66ormat\"\x87\x02\n\x14HtmlFormattingPolicy\x12\x1f\n\x0bignore_bold\x18\x01 \x01(\x08R\nignoreBold\x12#\n\rignore_italic\x18\x02 \x01(\x08R\x0cignoreItalic\x12)\n\x10ignore_underline\x18\x03 \x01(\x08R\x0fignoreUnderline\x12\x31\n\x14ignore_strikethrough\x18\x04 \x01(\x08R\x13ignoreStrikethrough\x12(\n\x10ignore_font_size\x18\x05 \x01(\x08R\x0eignoreFontSize\x12!\n\x0cignore_color\x18\x06 \x01(\x08R\x0bignoreColor\"\xec\x01\n\x0cNotesOptions\x12\x38\n\x06\x66ormat\x18\x01 \x01(\x0e\x32 .officeconvertapi.v1.NotesFormatR\x06\x66ormat\x12:\n\x17html_use_paragraph_tags\x18\x02 \x01(\x08H\x00R\x14htmlUseParagraphTags\x88\x01\x01\x12J\n\x0bhtml_policy\x18\x03 \x01(\x0b\x32).officeconvertapi.v1.HtmlFormattingPolicyR\nhtmlPolicyB\x1a\n\x18_html_use_paragraph_tags\"\xaa\x01\n\x05Slide\x12\x14\n\x05index\x18\x01 \x01(\x05R\x05index\x12\x1f\n\x0bnotes_plain\x18\x02 \x01(\tR\nnotesPlain\x12\x1b\n\timage_url\x18\x03 \x01(\tR\x08imageUrl\x12.\n\x13thumbnail_image_url\x18\x04 \x01(\tR\x11thumbnailImageUrl\x12\x1d\n\nnotes_html\x18\x05 \x01(\tR\tnotesHtml\"\xca\x02\n\tSlideDeck\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12\'\n\x0fsource_filename\x18\x02 \x01(\tR\x0esourceFilename\x12\x32\n\x06slides\x18\x03 \x03(\x0b\x32\x1a.officeconvertapi.v1.SlideR\x06slides\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x14\n\x05width\x18\x05 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x06 \x01(\x05R\x06height\x12\'\n\x0fthumbnail_width\x18\x07 \x01(\x05R\x0ethumbnailWidth\x12)\n\x10thumbnail_height\x18\x08 \x01(\x05R\x0fthumbnailHeight\"\xff\x01\n\x17\x43reateConversionRequest\x12\'\n\x0fsource_filename\x18\x01 \x01(\tR\x0esourceFilename\x12;\n\x04\x66ull\x18\x02 \x01(\x0b\x32\'.officeconvertapi.v1.SlideRasterOptionsR\x04\x66ull\x12\x45\n\tthumbnail\x18\x03 \x01(\x0b\x32\'.officeconvertapi.v1.SlideRasterOptionsR\tthumbnail\x12\x37\n\x05notes\x18\x04 \x01(\x0b\x32!.officeconvertapi.v1.NotesOptionsR\x05notes\"\xea\x01\n\x18\x43reateConversionResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12#\n\rupload_bucket\x18\x02 \x01(\tR\x0cuploadBucket\x12*\n\x11upload_object_key\x18\x03 \x01(\tR\x0fuploadObjectKey\x12\x1d\n\nupload_url\x18\x04 \x01(\tR\tuploadUrl\x12\x39\n\nexpires_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"=\n\x16StartConversionRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"}\n\x17StartConversionResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12=\n\x06status\x18\x02 \x01(\x0e\x32%.officeconvertapi.v1.ConversionStatusR\x06status\"A\n\x1aGetConversionStatusRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"\xeb\x02\n\x1bGetConversionStatusResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12=\n\x06status\x18\x02 \x01(\x0e\x32%.officeconvertapi.v1.ConversionStatusR\x06status\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\x12\x39\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12:\n\x05phase\x18\x05 \x01(\x0e\x32$.officeconvertapi.v1.ConversionPhaseR\x05phase\x12)\n\x10\x63urrent_progress\x18\x06 \x01(\x05R\x0f\x63urrentProgress\x12!\n\x0cmax_progress\x18\x07 \x01(\x05R\x0bmaxProgress\":\n\x13GetSlideDeckRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"U\n\x14GetSlideDeckResponse\x12=\n\nslide_deck\x18\x01 \x01(\x0b\x32\x1e.officeconvertapi.v1.SlideDeckR\tslideDeck\">\n\x17\x44\x65leteConversionRequest\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\"Y\n\x18\x44\x65leteConversionResponse\x12#\n\rconversion_id\x18\x01 \x01(\tR\x0c\x63onversionId\x12\x18\n\x07\x64\x65leted\x18\x02 \x01(\x08R\x07\x64\x65leted*\xb2\x01\n\x10\x43onversionStatus\x12!\n\x1d\x43ONVERSION_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43ONVERSION_STATUS_PENDING\x10\x01\x12\x1d\n\x19\x43ONVERSION_STATUS_RUNNING\x10\x02\x12\x1f\n\x1b\x43ONVERSION_STATUS_SUCCEEDED\x10\x03\x12\x1c\n\x18\x43ONVERSION_STATUS_FAILED\x10\x04*\xe7\x01\n\x0f\x43onversionPhase\x12 \n\x1c\x43ONVERSION_PHASE_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43ONVERSION_PHASE_INACTIVE\x10\x01\x12%\n!CONVERSION_PHASE_EXTRACTING_NOTES\x10\x02\x12 \n\x1c\x43ONVERSION_PHASE_PPTX_TO_PDF\x10\x03\x12\"\n\x1e\x43ONVERSION_PHASE_PDF_TO_IMAGES\x10\x04\x12&\n\"CONVERSION_PHASE_UPLOADING_RESULTS\x10\x05*\xd6\x01\n\x14\x43onversionResolution\x12%\n!CONVERSION_RESOLUTION_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x43ONVERSION_RESOLUTION_SD\x10\x01\x12\x1c\n\x18\x43ONVERSION_RESOLUTION_HD\x10\x02\x12\x1d\n\x19\x43ONVERSIOLine truncated
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
@@ -33,40 +33,46 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'officeconvertapi.v1.convers
|
||||
if not _descriptor._USE_C_DESCRIPTORS:
|
||||
_globals['DESCRIPTOR']._loaded_options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'ZXgitea.auvem.com/end-internal/officeconvert/gen/go/officeconvertapi/v1;officeconvertapiv1'
|
||||
_globals['_CONVERSIONSTATUS']._serialized_start=2150
|
||||
_globals['_CONVERSIONSTATUS']._serialized_end=2328
|
||||
_globals['_CONVERSIONPHASE']._serialized_start=2331
|
||||
_globals['_CONVERSIONPHASE']._serialized_end=2562
|
||||
_globals['_CONVERSIONRESOLUTION']._serialized_start=2565
|
||||
_globals['_CONVERSIONRESOLUTION']._serialized_end=2779
|
||||
_globals['_CONVERSIONSTATUS']._serialized_start=2743
|
||||
_globals['_CONVERSIONSTATUS']._serialized_end=2921
|
||||
_globals['_CONVERSIONPHASE']._serialized_start=2924
|
||||
_globals['_CONVERSIONPHASE']._serialized_end=3155
|
||||
_globals['_CONVERSIONRESOLUTION']._serialized_start=3158
|
||||
_globals['_CONVERSIONRESOLUTION']._serialized_end=3372
|
||||
_globals['_NOTESFORMAT']._serialized_start=3374
|
||||
_globals['_NOTESFORMAT']._serialized_end=3464
|
||||
_globals['_JPEGOUTPUTOPTIONS']._serialized_start=94
|
||||
_globals['_JPEGOUTPUTOPTIONS']._serialized_end=139
|
||||
_globals['_SLIDERASTEROPTIONS']._serialized_start=142
|
||||
_globals['_SLIDERASTEROPTIONS']._serialized_end=309
|
||||
_globals['_SLIDE']._serialized_start=312
|
||||
_globals['_SLIDE']._serialized_end=451
|
||||
_globals['_SLIDEDECK']._serialized_start=454
|
||||
_globals['_SLIDEDECK']._serialized_end=784
|
||||
_globals['_CREATECONVERSIONREQUEST']._serialized_start=787
|
||||
_globals['_CREATECONVERSIONREQUEST']._serialized_end=985
|
||||
_globals['_CREATECONVERSIONRESPONSE']._serialized_start=988
|
||||
_globals['_CREATECONVERSIONRESPONSE']._serialized_end=1222
|
||||
_globals['_STARTCONVERSIONREQUEST']._serialized_start=1224
|
||||
_globals['_STARTCONVERSIONREQUEST']._serialized_end=1285
|
||||
_globals['_STARTCONVERSIONRESPONSE']._serialized_start=1287
|
||||
_globals['_STARTCONVERSIONRESPONSE']._serialized_end=1412
|
||||
_globals['_GETCONVERSIONSTATUSREQUEST']._serialized_start=1414
|
||||
_globals['_GETCONVERSIONSTATUSREQUEST']._serialized_end=1479
|
||||
_globals['_GETCONVERSIONSTATUSRESPONSE']._serialized_start=1482
|
||||
_globals['_GETCONVERSIONSTATUSRESPONSE']._serialized_end=1845
|
||||
_globals['_GETSLIDEDECKREQUEST']._serialized_start=1847
|
||||
_globals['_GETSLIDEDECKREQUEST']._serialized_end=1905
|
||||
_globals['_GETSLIDEDECKRESPONSE']._serialized_start=1907
|
||||
_globals['_GETSLIDEDECKRESPONSE']._serialized_end=1992
|
||||
_globals['_DELETECONVERSIONREQUEST']._serialized_start=1994
|
||||
_globals['_DELETECONVERSIONREQUEST']._serialized_end=2056
|
||||
_globals['_DELETECONVERSIONRESPONSE']._serialized_start=2058
|
||||
_globals['_DELETECONVERSIONRESPONSE']._serialized_end=2147
|
||||
_globals['_CONVERSIONSERVICE']._serialized_start=2782
|
||||
_globals['_CONVERSIONSERVICE']._serialized_end=3370
|
||||
_globals['_HTMLFORMATTINGPOLICY']._serialized_start=312
|
||||
_globals['_HTMLFORMATTINGPOLICY']._serialized_end=575
|
||||
_globals['_NOTESOPTIONS']._serialized_start=578
|
||||
_globals['_NOTESOPTIONS']._serialized_end=814
|
||||
_globals['_SLIDE']._serialized_start=817
|
||||
_globals['_SLIDE']._serialized_end=987
|
||||
_globals['_SLIDEDECK']._serialized_start=990
|
||||
_globals['_SLIDEDECK']._serialized_end=1320
|
||||
_globals['_CREATECONVERSIONREQUEST']._serialized_start=1323
|
||||
_globals['_CREATECONVERSIONREQUEST']._serialized_end=1578
|
||||
_globals['_CREATECONVERSIONRESPONSE']._serialized_start=1581
|
||||
_globals['_CREATECONVERSIONRESPONSE']._serialized_end=1815
|
||||
_globals['_STARTCONVERSIONREQUEST']._serialized_start=1817
|
||||
_globals['_STARTCONVERSIONREQUEST']._serialized_end=1878
|
||||
_globals['_STARTCONVERSIONRESPONSE']._serialized_start=1880
|
||||
_globals['_STARTCONVERSIONRESPONSE']._serialized_end=2005
|
||||
_globals['_GETCONVERSIONSTATUSREQUEST']._serialized_start=2007
|
||||
_globals['_GETCONVERSIONSTATUSREQUEST']._serialized_end=2072
|
||||
_globals['_GETCONVERSIONSTATUSRESPONSE']._serialized_start=2075
|
||||
_globals['_GETCONVERSIONSTATUSRESPONSE']._serialized_end=2438
|
||||
_globals['_GETSLIDEDECKREQUEST']._serialized_start=2440
|
||||
_globals['_GETSLIDEDECKREQUEST']._serialized_end=2498
|
||||
_globals['_GETSLIDEDECKRESPONSE']._serialized_start=2500
|
||||
_globals['_GETSLIDEDECKRESPONSE']._serialized_end=2585
|
||||
_globals['_DELETECONVERSIONREQUEST']._serialized_start=2587
|
||||
_globals['_DELETECONVERSIONREQUEST']._serialized_end=2649
|
||||
_globals['_DELETECONVERSIONRESPONSE']._serialized_start=2651
|
||||
_globals['_DELETECONVERSIONRESPONSE']._serialized_end=2740
|
||||
_globals['_CONVERSIONSERVICE']._serialized_start=3467
|
||||
_globals['_CONVERSIONSERVICE']._serialized_end=4055
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -35,6 +35,12 @@ class ConversionResolution(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
CONVERSION_RESOLUTION_FHD: _ClassVar[ConversionResolution]
|
||||
CONVERSION_RESOLUTION_QHD: _ClassVar[ConversionResolution]
|
||||
CONVERSION_RESOLUTION_UHD: _ClassVar[ConversionResolution]
|
||||
|
||||
class NotesFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
NOTES_FORMAT_UNSPECIFIED: _ClassVar[NotesFormat]
|
||||
NOTES_FORMAT_PLAIN: _ClassVar[NotesFormat]
|
||||
NOTES_FORMAT_HTML: _ClassVar[NotesFormat]
|
||||
CONVERSION_STATUS_UNSPECIFIED: ConversionStatus
|
||||
CONVERSION_STATUS_PENDING: ConversionStatus
|
||||
CONVERSION_STATUS_RUNNING: ConversionStatus
|
||||
@@ -52,6 +58,9 @@ CONVERSION_RESOLUTION_HD: ConversionResolution
|
||||
CONVERSION_RESOLUTION_FHD: ConversionResolution
|
||||
CONVERSION_RESOLUTION_QHD: ConversionResolution
|
||||
CONVERSION_RESOLUTION_UHD: ConversionResolution
|
||||
NOTES_FORMAT_UNSPECIFIED: NotesFormat
|
||||
NOTES_FORMAT_PLAIN: NotesFormat
|
||||
NOTES_FORMAT_HTML: NotesFormat
|
||||
|
||||
class JpegOutputOptions(_message.Message):
|
||||
__slots__ = ("quality",)
|
||||
@@ -67,17 +76,45 @@ class SlideRasterOptions(_message.Message):
|
||||
jpeg: JpegOutputOptions
|
||||
def __init__(self, resolution: _Optional[_Union[ConversionResolution, str]] = ..., jpeg: _Optional[_Union[JpegOutputOptions, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class HtmlFormattingPolicy(_message.Message):
|
||||
__slots__ = ("ignore_bold", "ignore_italic", "ignore_underline", "ignore_strikethrough", "ignore_font_size", "ignore_color")
|
||||
IGNORE_BOLD_FIELD_NUMBER: _ClassVar[int]
|
||||
IGNORE_ITALIC_FIELD_NUMBER: _ClassVar[int]
|
||||
IGNORE_UNDERLINE_FIELD_NUMBER: _ClassVar[int]
|
||||
IGNORE_STRIKETHROUGH_FIELD_NUMBER: _ClassVar[int]
|
||||
IGNORE_FONT_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
IGNORE_COLOR_FIELD_NUMBER: _ClassVar[int]
|
||||
ignore_bold: bool
|
||||
ignore_italic: bool
|
||||
ignore_underline: bool
|
||||
ignore_strikethrough: bool
|
||||
ignore_font_size: bool
|
||||
ignore_color: bool
|
||||
def __init__(self, ignore_bold: _Optional[bool] = ..., ignore_italic: _Optional[bool] = ..., ignore_underline: _Optional[bool] = ..., ignore_strikethrough: _Optional[bool] = ..., ignore_font_size: _Optional[bool] = ..., ignore_color: _Optional[bool] = ...) -> None: ...
|
||||
|
||||
class NotesOptions(_message.Message):
|
||||
__slots__ = ("format", "html_use_paragraph_tags", "html_policy")
|
||||
FORMAT_FIELD_NUMBER: _ClassVar[int]
|
||||
HTML_USE_PARAGRAPH_TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
HTML_POLICY_FIELD_NUMBER: _ClassVar[int]
|
||||
format: NotesFormat
|
||||
html_use_paragraph_tags: bool
|
||||
html_policy: HtmlFormattingPolicy
|
||||
def __init__(self, format: _Optional[_Union[NotesFormat, str]] = ..., html_use_paragraph_tags: _Optional[bool] = ..., html_policy: _Optional[_Union[HtmlFormattingPolicy, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class Slide(_message.Message):
|
||||
__slots__ = ("index", "notes_plain", "image_url", "thumbnail_image_url")
|
||||
__slots__ = ("index", "notes_plain", "image_url", "thumbnail_image_url", "notes_html")
|
||||
INDEX_FIELD_NUMBER: _ClassVar[int]
|
||||
NOTES_PLAIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IMAGE_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
THUMBNAIL_IMAGE_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
NOTES_HTML_FIELD_NUMBER: _ClassVar[int]
|
||||
index: int
|
||||
notes_plain: str
|
||||
image_url: str
|
||||
thumbnail_image_url: str
|
||||
def __init__(self, index: _Optional[int] = ..., notes_plain: _Optional[str] = ..., image_url: _Optional[str] = ..., thumbnail_image_url: _Optional[str] = ...) -> None: ...
|
||||
notes_html: str
|
||||
def __init__(self, index: _Optional[int] = ..., notes_plain: _Optional[str] = ..., image_url: _Optional[str] = ..., thumbnail_image_url: _Optional[str] = ..., notes_html: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class SlideDeck(_message.Message):
|
||||
__slots__ = ("conversion_id", "source_filename", "slides", "created_at", "width", "height", "thumbnail_width", "thumbnail_height")
|
||||
@@ -100,14 +137,16 @@ class SlideDeck(_message.Message):
|
||||
def __init__(self, conversion_id: _Optional[str] = ..., source_filename: _Optional[str] = ..., slides: _Optional[_Iterable[_Union[Slide, _Mapping]]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., thumbnail_width: _Optional[int] = ..., thumbnail_height: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class CreateConversionRequest(_message.Message):
|
||||
__slots__ = ("source_filename", "full", "thumbnail")
|
||||
__slots__ = ("source_filename", "full", "thumbnail", "notes")
|
||||
SOURCE_FILENAME_FIELD_NUMBER: _ClassVar[int]
|
||||
FULL_FIELD_NUMBER: _ClassVar[int]
|
||||
THUMBNAIL_FIELD_NUMBER: _ClassVar[int]
|
||||
NOTES_FIELD_NUMBER: _ClassVar[int]
|
||||
source_filename: str
|
||||
full: SlideRasterOptions
|
||||
thumbnail: SlideRasterOptions
|
||||
def __init__(self, source_filename: _Optional[str] = ..., full: _Optional[_Union[SlideRasterOptions, _Mapping]] = ..., thumbnail: _Optional[_Union[SlideRasterOptions, _Mapping]] = ...) -> None: ...
|
||||
notes: NotesOptions
|
||||
def __init__(self, source_filename: _Optional[str] = ..., full: _Optional[_Union[SlideRasterOptions, _Mapping]] = ..., thumbnail: _Optional[_Union[SlideRasterOptions, _Mapping]] = ..., notes: _Optional[_Union[NotesOptions, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class CreateConversionResponse(_message.Message):
|
||||
__slots__ = ("conversion_id", "upload_bucket", "upload_object_key", "upload_url", "expires_at")
|
||||
|
||||
Reference in new issue
Block a user