MessageHeader.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. namespace Sirikata.Protocol._PBJ_Internal {
  7. public static partial class MessageHeader {
  8. #region Extension registration
  9. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  10. }
  11. #endregion
  12. #region Static variables
  13. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor;
  14. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.Header, global::Sirikata.Protocol._PBJ_Internal.Header.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_Header__FieldAccessorTable;
  15. #endregion
  16. #region Descriptor
  17. public static pbd::FileDescriptor Descriptor {
  18. get { return descriptor; }
  19. }
  20. private static pbd::FileDescriptor descriptor;
  21. static MessageHeader() {
  22. byte[] descriptorData = global::System.Convert.FromBase64String(
  23. "ChNNZXNzYWdlSGVhZGVyLnByb3RvEh9TaXJpa2F0YS5Qcm90b2NvbC5fUEJK" +
  24. "X0ludGVybmFsIooDCgZIZWFkZXISFQoNc291cmNlX29iamVjdBgBIAEoDBIT" +
  25. "Cgtzb3VyY2VfcG9ydBgDIAEoDRIVCgxzb3VyY2Vfc3BhY2UYgAwgASgMEhoK" +
  26. "EmRlc3RpbmF0aW9uX29iamVjdBgCIAEoDBIYChBkZXN0aW5hdGlvbl9wb3J0" +
  27. "GAQgASgNEhoKEWRlc3RpbmF0aW9uX3NwYWNlGIEMIAEoDBIKCgJpZBgHIAEo" +
  28. "AxIQCghyZXBseV9pZBgIIAEoAxJMCg1yZXR1cm5fc3RhdHVzGIAOIAEoDjI0" +
  29. "LlNpcmlrYXRhLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuSGVhZGVyLlJldHVy" +
  30. "blN0YXR1cyJ/CgxSZXR1cm5TdGF0dXMSCwoHU1VDQ0VTUxAAEhMKD05FVFdP" +
  31. "UktfRkFJTFVSRRABEhMKD1RJTUVPVVRfRkFJTFVSRRADEhIKDlBST1RPQ09M" +
  32. "X0VSUk9SEAQSEAoMUE9SVF9GQUlMVVJFEAUSEgoOVU5LTk9XTl9PQkpFQ1QQ" +
  33. "Bg==");
  34. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  35. descriptor = root;
  36. internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor = Descriptor.MessageTypes[0];
  37. internal__static_Sirikata_Protocol__PBJ_Internal_Header__FieldAccessorTable =
  38. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.Header, global::Sirikata.Protocol._PBJ_Internal.Header.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor,
  39. new string[] { "SourceObject", "SourcePort", "SourceSpace", "DestinationObject", "DestinationPort", "DestinationSpace", "Id", "ReplyId", "ReturnStatus", });
  40. return null;
  41. };
  42. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  43. new pbd::FileDescriptor[] {
  44. }, assigner);
  45. }
  46. #endregion
  47. }
  48. #region Messages
  49. public sealed partial class Header : pb::GeneratedMessage<Header, Header.Builder> {
  50. private static readonly Header defaultInstance = new Builder().BuildPartial();
  51. public static Header DefaultInstance {
  52. get { return defaultInstance; }
  53. }
  54. public override Header DefaultInstanceForType {
  55. get { return defaultInstance; }
  56. }
  57. protected override Header ThisMessage {
  58. get { return this; }
  59. }
  60. public static pbd::MessageDescriptor Descriptor {
  61. get { return global::Sirikata.Protocol._PBJ_Internal.MessageHeader.internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor; }
  62. }
  63. protected override pb::FieldAccess.FieldAccessorTable<Header, Header.Builder> InternalFieldAccessors {
  64. get { return global::Sirikata.Protocol._PBJ_Internal.MessageHeader.internal__static_Sirikata_Protocol__PBJ_Internal_Header__FieldAccessorTable; }
  65. }
  66. #region Nested types
  67. public static class Types {
  68. public enum ReturnStatus {
  69. SUCCESS = 0,
  70. NETWORK_FAILURE = 1,
  71. TIMEOUT_FAILURE = 3,
  72. PROTOCOL_ERROR = 4,
  73. PORT_FAILURE = 5,
  74. UNKNOWN_OBJECT = 6,
  75. }
  76. }
  77. #endregion
  78. public const int SourceObjectFieldNumber = 1;
  79. private bool hasSourceObject;
  80. private pb::ByteString sourceObject_ = pb::ByteString.Empty;
  81. public bool HasSourceObject {
  82. get { return hasSourceObject; }
  83. }
  84. public pb::ByteString SourceObject {
  85. get { return sourceObject_; }
  86. }
  87. public const int SourcePortFieldNumber = 3;
  88. private bool hasSourcePort;
  89. private uint sourcePort_ = 0;
  90. public bool HasSourcePort {
  91. get { return hasSourcePort; }
  92. }
  93. [global::System.CLSCompliant(false)]
  94. public uint SourcePort {
  95. get { return sourcePort_; }
  96. }
  97. public const int SourceSpaceFieldNumber = 1536;
  98. private bool hasSourceSpace;
  99. private pb::ByteString sourceSpace_ = pb::ByteString.Empty;
  100. public bool HasSourceSpace {
  101. get { return hasSourceSpace; }
  102. }
  103. public pb::ByteString SourceSpace {
  104. get { return sourceSpace_; }
  105. }
  106. public const int DestinationObjectFieldNumber = 2;
  107. private bool hasDestinationObject;
  108. private pb::ByteString destinationObject_ = pb::ByteString.Empty;
  109. public bool HasDestinationObject {
  110. get { return hasDestinationObject; }
  111. }
  112. public pb::ByteString DestinationObject {
  113. get { return destinationObject_; }
  114. }
  115. public const int DestinationPortFieldNumber = 4;
  116. private bool hasDestinationPort;
  117. private uint destinationPort_ = 0;
  118. public bool HasDestinationPort {
  119. get { return hasDestinationPort; }
  120. }
  121. [global::System.CLSCompliant(false)]
  122. public uint DestinationPort {
  123. get { return destinationPort_; }
  124. }
  125. public const int DestinationSpaceFieldNumber = 1537;
  126. private bool hasDestinationSpace;
  127. private pb::ByteString destinationSpace_ = pb::ByteString.Empty;
  128. public bool HasDestinationSpace {
  129. get { return hasDestinationSpace; }
  130. }
  131. public pb::ByteString DestinationSpace {
  132. get { return destinationSpace_; }
  133. }
  134. public const int IdFieldNumber = 7;
  135. private bool hasId;
  136. private long id_ = 0L;
  137. public bool HasId {
  138. get { return hasId; }
  139. }
  140. public long Id {
  141. get { return id_; }
  142. }
  143. public const int ReplyIdFieldNumber = 8;
  144. private bool hasReplyId;
  145. private long replyId_ = 0L;
  146. public bool HasReplyId {
  147. get { return hasReplyId; }
  148. }
  149. public long ReplyId {
  150. get { return replyId_; }
  151. }
  152. public const int ReturnStatusFieldNumber = 1792;
  153. private bool hasReturnStatus;
  154. private global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus returnStatus_ = global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus.SUCCESS;
  155. public bool HasReturnStatus {
  156. get { return hasReturnStatus; }
  157. }
  158. public global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus ReturnStatus {
  159. get { return returnStatus_; }
  160. }
  161. public override bool IsInitialized {
  162. get {
  163. return true;
  164. }
  165. }
  166. public override void WriteTo(pb::CodedOutputStream output) {
  167. if (HasSourceObject) {
  168. output.WriteBytes(1, SourceObject);
  169. }
  170. if (HasDestinationObject) {
  171. output.WriteBytes(2, DestinationObject);
  172. }
  173. if (HasSourcePort) {
  174. output.WriteUInt32(3, SourcePort);
  175. }
  176. if (HasDestinationPort) {
  177. output.WriteUInt32(4, DestinationPort);
  178. }
  179. if (HasId) {
  180. output.WriteInt64(7, Id);
  181. }
  182. if (HasReplyId) {
  183. output.WriteInt64(8, ReplyId);
  184. }
  185. if (HasSourceSpace) {
  186. output.WriteBytes(1536, SourceSpace);
  187. }
  188. if (HasDestinationSpace) {
  189. output.WriteBytes(1537, DestinationSpace);
  190. }
  191. if (HasReturnStatus) {
  192. output.WriteEnum(1792, (int) ReturnStatus);
  193. }
  194. UnknownFields.WriteTo(output);
  195. }
  196. private int memoizedSerializedSize = -1;
  197. public override int SerializedSize {
  198. get {
  199. int size = memoizedSerializedSize;
  200. if (size != -1) return size;
  201. size = 0;
  202. if (HasSourceObject) {
  203. size += pb::CodedOutputStream.ComputeBytesSize(1, SourceObject);
  204. }
  205. if (HasSourcePort) {
  206. size += pb::CodedOutputStream.ComputeUInt32Size(3, SourcePort);
  207. }
  208. if (HasSourceSpace) {
  209. size += pb::CodedOutputStream.ComputeBytesSize(1536, SourceSpace);
  210. }
  211. if (HasDestinationObject) {
  212. size += pb::CodedOutputStream.ComputeBytesSize(2, DestinationObject);
  213. }
  214. if (HasDestinationPort) {
  215. size += pb::CodedOutputStream.ComputeUInt32Size(4, DestinationPort);
  216. }
  217. if (HasDestinationSpace) {
  218. size += pb::CodedOutputStream.ComputeBytesSize(1537, DestinationSpace);
  219. }
  220. if (HasId) {
  221. size += pb::CodedOutputStream.ComputeInt64Size(7, Id);
  222. }
  223. if (HasReplyId) {
  224. size += pb::CodedOutputStream.ComputeInt64Size(8, ReplyId);
  225. }
  226. if (HasReturnStatus) {
  227. size += pb::CodedOutputStream.ComputeEnumSize(1792, (int) ReturnStatus);
  228. }
  229. size += UnknownFields.SerializedSize;
  230. memoizedSerializedSize = size;
  231. return size;
  232. }
  233. }
  234. public static Header ParseFrom(pb::ByteString data) {
  235. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  236. }
  237. public static Header ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  238. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  239. }
  240. public static Header ParseFrom(byte[] data) {
  241. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  242. }
  243. public static Header ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  244. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  245. }
  246. public static Header ParseFrom(global::System.IO.Stream input) {
  247. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  248. }
  249. public static Header ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  250. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  251. }
  252. public static Header ParseDelimitedFrom(global::System.IO.Stream input) {
  253. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  254. }
  255. public static Header ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  256. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  257. }
  258. public static Header ParseFrom(pb::CodedInputStream input) {
  259. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  260. }
  261. public static Header ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  262. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  263. }
  264. public static Builder CreateBuilder() { return new Builder(); }
  265. public override Builder ToBuilder() { return CreateBuilder(this); }
  266. public override Builder CreateBuilderForType() { return new Builder(); }
  267. public static Builder CreateBuilder(Header prototype) {
  268. return (Builder) new Builder().MergeFrom(prototype);
  269. }
  270. public sealed partial class Builder : pb::GeneratedBuilder<Header, Builder> {
  271. protected override Builder ThisBuilder {
  272. get { return this; }
  273. }
  274. public Builder() {}
  275. Header result = new Header();
  276. protected override Header MessageBeingBuilt {
  277. get { return result; }
  278. }
  279. public override Builder Clear() {
  280. result = new Header();
  281. return this;
  282. }
  283. public override Builder Clone() {
  284. return new Builder().MergeFrom(result);
  285. }
  286. public override pbd::MessageDescriptor DescriptorForType {
  287. get { return global::Sirikata.Protocol._PBJ_Internal.Header.Descriptor; }
  288. }
  289. public override Header DefaultInstanceForType {
  290. get { return global::Sirikata.Protocol._PBJ_Internal.Header.DefaultInstance; }
  291. }
  292. public override Header BuildPartial() {
  293. if (result == null) {
  294. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  295. }
  296. Header returnMe = result;
  297. result = null;
  298. return returnMe;
  299. }
  300. public override Builder MergeFrom(pb::IMessage other) {
  301. if (other is Header) {
  302. return MergeFrom((Header) other);
  303. } else {
  304. base.MergeFrom(other);
  305. return this;
  306. }
  307. }
  308. public override Builder MergeFrom(Header other) {
  309. if (other == global::Sirikata.Protocol._PBJ_Internal.Header.DefaultInstance) return this;
  310. if (other.HasSourceObject) {
  311. SourceObject = other.SourceObject;
  312. }
  313. if (other.HasSourcePort) {
  314. SourcePort = other.SourcePort;
  315. }
  316. if (other.HasSourceSpace) {
  317. SourceSpace = other.SourceSpace;
  318. }
  319. if (other.HasDestinationObject) {
  320. DestinationObject = other.DestinationObject;
  321. }
  322. if (other.HasDestinationPort) {
  323. DestinationPort = other.DestinationPort;
  324. }
  325. if (other.HasDestinationSpace) {
  326. DestinationSpace = other.DestinationSpace;
  327. }
  328. if (other.HasId) {
  329. Id = other.Id;
  330. }
  331. if (other.HasReplyId) {
  332. ReplyId = other.ReplyId;
  333. }
  334. if (other.HasReturnStatus) {
  335. ReturnStatus = other.ReturnStatus;
  336. }
  337. this.MergeUnknownFields(other.UnknownFields);
  338. return this;
  339. }
  340. public override Builder MergeFrom(pb::CodedInputStream input) {
  341. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  342. }
  343. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  344. pb::UnknownFieldSet.Builder unknownFields = null;
  345. while (true) {
  346. uint tag = input.ReadTag();
  347. switch (tag) {
  348. case 0: {
  349. if (unknownFields != null) {
  350. this.UnknownFields = unknownFields.Build();
  351. }
  352. return this;
  353. }
  354. default: {
  355. if (pb::WireFormat.IsEndGroupTag(tag)) {
  356. if (unknownFields != null) {
  357. this.UnknownFields = unknownFields.Build();
  358. }
  359. return this;
  360. }
  361. if (unknownFields == null) {
  362. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  363. }
  364. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  365. break;
  366. }
  367. case 10: {
  368. SourceObject = input.ReadBytes();
  369. break;
  370. }
  371. case 18: {
  372. DestinationObject = input.ReadBytes();
  373. break;
  374. }
  375. case 24: {
  376. SourcePort = input.ReadUInt32();
  377. break;
  378. }
  379. case 32: {
  380. DestinationPort = input.ReadUInt32();
  381. break;
  382. }
  383. case 56: {
  384. Id = input.ReadInt64();
  385. break;
  386. }
  387. case 64: {
  388. ReplyId = input.ReadInt64();
  389. break;
  390. }
  391. case 12290: {
  392. SourceSpace = input.ReadBytes();
  393. break;
  394. }
  395. case 12298: {
  396. DestinationSpace = input.ReadBytes();
  397. break;
  398. }
  399. case 14336: {
  400. int rawValue = input.ReadEnum();
  401. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus), rawValue)) {
  402. if (unknownFields == null) {
  403. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  404. }
  405. unknownFields.MergeVarintField(1792, (ulong) rawValue);
  406. } else {
  407. ReturnStatus = (global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus) rawValue;
  408. }
  409. break;
  410. }
  411. }
  412. }
  413. }
  414. public bool HasSourceObject {
  415. get { return result.HasSourceObject; }
  416. }
  417. public pb::ByteString SourceObject {
  418. get { return result.SourceObject; }
  419. set { SetSourceObject(value); }
  420. }
  421. public Builder SetSourceObject(pb::ByteString value) {
  422. pb::ThrowHelper.ThrowIfNull(value, "value");
  423. result.hasSourceObject = true;
  424. result.sourceObject_ = value;
  425. return this;
  426. }
  427. public Builder ClearSourceObject() {
  428. result.hasSourceObject = false;
  429. result.sourceObject_ = pb::ByteString.Empty;
  430. return this;
  431. }
  432. public bool HasSourcePort {
  433. get { return result.HasSourcePort; }
  434. }
  435. [global::System.CLSCompliant(false)]
  436. public uint SourcePort {
  437. get { return result.SourcePort; }
  438. set { SetSourcePort(value); }
  439. }
  440. [global::System.CLSCompliant(false)]
  441. public Builder SetSourcePort(uint value) {
  442. result.hasSourcePort = true;
  443. result.sourcePort_ = value;
  444. return this;
  445. }
  446. public Builder ClearSourcePort() {
  447. result.hasSourcePort = false;
  448. result.sourcePort_ = 0;
  449. return this;
  450. }
  451. public bool HasSourceSpace {
  452. get { return result.HasSourceSpace; }
  453. }
  454. public pb::ByteString SourceSpace {
  455. get { return result.SourceSpace; }
  456. set { SetSourceSpace(value); }
  457. }
  458. public Builder SetSourceSpace(pb::ByteString value) {
  459. pb::ThrowHelper.ThrowIfNull(value, "value");
  460. result.hasSourceSpace = true;
  461. result.sourceSpace_ = value;
  462. return this;
  463. }
  464. public Builder ClearSourceSpace() {
  465. result.hasSourceSpace = false;
  466. result.sourceSpace_ = pb::ByteString.Empty;
  467. return this;
  468. }
  469. public bool HasDestinationObject {
  470. get { return result.HasDestinationObject; }
  471. }
  472. public pb::ByteString DestinationObject {
  473. get { return result.DestinationObject; }
  474. set { SetDestinationObject(value); }
  475. }
  476. public Builder SetDestinationObject(pb::ByteString value) {
  477. pb::ThrowHelper.ThrowIfNull(value, "value");
  478. result.hasDestinationObject = true;
  479. result.destinationObject_ = value;
  480. return this;
  481. }
  482. public Builder ClearDestinationObject() {
  483. result.hasDestinationObject = false;
  484. result.destinationObject_ = pb::ByteString.Empty;
  485. return this;
  486. }
  487. public bool HasDestinationPort {
  488. get { return result.HasDestinationPort; }
  489. }
  490. [global::System.CLSCompliant(false)]
  491. public uint DestinationPort {
  492. get { return result.DestinationPort; }
  493. set { SetDestinationPort(value); }
  494. }
  495. [global::System.CLSCompliant(false)]
  496. public Builder SetDestinationPort(uint value) {
  497. result.hasDestinationPort = true;
  498. result.destinationPort_ = value;
  499. return this;
  500. }
  501. public Builder ClearDestinationPort() {
  502. result.hasDestinationPort = false;
  503. result.destinationPort_ = 0;
  504. return this;
  505. }
  506. public bool HasDestinationSpace {
  507. get { return result.HasDestinationSpace; }
  508. }
  509. public pb::ByteString DestinationSpace {
  510. get { return result.DestinationSpace; }
  511. set { SetDestinationSpace(value); }
  512. }
  513. public Builder SetDestinationSpace(pb::ByteString value) {
  514. pb::ThrowHelper.ThrowIfNull(value, "value");
  515. result.hasDestinationSpace = true;
  516. result.destinationSpace_ = value;
  517. return this;
  518. }
  519. public Builder ClearDestinationSpace() {
  520. result.hasDestinationSpace = false;
  521. result.destinationSpace_ = pb::ByteString.Empty;
  522. return this;
  523. }
  524. public bool HasId {
  525. get { return result.HasId; }
  526. }
  527. public long Id {
  528. get { return result.Id; }
  529. set { SetId(value); }
  530. }
  531. public Builder SetId(long value) {
  532. result.hasId = true;
  533. result.id_ = value;
  534. return this;
  535. }
  536. public Builder ClearId() {
  537. result.hasId = false;
  538. result.id_ = 0L;
  539. return this;
  540. }
  541. public bool HasReplyId {
  542. get { return result.HasReplyId; }
  543. }
  544. public long ReplyId {
  545. get { return result.ReplyId; }
  546. set { SetReplyId(value); }
  547. }
  548. public Builder SetReplyId(long value) {
  549. result.hasReplyId = true;
  550. result.replyId_ = value;
  551. return this;
  552. }
  553. public Builder ClearReplyId() {
  554. result.hasReplyId = false;
  555. result.replyId_ = 0L;
  556. return this;
  557. }
  558. public bool HasReturnStatus {
  559. get { return result.HasReturnStatus; }
  560. }
  561. public global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus ReturnStatus {
  562. get { return result.ReturnStatus; }
  563. set { SetReturnStatus(value); }
  564. }
  565. public Builder SetReturnStatus(global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus value) {
  566. result.hasReturnStatus = true;
  567. result.returnStatus_ = value;
  568. return this;
  569. }
  570. public Builder ClearReturnStatus() {
  571. result.hasReturnStatus = false;
  572. result.returnStatus_ = global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus.SUCCESS;
  573. return this;
  574. }
  575. }
  576. static Header() {
  577. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.MessageHeader.Descriptor, null);
  578. }
  579. }
  580. #endregion
  581. }