Persistence.pbj.cs 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using pbd = global::Google.ProtocolBuffers.Descriptors;
  28. using pb = global::Google.ProtocolBuffers;
  29. namespace Sirikata.Persistence.Protocol {
  30. public class StorageKey : PBJ.IMessage {
  31. protected _PBJ_Internal.StorageKey super;
  32. public _PBJ_Internal.StorageKey _PBJSuper{ get { return super;} }
  33. public StorageKey() {
  34. super=new _PBJ_Internal.StorageKey();
  35. }
  36. public StorageKey(_PBJ_Internal.StorageKey reference) {
  37. super=reference;
  38. }
  39. public static StorageKey defaultInstance= new StorageKey (_PBJ_Internal.StorageKey.DefaultInstance);
  40. public static StorageKey DefaultInstance{
  41. get {return defaultInstance;}
  42. }
  43. public static pbd.MessageDescriptor Descriptor {
  44. get { return _PBJ_Internal.StorageKey.Descriptor; } }
  45. public static class Types {
  46. }
  47. public static bool WithinReservedFieldTagRange(int field_tag) {
  48. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  49. }
  50. public static bool WithinExtensionFieldTagRange(int field_tag) {
  51. return false;
  52. }
  53. public const int ObjectUuidFieldTag=9;
  54. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  55. public PBJ.UUID ObjectUuid{ get {
  56. if (HasObjectUuid) {
  57. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  58. } else {
  59. return PBJ._PBJ.CastUuid();
  60. }
  61. }
  62. }
  63. public const int FieldIdFieldTag=10;
  64. public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
  65. public ulong FieldId{ get {
  66. if (HasFieldId) {
  67. return PBJ._PBJ.CastUint64(super.FieldId);
  68. } else {
  69. return PBJ._PBJ.CastUint64();
  70. }
  71. }
  72. }
  73. public const int FieldNameFieldTag=11;
  74. public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
  75. public string FieldName{ get {
  76. if (HasFieldName) {
  77. return PBJ._PBJ.CastString(super.FieldName);
  78. } else {
  79. return PBJ._PBJ.CastString();
  80. }
  81. }
  82. }
  83. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  84. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  85. public static Builder CreateBuilder() { return new Builder(); }
  86. public static Builder CreateBuilder(StorageKey prototype) {
  87. return (Builder)new Builder().MergeFrom(prototype);
  88. }
  89. public static StorageKey ParseFrom(pb::ByteString data) {
  90. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
  91. }
  92. public static StorageKey ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  93. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
  94. }
  95. public static StorageKey ParseFrom(byte[] data) {
  96. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
  97. }
  98. public static StorageKey ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  99. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
  100. }
  101. public static StorageKey ParseFrom(global::System.IO.Stream data) {
  102. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
  103. }
  104. public static StorageKey ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  105. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
  106. }
  107. public static StorageKey ParseFrom(pb::CodedInputStream data) {
  108. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
  109. }
  110. public static StorageKey ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  111. return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
  112. }
  113. protected override bool _HasAllPBJFields{ get {
  114. return true
  115. ;
  116. } }
  117. public bool IsInitialized { get {
  118. return super.IsInitialized&&_HasAllPBJFields;
  119. } }
  120. public class Builder : global::PBJ.IMessage.IBuilder{
  121. protected override bool _HasAllPBJFields{ get {
  122. return true
  123. ;
  124. } }
  125. public bool IsInitialized { get {
  126. return super.IsInitialized&&_HasAllPBJFields;
  127. } }
  128. protected _PBJ_Internal.StorageKey.Builder super;
  129. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  130. public _PBJ_Internal.StorageKey.Builder _PBJSuper{ get { return super;} }
  131. public Builder() {super = new _PBJ_Internal.StorageKey.Builder();}
  132. public Builder(_PBJ_Internal.StorageKey.Builder other) {
  133. super=other;
  134. }
  135. public Builder Clone() {return new Builder(super.Clone());}
  136. public Builder MergeFrom(StorageKey prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  137. public Builder Clear() {super.Clear();return this;}
  138. public StorageKey BuildPartial() {return new StorageKey(super.BuildPartial());}
  139. public StorageKey Build() {if (_HasAllPBJFields) return new StorageKey(super.Build());return null;}
  140. public pbd::MessageDescriptor DescriptorForType {
  141. get { return StorageKey.Descriptor; } }
  142. public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
  143. public const int ObjectUuidFieldTag=9;
  144. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  145. public PBJ.UUID ObjectUuid{ get {
  146. if (HasObjectUuid) {
  147. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  148. } else {
  149. return PBJ._PBJ.CastUuid();
  150. }
  151. }
  152. set {
  153. super.ObjectUuid=(PBJ._PBJ.Construct(value));
  154. }
  155. }
  156. public Builder ClearFieldId() { super.ClearFieldId();return this;}
  157. public const int FieldIdFieldTag=10;
  158. public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
  159. public ulong FieldId{ get {
  160. if (HasFieldId) {
  161. return PBJ._PBJ.CastUint64(super.FieldId);
  162. } else {
  163. return PBJ._PBJ.CastUint64();
  164. }
  165. }
  166. set {
  167. super.FieldId=(PBJ._PBJ.Construct(value));
  168. }
  169. }
  170. public Builder ClearFieldName() { super.ClearFieldName();return this;}
  171. public const int FieldNameFieldTag=11;
  172. public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
  173. public string FieldName{ get {
  174. if (HasFieldName) {
  175. return PBJ._PBJ.CastString(super.FieldName);
  176. } else {
  177. return PBJ._PBJ.CastString();
  178. }
  179. }
  180. set {
  181. super.FieldName=(PBJ._PBJ.Construct(value));
  182. }
  183. }
  184. }
  185. }
  186. }
  187. namespace Sirikata.Persistence.Protocol {
  188. public class StorageValue : PBJ.IMessage {
  189. protected _PBJ_Internal.StorageValue super;
  190. public _PBJ_Internal.StorageValue _PBJSuper{ get { return super;} }
  191. public StorageValue() {
  192. super=new _PBJ_Internal.StorageValue();
  193. }
  194. public StorageValue(_PBJ_Internal.StorageValue reference) {
  195. super=reference;
  196. }
  197. public static StorageValue defaultInstance= new StorageValue (_PBJ_Internal.StorageValue.DefaultInstance);
  198. public static StorageValue DefaultInstance{
  199. get {return defaultInstance;}
  200. }
  201. public static pbd.MessageDescriptor Descriptor {
  202. get { return _PBJ_Internal.StorageValue.Descriptor; } }
  203. public static class Types {
  204. }
  205. public static bool WithinReservedFieldTagRange(int field_tag) {
  206. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  207. }
  208. public static bool WithinExtensionFieldTagRange(int field_tag) {
  209. return false;
  210. }
  211. public const int DataFieldTag=12;
  212. public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
  213. public pb::ByteString Data{ get {
  214. if (HasData) {
  215. return PBJ._PBJ.CastBytes(super.Data);
  216. } else {
  217. return PBJ._PBJ.CastBytes();
  218. }
  219. }
  220. }
  221. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  222. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  223. public static Builder CreateBuilder() { return new Builder(); }
  224. public static Builder CreateBuilder(StorageValue prototype) {
  225. return (Builder)new Builder().MergeFrom(prototype);
  226. }
  227. public static StorageValue ParseFrom(pb::ByteString data) {
  228. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
  229. }
  230. public static StorageValue ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  231. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
  232. }
  233. public static StorageValue ParseFrom(byte[] data) {
  234. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
  235. }
  236. public static StorageValue ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  237. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
  238. }
  239. public static StorageValue ParseFrom(global::System.IO.Stream data) {
  240. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
  241. }
  242. public static StorageValue ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  243. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
  244. }
  245. public static StorageValue ParseFrom(pb::CodedInputStream data) {
  246. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
  247. }
  248. public static StorageValue ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  249. return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
  250. }
  251. protected override bool _HasAllPBJFields{ get {
  252. return true
  253. ;
  254. } }
  255. public bool IsInitialized { get {
  256. return super.IsInitialized&&_HasAllPBJFields;
  257. } }
  258. public class Builder : global::PBJ.IMessage.IBuilder{
  259. protected override bool _HasAllPBJFields{ get {
  260. return true
  261. ;
  262. } }
  263. public bool IsInitialized { get {
  264. return super.IsInitialized&&_HasAllPBJFields;
  265. } }
  266. protected _PBJ_Internal.StorageValue.Builder super;
  267. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  268. public _PBJ_Internal.StorageValue.Builder _PBJSuper{ get { return super;} }
  269. public Builder() {super = new _PBJ_Internal.StorageValue.Builder();}
  270. public Builder(_PBJ_Internal.StorageValue.Builder other) {
  271. super=other;
  272. }
  273. public Builder Clone() {return new Builder(super.Clone());}
  274. public Builder MergeFrom(StorageValue prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  275. public Builder Clear() {super.Clear();return this;}
  276. public StorageValue BuildPartial() {return new StorageValue(super.BuildPartial());}
  277. public StorageValue Build() {if (_HasAllPBJFields) return new StorageValue(super.Build());return null;}
  278. public pbd::MessageDescriptor DescriptorForType {
  279. get { return StorageValue.Descriptor; } }
  280. public Builder ClearData() { super.ClearData();return this;}
  281. public const int DataFieldTag=12;
  282. public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
  283. public pb::ByteString Data{ get {
  284. if (HasData) {
  285. return PBJ._PBJ.CastBytes(super.Data);
  286. } else {
  287. return PBJ._PBJ.CastBytes();
  288. }
  289. }
  290. set {
  291. super.Data=(PBJ._PBJ.Construct(value));
  292. }
  293. }
  294. }
  295. }
  296. }
  297. namespace Sirikata.Persistence.Protocol {
  298. public class StorageElement : PBJ.IMessage {
  299. protected _PBJ_Internal.StorageElement super;
  300. public _PBJ_Internal.StorageElement _PBJSuper{ get { return super;} }
  301. public StorageElement() {
  302. super=new _PBJ_Internal.StorageElement();
  303. }
  304. public StorageElement(_PBJ_Internal.StorageElement reference) {
  305. super=reference;
  306. }
  307. public static StorageElement defaultInstance= new StorageElement (_PBJ_Internal.StorageElement.DefaultInstance);
  308. public static StorageElement DefaultInstance{
  309. get {return defaultInstance;}
  310. }
  311. public static pbd.MessageDescriptor Descriptor {
  312. get { return _PBJ_Internal.StorageElement.Descriptor; } }
  313. public static class Types {
  314. public enum ReturnStatus {
  315. KEY_MISSING=_PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING,
  316. INTERNAL_ERROR=_PBJ_Internal.StorageElement.Types.ReturnStatus.INTERNAL_ERROR
  317. };
  318. }
  319. public static bool WithinReservedFieldTagRange(int field_tag) {
  320. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  321. }
  322. public static bool WithinExtensionFieldTagRange(int field_tag) {
  323. return false;
  324. }
  325. public const int ObjectUuidFieldTag=9;
  326. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  327. public PBJ.UUID ObjectUuid{ get {
  328. if (HasObjectUuid) {
  329. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  330. } else {
  331. return PBJ._PBJ.CastUuid();
  332. }
  333. }
  334. }
  335. public const int FieldIdFieldTag=10;
  336. public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
  337. public ulong FieldId{ get {
  338. if (HasFieldId) {
  339. return PBJ._PBJ.CastUint64(super.FieldId);
  340. } else {
  341. return PBJ._PBJ.CastUint64();
  342. }
  343. }
  344. }
  345. public const int FieldNameFieldTag=11;
  346. public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
  347. public string FieldName{ get {
  348. if (HasFieldName) {
  349. return PBJ._PBJ.CastString(super.FieldName);
  350. } else {
  351. return PBJ._PBJ.CastString();
  352. }
  353. }
  354. }
  355. public const int DataFieldTag=12;
  356. public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
  357. public pb::ByteString Data{ get {
  358. if (HasData) {
  359. return PBJ._PBJ.CastBytes(super.Data);
  360. } else {
  361. return PBJ._PBJ.CastBytes();
  362. }
  363. }
  364. }
  365. public const int IndexFieldTag=13;
  366. public bool HasIndex{ get {return super.HasIndex&&PBJ._PBJ.ValidateInt32(super.Index);} }
  367. public int Index{ get {
  368. if (HasIndex) {
  369. return PBJ._PBJ.CastInt32(super.Index);
  370. } else {
  371. return PBJ._PBJ.CastInt32();
  372. }
  373. }
  374. }
  375. public const int ReturnStatusFieldTag=15;
  376. public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
  377. public Types.ReturnStatus ReturnStatus{ get {
  378. if (HasReturnStatus) {
  379. return (Types.ReturnStatus)super.ReturnStatus;
  380. } else {
  381. return new Types.ReturnStatus();
  382. }
  383. }
  384. }
  385. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  386. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  387. public static Builder CreateBuilder() { return new Builder(); }
  388. public static Builder CreateBuilder(StorageElement prototype) {
  389. return (Builder)new Builder().MergeFrom(prototype);
  390. }
  391. public static StorageElement ParseFrom(pb::ByteString data) {
  392. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
  393. }
  394. public static StorageElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  395. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
  396. }
  397. public static StorageElement ParseFrom(byte[] data) {
  398. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
  399. }
  400. public static StorageElement ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  401. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
  402. }
  403. public static StorageElement ParseFrom(global::System.IO.Stream data) {
  404. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
  405. }
  406. public static StorageElement ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  407. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
  408. }
  409. public static StorageElement ParseFrom(pb::CodedInputStream data) {
  410. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
  411. }
  412. public static StorageElement ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  413. return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
  414. }
  415. protected override bool _HasAllPBJFields{ get {
  416. return true
  417. ;
  418. } }
  419. public bool IsInitialized { get {
  420. return super.IsInitialized&&_HasAllPBJFields;
  421. } }
  422. public class Builder : global::PBJ.IMessage.IBuilder{
  423. protected override bool _HasAllPBJFields{ get {
  424. return true
  425. ;
  426. } }
  427. public bool IsInitialized { get {
  428. return super.IsInitialized&&_HasAllPBJFields;
  429. } }
  430. protected _PBJ_Internal.StorageElement.Builder super;
  431. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  432. public _PBJ_Internal.StorageElement.Builder _PBJSuper{ get { return super;} }
  433. public Builder() {super = new _PBJ_Internal.StorageElement.Builder();}
  434. public Builder(_PBJ_Internal.StorageElement.Builder other) {
  435. super=other;
  436. }
  437. public Builder Clone() {return new Builder(super.Clone());}
  438. public Builder MergeFrom(StorageElement prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  439. public Builder Clear() {super.Clear();return this;}
  440. public StorageElement BuildPartial() {return new StorageElement(super.BuildPartial());}
  441. public StorageElement Build() {if (_HasAllPBJFields) return new StorageElement(super.Build());return null;}
  442. public pbd::MessageDescriptor DescriptorForType {
  443. get { return StorageElement.Descriptor; } }
  444. public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
  445. public const int ObjectUuidFieldTag=9;
  446. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  447. public PBJ.UUID ObjectUuid{ get {
  448. if (HasObjectUuid) {
  449. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  450. } else {
  451. return PBJ._PBJ.CastUuid();
  452. }
  453. }
  454. set {
  455. super.ObjectUuid=(PBJ._PBJ.Construct(value));
  456. }
  457. }
  458. public Builder ClearFieldId() { super.ClearFieldId();return this;}
  459. public const int FieldIdFieldTag=10;
  460. public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
  461. public ulong FieldId{ get {
  462. if (HasFieldId) {
  463. return PBJ._PBJ.CastUint64(super.FieldId);
  464. } else {
  465. return PBJ._PBJ.CastUint64();
  466. }
  467. }
  468. set {
  469. super.FieldId=(PBJ._PBJ.Construct(value));
  470. }
  471. }
  472. public Builder ClearFieldName() { super.ClearFieldName();return this;}
  473. public const int FieldNameFieldTag=11;
  474. public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
  475. public string FieldName{ get {
  476. if (HasFieldName) {
  477. return PBJ._PBJ.CastString(super.FieldName);
  478. } else {
  479. return PBJ._PBJ.CastString();
  480. }
  481. }
  482. set {
  483. super.FieldName=(PBJ._PBJ.Construct(value));
  484. }
  485. }
  486. public Builder ClearData() { super.ClearData();return this;}
  487. public const int DataFieldTag=12;
  488. public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
  489. public pb::ByteString Data{ get {
  490. if (HasData) {
  491. return PBJ._PBJ.CastBytes(super.Data);
  492. } else {
  493. return PBJ._PBJ.CastBytes();
  494. }
  495. }
  496. set {
  497. super.Data=(PBJ._PBJ.Construct(value));
  498. }
  499. }
  500. public Builder ClearIndex() { super.ClearIndex();return this;}
  501. public const int IndexFieldTag=13;
  502. public bool HasIndex{ get {return super.HasIndex&&PBJ._PBJ.ValidateInt32(super.Index);} }
  503. public int Index{ get {
  504. if (HasIndex) {
  505. return PBJ._PBJ.CastInt32(super.Index);
  506. } else {
  507. return PBJ._PBJ.CastInt32();
  508. }
  509. }
  510. set {
  511. super.Index=(PBJ._PBJ.Construct(value));
  512. }
  513. }
  514. public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;}
  515. public const int ReturnStatusFieldTag=15;
  516. public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
  517. public Types.ReturnStatus ReturnStatus{ get {
  518. if (HasReturnStatus) {
  519. return (Types.ReturnStatus)super.ReturnStatus;
  520. } else {
  521. return new Types.ReturnStatus();
  522. }
  523. }
  524. set {
  525. super.ReturnStatus=((_PBJ_Internal.StorageElement.Types.ReturnStatus)value);
  526. }
  527. }
  528. }
  529. }
  530. }
  531. namespace Sirikata.Persistence.Protocol {
  532. public class CompareElement : PBJ.IMessage {
  533. protected _PBJ_Internal.CompareElement super;
  534. public _PBJ_Internal.CompareElement _PBJSuper{ get { return super;} }
  535. public CompareElement() {
  536. super=new _PBJ_Internal.CompareElement();
  537. }
  538. public CompareElement(_PBJ_Internal.CompareElement reference) {
  539. super=reference;
  540. }
  541. public static CompareElement defaultInstance= new CompareElement (_PBJ_Internal.CompareElement.DefaultInstance);
  542. public static CompareElement DefaultInstance{
  543. get {return defaultInstance;}
  544. }
  545. public static pbd.MessageDescriptor Descriptor {
  546. get { return _PBJ_Internal.CompareElement.Descriptor; } }
  547. public static class Types {
  548. public enum COMPARATOR {
  549. EQUAL=_PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL,
  550. NEQUAL=_PBJ_Internal.CompareElement.Types.COMPARATOR.NEQUAL
  551. };
  552. }
  553. public static bool WithinReservedFieldTagRange(int field_tag) {
  554. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  555. }
  556. public static bool WithinExtensionFieldTagRange(int field_tag) {
  557. return false;
  558. }
  559. public const int ObjectUuidFieldTag=9;
  560. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  561. public PBJ.UUID ObjectUuid{ get {
  562. if (HasObjectUuid) {
  563. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  564. } else {
  565. return PBJ._PBJ.CastUuid();
  566. }
  567. }
  568. }
  569. public const int FieldIdFieldTag=10;
  570. public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
  571. public ulong FieldId{ get {
  572. if (HasFieldId) {
  573. return PBJ._PBJ.CastUint64(super.FieldId);
  574. } else {
  575. return PBJ._PBJ.CastUint64();
  576. }
  577. }
  578. }
  579. public const int FieldNameFieldTag=11;
  580. public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
  581. public string FieldName{ get {
  582. if (HasFieldName) {
  583. return PBJ._PBJ.CastString(super.FieldName);
  584. } else {
  585. return PBJ._PBJ.CastString();
  586. }
  587. }
  588. }
  589. public const int DataFieldTag=12;
  590. public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
  591. public pb::ByteString Data{ get {
  592. if (HasData) {
  593. return PBJ._PBJ.CastBytes(super.Data);
  594. } else {
  595. return PBJ._PBJ.CastBytes();
  596. }
  597. }
  598. }
  599. public const int ComparatorFieldTag=14;
  600. public bool HasComparator{ get {return super.HasComparator;} }
  601. public Types.COMPARATOR Comparator{ get {
  602. if (HasComparator) {
  603. return (Types.COMPARATOR)super.Comparator;
  604. } else {
  605. return new Types.COMPARATOR();
  606. }
  607. }
  608. }
  609. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  610. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  611. public static Builder CreateBuilder() { return new Builder(); }
  612. public static Builder CreateBuilder(CompareElement prototype) {
  613. return (Builder)new Builder().MergeFrom(prototype);
  614. }
  615. public static CompareElement ParseFrom(pb::ByteString data) {
  616. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
  617. }
  618. public static CompareElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  619. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
  620. }
  621. public static CompareElement ParseFrom(byte[] data) {
  622. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
  623. }
  624. public static CompareElement ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  625. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
  626. }
  627. public static CompareElement ParseFrom(global::System.IO.Stream data) {
  628. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
  629. }
  630. public static CompareElement ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  631. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
  632. }
  633. public static CompareElement ParseFrom(pb::CodedInputStream data) {
  634. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
  635. }
  636. public static CompareElement ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  637. return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
  638. }
  639. protected override bool _HasAllPBJFields{ get {
  640. return true
  641. ;
  642. } }
  643. public bool IsInitialized { get {
  644. return super.IsInitialized&&_HasAllPBJFields;
  645. } }
  646. public class Builder : global::PBJ.IMessage.IBuilder{
  647. protected override bool _HasAllPBJFields{ get {
  648. return true
  649. ;
  650. } }
  651. public bool IsInitialized { get {
  652. return super.IsInitialized&&_HasAllPBJFields;
  653. } }
  654. protected _PBJ_Internal.CompareElement.Builder super;
  655. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  656. public _PBJ_Internal.CompareElement.Builder _PBJSuper{ get { return super;} }
  657. public Builder() {super = new _PBJ_Internal.CompareElement.Builder();}
  658. public Builder(_PBJ_Internal.CompareElement.Builder other) {
  659. super=other;
  660. }
  661. public Builder Clone() {return new Builder(super.Clone());}
  662. public Builder MergeFrom(CompareElement prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  663. public Builder Clear() {super.Clear();return this;}
  664. public CompareElement BuildPartial() {return new CompareElement(super.BuildPartial());}
  665. public CompareElement Build() {if (_HasAllPBJFields) return new CompareElement(super.Build());return null;}
  666. public pbd::MessageDescriptor DescriptorForType {
  667. get { return CompareElement.Descriptor; } }
  668. public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
  669. public const int ObjectUuidFieldTag=9;
  670. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  671. public PBJ.UUID ObjectUuid{ get {
  672. if (HasObjectUuid) {
  673. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  674. } else {
  675. return PBJ._PBJ.CastUuid();
  676. }
  677. }
  678. set {
  679. super.ObjectUuid=(PBJ._PBJ.Construct(value));
  680. }
  681. }
  682. public Builder ClearFieldId() { super.ClearFieldId();return this;}
  683. public const int FieldIdFieldTag=10;
  684. public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
  685. public ulong FieldId{ get {
  686. if (HasFieldId) {
  687. return PBJ._PBJ.CastUint64(super.FieldId);
  688. } else {
  689. return PBJ._PBJ.CastUint64();
  690. }
  691. }
  692. set {
  693. super.FieldId=(PBJ._PBJ.Construct(value));
  694. }
  695. }
  696. public Builder ClearFieldName() { super.ClearFieldName();return this;}
  697. public const int FieldNameFieldTag=11;
  698. public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
  699. public string FieldName{ get {
  700. if (HasFieldName) {
  701. return PBJ._PBJ.CastString(super.FieldName);
  702. } else {
  703. return PBJ._PBJ.CastString();
  704. }
  705. }
  706. set {
  707. super.FieldName=(PBJ._PBJ.Construct(value));
  708. }
  709. }
  710. public Builder ClearData() { super.ClearData();return this;}
  711. public const int DataFieldTag=12;
  712. public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
  713. public pb::ByteString Data{ get {
  714. if (HasData) {
  715. return PBJ._PBJ.CastBytes(super.Data);
  716. } else {
  717. return PBJ._PBJ.CastBytes();
  718. }
  719. }
  720. set {
  721. super.Data=(PBJ._PBJ.Construct(value));
  722. }
  723. }
  724. public Builder ClearComparator() { super.ClearComparator();return this;}
  725. public const int ComparatorFieldTag=14;
  726. public bool HasComparator{ get {return super.HasComparator;} }
  727. public Types.COMPARATOR Comparator{ get {
  728. if (HasComparator) {
  729. return (Types.COMPARATOR)super.Comparator;
  730. } else {
  731. return new Types.COMPARATOR();
  732. }
  733. }
  734. set {
  735. super.Comparator=((_PBJ_Internal.CompareElement.Types.COMPARATOR)value);
  736. }
  737. }
  738. }
  739. }
  740. }
  741. namespace Sirikata.Persistence.Protocol {
  742. public class StorageSet : PBJ.IMessage {
  743. protected _PBJ_Internal.StorageSet super;
  744. public _PBJ_Internal.StorageSet _PBJSuper{ get { return super;} }
  745. public StorageSet() {
  746. super=new _PBJ_Internal.StorageSet();
  747. }
  748. public StorageSet(_PBJ_Internal.StorageSet reference) {
  749. super=reference;
  750. }
  751. public static StorageSet defaultInstance= new StorageSet (_PBJ_Internal.StorageSet.DefaultInstance);
  752. public static StorageSet DefaultInstance{
  753. get {return defaultInstance;}
  754. }
  755. public static pbd.MessageDescriptor Descriptor {
  756. get { return _PBJ_Internal.StorageSet.Descriptor; } }
  757. public static class Types {
  758. }
  759. public static bool WithinReservedFieldTagRange(int field_tag) {
  760. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  761. }
  762. public static bool WithinExtensionFieldTagRange(int field_tag) {
  763. return false;
  764. }
  765. public const int ReadsFieldTag=9;
  766. public int ReadsCount { get { return super.ReadsCount;} }
  767. public bool HasReads(int index) {return true;}
  768. public StorageElement Reads(int index) {
  769. return new StorageElement(super.GetReads(index));
  770. }
  771. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  772. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  773. public static Builder CreateBuilder() { return new Builder(); }
  774. public static Builder CreateBuilder(StorageSet prototype) {
  775. return (Builder)new Builder().MergeFrom(prototype);
  776. }
  777. public static StorageSet ParseFrom(pb::ByteString data) {
  778. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
  779. }
  780. public static StorageSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  781. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
  782. }
  783. public static StorageSet ParseFrom(byte[] data) {
  784. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
  785. }
  786. public static StorageSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  787. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
  788. }
  789. public static StorageSet ParseFrom(global::System.IO.Stream data) {
  790. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
  791. }
  792. public static StorageSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  793. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
  794. }
  795. public static StorageSet ParseFrom(pb::CodedInputStream data) {
  796. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
  797. }
  798. public static StorageSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  799. return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
  800. }
  801. protected override bool _HasAllPBJFields{ get {
  802. return true
  803. ;
  804. } }
  805. public bool IsInitialized { get {
  806. return super.IsInitialized&&_HasAllPBJFields;
  807. } }
  808. public class Builder : global::PBJ.IMessage.IBuilder{
  809. protected override bool _HasAllPBJFields{ get {
  810. return true
  811. ;
  812. } }
  813. public bool IsInitialized { get {
  814. return super.IsInitialized&&_HasAllPBJFields;
  815. } }
  816. protected _PBJ_Internal.StorageSet.Builder super;
  817. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  818. public _PBJ_Internal.StorageSet.Builder _PBJSuper{ get { return super;} }
  819. public Builder() {super = new _PBJ_Internal.StorageSet.Builder();}
  820. public Builder(_PBJ_Internal.StorageSet.Builder other) {
  821. super=other;
  822. }
  823. public Builder Clone() {return new Builder(super.Clone());}
  824. public Builder MergeFrom(StorageSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  825. public Builder Clear() {super.Clear();return this;}
  826. public StorageSet BuildPartial() {return new StorageSet(super.BuildPartial());}
  827. public StorageSet Build() {if (_HasAllPBJFields) return new StorageSet(super.Build());return null;}
  828. public pbd::MessageDescriptor DescriptorForType {
  829. get { return StorageSet.Descriptor; } }
  830. public Builder ClearReads() { super.ClearReads();return this;}
  831. public Builder SetReads(int index,StorageElement value) {
  832. super.SetReads(index,value._PBJSuper);
  833. return this;
  834. }
  835. public const int ReadsFieldTag=9;
  836. public int ReadsCount { get { return super.ReadsCount;} }
  837. public bool HasReads(int index) {return true;}
  838. public StorageElement Reads(int index) {
  839. return new StorageElement(super.GetReads(index));
  840. }
  841. public Builder AddReads(StorageElement value) {
  842. super.AddReads(value._PBJSuper);
  843. return this;
  844. }
  845. }
  846. }
  847. }
  848. namespace Sirikata.Persistence.Protocol {
  849. public class ReadSet : PBJ.IMessage {
  850. protected _PBJ_Internal.ReadSet super;
  851. public _PBJ_Internal.ReadSet _PBJSuper{ get { return super;} }
  852. public ReadSet() {
  853. super=new _PBJ_Internal.ReadSet();
  854. }
  855. public ReadSet(_PBJ_Internal.ReadSet reference) {
  856. super=reference;
  857. }
  858. public static ReadSet defaultInstance= new ReadSet (_PBJ_Internal.ReadSet.DefaultInstance);
  859. public static ReadSet DefaultInstance{
  860. get {return defaultInstance;}
  861. }
  862. public static pbd.MessageDescriptor Descriptor {
  863. get { return _PBJ_Internal.ReadSet.Descriptor; } }
  864. public static class Types {
  865. }
  866. public static bool WithinReservedFieldTagRange(int field_tag) {
  867. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  868. }
  869. public static bool WithinExtensionFieldTagRange(int field_tag) {
  870. return false;
  871. }
  872. public const int ReadsFieldTag=9;
  873. public int ReadsCount { get { return super.ReadsCount;} }
  874. public bool HasReads(int index) {return true;}
  875. public StorageElement Reads(int index) {
  876. return new StorageElement(super.GetReads(index));
  877. }
  878. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  879. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  880. public static Builder CreateBuilder() { return new Builder(); }
  881. public static Builder CreateBuilder(ReadSet prototype) {
  882. return (Builder)new Builder().MergeFrom(prototype);
  883. }
  884. public static ReadSet ParseFrom(pb::ByteString data) {
  885. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
  886. }
  887. public static ReadSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  888. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
  889. }
  890. public static ReadSet ParseFrom(byte[] data) {
  891. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
  892. }
  893. public static ReadSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  894. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
  895. }
  896. public static ReadSet ParseFrom(global::System.IO.Stream data) {
  897. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
  898. }
  899. public static ReadSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  900. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
  901. }
  902. public static ReadSet ParseFrom(pb::CodedInputStream data) {
  903. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
  904. }
  905. public static ReadSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  906. return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
  907. }
  908. protected override bool _HasAllPBJFields{ get {
  909. return true
  910. ;
  911. } }
  912. public bool IsInitialized { get {
  913. return super.IsInitialized&&_HasAllPBJFields;
  914. } }
  915. public class Builder : global::PBJ.IMessage.IBuilder{
  916. protected override bool _HasAllPBJFields{ get {
  917. return true
  918. ;
  919. } }
  920. public bool IsInitialized { get {
  921. return super.IsInitialized&&_HasAllPBJFields;
  922. } }
  923. protected _PBJ_Internal.ReadSet.Builder super;
  924. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  925. public _PBJ_Internal.ReadSet.Builder _PBJSuper{ get { return super;} }
  926. public Builder() {super = new _PBJ_Internal.ReadSet.Builder();}
  927. public Builder(_PBJ_Internal.ReadSet.Builder other) {
  928. super=other;
  929. }
  930. public Builder Clone() {return new Builder(super.Clone());}
  931. public Builder MergeFrom(ReadSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  932. public Builder Clear() {super.Clear();return this;}
  933. public ReadSet BuildPartial() {return new ReadSet(super.BuildPartial());}
  934. public ReadSet Build() {if (_HasAllPBJFields) return new ReadSet(super.Build());return null;}
  935. public pbd::MessageDescriptor DescriptorForType {
  936. get { return ReadSet.Descriptor; } }
  937. public Builder ClearReads() { super.ClearReads();return this;}
  938. public Builder SetReads(int index,StorageElement value) {
  939. super.SetReads(index,value._PBJSuper);
  940. return this;
  941. }
  942. public const int ReadsFieldTag=9;
  943. public int ReadsCount { get { return super.ReadsCount;} }
  944. public bool HasReads(int index) {return true;}
  945. public StorageElement Reads(int index) {
  946. return new StorageElement(super.GetReads(index));
  947. }
  948. public Builder AddReads(StorageElement value) {
  949. super.AddReads(value._PBJSuper);
  950. return this;
  951. }
  952. }
  953. }
  954. }
  955. namespace Sirikata.Persistence.Protocol {
  956. public class WriteSet : PBJ.IMessage {
  957. protected _PBJ_Internal.WriteSet super;
  958. public _PBJ_Internal.WriteSet _PBJSuper{ get { return super;} }
  959. public WriteSet() {
  960. super=new _PBJ_Internal.WriteSet();
  961. }
  962. public WriteSet(_PBJ_Internal.WriteSet reference) {
  963. super=reference;
  964. }
  965. public static WriteSet defaultInstance= new WriteSet (_PBJ_Internal.WriteSet.DefaultInstance);
  966. public static WriteSet DefaultInstance{
  967. get {return defaultInstance;}
  968. }
  969. public static pbd.MessageDescriptor Descriptor {
  970. get { return _PBJ_Internal.WriteSet.Descriptor; } }
  971. public static class Types {
  972. }
  973. public static bool WithinReservedFieldTagRange(int field_tag) {
  974. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  975. }
  976. public static bool WithinExtensionFieldTagRange(int field_tag) {
  977. return false;
  978. }
  979. public const int WritesFieldTag=10;
  980. public int WritesCount { get { return super.WritesCount;} }
  981. public bool HasWrites(int index) {return true;}
  982. public StorageElement Writes(int index) {
  983. return new StorageElement(super.GetWrites(index));
  984. }
  985. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  986. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  987. public static Builder CreateBuilder() { return new Builder(); }
  988. public static Builder CreateBuilder(WriteSet prototype) {
  989. return (Builder)new Builder().MergeFrom(prototype);
  990. }
  991. public static WriteSet ParseFrom(pb::ByteString data) {
  992. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
  993. }
  994. public static WriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  995. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
  996. }
  997. public static WriteSet ParseFrom(byte[] data) {
  998. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
  999. }
  1000. public static WriteSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1001. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
  1002. }
  1003. public static WriteSet ParseFrom(global::System.IO.Stream data) {
  1004. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
  1005. }
  1006. public static WriteSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1007. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
  1008. }
  1009. public static WriteSet ParseFrom(pb::CodedInputStream data) {
  1010. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
  1011. }
  1012. public static WriteSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1013. return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
  1014. }
  1015. protected override bool _HasAllPBJFields{ get {
  1016. return true
  1017. ;
  1018. } }
  1019. public bool IsInitialized { get {
  1020. return super.IsInitialized&&_HasAllPBJFields;
  1021. } }
  1022. public class Builder : global::PBJ.IMessage.IBuilder{
  1023. protected override bool _HasAllPBJFields{ get {
  1024. return true
  1025. ;
  1026. } }
  1027. public bool IsInitialized { get {
  1028. return super.IsInitialized&&_HasAllPBJFields;
  1029. } }
  1030. protected _PBJ_Internal.WriteSet.Builder super;
  1031. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1032. public _PBJ_Internal.WriteSet.Builder _PBJSuper{ get { return super;} }
  1033. public Builder() {super = new _PBJ_Internal.WriteSet.Builder();}
  1034. public Builder(_PBJ_Internal.WriteSet.Builder other) {
  1035. super=other;
  1036. }
  1037. public Builder Clone() {return new Builder(super.Clone());}
  1038. public Builder MergeFrom(WriteSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1039. public Builder Clear() {super.Clear();return this;}
  1040. public WriteSet BuildPartial() {return new WriteSet(super.BuildPartial());}
  1041. public WriteSet Build() {if (_HasAllPBJFields) return new WriteSet(super.Build());return null;}
  1042. public pbd::MessageDescriptor DescriptorForType {
  1043. get { return WriteSet.Descriptor; } }
  1044. public Builder ClearWrites() { super.ClearWrites();return this;}
  1045. public Builder SetWrites(int index,StorageElement value) {
  1046. super.SetWrites(index,value._PBJSuper);
  1047. return this;
  1048. }
  1049. public const int WritesFieldTag=10;
  1050. public int WritesCount { get { return super.WritesCount;} }
  1051. public bool HasWrites(int index) {return true;}
  1052. public StorageElement Writes(int index) {
  1053. return new StorageElement(super.GetWrites(index));
  1054. }
  1055. public Builder AddWrites(StorageElement value) {
  1056. super.AddWrites(value._PBJSuper);
  1057. return this;
  1058. }
  1059. }
  1060. }
  1061. }
  1062. namespace Sirikata.Persistence.Protocol {
  1063. public class ReadWriteSet : PBJ.IMessage {
  1064. protected _PBJ_Internal.ReadWriteSet super;
  1065. public _PBJ_Internal.ReadWriteSet _PBJSuper{ get { return super;} }
  1066. public ReadWriteSet() {
  1067. super=new _PBJ_Internal.ReadWriteSet();
  1068. }
  1069. public ReadWriteSet(_PBJ_Internal.ReadWriteSet reference) {
  1070. super=reference;
  1071. }
  1072. public static ReadWriteSet defaultInstance= new ReadWriteSet (_PBJ_Internal.ReadWriteSet.DefaultInstance);
  1073. public static ReadWriteSet DefaultInstance{
  1074. get {return defaultInstance;}
  1075. }
  1076. public static pbd.MessageDescriptor Descriptor {
  1077. get { return _PBJ_Internal.ReadWriteSet.Descriptor; } }
  1078. public static class Types {
  1079. public enum ReadWriteSetOptions {
  1080. RETURN_READ_NAMES=_PBJ_Internal.ReadWriteSet.Types.ReadWriteSetOptions.RETURN_READ_NAMES
  1081. };
  1082. }
  1083. public static bool WithinReservedFieldTagRange(int field_tag) {
  1084. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  1085. }
  1086. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1087. return false;
  1088. }
  1089. public const int ReadsFieldTag=9;
  1090. public int ReadsCount { get { return super.ReadsCount;} }
  1091. public bool HasReads(int index) {return true;}
  1092. public StorageElement Reads(int index) {
  1093. return new StorageElement(super.GetReads(index));
  1094. }
  1095. public const int WritesFieldTag=10;
  1096. public int WritesCount { get { return super.WritesCount;} }
  1097. public bool HasWrites(int index) {return true;}
  1098. public StorageElement Writes(int index) {
  1099. return new StorageElement(super.GetWrites(index));
  1100. }
  1101. public const int OptionsFieldTag=14;
  1102. public bool HasOptions { get {
  1103. if (!super.HasOptions) return false;
  1104. return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
  1105. } }
  1106. public ulong Options{ get {
  1107. if (HasOptions) {
  1108. return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
  1109. } else {
  1110. return (ulong)PBJ._PBJ.CastFlags((ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
  1111. }
  1112. }
  1113. }
  1114. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1115. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1116. public static Builder CreateBuilder() { return new Builder(); }
  1117. public static Builder CreateBuilder(ReadWriteSet prototype) {
  1118. return (Builder)new Builder().MergeFrom(prototype);
  1119. }
  1120. public static ReadWriteSet ParseFrom(pb::ByteString data) {
  1121. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
  1122. }
  1123. public static ReadWriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1124. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
  1125. }
  1126. public static ReadWriteSet ParseFrom(byte[] data) {
  1127. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
  1128. }
  1129. public static ReadWriteSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1130. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
  1131. }
  1132. public static ReadWriteSet ParseFrom(global::System.IO.Stream data) {
  1133. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
  1134. }
  1135. public static ReadWriteSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1136. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
  1137. }
  1138. public static ReadWriteSet ParseFrom(pb::CodedInputStream data) {
  1139. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
  1140. }
  1141. public static ReadWriteSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1142. return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
  1143. }
  1144. protected override bool _HasAllPBJFields{ get {
  1145. return true
  1146. ;
  1147. } }
  1148. public bool IsInitialized { get {
  1149. return super.IsInitialized&&_HasAllPBJFields;
  1150. } }
  1151. public class Builder : global::PBJ.IMessage.IBuilder{
  1152. protected override bool _HasAllPBJFields{ get {
  1153. return true
  1154. ;
  1155. } }
  1156. public bool IsInitialized { get {
  1157. return super.IsInitialized&&_HasAllPBJFields;
  1158. } }
  1159. protected _PBJ_Internal.ReadWriteSet.Builder super;
  1160. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1161. public _PBJ_Internal.ReadWriteSet.Builder _PBJSuper{ get { return super;} }
  1162. public Builder() {super = new _PBJ_Internal.ReadWriteSet.Builder();}
  1163. public Builder(_PBJ_Internal.ReadWriteSet.Builder other) {
  1164. super=other;
  1165. }
  1166. public Builder Clone() {return new Builder(super.Clone());}
  1167. public Builder MergeFrom(ReadWriteSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1168. public Builder Clear() {super.Clear();return this;}
  1169. public ReadWriteSet BuildPartial() {return new ReadWriteSet(super.BuildPartial());}
  1170. public ReadWriteSet Build() {if (_HasAllPBJFields) return new ReadWriteSet(super.Build());return null;}
  1171. public pbd::MessageDescriptor DescriptorForType {
  1172. get { return ReadWriteSet.Descriptor; } }
  1173. public Builder ClearReads() { super.ClearReads();return this;}
  1174. public Builder SetReads(int index,StorageElement value) {
  1175. super.SetReads(index,value._PBJSuper);
  1176. return this;
  1177. }
  1178. public const int ReadsFieldTag=9;
  1179. public int ReadsCount { get { return super.ReadsCount;} }
  1180. public bool HasReads(int index) {return true;}
  1181. public StorageElement Reads(int index) {
  1182. return new StorageElement(super.GetReads(index));
  1183. }
  1184. public Builder AddReads(StorageElement value) {
  1185. super.AddReads(value._PBJSuper);
  1186. return this;
  1187. }
  1188. public Builder ClearWrites() { super.ClearWrites();return this;}
  1189. public Builder SetWrites(int index,StorageElement value) {
  1190. super.SetWrites(index,value._PBJSuper);
  1191. return this;
  1192. }
  1193. public const int WritesFieldTag=10;
  1194. public int WritesCount { get { return super.WritesCount;} }
  1195. public bool HasWrites(int index) {return true;}
  1196. public StorageElement Writes(int index) {
  1197. return new StorageElement(super.GetWrites(index));
  1198. }
  1199. public Builder AddWrites(StorageElement value) {
  1200. super.AddWrites(value._PBJSuper);
  1201. return this;
  1202. }
  1203. public Builder ClearOptions() { super.ClearOptions();return this;}
  1204. public const int OptionsFieldTag=14;
  1205. public bool HasOptions { get {
  1206. if (!super.HasOptions) return false;
  1207. return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
  1208. } }
  1209. public ulong Options{ get {
  1210. if (HasOptions) {
  1211. return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
  1212. } else {
  1213. return (ulong)PBJ._PBJ.CastFlags((ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
  1214. }
  1215. }
  1216. set {
  1217. super.Options=((value));
  1218. }
  1219. }
  1220. }
  1221. }
  1222. }
  1223. namespace Sirikata.Persistence.Protocol {
  1224. public class Minitransaction : PBJ.IMessage {
  1225. protected _PBJ_Internal.Minitransaction super;
  1226. public _PBJ_Internal.Minitransaction _PBJSuper{ get { return super;} }
  1227. public Minitransaction() {
  1228. super=new _PBJ_Internal.Minitransaction();
  1229. }
  1230. public Minitransaction(_PBJ_Internal.Minitransaction reference) {
  1231. super=reference;
  1232. }
  1233. public static Minitransaction defaultInstance= new Minitransaction (_PBJ_Internal.Minitransaction.DefaultInstance);
  1234. public static Minitransaction DefaultInstance{
  1235. get {return defaultInstance;}
  1236. }
  1237. public static pbd.MessageDescriptor Descriptor {
  1238. get { return _PBJ_Internal.Minitransaction.Descriptor; } }
  1239. public static class Types {
  1240. public enum TransactionOptions {
  1241. RETURN_READ_NAMES=_PBJ_Internal.Minitransaction.Types.TransactionOptions.RETURN_READ_NAMES
  1242. };
  1243. }
  1244. public static bool WithinReservedFieldTagRange(int field_tag) {
  1245. return false;
  1246. }
  1247. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1248. return false;
  1249. }
  1250. public const int ReadsFieldTag=9;
  1251. public int ReadsCount { get { return super.ReadsCount;} }
  1252. public bool HasReads(int index) {return true;}
  1253. public StorageElement Reads(int index) {
  1254. return new StorageElement(super.GetReads(index));
  1255. }
  1256. public const int WritesFieldTag=10;
  1257. public int WritesCount { get { return super.WritesCount;} }
  1258. public bool HasWrites(int index) {return true;}
  1259. public StorageElement Writes(int index) {
  1260. return new StorageElement(super.GetWrites(index));
  1261. }
  1262. public const int ComparesFieldTag=11;
  1263. public int ComparesCount { get { return super.ComparesCount;} }
  1264. public bool HasCompares(int index) {return true;}
  1265. public CompareElement Compares(int index) {
  1266. return new CompareElement(super.GetCompares(index));
  1267. }
  1268. public const int OptionsFieldTag=14;
  1269. public bool HasOptions { get {
  1270. if (!super.HasOptions) return false;
  1271. return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
  1272. } }
  1273. public ulong Options{ get {
  1274. if (HasOptions) {
  1275. return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
  1276. } else {
  1277. return (ulong)PBJ._PBJ.CastFlags((ulong)Types.TransactionOptions.RETURN_READ_NAMES);
  1278. }
  1279. }
  1280. }
  1281. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1282. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1283. public static Builder CreateBuilder() { return new Builder(); }
  1284. public static Builder CreateBuilder(Minitransaction prototype) {
  1285. return (Builder)new Builder().MergeFrom(prototype);
  1286. }
  1287. public static Minitransaction ParseFrom(pb::ByteString data) {
  1288. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
  1289. }
  1290. public static Minitransaction ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1291. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
  1292. }
  1293. public static Minitransaction ParseFrom(byte[] data) {
  1294. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
  1295. }
  1296. public static Minitransaction ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1297. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
  1298. }
  1299. public static Minitransaction ParseFrom(global::System.IO.Stream data) {
  1300. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
  1301. }
  1302. public static Minitransaction ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1303. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
  1304. }
  1305. public static Minitransaction ParseFrom(pb::CodedInputStream data) {
  1306. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
  1307. }
  1308. public static Minitransaction ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1309. return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
  1310. }
  1311. protected override bool _HasAllPBJFields{ get {
  1312. return true
  1313. ;
  1314. } }
  1315. public bool IsInitialized { get {
  1316. return super.IsInitialized&&_HasAllPBJFields;
  1317. } }
  1318. public class Builder : global::PBJ.IMessage.IBuilder{
  1319. protected override bool _HasAllPBJFields{ get {
  1320. return true
  1321. ;
  1322. } }
  1323. public bool IsInitialized { get {
  1324. return super.IsInitialized&&_HasAllPBJFields;
  1325. } }
  1326. protected _PBJ_Internal.Minitransaction.Builder super;
  1327. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1328. public _PBJ_Internal.Minitransaction.Builder _PBJSuper{ get { return super;} }
  1329. public Builder() {super = new _PBJ_Internal.Minitransaction.Builder();}
  1330. public Builder(_PBJ_Internal.Minitransaction.Builder other) {
  1331. super=other;
  1332. }
  1333. public Builder Clone() {return new Builder(super.Clone());}
  1334. public Builder MergeFrom(Minitransaction prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1335. public Builder Clear() {super.Clear();return this;}
  1336. public Minitransaction BuildPartial() {return new Minitransaction(super.BuildPartial());}
  1337. public Minitransaction Build() {if (_HasAllPBJFields) return new Minitransaction(super.Build());return null;}
  1338. public pbd::MessageDescriptor DescriptorForType {
  1339. get { return Minitransaction.Descriptor; } }
  1340. public Builder ClearReads() { super.ClearReads();return this;}
  1341. public Builder SetReads(int index,StorageElement value) {
  1342. super.SetReads(index,value._PBJSuper);
  1343. return this;
  1344. }
  1345. public const int ReadsFieldTag=9;
  1346. public int ReadsCount { get { return super.ReadsCount;} }
  1347. public bool HasReads(int index) {return true;}
  1348. public StorageElement Reads(int index) {
  1349. return new StorageElement(super.GetReads(index));
  1350. }
  1351. public Builder AddReads(StorageElement value) {
  1352. super.AddReads(value._PBJSuper);
  1353. return this;
  1354. }
  1355. public Builder ClearWrites() { super.ClearWrites();return this;}
  1356. public Builder SetWrites(int index,StorageElement value) {
  1357. super.SetWrites(index,value._PBJSuper);
  1358. return this;
  1359. }
  1360. public const int WritesFieldTag=10;
  1361. public int WritesCount { get { return super.WritesCount;} }
  1362. public bool HasWrites(int index) {return true;}
  1363. public StorageElement Writes(int index) {
  1364. return new StorageElement(super.GetWrites(index));
  1365. }
  1366. public Builder AddWrites(StorageElement value) {
  1367. super.AddWrites(value._PBJSuper);
  1368. return this;
  1369. }
  1370. public Builder ClearCompares() { super.ClearCompares();return this;}
  1371. public Builder SetCompares(int index,CompareElement value) {
  1372. super.SetCompares(index,value._PBJSuper);
  1373. return this;
  1374. }
  1375. public const int ComparesFieldTag=11;
  1376. public int ComparesCount { get { return super.ComparesCount;} }
  1377. public bool HasCompares(int index) {return true;}
  1378. public CompareElement Compares(int index) {
  1379. return new CompareElement(super.GetCompares(index));
  1380. }
  1381. public Builder AddCompares(CompareElement value) {
  1382. super.AddCompares(value._PBJSuper);
  1383. return this;
  1384. }
  1385. public Builder ClearOptions() { super.ClearOptions();return this;}
  1386. public const int OptionsFieldTag=14;
  1387. public bool HasOptions { get {
  1388. if (!super.HasOptions) return false;
  1389. return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
  1390. } }
  1391. public ulong Options{ get {
  1392. if (HasOptions) {
  1393. return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
  1394. } else {
  1395. return (ulong)PBJ._PBJ.CastFlags((ulong)Types.TransactionOptions.RETURN_READ_NAMES);
  1396. }
  1397. }
  1398. set {
  1399. super.Options=((value));
  1400. }
  1401. }
  1402. }
  1403. }
  1404. }
  1405. namespace Sirikata.Persistence.Protocol {
  1406. public class Response : PBJ.IMessage {
  1407. protected _PBJ_Internal.Response super;
  1408. public _PBJ_Internal.Response _PBJSuper{ get { return super;} }
  1409. public Response() {
  1410. super=new _PBJ_Internal.Response();
  1411. }
  1412. public Response(_PBJ_Internal.Response reference) {
  1413. super=reference;
  1414. }
  1415. public static Response defaultInstance= new Response (_PBJ_Internal.Response.DefaultInstance);
  1416. public static Response DefaultInstance{
  1417. get {return defaultInstance;}
  1418. }
  1419. public static pbd.MessageDescriptor Descriptor {
  1420. get { return _PBJ_Internal.Response.Descriptor; } }
  1421. public static class Types {
  1422. public enum ReturnStatus {
  1423. SUCCESS=_PBJ_Internal.Response.Types.ReturnStatus.SUCCESS,
  1424. DATABASE_LOCKED=_PBJ_Internal.Response.Types.ReturnStatus.DATABASE_LOCKED,
  1425. KEY_MISSING=_PBJ_Internal.Response.Types.ReturnStatus.KEY_MISSING,
  1426. COMPARISON_FAILED=_PBJ_Internal.Response.Types.ReturnStatus.COMPARISON_FAILED,
  1427. INTERNAL_ERROR=_PBJ_Internal.Response.Types.ReturnStatus.INTERNAL_ERROR
  1428. };
  1429. }
  1430. public static bool WithinReservedFieldTagRange(int field_tag) {
  1431. return false||(field_tag>=1&&field_tag<=8);
  1432. }
  1433. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1434. return false;
  1435. }
  1436. public const int ReadsFieldTag=9;
  1437. public int ReadsCount { get { return super.ReadsCount;} }
  1438. public bool HasReads(int index) {return true;}
  1439. public StorageElement Reads(int index) {
  1440. return new StorageElement(super.GetReads(index));
  1441. }
  1442. public const int ReturnStatusFieldTag=15;
  1443. public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
  1444. public Types.ReturnStatus ReturnStatus{ get {
  1445. if (HasReturnStatus) {
  1446. return (Types.ReturnStatus)super.ReturnStatus;
  1447. } else {
  1448. return new Types.ReturnStatus();
  1449. }
  1450. }
  1451. }
  1452. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1453. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1454. public static Builder CreateBuilder() { return new Builder(); }
  1455. public static Builder CreateBuilder(Response prototype) {
  1456. return (Builder)new Builder().MergeFrom(prototype);
  1457. }
  1458. public static Response ParseFrom(pb::ByteString data) {
  1459. return new Response(_PBJ_Internal.Response.ParseFrom(data));
  1460. }
  1461. public static Response ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1462. return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
  1463. }
  1464. public static Response ParseFrom(byte[] data) {
  1465. return new Response(_PBJ_Internal.Response.ParseFrom(data));
  1466. }
  1467. public static Response ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1468. return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
  1469. }
  1470. public static Response ParseFrom(global::System.IO.Stream data) {
  1471. return new Response(_PBJ_Internal.Response.ParseFrom(data));
  1472. }
  1473. public static Response ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1474. return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
  1475. }
  1476. public static Response ParseFrom(pb::CodedInputStream data) {
  1477. return new Response(_PBJ_Internal.Response.ParseFrom(data));
  1478. }
  1479. public static Response ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1480. return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
  1481. }
  1482. protected override bool _HasAllPBJFields{ get {
  1483. return true
  1484. ;
  1485. } }
  1486. public bool IsInitialized { get {
  1487. return super.IsInitialized&&_HasAllPBJFields;
  1488. } }
  1489. public class Builder : global::PBJ.IMessage.IBuilder{
  1490. protected override bool _HasAllPBJFields{ get {
  1491. return true
  1492. ;
  1493. } }
  1494. public bool IsInitialized { get {
  1495. return super.IsInitialized&&_HasAllPBJFields;
  1496. } }
  1497. protected _PBJ_Internal.Response.Builder super;
  1498. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1499. public _PBJ_Internal.Response.Builder _PBJSuper{ get { return super;} }
  1500. public Builder() {super = new _PBJ_Internal.Response.Builder();}
  1501. public Builder(_PBJ_Internal.Response.Builder other) {
  1502. super=other;
  1503. }
  1504. public Builder Clone() {return new Builder(super.Clone());}
  1505. public Builder MergeFrom(Response prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1506. public Builder Clear() {super.Clear();return this;}
  1507. public Response BuildPartial() {return new Response(super.BuildPartial());}
  1508. public Response Build() {if (_HasAllPBJFields) return new Response(super.Build());return null;}
  1509. public pbd::MessageDescriptor DescriptorForType {
  1510. get { return Response.Descriptor; } }
  1511. public Builder ClearReads() { super.ClearReads();return this;}
  1512. public Builder SetReads(int index,StorageElement value) {
  1513. super.SetReads(index,value._PBJSuper);
  1514. return this;
  1515. }
  1516. public const int ReadsFieldTag=9;
  1517. public int ReadsCount { get { return super.ReadsCount;} }
  1518. public bool HasReads(int index) {return true;}
  1519. public StorageElement Reads(int index) {
  1520. return new StorageElement(super.GetReads(index));
  1521. }
  1522. public Builder AddReads(StorageElement value) {
  1523. super.AddReads(value._PBJSuper);
  1524. return this;
  1525. }
  1526. public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;}
  1527. public const int ReturnStatusFieldTag=15;
  1528. public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
  1529. public Types.ReturnStatus ReturnStatus{ get {
  1530. if (HasReturnStatus) {
  1531. return (Types.ReturnStatus)super.ReturnStatus;
  1532. } else {
  1533. return new Types.ReturnStatus();
  1534. }
  1535. }
  1536. set {
  1537. super.ReturnStatus=((_PBJ_Internal.Response.Types.ReturnStatus)value);
  1538. }
  1539. }
  1540. }
  1541. }
  1542. }