85 lines
9.0 KiB
Python
85 lines
9.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: imageService.proto
|
|
# Protobuf Python Version: 5.29.0
|
|
"""Generated protocol buffer code."""
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
from google.protobuf import runtime_version as _runtime_version
|
|
from google.protobuf import symbol_database as _symbol_database
|
|
from google.protobuf.internal import builder as _builder
|
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
_runtime_version.Domain.PUBLIC,
|
|
5,
|
|
29,
|
|
0,
|
|
'',
|
|
'imageService.proto'
|
|
)
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
|
|
|
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12imageService.proto\"G\n\x0b\x45\x63hoRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0csharedSecret\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_sharedSecret\"\x7f\n\tEchoReply\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05\x66iles\x18\x02 \x03(\t\x12(\n\x08override\x18\x03 \x01(\x0b\x32\x11.MetadataOverrideH\x00\x88\x01\x01\x12\x1b\n\x13sharedSecretMissing\x18\x04 \x01(\x08\x42\x0b\n\t_override\"c\n\x0f\x46ileListRequest\x12\r\n\x05\x66iles\x18\x01 \x03(\t\x12\x15\n\rfilesWithHash\x18\x02 \x03(\t\x12\x19\n\x0csharedSecret\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_sharedSecret\"J\n\x15\x46ileExistenceResponse\x12\r\n\x05\x66iles\x18\x01 \x03(\t\x12\x12\n\nexistences\x18\x02 \x03(\x08\x12\x0e\n\x06hashes\x18\x03 \x03(\x0c\"t\n\x10MetadataOverride\x12\x0e\n\x06models\x18\x01 \x01(\x0c\x12\r\n\x05loras\x18\x02 \x01(\x0c\x12\x13\n\x0b\x63ontrolNets\x18\x03 \x01(\x0c\x12\x19\n\x11textualInversions\x18\x04 \x01(\x0c\x12\x11\n\tupscalers\x18\x05 \x01(\x0c\"\xe1\x02\n\x16ImageGenerationRequest\x12\x12\n\x05image\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x13\n\x0bscaleFactor\x18\x02 \x01(\x05\x12\x11\n\x04mask\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x19\n\x05hints\x18\x04 \x03(\x0b\x32\n.HintProto\x12\x0e\n\x06prompt\x18\x05 \x01(\t\x12\x16\n\x0enegativePrompt\x18\x06 \x01(\t\x12\x15\n\rconfiguration\x18\x07 \x01(\x0c\x12#\n\x08override\x18\x08 \x01(\x0b\x32\x11.MetadataOverride\x12\x10\n\x08keywords\x18\t \x03(\t\x12\x0c\n\x04user\x18\n \x01(\t\x12\x1b\n\x06\x64\x65vice\x18\x0b \x01(\x0e\x32\x0b.DeviceType\x12\x10\n\x08\x63ontents\x18\x0c \x03(\x0c\x12\x19\n\x0csharedSecret\x18\r \x01(\tH\x02\x88\x01\x01\x42\x08\n\x06_imageB\x07\n\x05_maskB\x0f\n\r_sharedSecret\"@\n\tHintProto\x12\x10\n\x08hintType\x18\x01 \x01(\t\x12!\n\x07tensors\x18\x02 \x03(\x0b\x32\x10.TensorAndWeight\"1\n\x0fTensorAndWeight\x12\x0e\n\x06tensor\x18\x01 \x01(\x0c\x12\x0e\n\x06weight\x18\x02 \x01(\x02\"\xfc\x06\n\x1cImageGenerationSignpostProto\x12@\n\x0btextEncoded\x18\x01 \x01(\x0b\x32).ImageGenerationSignpostProto.TextEncodedH\x00\x12\x42\n\x0cimageEncoded\x18\x02 \x01(\x0b\x32*.ImageGenerationSignpostProto.ImageEncodedH\x00\x12:\n\x08sampling\x18\x03 \x01(\x0b\x32&.ImageGenerationSignpostProto.SamplingH\x00\x12\x42\n\x0cimageDecoded\x18\x04 \x01(\x0b\x32*.ImageGenerationSignpostProto.ImageDecodedH\x00\x12V\n\x16secondPassImageEncoded\x18\x05 \x01(\x0b\x32\x34.ImageGenerationSignpostProto.SecondPassImageEncodedH\x00\x12N\n\x12secondPassSampling\x18\x06 \x01(\x0b\x32\x30.ImageGenerationSignpostProto.SecondPassSamplingH\x00\x12V\n\x16secondPassImageDecoded\x18\x07 \x01(\x0b\x32\x34.ImageGenerationSignpostProto.SecondPassImageDecodedH\x00\x12\x42\n\x0c\x66\x61\x63\x65Restored\x18\x08 \x01(\x0b\x32*.ImageGenerationSignpostProto.FaceRestoredH\x00\x12\x44\n\rimageUpscaled\x18\t \x01(\x0b\x32+.ImageGenerationSignpostProto.ImageUpscaledH\x00\x1a\r\n\x0bTextEncoded\x1a\x0e\n\x0cImageEncoded\x1a\x18\n\x08Sampling\x12\x0c\n\x04step\x18\x01 \x01(\x05\x1a\x0e\n\x0cImageDecoded\x1a\x18\n\x16SecondPassImageEncoded\x1a\"\n\x12SecondPassSampling\x12\x0c\n\x04step\x18\x01 \x01(\x05\x1a\x18\n\x16SecondPassImageDecoded\x1a\x0e\n\x0c\x46\x61\x63\x65Restored\x1a\x0f\n\rImageUpscaledB\n\n\x08signpost\"\x99\x02\n\x17ImageGenerationResponse\x12\x17\n\x0fgeneratedImages\x18\x01 \x03(\x0c\x12;\n\x0f\x63urrentSignpost\x18\x02 \x01(\x0b\x32\x1d.ImageGenerationSignpostProtoH\x00\x88\x01\x01\x12\x30\n\tsignposts\x18\x03 \x03(\x0b\x32\x1d.ImageGenerationSignpostProto\x12\x19\n\x0cpreviewImage\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0bscaleFactor\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x0c\n\x04tags\x18\x06 \x03(\tB\x12\n\x10_currentSignpostB\x0f\n\r_previewImageB\x0e\n\x0c_scaleFactor\">\n\tFileChunk\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x10\n\x08\x66ilename\x18\x02 \x01(\t\x12\x0e\n\x06offset\x18\x03 \x01(\x03\"H\n\x11InitUploadRequest\x12\x10\n\x08\x66ilename\x18\x01 \x01(\t\x12\x0e\n\x06sha256\x18\x02 \x01(\x0c\x12\x11\n\ttotalSize\x18\x03 \x01(\x03\"g\n\x0eUploadResponse\x12\x1a\n\x12\x63hunkUploadSuccess\x18\x01 \x01(\x08\x12\x16\n\x0ereceivedOffset\x18\x02 \x01(\x03\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\"\x92\x01\n\x11\x46ileUploadRequest\x12)\n\x0binitRequest\x18\x01 \x01(\x0b\x32\x12.InitUploadRequestH\x00\x12\x1b\n\x05\x63hunk\x18\x02 \x01(\x0b\x32\n.FileChunkH\x00\x12\x19\n\x0csharedSecret\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07requestB\x0f\n\r_sharedSecret*/\n\nDeviceType\x12\t\n\x05PHONE\x10\x00\x12\n\n\x06TABLET\x10\x01\x12\n\n\x06LAPTOP\x10\x02\x32\xef\x01\n\x16ImageGenerationService\x12\x44\n\rGenerateImage\x12\x17.ImageGenerationRequest\x1a\x18.ImageGenerationResponse0\x01\x12\x36\n\nFilesExist\x12\x10.FileListRequest\x1a\x16.FileExistenceResponse\x12\x35\n\nUploadFile\x12\x12.FileUploadRequest\x1a\x0f.UploadResponse(\x01\x30\x01\x12 \n\x04\x45\x63ho\x12\x0c.EchoRequest\x1a\n.EchoReplyb\x06proto3')
|
|
|
|
_globals = globals()
|
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'imageService_pb2', _globals)
|
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
DESCRIPTOR._loaded_options = None
|
|
_globals['_DEVICETYPE']._serialized_start=2563
|
|
_globals['_DEVICETYPE']._serialized_end=2610
|
|
_globals['_ECHOREQUEST']._serialized_start=22
|
|
_globals['_ECHOREQUEST']._serialized_end=93
|
|
_globals['_ECHOREPLY']._serialized_start=95
|
|
_globals['_ECHOREPLY']._serialized_end=222
|
|
_globals['_FILELISTREQUEST']._serialized_start=224
|
|
_globals['_FILELISTREQUEST']._serialized_end=323
|
|
_globals['_FILEEXISTENCERESPONSE']._serialized_start=325
|
|
_globals['_FILEEXISTENCERESPONSE']._serialized_end=399
|
|
_globals['_METADATAOVERRIDE']._serialized_start=401
|
|
_globals['_METADATAOVERRIDE']._serialized_end=517
|
|
_globals['_IMAGEGENERATIONREQUEST']._serialized_start=520
|
|
_globals['_IMAGEGENERATIONREQUEST']._serialized_end=873
|
|
_globals['_HINTPROTO']._serialized_start=875
|
|
_globals['_HINTPROTO']._serialized_end=939
|
|
_globals['_TENSORANDWEIGHT']._serialized_start=941
|
|
_globals['_TENSORANDWEIGHT']._serialized_end=990
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO']._serialized_start=993
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO']._serialized_end=1885
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_TEXTENCODED']._serialized_start=1681
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_TEXTENCODED']._serialized_end=1694
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_IMAGEENCODED']._serialized_start=1696
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_IMAGEENCODED']._serialized_end=1710
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SAMPLING']._serialized_start=1712
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SAMPLING']._serialized_end=1736
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_IMAGEDECODED']._serialized_start=1738
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_IMAGEDECODED']._serialized_end=1752
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SECONDPASSIMAGEENCODED']._serialized_start=1754
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SECONDPASSIMAGEENCODED']._serialized_end=1778
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SECONDPASSSAMPLING']._serialized_start=1780
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SECONDPASSSAMPLING']._serialized_end=1814
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SECONDPASSIMAGEDECODED']._serialized_start=1816
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_SECONDPASSIMAGEDECODED']._serialized_end=1840
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_FACERESTORED']._serialized_start=1842
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_FACERESTORED']._serialized_end=1856
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_IMAGEUPSCALED']._serialized_start=1858
|
|
_globals['_IMAGEGENERATIONSIGNPOSTPROTO_IMAGEUPSCALED']._serialized_end=1873
|
|
_globals['_IMAGEGENERATIONRESPONSE']._serialized_start=1888
|
|
_globals['_IMAGEGENERATIONRESPONSE']._serialized_end=2169
|
|
_globals['_FILECHUNK']._serialized_start=2171
|
|
_globals['_FILECHUNK']._serialized_end=2233
|
|
_globals['_INITUPLOADREQUEST']._serialized_start=2235
|
|
_globals['_INITUPLOADREQUEST']._serialized_end=2307
|
|
_globals['_UPLOADRESPONSE']._serialized_start=2309
|
|
_globals['_UPLOADRESPONSE']._serialized_end=2412
|
|
_globals['_FILEUPLOADREQUEST']._serialized_start=2415
|
|
_globals['_FILEUPLOADREQUEST']._serialized_end=2561
|
|
_globals['_IMAGEGENERATIONSERVICE']._serialized_start=2613
|
|
_globals['_IMAGEGENERATIONSERVICE']._serialized_end=2852
|
|
# @@protoc_insertion_point(module_scope)
|