1
0

Persistence.cs 132 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. namespace Sirikata.Persistence.Protocol._PBJ_Internal {
  7. public static partial class Persistence {
  8. #region Extension registration
  9. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  10. }
  11. #endregion
  12. #region Static variables
  13. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor;
  14. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable;
  15. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor;
  16. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable;
  17. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor;
  18. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable;
  19. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor;
  20. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable;
  21. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor;
  22. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable;
  23. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor;
  24. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable;
  25. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor;
  26. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable;
  27. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor;
  28. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable;
  29. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor;
  30. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction, global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable;
  31. internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor;
  32. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Response, global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable;
  33. #endregion
  34. #region Descriptor
  35. public static pbd::FileDescriptor Descriptor {
  36. get { return descriptor; }
  37. }
  38. private static pbd::FileDescriptor descriptor;
  39. static Persistence() {
  40. byte[] descriptorData = global::System.Convert.FromBase64String(
  41. "ChFQZXJzaXN0ZW5jZS5wcm90bxIrU2lyaWthdGEuUGVyc2lzdGVuY2UuUHJv" +
  42. "dG9jb2wuX1BCSl9JbnRlcm5hbCJHCgpTdG9yYWdlS2V5EhMKC29iamVjdF91" +
  43. "dWlkGAkgASgMEhAKCGZpZWxkX2lkGAogASgEEhIKCmZpZWxkX25hbWUYCyAB" +
  44. "KAkiHAoMU3RvcmFnZVZhbHVlEgwKBGRhdGEYDCABKAwi/gEKDlN0b3JhZ2VF" +
  45. "bGVtZW50EhMKC29iamVjdF91dWlkGAkgASgMEhAKCGZpZWxkX2lkGAogASgE" +
  46. "EhIKCmZpZWxkX25hbWUYCyABKAkSDAoEZGF0YRgMIAEoDBINCgVpbmRleBgN" +
  47. "IAEoBRJfCg1yZXR1cm5fc3RhdHVzGA8gASgOMkguU2lyaWthdGEuUGVyc2lz" +
  48. "dGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVudC5S" +
  49. "ZXR1cm5TdGF0dXMiMwoMUmV0dXJuU3RhdHVzEg8KC0tFWV9NSVNTSU5HEAQS" +
  50. "EgoOSU5URVJOQUxfRVJST1IQBiLaAQoOQ29tcGFyZUVsZW1lbnQSEwoLb2Jq" +
  51. "ZWN0X3V1aWQYCSABKAwSEAoIZmllbGRfaWQYCiABKAQSEgoKZmllbGRfbmFt" +
  52. "ZRgLIAEoCRIMCgRkYXRhGAwgASgMEloKCmNvbXBhcmF0b3IYDiABKA4yRi5T" +
  53. "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLkNv" +
  54. "bXBhcmVFbGVtZW50LkNPTVBBUkFUT1IiIwoKQ09NUEFSQVRPUhIJCgVFUVVB" +
  55. "TBAAEgoKBk5FUVVBTBABIlgKClN0b3JhZ2VTZXQSSgoFcmVhZHMYCSADKAsy" +
  56. "Oy5TaXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFs" +
  57. "LlN0b3JhZ2VFbGVtZW50IlUKB1JlYWRTZXQSSgoFcmVhZHMYCSADKAsyOy5T" +
  58. "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLlN0" +
  59. "b3JhZ2VFbGVtZW50IlcKCFdyaXRlU2V0EksKBndyaXRlcxgKIAMoCzI7LlNp" +
  60. "cmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuU3Rv" +
  61. "cmFnZUVsZW1lbnQi5gEKDFJlYWRXcml0ZVNldBJKCgVyZWFkcxgJIAMoCzI7" +
  62. "LlNpcmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwu" +
  63. "U3RvcmFnZUVsZW1lbnQSSwoGd3JpdGVzGAogAygLMjsuU2lyaWthdGEuUGVy" +
  64. "c2lzdGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVu" +
  65. "dBIPCgdvcHRpb25zGA4gASgEIiwKE1JlYWRXcml0ZVNldE9wdGlvbnMSFQoR" +
  66. "UkVUVVJOX1JFQURfTkFNRVMQASK3AgoPTWluaXRyYW5zYWN0aW9uEkoKBXJl" +
  67. "YWRzGAkgAygLMjsuU2lyaWthdGEuUGVyc2lzdGVuY2UuUHJvdG9jb2wuX1BC" +
  68. "Sl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVudBJLCgZ3cml0ZXMYCiADKAsyOy5T" +
  69. "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLlN0" +
  70. "b3JhZ2VFbGVtZW50Ek0KCGNvbXBhcmVzGAsgAygLMjsuU2lyaWthdGEuUGVy" +
  71. "c2lzdGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5Db21wYXJlRWxlbWVu" +
  72. "dBIPCgdvcHRpb25zGA4gASgEIisKElRyYW5zYWN0aW9uT3B0aW9ucxIVChFS" +
  73. "RVRVUk5fUkVBRF9OQU1FUxABIp8CCghSZXNwb25zZRJKCgVyZWFkcxgJIAMo" +
  74. "CzI7LlNpcmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJu" +
  75. "YWwuU3RvcmFnZUVsZW1lbnQSWQoNcmV0dXJuX3N0YXR1cxgPIAEoDjJCLlNp" +
  76. "cmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuUmVz" +
  77. "cG9uc2UuUmV0dXJuU3RhdHVzImwKDFJldHVyblN0YXR1cxILCgdTVUNDRVNT" +
  78. "EAASEwoPREFUQUJBU0VfTE9DS0VEEAMSDwoLS0VZX01JU1NJTkcQBBIVChFD" +
  79. "T01QQVJJU09OX0ZBSUxFRBAFEhIKDklOVEVSTkFMX0VSUk9SEAY=");
  80. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  81. descriptor = root;
  82. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor = Descriptor.MessageTypes[0];
  83. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable =
  84. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor,
  85. new string[] { "ObjectUuid", "FieldId", "FieldName", });
  86. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor = Descriptor.MessageTypes[1];
  87. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable =
  88. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor,
  89. new string[] { "Data", });
  90. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor = Descriptor.MessageTypes[2];
  91. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable =
  92. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor,
  93. new string[] { "ObjectUuid", "FieldId", "FieldName", "Data", "Index", "ReturnStatus", });
  94. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor = Descriptor.MessageTypes[3];
  95. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable =
  96. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor,
  97. new string[] { "ObjectUuid", "FieldId", "FieldName", "Data", "Comparator", });
  98. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor = Descriptor.MessageTypes[4];
  99. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable =
  100. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor,
  101. new string[] { "Reads", });
  102. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor = Descriptor.MessageTypes[5];
  103. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable =
  104. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor,
  105. new string[] { "Reads", });
  106. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor = Descriptor.MessageTypes[6];
  107. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable =
  108. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor,
  109. new string[] { "Writes", });
  110. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor = Descriptor.MessageTypes[7];
  111. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable =
  112. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor,
  113. new string[] { "Reads", "Writes", "Options", });
  114. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor = Descriptor.MessageTypes[8];
  115. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable =
  116. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction, global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor,
  117. new string[] { "Reads", "Writes", "Compares", "Options", });
  118. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor = Descriptor.MessageTypes[9];
  119. internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable =
  120. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Response, global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor,
  121. new string[] { "Reads", "ReturnStatus", });
  122. return null;
  123. };
  124. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  125. new pbd::FileDescriptor[] {
  126. }, assigner);
  127. }
  128. #endregion
  129. }
  130. #region Messages
  131. public sealed partial class StorageKey : pb::GeneratedMessage<StorageKey, StorageKey.Builder> {
  132. private static readonly StorageKey defaultInstance = new Builder().BuildPartial();
  133. public static StorageKey DefaultInstance {
  134. get { return defaultInstance; }
  135. }
  136. public override StorageKey DefaultInstanceForType {
  137. get { return defaultInstance; }
  138. }
  139. protected override StorageKey ThisMessage {
  140. get { return this; }
  141. }
  142. public static pbd::MessageDescriptor Descriptor {
  143. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor; }
  144. }
  145. protected override pb::FieldAccess.FieldAccessorTable<StorageKey, StorageKey.Builder> InternalFieldAccessors {
  146. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable; }
  147. }
  148. public const int ObjectUuidFieldNumber = 9;
  149. private bool hasObjectUuid;
  150. private pb::ByteString objectUuid_ = pb::ByteString.Empty;
  151. public bool HasObjectUuid {
  152. get { return hasObjectUuid; }
  153. }
  154. public pb::ByteString ObjectUuid {
  155. get { return objectUuid_; }
  156. }
  157. public const int FieldIdFieldNumber = 10;
  158. private bool hasFieldId;
  159. private ulong fieldId_ = 0UL;
  160. public bool HasFieldId {
  161. get { return hasFieldId; }
  162. }
  163. [global::System.CLSCompliant(false)]
  164. public ulong FieldId {
  165. get { return fieldId_; }
  166. }
  167. public const int FieldNameFieldNumber = 11;
  168. private bool hasFieldName;
  169. private string fieldName_ = "";
  170. public bool HasFieldName {
  171. get { return hasFieldName; }
  172. }
  173. public string FieldName {
  174. get { return fieldName_; }
  175. }
  176. public override bool IsInitialized {
  177. get {
  178. return true;
  179. }
  180. }
  181. public override void WriteTo(pb::CodedOutputStream output) {
  182. if (HasObjectUuid) {
  183. output.WriteBytes(9, ObjectUuid);
  184. }
  185. if (HasFieldId) {
  186. output.WriteUInt64(10, FieldId);
  187. }
  188. if (HasFieldName) {
  189. output.WriteString(11, FieldName);
  190. }
  191. UnknownFields.WriteTo(output);
  192. }
  193. private int memoizedSerializedSize = -1;
  194. public override int SerializedSize {
  195. get {
  196. int size = memoizedSerializedSize;
  197. if (size != -1) return size;
  198. size = 0;
  199. if (HasObjectUuid) {
  200. size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid);
  201. }
  202. if (HasFieldId) {
  203. size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId);
  204. }
  205. if (HasFieldName) {
  206. size += pb::CodedOutputStream.ComputeStringSize(11, FieldName);
  207. }
  208. size += UnknownFields.SerializedSize;
  209. memoizedSerializedSize = size;
  210. return size;
  211. }
  212. }
  213. public static StorageKey ParseFrom(pb::ByteString data) {
  214. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  215. }
  216. public static StorageKey ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  217. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  218. }
  219. public static StorageKey ParseFrom(byte[] data) {
  220. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  221. }
  222. public static StorageKey ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  223. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  224. }
  225. public static StorageKey ParseFrom(global::System.IO.Stream input) {
  226. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  227. }
  228. public static StorageKey ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  229. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  230. }
  231. public static StorageKey ParseDelimitedFrom(global::System.IO.Stream input) {
  232. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  233. }
  234. public static StorageKey ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  235. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  236. }
  237. public static StorageKey ParseFrom(pb::CodedInputStream input) {
  238. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  239. }
  240. public static StorageKey ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  241. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  242. }
  243. public static Builder CreateBuilder() { return new Builder(); }
  244. public override Builder ToBuilder() { return CreateBuilder(this); }
  245. public override Builder CreateBuilderForType() { return new Builder(); }
  246. public static Builder CreateBuilder(StorageKey prototype) {
  247. return (Builder) new Builder().MergeFrom(prototype);
  248. }
  249. public sealed partial class Builder : pb::GeneratedBuilder<StorageKey, Builder> {
  250. protected override Builder ThisBuilder {
  251. get { return this; }
  252. }
  253. public Builder() {}
  254. StorageKey result = new StorageKey();
  255. protected override StorageKey MessageBeingBuilt {
  256. get { return result; }
  257. }
  258. public override Builder Clear() {
  259. result = new StorageKey();
  260. return this;
  261. }
  262. public override Builder Clone() {
  263. return new Builder().MergeFrom(result);
  264. }
  265. public override pbd::MessageDescriptor DescriptorForType {
  266. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Descriptor; }
  267. }
  268. public override StorageKey DefaultInstanceForType {
  269. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.DefaultInstance; }
  270. }
  271. public override StorageKey BuildPartial() {
  272. if (result == null) {
  273. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  274. }
  275. StorageKey returnMe = result;
  276. result = null;
  277. return returnMe;
  278. }
  279. public override Builder MergeFrom(pb::IMessage other) {
  280. if (other is StorageKey) {
  281. return MergeFrom((StorageKey) other);
  282. } else {
  283. base.MergeFrom(other);
  284. return this;
  285. }
  286. }
  287. public override Builder MergeFrom(StorageKey other) {
  288. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.DefaultInstance) return this;
  289. if (other.HasObjectUuid) {
  290. ObjectUuid = other.ObjectUuid;
  291. }
  292. if (other.HasFieldId) {
  293. FieldId = other.FieldId;
  294. }
  295. if (other.HasFieldName) {
  296. FieldName = other.FieldName;
  297. }
  298. this.MergeUnknownFields(other.UnknownFields);
  299. return this;
  300. }
  301. public override Builder MergeFrom(pb::CodedInputStream input) {
  302. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  303. }
  304. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  305. pb::UnknownFieldSet.Builder unknownFields = null;
  306. while (true) {
  307. uint tag = input.ReadTag();
  308. switch (tag) {
  309. case 0: {
  310. if (unknownFields != null) {
  311. this.UnknownFields = unknownFields.Build();
  312. }
  313. return this;
  314. }
  315. default: {
  316. if (pb::WireFormat.IsEndGroupTag(tag)) {
  317. if (unknownFields != null) {
  318. this.UnknownFields = unknownFields.Build();
  319. }
  320. return this;
  321. }
  322. if (unknownFields == null) {
  323. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  324. }
  325. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  326. break;
  327. }
  328. case 74: {
  329. ObjectUuid = input.ReadBytes();
  330. break;
  331. }
  332. case 80: {
  333. FieldId = input.ReadUInt64();
  334. break;
  335. }
  336. case 90: {
  337. FieldName = input.ReadString();
  338. break;
  339. }
  340. }
  341. }
  342. }
  343. public bool HasObjectUuid {
  344. get { return result.HasObjectUuid; }
  345. }
  346. public pb::ByteString ObjectUuid {
  347. get { return result.ObjectUuid; }
  348. set { SetObjectUuid(value); }
  349. }
  350. public Builder SetObjectUuid(pb::ByteString value) {
  351. pb::ThrowHelper.ThrowIfNull(value, "value");
  352. result.hasObjectUuid = true;
  353. result.objectUuid_ = value;
  354. return this;
  355. }
  356. public Builder ClearObjectUuid() {
  357. result.hasObjectUuid = false;
  358. result.objectUuid_ = pb::ByteString.Empty;
  359. return this;
  360. }
  361. public bool HasFieldId {
  362. get { return result.HasFieldId; }
  363. }
  364. [global::System.CLSCompliant(false)]
  365. public ulong FieldId {
  366. get { return result.FieldId; }
  367. set { SetFieldId(value); }
  368. }
  369. [global::System.CLSCompliant(false)]
  370. public Builder SetFieldId(ulong value) {
  371. result.hasFieldId = true;
  372. result.fieldId_ = value;
  373. return this;
  374. }
  375. public Builder ClearFieldId() {
  376. result.hasFieldId = false;
  377. result.fieldId_ = 0UL;
  378. return this;
  379. }
  380. public bool HasFieldName {
  381. get { return result.HasFieldName; }
  382. }
  383. public string FieldName {
  384. get { return result.FieldName; }
  385. set { SetFieldName(value); }
  386. }
  387. public Builder SetFieldName(string value) {
  388. pb::ThrowHelper.ThrowIfNull(value, "value");
  389. result.hasFieldName = true;
  390. result.fieldName_ = value;
  391. return this;
  392. }
  393. public Builder ClearFieldName() {
  394. result.hasFieldName = false;
  395. result.fieldName_ = "";
  396. return this;
  397. }
  398. }
  399. static StorageKey() {
  400. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  401. }
  402. }
  403. public sealed partial class StorageValue : pb::GeneratedMessage<StorageValue, StorageValue.Builder> {
  404. private static readonly StorageValue defaultInstance = new Builder().BuildPartial();
  405. public static StorageValue DefaultInstance {
  406. get { return defaultInstance; }
  407. }
  408. public override StorageValue DefaultInstanceForType {
  409. get { return defaultInstance; }
  410. }
  411. protected override StorageValue ThisMessage {
  412. get { return this; }
  413. }
  414. public static pbd::MessageDescriptor Descriptor {
  415. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor; }
  416. }
  417. protected override pb::FieldAccess.FieldAccessorTable<StorageValue, StorageValue.Builder> InternalFieldAccessors {
  418. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable; }
  419. }
  420. public const int DataFieldNumber = 12;
  421. private bool hasData;
  422. private pb::ByteString data_ = pb::ByteString.Empty;
  423. public bool HasData {
  424. get { return hasData; }
  425. }
  426. public pb::ByteString Data {
  427. get { return data_; }
  428. }
  429. public override bool IsInitialized {
  430. get {
  431. return true;
  432. }
  433. }
  434. public override void WriteTo(pb::CodedOutputStream output) {
  435. if (HasData) {
  436. output.WriteBytes(12, Data);
  437. }
  438. UnknownFields.WriteTo(output);
  439. }
  440. private int memoizedSerializedSize = -1;
  441. public override int SerializedSize {
  442. get {
  443. int size = memoizedSerializedSize;
  444. if (size != -1) return size;
  445. size = 0;
  446. if (HasData) {
  447. size += pb::CodedOutputStream.ComputeBytesSize(12, Data);
  448. }
  449. size += UnknownFields.SerializedSize;
  450. memoizedSerializedSize = size;
  451. return size;
  452. }
  453. }
  454. public static StorageValue ParseFrom(pb::ByteString data) {
  455. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  456. }
  457. public static StorageValue ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  458. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  459. }
  460. public static StorageValue ParseFrom(byte[] data) {
  461. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  462. }
  463. public static StorageValue ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  464. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  465. }
  466. public static StorageValue ParseFrom(global::System.IO.Stream input) {
  467. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  468. }
  469. public static StorageValue ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  470. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  471. }
  472. public static StorageValue ParseDelimitedFrom(global::System.IO.Stream input) {
  473. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  474. }
  475. public static StorageValue ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  476. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  477. }
  478. public static StorageValue ParseFrom(pb::CodedInputStream input) {
  479. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  480. }
  481. public static StorageValue ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  482. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  483. }
  484. public static Builder CreateBuilder() { return new Builder(); }
  485. public override Builder ToBuilder() { return CreateBuilder(this); }
  486. public override Builder CreateBuilderForType() { return new Builder(); }
  487. public static Builder CreateBuilder(StorageValue prototype) {
  488. return (Builder) new Builder().MergeFrom(prototype);
  489. }
  490. public sealed partial class Builder : pb::GeneratedBuilder<StorageValue, Builder> {
  491. protected override Builder ThisBuilder {
  492. get { return this; }
  493. }
  494. public Builder() {}
  495. StorageValue result = new StorageValue();
  496. protected override StorageValue MessageBeingBuilt {
  497. get { return result; }
  498. }
  499. public override Builder Clear() {
  500. result = new StorageValue();
  501. return this;
  502. }
  503. public override Builder Clone() {
  504. return new Builder().MergeFrom(result);
  505. }
  506. public override pbd::MessageDescriptor DescriptorForType {
  507. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Descriptor; }
  508. }
  509. public override StorageValue DefaultInstanceForType {
  510. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.DefaultInstance; }
  511. }
  512. public override StorageValue BuildPartial() {
  513. if (result == null) {
  514. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  515. }
  516. StorageValue returnMe = result;
  517. result = null;
  518. return returnMe;
  519. }
  520. public override Builder MergeFrom(pb::IMessage other) {
  521. if (other is StorageValue) {
  522. return MergeFrom((StorageValue) other);
  523. } else {
  524. base.MergeFrom(other);
  525. return this;
  526. }
  527. }
  528. public override Builder MergeFrom(StorageValue other) {
  529. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.DefaultInstance) return this;
  530. if (other.HasData) {
  531. Data = other.Data;
  532. }
  533. this.MergeUnknownFields(other.UnknownFields);
  534. return this;
  535. }
  536. public override Builder MergeFrom(pb::CodedInputStream input) {
  537. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  538. }
  539. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  540. pb::UnknownFieldSet.Builder unknownFields = null;
  541. while (true) {
  542. uint tag = input.ReadTag();
  543. switch (tag) {
  544. case 0: {
  545. if (unknownFields != null) {
  546. this.UnknownFields = unknownFields.Build();
  547. }
  548. return this;
  549. }
  550. default: {
  551. if (pb::WireFormat.IsEndGroupTag(tag)) {
  552. if (unknownFields != null) {
  553. this.UnknownFields = unknownFields.Build();
  554. }
  555. return this;
  556. }
  557. if (unknownFields == null) {
  558. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  559. }
  560. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  561. break;
  562. }
  563. case 98: {
  564. Data = input.ReadBytes();
  565. break;
  566. }
  567. }
  568. }
  569. }
  570. public bool HasData {
  571. get { return result.HasData; }
  572. }
  573. public pb::ByteString Data {
  574. get { return result.Data; }
  575. set { SetData(value); }
  576. }
  577. public Builder SetData(pb::ByteString value) {
  578. pb::ThrowHelper.ThrowIfNull(value, "value");
  579. result.hasData = true;
  580. result.data_ = value;
  581. return this;
  582. }
  583. public Builder ClearData() {
  584. result.hasData = false;
  585. result.data_ = pb::ByteString.Empty;
  586. return this;
  587. }
  588. }
  589. static StorageValue() {
  590. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  591. }
  592. }
  593. public sealed partial class StorageElement : pb::GeneratedMessage<StorageElement, StorageElement.Builder> {
  594. private static readonly StorageElement defaultInstance = new Builder().BuildPartial();
  595. public static StorageElement DefaultInstance {
  596. get { return defaultInstance; }
  597. }
  598. public override StorageElement DefaultInstanceForType {
  599. get { return defaultInstance; }
  600. }
  601. protected override StorageElement ThisMessage {
  602. get { return this; }
  603. }
  604. public static pbd::MessageDescriptor Descriptor {
  605. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor; }
  606. }
  607. protected override pb::FieldAccess.FieldAccessorTable<StorageElement, StorageElement.Builder> InternalFieldAccessors {
  608. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable; }
  609. }
  610. #region Nested types
  611. public static class Types {
  612. public enum ReturnStatus {
  613. KEY_MISSING = 4,
  614. INTERNAL_ERROR = 6,
  615. }
  616. }
  617. #endregion
  618. public const int ObjectUuidFieldNumber = 9;
  619. private bool hasObjectUuid;
  620. private pb::ByteString objectUuid_ = pb::ByteString.Empty;
  621. public bool HasObjectUuid {
  622. get { return hasObjectUuid; }
  623. }
  624. public pb::ByteString ObjectUuid {
  625. get { return objectUuid_; }
  626. }
  627. public const int FieldIdFieldNumber = 10;
  628. private bool hasFieldId;
  629. private ulong fieldId_ = 0UL;
  630. public bool HasFieldId {
  631. get { return hasFieldId; }
  632. }
  633. [global::System.CLSCompliant(false)]
  634. public ulong FieldId {
  635. get { return fieldId_; }
  636. }
  637. public const int FieldNameFieldNumber = 11;
  638. private bool hasFieldName;
  639. private string fieldName_ = "";
  640. public bool HasFieldName {
  641. get { return hasFieldName; }
  642. }
  643. public string FieldName {
  644. get { return fieldName_; }
  645. }
  646. public const int DataFieldNumber = 12;
  647. private bool hasData;
  648. private pb::ByteString data_ = pb::ByteString.Empty;
  649. public bool HasData {
  650. get { return hasData; }
  651. }
  652. public pb::ByteString Data {
  653. get { return data_; }
  654. }
  655. public const int IndexFieldNumber = 13;
  656. private bool hasIndex;
  657. private int index_ = 0;
  658. public bool HasIndex {
  659. get { return hasIndex; }
  660. }
  661. public int Index {
  662. get { return index_; }
  663. }
  664. public const int ReturnStatusFieldNumber = 15;
  665. private bool hasReturnStatus;
  666. private global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING;
  667. public bool HasReturnStatus {
  668. get { return hasReturnStatus; }
  669. }
  670. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus ReturnStatus {
  671. get { return returnStatus_; }
  672. }
  673. public override bool IsInitialized {
  674. get {
  675. return true;
  676. }
  677. }
  678. public override void WriteTo(pb::CodedOutputStream output) {
  679. if (HasObjectUuid) {
  680. output.WriteBytes(9, ObjectUuid);
  681. }
  682. if (HasFieldId) {
  683. output.WriteUInt64(10, FieldId);
  684. }
  685. if (HasFieldName) {
  686. output.WriteString(11, FieldName);
  687. }
  688. if (HasData) {
  689. output.WriteBytes(12, Data);
  690. }
  691. if (HasIndex) {
  692. output.WriteInt32(13, Index);
  693. }
  694. if (HasReturnStatus) {
  695. output.WriteEnum(15, (int) ReturnStatus);
  696. }
  697. UnknownFields.WriteTo(output);
  698. }
  699. private int memoizedSerializedSize = -1;
  700. public override int SerializedSize {
  701. get {
  702. int size = memoizedSerializedSize;
  703. if (size != -1) return size;
  704. size = 0;
  705. if (HasObjectUuid) {
  706. size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid);
  707. }
  708. if (HasFieldId) {
  709. size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId);
  710. }
  711. if (HasFieldName) {
  712. size += pb::CodedOutputStream.ComputeStringSize(11, FieldName);
  713. }
  714. if (HasData) {
  715. size += pb::CodedOutputStream.ComputeBytesSize(12, Data);
  716. }
  717. if (HasIndex) {
  718. size += pb::CodedOutputStream.ComputeInt32Size(13, Index);
  719. }
  720. if (HasReturnStatus) {
  721. size += pb::CodedOutputStream.ComputeEnumSize(15, (int) ReturnStatus);
  722. }
  723. size += UnknownFields.SerializedSize;
  724. memoizedSerializedSize = size;
  725. return size;
  726. }
  727. }
  728. public static StorageElement ParseFrom(pb::ByteString data) {
  729. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  730. }
  731. public static StorageElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  732. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  733. }
  734. public static StorageElement ParseFrom(byte[] data) {
  735. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  736. }
  737. public static StorageElement ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  738. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  739. }
  740. public static StorageElement ParseFrom(global::System.IO.Stream input) {
  741. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  742. }
  743. public static StorageElement ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  744. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  745. }
  746. public static StorageElement ParseDelimitedFrom(global::System.IO.Stream input) {
  747. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  748. }
  749. public static StorageElement ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  750. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  751. }
  752. public static StorageElement ParseFrom(pb::CodedInputStream input) {
  753. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  754. }
  755. public static StorageElement ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  756. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  757. }
  758. public static Builder CreateBuilder() { return new Builder(); }
  759. public override Builder ToBuilder() { return CreateBuilder(this); }
  760. public override Builder CreateBuilderForType() { return new Builder(); }
  761. public static Builder CreateBuilder(StorageElement prototype) {
  762. return (Builder) new Builder().MergeFrom(prototype);
  763. }
  764. public sealed partial class Builder : pb::GeneratedBuilder<StorageElement, Builder> {
  765. protected override Builder ThisBuilder {
  766. get { return this; }
  767. }
  768. public Builder() {}
  769. StorageElement result = new StorageElement();
  770. protected override StorageElement MessageBeingBuilt {
  771. get { return result; }
  772. }
  773. public override Builder Clear() {
  774. result = new StorageElement();
  775. return this;
  776. }
  777. public override Builder Clone() {
  778. return new Builder().MergeFrom(result);
  779. }
  780. public override pbd::MessageDescriptor DescriptorForType {
  781. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Descriptor; }
  782. }
  783. public override StorageElement DefaultInstanceForType {
  784. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.DefaultInstance; }
  785. }
  786. public override StorageElement BuildPartial() {
  787. if (result == null) {
  788. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  789. }
  790. StorageElement returnMe = result;
  791. result = null;
  792. return returnMe;
  793. }
  794. public override Builder MergeFrom(pb::IMessage other) {
  795. if (other is StorageElement) {
  796. return MergeFrom((StorageElement) other);
  797. } else {
  798. base.MergeFrom(other);
  799. return this;
  800. }
  801. }
  802. public override Builder MergeFrom(StorageElement other) {
  803. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.DefaultInstance) return this;
  804. if (other.HasObjectUuid) {
  805. ObjectUuid = other.ObjectUuid;
  806. }
  807. if (other.HasFieldId) {
  808. FieldId = other.FieldId;
  809. }
  810. if (other.HasFieldName) {
  811. FieldName = other.FieldName;
  812. }
  813. if (other.HasData) {
  814. Data = other.Data;
  815. }
  816. if (other.HasIndex) {
  817. Index = other.Index;
  818. }
  819. if (other.HasReturnStatus) {
  820. ReturnStatus = other.ReturnStatus;
  821. }
  822. this.MergeUnknownFields(other.UnknownFields);
  823. return this;
  824. }
  825. public override Builder MergeFrom(pb::CodedInputStream input) {
  826. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  827. }
  828. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  829. pb::UnknownFieldSet.Builder unknownFields = null;
  830. while (true) {
  831. uint tag = input.ReadTag();
  832. switch (tag) {
  833. case 0: {
  834. if (unknownFields != null) {
  835. this.UnknownFields = unknownFields.Build();
  836. }
  837. return this;
  838. }
  839. default: {
  840. if (pb::WireFormat.IsEndGroupTag(tag)) {
  841. if (unknownFields != null) {
  842. this.UnknownFields = unknownFields.Build();
  843. }
  844. return this;
  845. }
  846. if (unknownFields == null) {
  847. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  848. }
  849. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  850. break;
  851. }
  852. case 74: {
  853. ObjectUuid = input.ReadBytes();
  854. break;
  855. }
  856. case 80: {
  857. FieldId = input.ReadUInt64();
  858. break;
  859. }
  860. case 90: {
  861. FieldName = input.ReadString();
  862. break;
  863. }
  864. case 98: {
  865. Data = input.ReadBytes();
  866. break;
  867. }
  868. case 104: {
  869. Index = input.ReadInt32();
  870. break;
  871. }
  872. case 120: {
  873. int rawValue = input.ReadEnum();
  874. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus), rawValue)) {
  875. if (unknownFields == null) {
  876. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  877. }
  878. unknownFields.MergeVarintField(15, (ulong) rawValue);
  879. } else {
  880. ReturnStatus = (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus) rawValue;
  881. }
  882. break;
  883. }
  884. }
  885. }
  886. }
  887. public bool HasObjectUuid {
  888. get { return result.HasObjectUuid; }
  889. }
  890. public pb::ByteString ObjectUuid {
  891. get { return result.ObjectUuid; }
  892. set { SetObjectUuid(value); }
  893. }
  894. public Builder SetObjectUuid(pb::ByteString value) {
  895. pb::ThrowHelper.ThrowIfNull(value, "value");
  896. result.hasObjectUuid = true;
  897. result.objectUuid_ = value;
  898. return this;
  899. }
  900. public Builder ClearObjectUuid() {
  901. result.hasObjectUuid = false;
  902. result.objectUuid_ = pb::ByteString.Empty;
  903. return this;
  904. }
  905. public bool HasFieldId {
  906. get { return result.HasFieldId; }
  907. }
  908. [global::System.CLSCompliant(false)]
  909. public ulong FieldId {
  910. get { return result.FieldId; }
  911. set { SetFieldId(value); }
  912. }
  913. [global::System.CLSCompliant(false)]
  914. public Builder SetFieldId(ulong value) {
  915. result.hasFieldId = true;
  916. result.fieldId_ = value;
  917. return this;
  918. }
  919. public Builder ClearFieldId() {
  920. result.hasFieldId = false;
  921. result.fieldId_ = 0UL;
  922. return this;
  923. }
  924. public bool HasFieldName {
  925. get { return result.HasFieldName; }
  926. }
  927. public string FieldName {
  928. get { return result.FieldName; }
  929. set { SetFieldName(value); }
  930. }
  931. public Builder SetFieldName(string value) {
  932. pb::ThrowHelper.ThrowIfNull(value, "value");
  933. result.hasFieldName = true;
  934. result.fieldName_ = value;
  935. return this;
  936. }
  937. public Builder ClearFieldName() {
  938. result.hasFieldName = false;
  939. result.fieldName_ = "";
  940. return this;
  941. }
  942. public bool HasData {
  943. get { return result.HasData; }
  944. }
  945. public pb::ByteString Data {
  946. get { return result.Data; }
  947. set { SetData(value); }
  948. }
  949. public Builder SetData(pb::ByteString value) {
  950. pb::ThrowHelper.ThrowIfNull(value, "value");
  951. result.hasData = true;
  952. result.data_ = value;
  953. return this;
  954. }
  955. public Builder ClearData() {
  956. result.hasData = false;
  957. result.data_ = pb::ByteString.Empty;
  958. return this;
  959. }
  960. public bool HasIndex {
  961. get { return result.HasIndex; }
  962. }
  963. public int Index {
  964. get { return result.Index; }
  965. set { SetIndex(value); }
  966. }
  967. public Builder SetIndex(int value) {
  968. result.hasIndex = true;
  969. result.index_ = value;
  970. return this;
  971. }
  972. public Builder ClearIndex() {
  973. result.hasIndex = false;
  974. result.index_ = 0;
  975. return this;
  976. }
  977. public bool HasReturnStatus {
  978. get { return result.HasReturnStatus; }
  979. }
  980. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus ReturnStatus {
  981. get { return result.ReturnStatus; }
  982. set { SetReturnStatus(value); }
  983. }
  984. public Builder SetReturnStatus(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus value) {
  985. result.hasReturnStatus = true;
  986. result.returnStatus_ = value;
  987. return this;
  988. }
  989. public Builder ClearReturnStatus() {
  990. result.hasReturnStatus = false;
  991. result.returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING;
  992. return this;
  993. }
  994. }
  995. static StorageElement() {
  996. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  997. }
  998. }
  999. public sealed partial class CompareElement : pb::GeneratedMessage<CompareElement, CompareElement.Builder> {
  1000. private static readonly CompareElement defaultInstance = new Builder().BuildPartial();
  1001. public static CompareElement DefaultInstance {
  1002. get { return defaultInstance; }
  1003. }
  1004. public override CompareElement DefaultInstanceForType {
  1005. get { return defaultInstance; }
  1006. }
  1007. protected override CompareElement ThisMessage {
  1008. get { return this; }
  1009. }
  1010. public static pbd::MessageDescriptor Descriptor {
  1011. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor; }
  1012. }
  1013. protected override pb::FieldAccess.FieldAccessorTable<CompareElement, CompareElement.Builder> InternalFieldAccessors {
  1014. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable; }
  1015. }
  1016. #region Nested types
  1017. public static class Types {
  1018. public enum COMPARATOR {
  1019. EQUAL = 0,
  1020. NEQUAL = 1,
  1021. }
  1022. }
  1023. #endregion
  1024. public const int ObjectUuidFieldNumber = 9;
  1025. private bool hasObjectUuid;
  1026. private pb::ByteString objectUuid_ = pb::ByteString.Empty;
  1027. public bool HasObjectUuid {
  1028. get { return hasObjectUuid; }
  1029. }
  1030. public pb::ByteString ObjectUuid {
  1031. get { return objectUuid_; }
  1032. }
  1033. public const int FieldIdFieldNumber = 10;
  1034. private bool hasFieldId;
  1035. private ulong fieldId_ = 0UL;
  1036. public bool HasFieldId {
  1037. get { return hasFieldId; }
  1038. }
  1039. [global::System.CLSCompliant(false)]
  1040. public ulong FieldId {
  1041. get { return fieldId_; }
  1042. }
  1043. public const int FieldNameFieldNumber = 11;
  1044. private bool hasFieldName;
  1045. private string fieldName_ = "";
  1046. public bool HasFieldName {
  1047. get { return hasFieldName; }
  1048. }
  1049. public string FieldName {
  1050. get { return fieldName_; }
  1051. }
  1052. public const int DataFieldNumber = 12;
  1053. private bool hasData;
  1054. private pb::ByteString data_ = pb::ByteString.Empty;
  1055. public bool HasData {
  1056. get { return hasData; }
  1057. }
  1058. public pb::ByteString Data {
  1059. get { return data_; }
  1060. }
  1061. public const int ComparatorFieldNumber = 14;
  1062. private bool hasComparator;
  1063. private global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR comparator_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL;
  1064. public bool HasComparator {
  1065. get { return hasComparator; }
  1066. }
  1067. public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR Comparator {
  1068. get { return comparator_; }
  1069. }
  1070. public override bool IsInitialized {
  1071. get {
  1072. return true;
  1073. }
  1074. }
  1075. public override void WriteTo(pb::CodedOutputStream output) {
  1076. if (HasObjectUuid) {
  1077. output.WriteBytes(9, ObjectUuid);
  1078. }
  1079. if (HasFieldId) {
  1080. output.WriteUInt64(10, FieldId);
  1081. }
  1082. if (HasFieldName) {
  1083. output.WriteString(11, FieldName);
  1084. }
  1085. if (HasData) {
  1086. output.WriteBytes(12, Data);
  1087. }
  1088. if (HasComparator) {
  1089. output.WriteEnum(14, (int) Comparator);
  1090. }
  1091. UnknownFields.WriteTo(output);
  1092. }
  1093. private int memoizedSerializedSize = -1;
  1094. public override int SerializedSize {
  1095. get {
  1096. int size = memoizedSerializedSize;
  1097. if (size != -1) return size;
  1098. size = 0;
  1099. if (HasObjectUuid) {
  1100. size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid);
  1101. }
  1102. if (HasFieldId) {
  1103. size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId);
  1104. }
  1105. if (HasFieldName) {
  1106. size += pb::CodedOutputStream.ComputeStringSize(11, FieldName);
  1107. }
  1108. if (HasData) {
  1109. size += pb::CodedOutputStream.ComputeBytesSize(12, Data);
  1110. }
  1111. if (HasComparator) {
  1112. size += pb::CodedOutputStream.ComputeEnumSize(14, (int) Comparator);
  1113. }
  1114. size += UnknownFields.SerializedSize;
  1115. memoizedSerializedSize = size;
  1116. return size;
  1117. }
  1118. }
  1119. public static CompareElement ParseFrom(pb::ByteString data) {
  1120. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1121. }
  1122. public static CompareElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1123. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1124. }
  1125. public static CompareElement ParseFrom(byte[] data) {
  1126. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1127. }
  1128. public static CompareElement ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1129. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1130. }
  1131. public static CompareElement ParseFrom(global::System.IO.Stream input) {
  1132. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1133. }
  1134. public static CompareElement ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1135. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1136. }
  1137. public static CompareElement ParseDelimitedFrom(global::System.IO.Stream input) {
  1138. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1139. }
  1140. public static CompareElement ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1141. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1142. }
  1143. public static CompareElement ParseFrom(pb::CodedInputStream input) {
  1144. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1145. }
  1146. public static CompareElement ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1147. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1148. }
  1149. public static Builder CreateBuilder() { return new Builder(); }
  1150. public override Builder ToBuilder() { return CreateBuilder(this); }
  1151. public override Builder CreateBuilderForType() { return new Builder(); }
  1152. public static Builder CreateBuilder(CompareElement prototype) {
  1153. return (Builder) new Builder().MergeFrom(prototype);
  1154. }
  1155. public sealed partial class Builder : pb::GeneratedBuilder<CompareElement, Builder> {
  1156. protected override Builder ThisBuilder {
  1157. get { return this; }
  1158. }
  1159. public Builder() {}
  1160. CompareElement result = new CompareElement();
  1161. protected override CompareElement MessageBeingBuilt {
  1162. get { return result; }
  1163. }
  1164. public override Builder Clear() {
  1165. result = new CompareElement();
  1166. return this;
  1167. }
  1168. public override Builder Clone() {
  1169. return new Builder().MergeFrom(result);
  1170. }
  1171. public override pbd::MessageDescriptor DescriptorForType {
  1172. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Descriptor; }
  1173. }
  1174. public override CompareElement DefaultInstanceForType {
  1175. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.DefaultInstance; }
  1176. }
  1177. public override CompareElement BuildPartial() {
  1178. if (result == null) {
  1179. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1180. }
  1181. CompareElement returnMe = result;
  1182. result = null;
  1183. return returnMe;
  1184. }
  1185. public override Builder MergeFrom(pb::IMessage other) {
  1186. if (other is CompareElement) {
  1187. return MergeFrom((CompareElement) other);
  1188. } else {
  1189. base.MergeFrom(other);
  1190. return this;
  1191. }
  1192. }
  1193. public override Builder MergeFrom(CompareElement other) {
  1194. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.DefaultInstance) return this;
  1195. if (other.HasObjectUuid) {
  1196. ObjectUuid = other.ObjectUuid;
  1197. }
  1198. if (other.HasFieldId) {
  1199. FieldId = other.FieldId;
  1200. }
  1201. if (other.HasFieldName) {
  1202. FieldName = other.FieldName;
  1203. }
  1204. if (other.HasData) {
  1205. Data = other.Data;
  1206. }
  1207. if (other.HasComparator) {
  1208. Comparator = other.Comparator;
  1209. }
  1210. this.MergeUnknownFields(other.UnknownFields);
  1211. return this;
  1212. }
  1213. public override Builder MergeFrom(pb::CodedInputStream input) {
  1214. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1215. }
  1216. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1217. pb::UnknownFieldSet.Builder unknownFields = null;
  1218. while (true) {
  1219. uint tag = input.ReadTag();
  1220. switch (tag) {
  1221. case 0: {
  1222. if (unknownFields != null) {
  1223. this.UnknownFields = unknownFields.Build();
  1224. }
  1225. return this;
  1226. }
  1227. default: {
  1228. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1229. if (unknownFields != null) {
  1230. this.UnknownFields = unknownFields.Build();
  1231. }
  1232. return this;
  1233. }
  1234. if (unknownFields == null) {
  1235. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1236. }
  1237. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  1238. break;
  1239. }
  1240. case 74: {
  1241. ObjectUuid = input.ReadBytes();
  1242. break;
  1243. }
  1244. case 80: {
  1245. FieldId = input.ReadUInt64();
  1246. break;
  1247. }
  1248. case 90: {
  1249. FieldName = input.ReadString();
  1250. break;
  1251. }
  1252. case 98: {
  1253. Data = input.ReadBytes();
  1254. break;
  1255. }
  1256. case 112: {
  1257. int rawValue = input.ReadEnum();
  1258. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR), rawValue)) {
  1259. if (unknownFields == null) {
  1260. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1261. }
  1262. unknownFields.MergeVarintField(14, (ulong) rawValue);
  1263. } else {
  1264. Comparator = (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR) rawValue;
  1265. }
  1266. break;
  1267. }
  1268. }
  1269. }
  1270. }
  1271. public bool HasObjectUuid {
  1272. get { return result.HasObjectUuid; }
  1273. }
  1274. public pb::ByteString ObjectUuid {
  1275. get { return result.ObjectUuid; }
  1276. set { SetObjectUuid(value); }
  1277. }
  1278. public Builder SetObjectUuid(pb::ByteString value) {
  1279. pb::ThrowHelper.ThrowIfNull(value, "value");
  1280. result.hasObjectUuid = true;
  1281. result.objectUuid_ = value;
  1282. return this;
  1283. }
  1284. public Builder ClearObjectUuid() {
  1285. result.hasObjectUuid = false;
  1286. result.objectUuid_ = pb::ByteString.Empty;
  1287. return this;
  1288. }
  1289. public bool HasFieldId {
  1290. get { return result.HasFieldId; }
  1291. }
  1292. [global::System.CLSCompliant(false)]
  1293. public ulong FieldId {
  1294. get { return result.FieldId; }
  1295. set { SetFieldId(value); }
  1296. }
  1297. [global::System.CLSCompliant(false)]
  1298. public Builder SetFieldId(ulong value) {
  1299. result.hasFieldId = true;
  1300. result.fieldId_ = value;
  1301. return this;
  1302. }
  1303. public Builder ClearFieldId() {
  1304. result.hasFieldId = false;
  1305. result.fieldId_ = 0UL;
  1306. return this;
  1307. }
  1308. public bool HasFieldName {
  1309. get { return result.HasFieldName; }
  1310. }
  1311. public string FieldName {
  1312. get { return result.FieldName; }
  1313. set { SetFieldName(value); }
  1314. }
  1315. public Builder SetFieldName(string value) {
  1316. pb::ThrowHelper.ThrowIfNull(value, "value");
  1317. result.hasFieldName = true;
  1318. result.fieldName_ = value;
  1319. return this;
  1320. }
  1321. public Builder ClearFieldName() {
  1322. result.hasFieldName = false;
  1323. result.fieldName_ = "";
  1324. return this;
  1325. }
  1326. public bool HasData {
  1327. get { return result.HasData; }
  1328. }
  1329. public pb::ByteString Data {
  1330. get { return result.Data; }
  1331. set { SetData(value); }
  1332. }
  1333. public Builder SetData(pb::ByteString value) {
  1334. pb::ThrowHelper.ThrowIfNull(value, "value");
  1335. result.hasData = true;
  1336. result.data_ = value;
  1337. return this;
  1338. }
  1339. public Builder ClearData() {
  1340. result.hasData = false;
  1341. result.data_ = pb::ByteString.Empty;
  1342. return this;
  1343. }
  1344. public bool HasComparator {
  1345. get { return result.HasComparator; }
  1346. }
  1347. public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR Comparator {
  1348. get { return result.Comparator; }
  1349. set { SetComparator(value); }
  1350. }
  1351. public Builder SetComparator(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR value) {
  1352. result.hasComparator = true;
  1353. result.comparator_ = value;
  1354. return this;
  1355. }
  1356. public Builder ClearComparator() {
  1357. result.hasComparator = false;
  1358. result.comparator_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL;
  1359. return this;
  1360. }
  1361. }
  1362. static CompareElement() {
  1363. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  1364. }
  1365. }
  1366. public sealed partial class StorageSet : pb::GeneratedMessage<StorageSet, StorageSet.Builder> {
  1367. private static readonly StorageSet defaultInstance = new Builder().BuildPartial();
  1368. public static StorageSet DefaultInstance {
  1369. get { return defaultInstance; }
  1370. }
  1371. public override StorageSet DefaultInstanceForType {
  1372. get { return defaultInstance; }
  1373. }
  1374. protected override StorageSet ThisMessage {
  1375. get { return this; }
  1376. }
  1377. public static pbd::MessageDescriptor Descriptor {
  1378. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor; }
  1379. }
  1380. protected override pb::FieldAccess.FieldAccessorTable<StorageSet, StorageSet.Builder> InternalFieldAccessors {
  1381. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable; }
  1382. }
  1383. public const int ReadsFieldNumber = 9;
  1384. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  1385. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  1386. get { return reads_; }
  1387. }
  1388. public int ReadsCount {
  1389. get { return reads_.Count; }
  1390. }
  1391. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  1392. return reads_[index];
  1393. }
  1394. public override bool IsInitialized {
  1395. get {
  1396. return true;
  1397. }
  1398. }
  1399. public override void WriteTo(pb::CodedOutputStream output) {
  1400. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  1401. output.WriteMessage(9, element);
  1402. }
  1403. UnknownFields.WriteTo(output);
  1404. }
  1405. private int memoizedSerializedSize = -1;
  1406. public override int SerializedSize {
  1407. get {
  1408. int size = memoizedSerializedSize;
  1409. if (size != -1) return size;
  1410. size = 0;
  1411. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  1412. size += pb::CodedOutputStream.ComputeMessageSize(9, element);
  1413. }
  1414. size += UnknownFields.SerializedSize;
  1415. memoizedSerializedSize = size;
  1416. return size;
  1417. }
  1418. }
  1419. public static StorageSet ParseFrom(pb::ByteString data) {
  1420. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1421. }
  1422. public static StorageSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1423. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1424. }
  1425. public static StorageSet ParseFrom(byte[] data) {
  1426. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1427. }
  1428. public static StorageSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1429. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1430. }
  1431. public static StorageSet ParseFrom(global::System.IO.Stream input) {
  1432. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1433. }
  1434. public static StorageSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1435. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1436. }
  1437. public static StorageSet ParseDelimitedFrom(global::System.IO.Stream input) {
  1438. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1439. }
  1440. public static StorageSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1441. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1442. }
  1443. public static StorageSet ParseFrom(pb::CodedInputStream input) {
  1444. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1445. }
  1446. public static StorageSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1447. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1448. }
  1449. public static Builder CreateBuilder() { return new Builder(); }
  1450. public override Builder ToBuilder() { return CreateBuilder(this); }
  1451. public override Builder CreateBuilderForType() { return new Builder(); }
  1452. public static Builder CreateBuilder(StorageSet prototype) {
  1453. return (Builder) new Builder().MergeFrom(prototype);
  1454. }
  1455. public sealed partial class Builder : pb::GeneratedBuilder<StorageSet, Builder> {
  1456. protected override Builder ThisBuilder {
  1457. get { return this; }
  1458. }
  1459. public Builder() {}
  1460. StorageSet result = new StorageSet();
  1461. protected override StorageSet MessageBeingBuilt {
  1462. get { return result; }
  1463. }
  1464. public override Builder Clear() {
  1465. result = new StorageSet();
  1466. return this;
  1467. }
  1468. public override Builder Clone() {
  1469. return new Builder().MergeFrom(result);
  1470. }
  1471. public override pbd::MessageDescriptor DescriptorForType {
  1472. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Descriptor; }
  1473. }
  1474. public override StorageSet DefaultInstanceForType {
  1475. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.DefaultInstance; }
  1476. }
  1477. public override StorageSet BuildPartial() {
  1478. if (result == null) {
  1479. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1480. }
  1481. result.reads_.MakeReadOnly();
  1482. StorageSet returnMe = result;
  1483. result = null;
  1484. return returnMe;
  1485. }
  1486. public override Builder MergeFrom(pb::IMessage other) {
  1487. if (other is StorageSet) {
  1488. return MergeFrom((StorageSet) other);
  1489. } else {
  1490. base.MergeFrom(other);
  1491. return this;
  1492. }
  1493. }
  1494. public override Builder MergeFrom(StorageSet other) {
  1495. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.DefaultInstance) return this;
  1496. if (other.reads_.Count != 0) {
  1497. base.AddRange(other.reads_, result.reads_);
  1498. }
  1499. this.MergeUnknownFields(other.UnknownFields);
  1500. return this;
  1501. }
  1502. public override Builder MergeFrom(pb::CodedInputStream input) {
  1503. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1504. }
  1505. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1506. pb::UnknownFieldSet.Builder unknownFields = null;
  1507. while (true) {
  1508. uint tag = input.ReadTag();
  1509. switch (tag) {
  1510. case 0: {
  1511. if (unknownFields != null) {
  1512. this.UnknownFields = unknownFields.Build();
  1513. }
  1514. return this;
  1515. }
  1516. default: {
  1517. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1518. if (unknownFields != null) {
  1519. this.UnknownFields = unknownFields.Build();
  1520. }
  1521. return this;
  1522. }
  1523. if (unknownFields == null) {
  1524. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1525. }
  1526. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  1527. break;
  1528. }
  1529. case 74: {
  1530. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  1531. input.ReadMessage(subBuilder, extensionRegistry);
  1532. AddReads(subBuilder.BuildPartial());
  1533. break;
  1534. }
  1535. }
  1536. }
  1537. }
  1538. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  1539. get { return result.reads_; }
  1540. }
  1541. public int ReadsCount {
  1542. get { return result.ReadsCount; }
  1543. }
  1544. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  1545. return result.GetReads(index);
  1546. }
  1547. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  1548. pb::ThrowHelper.ThrowIfNull(value, "value");
  1549. result.reads_[index] = value;
  1550. return this;
  1551. }
  1552. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  1553. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1554. result.reads_[index] = builderForValue.Build();
  1555. return this;
  1556. }
  1557. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  1558. pb::ThrowHelper.ThrowIfNull(value, "value");
  1559. result.reads_.Add(value);
  1560. return this;
  1561. }
  1562. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  1563. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1564. result.reads_.Add(builderForValue.Build());
  1565. return this;
  1566. }
  1567. public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  1568. base.AddRange(values, result.reads_);
  1569. return this;
  1570. }
  1571. public Builder ClearReads() {
  1572. result.reads_.Clear();
  1573. return this;
  1574. }
  1575. }
  1576. static StorageSet() {
  1577. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  1578. }
  1579. }
  1580. public sealed partial class ReadSet : pb::GeneratedMessage<ReadSet, ReadSet.Builder> {
  1581. private static readonly ReadSet defaultInstance = new Builder().BuildPartial();
  1582. public static ReadSet DefaultInstance {
  1583. get { return defaultInstance; }
  1584. }
  1585. public override ReadSet DefaultInstanceForType {
  1586. get { return defaultInstance; }
  1587. }
  1588. protected override ReadSet ThisMessage {
  1589. get { return this; }
  1590. }
  1591. public static pbd::MessageDescriptor Descriptor {
  1592. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor; }
  1593. }
  1594. protected override pb::FieldAccess.FieldAccessorTable<ReadSet, ReadSet.Builder> InternalFieldAccessors {
  1595. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable; }
  1596. }
  1597. public const int ReadsFieldNumber = 9;
  1598. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  1599. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  1600. get { return reads_; }
  1601. }
  1602. public int ReadsCount {
  1603. get { return reads_.Count; }
  1604. }
  1605. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  1606. return reads_[index];
  1607. }
  1608. public override bool IsInitialized {
  1609. get {
  1610. return true;
  1611. }
  1612. }
  1613. public override void WriteTo(pb::CodedOutputStream output) {
  1614. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  1615. output.WriteMessage(9, element);
  1616. }
  1617. UnknownFields.WriteTo(output);
  1618. }
  1619. private int memoizedSerializedSize = -1;
  1620. public override int SerializedSize {
  1621. get {
  1622. int size = memoizedSerializedSize;
  1623. if (size != -1) return size;
  1624. size = 0;
  1625. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  1626. size += pb::CodedOutputStream.ComputeMessageSize(9, element);
  1627. }
  1628. size += UnknownFields.SerializedSize;
  1629. memoizedSerializedSize = size;
  1630. return size;
  1631. }
  1632. }
  1633. public static ReadSet ParseFrom(pb::ByteString data) {
  1634. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1635. }
  1636. public static ReadSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1637. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1638. }
  1639. public static ReadSet ParseFrom(byte[] data) {
  1640. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1641. }
  1642. public static ReadSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1643. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1644. }
  1645. public static ReadSet ParseFrom(global::System.IO.Stream input) {
  1646. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1647. }
  1648. public static ReadSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1649. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1650. }
  1651. public static ReadSet ParseDelimitedFrom(global::System.IO.Stream input) {
  1652. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1653. }
  1654. public static ReadSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1655. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1656. }
  1657. public static ReadSet ParseFrom(pb::CodedInputStream input) {
  1658. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1659. }
  1660. public static ReadSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1661. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1662. }
  1663. public static Builder CreateBuilder() { return new Builder(); }
  1664. public override Builder ToBuilder() { return CreateBuilder(this); }
  1665. public override Builder CreateBuilderForType() { return new Builder(); }
  1666. public static Builder CreateBuilder(ReadSet prototype) {
  1667. return (Builder) new Builder().MergeFrom(prototype);
  1668. }
  1669. public sealed partial class Builder : pb::GeneratedBuilder<ReadSet, Builder> {
  1670. protected override Builder ThisBuilder {
  1671. get { return this; }
  1672. }
  1673. public Builder() {}
  1674. ReadSet result = new ReadSet();
  1675. protected override ReadSet MessageBeingBuilt {
  1676. get { return result; }
  1677. }
  1678. public override Builder Clear() {
  1679. result = new ReadSet();
  1680. return this;
  1681. }
  1682. public override Builder Clone() {
  1683. return new Builder().MergeFrom(result);
  1684. }
  1685. public override pbd::MessageDescriptor DescriptorForType {
  1686. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Descriptor; }
  1687. }
  1688. public override ReadSet DefaultInstanceForType {
  1689. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.DefaultInstance; }
  1690. }
  1691. public override ReadSet BuildPartial() {
  1692. if (result == null) {
  1693. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1694. }
  1695. result.reads_.MakeReadOnly();
  1696. ReadSet returnMe = result;
  1697. result = null;
  1698. return returnMe;
  1699. }
  1700. public override Builder MergeFrom(pb::IMessage other) {
  1701. if (other is ReadSet) {
  1702. return MergeFrom((ReadSet) other);
  1703. } else {
  1704. base.MergeFrom(other);
  1705. return this;
  1706. }
  1707. }
  1708. public override Builder MergeFrom(ReadSet other) {
  1709. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.DefaultInstance) return this;
  1710. if (other.reads_.Count != 0) {
  1711. base.AddRange(other.reads_, result.reads_);
  1712. }
  1713. this.MergeUnknownFields(other.UnknownFields);
  1714. return this;
  1715. }
  1716. public override Builder MergeFrom(pb::CodedInputStream input) {
  1717. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1718. }
  1719. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1720. pb::UnknownFieldSet.Builder unknownFields = null;
  1721. while (true) {
  1722. uint tag = input.ReadTag();
  1723. switch (tag) {
  1724. case 0: {
  1725. if (unknownFields != null) {
  1726. this.UnknownFields = unknownFields.Build();
  1727. }
  1728. return this;
  1729. }
  1730. default: {
  1731. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1732. if (unknownFields != null) {
  1733. this.UnknownFields = unknownFields.Build();
  1734. }
  1735. return this;
  1736. }
  1737. if (unknownFields == null) {
  1738. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1739. }
  1740. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  1741. break;
  1742. }
  1743. case 74: {
  1744. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  1745. input.ReadMessage(subBuilder, extensionRegistry);
  1746. AddReads(subBuilder.BuildPartial());
  1747. break;
  1748. }
  1749. }
  1750. }
  1751. }
  1752. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  1753. get { return result.reads_; }
  1754. }
  1755. public int ReadsCount {
  1756. get { return result.ReadsCount; }
  1757. }
  1758. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  1759. return result.GetReads(index);
  1760. }
  1761. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  1762. pb::ThrowHelper.ThrowIfNull(value, "value");
  1763. result.reads_[index] = value;
  1764. return this;
  1765. }
  1766. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  1767. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1768. result.reads_[index] = builderForValue.Build();
  1769. return this;
  1770. }
  1771. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  1772. pb::ThrowHelper.ThrowIfNull(value, "value");
  1773. result.reads_.Add(value);
  1774. return this;
  1775. }
  1776. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  1777. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1778. result.reads_.Add(builderForValue.Build());
  1779. return this;
  1780. }
  1781. public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  1782. base.AddRange(values, result.reads_);
  1783. return this;
  1784. }
  1785. public Builder ClearReads() {
  1786. result.reads_.Clear();
  1787. return this;
  1788. }
  1789. }
  1790. static ReadSet() {
  1791. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  1792. }
  1793. }
  1794. public sealed partial class WriteSet : pb::GeneratedMessage<WriteSet, WriteSet.Builder> {
  1795. private static readonly WriteSet defaultInstance = new Builder().BuildPartial();
  1796. public static WriteSet DefaultInstance {
  1797. get { return defaultInstance; }
  1798. }
  1799. public override WriteSet DefaultInstanceForType {
  1800. get { return defaultInstance; }
  1801. }
  1802. protected override WriteSet ThisMessage {
  1803. get { return this; }
  1804. }
  1805. public static pbd::MessageDescriptor Descriptor {
  1806. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor; }
  1807. }
  1808. protected override pb::FieldAccess.FieldAccessorTable<WriteSet, WriteSet.Builder> InternalFieldAccessors {
  1809. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable; }
  1810. }
  1811. public const int WritesFieldNumber = 10;
  1812. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> writes_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  1813. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList {
  1814. get { return writes_; }
  1815. }
  1816. public int WritesCount {
  1817. get { return writes_.Count; }
  1818. }
  1819. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
  1820. return writes_[index];
  1821. }
  1822. public override bool IsInitialized {
  1823. get {
  1824. return true;
  1825. }
  1826. }
  1827. public override void WriteTo(pb::CodedOutputStream output) {
  1828. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
  1829. output.WriteMessage(10, element);
  1830. }
  1831. UnknownFields.WriteTo(output);
  1832. }
  1833. private int memoizedSerializedSize = -1;
  1834. public override int SerializedSize {
  1835. get {
  1836. int size = memoizedSerializedSize;
  1837. if (size != -1) return size;
  1838. size = 0;
  1839. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
  1840. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  1841. }
  1842. size += UnknownFields.SerializedSize;
  1843. memoizedSerializedSize = size;
  1844. return size;
  1845. }
  1846. }
  1847. public static WriteSet ParseFrom(pb::ByteString data) {
  1848. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1849. }
  1850. public static WriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1851. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1852. }
  1853. public static WriteSet ParseFrom(byte[] data) {
  1854. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1855. }
  1856. public static WriteSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1857. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1858. }
  1859. public static WriteSet ParseFrom(global::System.IO.Stream input) {
  1860. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1861. }
  1862. public static WriteSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1863. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1864. }
  1865. public static WriteSet ParseDelimitedFrom(global::System.IO.Stream input) {
  1866. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1867. }
  1868. public static WriteSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1869. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1870. }
  1871. public static WriteSet ParseFrom(pb::CodedInputStream input) {
  1872. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1873. }
  1874. public static WriteSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1875. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1876. }
  1877. public static Builder CreateBuilder() { return new Builder(); }
  1878. public override Builder ToBuilder() { return CreateBuilder(this); }
  1879. public override Builder CreateBuilderForType() { return new Builder(); }
  1880. public static Builder CreateBuilder(WriteSet prototype) {
  1881. return (Builder) new Builder().MergeFrom(prototype);
  1882. }
  1883. public sealed partial class Builder : pb::GeneratedBuilder<WriteSet, Builder> {
  1884. protected override Builder ThisBuilder {
  1885. get { return this; }
  1886. }
  1887. public Builder() {}
  1888. WriteSet result = new WriteSet();
  1889. protected override WriteSet MessageBeingBuilt {
  1890. get { return result; }
  1891. }
  1892. public override Builder Clear() {
  1893. result = new WriteSet();
  1894. return this;
  1895. }
  1896. public override Builder Clone() {
  1897. return new Builder().MergeFrom(result);
  1898. }
  1899. public override pbd::MessageDescriptor DescriptorForType {
  1900. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Descriptor; }
  1901. }
  1902. public override WriteSet DefaultInstanceForType {
  1903. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.DefaultInstance; }
  1904. }
  1905. public override WriteSet BuildPartial() {
  1906. if (result == null) {
  1907. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1908. }
  1909. result.writes_.MakeReadOnly();
  1910. WriteSet returnMe = result;
  1911. result = null;
  1912. return returnMe;
  1913. }
  1914. public override Builder MergeFrom(pb::IMessage other) {
  1915. if (other is WriteSet) {
  1916. return MergeFrom((WriteSet) other);
  1917. } else {
  1918. base.MergeFrom(other);
  1919. return this;
  1920. }
  1921. }
  1922. public override Builder MergeFrom(WriteSet other) {
  1923. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.DefaultInstance) return this;
  1924. if (other.writes_.Count != 0) {
  1925. base.AddRange(other.writes_, result.writes_);
  1926. }
  1927. this.MergeUnknownFields(other.UnknownFields);
  1928. return this;
  1929. }
  1930. public override Builder MergeFrom(pb::CodedInputStream input) {
  1931. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1932. }
  1933. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1934. pb::UnknownFieldSet.Builder unknownFields = null;
  1935. while (true) {
  1936. uint tag = input.ReadTag();
  1937. switch (tag) {
  1938. case 0: {
  1939. if (unknownFields != null) {
  1940. this.UnknownFields = unknownFields.Build();
  1941. }
  1942. return this;
  1943. }
  1944. default: {
  1945. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1946. if (unknownFields != null) {
  1947. this.UnknownFields = unknownFields.Build();
  1948. }
  1949. return this;
  1950. }
  1951. if (unknownFields == null) {
  1952. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1953. }
  1954. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  1955. break;
  1956. }
  1957. case 82: {
  1958. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  1959. input.ReadMessage(subBuilder, extensionRegistry);
  1960. AddWrites(subBuilder.BuildPartial());
  1961. break;
  1962. }
  1963. }
  1964. }
  1965. }
  1966. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList {
  1967. get { return result.writes_; }
  1968. }
  1969. public int WritesCount {
  1970. get { return result.WritesCount; }
  1971. }
  1972. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
  1973. return result.GetWrites(index);
  1974. }
  1975. public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  1976. pb::ThrowHelper.ThrowIfNull(value, "value");
  1977. result.writes_[index] = value;
  1978. return this;
  1979. }
  1980. public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  1981. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1982. result.writes_[index] = builderForValue.Build();
  1983. return this;
  1984. }
  1985. public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  1986. pb::ThrowHelper.ThrowIfNull(value, "value");
  1987. result.writes_.Add(value);
  1988. return this;
  1989. }
  1990. public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  1991. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1992. result.writes_.Add(builderForValue.Build());
  1993. return this;
  1994. }
  1995. public Builder AddRangeWrites(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  1996. base.AddRange(values, result.writes_);
  1997. return this;
  1998. }
  1999. public Builder ClearWrites() {
  2000. result.writes_.Clear();
  2001. return this;
  2002. }
  2003. }
  2004. static WriteSet() {
  2005. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  2006. }
  2007. }
  2008. public sealed partial class ReadWriteSet : pb::GeneratedMessage<ReadWriteSet, ReadWriteSet.Builder> {
  2009. private static readonly ReadWriteSet defaultInstance = new Builder().BuildPartial();
  2010. public static ReadWriteSet DefaultInstance {
  2011. get { return defaultInstance; }
  2012. }
  2013. public override ReadWriteSet DefaultInstanceForType {
  2014. get { return defaultInstance; }
  2015. }
  2016. protected override ReadWriteSet ThisMessage {
  2017. get { return this; }
  2018. }
  2019. public static pbd::MessageDescriptor Descriptor {
  2020. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor; }
  2021. }
  2022. protected override pb::FieldAccess.FieldAccessorTable<ReadWriteSet, ReadWriteSet.Builder> InternalFieldAccessors {
  2023. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable; }
  2024. }
  2025. #region Nested types
  2026. public static class Types {
  2027. public enum ReadWriteSetOptions {
  2028. RETURN_READ_NAMES = 1,
  2029. }
  2030. }
  2031. #endregion
  2032. public const int ReadsFieldNumber = 9;
  2033. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  2034. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  2035. get { return reads_; }
  2036. }
  2037. public int ReadsCount {
  2038. get { return reads_.Count; }
  2039. }
  2040. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  2041. return reads_[index];
  2042. }
  2043. public const int WritesFieldNumber = 10;
  2044. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> writes_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  2045. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList {
  2046. get { return writes_; }
  2047. }
  2048. public int WritesCount {
  2049. get { return writes_.Count; }
  2050. }
  2051. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
  2052. return writes_[index];
  2053. }
  2054. public const int OptionsFieldNumber = 14;
  2055. private bool hasOptions;
  2056. private ulong options_ = 0UL;
  2057. public bool HasOptions {
  2058. get { return hasOptions; }
  2059. }
  2060. [global::System.CLSCompliant(false)]
  2061. public ulong Options {
  2062. get { return options_; }
  2063. }
  2064. public override bool IsInitialized {
  2065. get {
  2066. return true;
  2067. }
  2068. }
  2069. public override void WriteTo(pb::CodedOutputStream output) {
  2070. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  2071. output.WriteMessage(9, element);
  2072. }
  2073. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
  2074. output.WriteMessage(10, element);
  2075. }
  2076. if (HasOptions) {
  2077. output.WriteUInt64(14, Options);
  2078. }
  2079. UnknownFields.WriteTo(output);
  2080. }
  2081. private int memoizedSerializedSize = -1;
  2082. public override int SerializedSize {
  2083. get {
  2084. int size = memoizedSerializedSize;
  2085. if (size != -1) return size;
  2086. size = 0;
  2087. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  2088. size += pb::CodedOutputStream.ComputeMessageSize(9, element);
  2089. }
  2090. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
  2091. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  2092. }
  2093. if (HasOptions) {
  2094. size += pb::CodedOutputStream.ComputeUInt64Size(14, Options);
  2095. }
  2096. size += UnknownFields.SerializedSize;
  2097. memoizedSerializedSize = size;
  2098. return size;
  2099. }
  2100. }
  2101. public static ReadWriteSet ParseFrom(pb::ByteString data) {
  2102. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2103. }
  2104. public static ReadWriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2105. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2106. }
  2107. public static ReadWriteSet ParseFrom(byte[] data) {
  2108. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2109. }
  2110. public static ReadWriteSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2111. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2112. }
  2113. public static ReadWriteSet ParseFrom(global::System.IO.Stream input) {
  2114. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2115. }
  2116. public static ReadWriteSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2117. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2118. }
  2119. public static ReadWriteSet ParseDelimitedFrom(global::System.IO.Stream input) {
  2120. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2121. }
  2122. public static ReadWriteSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2123. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2124. }
  2125. public static ReadWriteSet ParseFrom(pb::CodedInputStream input) {
  2126. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2127. }
  2128. public static ReadWriteSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2129. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2130. }
  2131. public static Builder CreateBuilder() { return new Builder(); }
  2132. public override Builder ToBuilder() { return CreateBuilder(this); }
  2133. public override Builder CreateBuilderForType() { return new Builder(); }
  2134. public static Builder CreateBuilder(ReadWriteSet prototype) {
  2135. return (Builder) new Builder().MergeFrom(prototype);
  2136. }
  2137. public sealed partial class Builder : pb::GeneratedBuilder<ReadWriteSet, Builder> {
  2138. protected override Builder ThisBuilder {
  2139. get { return this; }
  2140. }
  2141. public Builder() {}
  2142. ReadWriteSet result = new ReadWriteSet();
  2143. protected override ReadWriteSet MessageBeingBuilt {
  2144. get { return result; }
  2145. }
  2146. public override Builder Clear() {
  2147. result = new ReadWriteSet();
  2148. return this;
  2149. }
  2150. public override Builder Clone() {
  2151. return new Builder().MergeFrom(result);
  2152. }
  2153. public override pbd::MessageDescriptor DescriptorForType {
  2154. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Descriptor; }
  2155. }
  2156. public override ReadWriteSet DefaultInstanceForType {
  2157. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.DefaultInstance; }
  2158. }
  2159. public override ReadWriteSet BuildPartial() {
  2160. if (result == null) {
  2161. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  2162. }
  2163. result.reads_.MakeReadOnly();
  2164. result.writes_.MakeReadOnly();
  2165. ReadWriteSet returnMe = result;
  2166. result = null;
  2167. return returnMe;
  2168. }
  2169. public override Builder MergeFrom(pb::IMessage other) {
  2170. if (other is ReadWriteSet) {
  2171. return MergeFrom((ReadWriteSet) other);
  2172. } else {
  2173. base.MergeFrom(other);
  2174. return this;
  2175. }
  2176. }
  2177. public override Builder MergeFrom(ReadWriteSet other) {
  2178. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.DefaultInstance) return this;
  2179. if (other.reads_.Count != 0) {
  2180. base.AddRange(other.reads_, result.reads_);
  2181. }
  2182. if (other.writes_.Count != 0) {
  2183. base.AddRange(other.writes_, result.writes_);
  2184. }
  2185. if (other.HasOptions) {
  2186. Options = other.Options;
  2187. }
  2188. this.MergeUnknownFields(other.UnknownFields);
  2189. return this;
  2190. }
  2191. public override Builder MergeFrom(pb::CodedInputStream input) {
  2192. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2193. }
  2194. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2195. pb::UnknownFieldSet.Builder unknownFields = null;
  2196. while (true) {
  2197. uint tag = input.ReadTag();
  2198. switch (tag) {
  2199. case 0: {
  2200. if (unknownFields != null) {
  2201. this.UnknownFields = unknownFields.Build();
  2202. }
  2203. return this;
  2204. }
  2205. default: {
  2206. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2207. if (unknownFields != null) {
  2208. this.UnknownFields = unknownFields.Build();
  2209. }
  2210. return this;
  2211. }
  2212. if (unknownFields == null) {
  2213. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2214. }
  2215. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  2216. break;
  2217. }
  2218. case 74: {
  2219. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  2220. input.ReadMessage(subBuilder, extensionRegistry);
  2221. AddReads(subBuilder.BuildPartial());
  2222. break;
  2223. }
  2224. case 82: {
  2225. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  2226. input.ReadMessage(subBuilder, extensionRegistry);
  2227. AddWrites(subBuilder.BuildPartial());
  2228. break;
  2229. }
  2230. case 112: {
  2231. Options = input.ReadUInt64();
  2232. break;
  2233. }
  2234. }
  2235. }
  2236. }
  2237. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  2238. get { return result.reads_; }
  2239. }
  2240. public int ReadsCount {
  2241. get { return result.ReadsCount; }
  2242. }
  2243. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  2244. return result.GetReads(index);
  2245. }
  2246. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2247. pb::ThrowHelper.ThrowIfNull(value, "value");
  2248. result.reads_[index] = value;
  2249. return this;
  2250. }
  2251. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2252. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2253. result.reads_[index] = builderForValue.Build();
  2254. return this;
  2255. }
  2256. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2257. pb::ThrowHelper.ThrowIfNull(value, "value");
  2258. result.reads_.Add(value);
  2259. return this;
  2260. }
  2261. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2262. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2263. result.reads_.Add(builderForValue.Build());
  2264. return this;
  2265. }
  2266. public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  2267. base.AddRange(values, result.reads_);
  2268. return this;
  2269. }
  2270. public Builder ClearReads() {
  2271. result.reads_.Clear();
  2272. return this;
  2273. }
  2274. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList {
  2275. get { return result.writes_; }
  2276. }
  2277. public int WritesCount {
  2278. get { return result.WritesCount; }
  2279. }
  2280. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
  2281. return result.GetWrites(index);
  2282. }
  2283. public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2284. pb::ThrowHelper.ThrowIfNull(value, "value");
  2285. result.writes_[index] = value;
  2286. return this;
  2287. }
  2288. public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2289. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2290. result.writes_[index] = builderForValue.Build();
  2291. return this;
  2292. }
  2293. public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2294. pb::ThrowHelper.ThrowIfNull(value, "value");
  2295. result.writes_.Add(value);
  2296. return this;
  2297. }
  2298. public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2299. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2300. result.writes_.Add(builderForValue.Build());
  2301. return this;
  2302. }
  2303. public Builder AddRangeWrites(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  2304. base.AddRange(values, result.writes_);
  2305. return this;
  2306. }
  2307. public Builder ClearWrites() {
  2308. result.writes_.Clear();
  2309. return this;
  2310. }
  2311. public bool HasOptions {
  2312. get { return result.HasOptions; }
  2313. }
  2314. [global::System.CLSCompliant(false)]
  2315. public ulong Options {
  2316. get { return result.Options; }
  2317. set { SetOptions(value); }
  2318. }
  2319. [global::System.CLSCompliant(false)]
  2320. public Builder SetOptions(ulong value) {
  2321. result.hasOptions = true;
  2322. result.options_ = value;
  2323. return this;
  2324. }
  2325. public Builder ClearOptions() {
  2326. result.hasOptions = false;
  2327. result.options_ = 0UL;
  2328. return this;
  2329. }
  2330. }
  2331. static ReadWriteSet() {
  2332. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  2333. }
  2334. }
  2335. public sealed partial class Minitransaction : pb::GeneratedMessage<Minitransaction, Minitransaction.Builder> {
  2336. private static readonly Minitransaction defaultInstance = new Builder().BuildPartial();
  2337. public static Minitransaction DefaultInstance {
  2338. get { return defaultInstance; }
  2339. }
  2340. public override Minitransaction DefaultInstanceForType {
  2341. get { return defaultInstance; }
  2342. }
  2343. protected override Minitransaction ThisMessage {
  2344. get { return this; }
  2345. }
  2346. public static pbd::MessageDescriptor Descriptor {
  2347. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor; }
  2348. }
  2349. protected override pb::FieldAccess.FieldAccessorTable<Minitransaction, Minitransaction.Builder> InternalFieldAccessors {
  2350. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable; }
  2351. }
  2352. #region Nested types
  2353. public static class Types {
  2354. public enum TransactionOptions {
  2355. RETURN_READ_NAMES = 1,
  2356. }
  2357. }
  2358. #endregion
  2359. public const int ReadsFieldNumber = 9;
  2360. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  2361. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  2362. get { return reads_; }
  2363. }
  2364. public int ReadsCount {
  2365. get { return reads_.Count; }
  2366. }
  2367. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  2368. return reads_[index];
  2369. }
  2370. public const int WritesFieldNumber = 10;
  2371. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> writes_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  2372. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList {
  2373. get { return writes_; }
  2374. }
  2375. public int WritesCount {
  2376. get { return writes_.Count; }
  2377. }
  2378. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
  2379. return writes_[index];
  2380. }
  2381. public const int ComparesFieldNumber = 11;
  2382. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> compares_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement>();
  2383. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> ComparesList {
  2384. get { return compares_; }
  2385. }
  2386. public int ComparesCount {
  2387. get { return compares_.Count; }
  2388. }
  2389. public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement GetCompares(int index) {
  2390. return compares_[index];
  2391. }
  2392. public const int OptionsFieldNumber = 14;
  2393. private bool hasOptions;
  2394. private ulong options_ = 0UL;
  2395. public bool HasOptions {
  2396. get { return hasOptions; }
  2397. }
  2398. [global::System.CLSCompliant(false)]
  2399. public ulong Options {
  2400. get { return options_; }
  2401. }
  2402. public override bool IsInitialized {
  2403. get {
  2404. return true;
  2405. }
  2406. }
  2407. public override void WriteTo(pb::CodedOutputStream output) {
  2408. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  2409. output.WriteMessage(9, element);
  2410. }
  2411. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
  2412. output.WriteMessage(10, element);
  2413. }
  2414. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement element in ComparesList) {
  2415. output.WriteMessage(11, element);
  2416. }
  2417. if (HasOptions) {
  2418. output.WriteUInt64(14, Options);
  2419. }
  2420. UnknownFields.WriteTo(output);
  2421. }
  2422. private int memoizedSerializedSize = -1;
  2423. public override int SerializedSize {
  2424. get {
  2425. int size = memoizedSerializedSize;
  2426. if (size != -1) return size;
  2427. size = 0;
  2428. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  2429. size += pb::CodedOutputStream.ComputeMessageSize(9, element);
  2430. }
  2431. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
  2432. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  2433. }
  2434. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement element in ComparesList) {
  2435. size += pb::CodedOutputStream.ComputeMessageSize(11, element);
  2436. }
  2437. if (HasOptions) {
  2438. size += pb::CodedOutputStream.ComputeUInt64Size(14, Options);
  2439. }
  2440. size += UnknownFields.SerializedSize;
  2441. memoizedSerializedSize = size;
  2442. return size;
  2443. }
  2444. }
  2445. public static Minitransaction ParseFrom(pb::ByteString data) {
  2446. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2447. }
  2448. public static Minitransaction ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2449. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2450. }
  2451. public static Minitransaction ParseFrom(byte[] data) {
  2452. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2453. }
  2454. public static Minitransaction ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2455. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2456. }
  2457. public static Minitransaction ParseFrom(global::System.IO.Stream input) {
  2458. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2459. }
  2460. public static Minitransaction ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2461. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2462. }
  2463. public static Minitransaction ParseDelimitedFrom(global::System.IO.Stream input) {
  2464. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2465. }
  2466. public static Minitransaction ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2467. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2468. }
  2469. public static Minitransaction ParseFrom(pb::CodedInputStream input) {
  2470. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2471. }
  2472. public static Minitransaction ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2473. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2474. }
  2475. public static Builder CreateBuilder() { return new Builder(); }
  2476. public override Builder ToBuilder() { return CreateBuilder(this); }
  2477. public override Builder CreateBuilderForType() { return new Builder(); }
  2478. public static Builder CreateBuilder(Minitransaction prototype) {
  2479. return (Builder) new Builder().MergeFrom(prototype);
  2480. }
  2481. public sealed partial class Builder : pb::GeneratedBuilder<Minitransaction, Builder> {
  2482. protected override Builder ThisBuilder {
  2483. get { return this; }
  2484. }
  2485. public Builder() {}
  2486. Minitransaction result = new Minitransaction();
  2487. protected override Minitransaction MessageBeingBuilt {
  2488. get { return result; }
  2489. }
  2490. public override Builder Clear() {
  2491. result = new Minitransaction();
  2492. return this;
  2493. }
  2494. public override Builder Clone() {
  2495. return new Builder().MergeFrom(result);
  2496. }
  2497. public override pbd::MessageDescriptor DescriptorForType {
  2498. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Descriptor; }
  2499. }
  2500. public override Minitransaction DefaultInstanceForType {
  2501. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.DefaultInstance; }
  2502. }
  2503. public override Minitransaction BuildPartial() {
  2504. if (result == null) {
  2505. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  2506. }
  2507. result.reads_.MakeReadOnly();
  2508. result.writes_.MakeReadOnly();
  2509. result.compares_.MakeReadOnly();
  2510. Minitransaction returnMe = result;
  2511. result = null;
  2512. return returnMe;
  2513. }
  2514. public override Builder MergeFrom(pb::IMessage other) {
  2515. if (other is Minitransaction) {
  2516. return MergeFrom((Minitransaction) other);
  2517. } else {
  2518. base.MergeFrom(other);
  2519. return this;
  2520. }
  2521. }
  2522. public override Builder MergeFrom(Minitransaction other) {
  2523. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.DefaultInstance) return this;
  2524. if (other.reads_.Count != 0) {
  2525. base.AddRange(other.reads_, result.reads_);
  2526. }
  2527. if (other.writes_.Count != 0) {
  2528. base.AddRange(other.writes_, result.writes_);
  2529. }
  2530. if (other.compares_.Count != 0) {
  2531. base.AddRange(other.compares_, result.compares_);
  2532. }
  2533. if (other.HasOptions) {
  2534. Options = other.Options;
  2535. }
  2536. this.MergeUnknownFields(other.UnknownFields);
  2537. return this;
  2538. }
  2539. public override Builder MergeFrom(pb::CodedInputStream input) {
  2540. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2541. }
  2542. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2543. pb::UnknownFieldSet.Builder unknownFields = null;
  2544. while (true) {
  2545. uint tag = input.ReadTag();
  2546. switch (tag) {
  2547. case 0: {
  2548. if (unknownFields != null) {
  2549. this.UnknownFields = unknownFields.Build();
  2550. }
  2551. return this;
  2552. }
  2553. default: {
  2554. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2555. if (unknownFields != null) {
  2556. this.UnknownFields = unknownFields.Build();
  2557. }
  2558. return this;
  2559. }
  2560. if (unknownFields == null) {
  2561. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2562. }
  2563. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  2564. break;
  2565. }
  2566. case 74: {
  2567. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  2568. input.ReadMessage(subBuilder, extensionRegistry);
  2569. AddReads(subBuilder.BuildPartial());
  2570. break;
  2571. }
  2572. case 82: {
  2573. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  2574. input.ReadMessage(subBuilder, extensionRegistry);
  2575. AddWrites(subBuilder.BuildPartial());
  2576. break;
  2577. }
  2578. case 90: {
  2579. global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.CreateBuilder();
  2580. input.ReadMessage(subBuilder, extensionRegistry);
  2581. AddCompares(subBuilder.BuildPartial());
  2582. break;
  2583. }
  2584. case 112: {
  2585. Options = input.ReadUInt64();
  2586. break;
  2587. }
  2588. }
  2589. }
  2590. }
  2591. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  2592. get { return result.reads_; }
  2593. }
  2594. public int ReadsCount {
  2595. get { return result.ReadsCount; }
  2596. }
  2597. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  2598. return result.GetReads(index);
  2599. }
  2600. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2601. pb::ThrowHelper.ThrowIfNull(value, "value");
  2602. result.reads_[index] = value;
  2603. return this;
  2604. }
  2605. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2606. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2607. result.reads_[index] = builderForValue.Build();
  2608. return this;
  2609. }
  2610. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2611. pb::ThrowHelper.ThrowIfNull(value, "value");
  2612. result.reads_.Add(value);
  2613. return this;
  2614. }
  2615. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2616. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2617. result.reads_.Add(builderForValue.Build());
  2618. return this;
  2619. }
  2620. public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  2621. base.AddRange(values, result.reads_);
  2622. return this;
  2623. }
  2624. public Builder ClearReads() {
  2625. result.reads_.Clear();
  2626. return this;
  2627. }
  2628. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList {
  2629. get { return result.writes_; }
  2630. }
  2631. public int WritesCount {
  2632. get { return result.WritesCount; }
  2633. }
  2634. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
  2635. return result.GetWrites(index);
  2636. }
  2637. public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2638. pb::ThrowHelper.ThrowIfNull(value, "value");
  2639. result.writes_[index] = value;
  2640. return this;
  2641. }
  2642. public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2643. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2644. result.writes_[index] = builderForValue.Build();
  2645. return this;
  2646. }
  2647. public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2648. pb::ThrowHelper.ThrowIfNull(value, "value");
  2649. result.writes_.Add(value);
  2650. return this;
  2651. }
  2652. public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2653. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2654. result.writes_.Add(builderForValue.Build());
  2655. return this;
  2656. }
  2657. public Builder AddRangeWrites(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  2658. base.AddRange(values, result.writes_);
  2659. return this;
  2660. }
  2661. public Builder ClearWrites() {
  2662. result.writes_.Clear();
  2663. return this;
  2664. }
  2665. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> ComparesList {
  2666. get { return result.compares_; }
  2667. }
  2668. public int ComparesCount {
  2669. get { return result.ComparesCount; }
  2670. }
  2671. public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement GetCompares(int index) {
  2672. return result.GetCompares(index);
  2673. }
  2674. public Builder SetCompares(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement value) {
  2675. pb::ThrowHelper.ThrowIfNull(value, "value");
  2676. result.compares_[index] = value;
  2677. return this;
  2678. }
  2679. public Builder SetCompares(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder builderForValue) {
  2680. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2681. result.compares_[index] = builderForValue.Build();
  2682. return this;
  2683. }
  2684. public Builder AddCompares(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement value) {
  2685. pb::ThrowHelper.ThrowIfNull(value, "value");
  2686. result.compares_.Add(value);
  2687. return this;
  2688. }
  2689. public Builder AddCompares(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder builderForValue) {
  2690. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2691. result.compares_.Add(builderForValue.Build());
  2692. return this;
  2693. }
  2694. public Builder AddRangeCompares(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> values) {
  2695. base.AddRange(values, result.compares_);
  2696. return this;
  2697. }
  2698. public Builder ClearCompares() {
  2699. result.compares_.Clear();
  2700. return this;
  2701. }
  2702. public bool HasOptions {
  2703. get { return result.HasOptions; }
  2704. }
  2705. [global::System.CLSCompliant(false)]
  2706. public ulong Options {
  2707. get { return result.Options; }
  2708. set { SetOptions(value); }
  2709. }
  2710. [global::System.CLSCompliant(false)]
  2711. public Builder SetOptions(ulong value) {
  2712. result.hasOptions = true;
  2713. result.options_ = value;
  2714. return this;
  2715. }
  2716. public Builder ClearOptions() {
  2717. result.hasOptions = false;
  2718. result.options_ = 0UL;
  2719. return this;
  2720. }
  2721. }
  2722. static Minitransaction() {
  2723. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  2724. }
  2725. }
  2726. public sealed partial class Response : pb::GeneratedMessage<Response, Response.Builder> {
  2727. private static readonly Response defaultInstance = new Builder().BuildPartial();
  2728. public static Response DefaultInstance {
  2729. get { return defaultInstance; }
  2730. }
  2731. public override Response DefaultInstanceForType {
  2732. get { return defaultInstance; }
  2733. }
  2734. protected override Response ThisMessage {
  2735. get { return this; }
  2736. }
  2737. public static pbd::MessageDescriptor Descriptor {
  2738. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor; }
  2739. }
  2740. protected override pb::FieldAccess.FieldAccessorTable<Response, Response.Builder> InternalFieldAccessors {
  2741. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable; }
  2742. }
  2743. #region Nested types
  2744. public static class Types {
  2745. public enum ReturnStatus {
  2746. SUCCESS = 0,
  2747. DATABASE_LOCKED = 3,
  2748. KEY_MISSING = 4,
  2749. COMPARISON_FAILED = 5,
  2750. INTERNAL_ERROR = 6,
  2751. }
  2752. }
  2753. #endregion
  2754. public const int ReadsFieldNumber = 9;
  2755. private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>();
  2756. public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  2757. get { return reads_; }
  2758. }
  2759. public int ReadsCount {
  2760. get { return reads_.Count; }
  2761. }
  2762. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  2763. return reads_[index];
  2764. }
  2765. public const int ReturnStatusFieldNumber = 15;
  2766. private bool hasReturnStatus;
  2767. private global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus.SUCCESS;
  2768. public bool HasReturnStatus {
  2769. get { return hasReturnStatus; }
  2770. }
  2771. public global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus ReturnStatus {
  2772. get { return returnStatus_; }
  2773. }
  2774. public override bool IsInitialized {
  2775. get {
  2776. return true;
  2777. }
  2778. }
  2779. public override void WriteTo(pb::CodedOutputStream output) {
  2780. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  2781. output.WriteMessage(9, element);
  2782. }
  2783. if (HasReturnStatus) {
  2784. output.WriteEnum(15, (int) ReturnStatus);
  2785. }
  2786. UnknownFields.WriteTo(output);
  2787. }
  2788. private int memoizedSerializedSize = -1;
  2789. public override int SerializedSize {
  2790. get {
  2791. int size = memoizedSerializedSize;
  2792. if (size != -1) return size;
  2793. size = 0;
  2794. foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
  2795. size += pb::CodedOutputStream.ComputeMessageSize(9, element);
  2796. }
  2797. if (HasReturnStatus) {
  2798. size += pb::CodedOutputStream.ComputeEnumSize(15, (int) ReturnStatus);
  2799. }
  2800. size += UnknownFields.SerializedSize;
  2801. memoizedSerializedSize = size;
  2802. return size;
  2803. }
  2804. }
  2805. public static Response ParseFrom(pb::ByteString data) {
  2806. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2807. }
  2808. public static Response ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2809. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2810. }
  2811. public static Response ParseFrom(byte[] data) {
  2812. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2813. }
  2814. public static Response ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2815. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2816. }
  2817. public static Response ParseFrom(global::System.IO.Stream input) {
  2818. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2819. }
  2820. public static Response ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2821. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2822. }
  2823. public static Response ParseDelimitedFrom(global::System.IO.Stream input) {
  2824. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2825. }
  2826. public static Response ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2827. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2828. }
  2829. public static Response ParseFrom(pb::CodedInputStream input) {
  2830. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2831. }
  2832. public static Response ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2833. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2834. }
  2835. public static Builder CreateBuilder() { return new Builder(); }
  2836. public override Builder ToBuilder() { return CreateBuilder(this); }
  2837. public override Builder CreateBuilderForType() { return new Builder(); }
  2838. public static Builder CreateBuilder(Response prototype) {
  2839. return (Builder) new Builder().MergeFrom(prototype);
  2840. }
  2841. public sealed partial class Builder : pb::GeneratedBuilder<Response, Builder> {
  2842. protected override Builder ThisBuilder {
  2843. get { return this; }
  2844. }
  2845. public Builder() {}
  2846. Response result = new Response();
  2847. protected override Response MessageBeingBuilt {
  2848. get { return result; }
  2849. }
  2850. public override Builder Clear() {
  2851. result = new Response();
  2852. return this;
  2853. }
  2854. public override Builder Clone() {
  2855. return new Builder().MergeFrom(result);
  2856. }
  2857. public override pbd::MessageDescriptor DescriptorForType {
  2858. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Descriptor; }
  2859. }
  2860. public override Response DefaultInstanceForType {
  2861. get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.DefaultInstance; }
  2862. }
  2863. public override Response BuildPartial() {
  2864. if (result == null) {
  2865. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  2866. }
  2867. result.reads_.MakeReadOnly();
  2868. Response returnMe = result;
  2869. result = null;
  2870. return returnMe;
  2871. }
  2872. public override Builder MergeFrom(pb::IMessage other) {
  2873. if (other is Response) {
  2874. return MergeFrom((Response) other);
  2875. } else {
  2876. base.MergeFrom(other);
  2877. return this;
  2878. }
  2879. }
  2880. public override Builder MergeFrom(Response other) {
  2881. if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.DefaultInstance) return this;
  2882. if (other.reads_.Count != 0) {
  2883. base.AddRange(other.reads_, result.reads_);
  2884. }
  2885. if (other.HasReturnStatus) {
  2886. ReturnStatus = other.ReturnStatus;
  2887. }
  2888. this.MergeUnknownFields(other.UnknownFields);
  2889. return this;
  2890. }
  2891. public override Builder MergeFrom(pb::CodedInputStream input) {
  2892. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2893. }
  2894. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2895. pb::UnknownFieldSet.Builder unknownFields = null;
  2896. while (true) {
  2897. uint tag = input.ReadTag();
  2898. switch (tag) {
  2899. case 0: {
  2900. if (unknownFields != null) {
  2901. this.UnknownFields = unknownFields.Build();
  2902. }
  2903. return this;
  2904. }
  2905. default: {
  2906. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2907. if (unknownFields != null) {
  2908. this.UnknownFields = unknownFields.Build();
  2909. }
  2910. return this;
  2911. }
  2912. if (unknownFields == null) {
  2913. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2914. }
  2915. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  2916. break;
  2917. }
  2918. case 74: {
  2919. global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
  2920. input.ReadMessage(subBuilder, extensionRegistry);
  2921. AddReads(subBuilder.BuildPartial());
  2922. break;
  2923. }
  2924. case 120: {
  2925. int rawValue = input.ReadEnum();
  2926. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus), rawValue)) {
  2927. if (unknownFields == null) {
  2928. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2929. }
  2930. unknownFields.MergeVarintField(15, (ulong) rawValue);
  2931. } else {
  2932. ReturnStatus = (global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus) rawValue;
  2933. }
  2934. break;
  2935. }
  2936. }
  2937. }
  2938. }
  2939. public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList {
  2940. get { return result.reads_; }
  2941. }
  2942. public int ReadsCount {
  2943. get { return result.ReadsCount; }
  2944. }
  2945. public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
  2946. return result.GetReads(index);
  2947. }
  2948. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2949. pb::ThrowHelper.ThrowIfNull(value, "value");
  2950. result.reads_[index] = value;
  2951. return this;
  2952. }
  2953. public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2954. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2955. result.reads_[index] = builderForValue.Build();
  2956. return this;
  2957. }
  2958. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
  2959. pb::ThrowHelper.ThrowIfNull(value, "value");
  2960. result.reads_.Add(value);
  2961. return this;
  2962. }
  2963. public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
  2964. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2965. result.reads_.Add(builderForValue.Build());
  2966. return this;
  2967. }
  2968. public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) {
  2969. base.AddRange(values, result.reads_);
  2970. return this;
  2971. }
  2972. public Builder ClearReads() {
  2973. result.reads_.Clear();
  2974. return this;
  2975. }
  2976. public bool HasReturnStatus {
  2977. get { return result.HasReturnStatus; }
  2978. }
  2979. public global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus ReturnStatus {
  2980. get { return result.ReturnStatus; }
  2981. set { SetReturnStatus(value); }
  2982. }
  2983. public Builder SetReturnStatus(global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus value) {
  2984. result.hasReturnStatus = true;
  2985. result.returnStatus_ = value;
  2986. return this;
  2987. }
  2988. public Builder ClearReturnStatus() {
  2989. result.hasReturnStatus = false;
  2990. result.returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus.SUCCESS;
  2991. return this;
  2992. }
  2993. }
  2994. static Response() {
  2995. object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
  2996. }
  2997. }
  2998. #endregion
  2999. }