PageRenderTime 64ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/scala/timeseries/trunk/src/main/java/org/iso/nepool/NepoolProto.java

http://findataweb.googlecode.com/
Java | 1851 lines | 1652 code | 138 blank | 61 comment | 272 complexity | 3c2c307d6d9c33c64f6ddd4faed2ba22 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: nepool.proto
  3. package org.iso.nepool;
  4. public final class NepoolProto {
  5. private NepoolProto() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public interface PriceQuantityPairOrBuilder
  10. extends com.google.protobuf.MessageOrBuilder {
  11. // required double price = 1;
  12. boolean hasPrice();
  13. double getPrice();
  14. // required double quantity = 2;
  15. boolean hasQuantity();
  16. double getQuantity();
  17. }
  18. public static final class PriceQuantityPair extends
  19. com.google.protobuf.GeneratedMessage
  20. implements PriceQuantityPairOrBuilder {
  21. // Use PriceQuantityPair.newBuilder() to construct.
  22. private PriceQuantityPair(Builder builder) {
  23. super(builder);
  24. }
  25. private PriceQuantityPair(boolean noInit) {}
  26. private static final PriceQuantityPair defaultInstance;
  27. public static PriceQuantityPair getDefaultInstance() {
  28. return defaultInstance;
  29. }
  30. public PriceQuantityPair getDefaultInstanceForType() {
  31. return defaultInstance;
  32. }
  33. public static final com.google.protobuf.Descriptors.Descriptor
  34. getDescriptor() {
  35. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_descriptor;
  36. }
  37. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  38. internalGetFieldAccessorTable() {
  39. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_fieldAccessorTable;
  40. }
  41. private int bitField0_;
  42. // required double price = 1;
  43. public static final int PRICE_FIELD_NUMBER = 1;
  44. private double price_;
  45. public boolean hasPrice() {
  46. return ((bitField0_ & 0x00000001) == 0x00000001);
  47. }
  48. public double getPrice() {
  49. return price_;
  50. }
  51. // required double quantity = 2;
  52. public static final int QUANTITY_FIELD_NUMBER = 2;
  53. private double quantity_;
  54. public boolean hasQuantity() {
  55. return ((bitField0_ & 0x00000002) == 0x00000002);
  56. }
  57. public double getQuantity() {
  58. return quantity_;
  59. }
  60. private void initFields() {
  61. price_ = 0D;
  62. quantity_ = 0D;
  63. }
  64. private byte memoizedIsInitialized = -1;
  65. public final boolean isInitialized() {
  66. byte isInitialized = memoizedIsInitialized;
  67. if (isInitialized != -1) return isInitialized == 1;
  68. if (!hasPrice()) {
  69. memoizedIsInitialized = 0;
  70. return false;
  71. }
  72. if (!hasQuantity()) {
  73. memoizedIsInitialized = 0;
  74. return false;
  75. }
  76. memoizedIsInitialized = 1;
  77. return true;
  78. }
  79. public void writeTo(com.google.protobuf.CodedOutputStream output)
  80. throws java.io.IOException {
  81. getSerializedSize();
  82. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  83. output.writeDouble(1, price_);
  84. }
  85. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  86. output.writeDouble(2, quantity_);
  87. }
  88. getUnknownFields().writeTo(output);
  89. }
  90. private int memoizedSerializedSize = -1;
  91. public int getSerializedSize() {
  92. int size = memoizedSerializedSize;
  93. if (size != -1) return size;
  94. size = 0;
  95. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  96. size += com.google.protobuf.CodedOutputStream
  97. .computeDoubleSize(1, price_);
  98. }
  99. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  100. size += com.google.protobuf.CodedOutputStream
  101. .computeDoubleSize(2, quantity_);
  102. }
  103. size += getUnknownFields().getSerializedSize();
  104. memoizedSerializedSize = size;
  105. return size;
  106. }
  107. private static final long serialVersionUID = 0L;
  108. @java.lang.Override
  109. protected java.lang.Object writeReplace()
  110. throws java.io.ObjectStreamException {
  111. return super.writeReplace();
  112. }
  113. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
  114. com.google.protobuf.ByteString data)
  115. throws com.google.protobuf.InvalidProtocolBufferException {
  116. return newBuilder().mergeFrom(data).buildParsed();
  117. }
  118. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
  119. com.google.protobuf.ByteString data,
  120. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  121. throws com.google.protobuf.InvalidProtocolBufferException {
  122. return newBuilder().mergeFrom(data, extensionRegistry)
  123. .buildParsed();
  124. }
  125. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(byte[] data)
  126. throws com.google.protobuf.InvalidProtocolBufferException {
  127. return newBuilder().mergeFrom(data).buildParsed();
  128. }
  129. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
  130. byte[] data,
  131. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  132. throws com.google.protobuf.InvalidProtocolBufferException {
  133. return newBuilder().mergeFrom(data, extensionRegistry)
  134. .buildParsed();
  135. }
  136. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(java.io.InputStream input)
  137. throws java.io.IOException {
  138. return newBuilder().mergeFrom(input).buildParsed();
  139. }
  140. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
  141. java.io.InputStream input,
  142. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  143. throws java.io.IOException {
  144. return newBuilder().mergeFrom(input, extensionRegistry)
  145. .buildParsed();
  146. }
  147. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseDelimitedFrom(java.io.InputStream input)
  148. throws java.io.IOException {
  149. Builder builder = newBuilder();
  150. if (builder.mergeDelimitedFrom(input)) {
  151. return builder.buildParsed();
  152. } else {
  153. return null;
  154. }
  155. }
  156. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseDelimitedFrom(
  157. java.io.InputStream input,
  158. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  159. throws java.io.IOException {
  160. Builder builder = newBuilder();
  161. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  162. return builder.buildParsed();
  163. } else {
  164. return null;
  165. }
  166. }
  167. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
  168. com.google.protobuf.CodedInputStream input)
  169. throws java.io.IOException {
  170. return newBuilder().mergeFrom(input).buildParsed();
  171. }
  172. public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
  173. com.google.protobuf.CodedInputStream input,
  174. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  175. throws java.io.IOException {
  176. return newBuilder().mergeFrom(input, extensionRegistry)
  177. .buildParsed();
  178. }
  179. public static Builder newBuilder() { return Builder.create(); }
  180. public Builder newBuilderForType() { return newBuilder(); }
  181. public static Builder newBuilder(org.iso.nepool.NepoolProto.PriceQuantityPair prototype) {
  182. return newBuilder().mergeFrom(prototype);
  183. }
  184. public Builder toBuilder() { return newBuilder(this); }
  185. @java.lang.Override
  186. protected Builder newBuilderForType(
  187. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  188. Builder builder = new Builder(parent);
  189. return builder;
  190. }
  191. public static final class Builder extends
  192. com.google.protobuf.GeneratedMessage.Builder<Builder>
  193. implements org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder {
  194. public static final com.google.protobuf.Descriptors.Descriptor
  195. getDescriptor() {
  196. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_descriptor;
  197. }
  198. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  199. internalGetFieldAccessorTable() {
  200. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_fieldAccessorTable;
  201. }
  202. // Construct using org.iso.nepool.NepoolProto.PriceQuantityPair.newBuilder()
  203. private Builder() {
  204. maybeForceBuilderInitialization();
  205. }
  206. private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  207. super(parent);
  208. maybeForceBuilderInitialization();
  209. }
  210. private void maybeForceBuilderInitialization() {
  211. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  212. }
  213. }
  214. private static Builder create() {
  215. return new Builder();
  216. }
  217. public Builder clear() {
  218. super.clear();
  219. price_ = 0D;
  220. bitField0_ = (bitField0_ & ~0x00000001);
  221. quantity_ = 0D;
  222. bitField0_ = (bitField0_ & ~0x00000002);
  223. return this;
  224. }
  225. public Builder clone() {
  226. return create().mergeFrom(buildPartial());
  227. }
  228. public com.google.protobuf.Descriptors.Descriptor
  229. getDescriptorForType() {
  230. return org.iso.nepool.NepoolProto.PriceQuantityPair.getDescriptor();
  231. }
  232. public org.iso.nepool.NepoolProto.PriceQuantityPair getDefaultInstanceForType() {
  233. return org.iso.nepool.NepoolProto.PriceQuantityPair.getDefaultInstance();
  234. }
  235. public org.iso.nepool.NepoolProto.PriceQuantityPair build() {
  236. org.iso.nepool.NepoolProto.PriceQuantityPair result = buildPartial();
  237. if (!result.isInitialized()) {
  238. throw newUninitializedMessageException(result);
  239. }
  240. return result;
  241. }
  242. private org.iso.nepool.NepoolProto.PriceQuantityPair buildParsed()
  243. throws com.google.protobuf.InvalidProtocolBufferException {
  244. org.iso.nepool.NepoolProto.PriceQuantityPair result = buildPartial();
  245. if (!result.isInitialized()) {
  246. throw newUninitializedMessageException(
  247. result).asInvalidProtocolBufferException();
  248. }
  249. return result;
  250. }
  251. public org.iso.nepool.NepoolProto.PriceQuantityPair buildPartial() {
  252. org.iso.nepool.NepoolProto.PriceQuantityPair result = new org.iso.nepool.NepoolProto.PriceQuantityPair(this);
  253. int from_bitField0_ = bitField0_;
  254. int to_bitField0_ = 0;
  255. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  256. to_bitField0_ |= 0x00000001;
  257. }
  258. result.price_ = price_;
  259. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  260. to_bitField0_ |= 0x00000002;
  261. }
  262. result.quantity_ = quantity_;
  263. result.bitField0_ = to_bitField0_;
  264. onBuilt();
  265. return result;
  266. }
  267. public Builder mergeFrom(com.google.protobuf.Message other) {
  268. if (other instanceof org.iso.nepool.NepoolProto.PriceQuantityPair) {
  269. return mergeFrom((org.iso.nepool.NepoolProto.PriceQuantityPair)other);
  270. } else {
  271. super.mergeFrom(other);
  272. return this;
  273. }
  274. }
  275. public Builder mergeFrom(org.iso.nepool.NepoolProto.PriceQuantityPair other) {
  276. if (other == org.iso.nepool.NepoolProto.PriceQuantityPair.getDefaultInstance()) return this;
  277. if (other.hasPrice()) {
  278. setPrice(other.getPrice());
  279. }
  280. if (other.hasQuantity()) {
  281. setQuantity(other.getQuantity());
  282. }
  283. this.mergeUnknownFields(other.getUnknownFields());
  284. return this;
  285. }
  286. public final boolean isInitialized() {
  287. if (!hasPrice()) {
  288. return false;
  289. }
  290. if (!hasQuantity()) {
  291. return false;
  292. }
  293. return true;
  294. }
  295. public Builder mergeFrom(
  296. com.google.protobuf.CodedInputStream input,
  297. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  298. throws java.io.IOException {
  299. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  300. com.google.protobuf.UnknownFieldSet.newBuilder(
  301. this.getUnknownFields());
  302. while (true) {
  303. int tag = input.readTag();
  304. switch (tag) {
  305. case 0:
  306. this.setUnknownFields(unknownFields.build());
  307. onChanged();
  308. return this;
  309. default: {
  310. if (!parseUnknownField(input, unknownFields,
  311. extensionRegistry, tag)) {
  312. this.setUnknownFields(unknownFields.build());
  313. onChanged();
  314. return this;
  315. }
  316. break;
  317. }
  318. case 9: {
  319. bitField0_ |= 0x00000001;
  320. price_ = input.readDouble();
  321. break;
  322. }
  323. case 17: {
  324. bitField0_ |= 0x00000002;
  325. quantity_ = input.readDouble();
  326. break;
  327. }
  328. }
  329. }
  330. }
  331. private int bitField0_;
  332. // required double price = 1;
  333. private double price_ ;
  334. public boolean hasPrice() {
  335. return ((bitField0_ & 0x00000001) == 0x00000001);
  336. }
  337. public double getPrice() {
  338. return price_;
  339. }
  340. public Builder setPrice(double value) {
  341. bitField0_ |= 0x00000001;
  342. price_ = value;
  343. onChanged();
  344. return this;
  345. }
  346. public Builder clearPrice() {
  347. bitField0_ = (bitField0_ & ~0x00000001);
  348. price_ = 0D;
  349. onChanged();
  350. return this;
  351. }
  352. // required double quantity = 2;
  353. private double quantity_ ;
  354. public boolean hasQuantity() {
  355. return ((bitField0_ & 0x00000002) == 0x00000002);
  356. }
  357. public double getQuantity() {
  358. return quantity_;
  359. }
  360. public Builder setQuantity(double value) {
  361. bitField0_ |= 0x00000002;
  362. quantity_ = value;
  363. onChanged();
  364. return this;
  365. }
  366. public Builder clearQuantity() {
  367. bitField0_ = (bitField0_ & ~0x00000002);
  368. quantity_ = 0D;
  369. onChanged();
  370. return this;
  371. }
  372. // @@protoc_insertion_point(builder_scope:org.iso.nepool.PriceQuantityPair)
  373. }
  374. static {
  375. defaultInstance = new PriceQuantityPair(true);
  376. defaultInstance.initFields();
  377. }
  378. // @@protoc_insertion_point(class_scope:org.iso.nepool.PriceQuantityPair)
  379. }
  380. public interface EnergyOffersOrBuilder
  381. extends com.google.protobuf.MessageOrBuilder {
  382. // repeated .org.iso.nepool.EnergyOffers.EnergyOfferEntry eo = 1;
  383. java.util.List<org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry>
  384. getEoList();
  385. org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry getEo(int index);
  386. int getEoCount();
  387. java.util.List<? extends org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntryOrBuilder>
  388. getEoOrBuilderList();
  389. org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntryOrBuilder getEoOrBuilder(
  390. int index);
  391. }
  392. public static final class EnergyOffers extends
  393. com.google.protobuf.GeneratedMessage
  394. implements EnergyOffersOrBuilder {
  395. // Use EnergyOffers.newBuilder() to construct.
  396. private EnergyOffers(Builder builder) {
  397. super(builder);
  398. }
  399. private EnergyOffers(boolean noInit) {}
  400. private static final EnergyOffers defaultInstance;
  401. public static EnergyOffers getDefaultInstance() {
  402. return defaultInstance;
  403. }
  404. public EnergyOffers getDefaultInstanceForType() {
  405. return defaultInstance;
  406. }
  407. public static final com.google.protobuf.Descriptors.Descriptor
  408. getDescriptor() {
  409. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_descriptor;
  410. }
  411. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  412. internalGetFieldAccessorTable() {
  413. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_fieldAccessorTable;
  414. }
  415. public interface EnergyOfferEntryOrBuilder
  416. extends com.google.protobuf.MessageOrBuilder {
  417. // required int64 periodStart = 1;
  418. boolean hasPeriodStart();
  419. long getPeriodStart();
  420. // required int64 periodEnd = 2;
  421. boolean hasPeriodEnd();
  422. long getPeriodEnd();
  423. // required int32 maskedLeadParticipantID = 3;
  424. boolean hasMaskedLeadParticipantID();
  425. int getMaskedLeadParticipantID();
  426. // required int32 maskedAssetID = 4;
  427. boolean hasMaskedAssetID();
  428. int getMaskedAssetID();
  429. // required double mustTakeEnergy = 5;
  430. boolean hasMustTakeEnergy();
  431. double getMustTakeEnergy();
  432. // required double maximumDailyEnergyAvailable = 6;
  433. boolean hasMaximumDailyEnergyAvailable();
  434. double getMaximumDailyEnergyAvailable();
  435. // required double economicMaximum = 7;
  436. boolean hasEconomicMaximum();
  437. double getEconomicMaximum();
  438. // required double economicMinimum = 8;
  439. boolean hasEconomicMinimum();
  440. double getEconomicMinimum();
  441. // required double coldStartupPrice = 9;
  442. boolean hasColdStartupPrice();
  443. double getColdStartupPrice();
  444. // required double intermediateStartupPrice = 10;
  445. boolean hasIntermediateStartupPrice();
  446. double getIntermediateStartupPrice();
  447. // required double hotStartupPrice = 11;
  448. boolean hasHotStartupPrice();
  449. double getHotStartupPrice();
  450. // required double noLoadPrice = 12;
  451. boolean hasNoLoadPrice();
  452. double getNoLoadPrice();
  453. // required double claim10 = 13;
  454. boolean hasClaim10();
  455. double getClaim10();
  456. // required double claim30 = 14;
  457. boolean hasClaim30();
  458. double getClaim30();
  459. // repeated .org.iso.nepool.PriceQuantityPair pq = 15;
  460. java.util.List<org.iso.nepool.NepoolProto.PriceQuantityPair>
  461. getPqList();
  462. org.iso.nepool.NepoolProto.PriceQuantityPair getPq(int index);
  463. int getPqCount();
  464. java.util.List<? extends org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder>
  465. getPqOrBuilderList();
  466. org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder getPqOrBuilder(
  467. int index);
  468. }
  469. public static final class EnergyOfferEntry extends
  470. com.google.protobuf.GeneratedMessage
  471. implements EnergyOfferEntryOrBuilder {
  472. // Use EnergyOfferEntry.newBuilder() to construct.
  473. private EnergyOfferEntry(Builder builder) {
  474. super(builder);
  475. }
  476. private EnergyOfferEntry(boolean noInit) {}
  477. private static final EnergyOfferEntry defaultInstance;
  478. public static EnergyOfferEntry getDefaultInstance() {
  479. return defaultInstance;
  480. }
  481. public EnergyOfferEntry getDefaultInstanceForType() {
  482. return defaultInstance;
  483. }
  484. public static final com.google.protobuf.Descriptors.Descriptor
  485. getDescriptor() {
  486. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_descriptor;
  487. }
  488. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  489. internalGetFieldAccessorTable() {
  490. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_fieldAccessorTable;
  491. }
  492. private int bitField0_;
  493. // required int64 periodStart = 1;
  494. public static final int PERIODSTART_FIELD_NUMBER = 1;
  495. private long periodStart_;
  496. public boolean hasPeriodStart() {
  497. return ((bitField0_ & 0x00000001) == 0x00000001);
  498. }
  499. public long getPeriodStart() {
  500. return periodStart_;
  501. }
  502. // required int64 periodEnd = 2;
  503. public static final int PERIODEND_FIELD_NUMBER = 2;
  504. private long periodEnd_;
  505. public boolean hasPeriodEnd() {
  506. return ((bitField0_ & 0x00000002) == 0x00000002);
  507. }
  508. public long getPeriodEnd() {
  509. return periodEnd_;
  510. }
  511. // required int32 maskedLeadParticipantID = 3;
  512. public static final int MASKEDLEADPARTICIPANTID_FIELD_NUMBER = 3;
  513. private int maskedLeadParticipantID_;
  514. public boolean hasMaskedLeadParticipantID() {
  515. return ((bitField0_ & 0x00000004) == 0x00000004);
  516. }
  517. public int getMaskedLeadParticipantID() {
  518. return maskedLeadParticipantID_;
  519. }
  520. // required int32 maskedAssetID = 4;
  521. public static final int MASKEDASSETID_FIELD_NUMBER = 4;
  522. private int maskedAssetID_;
  523. public boolean hasMaskedAssetID() {
  524. return ((bitField0_ & 0x00000008) == 0x00000008);
  525. }
  526. public int getMaskedAssetID() {
  527. return maskedAssetID_;
  528. }
  529. // required double mustTakeEnergy = 5;
  530. public static final int MUSTTAKEENERGY_FIELD_NUMBER = 5;
  531. private double mustTakeEnergy_;
  532. public boolean hasMustTakeEnergy() {
  533. return ((bitField0_ & 0x00000010) == 0x00000010);
  534. }
  535. public double getMustTakeEnergy() {
  536. return mustTakeEnergy_;
  537. }
  538. // required double maximumDailyEnergyAvailable = 6;
  539. public static final int MAXIMUMDAILYENERGYAVAILABLE_FIELD_NUMBER = 6;
  540. private double maximumDailyEnergyAvailable_;
  541. public boolean hasMaximumDailyEnergyAvailable() {
  542. return ((bitField0_ & 0x00000020) == 0x00000020);
  543. }
  544. public double getMaximumDailyEnergyAvailable() {
  545. return maximumDailyEnergyAvailable_;
  546. }
  547. // required double economicMaximum = 7;
  548. public static final int ECONOMICMAXIMUM_FIELD_NUMBER = 7;
  549. private double economicMaximum_;
  550. public boolean hasEconomicMaximum() {
  551. return ((bitField0_ & 0x00000040) == 0x00000040);
  552. }
  553. public double getEconomicMaximum() {
  554. return economicMaximum_;
  555. }
  556. // required double economicMinimum = 8;
  557. public static final int ECONOMICMINIMUM_FIELD_NUMBER = 8;
  558. private double economicMinimum_;
  559. public boolean hasEconomicMinimum() {
  560. return ((bitField0_ & 0x00000080) == 0x00000080);
  561. }
  562. public double getEconomicMinimum() {
  563. return economicMinimum_;
  564. }
  565. // required double coldStartupPrice = 9;
  566. public static final int COLDSTARTUPPRICE_FIELD_NUMBER = 9;
  567. private double coldStartupPrice_;
  568. public boolean hasColdStartupPrice() {
  569. return ((bitField0_ & 0x00000100) == 0x00000100);
  570. }
  571. public double getColdStartupPrice() {
  572. return coldStartupPrice_;
  573. }
  574. // required double intermediateStartupPrice = 10;
  575. public static final int INTERMEDIATESTARTUPPRICE_FIELD_NUMBER = 10;
  576. private double intermediateStartupPrice_;
  577. public boolean hasIntermediateStartupPrice() {
  578. return ((bitField0_ & 0x00000200) == 0x00000200);
  579. }
  580. public double getIntermediateStartupPrice() {
  581. return intermediateStartupPrice_;
  582. }
  583. // required double hotStartupPrice = 11;
  584. public static final int HOTSTARTUPPRICE_FIELD_NUMBER = 11;
  585. private double hotStartupPrice_;
  586. public boolean hasHotStartupPrice() {
  587. return ((bitField0_ & 0x00000400) == 0x00000400);
  588. }
  589. public double getHotStartupPrice() {
  590. return hotStartupPrice_;
  591. }
  592. // required double noLoadPrice = 12;
  593. public static final int NOLOADPRICE_FIELD_NUMBER = 12;
  594. private double noLoadPrice_;
  595. public boolean hasNoLoadPrice() {
  596. return ((bitField0_ & 0x00000800) == 0x00000800);
  597. }
  598. public double getNoLoadPrice() {
  599. return noLoadPrice_;
  600. }
  601. // required double claim10 = 13;
  602. public static final int CLAIM10_FIELD_NUMBER = 13;
  603. private double claim10_;
  604. public boolean hasClaim10() {
  605. return ((bitField0_ & 0x00001000) == 0x00001000);
  606. }
  607. public double getClaim10() {
  608. return claim10_;
  609. }
  610. // required double claim30 = 14;
  611. public static final int CLAIM30_FIELD_NUMBER = 14;
  612. private double claim30_;
  613. public boolean hasClaim30() {
  614. return ((bitField0_ & 0x00002000) == 0x00002000);
  615. }
  616. public double getClaim30() {
  617. return claim30_;
  618. }
  619. // repeated .org.iso.nepool.PriceQuantityPair pq = 15;
  620. public static final int PQ_FIELD_NUMBER = 15;
  621. private java.util.List<org.iso.nepool.NepoolProto.PriceQuantityPair> pq_;
  622. public java.util.List<org.iso.nepool.NepoolProto.PriceQuantityPair> getPqList() {
  623. return pq_;
  624. }
  625. public java.util.List<? extends org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder>
  626. getPqOrBuilderList() {
  627. return pq_;
  628. }
  629. public int getPqCount() {
  630. return pq_.size();
  631. }
  632. public org.iso.nepool.NepoolProto.PriceQuantityPair getPq(int index) {
  633. return pq_.get(index);
  634. }
  635. public org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder getPqOrBuilder(
  636. int index) {
  637. return pq_.get(index);
  638. }
  639. private void initFields() {
  640. periodStart_ = 0L;
  641. periodEnd_ = 0L;
  642. maskedLeadParticipantID_ = 0;
  643. maskedAssetID_ = 0;
  644. mustTakeEnergy_ = 0D;
  645. maximumDailyEnergyAvailable_ = 0D;
  646. economicMaximum_ = 0D;
  647. economicMinimum_ = 0D;
  648. coldStartupPrice_ = 0D;
  649. intermediateStartupPrice_ = 0D;
  650. hotStartupPrice_ = 0D;
  651. noLoadPrice_ = 0D;
  652. claim10_ = 0D;
  653. claim30_ = 0D;
  654. pq_ = java.util.Collections.emptyList();
  655. }
  656. private byte memoizedIsInitialized = -1;
  657. public final boolean isInitialized() {
  658. byte isInitialized = memoizedIsInitialized;
  659. if (isInitialized != -1) return isInitialized == 1;
  660. if (!hasPeriodStart()) {
  661. memoizedIsInitialized = 0;
  662. return false;
  663. }
  664. if (!hasPeriodEnd()) {
  665. memoizedIsInitialized = 0;
  666. return false;
  667. }
  668. if (!hasMaskedLeadParticipantID()) {
  669. memoizedIsInitialized = 0;
  670. return false;
  671. }
  672. if (!hasMaskedAssetID()) {
  673. memoizedIsInitialized = 0;
  674. return false;
  675. }
  676. if (!hasMustTakeEnergy()) {
  677. memoizedIsInitialized = 0;
  678. return false;
  679. }
  680. if (!hasMaximumDailyEnergyAvailable()) {
  681. memoizedIsInitialized = 0;
  682. return false;
  683. }
  684. if (!hasEconomicMaximum()) {
  685. memoizedIsInitialized = 0;
  686. return false;
  687. }
  688. if (!hasEconomicMinimum()) {
  689. memoizedIsInitialized = 0;
  690. return false;
  691. }
  692. if (!hasColdStartupPrice()) {
  693. memoizedIsInitialized = 0;
  694. return false;
  695. }
  696. if (!hasIntermediateStartupPrice()) {
  697. memoizedIsInitialized = 0;
  698. return false;
  699. }
  700. if (!hasHotStartupPrice()) {
  701. memoizedIsInitialized = 0;
  702. return false;
  703. }
  704. if (!hasNoLoadPrice()) {
  705. memoizedIsInitialized = 0;
  706. return false;
  707. }
  708. if (!hasClaim10()) {
  709. memoizedIsInitialized = 0;
  710. return false;
  711. }
  712. if (!hasClaim30()) {
  713. memoizedIsInitialized = 0;
  714. return false;
  715. }
  716. for (int i = 0; i < getPqCount(); i++) {
  717. if (!getPq(i).isInitialized()) {
  718. memoizedIsInitialized = 0;
  719. return false;
  720. }
  721. }
  722. memoizedIsInitialized = 1;
  723. return true;
  724. }
  725. public void writeTo(com.google.protobuf.CodedOutputStream output)
  726. throws java.io.IOException {
  727. getSerializedSize();
  728. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  729. output.writeInt64(1, periodStart_);
  730. }
  731. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  732. output.writeInt64(2, periodEnd_);
  733. }
  734. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  735. output.writeInt32(3, maskedLeadParticipantID_);
  736. }
  737. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  738. output.writeInt32(4, maskedAssetID_);
  739. }
  740. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  741. output.writeDouble(5, mustTakeEnergy_);
  742. }
  743. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  744. output.writeDouble(6, maximumDailyEnergyAvailable_);
  745. }
  746. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  747. output.writeDouble(7, economicMaximum_);
  748. }
  749. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  750. output.writeDouble(8, economicMinimum_);
  751. }
  752. if (((bitField0_ & 0x00000100) == 0x00000100)) {
  753. output.writeDouble(9, coldStartupPrice_);
  754. }
  755. if (((bitField0_ & 0x00000200) == 0x00000200)) {
  756. output.writeDouble(10, intermediateStartupPrice_);
  757. }
  758. if (((bitField0_ & 0x00000400) == 0x00000400)) {
  759. output.writeDouble(11, hotStartupPrice_);
  760. }
  761. if (((bitField0_ & 0x00000800) == 0x00000800)) {
  762. output.writeDouble(12, noLoadPrice_);
  763. }
  764. if (((bitField0_ & 0x00001000) == 0x00001000)) {
  765. output.writeDouble(13, claim10_);
  766. }
  767. if (((bitField0_ & 0x00002000) == 0x00002000)) {
  768. output.writeDouble(14, claim30_);
  769. }
  770. for (int i = 0; i < pq_.size(); i++) {
  771. output.writeMessage(15, pq_.get(i));
  772. }
  773. getUnknownFields().writeTo(output);
  774. }
  775. private int memoizedSerializedSize = -1;
  776. public int getSerializedSize() {
  777. int size = memoizedSerializedSize;
  778. if (size != -1) return size;
  779. size = 0;
  780. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  781. size += com.google.protobuf.CodedOutputStream
  782. .computeInt64Size(1, periodStart_);
  783. }
  784. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  785. size += com.google.protobuf.CodedOutputStream
  786. .computeInt64Size(2, periodEnd_);
  787. }
  788. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  789. size += com.google.protobuf.CodedOutputStream
  790. .computeInt32Size(3, maskedLeadParticipantID_);
  791. }
  792. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  793. size += com.google.protobuf.CodedOutputStream
  794. .computeInt32Size(4, maskedAssetID_);
  795. }
  796. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  797. size += com.google.protobuf.CodedOutputStream
  798. .computeDoubleSize(5, mustTakeEnergy_);
  799. }
  800. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  801. size += com.google.protobuf.CodedOutputStream
  802. .computeDoubleSize(6, maximumDailyEnergyAvailable_);
  803. }
  804. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  805. size += com.google.protobuf.CodedOutputStream
  806. .computeDoubleSize(7, economicMaximum_);
  807. }
  808. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  809. size += com.google.protobuf.CodedOutputStream
  810. .computeDoubleSize(8, economicMinimum_);
  811. }
  812. if (((bitField0_ & 0x00000100) == 0x00000100)) {
  813. size += com.google.protobuf.CodedOutputStream
  814. .computeDoubleSize(9, coldStartupPrice_);
  815. }
  816. if (((bitField0_ & 0x00000200) == 0x00000200)) {
  817. size += com.google.protobuf.CodedOutputStream
  818. .computeDoubleSize(10, intermediateStartupPrice_);
  819. }
  820. if (((bitField0_ & 0x00000400) == 0x00000400)) {
  821. size += com.google.protobuf.CodedOutputStream
  822. .computeDoubleSize(11, hotStartupPrice_);
  823. }
  824. if (((bitField0_ & 0x00000800) == 0x00000800)) {
  825. size += com.google.protobuf.CodedOutputStream
  826. .computeDoubleSize(12, noLoadPrice_);
  827. }
  828. if (((bitField0_ & 0x00001000) == 0x00001000)) {
  829. size += com.google.protobuf.CodedOutputStream
  830. .computeDoubleSize(13, claim10_);
  831. }
  832. if (((bitField0_ & 0x00002000) == 0x00002000)) {
  833. size += com.google.protobuf.CodedOutputStream
  834. .computeDoubleSize(14, claim30_);
  835. }
  836. for (int i = 0; i < pq_.size(); i++) {
  837. size += com.google.protobuf.CodedOutputStream
  838. .computeMessageSize(15, pq_.get(i));
  839. }
  840. size += getUnknownFields().getSerializedSize();
  841. memoizedSerializedSize = size;
  842. return size;
  843. }
  844. private static final long serialVersionUID = 0L;
  845. @java.lang.Override
  846. protected java.lang.Object writeReplace()
  847. throws java.io.ObjectStreamException {
  848. return super.writeReplace();
  849. }
  850. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
  851. com.google.protobuf.ByteString data)
  852. throws com.google.protobuf.InvalidProtocolBufferException {
  853. return newBuilder().mergeFrom(data).buildParsed();
  854. }
  855. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
  856. com.google.protobuf.ByteString data,
  857. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  858. throws com.google.protobuf.InvalidProtocolBufferException {
  859. return newBuilder().mergeFrom(data, extensionRegistry)
  860. .buildParsed();
  861. }
  862. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(byte[] data)
  863. throws com.google.protobuf.InvalidProtocolBufferException {
  864. return newBuilder().mergeFrom(data).buildParsed();
  865. }
  866. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
  867. byte[] data,
  868. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  869. throws com.google.protobuf.InvalidProtocolBufferException {
  870. return newBuilder().mergeFrom(data, extensionRegistry)
  871. .buildParsed();
  872. }
  873. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(java.io.InputStream input)
  874. throws java.io.IOException {
  875. return newBuilder().mergeFrom(input).buildParsed();
  876. }
  877. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
  878. java.io.InputStream input,
  879. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  880. throws java.io.IOException {
  881. return newBuilder().mergeFrom(input, extensionRegistry)
  882. .buildParsed();
  883. }
  884. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseDelimitedFrom(java.io.InputStream input)
  885. throws java.io.IOException {
  886. Builder builder = newBuilder();
  887. if (builder.mergeDelimitedFrom(input)) {
  888. return builder.buildParsed();
  889. } else {
  890. return null;
  891. }
  892. }
  893. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseDelimitedFrom(
  894. java.io.InputStream input,
  895. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  896. throws java.io.IOException {
  897. Builder builder = newBuilder();
  898. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  899. return builder.buildParsed();
  900. } else {
  901. return null;
  902. }
  903. }
  904. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
  905. com.google.protobuf.CodedInputStream input)
  906. throws java.io.IOException {
  907. return newBuilder().mergeFrom(input).buildParsed();
  908. }
  909. public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
  910. com.google.protobuf.CodedInputStream input,
  911. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  912. throws java.io.IOException {
  913. return newBuilder().mergeFrom(input, extensionRegistry)
  914. .buildParsed();
  915. }
  916. public static Builder newBuilder() { return Builder.create(); }
  917. public Builder newBuilderForType() { return newBuilder(); }
  918. public static Builder newBuilder(org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry prototype) {
  919. return newBuilder().mergeFrom(prototype);
  920. }
  921. public Builder toBuilder() { return newBuilder(this); }
  922. @java.lang.Override
  923. protected Builder newBuilderForType(
  924. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  925. Builder builder = new Builder(parent);
  926. return builder;
  927. }
  928. public static final class Builder extends
  929. com.google.protobuf.GeneratedMessage.Builder<Builder>
  930. implements org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntryOrBuilder {
  931. public static final com.google.protobuf.Descriptors.Descriptor
  932. getDescriptor() {
  933. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_descriptor;
  934. }
  935. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  936. internalGetFieldAccessorTable() {
  937. return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_fieldAccessorTable;
  938. }
  939. // Construct using org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.newBuilder()
  940. private Builder() {
  941. maybeForceBuilderInitialization();
  942. }
  943. private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  944. super(parent);
  945. maybeForceBuilderInitialization();
  946. }
  947. private void maybeForceBuilderInitialization() {
  948. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  949. getPqFieldBuilder();
  950. }
  951. }
  952. private static Builder create() {
  953. return new Builder();
  954. }
  955. public Builder clear() {
  956. super.clear();
  957. periodStart_ = 0L;
  958. bitField0_ = (bitField0_ & ~0x00000001);
  959. periodEnd_ = 0L;
  960. bitField0_ = (bitField0_ & ~0x00000002);
  961. maskedLeadParticipantID_ = 0;
  962. bitField0_ = (bitField0_ & ~0x00000004);
  963. maskedAssetID_ = 0;
  964. bitField0_ = (bitField0_ & ~0x00000008);
  965. mustTakeEnergy_ = 0D;
  966. bitField0_ = (bitField0_ & ~0x00000010);
  967. maximumDailyEnergyAvailable_ = 0D;
  968. bitField0_ = (bitField0_ & ~0x00000020);
  969. economicMaximum_ = 0D;
  970. bitField0_ = (bitField0_ & ~0x00000040);
  971. economicMinimum_ = 0D;
  972. bitField0_ = (bitField0_ & ~0x00000080);
  973. coldStartupPrice_ = 0D;
  974. bitField0_ = (bitField0_ & ~0x00000100);
  975. intermediateStartupPrice_ = 0D;
  976. bitField0_ = (bitField0_ & ~0x00000200);
  977. hotStartupPrice_ = 0D;
  978. bitField0_ = (bitField0_ & ~0x00000400);
  979. noLoadPrice_ = 0D;
  980. bitField0_ = (bitField0_ & ~0x00000800);
  981. claim10_ = 0D;
  982. bitField0_ = (bitField0_ & ~0x00001000);
  983. claim30_ = 0D;
  984. bitField0_ = (bitField0_ & ~0x00002000);
  985. if (pqBuilder_ == null) {
  986. pq_ = java.util.Collections.emptyList();
  987. bitField0_ = (bitField0_ & ~0x00004000);
  988. } else {
  989. pqBuilder_.clear();
  990. }
  991. return this;
  992. }
  993. public Builder clone() {
  994. return create().mergeFrom(buildPartial());
  995. }
  996. public com.google.protobuf.Descriptors.Descriptor
  997. getDescriptorForType() {
  998. return org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.getDescriptor();
  999. }
  1000. public org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry getDefaultInstanceForType() {
  1001. return org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.getDefaultInstance();
  1002. }
  1003. public org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry build() {
  1004. org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry result = buildPartial();
  1005. if (!result.isInitialized()) {
  1006. throw newUninitializedMessageException(result);
  1007. }
  1008. return result;
  1009. }
  1010. private org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry buildParsed()
  1011. throws com.google.protobuf.InvalidProtocolBufferException {
  1012. org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry result = buildPartial();
  1013. if (!result.isInitialized()) {
  1014. throw newUninitializedMessageException(
  1015. result).asInvalidProtocolBufferException();
  1016. }
  1017. return result;
  1018. }
  1019. public org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry buildPartial() {
  1020. org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry result = new org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry(this);
  1021. int from_bitField0_ = bitField0_;
  1022. int to_bitField0_ = 0;
  1023. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  1024. to_bitField0_ |= 0x00000001;
  1025. }
  1026. result.periodStart_ = periodStart_;
  1027. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  1028. to_bitField0_ |= 0x00000002;
  1029. }
  1030. result.periodEnd_ = periodEnd_;
  1031. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  1032. to_bitField0_ |= 0x00000004;
  1033. }
  1034. result.maskedLeadParticipantID_ = maskedLeadParticipantID_;
  1035. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  1036. to_bitField0_ |= 0x00000008;
  1037. }
  1038. result.maskedAssetID_ = maskedAssetID_;
  1039. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  1040. to_bitField0_ |= 0x00000010;
  1041. }
  1042. result.mustTakeEnergy_ = mustTakeEnergy_;
  1043. if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
  1044. to_bitField0_ |= 0x00000020;
  1045. }
  1046. result.maximumDailyEnergyAvailable_ = maximumDailyEnergyAvailable_;
  1047. if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
  1048. to_bitField0_ |= 0x00000040;
  1049. }
  1050. result.economicMaximum_ = economicMaximum_;
  1051. if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
  1052. to_bitField0_ |= 0x00000080;
  1053. }
  1054. result.economicMinimum_ = economicMinimum_;
  1055. if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
  1056. to_bitField0_ |= 0x00000100;
  1057. }
  1058. result.coldStartupPrice_ = coldStartupPrice_;
  1059. if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
  1060. to_bitField0_ |= 0x00000200;
  1061. }
  1062. result.intermediateStartupPrice_ = intermediateStartupPrice_;
  1063. if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
  1064. to_bitField0_ |= 0x00000400;
  1065. }
  1066. result.hotStartupPrice_ = hotStartupPrice_;
  1067. if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
  1068. to_bitField0_ |= 0x00000800;
  1069. }
  1070. result.noLoadPrice_ = noLoadPrice_;
  1071. if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
  1072. to_bitField0_ |= 0x00001000;
  1073. }
  1074. result.claim10_ = claim10_;
  1075. if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
  1076. to_bitField0_ |= 0x00002000;
  1077. }
  1078. result.claim30_ = claim30_;
  1079. if (pqBuilder_ == null) {
  1080. if (((bitField0_ & 0x00004000) == 0x00004000)) {
  1081. pq_ = java.util.Collections.unmodifiableList(pq_);
  1082. bitField0_ = (bitField0_ & ~0x00004000);
  1083. }
  1084. result.pq_ = pq_;
  1085. } else {
  1086. result.pq_ = pqBuilder_.build();
  1087. }
  1088. result.bitField0_ = to_bitField0_;
  1089. onBuilt();
  1090. return result;
  1091. }
  1092. public Builder mergeFrom(com.google.protobuf.Message other) {
  1093. if (other instanceof org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry) {
  1094. return mergeFrom((org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry)other);
  1095. } else {
  1096. super.mergeFrom(other);
  1097. return this;
  1098. }
  1099. }
  1100. public Builder mergeFrom(org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry other) {
  1101. if (other == org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.getDefaultInstance()) return this;
  1102. if (other.hasPeriodStart()) {
  1103. setPeriodStart(other.getPeriodStart());
  1104. }
  1105. if (other.hasPeriodEnd()) {
  1106. setPeriodEnd(other.getPeriodEnd());
  1107. }
  1108. if (other.hasMaskedLeadParticipantID()) {
  1109. setMaskedLeadParticipantID(other.getMaskedLeadParticipantID());
  1110. }
  1111. if (other.hasMaskedAssetID()) {
  1112. setMaskedAssetID(other.getMaskedAssetID());
  1113. }
  1114. if (other.hasMustTakeEnergy()) {
  1115. setMustTakeEnergy(other.getMustTakeEnergy());
  1116. }
  1117. if (other.hasMaximumDailyEnergyAvailable()) {
  1118. setMaximumDailyEnergyAvailable(other.getMaximumDailyEnergyAvailable());
  1119. }
  1120. if (other.hasEconomicMaximum()) {
  1121. setEconomicMaximum(other.getEconomicMaximum());
  1122. }
  1123. if (other.hasEconomicMinimum()) {
  1124. setEconomicMinimum(other.getEconomicMinimum());
  1125. }
  1126. if (other.hasColdStartupPrice()) {
  1127. setColdStartupPrice(other.getColdStartupPrice());
  1128. }
  1129. if (other.hasIntermediateStartupPrice()) {
  1130. setIntermediateStartupPrice(other.getIntermediateStartupPrice());
  1131. }
  1132. if (other.hasHotStartupPrice()) {
  1133. setHotStartupPrice(other.getHotStartupPrice());
  1134. }
  1135. if (other.hasNoLoadPrice()) {
  1136. setNoLoadPrice(other.getNoLoadPrice());
  1137. }
  1138. if (other.hasClaim10()) {
  1139. setClaim10(other.getClaim10());
  1140. }
  1141. if (other.hasClaim30()) {
  1142. setClaim30(other.getClaim30());
  1143. }
  1144. if (pqBuilder_ == null) {
  1145. if (!other.pq_.isEmpty()) {
  1146. if (pq_.isEmpty()) {
  1147. pq_ = other.pq_;
  1148. bitField0_ = (bitField0_ & ~0x00004000);
  1149. } else {
  1150. ensurePqIsMutable();
  1151. pq_.addAll(other.pq_);
  1152. }
  1153. onChanged();
  1154. }
  1155. } else {
  1156. if (!other.pq_.isEmpty()) {
  1157. if (pqBuilder_.isEmpty()) {
  1158. pqBuilder_.dispose();
  1159. pqBuilder_ = null;
  1160. pq_ = other.pq_;
  1161. bitField0_ = (bitField0_ & ~0x00004000);
  1162. pqBuilder_ =
  1163. com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
  1164. getPqFieldBuilder() : null;
  1165. } else {
  1166. pqBuilder_.addAllMessages(other.pq_);
  1167. }
  1168. }
  1169. }
  1170. this.mergeUnknownFields(other.getUnknownFields());
  1171. return this;
  1172. }
  1173. public final boolean isInitialized() {
  1174. if (!hasPeriodStart()) {
  1175. return false;
  1176. }
  1177. if (!hasPeriodEnd()) {
  1178. return false;
  1179. }
  1180. if (!hasMaskedLeadParticipantID()) {
  1181. return false;
  1182. }
  1183. if (!hasMaskedAssetID()) {
  1184. return false;
  1185. }
  1186. if (!hasMustTakeEnergy()) {
  1187. return false;
  1188. }
  1189. if (!hasMaximumDailyEnergyAvailable()) {
  1190. return false;
  1191. }
  1192. if (!hasEconomicMaximum()) {
  1193. return false;
  1194. }
  1195. if (!hasEconomicMinimum()) {
  1196. return false;
  1197. }
  1198. if (!hasColdStartupPrice()) {
  1199. return false;
  1200. }
  1201. if (!hasIntermediateStartupPrice()) {
  1202. return false;
  1203. }
  1204. if (!hasHotStartupPrice()) {
  1205. return false;
  1206. }
  1207. if (!hasNoLoadPrice()) {
  1208. return false;
  1209. }
  1210. if (!hasClaim10()) {
  1211. return false;
  1212. }
  1213. if (!hasClaim30()) {
  1214. return false;
  1215. }
  1216. for (int i = 0; i < getPqCount(); i++) {
  1217. if (!getPq(i).isInitialized()) {
  1218. return false;
  1219. }
  1220. }
  1221. return true;
  1222. }
  1223. public Builder mergeFrom(
  1224. com.google.protobuf.CodedInputStream input,
  1225. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1226. throws java.io.IOException {
  1227. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1228. com.google.protobuf.UnknownFieldSet.newBuilder(
  1229. this.getUnknownFields());
  1230. while (true) {
  1231. int tag = input.readTag();
  1232. switch (tag) {
  1233. case 0:
  1234. this.setUnknownFields(unknownFields.build());
  1235. onChanged();
  1236. return this;
  1237. default: {
  1238. if (!parseUnknownField(input, unknownFields,
  1239. extensionRegistry, tag)) {
  1240. this.setUnknownFields(unknownFields.build());
  1241. onChanged();
  1242. return this;
  1243. }
  1244. break;
  1245. }
  1246. case 8: {
  1247. bitField0_ |= 0x00000001;
  1248. periodStart_ = input.readInt64();
  1249. break;
  1250. }
  1251. case 16: {
  1252. bitField0_ |= 0x00000002;
  1253. periodEnd_ = input.readInt64();
  1254. break;
  1255. }
  1256. case 24: {
  1257. bitField0_ |= 0x00000004;
  1258. maskedLeadParticipantID_ = input.readInt32();
  1259. break;
  1260. }
  1261. case 32: {
  1262. bitField0_ |= 0x00000008;
  1263. maskedAs

Large files files are truncated, but you can click here to view the full file