Subscription.pbj.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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.Subscription.Protocol {
  30. public class Address : PBJ.IMessage {
  31. protected _PBJ_Internal.Address super;
  32. public _PBJ_Internal.Address _PBJSuper{ get { return super;} }
  33. public Address() {
  34. super=new _PBJ_Internal.Address();
  35. }
  36. public Address(_PBJ_Internal.Address reference) {
  37. super=reference;
  38. }
  39. public static Address defaultInstance= new Address (_PBJ_Internal.Address.DefaultInstance);
  40. public static Address DefaultInstance{
  41. get {return defaultInstance;}
  42. }
  43. public static pbd.MessageDescriptor Descriptor {
  44. get { return _PBJ_Internal.Address.Descriptor; } }
  45. public static class Types {
  46. }
  47. public static bool WithinReservedFieldTagRange(int field_tag) {
  48. return false;
  49. }
  50. public static bool WithinExtensionFieldTagRange(int field_tag) {
  51. return false;
  52. }
  53. public const int HostnameFieldTag=1;
  54. public bool HasHostname{ get {return super.HasHostname&&PBJ._PBJ.ValidateString(super.Hostname);} }
  55. public string Hostname{ get {
  56. if (HasHostname) {
  57. return PBJ._PBJ.CastString(super.Hostname);
  58. } else {
  59. return PBJ._PBJ.CastString();
  60. }
  61. }
  62. }
  63. public const int ServiceFieldTag=2;
  64. public bool HasService{ get {return super.HasService&&PBJ._PBJ.ValidateString(super.Service);} }
  65. public string Service{ get {
  66. if (HasService) {
  67. return PBJ._PBJ.CastString(super.Service);
  68. } else {
  69. return PBJ._PBJ.CastString();
  70. }
  71. }
  72. }
  73. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  74. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  75. public static Builder CreateBuilder() { return new Builder(); }
  76. public static Builder CreateBuilder(Address prototype) {
  77. return (Builder)new Builder().MergeFrom(prototype);
  78. }
  79. public static Address ParseFrom(pb::ByteString data) {
  80. return new Address(_PBJ_Internal.Address.ParseFrom(data));
  81. }
  82. public static Address ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  83. return new Address(_PBJ_Internal.Address.ParseFrom(data,er));
  84. }
  85. public static Address ParseFrom(byte[] data) {
  86. return new Address(_PBJ_Internal.Address.ParseFrom(data));
  87. }
  88. public static Address ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  89. return new Address(_PBJ_Internal.Address.ParseFrom(data,er));
  90. }
  91. public static Address ParseFrom(global::System.IO.Stream data) {
  92. return new Address(_PBJ_Internal.Address.ParseFrom(data));
  93. }
  94. public static Address ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  95. return new Address(_PBJ_Internal.Address.ParseFrom(data,er));
  96. }
  97. public static Address ParseFrom(pb::CodedInputStream data) {
  98. return new Address(_PBJ_Internal.Address.ParseFrom(data));
  99. }
  100. public static Address ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  101. return new Address(_PBJ_Internal.Address.ParseFrom(data,er));
  102. }
  103. protected override bool _HasAllPBJFields{ get {
  104. return true
  105. ;
  106. } }
  107. public bool IsInitialized { get {
  108. return super.IsInitialized&&_HasAllPBJFields;
  109. } }
  110. public class Builder : global::PBJ.IMessage.IBuilder{
  111. protected override bool _HasAllPBJFields{ get {
  112. return true
  113. ;
  114. } }
  115. public bool IsInitialized { get {
  116. return super.IsInitialized&&_HasAllPBJFields;
  117. } }
  118. protected _PBJ_Internal.Address.Builder super;
  119. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  120. public _PBJ_Internal.Address.Builder _PBJSuper{ get { return super;} }
  121. public Builder() {super = new _PBJ_Internal.Address.Builder();}
  122. public Builder(_PBJ_Internal.Address.Builder other) {
  123. super=other;
  124. }
  125. public Builder Clone() {return new Builder(super.Clone());}
  126. public Builder MergeFrom(Address prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  127. public Builder Clear() {super.Clear();return this;}
  128. public Address BuildPartial() {return new Address(super.BuildPartial());}
  129. public Address Build() {if (_HasAllPBJFields) return new Address(super.Build());return null;}
  130. public pbd::MessageDescriptor DescriptorForType {
  131. get { return Address.Descriptor; } }
  132. public Builder ClearHostname() { super.ClearHostname();return this;}
  133. public const int HostnameFieldTag=1;
  134. public bool HasHostname{ get {return super.HasHostname&&PBJ._PBJ.ValidateString(super.Hostname);} }
  135. public string Hostname{ get {
  136. if (HasHostname) {
  137. return PBJ._PBJ.CastString(super.Hostname);
  138. } else {
  139. return PBJ._PBJ.CastString();
  140. }
  141. }
  142. set {
  143. super.Hostname=(PBJ._PBJ.Construct(value));
  144. }
  145. }
  146. public Builder ClearService() { super.ClearService();return this;}
  147. public const int ServiceFieldTag=2;
  148. public bool HasService{ get {return super.HasService&&PBJ._PBJ.ValidateString(super.Service);} }
  149. public string Service{ get {
  150. if (HasService) {
  151. return PBJ._PBJ.CastString(super.Service);
  152. } else {
  153. return PBJ._PBJ.CastString();
  154. }
  155. }
  156. set {
  157. super.Service=(PBJ._PBJ.Construct(value));
  158. }
  159. }
  160. }
  161. }
  162. }
  163. namespace Sirikata.Subscription.Protocol {
  164. public class Subscribe : PBJ.IMessage {
  165. protected _PBJ_Internal.Subscribe super;
  166. public _PBJ_Internal.Subscribe _PBJSuper{ get { return super;} }
  167. public Subscribe() {
  168. super=new _PBJ_Internal.Subscribe();
  169. }
  170. public Subscribe(_PBJ_Internal.Subscribe reference) {
  171. super=reference;
  172. }
  173. public static Subscribe defaultInstance= new Subscribe (_PBJ_Internal.Subscribe.DefaultInstance);
  174. public static Subscribe DefaultInstance{
  175. get {return defaultInstance;}
  176. }
  177. public static pbd.MessageDescriptor Descriptor {
  178. get { return _PBJ_Internal.Subscribe.Descriptor; } }
  179. public static class Types {
  180. }
  181. public static bool WithinReservedFieldTagRange(int field_tag) {
  182. return false||(field_tag>=1&&field_tag<=6)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  183. }
  184. public static bool WithinExtensionFieldTagRange(int field_tag) {
  185. return false;
  186. }
  187. public const int BroadcastAddressFieldTag=7;
  188. public bool HasBroadcastAddress{ get {return super.HasBroadcastAddress;} }
  189. public Address BroadcastAddress{ get {
  190. if (HasBroadcastAddress) {
  191. return new Address(super.BroadcastAddress);
  192. } else {
  193. return new Address();
  194. }
  195. }
  196. }
  197. public const int BroadcastNameFieldTag=8;
  198. public bool HasBroadcastName{ get {return super.HasBroadcastName&&PBJ._PBJ.ValidateUuid(super.BroadcastName);} }
  199. public PBJ.UUID BroadcastName{ get {
  200. if (HasBroadcastName) {
  201. return PBJ._PBJ.CastUuid(super.BroadcastName);
  202. } else {
  203. return PBJ._PBJ.CastUuid();
  204. }
  205. }
  206. }
  207. public const int UpdatePeriodFieldTag=9;
  208. public bool HasUpdatePeriod{ get {return super.HasUpdatePeriod&&PBJ._PBJ.ValidateDuration(super.UpdatePeriod);} }
  209. public PBJ.Duration UpdatePeriod{ get {
  210. if (HasUpdatePeriod) {
  211. return PBJ._PBJ.CastDuration(super.UpdatePeriod);
  212. } else {
  213. return PBJ._PBJ.CastDuration();
  214. }
  215. }
  216. }
  217. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  218. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  219. public static Builder CreateBuilder() { return new Builder(); }
  220. public static Builder CreateBuilder(Subscribe prototype) {
  221. return (Builder)new Builder().MergeFrom(prototype);
  222. }
  223. public static Subscribe ParseFrom(pb::ByteString data) {
  224. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data));
  225. }
  226. public static Subscribe ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  227. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data,er));
  228. }
  229. public static Subscribe ParseFrom(byte[] data) {
  230. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data));
  231. }
  232. public static Subscribe ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  233. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data,er));
  234. }
  235. public static Subscribe ParseFrom(global::System.IO.Stream data) {
  236. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data));
  237. }
  238. public static Subscribe ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  239. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data,er));
  240. }
  241. public static Subscribe ParseFrom(pb::CodedInputStream data) {
  242. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data));
  243. }
  244. public static Subscribe ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  245. return new Subscribe(_PBJ_Internal.Subscribe.ParseFrom(data,er));
  246. }
  247. protected override bool _HasAllPBJFields{ get {
  248. return true
  249. ;
  250. } }
  251. public bool IsInitialized { get {
  252. return super.IsInitialized&&_HasAllPBJFields;
  253. } }
  254. public class Builder : global::PBJ.IMessage.IBuilder{
  255. protected override bool _HasAllPBJFields{ get {
  256. return true
  257. ;
  258. } }
  259. public bool IsInitialized { get {
  260. return super.IsInitialized&&_HasAllPBJFields;
  261. } }
  262. protected _PBJ_Internal.Subscribe.Builder super;
  263. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  264. public _PBJ_Internal.Subscribe.Builder _PBJSuper{ get { return super;} }
  265. public Builder() {super = new _PBJ_Internal.Subscribe.Builder();}
  266. public Builder(_PBJ_Internal.Subscribe.Builder other) {
  267. super=other;
  268. }
  269. public Builder Clone() {return new Builder(super.Clone());}
  270. public Builder MergeFrom(Subscribe prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  271. public Builder Clear() {super.Clear();return this;}
  272. public Subscribe BuildPartial() {return new Subscribe(super.BuildPartial());}
  273. public Subscribe Build() {if (_HasAllPBJFields) return new Subscribe(super.Build());return null;}
  274. public pbd::MessageDescriptor DescriptorForType {
  275. get { return Subscribe.Descriptor; } }
  276. public Builder ClearBroadcastAddress() { super.ClearBroadcastAddress();return this;}
  277. public const int BroadcastAddressFieldTag=7;
  278. public bool HasBroadcastAddress{ get {return super.HasBroadcastAddress;} }
  279. public Address BroadcastAddress{ get {
  280. if (HasBroadcastAddress) {
  281. return new Address(super.BroadcastAddress);
  282. } else {
  283. return new Address();
  284. }
  285. }
  286. set {
  287. super.BroadcastAddress=value._PBJSuper;
  288. }
  289. }
  290. public Builder ClearBroadcastName() { super.ClearBroadcastName();return this;}
  291. public const int BroadcastNameFieldTag=8;
  292. public bool HasBroadcastName{ get {return super.HasBroadcastName&&PBJ._PBJ.ValidateUuid(super.BroadcastName);} }
  293. public PBJ.UUID BroadcastName{ get {
  294. if (HasBroadcastName) {
  295. return PBJ._PBJ.CastUuid(super.BroadcastName);
  296. } else {
  297. return PBJ._PBJ.CastUuid();
  298. }
  299. }
  300. set {
  301. super.BroadcastName=(PBJ._PBJ.Construct(value));
  302. }
  303. }
  304. public Builder ClearUpdatePeriod() { super.ClearUpdatePeriod();return this;}
  305. public const int UpdatePeriodFieldTag=9;
  306. public bool HasUpdatePeriod{ get {return super.HasUpdatePeriod&&PBJ._PBJ.ValidateDuration(super.UpdatePeriod);} }
  307. public PBJ.Duration UpdatePeriod{ get {
  308. if (HasUpdatePeriod) {
  309. return PBJ._PBJ.CastDuration(super.UpdatePeriod);
  310. } else {
  311. return PBJ._PBJ.CastDuration();
  312. }
  313. }
  314. set {
  315. super.UpdatePeriod=(PBJ._PBJ.Construct(value));
  316. }
  317. }
  318. }
  319. }
  320. }
  321. namespace Sirikata.Subscription.Protocol {
  322. public class Broadcast : PBJ.IMessage {
  323. protected _PBJ_Internal.Broadcast super;
  324. public _PBJ_Internal.Broadcast _PBJSuper{ get { return super;} }
  325. public Broadcast() {
  326. super=new _PBJ_Internal.Broadcast();
  327. }
  328. public Broadcast(_PBJ_Internal.Broadcast reference) {
  329. super=reference;
  330. }
  331. public static Broadcast defaultInstance= new Broadcast (_PBJ_Internal.Broadcast.DefaultInstance);
  332. public static Broadcast DefaultInstance{
  333. get {return defaultInstance;}
  334. }
  335. public static pbd.MessageDescriptor Descriptor {
  336. get { return _PBJ_Internal.Broadcast.Descriptor; } }
  337. public static class Types {
  338. }
  339. public static bool WithinReservedFieldTagRange(int field_tag) {
  340. return false||(field_tag>=1&&field_tag<=6)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  341. }
  342. public static bool WithinExtensionFieldTagRange(int field_tag) {
  343. return false;
  344. }
  345. public const int BroadcastNameFieldTag=7;
  346. public bool HasBroadcastName{ get {return super.HasBroadcastName&&PBJ._PBJ.ValidateUuid(super.BroadcastName);} }
  347. public PBJ.UUID BroadcastName{ get {
  348. if (HasBroadcastName) {
  349. return PBJ._PBJ.CastUuid(super.BroadcastName);
  350. } else {
  351. return PBJ._PBJ.CastUuid();
  352. }
  353. }
  354. }
  355. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  356. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  357. public static Builder CreateBuilder() { return new Builder(); }
  358. public static Builder CreateBuilder(Broadcast prototype) {
  359. return (Builder)new Builder().MergeFrom(prototype);
  360. }
  361. public static Broadcast ParseFrom(pb::ByteString data) {
  362. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data));
  363. }
  364. public static Broadcast ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  365. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data,er));
  366. }
  367. public static Broadcast ParseFrom(byte[] data) {
  368. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data));
  369. }
  370. public static Broadcast ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  371. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data,er));
  372. }
  373. public static Broadcast ParseFrom(global::System.IO.Stream data) {
  374. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data));
  375. }
  376. public static Broadcast ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  377. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data,er));
  378. }
  379. public static Broadcast ParseFrom(pb::CodedInputStream data) {
  380. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data));
  381. }
  382. public static Broadcast ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  383. return new Broadcast(_PBJ_Internal.Broadcast.ParseFrom(data,er));
  384. }
  385. protected override bool _HasAllPBJFields{ get {
  386. return true
  387. ;
  388. } }
  389. public bool IsInitialized { get {
  390. return super.IsInitialized&&_HasAllPBJFields;
  391. } }
  392. public class Builder : global::PBJ.IMessage.IBuilder{
  393. protected override bool _HasAllPBJFields{ get {
  394. return true
  395. ;
  396. } }
  397. public bool IsInitialized { get {
  398. return super.IsInitialized&&_HasAllPBJFields;
  399. } }
  400. protected _PBJ_Internal.Broadcast.Builder super;
  401. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  402. public _PBJ_Internal.Broadcast.Builder _PBJSuper{ get { return super;} }
  403. public Builder() {super = new _PBJ_Internal.Broadcast.Builder();}
  404. public Builder(_PBJ_Internal.Broadcast.Builder other) {
  405. super=other;
  406. }
  407. public Builder Clone() {return new Builder(super.Clone());}
  408. public Builder MergeFrom(Broadcast prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  409. public Builder Clear() {super.Clear();return this;}
  410. public Broadcast BuildPartial() {return new Broadcast(super.BuildPartial());}
  411. public Broadcast Build() {if (_HasAllPBJFields) return new Broadcast(super.Build());return null;}
  412. public pbd::MessageDescriptor DescriptorForType {
  413. get { return Broadcast.Descriptor; } }
  414. public Builder ClearBroadcastName() { super.ClearBroadcastName();return this;}
  415. public const int BroadcastNameFieldTag=7;
  416. public bool HasBroadcastName{ get {return super.HasBroadcastName&&PBJ._PBJ.ValidateUuid(super.BroadcastName);} }
  417. public PBJ.UUID BroadcastName{ get {
  418. if (HasBroadcastName) {
  419. return PBJ._PBJ.CastUuid(super.BroadcastName);
  420. } else {
  421. return PBJ._PBJ.CastUuid();
  422. }
  423. }
  424. set {
  425. super.BroadcastName=(PBJ._PBJ.Construct(value));
  426. }
  427. }
  428. }
  429. }
  430. }