/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 are truncated click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: nepool.proto
- package org.iso.nepool;
- public final class NepoolProto {
- private NepoolProto() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public interface PriceQuantityPairOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required double price = 1;
- boolean hasPrice();
- double getPrice();
-
- // required double quantity = 2;
- boolean hasQuantity();
- double getQuantity();
- }
- public static final class PriceQuantityPair extends
- com.google.protobuf.GeneratedMessage
- implements PriceQuantityPairOrBuilder {
- // Use PriceQuantityPair.newBuilder() to construct.
- private PriceQuantityPair(Builder builder) {
- super(builder);
- }
- private PriceQuantityPair(boolean noInit) {}
-
- private static final PriceQuantityPair defaultInstance;
- public static PriceQuantityPair getDefaultInstance() {
- return defaultInstance;
- }
-
- public PriceQuantityPair getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required double price = 1;
- public static final int PRICE_FIELD_NUMBER = 1;
- private double price_;
- public boolean hasPrice() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public double getPrice() {
- return price_;
- }
-
- // required double quantity = 2;
- public static final int QUANTITY_FIELD_NUMBER = 2;
- private double quantity_;
- public boolean hasQuantity() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public double getQuantity() {
- return quantity_;
- }
-
- private void initFields() {
- price_ = 0D;
- quantity_ = 0D;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasPrice()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasQuantity()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeDouble(1, price_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeDouble(2, quantity_);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(1, price_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(2, quantity_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.PriceQuantityPair parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.iso.nepool.NepoolProto.PriceQuantityPair prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_PriceQuantityPair_fieldAccessorTable;
- }
-
- // Construct using org.iso.nepool.NepoolProto.PriceQuantityPair.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- price_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000001);
- quantity_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.iso.nepool.NepoolProto.PriceQuantityPair.getDescriptor();
- }
-
- public org.iso.nepool.NepoolProto.PriceQuantityPair getDefaultInstanceForType() {
- return org.iso.nepool.NepoolProto.PriceQuantityPair.getDefaultInstance();
- }
-
- public org.iso.nepool.NepoolProto.PriceQuantityPair build() {
- org.iso.nepool.NepoolProto.PriceQuantityPair result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.iso.nepool.NepoolProto.PriceQuantityPair buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.iso.nepool.NepoolProto.PriceQuantityPair result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.iso.nepool.NepoolProto.PriceQuantityPair buildPartial() {
- org.iso.nepool.NepoolProto.PriceQuantityPair result = new org.iso.nepool.NepoolProto.PriceQuantityPair(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.price_ = price_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.quantity_ = quantity_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.iso.nepool.NepoolProto.PriceQuantityPair) {
- return mergeFrom((org.iso.nepool.NepoolProto.PriceQuantityPair)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.iso.nepool.NepoolProto.PriceQuantityPair other) {
- if (other == org.iso.nepool.NepoolProto.PriceQuantityPair.getDefaultInstance()) return this;
- if (other.hasPrice()) {
- setPrice(other.getPrice());
- }
- if (other.hasQuantity()) {
- setQuantity(other.getQuantity());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasPrice()) {
-
- return false;
- }
- if (!hasQuantity()) {
-
- return false;
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 9: {
- bitField0_ |= 0x00000001;
- price_ = input.readDouble();
- break;
- }
- case 17: {
- bitField0_ |= 0x00000002;
- quantity_ = input.readDouble();
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required double price = 1;
- private double price_ ;
- public boolean hasPrice() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public double getPrice() {
- return price_;
- }
- public Builder setPrice(double value) {
- bitField0_ |= 0x00000001;
- price_ = value;
- onChanged();
- return this;
- }
- public Builder clearPrice() {
- bitField0_ = (bitField0_ & ~0x00000001);
- price_ = 0D;
- onChanged();
- return this;
- }
-
- // required double quantity = 2;
- private double quantity_ ;
- public boolean hasQuantity() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public double getQuantity() {
- return quantity_;
- }
- public Builder setQuantity(double value) {
- bitField0_ |= 0x00000002;
- quantity_ = value;
- onChanged();
- return this;
- }
- public Builder clearQuantity() {
- bitField0_ = (bitField0_ & ~0x00000002);
- quantity_ = 0D;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:org.iso.nepool.PriceQuantityPair)
- }
-
- static {
- defaultInstance = new PriceQuantityPair(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:org.iso.nepool.PriceQuantityPair)
- }
-
- public interface EnergyOffersOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // repeated .org.iso.nepool.EnergyOffers.EnergyOfferEntry eo = 1;
- java.util.List<org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry>
- getEoList();
- org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry getEo(int index);
- int getEoCount();
- java.util.List<? extends org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntryOrBuilder>
- getEoOrBuilderList();
- org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntryOrBuilder getEoOrBuilder(
- int index);
- }
- public static final class EnergyOffers extends
- com.google.protobuf.GeneratedMessage
- implements EnergyOffersOrBuilder {
- // Use EnergyOffers.newBuilder() to construct.
- private EnergyOffers(Builder builder) {
- super(builder);
- }
- private EnergyOffers(boolean noInit) {}
-
- private static final EnergyOffers defaultInstance;
- public static EnergyOffers getDefaultInstance() {
- return defaultInstance;
- }
-
- public EnergyOffers getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_fieldAccessorTable;
- }
-
- public interface EnergyOfferEntryOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required int64 periodStart = 1;
- boolean hasPeriodStart();
- long getPeriodStart();
-
- // required int64 periodEnd = 2;
- boolean hasPeriodEnd();
- long getPeriodEnd();
-
- // required int32 maskedLeadParticipantID = 3;
- boolean hasMaskedLeadParticipantID();
- int getMaskedLeadParticipantID();
-
- // required int32 maskedAssetID = 4;
- boolean hasMaskedAssetID();
- int getMaskedAssetID();
-
- // required double mustTakeEnergy = 5;
- boolean hasMustTakeEnergy();
- double getMustTakeEnergy();
-
- // required double maximumDailyEnergyAvailable = 6;
- boolean hasMaximumDailyEnergyAvailable();
- double getMaximumDailyEnergyAvailable();
-
- // required double economicMaximum = 7;
- boolean hasEconomicMaximum();
- double getEconomicMaximum();
-
- // required double economicMinimum = 8;
- boolean hasEconomicMinimum();
- double getEconomicMinimum();
-
- // required double coldStartupPrice = 9;
- boolean hasColdStartupPrice();
- double getColdStartupPrice();
-
- // required double intermediateStartupPrice = 10;
- boolean hasIntermediateStartupPrice();
- double getIntermediateStartupPrice();
-
- // required double hotStartupPrice = 11;
- boolean hasHotStartupPrice();
- double getHotStartupPrice();
-
- // required double noLoadPrice = 12;
- boolean hasNoLoadPrice();
- double getNoLoadPrice();
-
- // required double claim10 = 13;
- boolean hasClaim10();
- double getClaim10();
-
- // required double claim30 = 14;
- boolean hasClaim30();
- double getClaim30();
-
- // repeated .org.iso.nepool.PriceQuantityPair pq = 15;
- java.util.List<org.iso.nepool.NepoolProto.PriceQuantityPair>
- getPqList();
- org.iso.nepool.NepoolProto.PriceQuantityPair getPq(int index);
- int getPqCount();
- java.util.List<? extends org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder>
- getPqOrBuilderList();
- org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder getPqOrBuilder(
- int index);
- }
- public static final class EnergyOfferEntry extends
- com.google.protobuf.GeneratedMessage
- implements EnergyOfferEntryOrBuilder {
- // Use EnergyOfferEntry.newBuilder() to construct.
- private EnergyOfferEntry(Builder builder) {
- super(builder);
- }
- private EnergyOfferEntry(boolean noInit) {}
-
- private static final EnergyOfferEntry defaultInstance;
- public static EnergyOfferEntry getDefaultInstance() {
- return defaultInstance;
- }
-
- public EnergyOfferEntry getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required int64 periodStart = 1;
- public static final int PERIODSTART_FIELD_NUMBER = 1;
- private long periodStart_;
- public boolean hasPeriodStart() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public long getPeriodStart() {
- return periodStart_;
- }
-
- // required int64 periodEnd = 2;
- public static final int PERIODEND_FIELD_NUMBER = 2;
- private long periodEnd_;
- public boolean hasPeriodEnd() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public long getPeriodEnd() {
- return periodEnd_;
- }
-
- // required int32 maskedLeadParticipantID = 3;
- public static final int MASKEDLEADPARTICIPANTID_FIELD_NUMBER = 3;
- private int maskedLeadParticipantID_;
- public boolean hasMaskedLeadParticipantID() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public int getMaskedLeadParticipantID() {
- return maskedLeadParticipantID_;
- }
-
- // required int32 maskedAssetID = 4;
- public static final int MASKEDASSETID_FIELD_NUMBER = 4;
- private int maskedAssetID_;
- public boolean hasMaskedAssetID() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- public int getMaskedAssetID() {
- return maskedAssetID_;
- }
-
- // required double mustTakeEnergy = 5;
- public static final int MUSTTAKEENERGY_FIELD_NUMBER = 5;
- private double mustTakeEnergy_;
- public boolean hasMustTakeEnergy() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- public double getMustTakeEnergy() {
- return mustTakeEnergy_;
- }
-
- // required double maximumDailyEnergyAvailable = 6;
- public static final int MAXIMUMDAILYENERGYAVAILABLE_FIELD_NUMBER = 6;
- private double maximumDailyEnergyAvailable_;
- public boolean hasMaximumDailyEnergyAvailable() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- public double getMaximumDailyEnergyAvailable() {
- return maximumDailyEnergyAvailable_;
- }
-
- // required double economicMaximum = 7;
- public static final int ECONOMICMAXIMUM_FIELD_NUMBER = 7;
- private double economicMaximum_;
- public boolean hasEconomicMaximum() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- public double getEconomicMaximum() {
- return economicMaximum_;
- }
-
- // required double economicMinimum = 8;
- public static final int ECONOMICMINIMUM_FIELD_NUMBER = 8;
- private double economicMinimum_;
- public boolean hasEconomicMinimum() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
- public double getEconomicMinimum() {
- return economicMinimum_;
- }
-
- // required double coldStartupPrice = 9;
- public static final int COLDSTARTUPPRICE_FIELD_NUMBER = 9;
- private double coldStartupPrice_;
- public boolean hasColdStartupPrice() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
- public double getColdStartupPrice() {
- return coldStartupPrice_;
- }
-
- // required double intermediateStartupPrice = 10;
- public static final int INTERMEDIATESTARTUPPRICE_FIELD_NUMBER = 10;
- private double intermediateStartupPrice_;
- public boolean hasIntermediateStartupPrice() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
- public double getIntermediateStartupPrice() {
- return intermediateStartupPrice_;
- }
-
- // required double hotStartupPrice = 11;
- public static final int HOTSTARTUPPRICE_FIELD_NUMBER = 11;
- private double hotStartupPrice_;
- public boolean hasHotStartupPrice() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
- }
- public double getHotStartupPrice() {
- return hotStartupPrice_;
- }
-
- // required double noLoadPrice = 12;
- public static final int NOLOADPRICE_FIELD_NUMBER = 12;
- private double noLoadPrice_;
- public boolean hasNoLoadPrice() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
- }
- public double getNoLoadPrice() {
- return noLoadPrice_;
- }
-
- // required double claim10 = 13;
- public static final int CLAIM10_FIELD_NUMBER = 13;
- private double claim10_;
- public boolean hasClaim10() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
- }
- public double getClaim10() {
- return claim10_;
- }
-
- // required double claim30 = 14;
- public static final int CLAIM30_FIELD_NUMBER = 14;
- private double claim30_;
- public boolean hasClaim30() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
- }
- public double getClaim30() {
- return claim30_;
- }
-
- // repeated .org.iso.nepool.PriceQuantityPair pq = 15;
- public static final int PQ_FIELD_NUMBER = 15;
- private java.util.List<org.iso.nepool.NepoolProto.PriceQuantityPair> pq_;
- public java.util.List<org.iso.nepool.NepoolProto.PriceQuantityPair> getPqList() {
- return pq_;
- }
- public java.util.List<? extends org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder>
- getPqOrBuilderList() {
- return pq_;
- }
- public int getPqCount() {
- return pq_.size();
- }
- public org.iso.nepool.NepoolProto.PriceQuantityPair getPq(int index) {
- return pq_.get(index);
- }
- public org.iso.nepool.NepoolProto.PriceQuantityPairOrBuilder getPqOrBuilder(
- int index) {
- return pq_.get(index);
- }
-
- private void initFields() {
- periodStart_ = 0L;
- periodEnd_ = 0L;
- maskedLeadParticipantID_ = 0;
- maskedAssetID_ = 0;
- mustTakeEnergy_ = 0D;
- maximumDailyEnergyAvailable_ = 0D;
- economicMaximum_ = 0D;
- economicMinimum_ = 0D;
- coldStartupPrice_ = 0D;
- intermediateStartupPrice_ = 0D;
- hotStartupPrice_ = 0D;
- noLoadPrice_ = 0D;
- claim10_ = 0D;
- claim30_ = 0D;
- pq_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasPeriodStart()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasPeriodEnd()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasMaskedLeadParticipantID()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasMaskedAssetID()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasMustTakeEnergy()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasMaximumDailyEnergyAvailable()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasEconomicMaximum()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasEconomicMinimum()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasColdStartupPrice()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasIntermediateStartupPrice()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasHotStartupPrice()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasNoLoadPrice()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasClaim10()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasClaim30()) {
- memoizedIsInitialized = 0;
- return false;
- }
- for (int i = 0; i < getPqCount(); i++) {
- if (!getPq(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, periodStart_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt64(2, periodEnd_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt32(3, maskedLeadParticipantID_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt32(4, maskedAssetID_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeDouble(5, mustTakeEnergy_);
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeDouble(6, maximumDailyEnergyAvailable_);
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeDouble(7, economicMaximum_);
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeDouble(8, economicMinimum_);
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeDouble(9, coldStartupPrice_);
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeDouble(10, intermediateStartupPrice_);
- }
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- output.writeDouble(11, hotStartupPrice_);
- }
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeDouble(12, noLoadPrice_);
- }
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- output.writeDouble(13, claim10_);
- }
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeDouble(14, claim30_);
- }
- for (int i = 0; i < pq_.size(); i++) {
- output.writeMessage(15, pq_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, periodStart_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, periodEnd_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, maskedLeadParticipantID_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, maskedAssetID_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(5, mustTakeEnergy_);
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(6, maximumDailyEnergyAvailable_);
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(7, economicMaximum_);
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(8, economicMinimum_);
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(9, coldStartupPrice_);
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(10, intermediateStartupPrice_);
- }
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(11, hotStartupPrice_);
- }
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(12, noLoadPrice_);
- }
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(13, claim10_);
- }
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(14, claim30_);
- }
- for (int i = 0; i < pq_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(15, pq_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntryOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.iso.nepool.NepoolProto.internal_static_org_iso_nepool_EnergyOffers_EnergyOfferEntry_fieldAccessorTable;
- }
-
- // Construct using org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPqFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- periodStart_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- periodEnd_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- maskedLeadParticipantID_ = 0;
- bitField0_ = (bitField0_ & ~0x00000004);
- maskedAssetID_ = 0;
- bitField0_ = (bitField0_ & ~0x00000008);
- mustTakeEnergy_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000010);
- maximumDailyEnergyAvailable_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000020);
- economicMaximum_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000040);
- economicMinimum_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000080);
- coldStartupPrice_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000100);
- intermediateStartupPrice_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000200);
- hotStartupPrice_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000400);
- noLoadPrice_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000800);
- claim10_ = 0D;
- bitField0_ = (bitField0_ & ~0x00001000);
- claim30_ = 0D;
- bitField0_ = (bitField0_ & ~0x00002000);
- if (pqBuilder_ == null) {
- pq_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00004000);
- } else {
- pqBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.getDescriptor();
- }
-
- public org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry getDefaultInstanceForType() {
- return org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.getDefaultInstance();
- }
-
- public org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry build() {
- org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry buildPartial() {
- org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry result = new org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.periodStart_ = periodStart_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.periodEnd_ = periodEnd_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.maskedLeadParticipantID_ = maskedLeadParticipantID_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.maskedAssetID_ = maskedAssetID_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.mustTakeEnergy_ = mustTakeEnergy_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000020;
- }
- result.maximumDailyEnergyAvailable_ = maximumDailyEnergyAvailable_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000040;
- }
- result.economicMaximum_ = economicMaximum_;
- if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
- to_bitField0_ |= 0x00000080;
- }
- result.economicMinimum_ = economicMinimum_;
- if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
- to_bitField0_ |= 0x00000100;
- }
- result.coldStartupPrice_ = coldStartupPrice_;
- if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
- to_bitField0_ |= 0x00000200;
- }
- result.intermediateStartupPrice_ = intermediateStartupPrice_;
- if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
- to_bitField0_ |= 0x00000400;
- }
- result.hotStartupPrice_ = hotStartupPrice_;
- if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
- to_bitField0_ |= 0x00000800;
- }
- result.noLoadPrice_ = noLoadPrice_;
- if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
- to_bitField0_ |= 0x00001000;
- }
- result.claim10_ = claim10_;
- if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
- to_bitField0_ |= 0x00002000;
- }
- result.claim30_ = claim30_;
- if (pqBuilder_ == null) {
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- pq_ = java.util.Collections.unmodifiableList(pq_);
- bitField0_ = (bitField0_ & ~0x00004000);
- }
- result.pq_ = pq_;
- } else {
- result.pq_ = pqBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry) {
- return mergeFrom((org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry other) {
- if (other == org.iso.nepool.NepoolProto.EnergyOffers.EnergyOfferEntry.getDefaultInstance()) return this;
- if (other.hasPeriodStart()) {
- setPeriodStart(other.getPeriodStart());
- }
- if (other.hasPeriodEnd()) {
- setPeriodEnd(other.getPeriodEnd());
- }
- if (other.hasMaskedLeadParticipantID()) {
- setMaskedLeadParticipantID(other.getMaskedLeadParticipantID());
- }
- if (other.hasMaskedAssetID()) {
- setMaskedAssetID(other.getMaskedAssetID());
- }
- if (other.hasMustTakeEnergy()) {
- setMustTakeEnergy(other.getMustTakeEnergy());
- }
- if (other.hasMaximumDailyEnergyAvailable()) {
- setMaximumDailyEnergyAvailable(other.getMaximumDailyEnergyAvailable());
- }
- if (other.hasEconomicMaximum()) {
- setEconomicMaximum(other.getEconomicMaximum());
- }
- if (other.hasEconomicMinimum()) {
- setEconomicMinimum(other.getEconomicMinimum());
- }
- if (other.hasColdStartupPrice()) {
- setColdStartupPrice(other.getColdStartupPrice());
- }
- if (other.hasIntermediateStartupPrice()) {
- setIntermediateStartupPrice(other.getIntermediateStartupPrice());
- }
- if (other.hasHotStartupPrice()) {
- setHotStartupPrice(other.getHotStartupPrice());
- }
- if (other.hasNoLoadPrice()) {
- setNoLoadPrice(other.getNoLoadPrice());
- }
- if (other.hasClaim10()) {
- setClaim10(other.getClaim10());
- }
- if (other.hasClaim30()) {
- setClaim30(other.getClaim30());
- }
- if (pqBuilder_ == null) {
- if (!other.pq_.isEmpty()) {
- if (pq_.isEmpty()) {
- pq_ = other.pq_;
- bitField0_ = (bitField0_ & ~0x00004000);
- } else {
- ensurePqIsMutable();
- pq_.addAll(other.pq_);
- }
- onChanged();
- }
- } else {
- if (!other.pq_.isEmpty()) {
- if (pqBuilder_.isEmpty()) {
- pqBuilder_.dispose();
- pqBuilder_ = null;
- pq_ = other.pq_;
- bitField0_ = (bitField0_ & ~0x00004000);
- pqBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPqFieldBuilder() : null;
- } else {
- pqBuilder_.addAllMessages(other.pq_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasPeriodStart()) {
-
- return false;
- }
- if (!hasPeriodEnd()) {
-
- return false;
- }
- if (!hasMaskedLeadParticipantID()) {
-
- return false;
- }
- if (!hasMaskedAssetID()) {
-
- return false;
- }
- if (!hasMustTakeEnergy()) {
-
- return false;
- }
- if (!hasMaximumDailyEnergyAvailable()) {
-
- return false;
- }
- if (!hasEconomicMaximum()) {
-
- return false;
- }
- if (!hasEconomicMinimum()) {
-
- return false;
- }
- if (!hasColdStartupPrice()) {
-
- return false;
- }
- if (!hasIntermediateStartupPrice()) {
-
- return false;
- }
- if (!hasHotStartupPrice()) {
-
- return false;
- }
- if (!hasNoLoadPrice()) {
-
- return false;
- }
- if (!hasClaim10()) {
-
- return false;
- }
- if (!hasClaim30()) {
-
- return false;
- }
- for (int i = 0; i < getPqCount(); i++) {
- if (!getPq(i).isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- periodStart_ = input.readInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- periodEnd_ = input.readInt64();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- maskedLeadParticipantID_ = input.readInt32();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- maskedAs…