Slownwind.java 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. package slownorthwind;
  3. public final class Slownwind {
  4. private Slownwind() {}
  5. public static com.google.protobuf.Descriptors.FileDescriptor
  6. getDescriptor() {
  7. return descriptor;
  8. }
  9. private static final com.google.protobuf.Descriptors.FileDescriptor
  10. descriptor = buildDescriptor();
  11. private static
  12. com.google.protobuf.Descriptors.FileDescriptor
  13. buildDescriptor() {
  14. java.lang.String descriptorData =
  15. "\n\017slownwind.proto\022\rslownorthwind\032\rslowbc" +
  16. "l.proto\"0\n\010Database\022$\n\006Orders\030\001 \003(\0132\024.sl" +
  17. "ownorthwind.Order\"\216\003\n\005Order\022\017\n\007OrderID\030\001" +
  18. " \001(\005\022\022\n\nCustomerID\030\002 \001(\t\022\022\n\nEmployeeID\030\003" +
  19. " \001(\005\022$\n\tOrderDate\030\004 \001(\0132\021.slowbcl.DateTi" +
  20. "me\022\'\n\014RequiredDate\030\005 \001(\0132\021.slowbcl.DateT" +
  21. "ime\022&\n\013ShippedDate\030\006 \001(\0132\021.slowbcl.DateT" +
  22. "ime\022\017\n\007ShipVia\030\007 \001(\005\022!\n\007Freight\030\010 \001(\0132\020." +
  23. "slowbcl.Decimal\022\020\n\010ShipName\030\t \001(\t\022\023\n\013Shi" +
  24. "pAddress\030\n \001(\t\022\020\n\010ShipCity\030\013 \001(\t\022\022\n\nShip" +
  25. "Region\030\014 \001(\t\022\026\n\016ShipPostalCode\030\r \001(\t\022\023\n\013" +
  26. "ShipCountry\030\016 \001(\t\022\'\n\005Lines\030\017 \003(\0132\030.slown" +
  27. "orthwind.OrderLine\"x\n\tOrderLine\022\017\n\007Order" +
  28. "ID\030\001 \001(\005\022\021\n\tProductID\030\002 \001(\005\022#\n\tUnitPrice" +
  29. "\030\003 \001(\0132\020.slowbcl.Decimal\022\020\n\010Quantity\030\004 \001" +
  30. "(\021\022\020\n\010Discount\030\005 \001(\002B)\302>\rSlowNorthwind\312>" +
  31. "\026SlowNorthwindProtoFile";
  32. try {
  33. return com.google.protobuf.Descriptors.FileDescriptor
  34. .internalBuildGeneratedFileFrom(descriptorData,
  35. new com.google.protobuf.Descriptors.FileDescriptor[] {
  36. slowbcl.Slowbcl.getDescriptor(),
  37. });
  38. } catch (Exception e) {
  39. throw new RuntimeException(
  40. "Failed to parse protocol buffer descriptor for " +
  41. "\"slownwind.proto\".", e);
  42. }
  43. }
  44. public static final class Database extends
  45. com.google.protobuf.GeneratedMessage {
  46. // Use Database.newBuilder() to construct.
  47. private Database() {}
  48. private static final Database defaultInstance = new Database();
  49. public static Database getDefaultInstance() {
  50. return defaultInstance;
  51. }
  52. public Database getDefaultInstanceForType() {
  53. return defaultInstance;
  54. }
  55. public static final com.google.protobuf.Descriptors.Descriptor
  56. getDescriptor() {
  57. return slownorthwind.Slownwind.internal_static_slownorthwind_Database_descriptor;
  58. }
  59. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  60. internalGetFieldAccessorTable() {
  61. return slownorthwind.Slownwind.internal_static_slownorthwind_Database_fieldAccessorTable;
  62. }
  63. // repeated .slownorthwind.Order Orders = 1;
  64. private java.util.List<slownorthwind.Slownwind.Order> orders_ =
  65. java.util.Collections.emptyList();
  66. public java.util.List<slownorthwind.Slownwind.Order> getOrdersList() {
  67. return orders_;
  68. }
  69. public int getOrdersCount() { return orders_.size(); }
  70. public slownorthwind.Slownwind.Order getOrders(int index) {
  71. return orders_.get(index);
  72. }
  73. public static slownorthwind.Slownwind.Database parseFrom(
  74. com.google.protobuf.ByteString data)
  75. throws com.google.protobuf.InvalidProtocolBufferException {
  76. return newBuilder().mergeFrom(data).buildParsed();
  77. }
  78. public static slownorthwind.Slownwind.Database parseFrom(
  79. com.google.protobuf.ByteString data,
  80. com.google.protobuf.ExtensionRegistry extensionRegistry)
  81. throws com.google.protobuf.InvalidProtocolBufferException {
  82. return newBuilder().mergeFrom(data, extensionRegistry)
  83. .buildParsed();
  84. }
  85. public static slownorthwind.Slownwind.Database parseFrom(byte[] data)
  86. throws com.google.protobuf.InvalidProtocolBufferException {
  87. return newBuilder().mergeFrom(data).buildParsed();
  88. }
  89. public static slownorthwind.Slownwind.Database parseFrom(
  90. byte[] data,
  91. com.google.protobuf.ExtensionRegistry extensionRegistry)
  92. throws com.google.protobuf.InvalidProtocolBufferException {
  93. return newBuilder().mergeFrom(data, extensionRegistry)
  94. .buildParsed();
  95. }
  96. public static slownorthwind.Slownwind.Database parseFrom(java.io.InputStream input)
  97. throws java.io.IOException {
  98. return newBuilder().mergeFrom(input).buildParsed();
  99. }
  100. public static slownorthwind.Slownwind.Database parseFrom(
  101. java.io.InputStream input,
  102. com.google.protobuf.ExtensionRegistry extensionRegistry)
  103. throws java.io.IOException {
  104. return newBuilder().mergeFrom(input, extensionRegistry)
  105. .buildParsed();
  106. }
  107. public static slownorthwind.Slownwind.Database parseFrom(
  108. com.google.protobuf.CodedInputStream input)
  109. throws java.io.IOException {
  110. return newBuilder().mergeFrom(input).buildParsed();
  111. }
  112. public static slownorthwind.Slownwind.Database parseFrom(
  113. com.google.protobuf.CodedInputStream input,
  114. com.google.protobuf.ExtensionRegistry extensionRegistry)
  115. throws java.io.IOException {
  116. return newBuilder().mergeFrom(input, extensionRegistry)
  117. .buildParsed();
  118. }
  119. public static Builder newBuilder() { return new Builder(); }
  120. public Builder newBuilderForType() { return new Builder(); }
  121. public static Builder newBuilder(slownorthwind.Slownwind.Database prototype) {
  122. return new Builder().mergeFrom(prototype);
  123. }
  124. public static final class Builder extends
  125. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  126. // Construct using slownorthwind.Slownwind.Database.newBuilder()
  127. private Builder() {}
  128. slownorthwind.Slownwind.Database result = new slownorthwind.Slownwind.Database();
  129. protected slownorthwind.Slownwind.Database internalGetResult() {
  130. return result;
  131. }
  132. public Builder clear() {
  133. result = new slownorthwind.Slownwind.Database();
  134. return this;
  135. }
  136. public Builder clone() {
  137. return new Builder().mergeFrom(result);
  138. }
  139. public com.google.protobuf.Descriptors.Descriptor
  140. getDescriptorForType() {
  141. return slownorthwind.Slownwind.Database.getDescriptor();
  142. }
  143. public slownorthwind.Slownwind.Database getDefaultInstanceForType() {
  144. return slownorthwind.Slownwind.Database.getDefaultInstance();
  145. }
  146. public slownorthwind.Slownwind.Database build() {
  147. if (!isInitialized()) {
  148. throw new com.google.protobuf.UninitializedMessageException(
  149. result);
  150. }
  151. return buildPartial();
  152. }
  153. private slownorthwind.Slownwind.Database buildParsed()
  154. throws com.google.protobuf.InvalidProtocolBufferException {
  155. if (!isInitialized()) {
  156. throw new com.google.protobuf.UninitializedMessageException(
  157. result).asInvalidProtocolBufferException();
  158. }
  159. return buildPartial();
  160. }
  161. public slownorthwind.Slownwind.Database buildPartial() {
  162. if (result.orders_ != java.util.Collections.EMPTY_LIST) {
  163. result.orders_ =
  164. java.util.Collections.unmodifiableList(result.orders_);
  165. }
  166. slownorthwind.Slownwind.Database returnMe = result;
  167. result = null;
  168. return returnMe;
  169. }
  170. // repeated .slownorthwind.Order Orders = 1;
  171. public java.util.List<slownorthwind.Slownwind.Order> getOrdersList() {
  172. return java.util.Collections.unmodifiableList(result.orders_);
  173. }
  174. public int getOrdersCount() {
  175. return result.getOrdersCount();
  176. }
  177. public slownorthwind.Slownwind.Order getOrders(int index) {
  178. return result.getOrders(index);
  179. }
  180. public Builder setOrders(int index, slownorthwind.Slownwind.Order value) {
  181. result.orders_.set(index, value);
  182. return this;
  183. }
  184. public Builder setOrders(int index, slownorthwind.Slownwind.Order.Builder builderForValue) {
  185. result.orders_.set(index, builderForValue.build());
  186. return this;
  187. }
  188. public Builder addOrders(slownorthwind.Slownwind.Order value) {
  189. if (result.orders_.isEmpty()) {
  190. result.orders_ = new java.util.ArrayList<slownorthwind.Slownwind.Order>();
  191. }
  192. result.orders_.add(value);
  193. return this;
  194. }
  195. public Builder addOrders(slownorthwind.Slownwind.Order.Builder builderForValue) {
  196. if (result.orders_.isEmpty()) {
  197. result.orders_ = new java.util.ArrayList<slownorthwind.Slownwind.Order>();
  198. }
  199. result.orders_.add(builderForValue.build());
  200. return this;
  201. }
  202. public Builder addAllOrders(
  203. java.lang.Iterable<? extends slownorthwind.Slownwind.Order> values) {
  204. if (result.orders_.isEmpty()) {
  205. result.orders_ = new java.util.ArrayList<slownorthwind.Slownwind.Order>();
  206. }
  207. super.addAll(values, result.orders_);
  208. return this;
  209. }
  210. public Builder clearOrders() {
  211. result.orders_ = java.util.Collections.emptyList();
  212. return this;
  213. }
  214. }
  215. }
  216. public static final class Order extends
  217. com.google.protobuf.GeneratedMessage {
  218. // Use Order.newBuilder() to construct.
  219. private Order() {}
  220. private static final Order defaultInstance = new Order();
  221. public static Order getDefaultInstance() {
  222. return defaultInstance;
  223. }
  224. public Order getDefaultInstanceForType() {
  225. return defaultInstance;
  226. }
  227. public static final com.google.protobuf.Descriptors.Descriptor
  228. getDescriptor() {
  229. return slownorthwind.Slownwind.internal_static_slownorthwind_Order_descriptor;
  230. }
  231. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  232. internalGetFieldAccessorTable() {
  233. return slownorthwind.Slownwind.internal_static_slownorthwind_Order_fieldAccessorTable;
  234. }
  235. // optional int32 OrderID = 1;
  236. private boolean hasOrderID;
  237. private int orderID_ = 0;
  238. public boolean hasOrderID() { return hasOrderID; }
  239. public int getOrderID() { return orderID_; }
  240. // optional string CustomerID = 2;
  241. private boolean hasCustomerID;
  242. private java.lang.String customerID_ = "";
  243. public boolean hasCustomerID() { return hasCustomerID; }
  244. public java.lang.String getCustomerID() { return customerID_; }
  245. // optional int32 EmployeeID = 3;
  246. private boolean hasEmployeeID;
  247. private int employeeID_ = 0;
  248. public boolean hasEmployeeID() { return hasEmployeeID; }
  249. public int getEmployeeID() { return employeeID_; }
  250. // optional .slowbcl.DateTime OrderDate = 4;
  251. private boolean hasOrderDate;
  252. private slowbcl.Slowbcl.DateTime orderDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
  253. public boolean hasOrderDate() { return hasOrderDate; }
  254. public slowbcl.Slowbcl.DateTime getOrderDate() { return orderDate_; }
  255. // optional .slowbcl.DateTime RequiredDate = 5;
  256. private boolean hasRequiredDate;
  257. private slowbcl.Slowbcl.DateTime requiredDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
  258. public boolean hasRequiredDate() { return hasRequiredDate; }
  259. public slowbcl.Slowbcl.DateTime getRequiredDate() { return requiredDate_; }
  260. // optional .slowbcl.DateTime ShippedDate = 6;
  261. private boolean hasShippedDate;
  262. private slowbcl.Slowbcl.DateTime shippedDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
  263. public boolean hasShippedDate() { return hasShippedDate; }
  264. public slowbcl.Slowbcl.DateTime getShippedDate() { return shippedDate_; }
  265. // optional int32 ShipVia = 7;
  266. private boolean hasShipVia;
  267. private int shipVia_ = 0;
  268. public boolean hasShipVia() { return hasShipVia; }
  269. public int getShipVia() { return shipVia_; }
  270. // optional .slowbcl.Decimal Freight = 8;
  271. private boolean hasFreight;
  272. private slowbcl.Slowbcl.Decimal freight_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
  273. public boolean hasFreight() { return hasFreight; }
  274. public slowbcl.Slowbcl.Decimal getFreight() { return freight_; }
  275. // optional string ShipName = 9;
  276. private boolean hasShipName;
  277. private java.lang.String shipName_ = "";
  278. public boolean hasShipName() { return hasShipName; }
  279. public java.lang.String getShipName() { return shipName_; }
  280. // optional string ShipAddress = 10;
  281. private boolean hasShipAddress;
  282. private java.lang.String shipAddress_ = "";
  283. public boolean hasShipAddress() { return hasShipAddress; }
  284. public java.lang.String getShipAddress() { return shipAddress_; }
  285. // optional string ShipCity = 11;
  286. private boolean hasShipCity;
  287. private java.lang.String shipCity_ = "";
  288. public boolean hasShipCity() { return hasShipCity; }
  289. public java.lang.String getShipCity() { return shipCity_; }
  290. // optional string ShipRegion = 12;
  291. private boolean hasShipRegion;
  292. private java.lang.String shipRegion_ = "";
  293. public boolean hasShipRegion() { return hasShipRegion; }
  294. public java.lang.String getShipRegion() { return shipRegion_; }
  295. // optional string ShipPostalCode = 13;
  296. private boolean hasShipPostalCode;
  297. private java.lang.String shipPostalCode_ = "";
  298. public boolean hasShipPostalCode() { return hasShipPostalCode; }
  299. public java.lang.String getShipPostalCode() { return shipPostalCode_; }
  300. // optional string ShipCountry = 14;
  301. private boolean hasShipCountry;
  302. private java.lang.String shipCountry_ = "";
  303. public boolean hasShipCountry() { return hasShipCountry; }
  304. public java.lang.String getShipCountry() { return shipCountry_; }
  305. // repeated .slownorthwind.OrderLine Lines = 15;
  306. private java.util.List<slownorthwind.Slownwind.OrderLine> lines_ =
  307. java.util.Collections.emptyList();
  308. public java.util.List<slownorthwind.Slownwind.OrderLine> getLinesList() {
  309. return lines_;
  310. }
  311. public int getLinesCount() { return lines_.size(); }
  312. public slownorthwind.Slownwind.OrderLine getLines(int index) {
  313. return lines_.get(index);
  314. }
  315. public static slownorthwind.Slownwind.Order parseFrom(
  316. com.google.protobuf.ByteString data)
  317. throws com.google.protobuf.InvalidProtocolBufferException {
  318. return newBuilder().mergeFrom(data).buildParsed();
  319. }
  320. public static slownorthwind.Slownwind.Order parseFrom(
  321. com.google.protobuf.ByteString data,
  322. com.google.protobuf.ExtensionRegistry extensionRegistry)
  323. throws com.google.protobuf.InvalidProtocolBufferException {
  324. return newBuilder().mergeFrom(data, extensionRegistry)
  325. .buildParsed();
  326. }
  327. public static slownorthwind.Slownwind.Order parseFrom(byte[] data)
  328. throws com.google.protobuf.InvalidProtocolBufferException {
  329. return newBuilder().mergeFrom(data).buildParsed();
  330. }
  331. public static slownorthwind.Slownwind.Order parseFrom(
  332. byte[] data,
  333. com.google.protobuf.ExtensionRegistry extensionRegistry)
  334. throws com.google.protobuf.InvalidProtocolBufferException {
  335. return newBuilder().mergeFrom(data, extensionRegistry)
  336. .buildParsed();
  337. }
  338. public static slownorthwind.Slownwind.Order parseFrom(java.io.InputStream input)
  339. throws java.io.IOException {
  340. return newBuilder().mergeFrom(input).buildParsed();
  341. }
  342. public static slownorthwind.Slownwind.Order parseFrom(
  343. java.io.InputStream input,
  344. com.google.protobuf.ExtensionRegistry extensionRegistry)
  345. throws java.io.IOException {
  346. return newBuilder().mergeFrom(input, extensionRegistry)
  347. .buildParsed();
  348. }
  349. public static slownorthwind.Slownwind.Order parseFrom(
  350. com.google.protobuf.CodedInputStream input)
  351. throws java.io.IOException {
  352. return newBuilder().mergeFrom(input).buildParsed();
  353. }
  354. public static slownorthwind.Slownwind.Order parseFrom(
  355. com.google.protobuf.CodedInputStream input,
  356. com.google.protobuf.ExtensionRegistry extensionRegistry)
  357. throws java.io.IOException {
  358. return newBuilder().mergeFrom(input, extensionRegistry)
  359. .buildParsed();
  360. }
  361. public static Builder newBuilder() { return new Builder(); }
  362. public Builder newBuilderForType() { return new Builder(); }
  363. public static Builder newBuilder(slownorthwind.Slownwind.Order prototype) {
  364. return new Builder().mergeFrom(prototype);
  365. }
  366. public static final class Builder extends
  367. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  368. // Construct using slownorthwind.Slownwind.Order.newBuilder()
  369. private Builder() {}
  370. slownorthwind.Slownwind.Order result = new slownorthwind.Slownwind.Order();
  371. protected slownorthwind.Slownwind.Order internalGetResult() {
  372. return result;
  373. }
  374. public Builder clear() {
  375. result = new slownorthwind.Slownwind.Order();
  376. return this;
  377. }
  378. public Builder clone() {
  379. return new Builder().mergeFrom(result);
  380. }
  381. public com.google.protobuf.Descriptors.Descriptor
  382. getDescriptorForType() {
  383. return slownorthwind.Slownwind.Order.getDescriptor();
  384. }
  385. public slownorthwind.Slownwind.Order getDefaultInstanceForType() {
  386. return slownorthwind.Slownwind.Order.getDefaultInstance();
  387. }
  388. public slownorthwind.Slownwind.Order build() {
  389. if (!isInitialized()) {
  390. throw new com.google.protobuf.UninitializedMessageException(
  391. result);
  392. }
  393. return buildPartial();
  394. }
  395. private slownorthwind.Slownwind.Order buildParsed()
  396. throws com.google.protobuf.InvalidProtocolBufferException {
  397. if (!isInitialized()) {
  398. throw new com.google.protobuf.UninitializedMessageException(
  399. result).asInvalidProtocolBufferException();
  400. }
  401. return buildPartial();
  402. }
  403. public slownorthwind.Slownwind.Order buildPartial() {
  404. if (result.lines_ != java.util.Collections.EMPTY_LIST) {
  405. result.lines_ =
  406. java.util.Collections.unmodifiableList(result.lines_);
  407. }
  408. slownorthwind.Slownwind.Order returnMe = result;
  409. result = null;
  410. return returnMe;
  411. }
  412. // optional int32 OrderID = 1;
  413. public boolean hasOrderID() {
  414. return result.hasOrderID();
  415. }
  416. public int getOrderID() {
  417. return result.getOrderID();
  418. }
  419. public Builder setOrderID(int value) {
  420. result.hasOrderID = true;
  421. result.orderID_ = value;
  422. return this;
  423. }
  424. public Builder clearOrderID() {
  425. result.hasOrderID = false;
  426. result.orderID_ = 0;
  427. return this;
  428. }
  429. // optional string CustomerID = 2;
  430. public boolean hasCustomerID() {
  431. return result.hasCustomerID();
  432. }
  433. public java.lang.String getCustomerID() {
  434. return result.getCustomerID();
  435. }
  436. public Builder setCustomerID(java.lang.String value) {
  437. result.hasCustomerID = true;
  438. result.customerID_ = value;
  439. return this;
  440. }
  441. public Builder clearCustomerID() {
  442. result.hasCustomerID = false;
  443. result.customerID_ = "";
  444. return this;
  445. }
  446. // optional int32 EmployeeID = 3;
  447. public boolean hasEmployeeID() {
  448. return result.hasEmployeeID();
  449. }
  450. public int getEmployeeID() {
  451. return result.getEmployeeID();
  452. }
  453. public Builder setEmployeeID(int value) {
  454. result.hasEmployeeID = true;
  455. result.employeeID_ = value;
  456. return this;
  457. }
  458. public Builder clearEmployeeID() {
  459. result.hasEmployeeID = false;
  460. result.employeeID_ = 0;
  461. return this;
  462. }
  463. // optional .slowbcl.DateTime OrderDate = 4;
  464. public boolean hasOrderDate() {
  465. return result.hasOrderDate();
  466. }
  467. public slowbcl.Slowbcl.DateTime getOrderDate() {
  468. return result.getOrderDate();
  469. }
  470. public Builder setOrderDate(slowbcl.Slowbcl.DateTime value) {
  471. result.hasOrderDate = true;
  472. result.orderDate_ = value;
  473. return this;
  474. }
  475. public Builder setOrderDate(slowbcl.Slowbcl.DateTime.Builder builderForValue) {
  476. result.hasOrderDate = true;
  477. result.orderDate_ = builderForValue.build();
  478. return this;
  479. }
  480. public Builder mergeOrderDate(slowbcl.Slowbcl.DateTime value) {
  481. if (result.hasOrderDate() &&
  482. result.orderDate_ != slowbcl.Slowbcl.DateTime.getDefaultInstance()) {
  483. result.orderDate_ =
  484. slowbcl.Slowbcl.DateTime.newBuilder(result.orderDate_).mergeFrom(value).buildPartial();
  485. } else {
  486. result.orderDate_ = value;
  487. }
  488. result.hasOrderDate = true;
  489. return this;
  490. }
  491. public Builder clearOrderDate() {
  492. result.hasOrderDate = false;
  493. result.orderDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
  494. return this;
  495. }
  496. // optional .slowbcl.DateTime RequiredDate = 5;
  497. public boolean hasRequiredDate() {
  498. return result.hasRequiredDate();
  499. }
  500. public slowbcl.Slowbcl.DateTime getRequiredDate() {
  501. return result.getRequiredDate();
  502. }
  503. public Builder setRequiredDate(slowbcl.Slowbcl.DateTime value) {
  504. result.hasRequiredDate = true;
  505. result.requiredDate_ = value;
  506. return this;
  507. }
  508. public Builder setRequiredDate(slowbcl.Slowbcl.DateTime.Builder builderForValue) {
  509. result.hasRequiredDate = true;
  510. result.requiredDate_ = builderForValue.build();
  511. return this;
  512. }
  513. public Builder mergeRequiredDate(slowbcl.Slowbcl.DateTime value) {
  514. if (result.hasRequiredDate() &&
  515. result.requiredDate_ != slowbcl.Slowbcl.DateTime.getDefaultInstance()) {
  516. result.requiredDate_ =
  517. slowbcl.Slowbcl.DateTime.newBuilder(result.requiredDate_).mergeFrom(value).buildPartial();
  518. } else {
  519. result.requiredDate_ = value;
  520. }
  521. result.hasRequiredDate = true;
  522. return this;
  523. }
  524. public Builder clearRequiredDate() {
  525. result.hasRequiredDate = false;
  526. result.requiredDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
  527. return this;
  528. }
  529. // optional .slowbcl.DateTime ShippedDate = 6;
  530. public boolean hasShippedDate() {
  531. return result.hasShippedDate();
  532. }
  533. public slowbcl.Slowbcl.DateTime getShippedDate() {
  534. return result.getShippedDate();
  535. }
  536. public Builder setShippedDate(slowbcl.Slowbcl.DateTime value) {
  537. result.hasShippedDate = true;
  538. result.shippedDate_ = value;
  539. return this;
  540. }
  541. public Builder setShippedDate(slowbcl.Slowbcl.DateTime.Builder builderForValue) {
  542. result.hasShippedDate = true;
  543. result.shippedDate_ = builderForValue.build();
  544. return this;
  545. }
  546. public Builder mergeShippedDate(slowbcl.Slowbcl.DateTime value) {
  547. if (result.hasShippedDate() &&
  548. result.shippedDate_ != slowbcl.Slowbcl.DateTime.getDefaultInstance()) {
  549. result.shippedDate_ =
  550. slowbcl.Slowbcl.DateTime.newBuilder(result.shippedDate_).mergeFrom(value).buildPartial();
  551. } else {
  552. result.shippedDate_ = value;
  553. }
  554. result.hasShippedDate = true;
  555. return this;
  556. }
  557. public Builder clearShippedDate() {
  558. result.hasShippedDate = false;
  559. result.shippedDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
  560. return this;
  561. }
  562. // optional int32 ShipVia = 7;
  563. public boolean hasShipVia() {
  564. return result.hasShipVia();
  565. }
  566. public int getShipVia() {
  567. return result.getShipVia();
  568. }
  569. public Builder setShipVia(int value) {
  570. result.hasShipVia = true;
  571. result.shipVia_ = value;
  572. return this;
  573. }
  574. public Builder clearShipVia() {
  575. result.hasShipVia = false;
  576. result.shipVia_ = 0;
  577. return this;
  578. }
  579. // optional .slowbcl.Decimal Freight = 8;
  580. public boolean hasFreight() {
  581. return result.hasFreight();
  582. }
  583. public slowbcl.Slowbcl.Decimal getFreight() {
  584. return result.getFreight();
  585. }
  586. public Builder setFreight(slowbcl.Slowbcl.Decimal value) {
  587. result.hasFreight = true;
  588. result.freight_ = value;
  589. return this;
  590. }
  591. public Builder setFreight(slowbcl.Slowbcl.Decimal.Builder builderForValue) {
  592. result.hasFreight = true;
  593. result.freight_ = builderForValue.build();
  594. return this;
  595. }
  596. public Builder mergeFreight(slowbcl.Slowbcl.Decimal value) {
  597. if (result.hasFreight() &&
  598. result.freight_ != slowbcl.Slowbcl.Decimal.getDefaultInstance()) {
  599. result.freight_ =
  600. slowbcl.Slowbcl.Decimal.newBuilder(result.freight_).mergeFrom(value).buildPartial();
  601. } else {
  602. result.freight_ = value;
  603. }
  604. result.hasFreight = true;
  605. return this;
  606. }
  607. public Builder clearFreight() {
  608. result.hasFreight = false;
  609. result.freight_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
  610. return this;
  611. }
  612. // optional string ShipName = 9;
  613. public boolean hasShipName() {
  614. return result.hasShipName();
  615. }
  616. public java.lang.String getShipName() {
  617. return result.getShipName();
  618. }
  619. public Builder setShipName(java.lang.String value) {
  620. result.hasShipName = true;
  621. result.shipName_ = value;
  622. return this;
  623. }
  624. public Builder clearShipName() {
  625. result.hasShipName = false;
  626. result.shipName_ = "";
  627. return this;
  628. }
  629. // optional string ShipAddress = 10;
  630. public boolean hasShipAddress() {
  631. return result.hasShipAddress();
  632. }
  633. public java.lang.String getShipAddress() {
  634. return result.getShipAddress();
  635. }
  636. public Builder setShipAddress(java.lang.String value) {
  637. result.hasShipAddress = true;
  638. result.shipAddress_ = value;
  639. return this;
  640. }
  641. public Builder clearShipAddress() {
  642. result.hasShipAddress = false;
  643. result.shipAddress_ = "";
  644. return this;
  645. }
  646. // optional string ShipCity = 11;
  647. public boolean hasShipCity() {
  648. return result.hasShipCity();
  649. }
  650. public java.lang.String getShipCity() {
  651. return result.getShipCity();
  652. }
  653. public Builder setShipCity(java.lang.String value) {
  654. result.hasShipCity = true;
  655. result.shipCity_ = value;
  656. return this;
  657. }
  658. public Builder clearShipCity() {
  659. result.hasShipCity = false;
  660. result.shipCity_ = "";
  661. return this;
  662. }
  663. // optional string ShipRegion = 12;
  664. public boolean hasShipRegion() {
  665. return result.hasShipRegion();
  666. }
  667. public java.lang.String getShipRegion() {
  668. return result.getShipRegion();
  669. }
  670. public Builder setShipRegion(java.lang.String value) {
  671. result.hasShipRegion = true;
  672. result.shipRegion_ = value;
  673. return this;
  674. }
  675. public Builder clearShipRegion() {
  676. result.hasShipRegion = false;
  677. result.shipRegion_ = "";
  678. return this;
  679. }
  680. // optional string ShipPostalCode = 13;
  681. public boolean hasShipPostalCode() {
  682. return result.hasShipPostalCode();
  683. }
  684. public java.lang.String getShipPostalCode() {
  685. return result.getShipPostalCode();
  686. }
  687. public Builder setShipPostalCode(java.lang.String value) {
  688. result.hasShipPostalCode = true;
  689. result.shipPostalCode_ = value;
  690. return this;
  691. }
  692. public Builder clearShipPostalCode() {
  693. result.hasShipPostalCode = false;
  694. result.shipPostalCode_ = "";
  695. return this;
  696. }
  697. // optional string ShipCountry = 14;
  698. public boolean hasShipCountry() {
  699. return result.hasShipCountry();
  700. }
  701. public java.lang.String getShipCountry() {
  702. return result.getShipCountry();
  703. }
  704. public Builder setShipCountry(java.lang.String value) {
  705. result.hasShipCountry = true;
  706. result.shipCountry_ = value;
  707. return this;
  708. }
  709. public Builder clearShipCountry() {
  710. result.hasShipCountry = false;
  711. result.shipCountry_ = "";
  712. return this;
  713. }
  714. // repeated .slownorthwind.OrderLine Lines = 15;
  715. public java.util.List<slownorthwind.Slownwind.OrderLine> getLinesList() {
  716. return java.util.Collections.unmodifiableList(result.lines_);
  717. }
  718. public int getLinesCount() {
  719. return result.getLinesCount();
  720. }
  721. public slownorthwind.Slownwind.OrderLine getLines(int index) {
  722. return result.getLines(index);
  723. }
  724. public Builder setLines(int index, slownorthwind.Slownwind.OrderLine value) {
  725. result.lines_.set(index, value);
  726. return this;
  727. }
  728. public Builder setLines(int index, slownorthwind.Slownwind.OrderLine.Builder builderForValue) {
  729. result.lines_.set(index, builderForValue.build());
  730. return this;
  731. }
  732. public Builder addLines(slownorthwind.Slownwind.OrderLine value) {
  733. if (result.lines_.isEmpty()) {
  734. result.lines_ = new java.util.ArrayList<slownorthwind.Slownwind.OrderLine>();
  735. }
  736. result.lines_.add(value);
  737. return this;
  738. }
  739. public Builder addLines(slownorthwind.Slownwind.OrderLine.Builder builderForValue) {
  740. if (result.lines_.isEmpty()) {
  741. result.lines_ = new java.util.ArrayList<slownorthwind.Slownwind.OrderLine>();
  742. }
  743. result.lines_.add(builderForValue.build());
  744. return this;
  745. }
  746. public Builder addAllLines(
  747. java.lang.Iterable<? extends slownorthwind.Slownwind.OrderLine> values) {
  748. if (result.lines_.isEmpty()) {
  749. result.lines_ = new java.util.ArrayList<slownorthwind.Slownwind.OrderLine>();
  750. }
  751. super.addAll(values, result.lines_);
  752. return this;
  753. }
  754. public Builder clearLines() {
  755. result.lines_ = java.util.Collections.emptyList();
  756. return this;
  757. }
  758. }
  759. }
  760. public static final class OrderLine extends
  761. com.google.protobuf.GeneratedMessage {
  762. // Use OrderLine.newBuilder() to construct.
  763. private OrderLine() {}
  764. private static final OrderLine defaultInstance = new OrderLine();
  765. public static OrderLine getDefaultInstance() {
  766. return defaultInstance;
  767. }
  768. public OrderLine getDefaultInstanceForType() {
  769. return defaultInstance;
  770. }
  771. public static final com.google.protobuf.Descriptors.Descriptor
  772. getDescriptor() {
  773. return slownorthwind.Slownwind.internal_static_slownorthwind_OrderLine_descriptor;
  774. }
  775. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  776. internalGetFieldAccessorTable() {
  777. return slownorthwind.Slownwind.internal_static_slownorthwind_OrderLine_fieldAccessorTable;
  778. }
  779. // optional int32 OrderID = 1;
  780. private boolean hasOrderID;
  781. private int orderID_ = 0;
  782. public boolean hasOrderID() { return hasOrderID; }
  783. public int getOrderID() { return orderID_; }
  784. // optional int32 ProductID = 2;
  785. private boolean hasProductID;
  786. private int productID_ = 0;
  787. public boolean hasProductID() { return hasProductID; }
  788. public int getProductID() { return productID_; }
  789. // optional .slowbcl.Decimal UnitPrice = 3;
  790. private boolean hasUnitPrice;
  791. private slowbcl.Slowbcl.Decimal unitPrice_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
  792. public boolean hasUnitPrice() { return hasUnitPrice; }
  793. public slowbcl.Slowbcl.Decimal getUnitPrice() { return unitPrice_; }
  794. // optional sint32 Quantity = 4;
  795. private boolean hasQuantity;
  796. private int quantity_ = 0;
  797. public boolean hasQuantity() { return hasQuantity; }
  798. public int getQuantity() { return quantity_; }
  799. // optional float Discount = 5;
  800. private boolean hasDiscount;
  801. private float discount_ = 0F;
  802. public boolean hasDiscount() { return hasDiscount; }
  803. public float getDiscount() { return discount_; }
  804. public static slownorthwind.Slownwind.OrderLine parseFrom(
  805. com.google.protobuf.ByteString data)
  806. throws com.google.protobuf.InvalidProtocolBufferException {
  807. return newBuilder().mergeFrom(data).buildParsed();
  808. }
  809. public static slownorthwind.Slownwind.OrderLine parseFrom(
  810. com.google.protobuf.ByteString data,
  811. com.google.protobuf.ExtensionRegistry extensionRegistry)
  812. throws com.google.protobuf.InvalidProtocolBufferException {
  813. return newBuilder().mergeFrom(data, extensionRegistry)
  814. .buildParsed();
  815. }
  816. public static slownorthwind.Slownwind.OrderLine parseFrom(byte[] data)
  817. throws com.google.protobuf.InvalidProtocolBufferException {
  818. return newBuilder().mergeFrom(data).buildParsed();
  819. }
  820. public static slownorthwind.Slownwind.OrderLine parseFrom(
  821. byte[] data,
  822. com.google.protobuf.ExtensionRegistry extensionRegistry)
  823. throws com.google.protobuf.InvalidProtocolBufferException {
  824. return newBuilder().mergeFrom(data, extensionRegistry)
  825. .buildParsed();
  826. }
  827. public static slownorthwind.Slownwind.OrderLine parseFrom(java.io.InputStream input)
  828. throws java.io.IOException {
  829. return newBuilder().mergeFrom(input).buildParsed();
  830. }
  831. public static slownorthwind.Slownwind.OrderLine parseFrom(
  832. java.io.InputStream input,
  833. com.google.protobuf.ExtensionRegistry extensionRegistry)
  834. throws java.io.IOException {
  835. return newBuilder().mergeFrom(input, extensionRegistry)
  836. .buildParsed();
  837. }
  838. public static slownorthwind.Slownwind.OrderLine parseFrom(
  839. com.google.protobuf.CodedInputStream input)
  840. throws java.io.IOException {
  841. return newBuilder().mergeFrom(input).buildParsed();
  842. }
  843. public static slownorthwind.Slownwind.OrderLine parseFrom(
  844. com.google.protobuf.CodedInputStream input,
  845. com.google.protobuf.ExtensionRegistry extensionRegistry)
  846. throws java.io.IOException {
  847. return newBuilder().mergeFrom(input, extensionRegistry)
  848. .buildParsed();
  849. }
  850. public static Builder newBuilder() { return new Builder(); }
  851. public Builder newBuilderForType() { return new Builder(); }
  852. public static Builder newBuilder(slownorthwind.Slownwind.OrderLine prototype) {
  853. return new Builder().mergeFrom(prototype);
  854. }
  855. public static final class Builder extends
  856. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  857. // Construct using slownorthwind.Slownwind.OrderLine.newBuilder()
  858. private Builder() {}
  859. slownorthwind.Slownwind.OrderLine result = new slownorthwind.Slownwind.OrderLine();
  860. protected slownorthwind.Slownwind.OrderLine internalGetResult() {
  861. return result;
  862. }
  863. public Builder clear() {
  864. result = new slownorthwind.Slownwind.OrderLine();
  865. return this;
  866. }
  867. public Builder clone() {
  868. return new Builder().mergeFrom(result);
  869. }
  870. public com.google.protobuf.Descriptors.Descriptor
  871. getDescriptorForType() {
  872. return slownorthwind.Slownwind.OrderLine.getDescriptor();
  873. }
  874. public slownorthwind.Slownwind.OrderLine getDefaultInstanceForType() {
  875. return slownorthwind.Slownwind.OrderLine.getDefaultInstance();
  876. }
  877. public slownorthwind.Slownwind.OrderLine build() {
  878. if (!isInitialized()) {
  879. throw new com.google.protobuf.UninitializedMessageException(
  880. result);
  881. }
  882. return buildPartial();
  883. }
  884. private slownorthwind.Slownwind.OrderLine buildParsed()
  885. throws com.google.protobuf.InvalidProtocolBufferException {
  886. if (!isInitialized()) {
  887. throw new com.google.protobuf.UninitializedMessageException(
  888. result).asInvalidProtocolBufferException();
  889. }
  890. return buildPartial();
  891. }
  892. public slownorthwind.Slownwind.OrderLine buildPartial() {
  893. slownorthwind.Slownwind.OrderLine returnMe = result;
  894. result = null;
  895. return returnMe;
  896. }
  897. // optional int32 OrderID = 1;
  898. public boolean hasOrderID() {
  899. return result.hasOrderID();
  900. }
  901. public int getOrderID() {
  902. return result.getOrderID();
  903. }
  904. public Builder setOrderID(int value) {
  905. result.hasOrderID = true;
  906. result.orderID_ = value;
  907. return this;
  908. }
  909. public Builder clearOrderID() {
  910. result.hasOrderID = false;
  911. result.orderID_ = 0;
  912. return this;
  913. }
  914. // optional int32 ProductID = 2;
  915. public boolean hasProductID() {
  916. return result.hasProductID();
  917. }
  918. public int getProductID() {
  919. return result.getProductID();
  920. }
  921. public Builder setProductID(int value) {
  922. result.hasProductID = true;
  923. result.productID_ = value;
  924. return this;
  925. }
  926. public Builder clearProductID() {
  927. result.hasProductID = false;
  928. result.productID_ = 0;
  929. return this;
  930. }
  931. // optional .slowbcl.Decimal UnitPrice = 3;
  932. public boolean hasUnitPrice() {
  933. return result.hasUnitPrice();
  934. }
  935. public slowbcl.Slowbcl.Decimal getUnitPrice() {
  936. return result.getUnitPrice();
  937. }
  938. public Builder setUnitPrice(slowbcl.Slowbcl.Decimal value) {
  939. result.hasUnitPrice = true;
  940. result.unitPrice_ = value;
  941. return this;
  942. }
  943. public Builder setUnitPrice(slowbcl.Slowbcl.Decimal.Builder builderForValue) {
  944. result.hasUnitPrice = true;
  945. result.unitPrice_ = builderForValue.build();
  946. return this;
  947. }
  948. public Builder mergeUnitPrice(slowbcl.Slowbcl.Decimal value) {
  949. if (result.hasUnitPrice() &&
  950. result.unitPrice_ != slowbcl.Slowbcl.Decimal.getDefaultInstance()) {
  951. result.unitPrice_ =
  952. slowbcl.Slowbcl.Decimal.newBuilder(result.unitPrice_).mergeFrom(value).buildPartial();
  953. } else {
  954. result.unitPrice_ = value;
  955. }
  956. result.hasUnitPrice = true;
  957. return this;
  958. }
  959. public Builder clearUnitPrice() {
  960. result.hasUnitPrice = false;
  961. result.unitPrice_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
  962. return this;
  963. }
  964. // optional sint32 Quantity = 4;
  965. public boolean hasQuantity() {
  966. return result.hasQuantity();
  967. }
  968. public int getQuantity() {
  969. return result.getQuantity();
  970. }
  971. public Builder setQuantity(int value) {
  972. result.hasQuantity = true;
  973. result.quantity_ = value;
  974. return this;
  975. }
  976. public Builder clearQuantity() {
  977. result.hasQuantity = false;
  978. result.quantity_ = 0;
  979. return this;
  980. }
  981. // optional float Discount = 5;
  982. public boolean hasDiscount() {
  983. return result.hasDiscount();
  984. }
  985. public float getDiscount() {
  986. return result.getDiscount();
  987. }
  988. public Builder setDiscount(float value) {
  989. result.hasDiscount = true;
  990. result.discount_ = value;
  991. return this;
  992. }
  993. public Builder clearDiscount() {
  994. result.hasDiscount = false;
  995. result.discount_ = 0F;
  996. return this;
  997. }
  998. }
  999. }
  1000. private static final com.google.protobuf.Descriptors.Descriptor
  1001. internal_static_slownorthwind_Database_descriptor =
  1002. getDescriptor().getMessageTypes().get(0);
  1003. private static
  1004. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1005. internal_static_slownorthwind_Database_fieldAccessorTable = new
  1006. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1007. internal_static_slownorthwind_Database_descriptor,
  1008. new java.lang.String[] { "Orders", },
  1009. slownorthwind.Slownwind.Database.class,
  1010. slownorthwind.Slownwind.Database.Builder.class);
  1011. private static final com.google.protobuf.Descriptors.Descriptor
  1012. internal_static_slownorthwind_Order_descriptor =
  1013. getDescriptor().getMessageTypes().get(1);
  1014. private static
  1015. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1016. internal_static_slownorthwind_Order_fieldAccessorTable = new
  1017. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1018. internal_static_slownorthwind_Order_descriptor,
  1019. new java.lang.String[] { "OrderID", "CustomerID", "EmployeeID", "OrderDate", "RequiredDate", "ShippedDate", "ShipVia", "Freight", "ShipName", "ShipAddress", "ShipCity", "ShipRegion", "ShipPostalCode", "ShipCountry", "Lines", },
  1020. slownorthwind.Slownwind.Order.class,
  1021. slownorthwind.Slownwind.Order.Builder.class);
  1022. private static final com.google.protobuf.Descriptors.Descriptor
  1023. internal_static_slownorthwind_OrderLine_descriptor =
  1024. getDescriptor().getMessageTypes().get(2);
  1025. private static
  1026. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1027. internal_static_slownorthwind_OrderLine_fieldAccessorTable = new
  1028. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1029. internal_static_slownorthwind_OrderLine_descriptor,
  1030. new java.lang.String[] { "OrderID", "ProductID", "UnitPrice", "Quantity", "Discount", },
  1031. slownorthwind.Slownwind.OrderLine.class,
  1032. slownorthwind.Slownwind.OrderLine.Builder.class);
  1033. }