# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: refit.proto
# Protobuf Python Version: 5.27.2
"""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,
27,
2,
'',
'refit.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0brefit.proto\x12\x13model_express.refit\"\x86\x01\n\x12WorkerRegistration\x12\x11\n\tworker_id\x18\x01 \x01(\t\x12-\n\x04role\x18\x02 \x01(\x0e\x32\x1f.model_express.refit.WorkerRole\x12\x12\n\nmodel_name\x18\x03 \x01(\t\x12\x1a\n\x12\x65xpires_at_unix_ms\x18\x04 \x01(\x04\"e\n\x15RegisterWorkerRequest\x12\x37\n\x06worker\x18\x01 \x01(\x0b\x32\'.model_express.refit.WorkerRegistration\x12\x13\n\x0bttl_seconds\x18\x02 \x01(\r\"Q\n\x16RegisterWorkerResponse\x12\x37\n\x06worker\x18\x01 \x01(\x0b\x32\'.model_express.refit.WorkerRegistration\"\x8c\x03\n\rWeightVersion\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\x12\n\nmodel_name\x18\x02 \x01(\t\x12\x17\n\x0fidempotency_key\x18\x03 \x01(\t\x12@\n\x0epayload_format\x18\x04 \x01(\x0e\x32(.model_express.refit.WeightPayloadFormat\x12\x1c\n\x0f\x62\x61se_version_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x15\x65xpected_source_slots\x18\x06 \x03(\t\x12\x18\n\x10layout_signature\x18\x07 \x01(\t\x12\x36\n\x05state\x18\x08 \x01(\x0e\x32\'.model_express.refit.WeightVersionState\x12\x1a\n\x12\x63reated_at_unix_ms\x18\t \x01(\x04\x12@\n\x0eobject_storage\x18\n \x01(\x0b\x32(.model_express.refit.ObjectStorageSourceB\x12\n\x10_base_version_id\"\xf0\x02\n\x1a\x43reateWeightVersionRequest\x12\x12\n\nmodel_name\x18\x01 \x01(\t\x12\x17\n\x0fidempotency_key\x18\x02 \x01(\t\x12@\n\x0epayload_format\x18\x03 \x01(\x0e\x32(.model_express.refit.WeightPayloadFormat\x12\x1c\n\x0f\x62\x61se_version_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x15\x65xpected_source_slots\x18\x05 \x03(\t\x12@\n\x0eobject_storage\x18\x06 \x01(\x0b\x32(.model_express.refit.ObjectStorageSource\x12\x36\n\x05state\x18\x07 \x01(\x0e\x32\'.model_express.refit.WeightVersionState\x12\x10\n\x03uid\x18\x08 \x01(\tH\x01\x88\x01\x01\x42\x12\n\x10_base_version_idB\x06\n\x04_uid\"R\n\x1b\x43reateWeightVersionResponse\x12\x33\n\x07version\x18\x01 \x01(\x0b\x32\".model_express.refit.WeightVersion\"&\n\x17GetWeightVersionRequest\x12\x0b\n\x03uid\x18\x01 \x01(\t\"O\n\x18GetWeightVersionResponse\x12\x33\n\x07version\x18\x01 \x01(\x0b\x32\".model_express.refit.WeightVersion\")\n\x1a\x44\x65leteWeightVersionRequest\x12\x0b\n\x03uid\x18\x01 \x01(\t\"R\n\x1b\x44\x65leteWeightVersionResponse\x12\x33\n\x07version\x18\x01 \x01(\x0b\x32\".model_express.refit.WeightVersion\"f\n\x1fUpdateWeightVersionStateRequest\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.model_express.refit.WeightVersionState\"W\n UpdateWeightVersionStateResponse\x12\x33\n\x07version\x18\x01 \x01(\x0b\x32\".model_express.refit.WeightVersion\"\xb2\x01\n\x12WeightVersionShard\x12\x12\n\nversion_id\x18\x01 \x01(\t\x12\x16\n\x0esource_slot_id\x18\x02 \x01(\t\x12\x11\n\tworker_id\x18\x03 \x01(\t\x12\x14\n\x0ctensor_count\x18\x04 \x01(\x04\x12\x13\n\x0btotal_bytes\x18\x05 \x01(\x04\x12\x17\n\x0fmanifest_digest\x18\x06 \x01(\t\x12\x19\n\x11manifest_endpoint\x18\x07 \x01(\t\"`\n\x13ObjectStorageSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12<\n\x0cstorage_type\x18\x02 \x01(\x0e\x32&.model_express.refit.ObjectStorageType\"Y\n\x1f\x43reateWeightVersionShardRequest\x12\x36\n\x05shard\x18\x01 \x01(\x0b\x32\'.model_express.refit.WeightVersionShard\"\x8f\x01\n CreateWeightVersionShardResponse\x12\x36\n\x05shard\x18\x01 \x01(\x0b\x32\'.model_express.refit.WeightVersionShard\x12\x33\n\x07version\x18\x02 \x01(\x0b\x32\".model_express.refit.WeightVersion\"4\n\x1eListWeightVersionShardsRequest\x12\x12\n\nversion_id\x18\x01 \x01(\t\"Z\n\x1fListWeightVersionShardsResponse\x12\x37\n\x06shards\x18\x01 \x03(\x0b\x32\'.model_express.refit.WeightVersionShard\"R\n$GetWeightVersionShardManifestRequest\x12\x12\n\nversion_id\x18\x01 \x01(\t\x12\x16\n\x0esource_slot_id\x18\x02 \x01(\t\"R\n%GetWeightVersionShardManifestResponse\x12\x10\n\x08manifest\x18\x01 \x01(\x0c\x12\x17\n\x0fmanifest_digest\x18\x02 \x01(\t\"`\n\x1f\x44\x65leteWeightVersionShardRequest\x12\x12\n\nversion_id\x18\x01 \x01(\t\x12\x16\n\x0esource_slot_id\x18\x02 \x01(\t\x12\x11\n\tworker_id\x18\x03 \x01(\t\"3\n DeleteWeightVersionShardResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08\"c\n\x0cVersionLease\x12\x10\n\x08lease_id\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\t\x12\x11\n\tworker_id\x18\x03 \x01(\t\x12\x1a\n\x12\x65xpires_at_unix_ms\x18\x04 \x01(\x04\"Y\n\x1bRegisterVersionLeaseRequest\x12\x12\n\nversion_id\x18\x01 \x01(\t\x12\x11\n\tworker_id\x18\x02 \x01(\t\x12\x13\n\x0bttl_seconds\x18\x03 \x01(\r\"P\n\x1cRegisterVersionLeaseResponse\x12\x30\n\x05lease\x18\x01 \x01(\x0b\x32!.model_express.refit.VersionLease\"T\n\x19\x44\x65leteVersionLeaseRequest\x12\x12\n\nversion_id\x18\x01 \x01(\t\x12\x10\n\x08lease_id\x18\x02 \x01(\t\x12\x11\n\tworker_id\x18\x03 \x01(\t\"-\n\x1a\x44\x65leteVersionLeaseResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08*]\n\nWorkerRole\x12\x1b\n\x17WORKER_ROLE_UNSPECIFIED\x10\x00\x12\x17\n\x13WORKER_ROLE_TRAINER\x10\x01\x12\x19\n\x15WORKER_ROLE_GENERATOR\x10\x02*\xb6\x01\n\x13WeightPayloadFormat\x12%\n!WEIGHT_PAYLOAD_FORMAT_UNSPECIFIED\x10\x00\x12%\n!WEIGHT_PAYLOAD_FORMAT_FULL_TENSOR\x10\x01\x12#\n\x1fWEIGHT_PAYLOAD_FORMAT_XOR_DELTA\x10\x02\x12,\n(WEIGHT_PAYLOAD_FORMAT_FULL_HF_CHECKPOINT\x10\x03*\xa0\x01\n\x12WeightVersionState\x12$\n WEIGHT_VERSION_STATE_UNSPECIFIED\x10\x00\x12 \n\x1cWEIGHT_VERSION_STATE_STAGING\x10\x01\x12\x1e\n\x1aWEIGHT_VERSION_STATE_READY\x10\x02\x12\"\n\x1eWEIGHT_VERSION_STATE_RELEASING\x10\x03*\x90\x01\n\x11ObjectStorageType\x12#\n\x1fOBJECT_STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16OBJECT_STORAGE_TYPE_S3\x10\x01\x12\x1d\n\x19OBJECT_STORAGE_TYPE_AZURE\x10\x02\x12\x1b\n\x17OBJECT_STORAGE_TYPE_GCS\x10\x03\x32\xf7\t\n\x0cRefitService\x12x\n\x13\x43reateWeightVersion\x12/.model_express.refit.CreateWeightVersionRequest\x1a\x30.model_express.refit.CreateWeightVersionResponse\x12o\n\x10GetWeightVersion\x12,.model_express.refit.GetWeightVersionRequest\x1a-.model_express.refit.GetWeightVersionResponse\x12x\n\x13\x44\x65leteWeightVersion\x12/.model_express.refit.DeleteWeightVersionRequest\x1a\x30.model_express.refit.DeleteWeightVersionResponse\x12\x87\x01\n\x18UpdateWeightVersionState\x12\x34.model_express.refit.UpdateWeightVersionStateRequest\x1a\x35.model_express.refit.UpdateWeightVersionStateResponse\x12i\n\x0eRegisterWorker\x12*.model_express.refit.RegisterWorkerRequest\x1a+.model_express.refit.RegisterWorkerResponse\x12\x87\x01\n\x18\x43reateWeightVersionShard\x12\x34.model_express.refit.CreateWeightVersionShardRequest\x1a\x35.model_express.refit.CreateWeightVersionShardResponse\x12\x84\x01\n\x17ListWeightVersionShards\x12\x33.model_express.refit.ListWeightVersionShardsRequest\x1a\x34.model_express.refit.ListWeightVersionShardsResponse\x12\x87\x01\n\x18\x44\x65leteWeightVersionShard\x12\x34.model_express.refit.DeleteWeightVersionShardRequest\x1a\x35.model_express.refit.DeleteWeightVersionShardResponse\x12{\n\x14RegisterVersionLease\x12\x30.model_express.refit.RegisterVersionLeaseRequest\x1a\x31.model_express.refit.RegisterVersionLeaseResponse\x12u\n\x12\x44\x65leteVersionLease\x12..model_express.refit.DeleteVersionLeaseRequest\x1a/.model_express.refit.DeleteVersionLeaseResponse2\xad\x01\n\x12RefitWorkerService\x12\x96\x01\n\x1dGetWeightVersionShardManifest\x12\x39.model_express.refit.GetWeightVersionShardManifestRequest\x1a:.model_express.refit.GetWeightVersionShardManifestResponseb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'refit_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
_globals['_WORKERROLE']._serialized_start=3042
_globals['_WORKERROLE']._serialized_end=3135
_globals['_WEIGHTPAYLOADFORMAT']._serialized_start=3138
_globals['_WEIGHTPAYLOADFORMAT']._serialized_end=3320
_globals['_WEIGHTVERSIONSTATE']._serialized_start=3323
_globals['_WEIGHTVERSIONSTATE']._serialized_end=3483
_globals['_OBJECTSTORAGETYPE']._serialized_start=3486
_globals['_OBJECTSTORAGETYPE']._serialized_end=3630
_globals['_WORKERREGISTRATION']._serialized_start=37
_globals['_WORKERREGISTRATION']._serialized_end=171
_globals['_REGISTERWORKERREQUEST']._serialized_start=173
_globals['_REGISTERWORKERREQUEST']._serialized_end=274
_globals['_REGISTERWORKERRESPONSE']._serialized_start=276
_globals['_REGISTERWORKERRESPONSE']._serialized_end=357
_globals['_WEIGHTVERSION']._serialized_start=360
_globals['_WEIGHTVERSION']._serialized_end=756
_globals['_CREATEWEIGHTVERSIONREQUEST']._serialized_start=759
_globals['_CREATEWEIGHTVERSIONREQUEST']._serialized_end=1127
_globals['_CREATEWEIGHTVERSIONRESPONSE']._serialized_start=1129
_globals['_CREATEWEIGHTVERSIONRESPONSE']._serialized_end=1211
_globals['_GETWEIGHTVERSIONREQUEST']._serialized_start=1213
_globals['_GETWEIGHTVERSIONREQUEST']._serialized_end=1251
_globals['_GETWEIGHTVERSIONRESPONSE']._serialized_start=1253
_globals['_GETWEIGHTVERSIONRESPONSE']._serialized_end=1332
_globals['_DELETEWEIGHTVERSIONREQUEST']._serialized_start=1334
_globals['_DELETEWEIGHTVERSIONREQUEST']._serialized_end=1375
_globals['_DELETEWEIGHTVERSIONRESPONSE']._serialized_start=1377
_globals['_DELETEWEIGHTVERSIONRESPONSE']._serialized_end=1459
_globals['_UPDATEWEIGHTVERSIONSTATEREQUEST']._serialized_start=1461
_globals['_UPDATEWEIGHTVERSIONSTATEREQUEST']._serialized_end=1563
_globals['_UPDATEWEIGHTVERSIONSTATERESPONSE']._serialized_start=1565
_globals['_UPDATEWEIGHTVERSIONSTATERESPONSE']._serialized_end=1652
_globals['_WEIGHTVERSIONSHARD']._serialized_start=1655
_globals['_WEIGHTVERSIONSHARD']._serialized_end=1833
_globals['_OBJECTSTORAGESOURCE']._serialized_start=1835
_globals['_OBJECTSTORAGESOURCE']._serialized_end=1931
_globals['_CREATEWEIGHTVERSIONSHARDREQUEST']._serialized_start=1933
_globals['_CREATEWEIGHTVERSIONSHARDREQUEST']._serialized_end=2022
_globals['_CREATEWEIGHTVERSIONSHARDRESPONSE']._serialized_start=2025
_globals['_CREATEWEIGHTVERSIONSHARDRESPONSE']._serialized_end=2168
_globals['_LISTWEIGHTVERSIONSHARDSREQUEST']._serialized_start=2170
_globals['_LISTWEIGHTVERSIONSHARDSREQUEST']._serialized_end=2222
_globals['_LISTWEIGHTVERSIONSHARDSRESPONSE']._serialized_start=2224
_globals['_LISTWEIGHTVERSIONSHARDSRESPONSE']._serialized_end=2314
_globals['_GETWEIGHTVERSIONSHARDMANIFESTREQUEST']._serialized_start=2316
_globals['_GETWEIGHTVERSIONSHARDMANIFESTREQUEST']._serialized_end=2398
_globals['_GETWEIGHTVERSIONSHARDMANIFESTRESPONSE']._serialized_start=2400
_globals['_GETWEIGHTVERSIONSHARDMANIFESTRESPONSE']._serialized_end=2482
_globals['_DELETEWEIGHTVERSIONSHARDREQUEST']._serialized_start=2484
_globals['_DELETEWEIGHTVERSIONSHARDREQUEST']._serialized_end=2580
_globals['_DELETEWEIGHTVERSIONSHARDRESPONSE']._serialized_start=2582
_globals['_DELETEWEIGHTVERSIONSHARDRESPONSE']._serialized_end=2633
_globals['_VERSIONLEASE']._serialized_start=2635
_globals['_VERSIONLEASE']._serialized_end=2734
_globals['_REGISTERVERSIONLEASEREQUEST']._serialized_start=2736
_globals['_REGISTERVERSIONLEASEREQUEST']._serialized_end=2825
_globals['_REGISTERVERSIONLEASERESPONSE']._serialized_start=2827
_globals['_REGISTERVERSIONLEASERESPONSE']._serialized_end=2907
_globals['_DELETEVERSIONLEASEREQUEST']._serialized_start=2909
_globals['_DELETEVERSIONLEASEREQUEST']._serialized_end=2993
_globals['_DELETEVERSIONLEASERESPONSE']._serialized_start=2995
_globals['_DELETEVERSIONLEASERESPONSE']._serialized_end=3040
_globals['_REFITSERVICE']._serialized_start=3633
_globals['_REFITSERVICE']._serialized_end=4904
_globals['_REFITWORKERSERVICE']._serialized_start=4907
_globals['_REFITWORKERSERVICE']._serialized_end=5080
# @@protoc_insertion_point(module_scope)