Vendor api/proto/voicestudio/runtime/v1/runtime_adapter.proto from vssaas byte-identically into backend/runtime_adapter/, generate the grpcio stubs into gen/ (committed, same policy and import fixup as backend/worker/protocol/gen/), and add the drift test that regenerates into a tmpdir and diffs.
96 lines
12 KiB
Python
96 lines
12 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: runtime_adapter.proto
|
|
# Protobuf Python Version: 6.33.5
|
|
"""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,
|
|
6,
|
|
33,
|
|
5,
|
|
'',
|
|
'runtime_adapter.proto'
|
|
)
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
|
|
|
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15runtime_adapter.proto\x12\x16voicestudio.runtime.v1\"H\n\x0f\x45xecuteResponse\x12\x35\n\x05\x65vent\x18\x01 \x01(\x0b\x32&.voicestudio.runtime.v1.ExecutionEvent\"\x0f\n\rHealthRequest\"\x8d\x01\n\x0eHealthResponse\x12\x33\n\x05state\x18\x01 \x01(\x0e\x32$.voicestudio.runtime.v1.ServingState\x12\x17\n\x0fruntime_version\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x64\x61pter_version\x18\x03 \x01(\t\x12\x14\n\x0chealth_flags\x18\x04 \x03(\t\"\x18\n\x16GetCapabilitiesRequest\"\xb9\x01\n\x17GetCapabilitiesResponse\x12\x17\n\x0fruntime_version\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x64\x61pter_version\x18\x02 \x01(\t\x12\x36\n\x07\x64\x65vices\x18\x03 \x03(\x0b\x32%.voicestudio.runtime.v1.RuntimeDevice\x12\x34\n\x06models\x18\x04 \x03(\x0b\x32$.voicestudio.runtime.v1.RuntimeModel\"}\n\rRuntimeDevice\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x16\n\x0ehardware_class\x18\x02 \x01(\t\x12\x18\n\x10total_vram_bytes\x18\x03 \x01(\x04\x12\x13\n\x0btotal_slots\x18\x04 \x01(\r\x12\x12\n\nfree_slots\x18\x05 \x01(\r\"\xb5\x01\n\x0cRuntimeModel\x12\x18\n\x10\x63\x61talog_model_id\x18\x01 \x01(\t\x12\x15\n\rmodel_version\x18\x02 \x01(\t\x12\x14\n\x0cmodel_digest\x18\x03 \x01(\t\x12\x12\n\nprecisions\x18\x04 \x03(\t\x12\x10\n\x08\x66\x65\x61tures\x18\x05 \x03(\t\x12\x38\n\x05state\x18\x06 \x01(\x0e\x32).voicestudio.runtime.v1.RuntimeModelState\"\xd9\x03\n\x0e\x45xecuteRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12\x11\n\tdevice_id\x18\x03 \x01(\t\x12\x0f\n\x07slot_id\x18\x04 \x01(\t\x12\x30\n\x05model\x18\x05 \x01(\x0b\x32!.voicestudio.runtime.v1.ModelSpec\x12J\n\nparameters\x18\x06 \x03(\x0b\x32\x36.voicestudio.runtime.v1.ExecuteRequest.ParametersEntry\x12\x35\n\x06inputs\x18\x07 \x03(\x0b\x32%.voicestudio.runtime.v1.LocalArtifact\x12\x36\n\x07outputs\x18\x08 \x03(\x0b\x32%.voicestudio.runtime.v1.LocalArtifact\x12\x18\n\x10\x64\x65\x61\x64line_unix_ms\x18\t \x01(\x03\x12\x1d\n\x15maximum_preview_bytes\x18\n \x01(\r\x1aY\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.voicestudio.runtime.v1.ParameterValue:\x02\x38\x01\"e\n\tModelSpec\x12\x18\n\x10\x63\x61talog_model_id\x18\x01 \x01(\t\x12\x15\n\rmodel_version\x18\x02 \x01(\t\x12\x14\n\x0cmodel_digest\x18\x03 \x01(\t\x12\x11\n\tprecision\x18\x04 \x01(\t\"{\n\x0eParameterValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x17\n\rinteger_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0cnumber_value\x18\x03 \x01(\x01H\x00\x12\x17\n\rboolean_value\x18\x04 \x01(\x08H\x00\x42\x07\n\x05value\"\xc7\x01\n\rLocalArtifact\x12\x13\n\x0b\x61rtifact_id\x18\x01 \x01(\t\x12\x14\n\x0clocal_handle\x18\x02 \x01(\t\x12\x41\n\toperation\x18\x03 \x01(\x0e\x32..voicestudio.runtime.v1.LocalArtifactOperation\x12\x1b\n\x13\x65xpected_size_bytes\x18\x04 \x01(\x04\x12\x17\n\x0f\x65xpected_sha256\x18\x05 \x01(\t\x12\x12\n\nmedia_type\x18\x06 \x01(\t\"\xde\x03\n\x0e\x45xecutionEvent\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x12\x1b\n\x13observed_at_unix_ms\x18\x04 \x01(\x03\x12;\n\x07started\x18\n \x01(\x0b\x32(.voicestudio.runtime.v1.ExecutionStartedH\x00\x12=\n\x08progress\x18\x0b \x01(\x0b\x32).voicestudio.runtime.v1.ExecutionProgressH\x00\x12\x37\n\x07preview\x18\x0c \x01(\x0b\x32$.voicestudio.runtime.v1.PreviewChunkH\x00\x12?\n\tcompleted\x18\r \x01(\x0b\x32*.voicestudio.runtime.v1.ExecutionCompletedH\x00\x12\x39\n\x06\x66\x61iled\x18\x0e \x01(\x0b\x32\'.voicestudio.runtime.v1.ExecutionFailedH\x00\x12=\n\x08\x63\x61nceled\x18\x0f \x01(\x0b\x32).voicestudio.runtime.v1.ExecutionCanceledH\x00\x42\t\n\x07payload\"\x12\n\x10\x45xecutionStarted\"B\n\x11\x45xecutionProgress\x12\x19\n\x11progress_permille\x18\x01 \x01(\r\x12\x12\n\nstage_code\x18\x02 \x01(\t\"B\n\x0cPreviewChunk\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x12\n\nmedia_type\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"\x97\x01\n\x12\x45xecutionCompleted\x12>\n\x07outputs\x18\x01 \x03(\x0b\x32-.voicestudio.runtime.v1.LocalArtifactManifest\x12\x41\n\x0cmeasurements\x18\x02 \x01(\x0b\x32+.voicestudio.runtime.v1.RuntimeMeasurements\"\x8f\x01\n\x15LocalArtifactManifest\x12\x13\n\x0b\x61rtifact_id\x18\x01 \x01(\t\x12\x14\n\x0clocal_handle\x18\x02 \x01(\t\x12\x12\n\nsize_bytes\x18\x03 \x01(\x04\x12\x0e\n\x06sha256\x18\x04 \x01(\t\x12\x12\n\nmedia_type\x18\x05 \x01(\t\x12\x13\n\x0b\x64uration_ms\x18\x06 \x01(\x04\"\xc2\x01\n\x0f\x45xecutionFailed\x12\x42\n\rfailure_class\x18\x01 \x01(\x0e\x32+.voicestudio.runtime.v1.RuntimeFailureClass\x12\x13\n\x0bstable_code\x18\x02 \x01(\t\x12\x13\n\x0bsafe_detail\x18\x03 \x01(\t\x12\x41\n\x0cmeasurements\x18\x04 \x01(\x0b\x32+.voicestudio.runtime.v1.RuntimeMeasurements\"V\n\x11\x45xecutionCanceled\x12\x41\n\x0cmeasurements\x18\x01 \x01(\x0b\x32+.voicestudio.runtime.v1.RuntimeMeasurements\"\x9f\x01\n\x13RuntimeMeasurements\x12#\n\x1bnormalized_input_characters\x18\x01 \x01(\x04\x12\x16\n\x0einput_audio_ms\x18\x02 \x01(\x04\x12\x17\n\x0foutput_audio_ms\x18\x03 \x01(\x04\x12\x18\n\x10gpu_execution_ms\x18\x04 \x01(\x04\x12\x18\n\x10\x63pu_execution_ms\x18\x05 \x01(\x04\"b\n\rCancelRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12\x13\n\x0breason_code\x18\x03 \x01(\t\x12\x18\n\x10\x64\x65\x61\x64line_unix_ms\x18\x04 \x01(\x03\"P\n\x0e\x43\x61ncelResponse\x12>\n\x0b\x64isposition\x18\x01 \x01(\x0e\x32).voicestudio.runtime.v1.CancelDisposition*\x7f\n\x0cServingState\x12\x1d\n\x19SERVING_STATE_UNSPECIFIED\x10\x00\x12\x17\n\x13SERVING_STATE_READY\x10\x01\x12\x1a\n\x16SERVING_STATE_DEGRADED\x10\x02\x12\x1b\n\x17SERVING_STATE_UNHEALTHY\x10\x03*\xbb\x01\n\x11RuntimeModelState\x12#\n\x1fRUNTIME_MODEL_STATE_UNSPECIFIED\x10\x00\x12!\n\x1dRUNTIME_MODEL_STATE_INSTALLED\x10\x01\x12\x1f\n\x1bRUNTIME_MODEL_STATE_LOADING\x10\x02\x12\x1d\n\x19RUNTIME_MODEL_STATE_READY\x10\x03\x12\x1e\n\x1aRUNTIME_MODEL_STATE_FAILED\x10\x04*\x89\x01\n\x16LocalArtifactOperation\x12(\n$LOCAL_ARTIFACT_OPERATION_UNSPECIFIED\x10\x00\x12!\n\x1dLOCAL_ARTIFACT_OPERATION_READ\x10\x01\x12\"\n\x1eLOCAL_ARTIFACT_OPERATION_WRITE\x10\x02*\xc0\x02\n\x13RuntimeFailureClass\x12%\n!RUNTIME_FAILURE_CLASS_UNSPECIFIED\x10\x00\x12\x1f\n\x1bRUNTIME_FAILURE_CLASS_INPUT\x10\x01\x12$\n RUNTIME_FAILURE_CLASS_MODEL_LOAD\x10\x02\x12#\n\x1fRUNTIME_FAILURE_CLASS_INFERENCE\x10\x03\x12&\n\"RUNTIME_FAILURE_CLASS_GPU_RESOURCE\x10\x04\x12\'\n#RUNTIME_FAILURE_CLASS_LOCAL_STORAGE\x10\x05\x12!\n\x1dRUNTIME_FAILURE_CLASS_RUNTIME\x10\x06\x12\"\n\x1eRUNTIME_FAILURE_CLASS_CANCELED\x10\x07*\xa3\x01\n\x11\x43\x61ncelDisposition\x12\"\n\x1e\x43\x41NCEL_DISPOSITION_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x43\x41NCEL_DISPOSITION_ACCEPTED\x10\x01\x12\'\n#CANCEL_DISPOSITION_ALREADY_TERMINAL\x10\x02\x12 \n\x1c\x43\x41NCEL_DISPOSITION_NOT_FOUND\x10\x03\x32\x9b\x03\n\x15RuntimeAdapterService\x12W\n\x06Health\x12%.voicestudio.runtime.v1.HealthRequest\x1a&.voicestudio.runtime.v1.HealthResponse\x12r\n\x0fGetCapabilities\x12..voicestudio.runtime.v1.GetCapabilitiesRequest\x1a/.voicestudio.runtime.v1.GetCapabilitiesResponse\x12\\\n\x07\x45xecute\x12&.voicestudio.runtime.v1.ExecuteRequest\x1a\'.voicestudio.runtime.v1.ExecuteResponse0\x01\x12W\n\x06\x43\x61ncel\x12%.voicestudio.runtime.v1.CancelRequest\x1a&.voicestudio.runtime.v1.CancelResponseB8Z6github.com/velixio/vssaas/api/gen/runtime/v1;runtimev1b\x06proto3')
|
|
|
|
_globals = globals()
|
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'runtime_adapter_pb2', _globals)
|
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
_globals['DESCRIPTOR']._serialized_options = b'Z6github.com/velixio/vssaas/api/gen/runtime/v1;runtimev1'
|
|
_globals['_EXECUTEREQUEST_PARAMETERSENTRY']._loaded_options = None
|
|
_globals['_EXECUTEREQUEST_PARAMETERSENTRY']._serialized_options = b'8\001'
|
|
_globals['_SERVINGSTATE']._serialized_start=3281
|
|
_globals['_SERVINGSTATE']._serialized_end=3408
|
|
_globals['_RUNTIMEMODELSTATE']._serialized_start=3411
|
|
_globals['_RUNTIMEMODELSTATE']._serialized_end=3598
|
|
_globals['_LOCALARTIFACTOPERATION']._serialized_start=3601
|
|
_globals['_LOCALARTIFACTOPERATION']._serialized_end=3738
|
|
_globals['_RUNTIMEFAILURECLASS']._serialized_start=3741
|
|
_globals['_RUNTIMEFAILURECLASS']._serialized_end=4061
|
|
_globals['_CANCELDISPOSITION']._serialized_start=4064
|
|
_globals['_CANCELDISPOSITION']._serialized_end=4227
|
|
_globals['_EXECUTERESPONSE']._serialized_start=49
|
|
_globals['_EXECUTERESPONSE']._serialized_end=121
|
|
_globals['_HEALTHREQUEST']._serialized_start=123
|
|
_globals['_HEALTHREQUEST']._serialized_end=138
|
|
_globals['_HEALTHRESPONSE']._serialized_start=141
|
|
_globals['_HEALTHRESPONSE']._serialized_end=282
|
|
_globals['_GETCAPABILITIESREQUEST']._serialized_start=284
|
|
_globals['_GETCAPABILITIESREQUEST']._serialized_end=308
|
|
_globals['_GETCAPABILITIESRESPONSE']._serialized_start=311
|
|
_globals['_GETCAPABILITIESRESPONSE']._serialized_end=496
|
|
_globals['_RUNTIMEDEVICE']._serialized_start=498
|
|
_globals['_RUNTIMEDEVICE']._serialized_end=623
|
|
_globals['_RUNTIMEMODEL']._serialized_start=626
|
|
_globals['_RUNTIMEMODEL']._serialized_end=807
|
|
_globals['_EXECUTEREQUEST']._serialized_start=810
|
|
_globals['_EXECUTEREQUEST']._serialized_end=1283
|
|
_globals['_EXECUTEREQUEST_PARAMETERSENTRY']._serialized_start=1194
|
|
_globals['_EXECUTEREQUEST_PARAMETERSENTRY']._serialized_end=1283
|
|
_globals['_MODELSPEC']._serialized_start=1285
|
|
_globals['_MODELSPEC']._serialized_end=1386
|
|
_globals['_PARAMETERVALUE']._serialized_start=1388
|
|
_globals['_PARAMETERVALUE']._serialized_end=1511
|
|
_globals['_LOCALARTIFACT']._serialized_start=1514
|
|
_globals['_LOCALARTIFACT']._serialized_end=1713
|
|
_globals['_EXECUTIONEVENT']._serialized_start=1716
|
|
_globals['_EXECUTIONEVENT']._serialized_end=2194
|
|
_globals['_EXECUTIONSTARTED']._serialized_start=2196
|
|
_globals['_EXECUTIONSTARTED']._serialized_end=2214
|
|
_globals['_EXECUTIONPROGRESS']._serialized_start=2216
|
|
_globals['_EXECUTIONPROGRESS']._serialized_end=2282
|
|
_globals['_PREVIEWCHUNK']._serialized_start=2284
|
|
_globals['_PREVIEWCHUNK']._serialized_end=2350
|
|
_globals['_EXECUTIONCOMPLETED']._serialized_start=2353
|
|
_globals['_EXECUTIONCOMPLETED']._serialized_end=2504
|
|
_globals['_LOCALARTIFACTMANIFEST']._serialized_start=2507
|
|
_globals['_LOCALARTIFACTMANIFEST']._serialized_end=2650
|
|
_globals['_EXECUTIONFAILED']._serialized_start=2653
|
|
_globals['_EXECUTIONFAILED']._serialized_end=2847
|
|
_globals['_EXECUTIONCANCELED']._serialized_start=2849
|
|
_globals['_EXECUTIONCANCELED']._serialized_end=2935
|
|
_globals['_RUNTIMEMEASUREMENTS']._serialized_start=2938
|
|
_globals['_RUNTIMEMEASUREMENTS']._serialized_end=3097
|
|
_globals['_CANCELREQUEST']._serialized_start=3099
|
|
_globals['_CANCELREQUEST']._serialized_end=3197
|
|
_globals['_CANCELRESPONSE']._serialized_start=3199
|
|
_globals['_CANCELRESPONSE']._serialized_end=3279
|
|
_globals['_RUNTIMEADAPTERSERVICE']._serialized_start=4230
|
|
_globals['_RUNTIMEADAPTERSERVICE']._serialized_end=4641
|
|
# @@protoc_insertion_point(module_scope)
|