diff --git a/.gitignore b/.gitignore index c1a33d3..813d744 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ mysql .DS_Store .AppleDouble .LSOverride +.venv/ # Icon must end with two \r Icon @@ -72,3 +73,6 @@ artifacts # Added by cargo /target +__pycache__/ +*.pyc +.venv/ diff --git a/python/README.md b/python/README.md new file mode 100644 index 0000000..7e73655 --- /dev/null +++ b/python/README.md @@ -0,0 +1,5 @@ +# Python Dragonfly API + +Generated Python gRPC bindings for Dragonfly. + +Source protos: diff --git a/python/api/__init__.py b/python/api/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/python/api/common_pb2.py b/python/api/common_pb2.py new file mode 100644 index 0000000..e5a331f --- /dev/null +++ b/python/api/common_pb2.py @@ -0,0 +1,295 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pkg/apis/common/v2/common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from validate import validate_pb2 as validate_dot_validate__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fpkg/apis/common/v2/common.proto\x12\tcommon.v2\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xf8\x03\n\x04Peer\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x10.common.v2.RangeH\x00\x88\x01\x01\x12/\n\x08priority\x18\x03 \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12,\n\x06pieces\x18\x04 \x03(\x0b\x32\x10.common.v2.PieceB\n\xfa\x42\x07\x92\x01\x04\x08\x01(\x01\x12\x31\n\x04\x63ost\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x16\n\x05state\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\'\n\x04task\x18\x07 \x01(\x0b\x32\x0f.common.v2.TaskB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\'\n\x04host\x18\x08 \x01(\x0b\x32\x0f.common.v2.HostB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x1b\n\x13need_back_to_source\x18\t \x01(\x08\x12\x38\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x1e\n\x16\x63oncurrent_piece_count\x18\x0c \x01(\rB\x08\n\x06_range\"\x82\x04\n\tCachePeer\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x10.common.v2.RangeH\x00\x88\x01\x01\x12/\n\x08priority\x18\x03 \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12,\n\x06pieces\x18\x04 \x03(\x0b\x32\x10.common.v2.PieceB\n\xfa\x42\x07\x92\x01\x04\x08\x01(\x01\x12\x31\n\x04\x63ost\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x16\n\x05state\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12,\n\x04task\x18\x07 \x01(\x0b\x32\x14.common.v2.CacheTaskB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\'\n\x04host\x18\x08 \x01(\x0b\x32\x0f.common.v2.HostB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x1b\n\x13need_back_to_source\x18\t \x01(\x08\x12\x38\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x1e\n\x16\x63oncurrent_piece_count\x18\x0c \x01(\rB\x08\n\x06_range\"\xf4\x02\n\x0ePersistentPeer\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npersistent\x18\x02 \x01(\x08\x12\x31\n\x04\x63ost\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x16\n\x05state\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x31\n\x04task\x18\x05 \x01(\x0b\x32\x19.common.v2.PersistentTaskB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\'\n\x04host\x18\x06 \x01(\x0b\x32\x0f.common.v2.HostB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x38\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x1e\n\x16\x63oncurrent_piece_count\x18\t \x01(\r\"\xfe\x02\n\x13PersistentCachePeer\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npersistent\x18\x02 \x01(\x08\x12\x31\n\x04\x63ost\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x16\n\x05state\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x36\n\x04task\x18\x05 \x01(\x0b\x32\x1e.common.v2.PersistentCacheTaskB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\'\n\x04host\x18\x06 \x01(\x0b\x32\x0f.common.v2.HostB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x38\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x1e\n\x16\x63oncurrent_piece_count\x18\t \x01(\r\"\xab\x06\n\x04Task\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x13.common.v2.TaskTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x15\n\x03url\x18\x03 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\xa8\x01\n\x06\x64igest\x18\x04 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01H\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x07 \x03(\t\x12:\n\x0erequest_header\x18\x08 \x03(\x0b\x32\".common.v2.Task.RequestHeaderEntry\x12\x16\n\x0e\x63ontent_length\x18\t \x01(\x04\x12\x13\n\x0bpiece_count\x18\n \x01(\r\x12(\n\nsize_scope\x18\x0b \x01(\x0e\x32\x14.common.v2.SizeScope\x12,\n\x06pieces\x18\x0c \x03(\x0b\x32\x10.common.v2.PieceB\n\xfa\x42\x07\x92\x01\x04\x08\x01(\x01\x12\x16\n\x05state\x18\r \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npeer_count\x18\x0e \x01(\r\x12\x1a\n\x12has_available_peer\x18\x0f \x01(\x08\x12\x38\n\ncreated_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x1a\x34\n\x12RequestHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_digestB\x06\n\x04_tagB\x0e\n\x0c_application\"\xb5\x06\n\tCacheTask\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x13.common.v2.TaskTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x15\n\x03url\x18\x03 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\xa8\x01\n\x06\x64igest\x18\x04 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01H\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x07 \x03(\t\x12?\n\x0erequest_header\x18\x08 \x03(\x0b\x32\'.common.v2.CacheTask.RequestHeaderEntry\x12\x16\n\x0e\x63ontent_length\x18\t \x01(\x04\x12\x13\n\x0bpiece_count\x18\n \x01(\r\x12(\n\nsize_scope\x18\x0b \x01(\x0e\x32\x14.common.v2.SizeScope\x12,\n\x06pieces\x18\x0c \x03(\x0b\x32\x10.common.v2.PieceB\n\xfa\x42\x07\x92\x01\x04\x08\x01(\x01\x12\x16\n\x05state\x18\r \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npeer_count\x18\x0e \x01(\r\x12\x1a\n\x12has_available_peer\x18\x0f \x01(\x08\x12\x38\n\ncreated_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x1a\x34\n\x12RequestHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_digestB\x06\n\x04_tagB\x0e\n\x0c_application\"\x84\x03\n\x0ePersistentTask\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12)\n\x18persistent_replica_count\x18\x02 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12(\n current_persistent_replica_count\x18\x03 \x01(\x04\x12\x1d\n\x15\x63urrent_replica_count\x18\x04 \x01(\x04\x12\x16\n\x0e\x63ontent_length\x18\x05 \x01(\x04\x12\x13\n\x0bpiece_count\x18\x06 \x01(\r\x12\x16\n\x05state\x18\x07 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x30\n\x03ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x38\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\"\xf4\x03\n\x13PersistentCacheTask\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12)\n\x18persistent_replica_count\x18\x02 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12(\n current_persistent_replica_count\x18\x03 \x01(\x04\x12\x1d\n\x15\x63urrent_replica_count\x18\x04 \x01(\x04\x12\x10\n\x03tag\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x01\x88\x01\x01\x12%\n\x0cpiece_length\x18\x07 \x01(\x04\x42\x0f\xfa\x42\x0c\x32\n\x18\x80\x80\x80 (\x80\x80\x80\x02\x12\x16\n\x0e\x63ontent_length\x18\x08 \x01(\x04\x12\x13\n\x0bpiece_count\x18\t \x01(\r\x12\x16\n\x05state\x18\n \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x30\n\x03ttl\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x38\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x42\x06\n\x04_tagB\x0e\n\x0c_application\"\xd4\x04\n\x04Host\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x15\n\x04type\x18\x02 \x01(\rB\x07\xfa\x42\x04*\x02\x18\x03\x12\x19\n\x08hostname\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x13\n\x02ip\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12\x1a\n\x04port\x18\x05 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xff\xff\x03(\x80\x08\x12#\n\rdownload_port\x18\x06 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xff\xff\x03(\x80\x08\x12\n\n\x02os\x18\x07 \x01(\t\x12\x10\n\x08platform\x18\x08 \x01(\t\x12\x17\n\x0fplatform_family\x18\t \x01(\t\x12\x18\n\x10platform_version\x18\n \x01(\t\x12\x16\n\x0ekernel_version\x18\x0b \x01(\t\x12 \n\x03\x63pu\x18\x0c \x01(\x0b\x32\x0e.common.v2.CPUH\x00\x88\x01\x01\x12&\n\x06memory\x18\r \x01(\x0b\x32\x11.common.v2.MemoryH\x01\x88\x01\x01\x12(\n\x07network\x18\x0e \x01(\x0b\x32\x12.common.v2.NetworkH\x02\x88\x01\x01\x12\"\n\x04\x64isk\x18\x0f \x01(\x0b\x32\x0f.common.v2.DiskH\x03\x88\x01\x01\x12$\n\x05\x62uild\x18\x10 \x01(\x0b\x32\x10.common.v2.BuildH\x04\x88\x01\x01\x12\x1c\n\x14scheduler_cluster_id\x18\x11 \x01(\x04\x12\x16\n\x0e\x64isable_shared\x18\x12 \x01(\x08\x12\x12\n\nproxy_port\x18\x13 \x01(\x05\x12\x0c\n\x04name\x18\x14 \x01(\tB\x06\n\x04_cpuB\t\n\x07_memoryB\n\n\x08_networkB\x07\n\x05_diskB\x08\n\x06_build\"\xb1\x01\n\x03\x43PU\x12\x15\n\rlogical_count\x18\x01 \x01(\r\x12\x16\n\x0ephysical_count\x18\x02 \x01(\r\x12\x1f\n\x07percent\x18\x03 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\'\n\x0fprocess_percent\x18\x04 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\'\n\x05times\x18\x05 \x01(\x0b\x32\x13.common.v2.CPUTimesH\x00\x88\x01\x01\x42\x08\n\x06_times\"\xc4\x02\n\x08\x43PUTimes\x12\x1c\n\x04user\x18\x01 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1e\n\x06system\x18\x02 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1c\n\x04idle\x18\x03 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1c\n\x04nice\x18\x04 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1e\n\x06iowait\x18\x05 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1b\n\x03irq\x18\x06 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1f\n\x07softirq\x18\x07 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1d\n\x05steal\x18\x08 \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x1d\n\x05guest\x18\t \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\x12\"\n\nguest_nice\x18\n \x01(\x01\x42\x0e\xfa\x42\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00\"\xac\x01\n\x06Memory\x12\r\n\x05total\x18\x01 \x01(\x04\x12\x11\n\tavailable\x18\x02 \x01(\x04\x12\x0c\n\x04used\x18\x03 \x01(\x04\x12-\n\x0cused_percent\x18\x04 \x01(\x01\x42\x17\xfa\x42\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00Y@)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x35\n\x14process_used_percent\x18\x05 \x01(\x01\x42\x17\xfa\x42\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00Y@)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x0c\n\x04\x66ree\x18\x06 \x01(\x04\"\xf2\x02\n\x07Network\x12\x1c\n\x14tcp_connection_count\x18\x01 \x01(\r\x12#\n\x1bupload_tcp_connection_count\x18\x02 \x01(\r\x12\x15\n\x08location\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x03idc\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x10max_rx_bandwidth\x18\t \x01(\x04\x12\x19\n\x0crx_bandwidth\x18\n \x01(\x04H\x02\x88\x01\x01\x12\x18\n\x10max_tx_bandwidth\x18\x0b \x01(\x04\x12\x19\n\x0ctx_bandwidth\x18\x0c \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_locationB\x06\n\x04_idcB\x0f\n\r_rx_bandwidthB\x0f\n\r_tx_bandwidthJ\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tR\rdownload_rateR\x13\x64ownload_rate_limitR\x0bupload_rateR\x11upload_rate_limit\"\x87\x02\n\x04\x44isk\x12\r\n\x05total\x18\x01 \x01(\x04\x12\x0c\n\x04\x66ree\x18\x02 \x01(\x04\x12\x0c\n\x04used\x18\x03 \x01(\x04\x12-\n\x0cused_percent\x18\x04 \x01(\x01\x42\x17\xfa\x42\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00Y@)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x14\n\x0cinodes_total\x18\x05 \x01(\x04\x12\x13\n\x0binodes_used\x18\x06 \x01(\x04\x12\x13\n\x0binodes_free\x18\x07 \x01(\x04\x12\x34\n\x13inodes_used_percent\x18\x08 \x01(\x01\x42\x17\xfa\x42\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00Y@)\x00\x00\x00\x00\x00\x00\x00\x00\x12\x16\n\x0eread_bandwidth\x18\t \x01(\x04\x12\x17\n\x0fwrite_bandwidth\x18\n \x01(\x04\"\xbc\x01\n\x05\x42uild\x12\x13\n\x0bgit_version\x18\x01 \x01(\t\x12\x17\n\ngit_commit\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ngo_version\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0crust_version\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x15\n\x08platform\x18\x05 \x01(\tH\x03\x88\x01\x01\x42\r\n\x0b_git_commitB\r\n\x0b_go_versionB\x0f\n\r_rust_versionB\x0b\n\t_platform\"\xe1\x0b\n\x08\x44ownload\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\xa8\x01\n\x06\x64igest\x18\x02 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01H\x00\x88\x01\x01\x12$\n\x05range\x18\x03 \x01(\x0b\x32\x10.common.v2.RangeH\x01\x88\x01\x01\x12+\n\x04type\x18\x04 \x01(\x0e\x32\x13.common.v2.TaskTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x10\n\x03tag\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x03\x88\x01\x01\x12/\n\x08priority\x18\x07 \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x08 \x03(\t\x12>\n\x0erequest_header\x18\t \x03(\x0b\x32&.common.v2.Download.RequestHeaderEntry\x12,\n\x0cpiece_length\x18\n \x01(\x04\x42\x11\xfa\x42\x0e\x32\x0c\x18\x80\x80\x80 (\x80\x80\x80\x02@\x01H\x04\x88\x01\x01\x12$\n\x0boutput_path\x18\x0b \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x05\x88\x01\x01\x12/\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationH\x06\x88\x01\x01\x12\x1e\n\x16\x64isable_back_to_source\x18\r \x01(\x08\x12\x1b\n\x13need_back_to_source\x18\x0e \x01(\x08\x12\x19\n\x11\x63\x65rtificate_chain\x18\x0f \x03(\x0c\x12\x10\n\x08prefetch\x18\x10 \x01(\x08\x12\x35\n\x0eobject_storage\x18\x11 \x01(\x0b\x32\x18.common.v2.ObjectStorageH\x07\x88\x01\x01\x12\"\n\x04hdfs\x18\x12 \x01(\x0b\x32\x0f.common.v2.HDFSH\x08\x88\x01\x01\x12\x13\n\x0bis_prefetch\x18\x13 \x01(\x08\x12\x1a\n\x12need_piece_content\x18\x14 \x01(\x08\x12\x17\n\x0f\x66orce_hard_link\x18\x16 \x01(\x08\x12,\n\x1f\x63ontent_for_calculating_task_id\x18\x17 \x01(\tH\t\x88\x01\x01\x12\"\n\tremote_ip\x18\x18 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\n\x88\x01\x01\x12#\n\x16\x63oncurrent_piece_count\x18\x19 \x01(\rH\x0b\x88\x01\x01\x12\x11\n\toverwrite\x18\x1a \x01(\x08\x12 \n\x13\x61\x63tual_piece_length\x18\x1b \x01(\x04H\x0c\x88\x01\x01\x12\"\n\x15\x61\x63tual_content_length\x18\x1c \x01(\x04H\r\x88\x01\x01\x12\x1f\n\x12\x61\x63tual_piece_count\x18\x1d \x01(\x04H\x0e\x88\x01\x01\x12(\n enable_task_id_based_blob_digest\x18\x1e \x01(\x08\x1a\x34\n\x12RequestHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_digestB\x08\n\x06_rangeB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0f\n\r_piece_lengthB\x0e\n\x0c_output_pathB\n\n\x08_timeoutB\x11\n\x0f_object_storageB\x07\n\x05_hdfsB\"\n _content_for_calculating_task_idB\x0c\n\n_remote_ipB\x19\n\x17_concurrent_piece_countB\x16\n\x14_actual_piece_lengthB\x18\n\x16_actual_content_lengthB\x15\n\x13_actual_piece_countJ\x04\x08\x15\x10\x16R\rload_to_cache\"\x8d\x04\n\rObjectStorage\x12\x1f\n\x06region\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x12!\n\x08\x65ndpoint\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x01\x88\x01\x01\x12#\n\raccess_key_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x02\x88\x01\x01\x12\'\n\x11\x61\x63\x63\x65ss_key_secret\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x03\x88\x01\x01\x12&\n\rsession_token\x18\x05 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x04\x88\x01\x01\x12(\n\x0f\x63redential_path\x18\x06 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x05\x88\x01\x01\x12\'\n\x0epredefined_acl\x18\x07 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x06\x88\x01\x01\x12\'\n\x0esecurity_token\x18\x08 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x07\x88\x01\x01\x12!\n\x14insecure_skip_verify\x18\t \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_regionB\x0b\n\t_endpointB\x10\n\x0e_access_key_idB\x14\n\x12_access_key_secretB\x10\n\x0e_session_tokenB\x12\n\x10_credential_pathB\x11\n\x0f_predefined_aclB\x11\n\x0f_security_tokenB\x17\n\x15_insecure_skip_verify\"F\n\x04HDFS\x12)\n\x10\x64\x65legation_token\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x13\n\x11_delegation_token\"&\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x04\x12\x0e\n\x06length\x18\x02 \x01(\x04\"\xed\x03\n\x05Piece\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\"\n\tparent_id\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x04\x12\x0e\n\x06length\x18\x04 \x01(\x04\x12\xa3\x01\n\x06\x64igest\x18\x05 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01\x12\x1f\n\x07\x63ontent\x18\x06 \x01(\x0c\x42\t\xfa\x42\x06z\x04\x10\x01p\x01H\x01\x88\x01\x01\x12\x31\n\x0ctraffic_type\x18\x07 \x01(\x0e\x32\x16.common.v2.TrafficTypeH\x02\x88\x01\x01\x12\x31\n\x04\x63ost\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xfa\x42\x05\xaa\x01\x02\x08\x01\x12\x38\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x42\x0c\n\n_parent_idB\n\n\x08_contentB\x0f\n\r_traffic_type*C\n\tSizeScope\x12\n\n\x06NORMAL\x10\x00\x12\t\n\x05SMALL\x10\x01\x12\x08\n\x04TINY\x10\x02\x12\t\n\x05\x45MPTY\x10\x03\x12\n\n\x06UNKNOW\x10\x04*I\n\x08TaskType\x12\x0c\n\x08STANDARD\x10\x00\x12\x0e\n\nPERSISTENT\x10\x01\x12\x14\n\x10PERSISTENT_CACHE\x10\x02\x12\t\n\x05\x43\x41\x43HE\x10\x03*B\n\x0bTrafficType\x12\x12\n\x0e\x42\x41\x43K_TO_SOURCE\x10\x00\x12\x0f\n\x0bREMOTE_PEER\x10\x01\x12\x0e\n\nLOCAL_PEER\x10\x02*^\n\x08Priority\x12\n\n\x06LEVEL0\x10\x00\x12\n\n\x06LEVEL1\x10\x01\x12\n\n\x06LEVEL2\x10\x02\x12\n\n\x06LEVEL3\x10\x03\x12\n\n\x06LEVEL4\x10\x04\x12\n\n\x06LEVEL5\x10\x05\x12\n\n\x06LEVEL6\x10\x06\x42)Z\'d7y.io/api/v2/pkg/apis/common/v2;commonb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pkg.apis.common.v2.common_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\'d7y.io/api/v2/pkg/apis/common/v2;common' + _PEER.fields_by_name['id']._options = None + _PEER.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _PEER.fields_by_name['priority']._options = None + _PEER.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _PEER.fields_by_name['pieces']._options = None + _PEER.fields_by_name['pieces']._serialized_options = b'\372B\007\222\001\004\010\001(\001' + _PEER.fields_by_name['cost']._options = None + _PEER.fields_by_name['cost']._serialized_options = b'\372B\005\252\001\002\010\001' + _PEER.fields_by_name['state']._options = None + _PEER.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _PEER.fields_by_name['task']._options = None + _PEER.fields_by_name['task']._serialized_options = b'\372B\005\212\001\002\020\001' + _PEER.fields_by_name['host']._options = None + _PEER.fields_by_name['host']._serialized_options = b'\372B\005\212\001\002\020\001' + _PEER.fields_by_name['created_at']._options = None + _PEER.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PEER.fields_by_name['updated_at']._options = None + _PEER.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _CACHEPEER.fields_by_name['id']._options = None + _CACHEPEER.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _CACHEPEER.fields_by_name['priority']._options = None + _CACHEPEER.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _CACHEPEER.fields_by_name['pieces']._options = None + _CACHEPEER.fields_by_name['pieces']._serialized_options = b'\372B\007\222\001\004\010\001(\001' + _CACHEPEER.fields_by_name['cost']._options = None + _CACHEPEER.fields_by_name['cost']._serialized_options = b'\372B\005\252\001\002\010\001' + _CACHEPEER.fields_by_name['state']._options = None + _CACHEPEER.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _CACHEPEER.fields_by_name['task']._options = None + _CACHEPEER.fields_by_name['task']._serialized_options = b'\372B\005\212\001\002\020\001' + _CACHEPEER.fields_by_name['host']._options = None + _CACHEPEER.fields_by_name['host']._serialized_options = b'\372B\005\212\001\002\020\001' + _CACHEPEER.fields_by_name['created_at']._options = None + _CACHEPEER.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _CACHEPEER.fields_by_name['updated_at']._options = None + _CACHEPEER.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTPEER.fields_by_name['id']._options = None + _PERSISTENTPEER.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTPEER.fields_by_name['cost']._options = None + _PERSISTENTPEER.fields_by_name['cost']._serialized_options = b'\372B\005\252\001\002\010\001' + _PERSISTENTPEER.fields_by_name['state']._options = None + _PERSISTENTPEER.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTPEER.fields_by_name['task']._options = None + _PERSISTENTPEER.fields_by_name['task']._serialized_options = b'\372B\005\212\001\002\020\001' + _PERSISTENTPEER.fields_by_name['host']._options = None + _PERSISTENTPEER.fields_by_name['host']._serialized_options = b'\372B\005\212\001\002\020\001' + _PERSISTENTPEER.fields_by_name['created_at']._options = None + _PERSISTENTPEER.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTPEER.fields_by_name['updated_at']._options = None + _PERSISTENTPEER.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTCACHEPEER.fields_by_name['id']._options = None + _PERSISTENTCACHEPEER.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTCACHEPEER.fields_by_name['cost']._options = None + _PERSISTENTCACHEPEER.fields_by_name['cost']._serialized_options = b'\372B\005\252\001\002\010\001' + _PERSISTENTCACHEPEER.fields_by_name['state']._options = None + _PERSISTENTCACHEPEER.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTCACHEPEER.fields_by_name['task']._options = None + _PERSISTENTCACHEPEER.fields_by_name['task']._serialized_options = b'\372B\005\212\001\002\020\001' + _PERSISTENTCACHEPEER.fields_by_name['host']._options = None + _PERSISTENTCACHEPEER.fields_by_name['host']._serialized_options = b'\372B\005\212\001\002\020\001' + _PERSISTENTCACHEPEER.fields_by_name['created_at']._options = None + _PERSISTENTCACHEPEER.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTCACHEPEER.fields_by_name['updated_at']._options = None + _PERSISTENTCACHEPEER.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _TASK_REQUESTHEADERENTRY._options = None + _TASK_REQUESTHEADERENTRY._serialized_options = b'8\001' + _TASK.fields_by_name['id']._options = None + _TASK.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _TASK.fields_by_name['type']._options = None + _TASK.fields_by_name['type']._serialized_options = b'\372B\005\202\001\002\020\001' + _TASK.fields_by_name['url']._options = None + _TASK.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _TASK.fields_by_name['digest']._options = None + _TASK.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _TASK.fields_by_name['pieces']._options = None + _TASK.fields_by_name['pieces']._serialized_options = b'\372B\007\222\001\004\010\001(\001' + _TASK.fields_by_name['state']._options = None + _TASK.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _TASK.fields_by_name['created_at']._options = None + _TASK.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _TASK.fields_by_name['updated_at']._options = None + _TASK.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _CACHETASK_REQUESTHEADERENTRY._options = None + _CACHETASK_REQUESTHEADERENTRY._serialized_options = b'8\001' + _CACHETASK.fields_by_name['id']._options = None + _CACHETASK.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _CACHETASK.fields_by_name['type']._options = None + _CACHETASK.fields_by_name['type']._serialized_options = b'\372B\005\202\001\002\020\001' + _CACHETASK.fields_by_name['url']._options = None + _CACHETASK.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _CACHETASK.fields_by_name['digest']._options = None + _CACHETASK.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _CACHETASK.fields_by_name['pieces']._options = None + _CACHETASK.fields_by_name['pieces']._serialized_options = b'\372B\007\222\001\004\010\001(\001' + _CACHETASK.fields_by_name['state']._options = None + _CACHETASK.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _CACHETASK.fields_by_name['created_at']._options = None + _CACHETASK.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _CACHETASK.fields_by_name['updated_at']._options = None + _CACHETASK.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTTASK.fields_by_name['id']._options = None + _PERSISTENTTASK.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTTASK.fields_by_name['persistent_replica_count']._options = None + _PERSISTENTTASK.fields_by_name['persistent_replica_count']._serialized_options = b'\372B\0042\002(\001' + _PERSISTENTTASK.fields_by_name['state']._options = None + _PERSISTENTTASK.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTTASK.fields_by_name['ttl']._options = None + _PERSISTENTTASK.fields_by_name['ttl']._serialized_options = b'\372B\005\252\001\002\010\001' + _PERSISTENTTASK.fields_by_name['created_at']._options = None + _PERSISTENTTASK.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTTASK.fields_by_name['updated_at']._options = None + _PERSISTENTTASK.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTCACHETASK.fields_by_name['id']._options = None + _PERSISTENTCACHETASK.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTCACHETASK.fields_by_name['persistent_replica_count']._options = None + _PERSISTENTCACHETASK.fields_by_name['persistent_replica_count']._serialized_options = b'\372B\0042\002(\001' + _PERSISTENTCACHETASK.fields_by_name['piece_length']._options = None + _PERSISTENTCACHETASK.fields_by_name['piece_length']._serialized_options = b'\372B\0142\n\030\200\200\200 (\200\200\200\002' + _PERSISTENTCACHETASK.fields_by_name['state']._options = None + _PERSISTENTCACHETASK.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001' + _PERSISTENTCACHETASK.fields_by_name['ttl']._options = None + _PERSISTENTCACHETASK.fields_by_name['ttl']._serialized_options = b'\372B\005\252\001\002\010\001' + _PERSISTENTCACHETASK.fields_by_name['created_at']._options = None + _PERSISTENTCACHETASK.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _PERSISTENTCACHETASK.fields_by_name['updated_at']._options = None + _PERSISTENTCACHETASK.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _HOST.fields_by_name['id']._options = None + _HOST.fields_by_name['id']._serialized_options = b'\372B\004r\002\020\001' + _HOST.fields_by_name['type']._options = None + _HOST.fields_by_name['type']._serialized_options = b'\372B\004*\002\030\003' + _HOST.fields_by_name['hostname']._options = None + _HOST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002\020\001' + _HOST.fields_by_name['ip']._options = None + _HOST.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _HOST.fields_by_name['port']._options = None + _HOST.fields_by_name['port']._serialized_options = b'\372B\t\032\007\020\377\377\003(\200\010' + _HOST.fields_by_name['download_port']._options = None + _HOST.fields_by_name['download_port']._serialized_options = b'\372B\t\032\007\020\377\377\003(\200\010' + _CPU.fields_by_name['percent']._options = None + _CPU.fields_by_name['percent']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPU.fields_by_name['process_percent']._options = None + _CPU.fields_by_name['process_percent']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['user']._options = None + _CPUTIMES.fields_by_name['user']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['system']._options = None + _CPUTIMES.fields_by_name['system']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['idle']._options = None + _CPUTIMES.fields_by_name['idle']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['nice']._options = None + _CPUTIMES.fields_by_name['nice']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['iowait']._options = None + _CPUTIMES.fields_by_name['iowait']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['irq']._options = None + _CPUTIMES.fields_by_name['irq']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['softirq']._options = None + _CPUTIMES.fields_by_name['softirq']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['steal']._options = None + _CPUTIMES.fields_by_name['steal']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['guest']._options = None + _CPUTIMES.fields_by_name['guest']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _CPUTIMES.fields_by_name['guest_nice']._options = None + _CPUTIMES.fields_by_name['guest_nice']._serialized_options = b'\372B\013\022\t)\000\000\000\000\000\000\000\000' + _MEMORY.fields_by_name['used_percent']._options = None + _MEMORY.fields_by_name['used_percent']._serialized_options = b'\372B\024\022\022\031\000\000\000\000\000\000Y@)\000\000\000\000\000\000\000\000' + _MEMORY.fields_by_name['process_used_percent']._options = None + _MEMORY.fields_by_name['process_used_percent']._serialized_options = b'\372B\024\022\022\031\000\000\000\000\000\000Y@)\000\000\000\000\000\000\000\000' + _DISK.fields_by_name['used_percent']._options = None + _DISK.fields_by_name['used_percent']._serialized_options = b'\372B\024\022\022\031\000\000\000\000\000\000Y@)\000\000\000\000\000\000\000\000' + _DISK.fields_by_name['inodes_used_percent']._options = None + _DISK.fields_by_name['inodes_used_percent']._serialized_options = b'\372B\024\022\022\031\000\000\000\000\000\000Y@)\000\000\000\000\000\000\000\000' + _DOWNLOAD_REQUESTHEADERENTRY._options = None + _DOWNLOAD_REQUESTHEADERENTRY._serialized_options = b'8\001' + _DOWNLOAD.fields_by_name['url']._options = None + _DOWNLOAD.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _DOWNLOAD.fields_by_name['digest']._options = None + _DOWNLOAD.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _DOWNLOAD.fields_by_name['type']._options = None + _DOWNLOAD.fields_by_name['type']._serialized_options = b'\372B\005\202\001\002\020\001' + _DOWNLOAD.fields_by_name['priority']._options = None + _DOWNLOAD.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _DOWNLOAD.fields_by_name['piece_length']._options = None + _DOWNLOAD.fields_by_name['piece_length']._serialized_options = b'\372B\0162\014\030\200\200\200 (\200\200\200\002@\001' + _DOWNLOAD.fields_by_name['output_path']._options = None + _DOWNLOAD.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOAD.fields_by_name['remote_ip']._options = None + _DOWNLOAD.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _OBJECTSTORAGE.fields_by_name['region']._options = None + _OBJECTSTORAGE.fields_by_name['region']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _OBJECTSTORAGE.fields_by_name['endpoint']._options = None + _OBJECTSTORAGE.fields_by_name['endpoint']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _OBJECTSTORAGE.fields_by_name['access_key_id']._options = None + _OBJECTSTORAGE.fields_by_name['access_key_id']._serialized_options = b'\372B\004r\002\020\001' + _OBJECTSTORAGE.fields_by_name['access_key_secret']._options = None + _OBJECTSTORAGE.fields_by_name['access_key_secret']._serialized_options = b'\372B\004r\002\020\001' + _OBJECTSTORAGE.fields_by_name['session_token']._options = None + _OBJECTSTORAGE.fields_by_name['session_token']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _OBJECTSTORAGE.fields_by_name['credential_path']._options = None + _OBJECTSTORAGE.fields_by_name['credential_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _OBJECTSTORAGE.fields_by_name['predefined_acl']._options = None + _OBJECTSTORAGE.fields_by_name['predefined_acl']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _OBJECTSTORAGE.fields_by_name['security_token']._options = None + _OBJECTSTORAGE.fields_by_name['security_token']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _HDFS.fields_by_name['delegation_token']._options = None + _HDFS.fields_by_name['delegation_token']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _PIECE.fields_by_name['parent_id']._options = None + _PIECE.fields_by_name['parent_id']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _PIECE.fields_by_name['digest']._options = None + _PIECE.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _PIECE.fields_by_name['content']._options = None + _PIECE.fields_by_name['content']._serialized_options = b'\372B\006z\004\020\001p\001' + _PIECE.fields_by_name['cost']._options = None + _PIECE.fields_by_name['cost']._serialized_options = b'\372B\005\252\001\002\010\001' + _PIECE.fields_by_name['created_at']._options = None + _PIECE.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _SIZESCOPE._serialized_start=9207 + _SIZESCOPE._serialized_end=9274 + _TASKTYPE._serialized_start=9276 + _TASKTYPE._serialized_end=9349 + _TRAFFICTYPE._serialized_start=9351 + _TRAFFICTYPE._serialized_end=9417 + _PRIORITY._serialized_start=9419 + _PRIORITY._serialized_end=9513 + _PEER._serialized_start=137 + _PEER._serialized_end=641 + _CACHEPEER._serialized_start=644 + _CACHEPEER._serialized_end=1158 + _PERSISTENTPEER._serialized_start=1161 + _PERSISTENTPEER._serialized_end=1533 + _PERSISTENTCACHEPEER._serialized_start=1536 + _PERSISTENTCACHEPEER._serialized_end=1918 + _TASK._serialized_start=1921 + _TASK._serialized_end=2732 + _TASK_REQUESTHEADERENTRY._serialized_start=2645 + _TASK_REQUESTHEADERENTRY._serialized_end=2697 + _CACHETASK._serialized_start=2735 + _CACHETASK._serialized_end=3556 + _CACHETASK_REQUESTHEADERENTRY._serialized_start=2645 + _CACHETASK_REQUESTHEADERENTRY._serialized_end=2697 + _PERSISTENTTASK._serialized_start=3559 + _PERSISTENTTASK._serialized_end=3947 + _PERSISTENTCACHETASK._serialized_start=3950 + _PERSISTENTCACHETASK._serialized_end=4450 + _HOST._serialized_start=4453 + _HOST._serialized_end=5049 + _CPU._serialized_start=5052 + _CPU._serialized_end=5229 + _CPUTIMES._serialized_start=5232 + _CPUTIMES._serialized_end=5556 + _MEMORY._serialized_start=5559 + _MEMORY._serialized_end=5731 + _NETWORK._serialized_start=5734 + _NETWORK._serialized_end=6104 + _DISK._serialized_start=6107 + _DISK._serialized_end=6370 + _BUILD._serialized_start=6373 + _BUILD._serialized_end=6561 + _DOWNLOAD._serialized_start=6564 + _DOWNLOAD._serialized_end=8069 + _DOWNLOAD_REQUESTHEADERENTRY._serialized_start=2645 + _DOWNLOAD_REQUESTHEADERENTRY._serialized_end=2697 + _OBJECTSTORAGE._serialized_start=8072 + _OBJECTSTORAGE._serialized_end=8597 + _HDFS._serialized_start=8599 + _HDFS._serialized_end=8669 + _RANGE._serialized_start=8671 + _RANGE._serialized_end=8709 + _PIECE._serialized_start=8712 + _PIECE._serialized_end=9205 +# @@protoc_insertion_point(module_scope) diff --git a/python/api/common_pb2_grpc.py b/python/api/common_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/python/api/common_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/python/api/dfdaemon_pb2.py b/python/api/dfdaemon_pb2.py new file mode 100644 index 0000000..5412a05 --- /dev/null +++ b/python/api/dfdaemon_pb2.py @@ -0,0 +1,343 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pkg/apis/dfdaemon/v2/dfdaemon.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from pkg.apis.common.v2 import common_pb2 as pkg_dot_apis_dot_common_dot_v2_dot_common__pb2 +from validate import validate_pb2 as validate_dot_validate__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#pkg/apis/dfdaemon/v2/dfdaemon.proto\x12\x0b\x64\x66\x64\x61\x65mon.v2\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fpkg/apis/common/v2/common.proto\x1a\x17validate/validate.proto\"F\n\x13\x44ownloadTaskRequest\x12/\n\x08\x64ownload\x18\x01 \x01(\x0b\x32\x13.common.v2.DownloadB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"\xaa\x02\n\x1b\x44ownloadTaskStartedResponse\x12\x16\n\x0e\x63ontent_length\x18\x01 \x01(\x04\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x10.common.v2.RangeH\x00\x88\x01\x01\x12U\n\x0fresponse_header\x18\x03 \x03(\x0b\x32<.dfdaemon.v2.DownloadTaskStartedResponse.ResponseHeaderEntry\x12 \n\x06pieces\x18\x04 \x03(\x0b\x32\x10.common.v2.Piece\x12\x13\n\x0bis_finished\x18\x05 \x01(\x08\x1a\x35\n\x13ResponseHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06_range\"J\n\x1d\x44ownloadPieceFinishedResponse\x12)\n\x05piece\x18\x01 \x01(\x0b\x32\x10.common.v2.PieceB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"\xa1\x02\n\x14\x44ownloadTaskResponse\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12R\n\x1e\x64ownload_task_started_response\x18\x04 \x01(\x0b\x32(.dfdaemon.v2.DownloadTaskStartedResponseH\x00\x12V\n download_piece_finished_response\x18\x05 \x01(\x0b\x32*.dfdaemon.v2.DownloadPieceFinishedResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"s\n\x11SyncPiecesRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12*\n\x18interested_piece_numbers\x18\x03 \x03(\rB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"\xc3\x01\n\x12SyncPiecesResponse\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\x0e\n\x06length\x18\x03 \x01(\x04\x12\x13\n\x02ip\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12%\n\x08tcp_port\x18\x05 \x01(\x05\x42\x0e\xfa\x42\x0b\x1a\t\x10\xff\xff\x03(\x80\x08@\x01H\x00\x88\x01\x01\x12&\n\tquic_port\x18\x06 \x01(\x05\x42\x0e\xfa\x42\x0b\x1a\t\x10\xff\xff\x03(\x80\x08@\x01H\x01\x88\x01\x01\x42\x0b\n\t_tcp_portB\x0c\n\n_quic_port\"o\n\x0fStatTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ipJ\x04\x08\x03\x10\x04R\nlocal_only\"b\n\x14StatLocalTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"\x9a\x05\n\x15StatLocalTaskResponse\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\'\n\x0cpiece_length\x18\x02 \x01(\x04\x42\x0c\xfa\x42\t2\x07(\x80\x80\x80\x02@\x01H\x00\x88\x01\x01\x12\x1b\n\x0e\x63ontent_length\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12O\n\x0fresponse_header\x18\x04 \x03(\x0b\x32\x36.dfdaemon.v2.StatLocalTaskResponse.ResponseHeaderEntry\x12\x17\n\x0fuploading_count\x18\x05 \x01(\x04\x12\x16\n\x0euploaded_count\x18\x06 \x01(\x04\x12\x38\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x38\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01\x12\x36\n\rprefetched_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12\x32\n\tfailed_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12\x34\n\x0b\x66inished_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04\x88\x01\x01\x1a\x35\n\x13ResponseHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_piece_lengthB\x11\n\x0f_content_lengthB\x10\n\x0e_prefetched_atB\x0c\n\n_failed_atB\x0e\n\x0c_finished_at\"\xc6\x03\n\x16ListTaskEntriesRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x0b\n\x03url\x18\x02 \x01(\t\x12N\n\x0erequest_header\x18\x03 \x03(\x0b\x32\x36.dfdaemon.v2.ListTaskEntriesRequest.RequestHeaderEntry\x12/\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x88\x01\x01\x12\x19\n\x11\x63\x65rtificate_chain\x18\x05 \x03(\x0c\x12\x35\n\x0eobject_storage\x18\x06 \x01(\x0b\x32\x18.common.v2.ObjectStorageH\x01\x88\x01\x01\x12\"\n\x04hdfs\x18\x07 \x01(\x0b\x32\x0f.common.v2.HDFSH\x02\x88\x01\x01\x12\"\n\tremote_ip\x18\x08 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x03\x88\x01\x01\x1a\x34\n\x12RequestHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08_timeoutB\x11\n\x0f_object_storageB\x07\n\x05_hdfsB\x0c\n\n_remote_ip\"\x98\x02\n\x17ListTaskEntriesResponse\x12\x16\n\x0e\x63ontent_length\x18\x01 \x01(\x04\x12Q\n\x0fresponse_header\x18\x02 \x03(\x0b\x32\x38.dfdaemon.v2.ListTaskEntriesResponse.ResponseHeaderEntry\x12&\n\x0bstatus_code\x18\x03 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xd7\x04(d@\x01H\x00\x88\x01\x01\x12#\n\x07\x65ntries\x18\x04 \x03(\x0b\x32\x12.dfdaemon.v2.Entry\x1a\x35\n\x13ResponseHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0e\n\x0c_status_code\"<\n\x05\x45ntry\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontent_length\x18\x02 \x01(\x04\x12\x0e\n\x06is_dir\x18\x03 \x01(\x08\"_\n\x11\x44\x65leteTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"\xb6\t\n\x18\x44ownloadCacheTaskRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\xa8\x01\n\x06\x64igest\x18\x02 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01H\x00\x88\x01\x01\x12$\n\x05range\x18\x03 \x01(\x0b\x32\x10.common.v2.RangeH\x01\x88\x01\x01\x12+\n\x04type\x18\x04 \x01(\x0e\x32\x13.common.v2.TaskTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x10\n\x03tag\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x03\x88\x01\x01\x12/\n\x08priority\x18\x07 \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x08 \x03(\t\x12P\n\x0erequest_header\x18\t \x03(\x0b\x32\x38.dfdaemon.v2.DownloadCacheTaskRequest.RequestHeaderEntry\x12\'\n\x0cpiece_length\x18\n \x01(\x04\x42\x0c\xfa\x42\t2\x07(\x80\x80\x80\x02@\x01H\x04\x88\x01\x01\x12$\n\x0boutput_path\x18\x0b \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x05\x88\x01\x01\x12/\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationH\x06\x88\x01\x01\x12\x1e\n\x16\x64isable_back_to_source\x18\r \x01(\x08\x12\x1b\n\x13need_back_to_source\x18\x0e \x01(\x08\x12\x19\n\x11\x63\x65rtificate_chain\x18\x0f \x03(\x0c\x12\x10\n\x08prefetch\x18\x10 \x01(\x08\x12\x35\n\x0eobject_storage\x18\x11 \x01(\x0b\x32\x18.common.v2.ObjectStorageH\x07\x88\x01\x01\x12\"\n\x04hdfs\x18\x12 \x01(\x0b\x32\x0f.common.v2.HDFSH\x08\x88\x01\x01\x12\x13\n\x0bis_prefetch\x18\x13 \x01(\x08\x12\x1a\n\x12need_piece_content\x18\x14 \x01(\x08\x12,\n\x1f\x63ontent_for_calculating_task_id\x18\x15 \x01(\tH\t\x88\x01\x01\x12\"\n\tremote_ip\x18\x16 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\n\x88\x01\x01\x12\x11\n\toverwrite\x18\x17 \x01(\x08\x1a\x34\n\x12RequestHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_digestB\x08\n\x06_rangeB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0f\n\r_piece_lengthB\x0e\n\x0c_output_pathB\n\n\x08_timeoutB\x11\n\x0f_object_storageB\x07\n\x05_hdfsB\"\n _content_for_calculating_task_idB\x0c\n\n_remote_ip\"\xb4\x02\n DownloadCacheTaskStartedResponse\x12\x16\n\x0e\x63ontent_length\x18\x01 \x01(\x04\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x10.common.v2.RangeH\x00\x88\x01\x01\x12Z\n\x0fresponse_header\x18\x03 \x03(\x0b\x32\x41.dfdaemon.v2.DownloadCacheTaskStartedResponse.ResponseHeaderEntry\x12 \n\x06pieces\x18\x04 \x03(\x0b\x32\x10.common.v2.Piece\x12\x13\n\x0bis_finished\x18\x05 \x01(\x08\x1a\x35\n\x13ResponseHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06_range\"\xb1\x02\n\x19\x44ownloadCacheTaskResponse\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12]\n$download_cache_task_started_response\x18\x04 \x01(\x0b\x32-.dfdaemon.v2.DownloadCacheTaskStartedResponseH\x00\x12V\n download_piece_finished_response\x18\x05 \x01(\x0b\x32*.dfdaemon.v2.DownloadPieceFinishedResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"~\n\x16SyncCachePiecesRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x30\n\x1einterested_cache_piece_numbers\x18\x03 \x03(\rB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"I\n\x17SyncCachePiecesResponse\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\x0e\n\x06length\x18\x03 \x01(\x04\"e\n\x19\x44ownloadCachePieceRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x14\n\x0cpiece_number\x18\x03 \x01(\r\"\xfd\x01\n\x1a\x44ownloadCachePieceResponse\x12)\n\x05piece\x18\x01 \x01(\x0b\x32\x10.common.v2.PieceB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\xa8\x01\n\x06\x64igest\x18\x02 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01H\x00\x88\x01\x01\x42\t\n\x07_digest\"b\n\x14StatCacheTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"d\n\x16\x44\x65leteCacheTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"\x8c\x03\n\x1d\x44ownloadPersistentTaskRequest\x12\x18\n\x03url\x18\x01 \x01(\tB\x0b\xfa\x42\x08r\x06\x88\x01\x01\xd0\x01\x01\x12\x30\n\x0eobject_storage\x18\x02 \x01(\x0b\x32\x18.common.v2.ObjectStorage\x12\x12\n\npersistent\x18\x03 \x01(\x08\x12$\n\x0boutput_path\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x12/\n\x07timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x01\x88\x01\x01\x12\x1a\n\x12need_piece_content\x18\x06 \x01(\x08\x12\x17\n\x0f\x66orce_hard_link\x18\x07 \x01(\x08\x12\x13\n\x06\x64igest\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\"\n\tremote_ip\x18\t \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x03\x88\x01\x01\x12\x11\n\toverwrite\x18\n \x01(\x08\x42\x0e\n\x0c_output_pathB\n\n\x08_timeoutB\t\n\x07_digestB\x0c\n\n_remote_ip\"?\n%DownloadPersistentTaskStartedResponse\x12\x16\n\x0e\x63ontent_length\x18\x01 \x01(\x04\"\xbb\x02\n\x1e\x44ownloadPersistentTaskResponse\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12g\n)download_persistent_task_started_response\x18\x04 \x01(\x0b\x32\x32.dfdaemon.v2.DownloadPersistentTaskStartedResponseH\x00\x12V\n download_piece_finished_response\x18\x05 \x01(\x0b\x32*.dfdaemon.v2.DownloadPieceFinishedResponseH\x00\x42\n\n\x08response\"\xd2\x02\n\x1bUploadPersistentTaskRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12:\n\x0eobject_storage\x18\x02 \x01(\x0b\x32\x18.common.v2.ObjectStorageB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x15\n\x04path\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12 \n\x18persistent_replica_count\x18\x04 \x01(\x04\x12\x38\n\x03ttl\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x10\xfa\x42\r\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08<\x12/\n\x07timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x88\x01\x01\x12\"\n\tremote_ip\x18\x07 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x01\x88\x01\x01\x42\n\n\x08_timeoutB\x0c\n\n_remote_ip\"}\n\x1bUpdatePersistentTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npersistent\x18\x02 \x01(\x08\x12\"\n\tremote_ip\x18\x03 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"g\n\x19StatPersistentTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"i\n\x1b\x44\x65letePersistentTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"}\n\x1bSyncPersistentPiecesRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12*\n\x18interested_piece_numbers\x18\x03 \x03(\rB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"\xcd\x01\n\x1cSyncPersistentPiecesResponse\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\x0e\n\x06length\x18\x03 \x01(\x04\x12\x13\n\x02ip\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12%\n\x08tcp_port\x18\x05 \x01(\x05\x42\x0e\xfa\x42\x0b\x1a\t\x10\xff\xff\x03(\x80\x08@\x01H\x00\x88\x01\x01\x12&\n\tquic_port\x18\x06 \x01(\x05\x42\x0e\xfa\x42\x0b\x1a\t\x10\xff\xff\x03(\x80\x08@\x01H\x01\x88\x01\x01\x42\x0b\n\t_tcp_portB\x0c\n\n_quic_port\"\xa3\x03\n\"DownloadPersistentCacheTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npersistent\x18\x02 \x01(\x08\x12\x10\n\x03tag\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x04 \x01(\tH\x01\x88\x01\x01\x12$\n\x0boutput_path\x18\x05 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x02\x88\x01\x01\x12/\n\x07timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x03\x88\x01\x01\x12\x1a\n\x12need_piece_content\x18\x07 \x01(\x08\x12\x17\n\x0f\x66orce_hard_link\x18\x08 \x01(\x08\x12\x13\n\x06\x64igest\x18\t \x01(\tH\x04\x88\x01\x01\x12\"\n\tremote_ip\x18\n \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x05\x88\x01\x01\x12\x11\n\toverwrite\x18\x0b \x01(\x08\x42\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0e\n\x0c_output_pathB\n\n\x08_timeoutB\t\n\x07_digestB\x0c\n\n_remote_ip\"D\n*DownloadPersistentCacheTaskStartedResponse\x12\x16\n\x0e\x63ontent_length\x18\x01 \x01(\x04\"\xd0\x02\n#DownloadPersistentCacheTaskResponse\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12r\n/download_persistent_cache_task_started_response\x18\x04 \x01(\x0b\x32\x37.dfdaemon.v2.DownloadPersistentCacheTaskStartedResponseH\x00\x12V\n download_piece_finished_response\x18\x05 \x01(\x0b\x32*.dfdaemon.v2.DownloadPieceFinishedResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"\xdf\x03\n UploadPersistentCacheTaskRequest\x12,\n\x1f\x63ontent_for_calculating_task_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x04path\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12+\n\x18persistent_replica_count\x18\x03 \x01(\x04\x42\t\xfa\x42\x06\x32\x04\x18\x05(\x01\x12\x10\n\x03tag\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\'\n\x0cpiece_length\x18\x06 \x01(\x04\x42\x0c\xfa\x42\t2\x07(\x80\x80\x80\x02@\x01H\x03\x88\x01\x01\x12\x38\n\x03ttl\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x10\xfa\x42\r\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08<\x12/\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x04\x88\x01\x01\x12\"\n\tremote_ip\x18\t \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x05\x88\x01\x01\x42\"\n _content_for_calculating_task_idB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0f\n\r_piece_lengthB\n\n\x08_timeoutB\x0c\n\n_remote_ip\"\x82\x01\n UpdatePersistentCacheTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x12\n\npersistent\x18\x02 \x01(\x08\x12\"\n\tremote_ip\x18\x03 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"l\n\x1eStatPersistentCacheTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"n\n DeletePersistentCacheTaskRequest\x12\x18\n\x07task_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\tremote_ip\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0c\n\n_remote_ip\"\x82\x01\n SyncPersistentCachePiecesRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12*\n\x18interested_piece_numbers\x18\x03 \x03(\rB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"\xd2\x01\n!SyncPersistentCachePiecesResponse\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\x0e\n\x06length\x18\x03 \x01(\x04\x12\x13\n\x02ip\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12%\n\x08tcp_port\x18\x05 \x01(\x05\x42\x0e\xfa\x42\x0b\x1a\t\x10\xff\xff\x03(\x80\x08@\x01H\x00\x88\x01\x01\x12&\n\tquic_port\x18\x06 \x01(\x05\x42\x0e\xfa\x42\x0b\x1a\t\x10\xff\xff\x03(\x80\x08@\x01H\x01\x88\x01\x01\x42\x0b\n\t_tcp_portB\x0c\n\n_quic_port\"E\n\x0fSyncHostRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"J\n\x18IBVerbsQueuePairEndpoint\x12\x0b\n\x03num\x18\x01 \x01(\r\x12\x0b\n\x03lid\x18\x02 \x01(\r\x12\x14\n\x03gid\x18\x03 \x01(\x0c\x42\x07\xfa\x42\x04z\x02h\x10\"l\n\'ExchangeIBVerbsQueuePairEndpointRequest\x12\x41\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32%.dfdaemon.v2.IBVerbsQueuePairEndpointB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"m\n(ExchangeIBVerbsQueuePairEndpointResponse\x12\x41\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32%.dfdaemon.v2.IBVerbsQueuePairEndpointB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x32\xa9\x11\n\x0e\x44\x66\x64\x61\x65monUpload\x12U\n\x0c\x44ownloadTask\x12 .dfdaemon.v2.DownloadTaskRequest\x1a!.dfdaemon.v2.DownloadTaskResponse0\x01\x12\x39\n\x08StatTask\x12\x1c.dfdaemon.v2.StatTaskRequest\x1a\x0f.common.v2.Task\x12V\n\rStatLocalTask\x12!.dfdaemon.v2.StatLocalTaskRequest\x1a\".dfdaemon.v2.StatLocalTaskResponse\x12\\\n\x0fListTaskEntries\x12#.dfdaemon.v2.ListTaskEntriesRequest\x1a$.dfdaemon.v2.ListTaskEntriesResponse\x12\x44\n\nDeleteTask\x12\x1e.dfdaemon.v2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\x12O\n\nSyncPieces\x12\x1e.dfdaemon.v2.SyncPiecesRequest\x1a\x1f.dfdaemon.v2.SyncPiecesResponse0\x01\x12\x64\n\x11\x44ownloadCacheTask\x12%.dfdaemon.v2.DownloadCacheTaskRequest\x1a&.dfdaemon.v2.DownloadCacheTaskResponse0\x01\x12H\n\rStatCacheTask\x12!.dfdaemon.v2.StatCacheTaskRequest\x1a\x14.common.v2.CacheTask\x12N\n\x0f\x44\x65leteCacheTask\x12#.dfdaemon.v2.DeleteCacheTaskRequest\x1a\x16.google.protobuf.Empty\x12^\n\x0fSyncCachePieces\x12#.dfdaemon.v2.SyncCachePiecesRequest\x1a$.dfdaemon.v2.SyncCachePiecesResponse0\x01\x12\x65\n\x12\x44ownloadCachePiece\x12&.dfdaemon.v2.DownloadCachePieceRequest\x1a\'.dfdaemon.v2.DownloadCachePieceResponse\x12s\n\x16\x44ownloadPersistentTask\x12*.dfdaemon.v2.DownloadPersistentTaskRequest\x1a+.dfdaemon.v2.DownloadPersistentTaskResponse0\x01\x12m\n\x14SyncPersistentPieces\x12(.dfdaemon.v2.SyncPersistentPiecesRequest\x1a).dfdaemon.v2.SyncPersistentPiecesResponse0\x01\x12X\n\x14UpdatePersistentTask\x12(.dfdaemon.v2.UpdatePersistentTaskRequest\x1a\x16.google.protobuf.Empty\x12W\n\x12StatPersistentTask\x12&.dfdaemon.v2.StatPersistentTaskRequest\x1a\x19.common.v2.PersistentTask\x12X\n\x14\x44\x65letePersistentTask\x12(.dfdaemon.v2.DeletePersistentTaskRequest\x1a\x16.google.protobuf.Empty\x12\x82\x01\n\x1b\x44ownloadPersistentCacheTask\x12/.dfdaemon.v2.DownloadPersistentCacheTaskRequest\x1a\x30.dfdaemon.v2.DownloadPersistentCacheTaskResponse0\x01\x12\x62\n\x19UpdatePersistentCacheTask\x12-.dfdaemon.v2.UpdatePersistentCacheTaskRequest\x1a\x16.google.protobuf.Empty\x12\x66\n\x17StatPersistentCacheTask\x12+.dfdaemon.v2.StatPersistentCacheTaskRequest\x1a\x1e.common.v2.PersistentCacheTask\x12\x62\n\x19\x44\x65letePersistentCacheTask\x12-.dfdaemon.v2.DeletePersistentCacheTaskRequest\x1a\x16.google.protobuf.Empty\x12|\n\x19SyncPersistentCachePieces\x12-.dfdaemon.v2.SyncPersistentCachePiecesRequest\x1a..dfdaemon.v2.SyncPersistentCachePiecesResponse0\x01\x12;\n\x08SyncHost\x12\x1c.dfdaemon.v2.SyncHostRequest\x1a\x0f.common.v2.Host0\x01\x12\x8f\x01\n ExchangeIBVerbsQueuePairEndpoint\x12\x34.dfdaemon.v2.ExchangeIBVerbsQueuePairEndpointRequest\x1a\x35.dfdaemon.v2.ExchangeIBVerbsQueuePairEndpointResponse2\x89\n\n\x10\x44\x66\x64\x61\x65monDownload\x12U\n\x0c\x44ownloadTask\x12 .dfdaemon.v2.DownloadTaskRequest\x1a!.dfdaemon.v2.DownloadTaskResponse0\x01\x12\x39\n\x08StatTask\x12\x1c.dfdaemon.v2.StatTaskRequest\x1a\x0f.common.v2.Task\x12V\n\rStatLocalTask\x12!.dfdaemon.v2.StatLocalTaskRequest\x1a\".dfdaemon.v2.StatLocalTaskResponse\x12\\\n\x0fListTaskEntries\x12#.dfdaemon.v2.ListTaskEntriesRequest\x1a$.dfdaemon.v2.ListTaskEntriesResponse\x12\x44\n\nDeleteTask\x12\x1e.dfdaemon.v2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\x12<\n\nDeleteHost\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12\x64\n\x11\x44ownloadCacheTask\x12%.dfdaemon.v2.DownloadCacheTaskRequest\x1a&.dfdaemon.v2.DownloadCacheTaskResponse0\x01\x12H\n\rStatCacheTask\x12!.dfdaemon.v2.StatCacheTaskRequest\x1a\x14.common.v2.CacheTask\x12N\n\x0f\x44\x65leteCacheTask\x12#.dfdaemon.v2.DeleteCacheTaskRequest\x1a\x16.google.protobuf.Empty\x12s\n\x16\x44ownloadPersistentTask\x12*.dfdaemon.v2.DownloadPersistentTaskRequest\x1a+.dfdaemon.v2.DownloadPersistentTaskResponse0\x01\x12[\n\x14UploadPersistentTask\x12(.dfdaemon.v2.UploadPersistentTaskRequest\x1a\x19.common.v2.PersistentTask\x12\x82\x01\n\x1b\x44ownloadPersistentCacheTask\x12/.dfdaemon.v2.DownloadPersistentCacheTaskRequest\x1a\x30.dfdaemon.v2.DownloadPersistentCacheTaskResponse0\x01\x12j\n\x19UploadPersistentCacheTask\x12-.dfdaemon.v2.UploadPersistentCacheTaskRequest\x1a\x1e.common.v2.PersistentCacheTask\x12\x66\n\x17StatPersistentCacheTask\x12+.dfdaemon.v2.StatPersistentCacheTaskRequest\x1a\x1e.common.v2.PersistentCacheTaskB-Z+d7y.io/api/v2/pkg/apis/dfdaemon/v2;dfdaemonb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pkg.apis.dfdaemon.v2.dfdaemon_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+d7y.io/api/v2/pkg/apis/dfdaemon/v2;dfdaemon' + _DOWNLOADTASKREQUEST.fields_by_name['download']._options = None + _DOWNLOADTASKREQUEST.fields_by_name['download']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADTASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._options = None + _DOWNLOADTASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._serialized_options = b'8\001' + _DOWNLOADPIECEFINISHEDRESPONSE.fields_by_name['piece']._options = None + _DOWNLOADPIECEFINISHEDRESPONSE.fields_by_name['piece']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADTASKRESPONSE.oneofs_by_name['response']._options = None + _DOWNLOADTASKRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _DOWNLOADTASKRESPONSE.fields_by_name['host_id']._options = None + _DOWNLOADTASKRESPONSE.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADTASKRESPONSE.fields_by_name['task_id']._options = None + _DOWNLOADTASKRESPONSE.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADTASKRESPONSE.fields_by_name['peer_id']._options = None + _DOWNLOADTASKRESPONSE.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPIECESREQUEST.fields_by_name['host_id']._options = None + _SYNCPIECESREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPIECESREQUEST.fields_by_name['task_id']._options = None + _SYNCPIECESREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPIECESREQUEST.fields_by_name['interested_piece_numbers']._options = None + _SYNCPIECESREQUEST.fields_by_name['interested_piece_numbers']._serialized_options = b'\372B\005\222\001\002\010\001' + _SYNCPIECESRESPONSE.fields_by_name['ip']._options = None + _SYNCPIECESRESPONSE.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _SYNCPIECESRESPONSE.fields_by_name['tcp_port']._options = None + _SYNCPIECESRESPONSE.fields_by_name['tcp_port']._serialized_options = b'\372B\013\032\t\020\377\377\003(\200\010@\001' + _SYNCPIECESRESPONSE.fields_by_name['quic_port']._options = None + _SYNCPIECESRESPONSE.fields_by_name['quic_port']._serialized_options = b'\372B\013\032\t\020\377\377\003(\200\010@\001' + _STATTASKREQUEST.fields_by_name['task_id']._options = None + _STATTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATTASKREQUEST.fields_by_name['remote_ip']._options = None + _STATTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _STATLOCALTASKREQUEST.fields_by_name['task_id']._options = None + _STATLOCALTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATLOCALTASKREQUEST.fields_by_name['remote_ip']._options = None + _STATLOCALTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _STATLOCALTASKRESPONSE_RESPONSEHEADERENTRY._options = None + _STATLOCALTASKRESPONSE_RESPONSEHEADERENTRY._serialized_options = b'8\001' + _STATLOCALTASKRESPONSE.fields_by_name['task_id']._options = None + _STATLOCALTASKRESPONSE.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATLOCALTASKRESPONSE.fields_by_name['piece_length']._options = None + _STATLOCALTASKRESPONSE.fields_by_name['piece_length']._serialized_options = b'\372B\t2\007(\200\200\200\002@\001' + _STATLOCALTASKRESPONSE.fields_by_name['created_at']._options = None + _STATLOCALTASKRESPONSE.fields_by_name['created_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _STATLOCALTASKRESPONSE.fields_by_name['updated_at']._options = None + _STATLOCALTASKRESPONSE.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001' + _LISTTASKENTRIESREQUEST_REQUESTHEADERENTRY._options = None + _LISTTASKENTRIESREQUEST_REQUESTHEADERENTRY._serialized_options = b'8\001' + _LISTTASKENTRIESREQUEST.fields_by_name['task_id']._options = None + _LISTTASKENTRIESREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _LISTTASKENTRIESREQUEST.fields_by_name['remote_ip']._options = None + _LISTTASKENTRIESREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _LISTTASKENTRIESRESPONSE_RESPONSEHEADERENTRY._options = None + _LISTTASKENTRIESRESPONSE_RESPONSEHEADERENTRY._serialized_options = b'8\001' + _LISTTASKENTRIESRESPONSE.fields_by_name['status_code']._options = None + _LISTTASKENTRIESRESPONSE.fields_by_name['status_code']._serialized_options = b'\372B\t\032\007\020\327\004(d@\001' + _DELETETASKREQUEST.fields_by_name['task_id']._options = None + _DELETETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETETASKREQUEST.fields_by_name['remote_ip']._options = None + _DELETETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DOWNLOADCACHETASKREQUEST_REQUESTHEADERENTRY._options = None + _DOWNLOADCACHETASKREQUEST_REQUESTHEADERENTRY._serialized_options = b'8\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['url']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['digest']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['type']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['type']._serialized_options = b'\372B\005\202\001\002\020\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['priority']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['piece_length']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\t2\007(\200\200\200\002@\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['output_path']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _DOWNLOADCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DOWNLOADCACHETASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._options = None + _DOWNLOADCACHETASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._serialized_options = b'8\001' + _DOWNLOADCACHETASKRESPONSE.oneofs_by_name['response']._options = None + _DOWNLOADCACHETASKRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _DOWNLOADCACHETASKRESPONSE.fields_by_name['host_id']._options = None + _DOWNLOADCACHETASKRESPONSE.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADCACHETASKRESPONSE.fields_by_name['task_id']._options = None + _DOWNLOADCACHETASKRESPONSE.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADCACHETASKRESPONSE.fields_by_name['peer_id']._options = None + _DOWNLOADCACHETASKRESPONSE.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCCACHEPIECESREQUEST.fields_by_name['host_id']._options = None + _SYNCCACHEPIECESREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCCACHEPIECESREQUEST.fields_by_name['task_id']._options = None + _SYNCCACHEPIECESREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCCACHEPIECESREQUEST.fields_by_name['interested_cache_piece_numbers']._options = None + _SYNCCACHEPIECESREQUEST.fields_by_name['interested_cache_piece_numbers']._serialized_options = b'\372B\005\222\001\002\010\001' + _DOWNLOADCACHEPIECEREQUEST.fields_by_name['host_id']._options = None + _DOWNLOADCACHEPIECEREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADCACHEPIECEREQUEST.fields_by_name['task_id']._options = None + _DOWNLOADCACHEPIECEREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADCACHEPIECERESPONSE.fields_by_name['piece']._options = None + _DOWNLOADCACHEPIECERESPONSE.fields_by_name['piece']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADCACHEPIECERESPONSE.fields_by_name['digest']._options = None + _DOWNLOADCACHEPIECERESPONSE.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _STATCACHETASKREQUEST.fields_by_name['task_id']._options = None + _STATCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _STATCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DELETECACHETASKREQUEST.fields_by_name['task_id']._options = None + _DELETECACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETECACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _DELETECACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DOWNLOADPERSISTENTTASKREQUEST.fields_by_name['url']._options = None + _DOWNLOADPERSISTENTTASKREQUEST.fields_by_name['url']._serialized_options = b'\372B\010r\006\210\001\001\320\001\001' + _DOWNLOADPERSISTENTTASKREQUEST.fields_by_name['output_path']._options = None + _DOWNLOADPERSISTENTTASKREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._options = None + _DOWNLOADPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DOWNLOADPERSISTENTTASKRESPONSE.fields_by_name['host_id']._options = None + _DOWNLOADPERSISTENTTASKRESPONSE.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADPERSISTENTTASKRESPONSE.fields_by_name['task_id']._options = None + _DOWNLOADPERSISTENTTASKRESPONSE.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADPERSISTENTTASKRESPONSE.fields_by_name['peer_id']._options = None + _DOWNLOADPERSISTENTTASKRESPONSE.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['url']._options = None + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['object_storage']._options = None + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['object_storage']._serialized_options = b'\372B\005\212\001\002\020\001' + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['path']._options = None + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['path']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['ttl']._options = None + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['ttl']._serialized_options = b'\372B\r\252\001\n\"\004\010\200\365$2\002\010<' + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._options = None + _UPLOADPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _UPDATEPERSISTENTTASKREQUEST.fields_by_name['task_id']._options = None + _UPDATEPERSISTENTTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPDATEPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._options = None + _UPDATEPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _STATPERSISTENTTASKREQUEST.fields_by_name['task_id']._options = None + _STATPERSISTENTTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._options = None + _STATPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DELETEPERSISTENTTASKREQUEST.fields_by_name['task_id']._options = None + _DELETEPERSISTENTTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._options = None + _DELETEPERSISTENTTASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _SYNCPERSISTENTPIECESREQUEST.fields_by_name['host_id']._options = None + _SYNCPERSISTENTPIECESREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPERSISTENTPIECESREQUEST.fields_by_name['task_id']._options = None + _SYNCPERSISTENTPIECESREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPERSISTENTPIECESREQUEST.fields_by_name['interested_piece_numbers']._options = None + _SYNCPERSISTENTPIECESREQUEST.fields_by_name['interested_piece_numbers']._serialized_options = b'\372B\005\222\001\002\010\001' + _SYNCPERSISTENTPIECESRESPONSE.fields_by_name['ip']._options = None + _SYNCPERSISTENTPIECESRESPONSE.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _SYNCPERSISTENTPIECESRESPONSE.fields_by_name['tcp_port']._options = None + _SYNCPERSISTENTPIECESRESPONSE.fields_by_name['tcp_port']._serialized_options = b'\372B\013\032\t\020\377\377\003(\200\010@\001' + _SYNCPERSISTENTPIECESRESPONSE.fields_by_name['quic_port']._options = None + _SYNCPERSISTENTPIECESRESPONSE.fields_by_name['quic_port']._serialized_options = b'\372B\013\032\t\020\377\377\003(\200\010@\001' + _DOWNLOADPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._options = None + _DOWNLOADPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADPERSISTENTCACHETASKREQUEST.fields_by_name['output_path']._options = None + _DOWNLOADPERSISTENTCACHETASKREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _DOWNLOADPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DOWNLOADPERSISTENTCACHETASKRESPONSE.oneofs_by_name['response']._options = None + _DOWNLOADPERSISTENTCACHETASKRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _DOWNLOADPERSISTENTCACHETASKRESPONSE.fields_by_name['host_id']._options = None + _DOWNLOADPERSISTENTCACHETASKRESPONSE.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADPERSISTENTCACHETASKRESPONSE.fields_by_name['task_id']._options = None + _DOWNLOADPERSISTENTCACHETASKRESPONSE.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADPERSISTENTCACHETASKRESPONSE.fields_by_name['peer_id']._options = None + _DOWNLOADPERSISTENTCACHETASKRESPONSE.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['path']._options = None + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['path']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['persistent_replica_count']._options = None + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['persistent_replica_count']._serialized_options = b'\372B\0062\004\030\005(\001' + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['piece_length']._options = None + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\t2\007(\200\200\200\002@\001' + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['ttl']._options = None + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['ttl']._serialized_options = b'\372B\r\252\001\n\"\004\010\200\365$2\002\010<' + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _UPLOADPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _UPDATEPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._options = None + _UPDATEPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPDATEPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _UPDATEPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._options = None + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._options = None + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._options = None + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _SYNCPERSISTENTCACHEPIECESREQUEST.fields_by_name['host_id']._options = None + _SYNCPERSISTENTCACHEPIECESREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPERSISTENTCACHEPIECESREQUEST.fields_by_name['task_id']._options = None + _SYNCPERSISTENTCACHEPIECESREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCPERSISTENTCACHEPIECESREQUEST.fields_by_name['interested_piece_numbers']._options = None + _SYNCPERSISTENTCACHEPIECESREQUEST.fields_by_name['interested_piece_numbers']._serialized_options = b'\372B\005\222\001\002\010\001' + _SYNCPERSISTENTCACHEPIECESRESPONSE.fields_by_name['ip']._options = None + _SYNCPERSISTENTCACHEPIECESRESPONSE.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _SYNCPERSISTENTCACHEPIECESRESPONSE.fields_by_name['tcp_port']._options = None + _SYNCPERSISTENTCACHEPIECESRESPONSE.fields_by_name['tcp_port']._serialized_options = b'\372B\013\032\t\020\377\377\003(\200\010@\001' + _SYNCPERSISTENTCACHEPIECESRESPONSE.fields_by_name['quic_port']._options = None + _SYNCPERSISTENTCACHEPIECESRESPONSE.fields_by_name['quic_port']._serialized_options = b'\372B\013\032\t\020\377\377\003(\200\010@\001' + _SYNCHOSTREQUEST.fields_by_name['host_id']._options = None + _SYNCHOSTREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _SYNCHOSTREQUEST.fields_by_name['peer_id']._options = None + _SYNCHOSTREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _IBVERBSQUEUEPAIRENDPOINT.fields_by_name['gid']._options = None + _IBVERBSQUEUEPAIRENDPOINT.fields_by_name['gid']._serialized_options = b'\372B\004z\002h\020' + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTREQUEST.fields_by_name['endpoint']._options = None + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTREQUEST.fields_by_name['endpoint']._serialized_options = b'\372B\005\212\001\002\020\001' + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTRESPONSE.fields_by_name['endpoint']._options = None + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTRESPONSE.fields_by_name['endpoint']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADTASKREQUEST._serialized_start=204 + _DOWNLOADTASKREQUEST._serialized_end=274 + _DOWNLOADTASKSTARTEDRESPONSE._serialized_start=277 + _DOWNLOADTASKSTARTEDRESPONSE._serialized_end=575 + _DOWNLOADTASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._serialized_start=512 + _DOWNLOADTASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._serialized_end=565 + _DOWNLOADPIECEFINISHEDRESPONSE._serialized_start=577 + _DOWNLOADPIECEFINISHEDRESPONSE._serialized_end=651 + _DOWNLOADTASKRESPONSE._serialized_start=654 + _DOWNLOADTASKRESPONSE._serialized_end=943 + _SYNCPIECESREQUEST._serialized_start=945 + _SYNCPIECESREQUEST._serialized_end=1060 + _SYNCPIECESRESPONSE._serialized_start=1063 + _SYNCPIECESRESPONSE._serialized_end=1258 + _STATTASKREQUEST._serialized_start=1260 + _STATTASKREQUEST._serialized_end=1371 + _STATLOCALTASKREQUEST._serialized_start=1373 + _STATLOCALTASKREQUEST._serialized_end=1471 + _STATLOCALTASKRESPONSE._serialized_start=1474 + _STATLOCALTASKRESPONSE._serialized_end=2140 + _STATLOCALTASKRESPONSE_RESPONSEHEADERENTRY._serialized_start=512 + _STATLOCALTASKRESPONSE_RESPONSEHEADERENTRY._serialized_end=565 + _LISTTASKENTRIESREQUEST._serialized_start=2143 + _LISTTASKENTRIESREQUEST._serialized_end=2597 + _LISTTASKENTRIESREQUEST_REQUESTHEADERENTRY._serialized_start=2491 + _LISTTASKENTRIESREQUEST_REQUESTHEADERENTRY._serialized_end=2543 + _LISTTASKENTRIESRESPONSE._serialized_start=2600 + _LISTTASKENTRIESRESPONSE._serialized_end=2880 + _LISTTASKENTRIESRESPONSE_RESPONSEHEADERENTRY._serialized_start=512 + _LISTTASKENTRIESRESPONSE_RESPONSEHEADERENTRY._serialized_end=565 + _ENTRY._serialized_start=2882 + _ENTRY._serialized_end=2942 + _DELETETASKREQUEST._serialized_start=2944 + _DELETETASKREQUEST._serialized_end=3039 + _DOWNLOADCACHETASKREQUEST._serialized_start=3042 + _DOWNLOADCACHETASKREQUEST._serialized_end=4248 + _DOWNLOADCACHETASKREQUEST_REQUESTHEADERENTRY._serialized_start=2491 + _DOWNLOADCACHETASKREQUEST_REQUESTHEADERENTRY._serialized_end=2543 + _DOWNLOADCACHETASKSTARTEDRESPONSE._serialized_start=4251 + _DOWNLOADCACHETASKSTARTEDRESPONSE._serialized_end=4559 + _DOWNLOADCACHETASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._serialized_start=512 + _DOWNLOADCACHETASKSTARTEDRESPONSE_RESPONSEHEADERENTRY._serialized_end=565 + _DOWNLOADCACHETASKRESPONSE._serialized_start=4562 + _DOWNLOADCACHETASKRESPONSE._serialized_end=4867 + _SYNCCACHEPIECESREQUEST._serialized_start=4869 + _SYNCCACHEPIECESREQUEST._serialized_end=4995 + _SYNCCACHEPIECESRESPONSE._serialized_start=4997 + _SYNCCACHEPIECESRESPONSE._serialized_end=5070 + _DOWNLOADCACHEPIECEREQUEST._serialized_start=5072 + _DOWNLOADCACHEPIECEREQUEST._serialized_end=5173 + _DOWNLOADCACHEPIECERESPONSE._serialized_start=5176 + _DOWNLOADCACHEPIECERESPONSE._serialized_end=5429 + _STATCACHETASKREQUEST._serialized_start=5431 + _STATCACHETASKREQUEST._serialized_end=5529 + _DELETECACHETASKREQUEST._serialized_start=5531 + _DELETECACHETASKREQUEST._serialized_end=5631 + _DOWNLOADPERSISTENTTASKREQUEST._serialized_start=5634 + _DOWNLOADPERSISTENTTASKREQUEST._serialized_end=6030 + _DOWNLOADPERSISTENTTASKSTARTEDRESPONSE._serialized_start=6032 + _DOWNLOADPERSISTENTTASKSTARTEDRESPONSE._serialized_end=6095 + _DOWNLOADPERSISTENTTASKRESPONSE._serialized_start=6098 + _DOWNLOADPERSISTENTTASKRESPONSE._serialized_end=6413 + _UPLOADPERSISTENTTASKREQUEST._serialized_start=6416 + _UPLOADPERSISTENTTASKREQUEST._serialized_end=6754 + _UPDATEPERSISTENTTASKREQUEST._serialized_start=6756 + _UPDATEPERSISTENTTASKREQUEST._serialized_end=6881 + _STATPERSISTENTTASKREQUEST._serialized_start=6883 + _STATPERSISTENTTASKREQUEST._serialized_end=6986 + _DELETEPERSISTENTTASKREQUEST._serialized_start=6988 + _DELETEPERSISTENTTASKREQUEST._serialized_end=7093 + _SYNCPERSISTENTPIECESREQUEST._serialized_start=7095 + _SYNCPERSISTENTPIECESREQUEST._serialized_end=7220 + _SYNCPERSISTENTPIECESRESPONSE._serialized_start=7223 + _SYNCPERSISTENTPIECESRESPONSE._serialized_end=7428 + _DOWNLOADPERSISTENTCACHETASKREQUEST._serialized_start=7431 + _DOWNLOADPERSISTENTCACHETASKREQUEST._serialized_end=7850 + _DOWNLOADPERSISTENTCACHETASKSTARTEDRESPONSE._serialized_start=7852 + _DOWNLOADPERSISTENTCACHETASKSTARTEDRESPONSE._serialized_end=7920 + _DOWNLOADPERSISTENTCACHETASKRESPONSE._serialized_start=7923 + _DOWNLOADPERSISTENTCACHETASKRESPONSE._serialized_end=8259 + _UPLOADPERSISTENTCACHETASKREQUEST._serialized_start=8262 + _UPLOADPERSISTENTCACHETASKREQUEST._serialized_end=8741 + _UPDATEPERSISTENTCACHETASKREQUEST._serialized_start=8744 + _UPDATEPERSISTENTCACHETASKREQUEST._serialized_end=8874 + _STATPERSISTENTCACHETASKREQUEST._serialized_start=8876 + _STATPERSISTENTCACHETASKREQUEST._serialized_end=8984 + _DELETEPERSISTENTCACHETASKREQUEST._serialized_start=8986 + _DELETEPERSISTENTCACHETASKREQUEST._serialized_end=9096 + _SYNCPERSISTENTCACHEPIECESREQUEST._serialized_start=9099 + _SYNCPERSISTENTCACHEPIECESREQUEST._serialized_end=9229 + _SYNCPERSISTENTCACHEPIECESRESPONSE._serialized_start=9232 + _SYNCPERSISTENTCACHEPIECESRESPONSE._serialized_end=9442 + _SYNCHOSTREQUEST._serialized_start=9444 + _SYNCHOSTREQUEST._serialized_end=9513 + _IBVERBSQUEUEPAIRENDPOINT._serialized_start=9515 + _IBVERBSQUEUEPAIRENDPOINT._serialized_end=9589 + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTREQUEST._serialized_start=9591 + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTREQUEST._serialized_end=9699 + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTRESPONSE._serialized_start=9701 + _EXCHANGEIBVERBSQUEUEPAIRENDPOINTRESPONSE._serialized_end=9810 + _DFDAEMONUPLOAD._serialized_start=9813 + _DFDAEMONUPLOAD._serialized_end=12030 + _DFDAEMONDOWNLOAD._serialized_start=12033 + _DFDAEMONDOWNLOAD._serialized_end=13322 +# @@protoc_insertion_point(module_scope) diff --git a/python/api/dfdaemon_pb2_grpc.py b/python/api/dfdaemon_pb2_grpc.py new file mode 100644 index 0000000..4e6b1fb --- /dev/null +++ b/python/api/dfdaemon_pb2_grpc.py @@ -0,0 +1,1327 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from pkg.apis.common.v2 import common_pb2 as pkg_dot_apis_dot_common_dot_v2_dot_common__pb2 +from pkg.apis.dfdaemon.v2 import dfdaemon_pb2 as pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2 + + +class DfdaemonUploadStub(object): + """DfdaemonUpload represents dfdaemon upload service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.DownloadTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/DownloadTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskResponse.FromString, + ) + self.StatTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/StatTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.FromString, + ) + self.StatLocalTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/StatLocalTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskResponse.FromString, + ) + self.ListTaskEntries = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/ListTaskEntries', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesResponse.FromString, + ) + self.DeleteTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/DeleteTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.SyncPieces = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/SyncPieces', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPiecesRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPiecesResponse.FromString, + ) + self.DownloadCacheTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/DownloadCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskResponse.FromString, + ) + self.StatCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/StatCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.FromString, + ) + self.DeleteCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/DeleteCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteCacheTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.SyncCachePieces = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/SyncCachePieces', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncCachePiecesRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncCachePiecesResponse.FromString, + ) + self.DownloadCachePiece = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/DownloadCachePiece', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCachePieceRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCachePieceResponse.FromString, + ) + self.DownloadPersistentTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/DownloadPersistentTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskResponse.FromString, + ) + self.SyncPersistentPieces = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/SyncPersistentPieces', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentPiecesRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentPiecesResponse.FromString, + ) + self.UpdatePersistentTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/UpdatePersistentTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UpdatePersistentTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatPersistentTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/StatPersistentTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + ) + self.DeletePersistentTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/DeletePersistentTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeletePersistentTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.DownloadPersistentCacheTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/DownloadPersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskResponse.FromString, + ) + self.UpdatePersistentCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/UpdatePersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UpdatePersistentCacheTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatPersistentCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/StatPersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + ) + self.DeletePersistentCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/DeletePersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeletePersistentCacheTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.SyncPersistentCachePieces = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/SyncPersistentCachePieces', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentCachePiecesRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentCachePiecesResponse.FromString, + ) + self.SyncHost = channel.unary_stream( + '/dfdaemon.v2.DfdaemonUpload/SyncHost', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncHostRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Host.FromString, + ) + self.ExchangeIBVerbsQueuePairEndpoint = channel.unary_unary( + '/dfdaemon.v2.DfdaemonUpload/ExchangeIBVerbsQueuePairEndpoint', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ExchangeIBVerbsQueuePairEndpointRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ExchangeIBVerbsQueuePairEndpointResponse.FromString, + ) + + +class DfdaemonUploadServicer(object): + """DfdaemonUpload represents dfdaemon upload service. + """ + + def DownloadTask(self, request, context): + """DownloadTask downloads task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatTask(self, request, context): + """StatTask stats task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatLocalTask(self, request, context): + """StatLocalTask stats local task information from peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTaskEntries(self, request, context): + """ListTaskEntries lists task entries for downloading directory. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteTask(self, request, context): + """DeleteTask deletes task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SyncPieces(self, request, context): + """SyncPieces syncs piece metadatas from remote peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadCacheTask(self, request, context): + """DownloadCacheTask downloads cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatCacheTask(self, request, context): + """StatCacheTask stats cache task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteCacheTask(self, request, context): + """DeleteCacheTask deletes cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SyncCachePieces(self, request, context): + """SyncCachePieces syncs cache piece metadatas from remote peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadCachePiece(self, request, context): + """DownloadCachePiece downloads cache piece from the remote peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadPersistentTask(self, request, context): + """DownloadPersistentTask downloads persistent task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SyncPersistentPieces(self, request, context): + """SyncPersistentPieces syncs persistent pieces from remote peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdatePersistentTask(self, request, context): + """UpdatePersistentTask updates metadate of thr persistent task in p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentTask(self, request, context): + """StatPersistentTask stats persistent task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePersistentTask(self, request, context): + """DeletePersistentTask deletes persistent task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadPersistentCacheTask(self, request, context): + """DownloadPersistentCacheTask downloads persistent cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdatePersistentCacheTask(self, request, context): + """UpdatePersistentCacheTask updates metadate of thr persistent cache task in p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentCacheTask(self, request, context): + """StatPersistentCacheTask stats persistent cache task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePersistentCacheTask(self, request, context): + """DeletePersistentCacheTask deletes persistent cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SyncPersistentCachePieces(self, request, context): + """SyncPersistentCachePieces syncs persistent cache pieces from remote peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SyncHost(self, request, context): + """SyncHost sync host info from parents. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExchangeIBVerbsQueuePairEndpoint(self, request, context): + """ExchangeIBVerbsQueuePairEndpoint exchanges queue pair endpoint of IBVerbs with remote peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DfdaemonUploadServicer_to_server(servicer, server): + rpc_method_handlers = { + 'DownloadTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskResponse.SerializeToString, + ), + 'StatTask': grpc.unary_unary_rpc_method_handler( + servicer.StatTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.SerializeToString, + ), + 'StatLocalTask': grpc.unary_unary_rpc_method_handler( + servicer.StatLocalTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskResponse.SerializeToString, + ), + 'ListTaskEntries': grpc.unary_unary_rpc_method_handler( + servicer.ListTaskEntries, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesResponse.SerializeToString, + ), + 'DeleteTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'SyncPieces': grpc.unary_stream_rpc_method_handler( + servicer.SyncPieces, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPiecesRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPiecesResponse.SerializeToString, + ), + 'DownloadCacheTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskResponse.SerializeToString, + ), + 'StatCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.StatCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.SerializeToString, + ), + 'DeleteCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteCacheTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'SyncCachePieces': grpc.unary_stream_rpc_method_handler( + servicer.SyncCachePieces, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncCachePiecesRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncCachePiecesResponse.SerializeToString, + ), + 'DownloadCachePiece': grpc.unary_unary_rpc_method_handler( + servicer.DownloadCachePiece, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCachePieceRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCachePieceResponse.SerializeToString, + ), + 'DownloadPersistentTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadPersistentTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskResponse.SerializeToString, + ), + 'SyncPersistentPieces': grpc.unary_stream_rpc_method_handler( + servicer.SyncPersistentPieces, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentPiecesRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentPiecesResponse.SerializeToString, + ), + 'UpdatePersistentTask': grpc.unary_unary_rpc_method_handler( + servicer.UpdatePersistentTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UpdatePersistentTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatPersistentTask': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.SerializeToString, + ), + 'DeletePersistentTask': grpc.unary_unary_rpc_method_handler( + servicer.DeletePersistentTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeletePersistentTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'DownloadPersistentCacheTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadPersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskResponse.SerializeToString, + ), + 'UpdatePersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.UpdatePersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UpdatePersistentCacheTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatPersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.SerializeToString, + ), + 'DeletePersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.DeletePersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeletePersistentCacheTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'SyncPersistentCachePieces': grpc.unary_stream_rpc_method_handler( + servicer.SyncPersistentCachePieces, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentCachePiecesRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentCachePiecesResponse.SerializeToString, + ), + 'SyncHost': grpc.unary_stream_rpc_method_handler( + servicer.SyncHost, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncHostRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Host.SerializeToString, + ), + 'ExchangeIBVerbsQueuePairEndpoint': grpc.unary_unary_rpc_method_handler( + servicer.ExchangeIBVerbsQueuePairEndpoint, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ExchangeIBVerbsQueuePairEndpointRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ExchangeIBVerbsQueuePairEndpointResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'dfdaemon.v2.DfdaemonUpload', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DfdaemonUpload(object): + """DfdaemonUpload represents dfdaemon upload service. + """ + + @staticmethod + def DownloadTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/DownloadTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/StatTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatLocalTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/StatLocalTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListTaskEntries(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/ListTaskEntries', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/DeleteTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SyncPieces(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/SyncPieces', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPiecesRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPiecesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/DownloadCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/StatCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/DeleteCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteCacheTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SyncCachePieces(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/SyncCachePieces', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncCachePiecesRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncCachePiecesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadCachePiece(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/DownloadCachePiece', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCachePieceRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCachePieceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadPersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/DownloadPersistentTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SyncPersistentPieces(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/SyncPersistentPieces', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentPiecesRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentPiecesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdatePersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/UpdatePersistentTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UpdatePersistentTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/StatPersistentTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/DeletePersistentTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeletePersistentTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadPersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/DownloadPersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdatePersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/UpdatePersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UpdatePersistentCacheTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/StatPersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/DeletePersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeletePersistentCacheTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SyncPersistentCachePieces(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/SyncPersistentCachePieces', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentCachePiecesRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncPersistentCachePiecesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SyncHost(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonUpload/SyncHost', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.SyncHostRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Host.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExchangeIBVerbsQueuePairEndpoint(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonUpload/ExchangeIBVerbsQueuePairEndpoint', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ExchangeIBVerbsQueuePairEndpointRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ExchangeIBVerbsQueuePairEndpointResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class DfdaemonDownloadStub(object): + """DfdaemonDownload represents dfdaemon download service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.DownloadTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonDownload/DownloadTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskResponse.FromString, + ) + self.StatTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/StatTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.FromString, + ) + self.StatLocalTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/StatLocalTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskResponse.FromString, + ) + self.ListTaskEntries = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/ListTaskEntries', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesResponse.FromString, + ) + self.DeleteTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/DeleteTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.DeleteHost = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/DeleteHost', + request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.DownloadCacheTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonDownload/DownloadCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskResponse.FromString, + ) + self.StatCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/StatCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.FromString, + ) + self.DeleteCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/DeleteCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteCacheTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.DownloadPersistentTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonDownload/DownloadPersistentTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskResponse.FromString, + ) + self.UploadPersistentTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/UploadPersistentTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UploadPersistentTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + ) + self.DownloadPersistentCacheTask = channel.unary_stream( + '/dfdaemon.v2.DfdaemonDownload/DownloadPersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskResponse.FromString, + ) + self.UploadPersistentCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/UploadPersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UploadPersistentCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + ) + self.StatPersistentCacheTask = channel.unary_unary( + '/dfdaemon.v2.DfdaemonDownload/StatPersistentCacheTask', + request_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + ) + + +class DfdaemonDownloadServicer(object): + """DfdaemonDownload represents dfdaemon download service. + """ + + def DownloadTask(self, request, context): + """DownloadTask downloads task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatTask(self, request, context): + """StatTask stats task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatLocalTask(self, request, context): + """StatLocalTask stats local task information from peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTaskEntries(self, request, context): + """ListTaskEntries lists task entries for downloading directory. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteTask(self, request, context): + """DeleteTask deletes task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteHost(self, request, context): + """DeleteHost releases host in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadCacheTask(self, request, context): + """DownloadCacheTask downloads cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatCacheTask(self, request, context): + """StatCacheTask stats cache task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteCacheTask(self, request, context): + """DeleteCacheTask deletes cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadPersistentTask(self, request, context): + """DownloadPersistentTask downloads persistent task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentTask(self, request, context): + """UploadPersistentTask uploads persistent task to p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DownloadPersistentCacheTask(self, request, context): + """DownloadPersistentCacheTask downloads persistent cache task from p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentCacheTask(self, request, context): + """UploadPersistentCacheTask uploads persistent cache task to p2p network. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentCacheTask(self, request, context): + """StatPersistentCacheTask stats persistent cache task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DfdaemonDownloadServicer_to_server(servicer, server): + rpc_method_handlers = { + 'DownloadTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskResponse.SerializeToString, + ), + 'StatTask': grpc.unary_unary_rpc_method_handler( + servicer.StatTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.SerializeToString, + ), + 'StatLocalTask': grpc.unary_unary_rpc_method_handler( + servicer.StatLocalTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskResponse.SerializeToString, + ), + 'ListTaskEntries': grpc.unary_unary_rpc_method_handler( + servicer.ListTaskEntries, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesResponse.SerializeToString, + ), + 'DeleteTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'DeleteHost': grpc.unary_unary_rpc_method_handler( + servicer.DeleteHost, + request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'DownloadCacheTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskResponse.SerializeToString, + ), + 'StatCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.StatCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.SerializeToString, + ), + 'DeleteCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteCacheTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'DownloadPersistentTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadPersistentTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskResponse.SerializeToString, + ), + 'UploadPersistentTask': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UploadPersistentTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.SerializeToString, + ), + 'DownloadPersistentCacheTask': grpc.unary_stream_rpc_method_handler( + servicer.DownloadPersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskResponse.SerializeToString, + ), + 'UploadPersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UploadPersistentCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.SerializeToString, + ), + 'StatPersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'dfdaemon.v2.DfdaemonDownload', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DfdaemonDownload(object): + """DfdaemonDownload represents dfdaemon download service. + """ + + @staticmethod + def DownloadTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonDownload/DownloadTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/StatTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatLocalTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/StatLocalTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatLocalTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListTaskEntries(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/ListTaskEntries', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.ListTaskEntriesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/DeleteTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteHost(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/DeleteHost', + google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonDownload/DownloadCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadCacheTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/StatCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/DeleteCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DeleteCacheTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadPersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonDownload/DownloadPersistentTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/UploadPersistentTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UploadPersistentTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DownloadPersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/dfdaemon.v2.DfdaemonDownload/DownloadPersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.DownloadPersistentCacheTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/UploadPersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.UploadPersistentCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/dfdaemon.v2.DfdaemonDownload/StatPersistentCacheTask', + pkg_dot_apis_dot_dfdaemon_dot_v2_dot_dfdaemon__pb2.StatPersistentCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/api/errordetails_pb2.py b/python/api/errordetails_pb2.py new file mode 100644 index 0000000..290141f --- /dev/null +++ b/python/api/errordetails_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pkg/apis/errordetails/v2/errordetails.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from validate import validate_pb2 as validate_dot_validate__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+pkg/apis/errordetails/v2/errordetails.proto\x12\x0f\x65rrordetails.v2\x1a\x17validate/validate.proto\"\xb7\x01\n\x07\x42\x61\x63kend\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x34\n\x06header\x18\x02 \x03(\x0b\x32$.errordetails.v2.Backend.HeaderEntry\x12&\n\x0bstatus_code\x18\x03 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xd7\x04(d@\x01H\x00\x88\x01\x01\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0e\n\x0c_status_code\"+\n\x07Unknown\x12\x14\n\x07message\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_messageB5Z3d7y.io/api/v2/pkg/apis/errordetails/v2;errordetailsb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pkg.apis.errordetails.v2.errordetails_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3d7y.io/api/v2/pkg/apis/errordetails/v2;errordetails' + _BACKEND_HEADERENTRY._options = None + _BACKEND_HEADERENTRY._serialized_options = b'8\001' + _BACKEND.fields_by_name['status_code']._options = None + _BACKEND.fields_by_name['status_code']._serialized_options = b'\372B\t\032\007\020\327\004(d@\001' + _BACKEND._serialized_start=90 + _BACKEND._serialized_end=273 + _BACKEND_HEADERENTRY._serialized_start=212 + _BACKEND_HEADERENTRY._serialized_end=257 + _UNKNOWN._serialized_start=275 + _UNKNOWN._serialized_end=318 +# @@protoc_insertion_point(module_scope) diff --git a/python/api/errordetails_pb2_grpc.py b/python/api/errordetails_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/python/api/errordetails_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/python/api/manager_pb2.py b/python/api/manager_pb2.py new file mode 100644 index 0000000..5719cff --- /dev/null +++ b/python/api/manager_pb2.py @@ -0,0 +1,173 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pkg/apis/manager/v2/manager.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from pkg.apis.common.v2 import common_pb2 as pkg_dot_apis_dot_common_dot_v2_dot_common__pb2 +from validate import validate_pb2 as validate_dot_validate__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!pkg/apis/manager/v2/manager.proto\x12\nmanager.v2\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fpkg/apis/common/v2/common.proto\x1a\x17validate/validate.proto\"H\n\x0fSeedPeerCluster\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0b\n\x03\x62io\x18\x03 \x01(\t\x12\x0e\n\x06\x63onfig\x18\x04 \x01(\x0c\"\xb5\x02\n\x08SeedPeer\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x10\n\x08hostname\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x10\n\x03idc\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08location\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\n\n\x02ip\x18\x06 \x01(\t\x12\x0c\n\x04port\x18\x07 \x01(\x05\x12\x15\n\rdownload_port\x18\x08 \x01(\x05\x12\r\n\x05state\x18\t \x01(\t\x12\x1c\n\x14seed_peer_cluster_id\x18\n \x01(\x04\x12\x36\n\x11seed_peer_cluster\x18\x0b \x01(\x0b\x32\x1b.manager.v2.SeedPeerCluster\x12)\n\nschedulers\x18\x0c \x03(\x0b\x32\x15.manager.v2.SchedulerB\x06\n\x04_idcB\x0b\n\t_location\"\xa5\x01\n\x12GetSeedPeerRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12%\n\x14seed_peer_cluster_id\x18\x03 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x16\n\x02ip\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01\"\xbc\x01\n\x14ListSeedPeersRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12\x13\n\x02ip\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12\x1e\n\x07version\x18\x04 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01\x12\x1d\n\x06\x63ommit\x18\x05 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01\"A\n\x15ListSeedPeersResponse\x12(\n\nseed_peers\x18\x01 \x03(\x0b\x32\x14.manager.v2.SeedPeer\"\xdc\x02\n\x15UpdateSeedPeerRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12\x1a\n\x04type\x18\x03 \x01(\tB\x0c\xfa\x42\tr\x07R\x05super\x12\x1f\n\x03idc\x18\x04 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01H\x00\x88\x01\x01\x12\"\n\x08location\x18\x05 \x01(\tB\x0b\xfa\x42\x08r\x06\x18\x80\x08\xd0\x01\x01H\x01\x88\x01\x01\x12\x13\n\x02ip\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12\x1a\n\x04port\x18\x07 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xff\xff\x03(\x80\x08\x12#\n\rdownload_port\x18\x08 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xff\xff\x03(\x80\x08\x12%\n\x14seed_peer_cluster_id\x18\t \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x42\x06\n\x04_idcB\x0b\n\t_location\"\xa8\x01\n\x15\x44\x65leteSeedPeerRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12%\n\x14seed_peer_cluster_id\x18\x03 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x16\n\x02ip\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01\"\x8c\x01\n\x10SchedulerCluster\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0b\n\x03\x62io\x18\x03 \x01(\t\x12\x0e\n\x06\x63onfig\x18\x04 \x01(\x0c\x12\x15\n\rclient_config\x18\x05 \x01(\x0c\x12\x0e\n\x06scopes\x18\x06 \x01(\x0c\x12\x1a\n\x12seed_client_config\x18\x07 \x01(\x0c\"\xa3\x02\n\tScheduler\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x10\n\x08hostname\x18\x02 \x01(\t\x12\x10\n\x03idc\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08location\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\n\n\x02ip\x18\x05 \x01(\t\x12\x0c\n\x04port\x18\x06 \x01(\x05\x12\r\n\x05state\x18\x07 \x01(\t\x12\x1c\n\x14scheduler_cluster_id\x18\x08 \x01(\x04\x12\x37\n\x11scheduler_cluster\x18\t \x01(\x0b\x32\x1c.manager.v2.SchedulerCluster\x12(\n\nseed_peers\x18\n \x03(\x0b\x32\x14.manager.v2.SeedPeer\x12\x10\n\x08\x66\x65\x61tures\x18\x0b \x01(\x0c\x42\x06\n\x04_idcB\x0b\n\t_location\"\xa6\x01\n\x13GetSchedulerRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12%\n\x14scheduler_cluster_id\x18\x03 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x16\n\x02ip\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01\"\xc0\x02\n\x16UpdateSchedulerRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12%\n\x14scheduler_cluster_id\x18\x03 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x1f\n\x03idc\x18\x04 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01H\x00\x88\x01\x01\x12$\n\x08location\x18\x05 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01H\x01\x88\x01\x01\x12\x13\n\x02ip\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12\x1a\n\x04port\x18\x07 \x01(\x05\x42\x0c\xfa\x42\t\x1a\x07\x10\xff\xff\x03(\x80\x08\x12\x10\n\x08\x66\x65\x61tures\x18\x08 \x03(\t\x12\x0e\n\x06\x63onfig\x18\t \x01(\x0c\x42\x06\n\x04_idcB\x0b\n\t_location\"\xb7\x02\n\x15ListSchedulersRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12\x13\n\x02ip\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12\x1f\n\x03idc\x18\x04 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01H\x00\x88\x01\x01\x12$\n\x08location\x18\x05 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01H\x01\x88\x01\x01\x12\x1e\n\x07version\x18\x06 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01\x12\x1d\n\x06\x63ommit\x18\x07 \x01(\tB\r\xfa\x42\nr\x08\x10\x01\x18\x80\x08\xd0\x01\x01\x12\x1c\n\x14scheduler_cluster_id\x18\x08 \x01(\x04\x42\x06\n\x04_idcB\x0b\n\t_location\"C\n\x16ListSchedulersResponse\x12)\n\nschedulers\x18\x01 \x03(\x0b\x32\x15.manager.v2.Scheduler\"I\n\x0bURLPriority\x12\x16\n\x05regex\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\"\n\x05value\x18\x02 \x01(\x0e\x32\x13.common.v2.Priority\"`\n\x13\x41pplicationPriority\x12\"\n\x05value\x18\x01 \x01(\x0e\x32\x13.common.v2.Priority\x12%\n\x04urls\x18\x02 \x03(\x0b\x32\x17.manager.v2.URLPriority\"\x9d\x01\n\x0b\x41pplication\x12\x13\n\x02id\x18\x01 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x18\n\x04name\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\x80\x08\x12\x15\n\x03url\x18\x03 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\x0b\n\x03\x62io\x18\x04 \x01(\t\x12;\n\x08priority\x18\x05 \x01(\x0b\x32\x1f.manager.v2.ApplicationPriorityB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"\x80\x01\n\x17ListApplicationsRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12\x13\n\x02ip\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\"I\n\x18ListApplicationsResponse\x12-\n\x0c\x61pplications\x18\x01 \x03(\x0b\x32\x17.manager.v2.Application\"\x99\x01\n\x10KeepAliveRequest\x12\x35\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x16.manager.v2.SourceTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02h\x01\x12\x1b\n\ncluster_id\x18\x03 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x16\n\x02ip\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01*I\n\nSourceType\x12\x14\n\x10SCHEDULER_SOURCE\x10\x00\x12\x0f\n\x0bPEER_SOURCE\x10\x01\x12\x14\n\x10SEED_PEER_SOURCE\x10\x02\x32\xcf\x05\n\x07Manager\x12\x43\n\x0bGetSeedPeer\x12\x1e.manager.v2.GetSeedPeerRequest\x1a\x14.manager.v2.SeedPeer\x12T\n\rListSeedPeers\x12 .manager.v2.ListSeedPeersRequest\x1a!.manager.v2.ListSeedPeersResponse\x12I\n\x0eUpdateSeedPeer\x12!.manager.v2.UpdateSeedPeerRequest\x1a\x14.manager.v2.SeedPeer\x12K\n\x0e\x44\x65leteSeedPeer\x12!.manager.v2.DeleteSeedPeerRequest\x1a\x16.google.protobuf.Empty\x12\x46\n\x0cGetScheduler\x12\x1f.manager.v2.GetSchedulerRequest\x1a\x15.manager.v2.Scheduler\x12L\n\x0fUpdateScheduler\x12\".manager.v2.UpdateSchedulerRequest\x1a\x15.manager.v2.Scheduler\x12W\n\x0eListSchedulers\x12!.manager.v2.ListSchedulersRequest\x1a\".manager.v2.ListSchedulersResponse\x12]\n\x10ListApplications\x12#.manager.v2.ListApplicationsRequest\x1a$.manager.v2.ListApplicationsResponse\x12\x43\n\tKeepAlive\x12\x1c.manager.v2.KeepAliveRequest\x1a\x16.google.protobuf.Empty(\x01\x42+Z)d7y.io/api/v2/pkg/apis/manager/v2;managerb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pkg.apis.manager.v2.manager_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)d7y.io/api/v2/pkg/apis/manager/v2;manager' + _GETSEEDPEERREQUEST.fields_by_name['source_type']._options = None + _GETSEEDPEERREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _GETSEEDPEERREQUEST.fields_by_name['hostname']._options = None + _GETSEEDPEERREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _GETSEEDPEERREQUEST.fields_by_name['seed_peer_cluster_id']._options = None + _GETSEEDPEERREQUEST.fields_by_name['seed_peer_cluster_id']._serialized_options = b'\372B\0042\002(\001' + _GETSEEDPEERREQUEST.fields_by_name['ip']._options = None + _GETSEEDPEERREQUEST.fields_by_name['ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _LISTSEEDPEERSREQUEST.fields_by_name['source_type']._options = None + _LISTSEEDPEERSREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _LISTSEEDPEERSREQUEST.fields_by_name['hostname']._options = None + _LISTSEEDPEERSREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _LISTSEEDPEERSREQUEST.fields_by_name['ip']._options = None + _LISTSEEDPEERSREQUEST.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _LISTSEEDPEERSREQUEST.fields_by_name['version']._options = None + _LISTSEEDPEERSREQUEST.fields_by_name['version']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _LISTSEEDPEERSREQUEST.fields_by_name['commit']._options = None + _LISTSEEDPEERSREQUEST.fields_by_name['commit']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _UPDATESEEDPEERREQUEST.fields_by_name['source_type']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _UPDATESEEDPEERREQUEST.fields_by_name['hostname']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _UPDATESEEDPEERREQUEST.fields_by_name['type']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['type']._serialized_options = b'\372B\tr\007R\005super' + _UPDATESEEDPEERREQUEST.fields_by_name['idc']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['idc']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _UPDATESEEDPEERREQUEST.fields_by_name['location']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['location']._serialized_options = b'\372B\010r\006\030\200\010\320\001\001' + _UPDATESEEDPEERREQUEST.fields_by_name['ip']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _UPDATESEEDPEERREQUEST.fields_by_name['port']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['port']._serialized_options = b'\372B\t\032\007\020\377\377\003(\200\010' + _UPDATESEEDPEERREQUEST.fields_by_name['download_port']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['download_port']._serialized_options = b'\372B\t\032\007\020\377\377\003(\200\010' + _UPDATESEEDPEERREQUEST.fields_by_name['seed_peer_cluster_id']._options = None + _UPDATESEEDPEERREQUEST.fields_by_name['seed_peer_cluster_id']._serialized_options = b'\372B\0042\002(\001' + _DELETESEEDPEERREQUEST.fields_by_name['source_type']._options = None + _DELETESEEDPEERREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _DELETESEEDPEERREQUEST.fields_by_name['hostname']._options = None + _DELETESEEDPEERREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _DELETESEEDPEERREQUEST.fields_by_name['seed_peer_cluster_id']._options = None + _DELETESEEDPEERREQUEST.fields_by_name['seed_peer_cluster_id']._serialized_options = b'\372B\0042\002(\001' + _DELETESEEDPEERREQUEST.fields_by_name['ip']._options = None + _DELETESEEDPEERREQUEST.fields_by_name['ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _GETSCHEDULERREQUEST.fields_by_name['source_type']._options = None + _GETSCHEDULERREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _GETSCHEDULERREQUEST.fields_by_name['hostname']._options = None + _GETSCHEDULERREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _GETSCHEDULERREQUEST.fields_by_name['scheduler_cluster_id']._options = None + _GETSCHEDULERREQUEST.fields_by_name['scheduler_cluster_id']._serialized_options = b'\372B\0042\002(\001' + _GETSCHEDULERREQUEST.fields_by_name['ip']._options = None + _GETSCHEDULERREQUEST.fields_by_name['ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _UPDATESCHEDULERREQUEST.fields_by_name['source_type']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _UPDATESCHEDULERREQUEST.fields_by_name['hostname']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _UPDATESCHEDULERREQUEST.fields_by_name['scheduler_cluster_id']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['scheduler_cluster_id']._serialized_options = b'\372B\0042\002(\001' + _UPDATESCHEDULERREQUEST.fields_by_name['idc']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['idc']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _UPDATESCHEDULERREQUEST.fields_by_name['location']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['location']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _UPDATESCHEDULERREQUEST.fields_by_name['ip']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _UPDATESCHEDULERREQUEST.fields_by_name['port']._options = None + _UPDATESCHEDULERREQUEST.fields_by_name['port']._serialized_options = b'\372B\t\032\007\020\377\377\003(\200\010' + _LISTSCHEDULERSREQUEST.fields_by_name['source_type']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _LISTSCHEDULERSREQUEST.fields_by_name['hostname']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _LISTSCHEDULERSREQUEST.fields_by_name['ip']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _LISTSCHEDULERSREQUEST.fields_by_name['idc']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['idc']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _LISTSCHEDULERSREQUEST.fields_by_name['location']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['location']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _LISTSCHEDULERSREQUEST.fields_by_name['version']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['version']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _LISTSCHEDULERSREQUEST.fields_by_name['commit']._options = None + _LISTSCHEDULERSREQUEST.fields_by_name['commit']._serialized_options = b'\372B\nr\010\020\001\030\200\010\320\001\001' + _URLPRIORITY.fields_by_name['regex']._options = None + _URLPRIORITY.fields_by_name['regex']._serialized_options = b'\372B\004r\002\020\001' + _APPLICATION.fields_by_name['id']._options = None + _APPLICATION.fields_by_name['id']._serialized_options = b'\372B\0042\002(\001' + _APPLICATION.fields_by_name['name']._options = None + _APPLICATION.fields_by_name['name']._serialized_options = b'\372B\007r\005\020\001\030\200\010' + _APPLICATION.fields_by_name['url']._options = None + _APPLICATION.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _APPLICATION.fields_by_name['priority']._options = None + _APPLICATION.fields_by_name['priority']._serialized_options = b'\372B\005\212\001\002\020\001' + _LISTAPPLICATIONSREQUEST.fields_by_name['source_type']._options = None + _LISTAPPLICATIONSREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _LISTAPPLICATIONSREQUEST.fields_by_name['hostname']._options = None + _LISTAPPLICATIONSREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _LISTAPPLICATIONSREQUEST.fields_by_name['ip']._options = None + _LISTAPPLICATIONSREQUEST.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _KEEPALIVEREQUEST.fields_by_name['source_type']._options = None + _KEEPALIVEREQUEST.fields_by_name['source_type']._serialized_options = b'\372B\005\202\001\002\020\001' + _KEEPALIVEREQUEST.fields_by_name['hostname']._options = None + _KEEPALIVEREQUEST.fields_by_name['hostname']._serialized_options = b'\372B\004r\002h\001' + _KEEPALIVEREQUEST.fields_by_name['cluster_id']._options = None + _KEEPALIVEREQUEST.fields_by_name['cluster_id']._serialized_options = b'\372B\0042\002(\001' + _KEEPALIVEREQUEST.fields_by_name['ip']._options = None + _KEEPALIVEREQUEST.fields_by_name['ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _SOURCETYPE._serialized_start=3477 + _SOURCETYPE._serialized_end=3550 + _SEEDPEERCLUSTER._serialized_start=136 + _SEEDPEERCLUSTER._serialized_end=208 + _SEEDPEER._serialized_start=211 + _SEEDPEER._serialized_end=520 + _GETSEEDPEERREQUEST._serialized_start=523 + _GETSEEDPEERREQUEST._serialized_end=688 + _LISTSEEDPEERSREQUEST._serialized_start=691 + _LISTSEEDPEERSREQUEST._serialized_end=879 + _LISTSEEDPEERSRESPONSE._serialized_start=881 + _LISTSEEDPEERSRESPONSE._serialized_end=946 + _UPDATESEEDPEERREQUEST._serialized_start=949 + _UPDATESEEDPEERREQUEST._serialized_end=1297 + _DELETESEEDPEERREQUEST._serialized_start=1300 + _DELETESEEDPEERREQUEST._serialized_end=1468 + _SCHEDULERCLUSTER._serialized_start=1471 + _SCHEDULERCLUSTER._serialized_end=1611 + _SCHEDULER._serialized_start=1614 + _SCHEDULER._serialized_end=1905 + _GETSCHEDULERREQUEST._serialized_start=1908 + _GETSCHEDULERREQUEST._serialized_end=2074 + _UPDATESCHEDULERREQUEST._serialized_start=2077 + _UPDATESCHEDULERREQUEST._serialized_end=2397 + _LISTSCHEDULERSREQUEST._serialized_start=2400 + _LISTSCHEDULERSREQUEST._serialized_end=2711 + _LISTSCHEDULERSRESPONSE._serialized_start=2713 + _LISTSCHEDULERSRESPONSE._serialized_end=2780 + _URLPRIORITY._serialized_start=2782 + _URLPRIORITY._serialized_end=2855 + _APPLICATIONPRIORITY._serialized_start=2857 + _APPLICATIONPRIORITY._serialized_end=2953 + _APPLICATION._serialized_start=2956 + _APPLICATION._serialized_end=3113 + _LISTAPPLICATIONSREQUEST._serialized_start=3116 + _LISTAPPLICATIONSREQUEST._serialized_end=3244 + _LISTAPPLICATIONSRESPONSE._serialized_start=3246 + _LISTAPPLICATIONSRESPONSE._serialized_end=3319 + _KEEPALIVEREQUEST._serialized_start=3322 + _KEEPALIVEREQUEST._serialized_end=3475 + _MANAGER._serialized_start=3553 + _MANAGER._serialized_end=4272 +# @@protoc_insertion_point(module_scope) diff --git a/python/api/manager_pb2_grpc.py b/python/api/manager_pb2_grpc.py new file mode 100644 index 0000000..fcbc771 --- /dev/null +++ b/python/api/manager_pb2_grpc.py @@ -0,0 +1,343 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from pkg.apis.manager.v2 import manager_pb2 as pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2 + + +class ManagerStub(object): + """Manager RPC Service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetSeedPeer = channel.unary_unary( + '/manager.v2.Manager/GetSeedPeer', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.GetSeedPeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.SeedPeer.FromString, + ) + self.ListSeedPeers = channel.unary_unary( + '/manager.v2.Manager/ListSeedPeers', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSeedPeersRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSeedPeersResponse.FromString, + ) + self.UpdateSeedPeer = channel.unary_unary( + '/manager.v2.Manager/UpdateSeedPeer', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.UpdateSeedPeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.SeedPeer.FromString, + ) + self.DeleteSeedPeer = channel.unary_unary( + '/manager.v2.Manager/DeleteSeedPeer', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.DeleteSeedPeerRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.GetScheduler = channel.unary_unary( + '/manager.v2.Manager/GetScheduler', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.GetSchedulerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.Scheduler.FromString, + ) + self.UpdateScheduler = channel.unary_unary( + '/manager.v2.Manager/UpdateScheduler', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.UpdateSchedulerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.Scheduler.FromString, + ) + self.ListSchedulers = channel.unary_unary( + '/manager.v2.Manager/ListSchedulers', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSchedulersRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSchedulersResponse.FromString, + ) + self.ListApplications = channel.unary_unary( + '/manager.v2.Manager/ListApplications', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListApplicationsRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListApplicationsResponse.FromString, + ) + self.KeepAlive = channel.stream_unary( + '/manager.v2.Manager/KeepAlive', + request_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.KeepAliveRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + + +class ManagerServicer(object): + """Manager RPC Service. + """ + + def GetSeedPeer(self, request, context): + """Get SeedPeer and SeedPeer cluster configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListSeedPeers(self, request, context): + """List acitve schedulers configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateSeedPeer(self, request, context): + """Update SeedPeer configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteSeedPeer(self, request, context): + """Delete SeedPeer configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetScheduler(self, request, context): + """Get Scheduler and Scheduler cluster configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateScheduler(self, request, context): + """Update scheduler configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListSchedulers(self, request, context): + """List acitve schedulers configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListApplications(self, request, context): + """List applications configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def KeepAlive(self, request_iterator, context): + """KeepAlive with manager. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ManagerServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetSeedPeer': grpc.unary_unary_rpc_method_handler( + servicer.GetSeedPeer, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.GetSeedPeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.SeedPeer.SerializeToString, + ), + 'ListSeedPeers': grpc.unary_unary_rpc_method_handler( + servicer.ListSeedPeers, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSeedPeersRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSeedPeersResponse.SerializeToString, + ), + 'UpdateSeedPeer': grpc.unary_unary_rpc_method_handler( + servicer.UpdateSeedPeer, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.UpdateSeedPeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.SeedPeer.SerializeToString, + ), + 'DeleteSeedPeer': grpc.unary_unary_rpc_method_handler( + servicer.DeleteSeedPeer, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.DeleteSeedPeerRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'GetScheduler': grpc.unary_unary_rpc_method_handler( + servicer.GetScheduler, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.GetSchedulerRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.Scheduler.SerializeToString, + ), + 'UpdateScheduler': grpc.unary_unary_rpc_method_handler( + servicer.UpdateScheduler, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.UpdateSchedulerRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.Scheduler.SerializeToString, + ), + 'ListSchedulers': grpc.unary_unary_rpc_method_handler( + servicer.ListSchedulers, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSchedulersRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSchedulersResponse.SerializeToString, + ), + 'ListApplications': grpc.unary_unary_rpc_method_handler( + servicer.ListApplications, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListApplicationsRequest.FromString, + response_serializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListApplicationsResponse.SerializeToString, + ), + 'KeepAlive': grpc.stream_unary_rpc_method_handler( + servicer.KeepAlive, + request_deserializer=pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.KeepAliveRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'manager.v2.Manager', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Manager(object): + """Manager RPC Service. + """ + + @staticmethod + def GetSeedPeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/GetSeedPeer', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.GetSeedPeerRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.SeedPeer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListSeedPeers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/ListSeedPeers', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSeedPeersRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSeedPeersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateSeedPeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/UpdateSeedPeer', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.UpdateSeedPeerRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.SeedPeer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteSeedPeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/DeleteSeedPeer', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.DeleteSeedPeerRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetScheduler(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/GetScheduler', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.GetSchedulerRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.Scheduler.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateScheduler(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/UpdateScheduler', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.UpdateSchedulerRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.Scheduler.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListSchedulers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/ListSchedulers', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSchedulersRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListSchedulersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListApplications(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/manager.v2.Manager/ListApplications', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListApplicationsRequest.SerializeToString, + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.ListApplicationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def KeepAlive(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_unary(request_iterator, target, '/manager.v2.Manager/KeepAlive', + pkg_dot_apis_dot_manager_dot_v2_dot_manager__pb2.KeepAliveRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/api/scheduler_pb2.py b/python/api/scheduler_pb2.py new file mode 100644 index 0000000..0a6cafe --- /dev/null +++ b/python/api/scheduler_pb2.py @@ -0,0 +1,531 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pkg/apis/scheduler/v2/scheduler.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from pkg.apis.common.v2 import common_pb2 as pkg_dot_apis_dot_common_dot_v2_dot_common__pb2 +from pkg.apis.errordetails.v2 import errordetails_pb2 as pkg_dot_apis_dot_errordetails_dot_v2_dot_errordetails__pb2 +from validate import validate_pb2 as validate_dot_validate__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%pkg/apis/scheduler/v2/scheduler.proto\x12\x0cscheduler.v2\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fpkg/apis/common/v2/common.proto\x1a+pkg/apis/errordetails/v2/errordetails.proto\x1a\x17validate/validate.proto\"F\n\x13RegisterPeerRequest\x12/\n\x08\x64ownload\x18\x01 \x01(\x0b\x32\x13.common.v2.DownloadB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"\x1c\n\x1a\x44ownloadPeerStartedRequest\"^\n&DownloadPeerBackToSourceStartedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"y\n\x15ReschedulePeerRequest\x12*\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x0f.common.v2.Peer\x12$\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"F\n\x1b\x44ownloadPeerFinishedRequestJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03R\x0e\x63ontent_lengthR\x0bpiece_count\"R\n\'DownloadPeerBackToSourceFinishedRequestJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03R\x0e\x63ontent_lengthR\x0bpiece_count\"Q\n\x19\x44ownloadPeerFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"]\n%DownloadPeerBackToSourceFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"I\n\x1c\x44ownloadPieceFinishedRequest\x12)\n\x05piece\x18\x01 \x01(\x0b\x32\x10.common.v2.PieceB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"U\n(DownloadPieceBackToSourceFinishedRequest\x12)\n\x05piece\x18\x01 \x01(\x0b\x32\x10.common.v2.PieceB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\"w\n\x1a\x44ownloadPieceFailedRequest\x12\x19\n\x0cpiece_number\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x1a\n\tparent_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x11\n\ttemporary\x18\x03 \x01(\x08\x42\x0f\n\r_piece_number\"\xbf\x01\n&DownloadPieceBackToSourceFailedRequest\x12\x19\n\x0cpiece_number\x18\x01 \x01(\rH\x01\x88\x01\x01\x12+\n\x07\x62\x61\x63kend\x18\x02 \x01(\x0b\x32\x18.errordetails.v2.BackendH\x00\x12+\n\x07unknown\x18\x03 \x01(\x0b\x32\x18.errordetails.v2.UnknownH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\x42\x0f\n\r_piece_number\"\xcc\t\n\x13\x41nnouncePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x42\n\x15register_peer_request\x18\x04 \x01(\x0b\x32!.scheduler.v2.RegisterPeerRequestH\x00\x12Q\n\x1d\x64ownload_peer_started_request\x18\x05 \x01(\x0b\x32(.scheduler.v2.DownloadPeerStartedRequestH\x00\x12l\n,download_peer_back_to_source_started_request\x18\x06 \x01(\x0b\x32\x34.scheduler.v2.DownloadPeerBackToSourceStartedRequestH\x00\x12\x46\n\x17reschedule_peer_request\x18\x07 \x01(\x0b\x32#.scheduler.v2.ReschedulePeerRequestH\x00\x12S\n\x1e\x64ownload_peer_finished_request\x18\x08 \x01(\x0b\x32).scheduler.v2.DownloadPeerFinishedRequestH\x00\x12n\n-download_peer_back_to_source_finished_request\x18\t \x01(\x0b\x32\x35.scheduler.v2.DownloadPeerBackToSourceFinishedRequestH\x00\x12O\n\x1c\x64ownload_peer_failed_request\x18\n \x01(\x0b\x32\'.scheduler.v2.DownloadPeerFailedRequestH\x00\x12j\n+download_peer_back_to_source_failed_request\x18\x0b \x01(\x0b\x32\x33.scheduler.v2.DownloadPeerBackToSourceFailedRequestH\x00\x12U\n\x1f\x64ownload_piece_finished_request\x18\x0c \x01(\x0b\x32*.scheduler.v2.DownloadPieceFinishedRequestH\x00\x12p\n.download_piece_back_to_source_finished_request\x18\r \x01(\x0b\x32\x36.scheduler.v2.DownloadPieceBackToSourceFinishedRequestH\x00\x12Q\n\x1d\x64ownload_piece_failed_request\x18\x0e \x01(\x0b\x32(.scheduler.v2.DownloadPieceFailedRequestH\x00\x12l\n,download_piece_back_to_source_failed_request\x18\x0f \x01(\x0b\x32\x34.scheduler.v2.DownloadPieceBackToSourceFailedRequestH\x00\x42\x0e\n\x07request\x12\x03\xf8\x42\x01\"\x13\n\x11\x45mptyTaskResponse\"J\n\x12NormalTaskResponse\x12\x34\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x0f.common.v2.PeerB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"P\n\x18NeedBackToSourceResponse\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\xf9\x01\n\x14\x41nnouncePeerResponse\x12>\n\x13\x65mpty_task_response\x18\x01 \x01(\x0b\x32\x1f.scheduler.v2.EmptyTaskResponseH\x00\x12@\n\x14normal_task_response\x18\x02 \x01(\x0b\x32 .scheduler.v2.NormalTaskResponseH\x00\x12N\n\x1cneed_back_to_source_response\x18\x03 \x01(\x0b\x32&.scheduler.v2.NeedBackToSourceResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"_\n\x0fStatPeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"a\n\x11\x44\x65letePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"E\n\x0fStatTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"G\n\x11\x44\x65leteTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"}\n\x13\x41nnounceHostRequest\x12\'\n\x04host\x18\x01 \x01(\x0b\x32\x0f.common.v2.HostB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x30\n\x08interval\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x88\x01\x01\x42\x0b\n\t_interval\".\n\x10ListHostsRequest\x12\x11\n\x04type\x18\x01 \x01(\rH\x00\x88\x01\x01\x42\x07\n\x05_type\"3\n\x11ListHostsResponse\x12\x1e\n\x05hosts\x18\x01 \x03(\x0b\x32\x0f.common.v2.Host\"-\n\x11\x44\x65leteHostRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\x99\x0b\n\x18RegisterCachePeerRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\xa8\x01\n\x06\x64igest\x18\x02 \x01(\tB\x92\x01\xfa\x42\x8e\x01r\x8b\x01\x32\x85\x01^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\xd0\x01\x01H\x00\x88\x01\x01\x12$\n\x05range\x18\x03 \x01(\x0b\x32\x10.common.v2.RangeH\x01\x88\x01\x01\x12+\n\x04type\x18\x04 \x01(\x0e\x32\x13.common.v2.TaskTypeB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x10\n\x03tag\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x03\x88\x01\x01\x12/\n\x08priority\x18\x07 \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x08 \x03(\t\x12Q\n\x0erequest_header\x18\t \x03(\x0b\x32\x39.scheduler.v2.RegisterCachePeerRequest.RequestHeaderEntry\x12,\n\x0cpiece_length\x18\n \x01(\x04\x42\x11\xfa\x42\x0e\x32\x0c\x18\x80\x80\x80 (\x80\x80\x80\x02@\x01H\x04\x88\x01\x01\x12$\n\x0boutput_path\x18\x0b \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x05\x88\x01\x01\x12/\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationH\x06\x88\x01\x01\x12\x1e\n\x16\x64isable_back_to_source\x18\r \x01(\x08\x12\x1b\n\x13need_back_to_source\x18\x0e \x01(\x08\x12\x19\n\x11\x63\x65rtificate_chain\x18\x0f \x03(\x0c\x12\x10\n\x08prefetch\x18\x10 \x01(\x08\x12\x35\n\x0eobject_storage\x18\x11 \x01(\x0b\x32\x18.common.v2.ObjectStorageH\x07\x88\x01\x01\x12\"\n\x04hdfs\x18\x12 \x01(\x0b\x32\x0f.common.v2.HDFSH\x08\x88\x01\x01\x12\x13\n\x0bis_prefetch\x18\x13 \x01(\x08\x12\x1a\n\x12need_piece_content\x18\x14 \x01(\x08\x12,\n\x1f\x63ontent_for_calculating_task_id\x18\x15 \x01(\tH\t\x88\x01\x01\x12\"\n\tremote_ip\x18\x16 \x01(\tB\n\xfa\x42\x07r\x05p\x01\xd0\x01\x01H\n\x88\x01\x01\x12#\n\x16\x63oncurrent_piece_count\x18\x17 \x01(\rH\x0b\x88\x01\x01\x12 \n\x13\x61\x63tual_piece_length\x18\x18 \x01(\x04H\x0c\x88\x01\x01\x12\"\n\x15\x61\x63tual_content_length\x18\x19 \x01(\x04H\r\x88\x01\x01\x12\x1f\n\x12\x61\x63tual_piece_count\x18\x1a \x01(\x04H\x0e\x88\x01\x01\x1a\x34\n\x12RequestHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_digestB\x08\n\x06_rangeB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0f\n\r_piece_lengthB\x0e\n\x0c_output_pathB\n\n\x08_timeoutB\x11\n\x0f_object_storageB\x07\n\x05_hdfsB\"\n _content_for_calculating_task_idB\x0c\n\n_remote_ipB\x19\n\x17_concurrent_piece_countB\x16\n\x14_actual_piece_lengthB\x18\n\x16_actual_content_lengthB\x15\n\x13_actual_piece_count\"!\n\x1f\x44ownloadCachePeerStartedRequest\"c\n+DownloadCachePeerBackToSourceStartedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x83\x01\n\x1aRescheduleCachePeerRequest\x12/\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x14.common.v2.CachePeer\x12$\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"K\n DownloadCachePeerFinishedRequestJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03R\x0e\x63ontent_lengthR\x0bpiece_count\"W\n,DownloadCachePeerBackToSourceFinishedRequestJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03R\x0e\x63ontent_lengthR\x0bpiece_count\"V\n\x1e\x44ownloadCachePeerFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"b\n*DownloadCachePeerBackToSourceFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\xa9\n\n\x18\x41nnounceCachePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12M\n\x1bregister_cache_peer_request\x18\x04 \x01(\x0b\x32&.scheduler.v2.RegisterCachePeerRequestH\x00\x12\\\n#download_cache_peer_started_request\x18\x05 \x01(\x0b\x32-.scheduler.v2.DownloadCachePeerStartedRequestH\x00\x12w\n2download_cache_peer_back_to_source_started_request\x18\x06 \x01(\x0b\x32\x39.scheduler.v2.DownloadCachePeerBackToSourceStartedRequestH\x00\x12Q\n\x1dreschedule_cache_peer_request\x18\x07 \x01(\x0b\x32(.scheduler.v2.RescheduleCachePeerRequestH\x00\x12^\n$download_cache_peer_finished_request\x18\x08 \x01(\x0b\x32..scheduler.v2.DownloadCachePeerFinishedRequestH\x00\x12y\n3download_cache_peer_back_to_source_finished_request\x18\t \x01(\x0b\x32:.scheduler.v2.DownloadCachePeerBackToSourceFinishedRequestH\x00\x12Z\n\"download_cache_peer_failed_request\x18\n \x01(\x0b\x32,.scheduler.v2.DownloadCachePeerFailedRequestH\x00\x12u\n1download_cache_peer_back_to_source_failed_request\x18\x0b \x01(\x0b\x32\x38.scheduler.v2.DownloadCachePeerBackToSourceFailedRequestH\x00\x12U\n\x1f\x64ownload_piece_finished_request\x18\x0c \x01(\x0b\x32*.scheduler.v2.DownloadPieceFinishedRequestH\x00\x12p\n.download_piece_back_to_source_finished_request\x18\r \x01(\x0b\x32\x36.scheduler.v2.DownloadPieceBackToSourceFinishedRequestH\x00\x12Q\n\x1d\x64ownload_piece_failed_request\x18\x0e \x01(\x0b\x32(.scheduler.v2.DownloadPieceFailedRequestH\x00\x12l\n,download_piece_back_to_source_failed_request\x18\x0f \x01(\x0b\x32\x34.scheduler.v2.DownloadPieceBackToSourceFailedRequestH\x00\x42\x0e\n\x07request\x12\x03\xf8\x42\x01\"\x18\n\x16\x45mptyCacheTaskResponse\"T\n\x17NormalCacheTaskResponse\x12\x39\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x14.common.v2.CachePeerB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"\x94\x02\n\x19\x41nnounceCachePeerResponse\x12I\n\x19\x65mpty_cache_task_response\x18\x01 \x01(\x0b\x32$.scheduler.v2.EmptyCacheTaskResponseH\x00\x12K\n\x1anormal_cache_task_response\x18\x02 \x01(\x0b\x32%.scheduler.v2.NormalCacheTaskResponseH\x00\x12N\n\x1cneed_back_to_source_response\x18\x03 \x01(\x0b\x32&.scheduler.v2.NeedBackToSourceResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"d\n\x14StatCachePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"f\n\x16\x44\x65leteCachePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"J\n\x14StatCacheTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"L\n\x16\x44\x65leteCacheTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\xae\x02\n\x1dRegisterPersistentPeerRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12:\n\x0eobject_storage\x18\x02 \x01(\x0b\x32\x18.common.v2.ObjectStorageB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x12\n\npersistent\x18\x03 \x01(\x08\x12$\n\x0boutput_path\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x12#\n\x16\x63oncurrent_piece_count\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x0bpiece_count\x18\x06 \x01(\x04\x12\x1b\n\x13need_back_to_source\x18\x07 \x01(\x08\x42\x0e\n\x0c_output_pathB\x19\n\x17_concurrent_piece_count\"&\n$DownloadPersistentPeerStartedRequest\"h\n0DownloadPersistentPeerBackToSourceStartedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x01\n\x1fReschedulePersistentPeerRequest\x12\x34\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x19.common.v2.PersistentPeer\x12$\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\'\n%DownloadPersistentPeerFinishedRequest\"3\n1DownloadPersistentPeerBackToSourceFinishedRequest\"[\n#DownloadPersistentPeerFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"g\n/DownloadPersistentPeerBackToSourceFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x80\x0b\n\x1d\x41nnouncePersistentPeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12W\n register_persistent_peer_request\x18\x04 \x01(\x0b\x32+.scheduler.v2.RegisterPersistentPeerRequestH\x00\x12\x66\n(download_persistent_peer_started_request\x18\x05 \x01(\x0b\x32\x32.scheduler.v2.DownloadPersistentPeerStartedRequestH\x00\x12\x81\x01\n7download_persistent_peer_back_to_source_started_request\x18\x06 \x01(\x0b\x32>.scheduler.v2.DownloadPersistentPeerBackToSourceStartedRequestH\x00\x12[\n\"reschedule_persistent_peer_request\x18\x07 \x01(\x0b\x32-.scheduler.v2.ReschedulePersistentPeerRequestH\x00\x12h\n)download_persistent_peer_finished_request\x18\x08 \x01(\x0b\x32\x33.scheduler.v2.DownloadPersistentPeerFinishedRequestH\x00\x12\x83\x01\n8download_persistent_peer_back_to_source_finished_request\x18\t \x01(\x0b\x32?.scheduler.v2.DownloadPersistentPeerBackToSourceFinishedRequestH\x00\x12\x64\n\'download_persistent_peer_failed_request\x18\n \x01(\x0b\x32\x31.scheduler.v2.DownloadPersistentPeerFailedRequestH\x00\x12\x7f\n6download_persistent_peer_back_to_source_failed_request\x18\x0b \x01(\x0b\x32=.scheduler.v2.DownloadPersistentPeerBackToSourceFailedRequestH\x00\x12U\n\x1f\x64ownload_piece_finished_request\x18\x0c \x01(\x0b\x32*.scheduler.v2.DownloadPieceFinishedRequestH\x00\x12p\n.download_piece_back_to_source_finished_request\x18\r \x01(\x0b\x32\x36.scheduler.v2.DownloadPieceBackToSourceFinishedRequestH\x00\x12Q\n\x1d\x64ownload_piece_failed_request\x18\x0e \x01(\x0b\x32(.scheduler.v2.DownloadPieceFailedRequestH\x00\x12l\n,download_piece_back_to_source_failed_request\x18\x0f \x01(\x0b\x32\x34.scheduler.v2.DownloadPieceBackToSourceFailedRequestH\x00\x42\x0e\n\x07request\x12\x03\xf8\x42\x01\"\x1d\n\x1b\x45mptyPersistentTaskResponse\"^\n\x1cNormalPersistentTaskResponse\x12>\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x19.common.v2.PersistentPeerB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"\xad\x02\n\x1e\x41nnouncePersistentPeerResponse\x12S\n\x1e\x65mpty_persistent_task_response\x18\x01 \x01(\x0b\x32).scheduler.v2.EmptyPersistentTaskResponseH\x00\x12U\n\x1fnormal_persistent_task_response\x18\x02 \x01(\x0b\x32*.scheduler.v2.NormalPersistentTaskResponseH\x00\x12N\n\x1cneed_back_to_source_response\x18\x03 \x01(\x0b\x32&.scheduler.v2.NeedBackToSourceResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"i\n\x19StatPersistentPeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"k\n\x1b\x44\x65letePersistentPeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\xd8\x02\n\"UploadPersistentTaskStartedRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x15\n\x03url\x18\x04 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12:\n\x0eobject_storage\x18\x05 \x01(\x0b\x32\x18.common.v2.ObjectStorageB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12)\n\x18persistent_replica_count\x18\x06 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x16\n\x0e\x63ontent_length\x18\x07 \x01(\x04\x12\x13\n\x0bpiece_count\x18\x08 \x01(\r\x12\x39\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xfa\x42\x0e\xaa\x01\x0b\"\x04\x08\x80\xf5$2\x03\x08\xac\x02\"s\n#UploadPersistentTaskFinishedRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\xa7\x01\n!UploadPersistentTaskFailedRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12$\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"O\n\x19StatPersistentTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"Q\n\x1b\x44\x65letePersistentTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\xa9\x02\n\"RegisterPersistentCachePeerRequest\x12\x12\n\npersistent\x18\x01 \x01(\x08\x12\x10\n\x03tag\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x03 \x01(\tH\x01\x88\x01\x01\x12 \n\x0cpiece_length\x18\x04 \x01(\x04\x42\n\xfa\x42\x07\x32\x05(\x80\x80\x80\x02\x12$\n\x0boutput_path\x18\x05 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x02\x88\x01\x01\x12#\n\x16\x63oncurrent_piece_count\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x13\n\x0bpiece_count\x18\x07 \x01(\x04\x42\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0e\n\x0c_output_pathB\x19\n\x17_concurrent_piece_count\"+\n)DownloadPersistentCachePeerStartedRequest\"\x97\x01\n$ReschedulePersistentCachePeerRequest\x12\x39\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x1e.common.v2.PersistentCachePeer\x12$\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"?\n*DownloadPersistentCachePeerFinishedRequestJ\x04\x08\x01\x10\x02R\x0bpiece_count\"`\n(DownloadPersistentCachePeerFailedRequest\x12$\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\xd1\x06\n\"AnnouncePersistentCachePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x62\n®ister_persistent_cache_peer_request\x18\x04 \x01(\x0b\x32\x30.scheduler.v2.RegisterPersistentCachePeerRequestH\x00\x12q\n.download_persistent_cache_peer_started_request\x18\x05 \x01(\x0b\x32\x37.scheduler.v2.DownloadPersistentCachePeerStartedRequestH\x00\x12\x66\n(reschedule_persistent_cache_peer_request\x18\x06 \x01(\x0b\x32\x32.scheduler.v2.ReschedulePersistentCachePeerRequestH\x00\x12s\n/download_persistent_cache_peer_finished_request\x18\x07 \x01(\x0b\x32\x38.scheduler.v2.DownloadPersistentCachePeerFinishedRequestH\x00\x12o\n-download_persistent_cache_peer_failed_request\x18\x08 \x01(\x0b\x32\x36.scheduler.v2.DownloadPersistentCachePeerFailedRequestH\x00\x12U\n\x1f\x64ownload_piece_finished_request\x18\t \x01(\x0b\x32*.scheduler.v2.DownloadPieceFinishedRequestH\x00\x12Q\n\x1d\x64ownload_piece_failed_request\x18\n \x01(\x0b\x32(.scheduler.v2.DownloadPieceFailedRequestH\x00\x42\x0e\n\x07request\x12\x03\xf8\x42\x01\"\"\n EmptyPersistentCacheTaskResponse\"h\n!NormalPersistentCacheTaskResponse\x12\x43\n\x11\x63\x61ndidate_parents\x18\x01 \x03(\x0b\x32\x1e.common.v2.PersistentCachePeerB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\"\xf8\x01\n#AnnouncePersistentCachePeerResponse\x12^\n$empty_persistent_cache_task_response\x18\x01 \x01(\x0b\x32..scheduler.v2.EmptyPersistentCacheTaskResponseH\x00\x12`\n%normal_persistent_cache_task_response\x18\x02 \x01(\x0b\x32/.scheduler.v2.NormalPersistentCacheTaskResponseH\x00\x42\x0f\n\x08response\x12\x03\xf8\x42\x01\"n\n\x1eStatPersistentCachePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"p\n DeletePersistentCachePeerRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\xf0\x02\n\'UploadPersistentCacheTaskStartedRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12)\n\x18persistent_replica_count\x18\x04 \x01(\x04\x42\x07\xfa\x42\x04\x32\x02(\x01\x12\x10\n\x03tag\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x06 \x01(\tH\x01\x88\x01\x01\x12 \n\x0cpiece_length\x18\x07 \x01(\x04\x42\n\xfa\x42\x07\x32\x05(\x80\x80\x80\x02\x12\x16\n\x0e\x63ontent_length\x18\x08 \x01(\x04\x12\x13\n\x0bpiece_count\x18\t \x01(\r\x12\x39\n\x03ttl\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xfa\x42\x0e\xaa\x01\x0b\"\x04\x08\x80\xf5$2\x03\x08\xac\x02\x42\x06\n\x04_tagB\x0e\n\x0c_application\"x\n(UploadPersistentCacheTaskFinishedRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\xac\x01\n&UploadPersistentCacheTaskFailedRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07peer_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12$\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_description\"T\n\x1eStatPersistentCacheTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"V\n DeletePersistentCacheTaskRequest\x12\x18\n\x07host_id\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12\x18\n\x07task_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\"\x99\x07\n\x13PreheatImageRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12,\n\x0cpiece_length\x18\x02 \x01(\x04\x42\x11\xfa\x42\x0e\x32\x0c\x18\x80\x80\x80 (\x80\x80\x80\x02@\x01H\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x05 \x03(\t\x12=\n\x06header\x18\x06 \x03(\x0b\x32-.scheduler.v2.PreheatImageRequest.HeaderEntry\x12\x15\n\x08username\x18\x07 \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08password\x18\x08 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08platform\x18\t \x01(\tH\x05\x88\x01\x01\x12\x43\n\x05scope\x18\n \x01(\tB4\xfa\x42\x31r/2-^(single_seed_peer|all_seed_peers|all_peers)$\x12\x0b\n\x03ips\x18\x0b \x03(\t\x12$\n\npercentage\x18\x0c \x01(\rB\x0b\xfa\x42\x08*\x06\x18\x64(\x01@\x01H\x06\x88\x01\x01\x12 \n\x05\x63ount\x18\r \x01(\rB\x0c\xfa\x42\t*\x07\x18\xc8\x01(\x01@\x01H\x07\x88\x01\x01\x12/\n\x15\x63oncurrent_task_count\x18\x0e \x01(\x03\x42\x0b\xfa\x42\x08\"\x06\x18\x64(\x01@\x01H\x08\x88\x01\x01\x12\x30\n\x15\x63oncurrent_peer_count\x18\x0f \x01(\x03\x42\x0c\xfa\x42\t\"\x07\x18\xe8\x07(\x01@\x01H\t\x88\x01\x01\x12/\n\x07timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.DurationH\n\x88\x01\x01\x12/\n\x08priority\x18\x11 \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x11\x63\x65rtificate_chain\x18\x12 \x03(\x0c\x12\x1c\n\x14insecure_skip_verify\x18\x13 \x01(\x08\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_piece_lengthB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0b\n\t_usernameB\x0b\n\t_passwordB\x0b\n\t_platformB\r\n\x0b_percentageB\x08\n\x06_countB\x18\n\x16_concurrent_task_countB\x18\n\x16_concurrent_peer_countB\n\n\x08_timeout\"\xb1\x05\n\x10StatImageRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12,\n\x0cpiece_length\x18\x02 \x01(\x04\x42\x11\xfa\x42\x0e\x32\x0c\x18\x80\x80\x80 (\x80\x80\x80\x02@\x01H\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x05 \x03(\t\x12:\n\x06header\x18\x06 \x03(\x0b\x32*.scheduler.v2.StatImageRequest.HeaderEntry\x12\x15\n\x08username\x18\x07 \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08password\x18\x08 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08platform\x18\t \x01(\tH\x05\x88\x01\x01\x12\x30\n\x16\x63oncurrent_layer_count\x18\n \x01(\x03\x42\x0b\xfa\x42\x08\"\x06\x18\x64(\x01@\x01H\x06\x88\x01\x01\x12\x30\n\x15\x63oncurrent_peer_count\x18\x0b \x01(\x03\x42\x0c\xfa\x42\t\"\x07\x18\xe8\x07(\x01@\x01H\x07\x88\x01\x01\x12/\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationH\x08\x88\x01\x01\x12\x19\n\x11\x63\x65rtificate_chain\x18\r \x03(\x0c\x12\x1c\n\x14insecure_skip_verify\x18\x0e \x01(\x08\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_piece_lengthB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x0b\n\t_usernameB\x0b\n\t_passwordB\x0b\n\t_platformB\x19\n\x17_concurrent_layer_countB\x18\n\x16_concurrent_peer_countB\n\n\x08_timeout\"_\n\x11StatImageResponse\x12\"\n\x05image\x18\x01 \x01(\x0b\x32\x13.scheduler.v2.Image\x12&\n\x05peers\x18\x02 \x03(\x0b\x32\x17.scheduler.v2.PeerImage\"g\n\tPeerImage\x12\x13\n\x02ip\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02p\x01\x12\x19\n\x08hostname\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01\x12*\n\rcached_layers\x18\x03 \x03(\x0b\x32\x13.scheduler.v2.Layer\",\n\x05Image\x12#\n\x06layers\x18\x01 \x03(\x0b\x32\x13.scheduler.v2.Layer\"H\n\x05Layer\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\x18\n\x0bis_finished\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x0e\n\x0c_is_finished\"\xd8\x07\n\x12PreheatFileRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12,\n\x0cpiece_length\x18\x02 \x01(\x04\x42\x11\xfa\x42\x0e\x32\x0c\x18\x80\x80\x80 (\x80\x80\x80\x02@\x01H\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x05 \x03(\t\x12<\n\x06header\x18\x06 \x03(\x0b\x32,.scheduler.v2.PreheatFileRequest.HeaderEntry\x12\x43\n\x05scope\x18\x07 \x01(\tB4\xfa\x42\x31r/2-^(single_seed_peer|all_seed_peers|all_peers)$\x12\x0b\n\x03ips\x18\x08 \x03(\t\x12$\n\npercentage\x18\t \x01(\rB\x0b\xfa\x42\x08*\x06\x18\x64(\x01@\x01H\x03\x88\x01\x01\x12 \n\x05\x63ount\x18\n \x01(\rB\x0c\xfa\x42\t*\x07\x18\xc8\x01(\x01@\x01H\x04\x88\x01\x01\x12/\n\x15\x63oncurrent_task_count\x18\x0b \x01(\x03\x42\x0b\xfa\x42\x08\"\x06\x18\x64(\x01@\x01H\x05\x88\x01\x01\x12\x30\n\x15\x63oncurrent_peer_count\x18\x0c \x01(\x03\x42\x0c\xfa\x42\t\"\x07\x18\xe8\x07(\x01@\x01H\x06\x88\x01\x01\x12/\n\x07timeout\x18\r \x01(\x0b\x32\x19.google.protobuf.DurationH\x07\x88\x01\x01\x12/\n\x08priority\x18\x0e \x01(\x0e\x32\x13.common.v2.PriorityB\x08\xfa\x42\x05\x82\x01\x02\x10\x01\x12\x19\n\x11\x63\x65rtificate_chain\x18\x0f \x03(\x0c\x12\x1c\n\x14insecure_skip_verify\x18\x10 \x01(\x08\x12\x35\n\x0eobject_storage\x18\x11 \x01(\x0b\x32\x18.common.v2.ObjectStorageH\x08\x88\x01\x01\x12\"\n\x04hdfs\x18\x12 \x01(\x0b\x32\x0f.common.v2.HDFSH\t\x88\x01\x01\x12$\n\x0boutput_path\x18\x13 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\xd0\x01\x01H\n\x88\x01\x01\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_piece_lengthB\x06\n\x04_tagB\x0e\n\x0c_applicationB\r\n\x0b_percentageB\x08\n\x06_countB\x18\n\x16_concurrent_task_countB\x18\n\x16_concurrent_peer_countB\n\n\x08_timeoutB\x11\n\x0f_object_storageB\x07\n\x05_hdfsB\x0e\n\x0c_output_path\"\xed\x04\n\x0fStatFileRequest\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12,\n\x0cpiece_length\x18\x02 \x01(\x04\x42\x11\xfa\x42\x0e\x32\x0c\x18\x80\x80\x80 (\x80\x80\x80\x02@\x01H\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x61pplication\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x15\x66iltered_query_params\x18\x05 \x03(\t\x12\x39\n\x06header\x18\x06 \x03(\x0b\x32).scheduler.v2.StatFileRequest.HeaderEntry\x12\x30\n\x15\x63oncurrent_peer_count\x18\x07 \x01(\x03\x42\x0c\xfa\x42\t\"\x07\x18\xe8\x07(\x01@\x01H\x03\x88\x01\x01\x12/\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x04\x88\x01\x01\x12\x19\n\x11\x63\x65rtificate_chain\x18\t \x03(\x0c\x12\x1c\n\x14insecure_skip_verify\x18\n \x01(\x08\x12\x35\n\x0eobject_storage\x18\x0b \x01(\x0b\x32\x18.common.v2.ObjectStorageH\x05\x88\x01\x01\x12\"\n\x04hdfs\x18\x0c \x01(\x0b\x32\x0f.common.v2.HDFSH\x06\x88\x01\x01\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_piece_lengthB\x06\n\x04_tagB\x0e\n\x0c_applicationB\x18\n\x16_concurrent_peer_countB\n\n\x08_timeoutB\x11\n\x0f_object_storageB\x07\n\x05_hdfs\"9\n\x10StatFileResponse\x12%\n\x05peers\x18\x01 \x03(\x0b\x32\x16.scheduler.v2.PeerFile\"R\n\x08PeerFile\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x10\n\x08hostname\x18\x02 \x01(\t\x12(\n\x0c\x63\x61\x63hed_files\x18\x03 \x03(\x0b\x32\x12.scheduler.v2.File\"G\n\x04\x46ile\x12\x15\n\x03url\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\x88\x01\x01\x12\x18\n\x0bis_finished\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x0e\n\x0c_is_finished2\xc2\x17\n\tScheduler\x12Y\n\x0c\x41nnouncePeer\x12!.scheduler.v2.AnnouncePeerRequest\x1a\".scheduler.v2.AnnouncePeerResponse(\x01\x30\x01\x12:\n\x08StatPeer\x12\x1d.scheduler.v2.StatPeerRequest\x1a\x0f.common.v2.Peer\x12\x45\n\nDeletePeer\x12\x1f.scheduler.v2.DeletePeerRequest\x1a\x16.google.protobuf.Empty\x12:\n\x08StatTask\x12\x1d.scheduler.v2.StatTaskRequest\x1a\x0f.common.v2.Task\x12\x45\n\nDeleteTask\x12\x1f.scheduler.v2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\x12I\n\x0c\x41nnounceHost\x12!.scheduler.v2.AnnounceHostRequest\x1a\x16.google.protobuf.Empty\x12L\n\tListHosts\x12\x1e.scheduler.v2.ListHostsRequest\x1a\x1f.scheduler.v2.ListHostsResponse\x12\x45\n\nDeleteHost\x12\x1f.scheduler.v2.DeleteHostRequest\x1a\x16.google.protobuf.Empty\x12h\n\x11\x41nnounceCachePeer\x12&.scheduler.v2.AnnounceCachePeerRequest\x1a\'.scheduler.v2.AnnounceCachePeerResponse(\x01\x30\x01\x12I\n\rStatCachePeer\x12\".scheduler.v2.StatCachePeerRequest\x1a\x14.common.v2.CachePeer\x12O\n\x0f\x44\x65leteCachePeer\x12$.scheduler.v2.DeleteCachePeerRequest\x1a\x16.google.protobuf.Empty\x12I\n\rStatCacheTask\x12\".scheduler.v2.StatCacheTaskRequest\x1a\x14.common.v2.CacheTask\x12O\n\x0f\x44\x65leteCacheTask\x12$.scheduler.v2.DeleteCacheTaskRequest\x1a\x16.google.protobuf.Empty\x12w\n\x16\x41nnouncePersistentPeer\x12+.scheduler.v2.AnnouncePersistentPeerRequest\x1a,.scheduler.v2.AnnouncePersistentPeerResponse(\x01\x30\x01\x12X\n\x12StatPersistentPeer\x12\'.scheduler.v2.StatPersistentPeerRequest\x1a\x19.common.v2.PersistentPeer\x12Y\n\x14\x44\x65letePersistentPeer\x12).scheduler.v2.DeletePersistentPeerRequest\x1a\x16.google.protobuf.Empty\x12g\n\x1bUploadPersistentTaskStarted\x12\x30.scheduler.v2.UploadPersistentTaskStartedRequest\x1a\x16.google.protobuf.Empty\x12l\n\x1cUploadPersistentTaskFinished\x12\x31.scheduler.v2.UploadPersistentTaskFinishedRequest\x1a\x19.common.v2.PersistentTask\x12\x65\n\x1aUploadPersistentTaskFailed\x12/.scheduler.v2.UploadPersistentTaskFailedRequest\x1a\x16.google.protobuf.Empty\x12X\n\x12StatPersistentTask\x12\'.scheduler.v2.StatPersistentTaskRequest\x1a\x19.common.v2.PersistentTask\x12Y\n\x14\x44\x65letePersistentTask\x12).scheduler.v2.DeletePersistentTaskRequest\x1a\x16.google.protobuf.Empty\x12\x86\x01\n\x1b\x41nnouncePersistentCachePeer\x12\x30.scheduler.v2.AnnouncePersistentCachePeerRequest\x1a\x31.scheduler.v2.AnnouncePersistentCachePeerResponse(\x01\x30\x01\x12g\n\x17StatPersistentCachePeer\x12,.scheduler.v2.StatPersistentCachePeerRequest\x1a\x1e.common.v2.PersistentCachePeer\x12\x63\n\x19\x44\x65letePersistentCachePeer\x12..scheduler.v2.DeletePersistentCachePeerRequest\x1a\x16.google.protobuf.Empty\x12q\n UploadPersistentCacheTaskStarted\x12\x35.scheduler.v2.UploadPersistentCacheTaskStartedRequest\x1a\x16.google.protobuf.Empty\x12{\n!UploadPersistentCacheTaskFinished\x12\x36.scheduler.v2.UploadPersistentCacheTaskFinishedRequest\x1a\x1e.common.v2.PersistentCacheTask\x12o\n\x1fUploadPersistentCacheTaskFailed\x12\x34.scheduler.v2.UploadPersistentCacheTaskFailedRequest\x1a\x16.google.protobuf.Empty\x12g\n\x17StatPersistentCacheTask\x12,.scheduler.v2.StatPersistentCacheTaskRequest\x1a\x1e.common.v2.PersistentCacheTask\x12\x63\n\x19\x44\x65letePersistentCacheTask\x12..scheduler.v2.DeletePersistentCacheTaskRequest\x1a\x16.google.protobuf.Empty\x12I\n\x0cPreheatImage\x12!.scheduler.v2.PreheatImageRequest\x1a\x16.google.protobuf.Empty\x12L\n\tStatImage\x12\x1e.scheduler.v2.StatImageRequest\x1a\x1f.scheduler.v2.StatImageResponse\x12G\n\x0bPreheatFile\x12 .scheduler.v2.PreheatFileRequest\x1a\x16.google.protobuf.Empty\x12I\n\x08StatFile\x12\x1d.scheduler.v2.StatFileRequest\x1a\x1e.scheduler.v2.StatFileResponseB/Z-d7y.io/api/v2/pkg/apis/scheduler/v2;schedulerb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pkg.apis.scheduler.v2.scheduler_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-d7y.io/api/v2/pkg/apis/scheduler/v2;scheduler' + _REGISTERPEERREQUEST.fields_by_name['download']._options = None + _REGISTERPEERREQUEST.fields_by_name['download']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADPEERBACKTOSOURCESTARTEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPEERBACKTOSOURCESTARTEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _RESCHEDULEPEERREQUEST.fields_by_name['description']._options = None + _RESCHEDULEPEERREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPEERFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPEERFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPEERBACKTOSOURCEFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPEERBACKTOSOURCEFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPIECEFINISHEDREQUEST.fields_by_name['piece']._options = None + _DOWNLOADPIECEFINISHEDREQUEST.fields_by_name['piece']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADPIECEBACKTOSOURCEFINISHEDREQUEST.fields_by_name['piece']._options = None + _DOWNLOADPIECEBACKTOSOURCEFINISHEDREQUEST.fields_by_name['piece']._serialized_options = b'\372B\005\212\001\002\020\001' + _DOWNLOADPIECEFAILEDREQUEST.fields_by_name['parent_id']._options = None + _DOWNLOADPIECEFAILEDREQUEST.fields_by_name['parent_id']._serialized_options = b'\372B\004r\002\020\001' + _DOWNLOADPIECEBACKTOSOURCEFAILEDREQUEST.oneofs_by_name['response']._options = None + _DOWNLOADPIECEBACKTOSOURCEFAILEDREQUEST.oneofs_by_name['response']._serialized_options = b'\370B\001' + _ANNOUNCEPEERREQUEST.oneofs_by_name['request']._options = None + _ANNOUNCEPEERREQUEST.oneofs_by_name['request']._serialized_options = b'\370B\001' + _ANNOUNCEPEERREQUEST.fields_by_name['host_id']._options = None + _ANNOUNCEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEPEERREQUEST.fields_by_name['task_id']._options = None + _ANNOUNCEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEPEERREQUEST.fields_by_name['peer_id']._options = None + _ANNOUNCEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _NORMALTASKRESPONSE.fields_by_name['candidate_parents']._options = None + _NORMALTASKRESPONSE.fields_by_name['candidate_parents']._serialized_options = b'\372B\005\222\001\002\010\001' + _NEEDBACKTOSOURCERESPONSE.fields_by_name['description']._options = None + _NEEDBACKTOSOURCERESPONSE.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _ANNOUNCEPEERRESPONSE.oneofs_by_name['response']._options = None + _ANNOUNCEPEERRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _STATPEERREQUEST.fields_by_name['host_id']._options = None + _STATPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPEERREQUEST.fields_by_name['task_id']._options = None + _STATPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPEERREQUEST.fields_by_name['peer_id']._options = None + _STATPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPEERREQUEST.fields_by_name['host_id']._options = None + _DELETEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPEERREQUEST.fields_by_name['task_id']._options = None + _DELETEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPEERREQUEST.fields_by_name['peer_id']._options = None + _DELETEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _STATTASKREQUEST.fields_by_name['host_id']._options = None + _STATTASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATTASKREQUEST.fields_by_name['task_id']._options = None + _STATTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETETASKREQUEST.fields_by_name['host_id']._options = None + _DELETETASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETETASKREQUEST.fields_by_name['task_id']._options = None + _DELETETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEHOSTREQUEST.fields_by_name['host']._options = None + _ANNOUNCEHOSTREQUEST.fields_by_name['host']._serialized_options = b'\372B\005\212\001\002\020\001' + _DELETEHOSTREQUEST.fields_by_name['host_id']._options = None + _DELETEHOSTREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _REGISTERCACHEPEERREQUEST_REQUESTHEADERENTRY._options = None + _REGISTERCACHEPEERREQUEST_REQUESTHEADERENTRY._serialized_options = b'8\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['url']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['digest']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['digest']._serialized_options = b'\372B\216\001r\213\0012\205\001^(md5:[a-fA-F0-9]{32}|sha1:[a-fA-F0-9]{40}|sha256:[a-fA-F0-9]{64}|sha512:[a-fA-F0-9]{128}|blake3:[a-fA-F0-9]{64}|crc32:[a-fA-F0-9]+)$\320\001\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['type']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['type']._serialized_options = b'\372B\005\202\001\002\020\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['priority']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['piece_length']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0162\014\030\200\200\200 (\200\200\200\002@\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['output_path']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _REGISTERCACHEPEERREQUEST.fields_by_name['remote_ip']._options = None + _REGISTERCACHEPEERREQUEST.fields_by_name['remote_ip']._serialized_options = b'\372B\007r\005p\001\320\001\001' + _DOWNLOADCACHEPEERBACKTOSOURCESTARTEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADCACHEPEERBACKTOSOURCESTARTEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _RESCHEDULECACHEPEERREQUEST.fields_by_name['description']._options = None + _RESCHEDULECACHEPEERREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADCACHEPEERFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADCACHEPEERFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADCACHEPEERBACKTOSOURCEFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADCACHEPEERBACKTOSOURCEFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _ANNOUNCECACHEPEERREQUEST.oneofs_by_name['request']._options = None + _ANNOUNCECACHEPEERREQUEST.oneofs_by_name['request']._serialized_options = b'\370B\001' + _ANNOUNCECACHEPEERREQUEST.fields_by_name['host_id']._options = None + _ANNOUNCECACHEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCECACHEPEERREQUEST.fields_by_name['task_id']._options = None + _ANNOUNCECACHEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCECACHEPEERREQUEST.fields_by_name['peer_id']._options = None + _ANNOUNCECACHEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _NORMALCACHETASKRESPONSE.fields_by_name['candidate_parents']._options = None + _NORMALCACHETASKRESPONSE.fields_by_name['candidate_parents']._serialized_options = b'\372B\005\222\001\002\010\001' + _ANNOUNCECACHEPEERRESPONSE.oneofs_by_name['response']._options = None + _ANNOUNCECACHEPEERRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _STATCACHEPEERREQUEST.fields_by_name['host_id']._options = None + _STATCACHEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATCACHEPEERREQUEST.fields_by_name['task_id']._options = None + _STATCACHEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATCACHEPEERREQUEST.fields_by_name['peer_id']._options = None + _STATCACHEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETECACHEPEERREQUEST.fields_by_name['host_id']._options = None + _DELETECACHEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETECACHEPEERREQUEST.fields_by_name['task_id']._options = None + _DELETECACHEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETECACHEPEERREQUEST.fields_by_name['peer_id']._options = None + _DELETECACHEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _STATCACHETASKREQUEST.fields_by_name['host_id']._options = None + _STATCACHETASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATCACHETASKREQUEST.fields_by_name['task_id']._options = None + _STATCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETECACHETASKREQUEST.fields_by_name['host_id']._options = None + _DELETECACHETASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETECACHETASKREQUEST.fields_by_name['task_id']._options = None + _DELETECACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _REGISTERPERSISTENTPEERREQUEST.fields_by_name['url']._options = None + _REGISTERPERSISTENTPEERREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _REGISTERPERSISTENTPEERREQUEST.fields_by_name['object_storage']._options = None + _REGISTERPERSISTENTPEERREQUEST.fields_by_name['object_storage']._serialized_options = b'\372B\005\212\001\002\020\001' + _REGISTERPERSISTENTPEERREQUEST.fields_by_name['output_path']._options = None + _REGISTERPERSISTENTPEERREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPERSISTENTPEERBACKTOSOURCESTARTEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPERSISTENTPEERBACKTOSOURCESTARTEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _RESCHEDULEPERSISTENTPEERREQUEST.fields_by_name['description']._options = None + _RESCHEDULEPERSISTENTPEERREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPERSISTENTPEERFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPERSISTENTPEERFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPERSISTENTPEERBACKTOSOURCEFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPERSISTENTPEERBACKTOSOURCEFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _ANNOUNCEPERSISTENTPEERREQUEST.oneofs_by_name['request']._options = None + _ANNOUNCEPERSISTENTPEERREQUEST.oneofs_by_name['request']._serialized_options = b'\370B\001' + _ANNOUNCEPERSISTENTPEERREQUEST.fields_by_name['host_id']._options = None + _ANNOUNCEPERSISTENTPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEPERSISTENTPEERREQUEST.fields_by_name['task_id']._options = None + _ANNOUNCEPERSISTENTPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEPERSISTENTPEERREQUEST.fields_by_name['peer_id']._options = None + _ANNOUNCEPERSISTENTPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _NORMALPERSISTENTTASKRESPONSE.fields_by_name['candidate_parents']._options = None + _NORMALPERSISTENTTASKRESPONSE.fields_by_name['candidate_parents']._serialized_options = b'\372B\005\222\001\002\010\001' + _ANNOUNCEPERSISTENTPEERRESPONSE.oneofs_by_name['response']._options = None + _ANNOUNCEPERSISTENTPEERRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _STATPERSISTENTPEERREQUEST.fields_by_name['host_id']._options = None + _STATPERSISTENTPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTPEERREQUEST.fields_by_name['task_id']._options = None + _STATPERSISTENTPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTPEERREQUEST.fields_by_name['peer_id']._options = None + _STATPERSISTENTPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTPEERREQUEST.fields_by_name['host_id']._options = None + _DELETEPERSISTENTPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTPEERREQUEST.fields_by_name['task_id']._options = None + _DELETEPERSISTENTPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTPEERREQUEST.fields_by_name['peer_id']._options = None + _DELETEPERSISTENTPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['host_id']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['task_id']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['peer_id']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['url']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['object_storage']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['object_storage']._serialized_options = b'\372B\005\212\001\002\020\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['persistent_replica_count']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['persistent_replica_count']._serialized_options = b'\372B\0042\002(\001' + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['ttl']._options = None + _UPLOADPERSISTENTTASKSTARTEDREQUEST.fields_by_name['ttl']._serialized_options = b'\372B\016\252\001\013\"\004\010\200\365$2\003\010\254\002' + _UPLOADPERSISTENTTASKFINISHEDREQUEST.fields_by_name['host_id']._options = None + _UPLOADPERSISTENTTASKFINISHEDREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKFINISHEDREQUEST.fields_by_name['task_id']._options = None + _UPLOADPERSISTENTTASKFINISHEDREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKFINISHEDREQUEST.fields_by_name['peer_id']._options = None + _UPLOADPERSISTENTTASKFINISHEDREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['host_id']._options = None + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['task_id']._options = None + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['peer_id']._options = None + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['description']._options = None + _UPLOADPERSISTENTTASKFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _STATPERSISTENTTASKREQUEST.fields_by_name['host_id']._options = None + _STATPERSISTENTTASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTTASKREQUEST.fields_by_name['task_id']._options = None + _STATPERSISTENTTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTTASKREQUEST.fields_by_name['host_id']._options = None + _DELETEPERSISTENTTASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTTASKREQUEST.fields_by_name['task_id']._options = None + _DELETEPERSISTENTTASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _REGISTERPERSISTENTCACHEPEERREQUEST.fields_by_name['piece_length']._options = None + _REGISTERPERSISTENTCACHEPEERREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0072\005(\200\200\200\002' + _REGISTERPERSISTENTCACHEPEERREQUEST.fields_by_name['output_path']._options = None + _REGISTERPERSISTENTCACHEPEERREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _RESCHEDULEPERSISTENTCACHEPEERREQUEST.fields_by_name['description']._options = None + _RESCHEDULEPERSISTENTCACHEPEERREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _DOWNLOADPERSISTENTCACHEPEERFAILEDREQUEST.fields_by_name['description']._options = None + _DOWNLOADPERSISTENTCACHEPEERFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.oneofs_by_name['request']._options = None + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.oneofs_by_name['request']._serialized_options = b'\370B\001' + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.fields_by_name['host_id']._options = None + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.fields_by_name['task_id']._options = None + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.fields_by_name['peer_id']._options = None + _ANNOUNCEPERSISTENTCACHEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _NORMALPERSISTENTCACHETASKRESPONSE.fields_by_name['candidate_parents']._options = None + _NORMALPERSISTENTCACHETASKRESPONSE.fields_by_name['candidate_parents']._serialized_options = b'\372B\005\222\001\002\010\001' + _ANNOUNCEPERSISTENTCACHEPEERRESPONSE.oneofs_by_name['response']._options = None + _ANNOUNCEPERSISTENTCACHEPEERRESPONSE.oneofs_by_name['response']._serialized_options = b'\370B\001' + _STATPERSISTENTCACHEPEERREQUEST.fields_by_name['host_id']._options = None + _STATPERSISTENTCACHEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTCACHEPEERREQUEST.fields_by_name['task_id']._options = None + _STATPERSISTENTCACHEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTCACHEPEERREQUEST.fields_by_name['peer_id']._options = None + _STATPERSISTENTCACHEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTCACHEPEERREQUEST.fields_by_name['host_id']._options = None + _DELETEPERSISTENTCACHEPEERREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTCACHEPEERREQUEST.fields_by_name['task_id']._options = None + _DELETEPERSISTENTCACHEPEERREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTCACHEPEERREQUEST.fields_by_name['peer_id']._options = None + _DELETEPERSISTENTCACHEPEERREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['host_id']._options = None + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['task_id']._options = None + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['peer_id']._options = None + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['persistent_replica_count']._options = None + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['persistent_replica_count']._serialized_options = b'\372B\0042\002(\001' + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['piece_length']._options = None + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0072\005(\200\200\200\002' + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['ttl']._options = None + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST.fields_by_name['ttl']._serialized_options = b'\372B\016\252\001\013\"\004\010\200\365$2\003\010\254\002' + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST.fields_by_name['host_id']._options = None + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST.fields_by_name['task_id']._options = None + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST.fields_by_name['peer_id']._options = None + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['host_id']._options = None + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['task_id']._options = None + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['peer_id']._options = None + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['peer_id']._serialized_options = b'\372B\004r\002\020\001' + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['description']._options = None + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST.fields_by_name['description']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['host_id']._options = None + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._options = None + _STATPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['host_id']._options = None + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['host_id']._serialized_options = b'\372B\004r\002\020\001' + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._options = None + _DELETEPERSISTENTCACHETASKREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\004r\002\020\001' + _PREHEATIMAGEREQUEST_HEADERENTRY._options = None + _PREHEATIMAGEREQUEST_HEADERENTRY._serialized_options = b'8\001' + _PREHEATIMAGEREQUEST.fields_by_name['url']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _PREHEATIMAGEREQUEST.fields_by_name['piece_length']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0162\014\030\200\200\200 (\200\200\200\002@\001' + _PREHEATIMAGEREQUEST.fields_by_name['scope']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['scope']._serialized_options = b'\372B1r/2-^(single_seed_peer|all_seed_peers|all_peers)$' + _PREHEATIMAGEREQUEST.fields_by_name['percentage']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['percentage']._serialized_options = b'\372B\010*\006\030d(\001@\001' + _PREHEATIMAGEREQUEST.fields_by_name['count']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['count']._serialized_options = b'\372B\t*\007\030\310\001(\001@\001' + _PREHEATIMAGEREQUEST.fields_by_name['concurrent_task_count']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['concurrent_task_count']._serialized_options = b'\372B\010\"\006\030d(\001@\001' + _PREHEATIMAGEREQUEST.fields_by_name['concurrent_peer_count']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['concurrent_peer_count']._serialized_options = b'\372B\t\"\007\030\350\007(\001@\001' + _PREHEATIMAGEREQUEST.fields_by_name['priority']._options = None + _PREHEATIMAGEREQUEST.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _STATIMAGEREQUEST_HEADERENTRY._options = None + _STATIMAGEREQUEST_HEADERENTRY._serialized_options = b'8\001' + _STATIMAGEREQUEST.fields_by_name['url']._options = None + _STATIMAGEREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _STATIMAGEREQUEST.fields_by_name['piece_length']._options = None + _STATIMAGEREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0162\014\030\200\200\200 (\200\200\200\002@\001' + _STATIMAGEREQUEST.fields_by_name['concurrent_layer_count']._options = None + _STATIMAGEREQUEST.fields_by_name['concurrent_layer_count']._serialized_options = b'\372B\010\"\006\030d(\001@\001' + _STATIMAGEREQUEST.fields_by_name['concurrent_peer_count']._options = None + _STATIMAGEREQUEST.fields_by_name['concurrent_peer_count']._serialized_options = b'\372B\t\"\007\030\350\007(\001@\001' + _PEERIMAGE.fields_by_name['ip']._options = None + _PEERIMAGE.fields_by_name['ip']._serialized_options = b'\372B\004r\002p\001' + _PEERIMAGE.fields_by_name['hostname']._options = None + _PEERIMAGE.fields_by_name['hostname']._serialized_options = b'\372B\004r\002\020\001' + _LAYER.fields_by_name['url']._options = None + _LAYER.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _PREHEATFILEREQUEST_HEADERENTRY._options = None + _PREHEATFILEREQUEST_HEADERENTRY._serialized_options = b'8\001' + _PREHEATFILEREQUEST.fields_by_name['url']._options = None + _PREHEATFILEREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _PREHEATFILEREQUEST.fields_by_name['piece_length']._options = None + _PREHEATFILEREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0162\014\030\200\200\200 (\200\200\200\002@\001' + _PREHEATFILEREQUEST.fields_by_name['scope']._options = None + _PREHEATFILEREQUEST.fields_by_name['scope']._serialized_options = b'\372B1r/2-^(single_seed_peer|all_seed_peers|all_peers)$' + _PREHEATFILEREQUEST.fields_by_name['percentage']._options = None + _PREHEATFILEREQUEST.fields_by_name['percentage']._serialized_options = b'\372B\010*\006\030d(\001@\001' + _PREHEATFILEREQUEST.fields_by_name['count']._options = None + _PREHEATFILEREQUEST.fields_by_name['count']._serialized_options = b'\372B\t*\007\030\310\001(\001@\001' + _PREHEATFILEREQUEST.fields_by_name['concurrent_task_count']._options = None + _PREHEATFILEREQUEST.fields_by_name['concurrent_task_count']._serialized_options = b'\372B\010\"\006\030d(\001@\001' + _PREHEATFILEREQUEST.fields_by_name['concurrent_peer_count']._options = None + _PREHEATFILEREQUEST.fields_by_name['concurrent_peer_count']._serialized_options = b'\372B\t\"\007\030\350\007(\001@\001' + _PREHEATFILEREQUEST.fields_by_name['priority']._options = None + _PREHEATFILEREQUEST.fields_by_name['priority']._serialized_options = b'\372B\005\202\001\002\020\001' + _PREHEATFILEREQUEST.fields_by_name['output_path']._options = None + _PREHEATFILEREQUEST.fields_by_name['output_path']._serialized_options = b'\372B\007r\005\020\001\320\001\001' + _STATFILEREQUEST_HEADERENTRY._options = None + _STATFILEREQUEST_HEADERENTRY._serialized_options = b'8\001' + _STATFILEREQUEST.fields_by_name['url']._options = None + _STATFILEREQUEST.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _STATFILEREQUEST.fields_by_name['piece_length']._options = None + _STATFILEREQUEST.fields_by_name['piece_length']._serialized_options = b'\372B\0162\014\030\200\200\200 (\200\200\200\002@\001' + _STATFILEREQUEST.fields_by_name['concurrent_peer_count']._options = None + _STATFILEREQUEST.fields_by_name['concurrent_peer_count']._serialized_options = b'\372B\t\"\007\030\350\007(\001@\001' + _FILE.fields_by_name['url']._options = None + _FILE.fields_by_name['url']._serialized_options = b'\372B\005r\003\210\001\001' + _REGISTERPEERREQUEST._serialized_start=219 + _REGISTERPEERREQUEST._serialized_end=289 + _DOWNLOADPEERSTARTEDREQUEST._serialized_start=291 + _DOWNLOADPEERSTARTEDREQUEST._serialized_end=319 + _DOWNLOADPEERBACKTOSOURCESTARTEDREQUEST._serialized_start=321 + _DOWNLOADPEERBACKTOSOURCESTARTEDREQUEST._serialized_end=415 + _RESCHEDULEPEERREQUEST._serialized_start=417 + _RESCHEDULEPEERREQUEST._serialized_end=538 + _DOWNLOADPEERFINISHEDREQUEST._serialized_start=540 + _DOWNLOADPEERFINISHEDREQUEST._serialized_end=610 + _DOWNLOADPEERBACKTOSOURCEFINISHEDREQUEST._serialized_start=612 + _DOWNLOADPEERBACKTOSOURCEFINISHEDREQUEST._serialized_end=694 + _DOWNLOADPEERFAILEDREQUEST._serialized_start=696 + _DOWNLOADPEERFAILEDREQUEST._serialized_end=777 + _DOWNLOADPEERBACKTOSOURCEFAILEDREQUEST._serialized_start=779 + _DOWNLOADPEERBACKTOSOURCEFAILEDREQUEST._serialized_end=872 + _DOWNLOADPIECEFINISHEDREQUEST._serialized_start=874 + _DOWNLOADPIECEFINISHEDREQUEST._serialized_end=947 + _DOWNLOADPIECEBACKTOSOURCEFINISHEDREQUEST._serialized_start=949 + _DOWNLOADPIECEBACKTOSOURCEFINISHEDREQUEST._serialized_end=1034 + _DOWNLOADPIECEFAILEDREQUEST._serialized_start=1036 + _DOWNLOADPIECEFAILEDREQUEST._serialized_end=1155 + _DOWNLOADPIECEBACKTOSOURCEFAILEDREQUEST._serialized_start=1158 + _DOWNLOADPIECEBACKTOSOURCEFAILEDREQUEST._serialized_end=1349 + _ANNOUNCEPEERREQUEST._serialized_start=1352 + _ANNOUNCEPEERREQUEST._serialized_end=2580 + _EMPTYTASKRESPONSE._serialized_start=2582 + _EMPTYTASKRESPONSE._serialized_end=2601 + _NORMALTASKRESPONSE._serialized_start=2603 + _NORMALTASKRESPONSE._serialized_end=2677 + _NEEDBACKTOSOURCERESPONSE._serialized_start=2679 + _NEEDBACKTOSOURCERESPONSE._serialized_end=2759 + _ANNOUNCEPEERRESPONSE._serialized_start=2762 + _ANNOUNCEPEERRESPONSE._serialized_end=3011 + _STATPEERREQUEST._serialized_start=3013 + _STATPEERREQUEST._serialized_end=3108 + _DELETEPEERREQUEST._serialized_start=3110 + _DELETEPEERREQUEST._serialized_end=3207 + _STATTASKREQUEST._serialized_start=3209 + _STATTASKREQUEST._serialized_end=3278 + _DELETETASKREQUEST._serialized_start=3280 + _DELETETASKREQUEST._serialized_end=3351 + _ANNOUNCEHOSTREQUEST._serialized_start=3353 + _ANNOUNCEHOSTREQUEST._serialized_end=3478 + _LISTHOSTSREQUEST._serialized_start=3480 + _LISTHOSTSREQUEST._serialized_end=3526 + _LISTHOSTSRESPONSE._serialized_start=3528 + _LISTHOSTSRESPONSE._serialized_end=3579 + _DELETEHOSTREQUEST._serialized_start=3581 + _DELETEHOSTREQUEST._serialized_end=3626 + _REGISTERCACHEPEERREQUEST._serialized_start=3629 + _REGISTERCACHEPEERREQUEST._serialized_end=5062 + _REGISTERCACHEPEERREQUEST_REQUESTHEADERENTRY._serialized_start=4742 + _REGISTERCACHEPEERREQUEST_REQUESTHEADERENTRY._serialized_end=4794 + _DOWNLOADCACHEPEERSTARTEDREQUEST._serialized_start=5064 + _DOWNLOADCACHEPEERSTARTEDREQUEST._serialized_end=5097 + _DOWNLOADCACHEPEERBACKTOSOURCESTARTEDREQUEST._serialized_start=5099 + _DOWNLOADCACHEPEERBACKTOSOURCESTARTEDREQUEST._serialized_end=5198 + _RESCHEDULECACHEPEERREQUEST._serialized_start=5201 + _RESCHEDULECACHEPEERREQUEST._serialized_end=5332 + _DOWNLOADCACHEPEERFINISHEDREQUEST._serialized_start=5334 + _DOWNLOADCACHEPEERFINISHEDREQUEST._serialized_end=5409 + _DOWNLOADCACHEPEERBACKTOSOURCEFINISHEDREQUEST._serialized_start=5411 + _DOWNLOADCACHEPEERBACKTOSOURCEFINISHEDREQUEST._serialized_end=5498 + _DOWNLOADCACHEPEERFAILEDREQUEST._serialized_start=5500 + _DOWNLOADCACHEPEERFAILEDREQUEST._serialized_end=5586 + _DOWNLOADCACHEPEERBACKTOSOURCEFAILEDREQUEST._serialized_start=5588 + _DOWNLOADCACHEPEERBACKTOSOURCEFAILEDREQUEST._serialized_end=5686 + _ANNOUNCECACHEPEERREQUEST._serialized_start=5689 + _ANNOUNCECACHEPEERREQUEST._serialized_end=7010 + _EMPTYCACHETASKRESPONSE._serialized_start=7012 + _EMPTYCACHETASKRESPONSE._serialized_end=7036 + _NORMALCACHETASKRESPONSE._serialized_start=7038 + _NORMALCACHETASKRESPONSE._serialized_end=7122 + _ANNOUNCECACHEPEERRESPONSE._serialized_start=7125 + _ANNOUNCECACHEPEERRESPONSE._serialized_end=7401 + _STATCACHEPEERREQUEST._serialized_start=7403 + _STATCACHEPEERREQUEST._serialized_end=7503 + _DELETECACHEPEERREQUEST._serialized_start=7505 + _DELETECACHEPEERREQUEST._serialized_end=7607 + _STATCACHETASKREQUEST._serialized_start=7609 + _STATCACHETASKREQUEST._serialized_end=7683 + _DELETECACHETASKREQUEST._serialized_start=7685 + _DELETECACHETASKREQUEST._serialized_end=7761 + _REGISTERPERSISTENTPEERREQUEST._serialized_start=7764 + _REGISTERPERSISTENTPEERREQUEST._serialized_end=8066 + _DOWNLOADPERSISTENTPEERSTARTEDREQUEST._serialized_start=8068 + _DOWNLOADPERSISTENTPEERSTARTEDREQUEST._serialized_end=8106 + _DOWNLOADPERSISTENTPEERBACKTOSOURCESTARTEDREQUEST._serialized_start=8108 + _DOWNLOADPERSISTENTPEERBACKTOSOURCESTARTEDREQUEST._serialized_end=8212 + _RESCHEDULEPERSISTENTPEERREQUEST._serialized_start=8215 + _RESCHEDULEPERSISTENTPEERREQUEST._serialized_end=8356 + _DOWNLOADPERSISTENTPEERFINISHEDREQUEST._serialized_start=8358 + _DOWNLOADPERSISTENTPEERFINISHEDREQUEST._serialized_end=8397 + _DOWNLOADPERSISTENTPEERBACKTOSOURCEFINISHEDREQUEST._serialized_start=8399 + _DOWNLOADPERSISTENTPEERBACKTOSOURCEFINISHEDREQUEST._serialized_end=8450 + _DOWNLOADPERSISTENTPEERFAILEDREQUEST._serialized_start=8452 + _DOWNLOADPERSISTENTPEERFAILEDREQUEST._serialized_end=8543 + _DOWNLOADPERSISTENTPEERBACKTOSOURCEFAILEDREQUEST._serialized_start=8545 + _DOWNLOADPERSISTENTPEERBACKTOSOURCEFAILEDREQUEST._serialized_end=8648 + _ANNOUNCEPERSISTENTPEERREQUEST._serialized_start=8651 + _ANNOUNCEPERSISTENTPEERREQUEST._serialized_end=10059 + _EMPTYPERSISTENTTASKRESPONSE._serialized_start=10061 + _EMPTYPERSISTENTTASKRESPONSE._serialized_end=10090 + _NORMALPERSISTENTTASKRESPONSE._serialized_start=10092 + _NORMALPERSISTENTTASKRESPONSE._serialized_end=10186 + _ANNOUNCEPERSISTENTPEERRESPONSE._serialized_start=10189 + _ANNOUNCEPERSISTENTPEERRESPONSE._serialized_end=10490 + _STATPERSISTENTPEERREQUEST._serialized_start=10492 + _STATPERSISTENTPEERREQUEST._serialized_end=10597 + _DELETEPERSISTENTPEERREQUEST._serialized_start=10599 + _DELETEPERSISTENTPEERREQUEST._serialized_end=10706 + _UPLOADPERSISTENTTASKSTARTEDREQUEST._serialized_start=10709 + _UPLOADPERSISTENTTASKSTARTEDREQUEST._serialized_end=11053 + _UPLOADPERSISTENTTASKFINISHEDREQUEST._serialized_start=11055 + _UPLOADPERSISTENTTASKFINISHEDREQUEST._serialized_end=11170 + _UPLOADPERSISTENTTASKFAILEDREQUEST._serialized_start=11173 + _UPLOADPERSISTENTTASKFAILEDREQUEST._serialized_end=11340 + _STATPERSISTENTTASKREQUEST._serialized_start=11342 + _STATPERSISTENTTASKREQUEST._serialized_end=11421 + _DELETEPERSISTENTTASKREQUEST._serialized_start=11423 + _DELETEPERSISTENTTASKREQUEST._serialized_end=11504 + _REGISTERPERSISTENTCACHEPEERREQUEST._serialized_start=11507 + _REGISTERPERSISTENTCACHEPEERREQUEST._serialized_end=11804 + _DOWNLOADPERSISTENTCACHEPEERSTARTEDREQUEST._serialized_start=11806 + _DOWNLOADPERSISTENTCACHEPEERSTARTEDREQUEST._serialized_end=11849 + _RESCHEDULEPERSISTENTCACHEPEERREQUEST._serialized_start=11852 + _RESCHEDULEPERSISTENTCACHEPEERREQUEST._serialized_end=12003 + _DOWNLOADPERSISTENTCACHEPEERFINISHEDREQUEST._serialized_start=12005 + _DOWNLOADPERSISTENTCACHEPEERFINISHEDREQUEST._serialized_end=12068 + _DOWNLOADPERSISTENTCACHEPEERFAILEDREQUEST._serialized_start=12070 + _DOWNLOADPERSISTENTCACHEPEERFAILEDREQUEST._serialized_end=12166 + _ANNOUNCEPERSISTENTCACHEPEERREQUEST._serialized_start=12169 + _ANNOUNCEPERSISTENTCACHEPEERREQUEST._serialized_end=13018 + _EMPTYPERSISTENTCACHETASKRESPONSE._serialized_start=13020 + _EMPTYPERSISTENTCACHETASKRESPONSE._serialized_end=13054 + _NORMALPERSISTENTCACHETASKRESPONSE._serialized_start=13056 + _NORMALPERSISTENTCACHETASKRESPONSE._serialized_end=13160 + _ANNOUNCEPERSISTENTCACHEPEERRESPONSE._serialized_start=13163 + _ANNOUNCEPERSISTENTCACHEPEERRESPONSE._serialized_end=13411 + _STATPERSISTENTCACHEPEERREQUEST._serialized_start=13413 + _STATPERSISTENTCACHEPEERREQUEST._serialized_end=13523 + _DELETEPERSISTENTCACHEPEERREQUEST._serialized_start=13525 + _DELETEPERSISTENTCACHEPEERREQUEST._serialized_end=13637 + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST._serialized_start=13640 + _UPLOADPERSISTENTCACHETASKSTARTEDREQUEST._serialized_end=14008 + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST._serialized_start=14010 + _UPLOADPERSISTENTCACHETASKFINISHEDREQUEST._serialized_end=14130 + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST._serialized_start=14133 + _UPLOADPERSISTENTCACHETASKFAILEDREQUEST._serialized_end=14305 + _STATPERSISTENTCACHETASKREQUEST._serialized_start=14307 + _STATPERSISTENTCACHETASKREQUEST._serialized_end=14391 + _DELETEPERSISTENTCACHETASKREQUEST._serialized_start=14393 + _DELETEPERSISTENTCACHETASKREQUEST._serialized_end=14479 + _PREHEATIMAGEREQUEST._serialized_start=14482 + _PREHEATIMAGEREQUEST._serialized_end=15403 + _PREHEATIMAGEREQUEST_HEADERENTRY._serialized_start=15189 + _PREHEATIMAGEREQUEST_HEADERENTRY._serialized_end=15234 + _STATIMAGEREQUEST._serialized_start=15406 + _STATIMAGEREQUEST._serialized_end=16095 + _STATIMAGEREQUEST_HEADERENTRY._serialized_start=15189 + _STATIMAGEREQUEST_HEADERENTRY._serialized_end=15234 + _STATIMAGERESPONSE._serialized_start=16097 + _STATIMAGERESPONSE._serialized_end=16192 + _PEERIMAGE._serialized_start=16194 + _PEERIMAGE._serialized_end=16297 + _IMAGE._serialized_start=16299 + _IMAGE._serialized_end=16343 + _LAYER._serialized_start=16345 + _LAYER._serialized_end=16417 + _PREHEATFILEREQUEST._serialized_start=16420 + _PREHEATFILEREQUEST._serialized_end=17404 + _PREHEATFILEREQUEST_HEADERENTRY._serialized_start=15189 + _PREHEATFILEREQUEST_HEADERENTRY._serialized_end=15234 + _STATFILEREQUEST._serialized_start=17407 + _STATFILEREQUEST._serialized_end=18028 + _STATFILEREQUEST_HEADERENTRY._serialized_start=15189 + _STATFILEREQUEST_HEADERENTRY._serialized_end=15234 + _STATFILERESPONSE._serialized_start=18030 + _STATFILERESPONSE._serialized_end=18087 + _PEERFILE._serialized_start=18089 + _PEERFILE._serialized_end=18171 + _FILE._serialized_start=18173 + _FILE._serialized_end=18244 + _SCHEDULER._serialized_start=18247 + _SCHEDULER._serialized_end=21257 +# @@protoc_insertion_point(module_scope) diff --git a/python/api/scheduler_pb2_grpc.py b/python/api/scheduler_pb2_grpc.py new file mode 100644 index 0000000..e91b93d --- /dev/null +++ b/python/api/scheduler_pb2_grpc.py @@ -0,0 +1,1186 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from pkg.apis.common.v2 import common_pb2 as pkg_dot_apis_dot_common_dot_v2_dot_common__pb2 +from pkg.apis.scheduler.v2 import scheduler_pb2 as pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2 + + +class SchedulerStub(object): + """Scheduler RPC Service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.AnnouncePeer = channel.stream_stream( + '/scheduler.v2.Scheduler/AnnouncePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePeerResponse.FromString, + ) + self.StatPeer = channel.unary_unary( + '/scheduler.v2.Scheduler/StatPeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Peer.FromString, + ) + self.DeletePeer = channel.unary_unary( + '/scheduler.v2.Scheduler/DeletePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePeerRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatTask = channel.unary_unary( + '/scheduler.v2.Scheduler/StatTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.FromString, + ) + self.DeleteTask = channel.unary_unary( + '/scheduler.v2.Scheduler/DeleteTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.AnnounceHost = channel.unary_unary( + '/scheduler.v2.Scheduler/AnnounceHost', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceHostRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.ListHosts = channel.unary_unary( + '/scheduler.v2.Scheduler/ListHosts', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.ListHostsRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.ListHostsResponse.FromString, + ) + self.DeleteHost = channel.unary_unary( + '/scheduler.v2.Scheduler/DeleteHost', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteHostRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.AnnounceCachePeer = channel.stream_stream( + '/scheduler.v2.Scheduler/AnnounceCachePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceCachePeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceCachePeerResponse.FromString, + ) + self.StatCachePeer = channel.unary_unary( + '/scheduler.v2.Scheduler/StatCachePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatCachePeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CachePeer.FromString, + ) + self.DeleteCachePeer = channel.unary_unary( + '/scheduler.v2.Scheduler/DeleteCachePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteCachePeerRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatCacheTask = channel.unary_unary( + '/scheduler.v2.Scheduler/StatCacheTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.FromString, + ) + self.DeleteCacheTask = channel.unary_unary( + '/scheduler.v2.Scheduler/DeleteCacheTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteCacheTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.AnnouncePersistentPeer = channel.stream_stream( + '/scheduler.v2.Scheduler/AnnouncePersistentPeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentPeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentPeerResponse.FromString, + ) + self.StatPersistentPeer = channel.unary_unary( + '/scheduler.v2.Scheduler/StatPersistentPeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentPeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentPeer.FromString, + ) + self.DeletePersistentPeer = channel.unary_unary( + '/scheduler.v2.Scheduler/DeletePersistentPeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentPeerRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UploadPersistentTaskStarted = channel.unary_unary( + '/scheduler.v2.Scheduler/UploadPersistentTaskStarted', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskStartedRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UploadPersistentTaskFinished = channel.unary_unary( + '/scheduler.v2.Scheduler/UploadPersistentTaskFinished', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskFinishedRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + ) + self.UploadPersistentTaskFailed = channel.unary_unary( + '/scheduler.v2.Scheduler/UploadPersistentTaskFailed', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskFailedRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatPersistentTask = channel.unary_unary( + '/scheduler.v2.Scheduler/StatPersistentTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + ) + self.DeletePersistentTask = channel.unary_unary( + '/scheduler.v2.Scheduler/DeletePersistentTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.AnnouncePersistentCachePeer = channel.stream_stream( + '/scheduler.v2.Scheduler/AnnouncePersistentCachePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentCachePeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentCachePeerResponse.FromString, + ) + self.StatPersistentCachePeer = channel.unary_unary( + '/scheduler.v2.Scheduler/StatPersistentCachePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentCachePeerRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCachePeer.FromString, + ) + self.DeletePersistentCachePeer = channel.unary_unary( + '/scheduler.v2.Scheduler/DeletePersistentCachePeer', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentCachePeerRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UploadPersistentCacheTaskStarted = channel.unary_unary( + '/scheduler.v2.Scheduler/UploadPersistentCacheTaskStarted', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskStartedRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UploadPersistentCacheTaskFinished = channel.unary_unary( + '/scheduler.v2.Scheduler/UploadPersistentCacheTaskFinished', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskFinishedRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + ) + self.UploadPersistentCacheTaskFailed = channel.unary_unary( + '/scheduler.v2.Scheduler/UploadPersistentCacheTaskFailed', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskFailedRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatPersistentCacheTask = channel.unary_unary( + '/scheduler.v2.Scheduler/StatPersistentCacheTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentCacheTaskRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + ) + self.DeletePersistentCacheTask = channel.unary_unary( + '/scheduler.v2.Scheduler/DeletePersistentCacheTask', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentCacheTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.PreheatImage = channel.unary_unary( + '/scheduler.v2.Scheduler/PreheatImage', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.PreheatImageRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatImage = channel.unary_unary( + '/scheduler.v2.Scheduler/StatImage', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatImageRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatImageResponse.FromString, + ) + self.PreheatFile = channel.unary_unary( + '/scheduler.v2.Scheduler/PreheatFile', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.PreheatFileRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.StatFile = channel.unary_unary( + '/scheduler.v2.Scheduler/StatFile', + request_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatFileRequest.SerializeToString, + response_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatFileResponse.FromString, + ) + + +class SchedulerServicer(object): + """Scheduler RPC Service. + """ + + def AnnouncePeer(self, request_iterator, context): + """AnnouncePeer announces peer to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPeer(self, request, context): + """Checks information of peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePeer(self, request, context): + """DeletePeer releases peer in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatTask(self, request, context): + """Checks information of task. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteTask(self, request, context): + """DeleteTask releases task in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AnnounceHost(self, request, context): + """AnnounceHost announces host to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListHosts(self, request, context): + """ListHosts lists hosts in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteHost(self, request, context): + """DeleteHost releases host in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AnnounceCachePeer(self, request_iterator, context): + """AnnounceCachePeer announces cache peer to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatCachePeer(self, request, context): + """Checks information of cache peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteCachePeer(self, request, context): + """DeleteCachePeer releases cache peer in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatCacheTask(self, request, context): + """Checks information of cache task. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteCacheTask(self, request, context): + """DeleteCacheTask releases cache task in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AnnouncePersistentPeer(self, request_iterator, context): + """AnnouncePersistentPeer announces persistent peer to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentPeer(self, request, context): + """Checks information of persistent peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePersistentPeer(self, request, context): + """DeletePersistentPeer releases persistent peer in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentTaskStarted(self, request, context): + """UploadPersistentTaskStarted uploads persistent task started to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentTaskFinished(self, request, context): + """UploadPersistentTaskFinished uploads persistent task finished to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentTaskFailed(self, request, context): + """UploadPersistentTaskFailed uploads persistent task failed to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentTask(self, request, context): + """Checks information of persistent task. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePersistentTask(self, request, context): + """DeletePersistentTask releases persistent task in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AnnouncePersistentCachePeer(self, request_iterator, context): + """AnnouncePersistentCachePeer announces persistent cache peer to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentCachePeer(self, request, context): + """Checks information of persistent cache peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePersistentCachePeer(self, request, context): + """DeletePersistentCachePeer releases persistent cache peer in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentCacheTaskStarted(self, request, context): + """UploadPersistentCacheTaskStarted uploads persistent cache task started to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentCacheTaskFinished(self, request, context): + """UploadPersistentCacheTaskFinished uploads persistent cache task finished to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadPersistentCacheTaskFailed(self, request, context): + """UploadPersistentCacheTaskFailed uploads persistent cache task failed to scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatPersistentCacheTask(self, request, context): + """Checks information of persistent cache task. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeletePersistentCacheTask(self, request, context): + """DeletePersistentCacheTask releases persistent cache task in scheduler. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PreheatImage(self, request, context): + """PreheatImage synchronously resolves an image manifest and triggers an asynchronous preheat task. + + This is a blocking call. The RPC will not return until the server has completed the + initial synchronous work: resolving the image manifest and preparing all layer URLs. + + After this call successfully returns, a scheduler on the server begins the actual + preheating process, instructing peers to download the layers in the background. + + A successful response (google.protobuf.Empty) confirms that the preparation is complete + and the asynchronous download task has been scheduled. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatImage(self, request, context): + """StatImage provides detailed status for a container image's distribution in peers. + + This is a blocking call that first resolves the image manifest and then queries + all peers to collect the image's download state across the network. + The response includes both layer information and the status on each peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PreheatFile(self, request, context): + """PreheatFile synchronously resolves a file URL and triggers an asynchronous preheat task. + + This is a blocking call. The RPC will not return until the server has completed the + initial synchronous work: resolving the file URL. + + After this call successfully returns, a scheduler on the server begins the actual + preheating process, instructing peers to download the file in the background. + + A successful response (google.protobuf.Empty) confirms that the preparation is complete + and the asynchronous download task has been scheduled. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatFile(self, request, context): + """StatFile provides detailed status for a file's distribution in peers. + + This is a blocking call that first resolves the file URL and then queries + all peers to collect the file's download state across the network. + The response includes both file information and the status on each peer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SchedulerServicer_to_server(servicer, server): + rpc_method_handlers = { + 'AnnouncePeer': grpc.stream_stream_rpc_method_handler( + servicer.AnnouncePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePeerResponse.SerializeToString, + ), + 'StatPeer': grpc.unary_unary_rpc_method_handler( + servicer.StatPeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Peer.SerializeToString, + ), + 'DeletePeer': grpc.unary_unary_rpc_method_handler( + servicer.DeletePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePeerRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatTask': grpc.unary_unary_rpc_method_handler( + servicer.StatTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.SerializeToString, + ), + 'DeleteTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'AnnounceHost': grpc.unary_unary_rpc_method_handler( + servicer.AnnounceHost, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceHostRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'ListHosts': grpc.unary_unary_rpc_method_handler( + servicer.ListHosts, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.ListHostsRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.ListHostsResponse.SerializeToString, + ), + 'DeleteHost': grpc.unary_unary_rpc_method_handler( + servicer.DeleteHost, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteHostRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'AnnounceCachePeer': grpc.stream_stream_rpc_method_handler( + servicer.AnnounceCachePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceCachePeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceCachePeerResponse.SerializeToString, + ), + 'StatCachePeer': grpc.unary_unary_rpc_method_handler( + servicer.StatCachePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatCachePeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CachePeer.SerializeToString, + ), + 'DeleteCachePeer': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCachePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteCachePeerRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.StatCacheTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.SerializeToString, + ), + 'DeleteCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCacheTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteCacheTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'AnnouncePersistentPeer': grpc.stream_stream_rpc_method_handler( + servicer.AnnouncePersistentPeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentPeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentPeerResponse.SerializeToString, + ), + 'StatPersistentPeer': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentPeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentPeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentPeer.SerializeToString, + ), + 'DeletePersistentPeer': grpc.unary_unary_rpc_method_handler( + servicer.DeletePersistentPeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentPeerRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UploadPersistentTaskStarted': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentTaskStarted, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskStartedRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UploadPersistentTaskFinished': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentTaskFinished, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskFinishedRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.SerializeToString, + ), + 'UploadPersistentTaskFailed': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentTaskFailed, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskFailedRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatPersistentTask': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.SerializeToString, + ), + 'DeletePersistentTask': grpc.unary_unary_rpc_method_handler( + servicer.DeletePersistentTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'AnnouncePersistentCachePeer': grpc.stream_stream_rpc_method_handler( + servicer.AnnouncePersistentCachePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentCachePeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentCachePeerResponse.SerializeToString, + ), + 'StatPersistentCachePeer': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentCachePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentCachePeerRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCachePeer.SerializeToString, + ), + 'DeletePersistentCachePeer': grpc.unary_unary_rpc_method_handler( + servicer.DeletePersistentCachePeer, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentCachePeerRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UploadPersistentCacheTaskStarted': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentCacheTaskStarted, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskStartedRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UploadPersistentCacheTaskFinished': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentCacheTaskFinished, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskFinishedRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.SerializeToString, + ), + 'UploadPersistentCacheTaskFailed': grpc.unary_unary_rpc_method_handler( + servicer.UploadPersistentCacheTaskFailed, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskFailedRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatPersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.StatPersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentCacheTaskRequest.FromString, + response_serializer=pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.SerializeToString, + ), + 'DeletePersistentCacheTask': grpc.unary_unary_rpc_method_handler( + servicer.DeletePersistentCacheTask, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentCacheTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'PreheatImage': grpc.unary_unary_rpc_method_handler( + servicer.PreheatImage, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.PreheatImageRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatImage': grpc.unary_unary_rpc_method_handler( + servicer.StatImage, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatImageRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatImageResponse.SerializeToString, + ), + 'PreheatFile': grpc.unary_unary_rpc_method_handler( + servicer.PreheatFile, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.PreheatFileRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'StatFile': grpc.unary_unary_rpc_method_handler( + servicer.StatFile, + request_deserializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatFileRequest.FromString, + response_serializer=pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatFileResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'scheduler.v2.Scheduler', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Scheduler(object): + """Scheduler RPC Service. + """ + + @staticmethod + def AnnouncePeer(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/scheduler.v2.Scheduler/AnnouncePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePeerRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePeerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatPeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPeerRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Peer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeletePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePeerRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.Task.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeleteTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AnnounceHost(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/AnnounceHost', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceHostRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListHosts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/ListHosts', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.ListHostsRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.ListHostsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteHost(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeleteHost', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteHostRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AnnounceCachePeer(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/scheduler.v2.Scheduler/AnnounceCachePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceCachePeerRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnounceCachePeerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatCachePeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatCachePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatCachePeerRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CachePeer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteCachePeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeleteCachePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteCachePeerRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatCacheTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.CacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeleteCacheTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeleteCacheTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AnnouncePersistentPeer(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/scheduler.v2.Scheduler/AnnouncePersistentPeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentPeerRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentPeerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentPeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatPersistentPeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentPeerRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentPeer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePersistentPeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeletePersistentPeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentPeerRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentTaskStarted(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/UploadPersistentTaskStarted', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskStartedRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentTaskFinished(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/UploadPersistentTaskFinished', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskFinishedRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentTaskFailed(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/UploadPersistentTaskFailed', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentTaskFailedRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatPersistentTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePersistentTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeletePersistentTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AnnouncePersistentCachePeer(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/scheduler.v2.Scheduler/AnnouncePersistentCachePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentCachePeerRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.AnnouncePersistentCachePeerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentCachePeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatPersistentCachePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentCachePeerRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCachePeer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePersistentCachePeer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeletePersistentCachePeer', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentCachePeerRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentCacheTaskStarted(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/UploadPersistentCacheTaskStarted', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskStartedRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentCacheTaskFinished(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/UploadPersistentCacheTaskFinished', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskFinishedRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UploadPersistentCacheTaskFailed(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/UploadPersistentCacheTaskFailed', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.UploadPersistentCacheTaskFailedRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatPersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatPersistentCacheTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatPersistentCacheTaskRequest.SerializeToString, + pkg_dot_apis_dot_common_dot_v2_dot_common__pb2.PersistentCacheTask.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeletePersistentCacheTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/DeletePersistentCacheTask', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.DeletePersistentCacheTaskRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PreheatImage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/PreheatImage', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.PreheatImageRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatImage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatImage', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatImageRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatImageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PreheatFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/PreheatFile', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.PreheatFileRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/scheduler.v2.Scheduler/StatFile', + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatFileRequest.SerializeToString, + pkg_dot_apis_dot_scheduler_dot_v2_dot_scheduler__pb2.StatFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/pyproject.toml b/python/pyproject.toml new file mode 100644 index 0000000..910beb4 --- /dev/null +++ b/python/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "dragonfly-api" +version = "0.1.0" +description = "Python gRPC API dependency package for Dragonfly" +requires-python = ">=3.8" +dependencies = [ + "grpcio>=1.50", + "protobuf>=4.21", +] + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta"