SlowNorthwindProtoFile.cs 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  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 SlowNorthwind {
  7. public static partial class SlowNorthwindProtoFile {
  8. #region Descriptor
  9. public static pbd::FileDescriptor Descriptor {
  10. get { return descriptor; }
  11. }
  12. private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom (
  13. new byte[] {
  14. 0x0a, 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x6e, 0x77, 0x69, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x73,
  15. 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x1a, 0x0d, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63,
  16. 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
  17. 0x24, 0x0a, 0x06, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x6c,
  18. 0x6f, 0x77, 0x6e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x8e, 0x03,
  19. 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0f, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01,
  20. 0x20, 0x01, 0x28, 0x05, 0x12, 0x12, 0x0a, 0x0a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02,
  21. 0x20, 0x01, 0x28, 0x09, 0x12, 0x12, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x44, 0x18, 0x03,
  22. 0x20, 0x01, 0x28, 0x05, 0x12, 0x24, 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x44, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20,
  23. 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69,
  24. 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x05,
  25. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54,
  26. 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0b, 0x53, 0x68, 0x69, 0x70, 0x70, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x06,
  27. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54,
  28. 0x69, 0x6d, 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x53, 0x68, 0x69, 0x70, 0x56, 0x69, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05,
  29. 0x12, 0x21, 0x0a, 0x07, 0x46, 0x72, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
  30. 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x08, 0x53,
  31. 0x68, 0x69, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x12, 0x13, 0x0a, 0x0b, 0x53, 0x68, 0x69,
  32. 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x12, 0x10, 0x0a, 0x08, 0x53, 0x68,
  33. 0x69, 0x70, 0x43, 0x69, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x12, 0x12, 0x0a, 0x0a, 0x53, 0x68, 0x69, 0x70,
  34. 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x12, 0x16, 0x0a, 0x0e, 0x53, 0x68, 0x69, 0x70,
  35. 0x50, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x12, 0x13, 0x0a, 0x0b,
  36. 0x53, 0x68, 0x69, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x12, 0x27, 0x0a,
  37. 0x05, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x6e,
  38. 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x22, 0x78,
  39. 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
  40. 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x11, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49,
  41. 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x12, 0x23, 0x0a, 0x09, 0x55, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65,
  42. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x65, 0x63,
  43. 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x08, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01,
  44. 0x28, 0x11, 0x12, 0x10, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02,
  45. 0x42, 0x29, 0xc2, 0x3e, 0x0d, 0x53, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0xca, 0x3e,
  46. 0x16, 0x53, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46,
  47. 0x69, 0x6c, 0x65,
  48. }, new pbd::FileDescriptor[] {
  49. global::Google.ProtocolBuffers.SlowBcl.SlowBclProtoFile.Descriptor,
  50. });
  51. #endregion
  52. #region Extensions
  53. #endregion
  54. #region Static variables
  55. internal static readonly pbd::MessageDescriptor internal__static_slownorthwind_Database__Descriptor
  56. = Descriptor.MessageTypes[0];
  57. internal static pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Database, global::SlowNorthwind.Database.Builder> internal__static_slownorthwind_Database__FieldAccessorTable
  58. = new pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Database, global::SlowNorthwind.Database.Builder>(internal__static_slownorthwind_Database__Descriptor,
  59. new string[] { "Orders", });
  60. internal static readonly pbd::MessageDescriptor internal__static_slownorthwind_Order__Descriptor
  61. = Descriptor.MessageTypes[1];
  62. internal static pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Order, global::SlowNorthwind.Order.Builder> internal__static_slownorthwind_Order__FieldAccessorTable
  63. = new pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Order, global::SlowNorthwind.Order.Builder>(internal__static_slownorthwind_Order__Descriptor,
  64. new string[] { "OrderID", "CustomerID", "EmployeeID", "OrderDate", "RequiredDate", "ShippedDate", "ShipVia", "Freight", "ShipName", "ShipAddress", "ShipCity", "ShipRegion", "ShipPostalCode", "ShipCountry", "Lines", });
  65. internal static readonly pbd::MessageDescriptor internal__static_slownorthwind_OrderLine__Descriptor
  66. = Descriptor.MessageTypes[2];
  67. internal static pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.OrderLine, global::SlowNorthwind.OrderLine.Builder> internal__static_slownorthwind_OrderLine__FieldAccessorTable
  68. = new pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.OrderLine, global::SlowNorthwind.OrderLine.Builder>(internal__static_slownorthwind_OrderLine__Descriptor,
  69. new string[] { "OrderID", "ProductID", "UnitPrice", "Quantity", "Discount", });
  70. #endregion
  71. }
  72. #region Enums
  73. #endregion
  74. #region Messages
  75. public sealed partial class Database : pb::GeneratedMessage<Database, Database.Builder> {
  76. private static readonly Database defaultInstance = new Database();
  77. public static Database DefaultInstance {
  78. get { return defaultInstance; }
  79. }
  80. public override Database DefaultInstanceForType {
  81. get { return defaultInstance; }
  82. }
  83. protected override Database ThisMessage {
  84. get { return this; }
  85. }
  86. public static pbd::MessageDescriptor Descriptor {
  87. get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Database__Descriptor; }
  88. }
  89. protected override pb::FieldAccess.FieldAccessorTable<Database, Database.Builder> InternalFieldAccessors {
  90. get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Database__FieldAccessorTable; }
  91. }
  92. // repeated .slownorthwind.Order Orders = 1;
  93. private scg::IList<global::SlowNorthwind.Order> orders_ = pbc::Lists<global::SlowNorthwind.Order>.Empty;
  94. public scg::IList<global::SlowNorthwind.Order> OrdersList {
  95. get { return orders_; }
  96. }
  97. public int OrdersCount
  98. { get { return orders_.Count; }
  99. }
  100. public global::SlowNorthwind.Order GetOrders(int index) {
  101. return orders_ [index];
  102. }
  103. public static global::SlowNorthwind.Database ParseFrom(pb::ByteString data) {
  104. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  105. }
  106. public static global::SlowNorthwind.Database ParseFrom(pb::ByteString data,
  107. pb::ExtensionRegistry extensionRegistry) {
  108. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  109. .BuildParsed();
  110. }
  111. public static global::SlowNorthwind.Database ParseFrom(byte[] data) {
  112. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  113. }
  114. public static global::SlowNorthwind.Database ParseFrom(byte[] data,
  115. pb::ExtensionRegistry extensionRegistry) {
  116. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  117. .BuildParsed();
  118. }
  119. public static global::SlowNorthwind.Database ParseFrom(global::System.IO.Stream input) {
  120. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  121. }
  122. public static global::SlowNorthwind.Database ParseFrom(
  123. global::System.IO.Stream input,
  124. pb::ExtensionRegistry extensionRegistry) {
  125. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  126. .BuildParsed();
  127. }
  128. public static global::SlowNorthwind.Database ParseFrom(pb::CodedInputStream input) {
  129. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  130. }
  131. public static global::SlowNorthwind.Database ParseFrom(pb::CodedInputStream input,
  132. pb::ExtensionRegistry extensionRegistry) {
  133. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  134. .BuildParsed();
  135. }
  136. public static Builder CreateBuilder() { return new Builder(); }
  137. public override Builder CreateBuilderForType() { return new Builder(); }
  138. public static Builder CreateBuilder(global::SlowNorthwind.Database prototype) {
  139. return (Builder) new Builder().MergeFrom(prototype);
  140. }
  141. public sealed partial class Builder : pb::GeneratedBuilder<global::SlowNorthwind.Database, Builder> {
  142. protected override Builder ThisBuilder {
  143. get { return this; }
  144. }
  145. // Construct using global::SlowNorthwind.Database.CreateBuilder()
  146. internal Builder() {}
  147. global::SlowNorthwind.Database result = new global::SlowNorthwind.Database();
  148. protected override global::SlowNorthwind.Database MessageBeingBuilt {
  149. get { return result; }
  150. }
  151. public override Builder Clear() {
  152. result = new global::SlowNorthwind.Database();
  153. return this;
  154. }
  155. public override Builder Clone() {
  156. return new Builder().MergeFrom(result);
  157. }
  158. public override pbd::MessageDescriptor DescriptorForType {
  159. get { return global::SlowNorthwind.Database.Descriptor; }
  160. }
  161. public override global::SlowNorthwind.Database DefaultInstanceForType {
  162. get { return global::SlowNorthwind.Database.DefaultInstance; }
  163. }
  164. public override global::SlowNorthwind.Database BuildPartial() {
  165. if (result.orders_ != pbc::Lists<global::SlowNorthwind.Order>.Empty) {
  166. result.orders_ = pbc::Lists<global::SlowNorthwind.Order>.AsReadOnly(result.orders_);
  167. }
  168. global::SlowNorthwind.Database returnMe = result;
  169. result = null;
  170. return returnMe;
  171. }
  172. // repeated .slownorthwind.Order Orders = 1;
  173. public scg::IList<global::SlowNorthwind.Order> OrdersList {
  174. get { return pbc::Lists.AsReadOnly(result.orders_); }
  175. }
  176. public int OrdersCount {
  177. get { return result.OrdersCount; }
  178. }
  179. public global::SlowNorthwind.Order GetOrders(int index) {
  180. return result.GetOrders(index);
  181. }
  182. public Builder SetOrders(int index, global::SlowNorthwind.Order value) {
  183. result.orders_[index] = value;
  184. return this;
  185. }
  186. public Builder SetOrders(int index, global::SlowNorthwind.Order.Builder builderForValue) {
  187. result.orders_[index] = builderForValue.Build();
  188. return this;
  189. }
  190. public Builder AddOrders(global::SlowNorthwind.Order value) {
  191. if (result.orders_ == pbc::Lists<global::SlowNorthwind.Order>.Empty) {
  192. result.orders_ = new scg::List<global::SlowNorthwind.Order>();
  193. }
  194. result.orders_.Add(value);
  195. return this;
  196. }
  197. public Builder AddOrders(global::SlowNorthwind.Order.Builder builderForValue) {
  198. if (result.orders_ == pbc::Lists<global::SlowNorthwind.Order>.Empty) {
  199. result.orders_ = new scg::List<global::SlowNorthwind.Order>();
  200. }
  201. result.orders_.Add(builderForValue.Build());
  202. return this;
  203. }
  204. public Builder AddRangeOrders(scg::IEnumerable<global::SlowNorthwind.Order> values) {
  205. if (result.orders_ == pbc::Lists<global::SlowNorthwind.Order>.Empty) {
  206. result.orders_ = new scg::List<global::SlowNorthwind.Order>();
  207. }
  208. base.AddRange(values, result.orders_);
  209. return this;
  210. }
  211. public Builder ClearOrders() {
  212. result.orders_ = pbc::Lists<global::SlowNorthwind.Order>.Empty;
  213. return this;
  214. }
  215. }
  216. }
  217. public sealed partial class Order : pb::GeneratedMessage<Order, Order.Builder> {
  218. private static readonly Order defaultInstance = new Order();
  219. public static Order DefaultInstance {
  220. get { return defaultInstance; }
  221. }
  222. public override Order DefaultInstanceForType {
  223. get { return defaultInstance; }
  224. }
  225. protected override Order ThisMessage {
  226. get { return this; }
  227. }
  228. public static pbd::MessageDescriptor Descriptor {
  229. get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Order__Descriptor; }
  230. }
  231. protected override pb::FieldAccess.FieldAccessorTable<Order, Order.Builder> InternalFieldAccessors {
  232. get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Order__FieldAccessorTable; }
  233. }
  234. // optional int32 OrderID = 1;
  235. private bool hasOrderID;
  236. private int orderID_ = 0;
  237. public bool HasOrderID {
  238. get { return hasOrderID; }
  239. }
  240. public int OrderID {
  241. get { return orderID_; }
  242. }
  243. // optional string CustomerID = 2;
  244. private bool hasCustomerID;
  245. private string customerID_ = "";
  246. public bool HasCustomerID {
  247. get { return hasCustomerID; }
  248. }
  249. public string CustomerID {
  250. get { return customerID_; }
  251. }
  252. // optional int32 EmployeeID = 3;
  253. private bool hasEmployeeID;
  254. private int employeeID_ = 0;
  255. public bool HasEmployeeID {
  256. get { return hasEmployeeID; }
  257. }
  258. public int EmployeeID {
  259. get { return employeeID_; }
  260. }
  261. // optional .slowbcl.DateTime OrderDate = 4;
  262. private bool hasOrderDate;
  263. private global::Google.ProtocolBuffers.SlowBcl.DateTime orderDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
  264. public bool HasOrderDate {
  265. get { return hasOrderDate; }
  266. }
  267. public global::Google.ProtocolBuffers.SlowBcl.DateTime OrderDate {
  268. get { return orderDate_; }
  269. }
  270. // optional .slowbcl.DateTime RequiredDate = 5;
  271. private bool hasRequiredDate;
  272. private global::Google.ProtocolBuffers.SlowBcl.DateTime requiredDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
  273. public bool HasRequiredDate {
  274. get { return hasRequiredDate; }
  275. }
  276. public global::Google.ProtocolBuffers.SlowBcl.DateTime RequiredDate {
  277. get { return requiredDate_; }
  278. }
  279. // optional .slowbcl.DateTime ShippedDate = 6;
  280. private bool hasShippedDate;
  281. private global::Google.ProtocolBuffers.SlowBcl.DateTime shippedDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
  282. public bool HasShippedDate {
  283. get { return hasShippedDate; }
  284. }
  285. public global::Google.ProtocolBuffers.SlowBcl.DateTime ShippedDate {
  286. get { return shippedDate_; }
  287. }
  288. // optional int32 ShipVia = 7;
  289. private bool hasShipVia;
  290. private int shipVia_ = 0;
  291. public bool HasShipVia {
  292. get { return hasShipVia; }
  293. }
  294. public int ShipVia {
  295. get { return shipVia_; }
  296. }
  297. // optional .slowbcl.Decimal Freight = 8;
  298. private bool hasFreight;
  299. private global::Google.ProtocolBuffers.SlowBcl.Decimal freight_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
  300. public bool HasFreight {
  301. get { return hasFreight; }
  302. }
  303. public global::Google.ProtocolBuffers.SlowBcl.Decimal Freight {
  304. get { return freight_; }
  305. }
  306. // optional string ShipName = 9;
  307. private bool hasShipName;
  308. private string shipName_ = "";
  309. public bool HasShipName {
  310. get { return hasShipName; }
  311. }
  312. public string ShipName {
  313. get { return shipName_; }
  314. }
  315. // optional string ShipAddress = 10;
  316. private bool hasShipAddress;
  317. private string shipAddress_ = "";
  318. public bool HasShipAddress {
  319. get { return hasShipAddress; }
  320. }
  321. public string ShipAddress {
  322. get { return shipAddress_; }
  323. }
  324. // optional string ShipCity = 11;
  325. private bool hasShipCity;
  326. private string shipCity_ = "";
  327. public bool HasShipCity {
  328. get { return hasShipCity; }
  329. }
  330. public string ShipCity {
  331. get { return shipCity_; }
  332. }
  333. // optional string ShipRegion = 12;
  334. private bool hasShipRegion;
  335. private string shipRegion_ = "";
  336. public bool HasShipRegion {
  337. get { return hasShipRegion; }
  338. }
  339. public string ShipRegion {
  340. get { return shipRegion_; }
  341. }
  342. // optional string ShipPostalCode = 13;
  343. private bool hasShipPostalCode;
  344. private string shipPostalCode_ = "";
  345. public bool HasShipPostalCode {
  346. get { return hasShipPostalCode; }
  347. }
  348. public string ShipPostalCode {
  349. get { return shipPostalCode_; }
  350. }
  351. // optional string ShipCountry = 14;
  352. private bool hasShipCountry;
  353. private string shipCountry_ = "";
  354. public bool HasShipCountry {
  355. get { return hasShipCountry; }
  356. }
  357. public string ShipCountry {
  358. get { return shipCountry_; }
  359. }
  360. // repeated .slownorthwind.OrderLine Lines = 15;
  361. private scg::IList<global::SlowNorthwind.OrderLine> lines_ = pbc::Lists<global::SlowNorthwind.OrderLine>.Empty;
  362. public scg::IList<global::SlowNorthwind.OrderLine> LinesList {
  363. get { return lines_; }
  364. }
  365. public int LinesCount
  366. { get { return lines_.Count; }
  367. }
  368. public global::SlowNorthwind.OrderLine GetLines(int index) {
  369. return lines_ [index];
  370. }
  371. public static global::SlowNorthwind.Order ParseFrom(pb::ByteString data) {
  372. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  373. }
  374. public static global::SlowNorthwind.Order ParseFrom(pb::ByteString data,
  375. pb::ExtensionRegistry extensionRegistry) {
  376. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  377. .BuildParsed();
  378. }
  379. public static global::SlowNorthwind.Order ParseFrom(byte[] data) {
  380. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  381. }
  382. public static global::SlowNorthwind.Order ParseFrom(byte[] data,
  383. pb::ExtensionRegistry extensionRegistry) {
  384. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  385. .BuildParsed();
  386. }
  387. public static global::SlowNorthwind.Order ParseFrom(global::System.IO.Stream input) {
  388. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  389. }
  390. public static global::SlowNorthwind.Order ParseFrom(
  391. global::System.IO.Stream input,
  392. pb::ExtensionRegistry extensionRegistry) {
  393. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  394. .BuildParsed();
  395. }
  396. public static global::SlowNorthwind.Order ParseFrom(pb::CodedInputStream input) {
  397. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  398. }
  399. public static global::SlowNorthwind.Order ParseFrom(pb::CodedInputStream input,
  400. pb::ExtensionRegistry extensionRegistry) {
  401. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  402. .BuildParsed();
  403. }
  404. public static Builder CreateBuilder() { return new Builder(); }
  405. public override Builder CreateBuilderForType() { return new Builder(); }
  406. public static Builder CreateBuilder(global::SlowNorthwind.Order prototype) {
  407. return (Builder) new Builder().MergeFrom(prototype);
  408. }
  409. public sealed partial class Builder : pb::GeneratedBuilder<global::SlowNorthwind.Order, Builder> {
  410. protected override Builder ThisBuilder {
  411. get { return this; }
  412. }
  413. // Construct using global::SlowNorthwind.Order.CreateBuilder()
  414. internal Builder() {}
  415. global::SlowNorthwind.Order result = new global::SlowNorthwind.Order();
  416. protected override global::SlowNorthwind.Order MessageBeingBuilt {
  417. get { return result; }
  418. }
  419. public override Builder Clear() {
  420. result = new global::SlowNorthwind.Order();
  421. return this;
  422. }
  423. public override Builder Clone() {
  424. return new Builder().MergeFrom(result);
  425. }
  426. public override pbd::MessageDescriptor DescriptorForType {
  427. get { return global::SlowNorthwind.Order.Descriptor; }
  428. }
  429. public override global::SlowNorthwind.Order DefaultInstanceForType {
  430. get { return global::SlowNorthwind.Order.DefaultInstance; }
  431. }
  432. public override global::SlowNorthwind.Order BuildPartial() {
  433. if (result.lines_ != pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
  434. result.lines_ = pbc::Lists<global::SlowNorthwind.OrderLine>.AsReadOnly(result.lines_);
  435. }
  436. global::SlowNorthwind.Order returnMe = result;
  437. result = null;
  438. return returnMe;
  439. }
  440. // optional int32 OrderID = 1;
  441. public bool HasOrderID {
  442. get { return result.HasOrderID; }
  443. }
  444. public int OrderID {
  445. get { return result.OrderID; }
  446. set { SetOrderID(value); }
  447. }
  448. public Builder SetOrderID(int value) {
  449. result.hasOrderID = true;
  450. result.orderID_ = value;
  451. return this;
  452. }
  453. public Builder ClearOrderID() {
  454. result.hasOrderID = false;
  455. result.orderID_ = 0;
  456. return this;
  457. }
  458. // optional string CustomerID = 2;
  459. public bool HasCustomerID {
  460. get { return result.HasCustomerID; }
  461. }
  462. public string CustomerID {
  463. get { return result.CustomerID; }
  464. set { SetCustomerID(value); }
  465. }
  466. public Builder SetCustomerID(string value) {
  467. result.hasCustomerID = true;
  468. result.customerID_ = value;
  469. return this;
  470. }
  471. public Builder ClearCustomerID() {
  472. result.hasCustomerID = false;
  473. result.customerID_ = "";
  474. return this;
  475. }
  476. // optional int32 EmployeeID = 3;
  477. public bool HasEmployeeID {
  478. get { return result.HasEmployeeID; }
  479. }
  480. public int EmployeeID {
  481. get { return result.EmployeeID; }
  482. set { SetEmployeeID(value); }
  483. }
  484. public Builder SetEmployeeID(int value) {
  485. result.hasEmployeeID = true;
  486. result.employeeID_ = value;
  487. return this;
  488. }
  489. public Builder ClearEmployeeID() {
  490. result.hasEmployeeID = false;
  491. result.employeeID_ = 0;
  492. return this;
  493. }
  494. // optional .slowbcl.DateTime OrderDate = 4;
  495. public bool HasOrderDate {
  496. get { return result.HasOrderDate; }
  497. }
  498. public global::Google.ProtocolBuffers.SlowBcl.DateTime OrderDate {
  499. get { return result.OrderDate; }
  500. set { SetOrderDate(value); }
  501. }
  502. public Builder SetOrderDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
  503. result.hasOrderDate = true;
  504. result.orderDate_ = value;
  505. return this;
  506. }
  507. public Builder SetOrderDate(global::Google.ProtocolBuffers.SlowBcl.DateTime.Builder builderForValue) {
  508. result.hasOrderDate = true;
  509. result.orderDate_ = builderForValue.Build();
  510. return this;
  511. }
  512. public Builder MergeOrderDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
  513. if (result.HasOrderDate &&
  514. result.orderDate_ != global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance) {
  515. result.orderDate_ =
  516. global::Google.ProtocolBuffers.SlowBcl.DateTime.CreateBuilder(result.orderDate_).MergeFrom(value).BuildPartial();
  517. } else {
  518. result.orderDate_ = value;
  519. }
  520. result.hasOrderDate = true;
  521. return this;
  522. }
  523. public Builder ClearOrderDate() {
  524. result.hasOrderDate = false;
  525. result.orderDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
  526. return this;
  527. }
  528. // optional .slowbcl.DateTime RequiredDate = 5;
  529. public bool HasRequiredDate {
  530. get { return result.HasRequiredDate; }
  531. }
  532. public global::Google.ProtocolBuffers.SlowBcl.DateTime RequiredDate {
  533. get { return result.RequiredDate; }
  534. set { SetRequiredDate(value); }
  535. }
  536. public Builder SetRequiredDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
  537. result.hasRequiredDate = true;
  538. result.requiredDate_ = value;
  539. return this;
  540. }
  541. public Builder SetRequiredDate(global::Google.ProtocolBuffers.SlowBcl.DateTime.Builder builderForValue) {
  542. result.hasRequiredDate = true;
  543. result.requiredDate_ = builderForValue.Build();
  544. return this;
  545. }
  546. public Builder MergeRequiredDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
  547. if (result.HasRequiredDate &&
  548. result.requiredDate_ != global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance) {
  549. result.requiredDate_ =
  550. global::Google.ProtocolBuffers.SlowBcl.DateTime.CreateBuilder(result.requiredDate_).MergeFrom(value).BuildPartial();
  551. } else {
  552. result.requiredDate_ = value;
  553. }
  554. result.hasRequiredDate = true;
  555. return this;
  556. }
  557. public Builder ClearRequiredDate() {
  558. result.hasRequiredDate = false;
  559. result.requiredDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
  560. return this;
  561. }
  562. // optional .slowbcl.DateTime ShippedDate = 6;
  563. public bool HasShippedDate {
  564. get { return result.HasShippedDate; }
  565. }
  566. public global::Google.ProtocolBuffers.SlowBcl.DateTime ShippedDate {
  567. get { return result.ShippedDate; }
  568. set { SetShippedDate(value); }
  569. }
  570. public Builder SetShippedDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
  571. result.hasShippedDate = true;
  572. result.shippedDate_ = value;
  573. return this;
  574. }
  575. public Builder SetShippedDate(global::Google.ProtocolBuffers.SlowBcl.DateTime.Builder builderForValue) {
  576. result.hasShippedDate = true;
  577. result.shippedDate_ = builderForValue.Build();
  578. return this;
  579. }
  580. public Builder MergeShippedDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
  581. if (result.HasShippedDate &&
  582. result.shippedDate_ != global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance) {
  583. result.shippedDate_ =
  584. global::Google.ProtocolBuffers.SlowBcl.DateTime.CreateBuilder(result.shippedDate_).MergeFrom(value).BuildPartial();
  585. } else {
  586. result.shippedDate_ = value;
  587. }
  588. result.hasShippedDate = true;
  589. return this;
  590. }
  591. public Builder ClearShippedDate() {
  592. result.hasShippedDate = false;
  593. result.shippedDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
  594. return this;
  595. }
  596. // optional int32 ShipVia = 7;
  597. public bool HasShipVia {
  598. get { return result.HasShipVia; }
  599. }
  600. public int ShipVia {
  601. get { return result.ShipVia; }
  602. set { SetShipVia(value); }
  603. }
  604. public Builder SetShipVia(int value) {
  605. result.hasShipVia = true;
  606. result.shipVia_ = value;
  607. return this;
  608. }
  609. public Builder ClearShipVia() {
  610. result.hasShipVia = false;
  611. result.shipVia_ = 0;
  612. return this;
  613. }
  614. // optional .slowbcl.Decimal Freight = 8;
  615. public bool HasFreight {
  616. get { return result.HasFreight; }
  617. }
  618. public global::Google.ProtocolBuffers.SlowBcl.Decimal Freight {
  619. get { return result.Freight; }
  620. set { SetFreight(value); }
  621. }
  622. public Builder SetFreight(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
  623. result.hasFreight = true;
  624. result.freight_ = value;
  625. return this;
  626. }
  627. public Builder SetFreight(global::Google.ProtocolBuffers.SlowBcl.Decimal.Builder builderForValue) {
  628. result.hasFreight = true;
  629. result.freight_ = builderForValue.Build();
  630. return this;
  631. }
  632. public Builder MergeFreight(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
  633. if (result.HasFreight &&
  634. result.freight_ != global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance) {
  635. result.freight_ =
  636. global::Google.ProtocolBuffers.SlowBcl.Decimal.CreateBuilder(result.freight_).MergeFrom(value).BuildPartial();
  637. } else {
  638. result.freight_ = value;
  639. }
  640. result.hasFreight = true;
  641. return this;
  642. }
  643. public Builder ClearFreight() {
  644. result.hasFreight = false;
  645. result.freight_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
  646. return this;
  647. }
  648. // optional string ShipName = 9;
  649. public bool HasShipName {
  650. get { return result.HasShipName; }
  651. }
  652. public string ShipName {
  653. get { return result.ShipName; }
  654. set { SetShipName(value); }
  655. }
  656. public Builder SetShipName(string value) {
  657. result.hasShipName = true;
  658. result.shipName_ = value;
  659. return this;
  660. }
  661. public Builder ClearShipName() {
  662. result.hasShipName = false;
  663. result.shipName_ = "";
  664. return this;
  665. }
  666. // optional string ShipAddress = 10;
  667. public bool HasShipAddress {
  668. get { return result.HasShipAddress; }
  669. }
  670. public string ShipAddress {
  671. get { return result.ShipAddress; }
  672. set { SetShipAddress(value); }
  673. }
  674. public Builder SetShipAddress(string value) {
  675. result.hasShipAddress = true;
  676. result.shipAddress_ = value;
  677. return this;
  678. }
  679. public Builder ClearShipAddress() {
  680. result.hasShipAddress = false;
  681. result.shipAddress_ = "";
  682. return this;
  683. }
  684. // optional string ShipCity = 11;
  685. public bool HasShipCity {
  686. get { return result.HasShipCity; }
  687. }
  688. public string ShipCity {
  689. get { return result.ShipCity; }
  690. set { SetShipCity(value); }
  691. }
  692. public Builder SetShipCity(string value) {
  693. result.hasShipCity = true;
  694. result.shipCity_ = value;
  695. return this;
  696. }
  697. public Builder ClearShipCity() {
  698. result.hasShipCity = false;
  699. result.shipCity_ = "";
  700. return this;
  701. }
  702. // optional string ShipRegion = 12;
  703. public bool HasShipRegion {
  704. get { return result.HasShipRegion; }
  705. }
  706. public string ShipRegion {
  707. get { return result.ShipRegion; }
  708. set { SetShipRegion(value); }
  709. }
  710. public Builder SetShipRegion(string value) {
  711. result.hasShipRegion = true;
  712. result.shipRegion_ = value;
  713. return this;
  714. }
  715. public Builder ClearShipRegion() {
  716. result.hasShipRegion = false;
  717. result.shipRegion_ = "";
  718. return this;
  719. }
  720. // optional string ShipPostalCode = 13;
  721. public bool HasShipPostalCode {
  722. get { return result.HasShipPostalCode; }
  723. }
  724. public string ShipPostalCode {
  725. get { return result.ShipPostalCode; }
  726. set { SetShipPostalCode(value); }
  727. }
  728. public Builder SetShipPostalCode(string value) {
  729. result.hasShipPostalCode = true;
  730. result.shipPostalCode_ = value;
  731. return this;
  732. }
  733. public Builder ClearShipPostalCode() {
  734. result.hasShipPostalCode = false;
  735. result.shipPostalCode_ = "";
  736. return this;
  737. }
  738. // optional string ShipCountry = 14;
  739. public bool HasShipCountry {
  740. get { return result.HasShipCountry; }
  741. }
  742. public string ShipCountry {
  743. get { return result.ShipCountry; }
  744. set { SetShipCountry(value); }
  745. }
  746. public Builder SetShipCountry(string value) {
  747. result.hasShipCountry = true;
  748. result.shipCountry_ = value;
  749. return this;
  750. }
  751. public Builder ClearShipCountry() {
  752. result.hasShipCountry = false;
  753. result.shipCountry_ = "";
  754. return this;
  755. }
  756. // repeated .slownorthwind.OrderLine Lines = 15;
  757. public scg::IList<global::SlowNorthwind.OrderLine> LinesList {
  758. get { return pbc::Lists.AsReadOnly(result.lines_); }
  759. }
  760. public int LinesCount {
  761. get { return result.LinesCount; }
  762. }
  763. public global::SlowNorthwind.OrderLine GetLines(int index) {
  764. return result.GetLines(index);
  765. }
  766. public Builder SetLines(int index, global::SlowNorthwind.OrderLine value) {
  767. result.lines_[index] = value;
  768. return this;
  769. }
  770. public Builder SetLines(int index, global::SlowNorthwind.OrderLine.Builder builderForValue) {
  771. result.lines_[index] = builderForValue.Build();
  772. return this;
  773. }
  774. public Builder AddLines(global::SlowNorthwind.OrderLine value) {
  775. if (result.lines_ == pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
  776. result.lines_ = new scg::List<global::SlowNorthwind.OrderLine>();
  777. }
  778. result.lines_.Add(value);
  779. return this;
  780. }
  781. public Builder AddLines(global::SlowNorthwind.OrderLine.Builder builderForValue) {
  782. if (result.lines_ == pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
  783. result.lines_ = new scg::List<global::SlowNorthwind.OrderLine>();
  784. }
  785. result.lines_.Add(builderForValue.Build());
  786. return this;
  787. }
  788. public Builder AddRangeLines(scg::IEnumerable<global::SlowNorthwind.OrderLine> values) {
  789. if (result.lines_ == pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
  790. result.lines_ = new scg::List<global::SlowNorthwind.OrderLine>();
  791. }
  792. base.AddRange(values, result.lines_);
  793. return this;
  794. }
  795. public Builder ClearLines() {
  796. result.lines_ = pbc::Lists<global::SlowNorthwind.OrderLine>.Empty;
  797. return this;
  798. }
  799. }
  800. }
  801. public sealed partial class OrderLine : pb::GeneratedMessage<OrderLine, OrderLine.Builder> {
  802. private static readonly OrderLine defaultInstance = new OrderLine();
  803. public static OrderLine DefaultInstance {
  804. get { return defaultInstance; }
  805. }
  806. public override OrderLine DefaultInstanceForType {
  807. get { return defaultInstance; }
  808. }
  809. protected override OrderLine ThisMessage {
  810. get { return this; }
  811. }
  812. public static pbd::MessageDescriptor Descriptor {
  813. get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_OrderLine__Descriptor; }
  814. }
  815. protected override pb::FieldAccess.FieldAccessorTable<OrderLine, OrderLine.Builder> InternalFieldAccessors {
  816. get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_OrderLine__FieldAccessorTable; }
  817. }
  818. // optional int32 OrderID = 1;
  819. private bool hasOrderID;
  820. private int orderID_ = 0;
  821. public bool HasOrderID {
  822. get { return hasOrderID; }
  823. }
  824. public int OrderID {
  825. get { return orderID_; }
  826. }
  827. // optional int32 ProductID = 2;
  828. private bool hasProductID;
  829. private int productID_ = 0;
  830. public bool HasProductID {
  831. get { return hasProductID; }
  832. }
  833. public int ProductID {
  834. get { return productID_; }
  835. }
  836. // optional .slowbcl.Decimal UnitPrice = 3;
  837. private bool hasUnitPrice;
  838. private global::Google.ProtocolBuffers.SlowBcl.Decimal unitPrice_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
  839. public bool HasUnitPrice {
  840. get { return hasUnitPrice; }
  841. }
  842. public global::Google.ProtocolBuffers.SlowBcl.Decimal UnitPrice {
  843. get { return unitPrice_; }
  844. }
  845. // optional sint32 Quantity = 4;
  846. private bool hasQuantity;
  847. private int quantity_ = 0;
  848. public bool HasQuantity {
  849. get { return hasQuantity; }
  850. }
  851. public int Quantity {
  852. get { return quantity_; }
  853. }
  854. // optional float Discount = 5;
  855. private bool hasDiscount;
  856. private float discount_ = 0F;
  857. public bool HasDiscount {
  858. get { return hasDiscount; }
  859. }
  860. public float Discount {
  861. get { return discount_; }
  862. }
  863. public static global::SlowNorthwind.OrderLine ParseFrom(pb::ByteString data) {
  864. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  865. }
  866. public static global::SlowNorthwind.OrderLine ParseFrom(pb::ByteString data,
  867. pb::ExtensionRegistry extensionRegistry) {
  868. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  869. .BuildParsed();
  870. }
  871. public static global::SlowNorthwind.OrderLine ParseFrom(byte[] data) {
  872. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  873. }
  874. public static global::SlowNorthwind.OrderLine ParseFrom(byte[] data,
  875. pb::ExtensionRegistry extensionRegistry) {
  876. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  877. .BuildParsed();
  878. }
  879. public static global::SlowNorthwind.OrderLine ParseFrom(global::System.IO.Stream input) {
  880. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  881. }
  882. public static global::SlowNorthwind.OrderLine ParseFrom(
  883. global::System.IO.Stream input,
  884. pb::ExtensionRegistry extensionRegistry) {
  885. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  886. .BuildParsed();
  887. }
  888. public static global::SlowNorthwind.OrderLine ParseFrom(pb::CodedInputStream input) {
  889. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  890. }
  891. public static global::SlowNorthwind.OrderLine ParseFrom(pb::CodedInputStream input,
  892. pb::ExtensionRegistry extensionRegistry) {
  893. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  894. .BuildParsed();
  895. }
  896. public static Builder CreateBuilder() { return new Builder(); }
  897. public override Builder CreateBuilderForType() { return new Builder(); }
  898. public static Builder CreateBuilder(global::SlowNorthwind.OrderLine prototype) {
  899. return (Builder) new Builder().MergeFrom(prototype);
  900. }
  901. public sealed partial class Builder : pb::GeneratedBuilder<global::SlowNorthwind.OrderLine, Builder> {
  902. protected override Builder ThisBuilder {
  903. get { return this; }
  904. }
  905. // Construct using global::SlowNorthwind.OrderLine.CreateBuilder()
  906. internal Builder() {}
  907. global::SlowNorthwind.OrderLine result = new global::SlowNorthwind.OrderLine();
  908. protected override global::SlowNorthwind.OrderLine MessageBeingBuilt {
  909. get { return result; }
  910. }
  911. public override Builder Clear() {
  912. result = new global::SlowNorthwind.OrderLine();
  913. return this;
  914. }
  915. public override Builder Clone() {
  916. return new Builder().MergeFrom(result);
  917. }
  918. public override pbd::MessageDescriptor DescriptorForType {
  919. get { return global::SlowNorthwind.OrderLine.Descriptor; }
  920. }
  921. public override global::SlowNorthwind.OrderLine DefaultInstanceForType {
  922. get { return global::SlowNorthwind.OrderLine.DefaultInstance; }
  923. }
  924. public override global::SlowNorthwind.OrderLine BuildPartial() {
  925. global::SlowNorthwind.OrderLine returnMe = result;
  926. result = null;
  927. return returnMe;
  928. }
  929. // optional int32 OrderID = 1;
  930. public bool HasOrderID {
  931. get { return result.HasOrderID; }
  932. }
  933. public int OrderID {
  934. get { return result.OrderID; }
  935. set { SetOrderID(value); }
  936. }
  937. public Builder SetOrderID(int value) {
  938. result.hasOrderID = true;
  939. result.orderID_ = value;
  940. return this;
  941. }
  942. public Builder ClearOrderID() {
  943. result.hasOrderID = false;
  944. result.orderID_ = 0;
  945. return this;
  946. }
  947. // optional int32 ProductID = 2;
  948. public bool HasProductID {
  949. get { return result.HasProductID; }
  950. }
  951. public int ProductID {
  952. get { return result.ProductID; }
  953. set { SetProductID(value); }
  954. }
  955. public Builder SetProductID(int value) {
  956. result.hasProductID = true;
  957. result.productID_ = value;
  958. return this;
  959. }
  960. public Builder ClearProductID() {
  961. result.hasProductID = false;
  962. result.productID_ = 0;
  963. return this;
  964. }
  965. // optional .slowbcl.Decimal UnitPrice = 3;
  966. public bool HasUnitPrice {
  967. get { return result.HasUnitPrice; }
  968. }
  969. public global::Google.ProtocolBuffers.SlowBcl.Decimal UnitPrice {
  970. get { return result.UnitPrice; }
  971. set { SetUnitPrice(value); }
  972. }
  973. public Builder SetUnitPrice(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
  974. result.hasUnitPrice = true;
  975. result.unitPrice_ = value;
  976. return this;
  977. }
  978. public Builder SetUnitPrice(global::Google.ProtocolBuffers.SlowBcl.Decimal.Builder builderForValue) {
  979. result.hasUnitPrice = true;
  980. result.unitPrice_ = builderForValue.Build();
  981. return this;
  982. }
  983. public Builder MergeUnitPrice(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
  984. if (result.HasUnitPrice &&
  985. result.unitPrice_ != global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance) {
  986. result.unitPrice_ =
  987. global::Google.ProtocolBuffers.SlowBcl.Decimal.CreateBuilder(result.unitPrice_).MergeFrom(value).BuildPartial();
  988. } else {
  989. result.unitPrice_ = value;
  990. }
  991. result.hasUnitPrice = true;
  992. return this;
  993. }
  994. public Builder ClearUnitPrice() {
  995. result.hasUnitPrice = false;
  996. result.unitPrice_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
  997. return this;
  998. }
  999. // optional sint32 Quantity = 4;
  1000. public bool HasQuantity {
  1001. get { return result.HasQuantity; }
  1002. }
  1003. public int Quantity {
  1004. get { return result.Quantity; }
  1005. set { SetQuantity(value); }
  1006. }
  1007. public Builder SetQuantity(int value) {
  1008. result.hasQuantity = true;
  1009. result.quantity_ = value;
  1010. return this;
  1011. }
  1012. public Builder ClearQuantity() {
  1013. result.hasQuantity = false;
  1014. result.quantity_ = 0;
  1015. return this;
  1016. }
  1017. // optional float Discount = 5;
  1018. public bool HasDiscount {
  1019. get { return result.HasDiscount; }
  1020. }
  1021. public float Discount {
  1022. get { return result.Discount; }
  1023. set { SetDiscount(value); }
  1024. }
  1025. public Builder SetDiscount(float value) {
  1026. result.hasDiscount = true;
  1027. result.discount_ = value;
  1028. return this;
  1029. }
  1030. public Builder ClearDiscount() {
  1031. result.hasDiscount = false;
  1032. result.discount_ = 0F;
  1033. return this;
  1034. }
  1035. }
  1036. }
  1037. #endregion
  1038. #region Services
  1039. #endregion
  1040. }