80 lines
9.2 KiB
Python
80 lines
9.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: dcache.proto
|
|
# Protobuf Python Version: 4.25.0
|
|
"""Generated protocol buffer code."""
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
from google.protobuf import symbol_database as _symbol_database
|
|
from google.protobuf.internal import builder as _builder
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
|
|
|
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x64\x63\x61\x63he.proto\x12\x06\x64\x63\x61\x63he\"?\n\x05Level\x12\x1a\n\x11visitor_threshold\x18\xad\x02 \x01(\r\x12\x1a\n\x11\x64ifficulty_factor\x18\xae\x02 \x01(\r\")\n\x07\x44\x65\x66\x65nse\x12\x1e\n\x06levels\x18\x91\x03 \x03(\x0b\x32\r.dcache.Level\"@\n\x08MCaptcha\x12\x11\n\x08\x64uration\x18\xf6\x03 \x01(\x04\x12!\n\x07\x64\x65\x66\x65nse\x18\xf7\x03 \x01(\x0b\x32\x0f.dcache.Defense\"E\n\x11\x41\x64\x64\x43\x61ptchaRequest\x12\x0b\n\x02id\x18\xd9\x04 \x01(\t\x12#\n\x08mcaptcha\x18\xda\x04 \x01(\x0b\x32\x10.dcache.MCaptcha\"9\n\x14RenameCaptchaRequest\x12\r\n\x04name\x18\xbd\x05 \x01(\t\x12\x12\n\trename_to\x18\xbe\x05 \x01(\t\"_\n\x0f\x43\x61\x63hePowRequest\x12\x0f\n\x06string\x18\xa1\x06 \x01(\t\x12\x1a\n\x11\x64ifficulty_factor\x18\xa2\x06 \x01(\r\x12\x11\n\x08\x64uration\x18\xa3\x06 \x01(\x04\x12\x0c\n\x03key\x18\xa4\x06 \x01(\t\"E\n\x12\x43\x61\x63heResultRequest\x12\x0e\n\x05token\x18\xb1\x06 \x01(\t\x12\x0c\n\x03key\x18\xb2\x06 \x01(\t\x12\x11\n\x08\x64uration\x18\xb3\x06 \x01(\x04\",\n\x1a\x44\x65leteCaptchaResultRequest\x12\x0e\n\x05token\x18\xb5\x06 \x01(\t\"\x17\n\tCaptchaID\x12\n\n\x02id\x18\x01 \x01(\t\"\x12\n\x04PoID\x12\n\n\x02id\x18\x01 \x01(\t\"A\n\x10\x41\x64\x64VisitorResult\x12\x11\n\x08\x64uration\x18\x85\x07 \x01(\x04\x12\x1a\n\x11\x64ifficulty_factor\x18\x86\x07 \x01(\r\"S\n\x16OptionAddVisitorResult\x12.\n\x06result\x18\x8f\x07 \x01(\x0b\x32\x18.dcache.AddVisitorResultH\x00\x88\x01\x01\x42\t\n\x07_result\"\x1b\n\x0bRaftRequest\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\t\"(\n\tRaftReply\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"#\n\x07Learner\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0c\n\x04\x61\x64\x64r\x18\x02 \x01(\t\"\'\n\x15\x43\x61ptchaExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"+\n\x17GetVisitorCountResponse\x12\x10\n\x08visitors\x18\x01 \x01(\r\"`\n\x1dOptionGetVisitorCountResponse\x12\x34\n\x06result\x18\x01 \x01(\x0b\x32\x1f.dcache.GetVisitorCountResponseH\x00\x88\x01\x01\x42\t\n\x07_result\"\x97\x03\n\rDcacheRequest\x12/\n\naddCaptcha\x18\x01 \x01(\x0b\x32\x19.dcache.AddCaptchaRequestH\x00\x12\'\n\naddVisitor\x18\x02 \x01(\x0b\x32\x11.dcache.CaptchaIDH\x00\x12\x35\n\rrenameCaptcha\x18\x03 \x01(\x0b\x32\x1c.dcache.RenameCaptchaRequestH\x00\x12*\n\rremoveCaptcha\x18\x04 \x01(\x0b\x32\x11.dcache.CaptchaIDH\x00\x12+\n\x08\x63\x61\x63hePow\x18\x05 \x01(\x0b\x32\x17.dcache.CachePowRequestH\x00\x12\x31\n\x0b\x63\x61\x63heResult\x18\x06 \x01(\x0b\x32\x1a.dcache.CacheResultRequestH\x00\x12*\n\rcaptchaExists\x18\x07 \x01(\x0b\x32\x11.dcache.CaptchaIDH\x00\x12,\n\x0fgetVisitorCount\x18\x08 \x01(\x0b\x32\x11.dcache.CaptchaIDH\x00\x42\x0f\n\rDcacheRequest\"\x88\x02\n\x0e\x44\x63\x61\x63heResponse\x12\x43\n\x19option_add_visitor_result\x18\x01 \x01(\x0b\x32\x1e.dcache.OptionAddVisitorResultH\x00\x12\"\n\x05other\x18\x02 \x01(\x0b\x32\x11.dcache.RaftReplyH\x00\x12\x37\n\x0e\x63\x61ptcha_exists\x18\x03 \x01(\x0b\x32\x1d.dcache.CaptchaExistsResponseH\x00\x12\x42\n\x11get_visitor_count\x18\x04 \x01(\x0b\x32%.dcache.OptionGetVisitorCountResponseH\x00\x42\x10\n\x0e\x44\x63\x61\x63heResponse\"=\n\x12\x44\x63\x61\x63heBatchRequest\x12\'\n\x08requests\x18\x01 \x03(\x0b\x32\x15.dcache.DcacheRequest\"@\n\x13\x44\x63\x61\x63heBatchResponse\x12)\n\tresponses\x18\x01 \x03(\x0b\x32\x16.dcache.DcacheResponse\"0\n\x12RetrievePowRequest\x12\r\n\x05token\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"O\n\x13RetrievePowResponse\x12\x19\n\x11\x64ifficulty_factor\x18\x01 \x01(\r\x12\x10\n\x08\x64uration\x18\x02 \x01(\x04\x12\x0b\n\x03key\x18\x03 \x01(\t\")\n\x15\x43\x61ptchaResultVerified\x12\x10\n\x08verified\x18\x01 \x01(\x08\"\"\n\x10\x44\x65letePowRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"Z\n\x1bOptionalRetrievePoWResponse\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32\x1b.dcache.RetrievePowResponseH\x00\x88\x01\x01\x42\t\n\x07_result2\xdd\t\n\rDcacheService\x12<\n\nAddCaptcha\x12\x19.dcache.AddCaptchaRequest\x1a\x11.dcache.RaftReply\"\x00\x12\x41\n\nAddVisitor\x12\x11.dcache.CaptchaID\x1a\x1e.dcache.OptionAddVisitorResult\"\x00\x12\x42\n\rRenameCaptcha\x12\x1c.dcache.RenameCaptchaRequest\x1a\x11.dcache.RaftReply\"\x00\x12\x37\n\rRemoveCaptcha\x12\x11.dcache.CaptchaID\x1a\x11.dcache.RaftReply\"\x00\x12\x38\n\x08\x43\x61\x63hePow\x12\x17.dcache.CachePowRequest\x1a\x11.dcache.RaftReply\"\x00\x12P\n\x0bRetrievePow\x12\x1a.dcache.RetrievePowRequest\x1a#.dcache.OptionalRetrievePoWResponse\"\x00\x12:\n\tDeletePow\x12\x18.dcache.DeletePowRequest\x1a\x11.dcache.RaftReply\"\x00\x12>\n\x0b\x43\x61\x63heResult\x12\x1a.dcache.CacheResultRequest\x1a\x11.dcache.RaftReply\"\x00\x12R\n\x13VerifyCaptchaResult\x12\x1a.dcache.RetrievePowRequest\x1a\x1d.dcache.CaptchaResultVerified\"\x00\x12N\n\x13\x44\x65leteCaptchaResult\x12\".dcache.DeleteCaptchaResultRequest\x1a\x11.dcache.RaftReply\"\x00\x12\x43\n\rCaptchaExists\x12\x11.dcache.CaptchaID\x1a\x1d.dcache.CaptchaExistsResponse\"\x00\x12M\n\x0fGetVisitorCount\x12\x11.dcache.CaptchaID\x1a%.dcache.OptionGetVisitorCountResponse\"\x00\x12N\n\x11PipelineDcacheOps\x12\x1a.dcache.DcacheBatchRequest\x1a\x1b.dcache.DcacheBatchResponse\"\x00\x12\x32\n\nAddLearner\x12\x0f.dcache.Learner\x1a\x11.dcache.RaftReply\"\x00\x12\x31\n\x05Write\x12\x13.dcache.RaftRequest\x1a\x11.dcache.RaftReply\"\x00\x12\x33\n\x07\x46orward\x12\x13.dcache.RaftRequest\x1a\x11.dcache.RaftReply\"\x00\x12\x37\n\rAppendEntries\x12\x13.dcache.RaftRequest\x1a\x11.dcache.RaftReply\x12\x39\n\x0fInstallSnapshot\x12\x13.dcache.RaftRequest\x1a\x11.dcache.RaftReply\x12.\n\x04vote\x12\x13.dcache.RaftRequest\x1a\x11.dcache.RaftReplyb\x06proto3')
|
|
|
|
_globals = globals()
|
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dcache_pb2', _globals)
|
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
DESCRIPTOR._options = None
|
|
_globals['_LEVEL']._serialized_start=24
|
|
_globals['_LEVEL']._serialized_end=87
|
|
_globals['_DEFENSE']._serialized_start=89
|
|
_globals['_DEFENSE']._serialized_end=130
|
|
_globals['_MCAPTCHA']._serialized_start=132
|
|
_globals['_MCAPTCHA']._serialized_end=196
|
|
_globals['_ADDCAPTCHAREQUEST']._serialized_start=198
|
|
_globals['_ADDCAPTCHAREQUEST']._serialized_end=267
|
|
_globals['_RENAMECAPTCHAREQUEST']._serialized_start=269
|
|
_globals['_RENAMECAPTCHAREQUEST']._serialized_end=326
|
|
_globals['_CACHEPOWREQUEST']._serialized_start=328
|
|
_globals['_CACHEPOWREQUEST']._serialized_end=423
|
|
_globals['_CACHERESULTREQUEST']._serialized_start=425
|
|
_globals['_CACHERESULTREQUEST']._serialized_end=494
|
|
_globals['_DELETECAPTCHARESULTREQUEST']._serialized_start=496
|
|
_globals['_DELETECAPTCHARESULTREQUEST']._serialized_end=540
|
|
_globals['_CAPTCHAID']._serialized_start=542
|
|
_globals['_CAPTCHAID']._serialized_end=565
|
|
_globals['_POID']._serialized_start=567
|
|
_globals['_POID']._serialized_end=585
|
|
_globals['_ADDVISITORRESULT']._serialized_start=587
|
|
_globals['_ADDVISITORRESULT']._serialized_end=652
|
|
_globals['_OPTIONADDVISITORRESULT']._serialized_start=654
|
|
_globals['_OPTIONADDVISITORRESULT']._serialized_end=737
|
|
_globals['_RAFTREQUEST']._serialized_start=739
|
|
_globals['_RAFTREQUEST']._serialized_end=766
|
|
_globals['_RAFTREPLY']._serialized_start=768
|
|
_globals['_RAFTREPLY']._serialized_end=808
|
|
_globals['_LEARNER']._serialized_start=810
|
|
_globals['_LEARNER']._serialized_end=845
|
|
_globals['_CAPTCHAEXISTSRESPONSE']._serialized_start=847
|
|
_globals['_CAPTCHAEXISTSRESPONSE']._serialized_end=886
|
|
_globals['_GETVISITORCOUNTRESPONSE']._serialized_start=888
|
|
_globals['_GETVISITORCOUNTRESPONSE']._serialized_end=931
|
|
_globals['_OPTIONGETVISITORCOUNTRESPONSE']._serialized_start=933
|
|
_globals['_OPTIONGETVISITORCOUNTRESPONSE']._serialized_end=1029
|
|
_globals['_DCACHEREQUEST']._serialized_start=1032
|
|
_globals['_DCACHEREQUEST']._serialized_end=1439
|
|
_globals['_DCACHERESPONSE']._serialized_start=1442
|
|
_globals['_DCACHERESPONSE']._serialized_end=1706
|
|
_globals['_DCACHEBATCHREQUEST']._serialized_start=1708
|
|
_globals['_DCACHEBATCHREQUEST']._serialized_end=1769
|
|
_globals['_DCACHEBATCHRESPONSE']._serialized_start=1771
|
|
_globals['_DCACHEBATCHRESPONSE']._serialized_end=1835
|
|
_globals['_RETRIEVEPOWREQUEST']._serialized_start=1837
|
|
_globals['_RETRIEVEPOWREQUEST']._serialized_end=1885
|
|
_globals['_RETRIEVEPOWRESPONSE']._serialized_start=1887
|
|
_globals['_RETRIEVEPOWRESPONSE']._serialized_end=1966
|
|
_globals['_CAPTCHARESULTVERIFIED']._serialized_start=1968
|
|
_globals['_CAPTCHARESULTVERIFIED']._serialized_end=2009
|
|
_globals['_DELETEPOWREQUEST']._serialized_start=2011
|
|
_globals['_DELETEPOWREQUEST']._serialized_end=2045
|
|
_globals['_OPTIONALRETRIEVEPOWRESPONSE']._serialized_start=2047
|
|
_globals['_OPTIONALRETRIEVEPOWRESPONSE']._serialized_end=2137
|
|
_globals['_DCACHESERVICE']._serialized_start=2140
|
|
_globals['_DCACHESERVICE']._serialized_end=3385
|
|
# @@protoc_insertion_point(module_scope)
|