+/**
+ * Autogenerated by Avro
+ *
+ * DO NOT EDIT DIRECTLY
+ */
+package gr.grnet.aquarium.message.avro.gen;
+@SuppressWarnings("all")
+public class UserStateMsg extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
+ public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"UserStateMsg\",\"namespace\":\"gr.grnet.aquarium.message.avro.gen\",\"fields\":[{\"name\":\"originalID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"inStoreID\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"]},{\"name\":\"userID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"occurredMillis\",\"type\":\"long\"},{\"name\":\"parentOriginalID\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"]},{\"name\":\"parentInStoreID\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"]},{\"name\":\"resourceTypesMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ResourceTypeMsg\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"unit\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"chargingBehaviorClass\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},\"avro.java.string\":\"String\"}},{\"name\":\"stateOfResources\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ResourcesChargingStateMsg\",\"fields\":[{\"name\":\"resource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"details\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"AnyValueMsg\",\"fields\":[{\"name\":\"anyValue\",\"type\":[\"null\",\"int\",\"long\",\"boolean\",\"double\",\"bytes\",{\"type\":\"string\",\"avro.java.string\":\"String\"},{\"type\":\"array\",\"items\":\"AnyValueMsg\"},{\"type\":\"map\",\"values\":\"AnyValueMsg\",\"avro.java.string\":\"String\"}]}]},\"avro.java.string\":\"String\"}},{\"name\":\"stateOfResourceInstance\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ResourceInstanceChargingStateMsg\",\"fields\":[{\"name\":\"clientID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"resource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"instanceID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"details\",\"type\":{\"type\":\"map\",\"values\":\"AnyValueMsg\",\"avro.java.string\":\"String\"}},{\"name\":\"previousEvents\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ResourceEventMsg\",\"fields\":[{\"name\":\"originalID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"inStoreID\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"]},{\"name\":\"occurredMillis\",\"type\":\"long\"},{\"name\":\"receivedMillis\",\"type\":\"long\",\"default\":0},{\"name\":\"userID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"clientID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"eventVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"1.0\"},{\"name\":\"resource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"instanceID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"isSynthetic\",\"type\":\"boolean\",\"default\":false},{\"name\":\"details\",\"type\":{\"type\":\"map\",\"values\":\"AnyValueMsg\",\"avro.java.string\":\"String\"}}]}}},{\"name\":\"implicitlyIssuedStartEvents\",\"type\":{\"type\":\"array\",\"items\":\"ResourceEventMsg\"}},{\"name\":\"accumulatingAmount\",\"type\":\"double\"},{\"name\":\"oldAccumulatingAmount\",\"type\":\"double\"},{\"name\":\"previousValue\",\"type\":\"double\"},{\"name\":\"currentValue\",\"type\":\"double\"}]},\"avro.java.string\":\"String\"}}]},\"avro.java.string\":\"String\"}},{\"name\":\"totalCredits\",\"type\":\"double\",\"default\":0.0},{\"name\":\"agreementHistory\",\"type\":{\"type\":\"record\",\"name\":\"UserAgreementHistoryMsg\",\"fields\":[{\"name\":\"agreements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UserAgreementMsg\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"relatedIMEventOriginalID\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"]},{\"name\":\"userID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"validFromMillis\",\"type\":\"long\"},{\"name\":\"validToMillis\",\"type\":\"long\"},{\"name\":\"role\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"fullPriceTableRef\",\"type\":[{\"type\":\"record\",\"name\":\"FullPriceTableMsg\",\"fields\":[{\"name\":\"perResource\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"SelectorValueMsg\",\"fields\":[{\"name\":\"selectorValue\",\"type\":[{\"type\":\"record\",\"name\":\"EffectivePriceTableMsg\",\"fields\":[{\"name\":\"priceOverrides\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EffectiveUnitPriceMsg\",\"fields\":[{\"name\":\"unitPrice\",\"type\":\"double\"},{\"name\":\"when\",\"type\":[{\"type\":\"record\",\"name\":\"CronSpecTupleMsg\",\"fields\":[{\"name\":\"a\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"b\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},\"null\"]}]}}}]},{\"type\":\"map\",\"values\":\"SelectorValueMsg\",\"avro.java.string\":\"String\"}]}]},\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}}]},\"null\"]}]}}}]}},{\"name\":\"latestUpdateMillis\",\"type\":\"long\"},{\"name\":\"latestResourceEventOccurredMillis\",\"type\":\"long\"},{\"name\":\"billingPeriodOutOfSyncResourceEventsCounter\",\"type\":\"long\",\"default\":0},{\"name\":\"billingYear\",\"type\":\"int\"},{\"name\":\"billingMonth\",\"type\":\"int\"},{\"name\":\"billingMonthDay\",\"type\":\"int\"},{\"name\":\"isFullBillingMonth\",\"type\":\"boolean\",\"default\":false},{\"name\":\"walletEntries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"WalletEntryMsg\",\"fields\":[{\"name\":\"userID\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"sumOfCreditsToSubtract\",\"type\":\"double\"},{\"name\":\"oldTotalCredits\",\"type\":\"double\"},{\"name\":\"newTotalCredits\",\"type\":\"double\"},{\"name\":\"whenComputedMillis\",\"type\":\"long\"},{\"name\":\"referenceStartMillis\",\"type\":\"long\"},{\"name\":\"referenceStopMillis\",\"type\":\"long\"},{\"name\":\"billingYear\",\"type\":\"int\"},{\"name\":\"billingMonth\",\"type\":\"int\"},{\"name\":\"billingMonthDay\",\"type\":\"int\"},{\"name\":\"chargeslots\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ChargeslotMsg\",\"fields\":[{\"name\":\"startMillis\",\"type\":\"long\"},{\"name\":\"stopMillis\",\"type\":\"long\"},{\"name\":\"unitPrice\",\"type\":\"double\"},{\"name\":\"explanation\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"\"},{\"name\":\"creditsToSubtract\",\"type\":\"double\",\"default\":0.0}]}}},{\"name\":\"resourceEvents\",\"type\":{\"type\":\"array\",\"items\":\"ResourceEventMsg\"}},{\"name\":\"resourceType\",\"type\":\"ResourceTypeMsg\"},{\"name\":\"isSynthetic\",\"type\":\"boolean\",\"default\":false}]}}}]}");
+ @Deprecated public java.lang.String originalID;
+ @Deprecated public java.lang.String inStoreID;
+ @Deprecated public java.lang.String userID;
+ @Deprecated public long occurredMillis;
+ @Deprecated public java.lang.String parentOriginalID;
+ @Deprecated public java.lang.String parentInStoreID;
+ @Deprecated public java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg> resourceTypesMap;
+ @Deprecated public java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg> stateOfResources;
+ @Deprecated public double totalCredits;
+ @Deprecated public gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg agreementHistory;
+ @Deprecated public long latestUpdateMillis;
+ @Deprecated public long latestResourceEventOccurredMillis;
+ @Deprecated public long billingPeriodOutOfSyncResourceEventsCounter;
+ @Deprecated public int billingYear;
+ @Deprecated public int billingMonth;
+ @Deprecated public int billingMonthDay;
+ @Deprecated public boolean isFullBillingMonth;
+ @Deprecated public java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg> walletEntries;
+ public org.apache.avro.Schema getSchema() { return SCHEMA$; }
+ // Used by DatumWriter. Applications should not call.
+ public java.lang.Object get(int field$) {
+ switch (field$) {
+ case 0: return originalID;
+ case 1: return inStoreID;
+ case 2: return userID;
+ case 3: return occurredMillis;
+ case 4: return parentOriginalID;
+ case 5: return parentInStoreID;
+ case 6: return resourceTypesMap;
+ case 7: return stateOfResources;
+ case 8: return totalCredits;
+ case 9: return agreementHistory;
+ case 10: return latestUpdateMillis;
+ case 11: return latestResourceEventOccurredMillis;
+ case 12: return billingPeriodOutOfSyncResourceEventsCounter;
+ case 13: return billingYear;
+ case 14: return billingMonth;
+ case 15: return billingMonthDay;
+ case 16: return isFullBillingMonth;
+ case 17: return walletEntries;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ }
+ }
+ // Used by DatumReader. Applications should not call.
+ @SuppressWarnings(value="unchecked")
+ public void put(int field$, java.lang.Object value$) {
+ switch (field$) {
+ case 0: originalID = (java.lang.String)value$; break;
+ case 1: inStoreID = (java.lang.String)value$; break;
+ case 2: userID = (java.lang.String)value$; break;
+ case 3: occurredMillis = (java.lang.Long)value$; break;
+ case 4: parentOriginalID = (java.lang.String)value$; break;
+ case 5: parentInStoreID = (java.lang.String)value$; break;
+ case 6: resourceTypesMap = (java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg>)value$; break;
+ case 7: stateOfResources = (java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg>)value$; break;
+ case 8: totalCredits = (java.lang.Double)value$; break;
+ case 9: agreementHistory = (gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg)value$; break;
+ case 10: latestUpdateMillis = (java.lang.Long)value$; break;
+ case 11: latestResourceEventOccurredMillis = (java.lang.Long)value$; break;
+ case 12: billingPeriodOutOfSyncResourceEventsCounter = (java.lang.Long)value$; break;
+ case 13: billingYear = (java.lang.Integer)value$; break;
+ case 14: billingMonth = (java.lang.Integer)value$; break;
+ case 15: billingMonthDay = (java.lang.Integer)value$; break;
+ case 16: isFullBillingMonth = (java.lang.Boolean)value$; break;
+ case 17: walletEntries = (java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg>)value$; break;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ }
+ }
+
+ /**
+ * Gets the value of the 'originalID' field.
+ */
+ public java.lang.String getOriginalID() {
+ return originalID;
+ }
+
+ /**
+ * Sets the value of the 'originalID' field.
+ * @param value the value to set.
+ */
+ public void setOriginalID(java.lang.String value) {
+ this.originalID = value;
+ }
+
+ /**
+ * Gets the value of the 'inStoreID' field.
+ */
+ public java.lang.String getInStoreID() {
+ return inStoreID;
+ }
+
+ /**
+ * Sets the value of the 'inStoreID' field.
+ * @param value the value to set.
+ */
+ public void setInStoreID(java.lang.String value) {
+ this.inStoreID = value;
+ }
+
+ /**
+ * Gets the value of the 'userID' field.
+ */
+ public java.lang.String getUserID() {
+ return userID;
+ }
+
+ /**
+ * Sets the value of the 'userID' field.
+ * @param value the value to set.
+ */
+ public void setUserID(java.lang.String value) {
+ this.userID = value;
+ }
+
+ /**
+ * Gets the value of the 'occurredMillis' field.
+ */
+ public java.lang.Long getOccurredMillis() {
+ return occurredMillis;
+ }
+
+ /**
+ * Sets the value of the 'occurredMillis' field.
+ * @param value the value to set.
+ */
+ public void setOccurredMillis(java.lang.Long value) {
+ this.occurredMillis = value;
+ }
+
+ /**
+ * Gets the value of the 'parentOriginalID' field.
+ */
+ public java.lang.String getParentOriginalID() {
+ return parentOriginalID;
+ }
+
+ /**
+ * Sets the value of the 'parentOriginalID' field.
+ * @param value the value to set.
+ */
+ public void setParentOriginalID(java.lang.String value) {
+ this.parentOriginalID = value;
+ }
+
+ /**
+ * Gets the value of the 'parentInStoreID' field.
+ */
+ public java.lang.String getParentInStoreID() {
+ return parentInStoreID;
+ }
+
+ /**
+ * Sets the value of the 'parentInStoreID' field.
+ * @param value the value to set.
+ */
+ public void setParentInStoreID(java.lang.String value) {
+ this.parentInStoreID = value;
+ }
+
+ /**
+ * Gets the value of the 'resourceTypesMap' field.
+ */
+ public java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg> getResourceTypesMap() {
+ return resourceTypesMap;
+ }
+
+ /**
+ * Sets the value of the 'resourceTypesMap' field.
+ * @param value the value to set.
+ */
+ public void setResourceTypesMap(java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg> value) {
+ this.resourceTypesMap = value;
+ }
+
+ /**
+ * Gets the value of the 'stateOfResources' field.
+ */
+ public java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg> getStateOfResources() {
+ return stateOfResources;
+ }
+
+ /**
+ * Sets the value of the 'stateOfResources' field.
+ * @param value the value to set.
+ */
+ public void setStateOfResources(java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg> value) {
+ this.stateOfResources = value;
+ }
+
+ /**
+ * Gets the value of the 'totalCredits' field.
+ */
+ public java.lang.Double getTotalCredits() {
+ return totalCredits;
+ }
+
+ /**
+ * Sets the value of the 'totalCredits' field.
+ * @param value the value to set.
+ */
+ public void setTotalCredits(java.lang.Double value) {
+ this.totalCredits = value;
+ }
+
+ /**
+ * Gets the value of the 'agreementHistory' field.
+ */
+ public gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg getAgreementHistory() {
+ return agreementHistory;
+ }
+
+ /**
+ * Sets the value of the 'agreementHistory' field.
+ * @param value the value to set.
+ */
+ public void setAgreementHistory(gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg value) {
+ this.agreementHistory = value;
+ }
+
+ /**
+ * Gets the value of the 'latestUpdateMillis' field.
+ */
+ public java.lang.Long getLatestUpdateMillis() {
+ return latestUpdateMillis;
+ }
+
+ /**
+ * Sets the value of the 'latestUpdateMillis' field.
+ * @param value the value to set.
+ */
+ public void setLatestUpdateMillis(java.lang.Long value) {
+ this.latestUpdateMillis = value;
+ }
+
+ /**
+ * Gets the value of the 'latestResourceEventOccurredMillis' field.
+ */
+ public java.lang.Long getLatestResourceEventOccurredMillis() {
+ return latestResourceEventOccurredMillis;
+ }
+
+ /**
+ * Sets the value of the 'latestResourceEventOccurredMillis' field.
+ * @param value the value to set.
+ */
+ public void setLatestResourceEventOccurredMillis(java.lang.Long value) {
+ this.latestResourceEventOccurredMillis = value;
+ }
+
+ /**
+ * Gets the value of the 'billingPeriodOutOfSyncResourceEventsCounter' field.
+ */
+ public java.lang.Long getBillingPeriodOutOfSyncResourceEventsCounter() {
+ return billingPeriodOutOfSyncResourceEventsCounter;
+ }
+
+ /**
+ * Sets the value of the 'billingPeriodOutOfSyncResourceEventsCounter' field.
+ * @param value the value to set.
+ */
+ public void setBillingPeriodOutOfSyncResourceEventsCounter(java.lang.Long value) {
+ this.billingPeriodOutOfSyncResourceEventsCounter = value;
+ }
+
+ /**
+ * Gets the value of the 'billingYear' field.
+ */
+ public java.lang.Integer getBillingYear() {
+ return billingYear;
+ }
+
+ /**
+ * Sets the value of the 'billingYear' field.
+ * @param value the value to set.
+ */
+ public void setBillingYear(java.lang.Integer value) {
+ this.billingYear = value;
+ }
+
+ /**
+ * Gets the value of the 'billingMonth' field.
+ */
+ public java.lang.Integer getBillingMonth() {
+ return billingMonth;
+ }
+
+ /**
+ * Sets the value of the 'billingMonth' field.
+ * @param value the value to set.
+ */
+ public void setBillingMonth(java.lang.Integer value) {
+ this.billingMonth = value;
+ }
+
+ /**
+ * Gets the value of the 'billingMonthDay' field.
+ */
+ public java.lang.Integer getBillingMonthDay() {
+ return billingMonthDay;
+ }
+
+ /**
+ * Sets the value of the 'billingMonthDay' field.
+ * @param value the value to set.
+ */
+ public void setBillingMonthDay(java.lang.Integer value) {
+ this.billingMonthDay = value;
+ }
+
+ /**
+ * Gets the value of the 'isFullBillingMonth' field.
+ */
+ public java.lang.Boolean getIsFullBillingMonth() {
+ return isFullBillingMonth;
+ }
+
+ /**
+ * Sets the value of the 'isFullBillingMonth' field.
+ * @param value the value to set.
+ */
+ public void setIsFullBillingMonth(java.lang.Boolean value) {
+ this.isFullBillingMonth = value;
+ }
+
+ /**
+ * Gets the value of the 'walletEntries' field.
+ */
+ public java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg> getWalletEntries() {
+ return walletEntries;
+ }
+
+ /**
+ * Sets the value of the 'walletEntries' field.
+ * @param value the value to set.
+ */
+ public void setWalletEntries(java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg> value) {
+ this.walletEntries = value;
+ }
+
+ /** Creates a new UserStateMsg RecordBuilder */
+ public static gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder newBuilder() {
+ return new gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder();
+ }
+
+ /** Creates a new UserStateMsg RecordBuilder by copying an existing Builder */
+ public static gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder newBuilder(gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder other) {
+ return new gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder(other);
+ }
+
+ /** Creates a new UserStateMsg RecordBuilder by copying an existing UserStateMsg instance */
+ public static gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder newBuilder(gr.grnet.aquarium.message.avro.gen.UserStateMsg other) {
+ return new gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder(other);
+ }
+
+ /**
+ * RecordBuilder for UserStateMsg instances.
+ */
+ public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<UserStateMsg>
+ implements org.apache.avro.data.RecordBuilder<UserStateMsg> {
+
+ private java.lang.String originalID;
+ private java.lang.String inStoreID;
+ private java.lang.String userID;
+ private long occurredMillis;
+ private java.lang.String parentOriginalID;
+ private java.lang.String parentInStoreID;
+ private java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg> resourceTypesMap;
+ private java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg> stateOfResources;
+ private double totalCredits;
+ private gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg agreementHistory;
+ private long latestUpdateMillis;
+ private long latestResourceEventOccurredMillis;
+ private long billingPeriodOutOfSyncResourceEventsCounter;
+ private int billingYear;
+ private int billingMonth;
+ private int billingMonthDay;
+ private boolean isFullBillingMonth;
+ private java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg> walletEntries;
+
+ /** Creates a new Builder */
+ private Builder() {
+ super(gr.grnet.aquarium.message.avro.gen.UserStateMsg.SCHEMA$);
+ }
+
+ /** Creates a Builder by copying an existing Builder */
+ private Builder(gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder other) {
+ super(other);
+ }
+
+ /** Creates a Builder by copying an existing UserStateMsg instance */
+ private Builder(gr.grnet.aquarium.message.avro.gen.UserStateMsg other) {
+ super(gr.grnet.aquarium.message.avro.gen.UserStateMsg.SCHEMA$);
+ if (isValidValue(fields()[0], other.originalID)) {
+ this.originalID = (java.lang.String) data().deepCopy(fields()[0].schema(), other.originalID);
+ fieldSetFlags()[0] = true;
+ }
+ if (isValidValue(fields()[1], other.inStoreID)) {
+ this.inStoreID = (java.lang.String) data().deepCopy(fields()[1].schema(), other.inStoreID);
+ fieldSetFlags()[1] = true;
+ }
+ if (isValidValue(fields()[2], other.userID)) {
+ this.userID = (java.lang.String) data().deepCopy(fields()[2].schema(), other.userID);
+ fieldSetFlags()[2] = true;
+ }
+ if (isValidValue(fields()[3], other.occurredMillis)) {
+ this.occurredMillis = (java.lang.Long) data().deepCopy(fields()[3].schema(), other.occurredMillis);
+ fieldSetFlags()[3] = true;
+ }
+ if (isValidValue(fields()[4], other.parentOriginalID)) {
+ this.parentOriginalID = (java.lang.String) data().deepCopy(fields()[4].schema(), other.parentOriginalID);
+ fieldSetFlags()[4] = true;
+ }
+ if (isValidValue(fields()[5], other.parentInStoreID)) {
+ this.parentInStoreID = (java.lang.String) data().deepCopy(fields()[5].schema(), other.parentInStoreID);
+ fieldSetFlags()[5] = true;
+ }
+ if (isValidValue(fields()[6], other.resourceTypesMap)) {
+ this.resourceTypesMap = (java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg>) data().deepCopy(fields()[6].schema(), other.resourceTypesMap);
+ fieldSetFlags()[6] = true;
+ }
+ if (isValidValue(fields()[7], other.stateOfResources)) {
+ this.stateOfResources = (java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg>) data().deepCopy(fields()[7].schema(), other.stateOfResources);
+ fieldSetFlags()[7] = true;
+ }
+ if (isValidValue(fields()[8], other.totalCredits)) {
+ this.totalCredits = (java.lang.Double) data().deepCopy(fields()[8].schema(), other.totalCredits);
+ fieldSetFlags()[8] = true;
+ }
+ if (isValidValue(fields()[9], other.agreementHistory)) {
+ this.agreementHistory = (gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg) data().deepCopy(fields()[9].schema(), other.agreementHistory);
+ fieldSetFlags()[9] = true;
+ }
+ if (isValidValue(fields()[10], other.latestUpdateMillis)) {
+ this.latestUpdateMillis = (java.lang.Long) data().deepCopy(fields()[10].schema(), other.latestUpdateMillis);
+ fieldSetFlags()[10] = true;
+ }
+ if (isValidValue(fields()[11], other.latestResourceEventOccurredMillis)) {
+ this.latestResourceEventOccurredMillis = (java.lang.Long) data().deepCopy(fields()[11].schema(), other.latestResourceEventOccurredMillis);
+ fieldSetFlags()[11] = true;
+ }
+ if (isValidValue(fields()[12], other.billingPeriodOutOfSyncResourceEventsCounter)) {
+ this.billingPeriodOutOfSyncResourceEventsCounter = (java.lang.Long) data().deepCopy(fields()[12].schema(), other.billingPeriodOutOfSyncResourceEventsCounter);
+ fieldSetFlags()[12] = true;
+ }
+ if (isValidValue(fields()[13], other.billingYear)) {
+ this.billingYear = (java.lang.Integer) data().deepCopy(fields()[13].schema(), other.billingYear);
+ fieldSetFlags()[13] = true;
+ }
+ if (isValidValue(fields()[14], other.billingMonth)) {
+ this.billingMonth = (java.lang.Integer) data().deepCopy(fields()[14].schema(), other.billingMonth);
+ fieldSetFlags()[14] = true;
+ }
+ if (isValidValue(fields()[15], other.billingMonthDay)) {
+ this.billingMonthDay = (java.lang.Integer) data().deepCopy(fields()[15].schema(), other.billingMonthDay);
+ fieldSetFlags()[15] = true;
+ }
+ if (isValidValue(fields()[16], other.isFullBillingMonth)) {
+ this.isFullBillingMonth = (java.lang.Boolean) data().deepCopy(fields()[16].schema(), other.isFullBillingMonth);
+ fieldSetFlags()[16] = true;
+ }
+ if (isValidValue(fields()[17], other.walletEntries)) {
+ this.walletEntries = (java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg>) data().deepCopy(fields()[17].schema(), other.walletEntries);
+ fieldSetFlags()[17] = true;
+ }
+ }
+
+ /** Gets the value of the 'originalID' field */
+ public java.lang.String getOriginalID() {
+ return originalID;
+ }
+
+ /** Sets the value of the 'originalID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setOriginalID(java.lang.String value) {
+ validate(fields()[0], value);
+ this.originalID = value;
+ fieldSetFlags()[0] = true;
+ return this;
+ }
+
+ /** Checks whether the 'originalID' field has been set */
+ public boolean hasOriginalID() {
+ return fieldSetFlags()[0];
+ }
+
+ /** Clears the value of the 'originalID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearOriginalID() {
+ originalID = null;
+ fieldSetFlags()[0] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'inStoreID' field */
+ public java.lang.String getInStoreID() {
+ return inStoreID;
+ }
+
+ /** Sets the value of the 'inStoreID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setInStoreID(java.lang.String value) {
+ validate(fields()[1], value);
+ this.inStoreID = value;
+ fieldSetFlags()[1] = true;
+ return this;
+ }
+
+ /** Checks whether the 'inStoreID' field has been set */
+ public boolean hasInStoreID() {
+ return fieldSetFlags()[1];
+ }
+
+ /** Clears the value of the 'inStoreID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearInStoreID() {
+ inStoreID = null;
+ fieldSetFlags()[1] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'userID' field */
+ public java.lang.String getUserID() {
+ return userID;
+ }
+
+ /** Sets the value of the 'userID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setUserID(java.lang.String value) {
+ validate(fields()[2], value);
+ this.userID = value;
+ fieldSetFlags()[2] = true;
+ return this;
+ }
+
+ /** Checks whether the 'userID' field has been set */
+ public boolean hasUserID() {
+ return fieldSetFlags()[2];
+ }
+
+ /** Clears the value of the 'userID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearUserID() {
+ userID = null;
+ fieldSetFlags()[2] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'occurredMillis' field */
+ public java.lang.Long getOccurredMillis() {
+ return occurredMillis;
+ }
+
+ /** Sets the value of the 'occurredMillis' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setOccurredMillis(long value) {
+ validate(fields()[3], value);
+ this.occurredMillis = value;
+ fieldSetFlags()[3] = true;
+ return this;
+ }
+
+ /** Checks whether the 'occurredMillis' field has been set */
+ public boolean hasOccurredMillis() {
+ return fieldSetFlags()[3];
+ }
+
+ /** Clears the value of the 'occurredMillis' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearOccurredMillis() {
+ fieldSetFlags()[3] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'parentOriginalID' field */
+ public java.lang.String getParentOriginalID() {
+ return parentOriginalID;
+ }
+
+ /** Sets the value of the 'parentOriginalID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setParentOriginalID(java.lang.String value) {
+ validate(fields()[4], value);
+ this.parentOriginalID = value;
+ fieldSetFlags()[4] = true;
+ return this;
+ }
+
+ /** Checks whether the 'parentOriginalID' field has been set */
+ public boolean hasParentOriginalID() {
+ return fieldSetFlags()[4];
+ }
+
+ /** Clears the value of the 'parentOriginalID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearParentOriginalID() {
+ parentOriginalID = null;
+ fieldSetFlags()[4] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'parentInStoreID' field */
+ public java.lang.String getParentInStoreID() {
+ return parentInStoreID;
+ }
+
+ /** Sets the value of the 'parentInStoreID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setParentInStoreID(java.lang.String value) {
+ validate(fields()[5], value);
+ this.parentInStoreID = value;
+ fieldSetFlags()[5] = true;
+ return this;
+ }
+
+ /** Checks whether the 'parentInStoreID' field has been set */
+ public boolean hasParentInStoreID() {
+ return fieldSetFlags()[5];
+ }
+
+ /** Clears the value of the 'parentInStoreID' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearParentInStoreID() {
+ parentInStoreID = null;
+ fieldSetFlags()[5] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'resourceTypesMap' field */
+ public java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg> getResourceTypesMap() {
+ return resourceTypesMap;
+ }
+
+ /** Sets the value of the 'resourceTypesMap' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setResourceTypesMap(java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg> value) {
+ validate(fields()[6], value);
+ this.resourceTypesMap = value;
+ fieldSetFlags()[6] = true;
+ return this;
+ }
+
+ /** Checks whether the 'resourceTypesMap' field has been set */
+ public boolean hasResourceTypesMap() {
+ return fieldSetFlags()[6];
+ }
+
+ /** Clears the value of the 'resourceTypesMap' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearResourceTypesMap() {
+ resourceTypesMap = null;
+ fieldSetFlags()[6] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'stateOfResources' field */
+ public java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg> getStateOfResources() {
+ return stateOfResources;
+ }
+
+ /** Sets the value of the 'stateOfResources' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setStateOfResources(java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg> value) {
+ validate(fields()[7], value);
+ this.stateOfResources = value;
+ fieldSetFlags()[7] = true;
+ return this;
+ }
+
+ /** Checks whether the 'stateOfResources' field has been set */
+ public boolean hasStateOfResources() {
+ return fieldSetFlags()[7];
+ }
+
+ /** Clears the value of the 'stateOfResources' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearStateOfResources() {
+ stateOfResources = null;
+ fieldSetFlags()[7] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'totalCredits' field */
+ public java.lang.Double getTotalCredits() {
+ return totalCredits;
+ }
+
+ /** Sets the value of the 'totalCredits' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setTotalCredits(double value) {
+ validate(fields()[8], value);
+ this.totalCredits = value;
+ fieldSetFlags()[8] = true;
+ return this;
+ }
+
+ /** Checks whether the 'totalCredits' field has been set */
+ public boolean hasTotalCredits() {
+ return fieldSetFlags()[8];
+ }
+
+ /** Clears the value of the 'totalCredits' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearTotalCredits() {
+ fieldSetFlags()[8] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'agreementHistory' field */
+ public gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg getAgreementHistory() {
+ return agreementHistory;
+ }
+
+ /** Sets the value of the 'agreementHistory' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setAgreementHistory(gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg value) {
+ validate(fields()[9], value);
+ this.agreementHistory = value;
+ fieldSetFlags()[9] = true;
+ return this;
+ }
+
+ /** Checks whether the 'agreementHistory' field has been set */
+ public boolean hasAgreementHistory() {
+ return fieldSetFlags()[9];
+ }
+
+ /** Clears the value of the 'agreementHistory' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearAgreementHistory() {
+ agreementHistory = null;
+ fieldSetFlags()[9] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'latestUpdateMillis' field */
+ public java.lang.Long getLatestUpdateMillis() {
+ return latestUpdateMillis;
+ }
+
+ /** Sets the value of the 'latestUpdateMillis' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setLatestUpdateMillis(long value) {
+ validate(fields()[10], value);
+ this.latestUpdateMillis = value;
+ fieldSetFlags()[10] = true;
+ return this;
+ }
+
+ /** Checks whether the 'latestUpdateMillis' field has been set */
+ public boolean hasLatestUpdateMillis() {
+ return fieldSetFlags()[10];
+ }
+
+ /** Clears the value of the 'latestUpdateMillis' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearLatestUpdateMillis() {
+ fieldSetFlags()[10] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'latestResourceEventOccurredMillis' field */
+ public java.lang.Long getLatestResourceEventOccurredMillis() {
+ return latestResourceEventOccurredMillis;
+ }
+
+ /** Sets the value of the 'latestResourceEventOccurredMillis' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setLatestResourceEventOccurredMillis(long value) {
+ validate(fields()[11], value);
+ this.latestResourceEventOccurredMillis = value;
+ fieldSetFlags()[11] = true;
+ return this;
+ }
+
+ /** Checks whether the 'latestResourceEventOccurredMillis' field has been set */
+ public boolean hasLatestResourceEventOccurredMillis() {
+ return fieldSetFlags()[11];
+ }
+
+ /** Clears the value of the 'latestResourceEventOccurredMillis' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearLatestResourceEventOccurredMillis() {
+ fieldSetFlags()[11] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'billingPeriodOutOfSyncResourceEventsCounter' field */
+ public java.lang.Long getBillingPeriodOutOfSyncResourceEventsCounter() {
+ return billingPeriodOutOfSyncResourceEventsCounter;
+ }
+
+ /** Sets the value of the 'billingPeriodOutOfSyncResourceEventsCounter' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setBillingPeriodOutOfSyncResourceEventsCounter(long value) {
+ validate(fields()[12], value);
+ this.billingPeriodOutOfSyncResourceEventsCounter = value;
+ fieldSetFlags()[12] = true;
+ return this;
+ }
+
+ /** Checks whether the 'billingPeriodOutOfSyncResourceEventsCounter' field has been set */
+ public boolean hasBillingPeriodOutOfSyncResourceEventsCounter() {
+ return fieldSetFlags()[12];
+ }
+
+ /** Clears the value of the 'billingPeriodOutOfSyncResourceEventsCounter' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearBillingPeriodOutOfSyncResourceEventsCounter() {
+ fieldSetFlags()[12] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'billingYear' field */
+ public java.lang.Integer getBillingYear() {
+ return billingYear;
+ }
+
+ /** Sets the value of the 'billingYear' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setBillingYear(int value) {
+ validate(fields()[13], value);
+ this.billingYear = value;
+ fieldSetFlags()[13] = true;
+ return this;
+ }
+
+ /** Checks whether the 'billingYear' field has been set */
+ public boolean hasBillingYear() {
+ return fieldSetFlags()[13];
+ }
+
+ /** Clears the value of the 'billingYear' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearBillingYear() {
+ fieldSetFlags()[13] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'billingMonth' field */
+ public java.lang.Integer getBillingMonth() {
+ return billingMonth;
+ }
+
+ /** Sets the value of the 'billingMonth' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setBillingMonth(int value) {
+ validate(fields()[14], value);
+ this.billingMonth = value;
+ fieldSetFlags()[14] = true;
+ return this;
+ }
+
+ /** Checks whether the 'billingMonth' field has been set */
+ public boolean hasBillingMonth() {
+ return fieldSetFlags()[14];
+ }
+
+ /** Clears the value of the 'billingMonth' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearBillingMonth() {
+ fieldSetFlags()[14] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'billingMonthDay' field */
+ public java.lang.Integer getBillingMonthDay() {
+ return billingMonthDay;
+ }
+
+ /** Sets the value of the 'billingMonthDay' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setBillingMonthDay(int value) {
+ validate(fields()[15], value);
+ this.billingMonthDay = value;
+ fieldSetFlags()[15] = true;
+ return this;
+ }
+
+ /** Checks whether the 'billingMonthDay' field has been set */
+ public boolean hasBillingMonthDay() {
+ return fieldSetFlags()[15];
+ }
+
+ /** Clears the value of the 'billingMonthDay' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearBillingMonthDay() {
+ fieldSetFlags()[15] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'isFullBillingMonth' field */
+ public java.lang.Boolean getIsFullBillingMonth() {
+ return isFullBillingMonth;
+ }
+
+ /** Sets the value of the 'isFullBillingMonth' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setIsFullBillingMonth(boolean value) {
+ validate(fields()[16], value);
+ this.isFullBillingMonth = value;
+ fieldSetFlags()[16] = true;
+ return this;
+ }
+
+ /** Checks whether the 'isFullBillingMonth' field has been set */
+ public boolean hasIsFullBillingMonth() {
+ return fieldSetFlags()[16];
+ }
+
+ /** Clears the value of the 'isFullBillingMonth' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearIsFullBillingMonth() {
+ fieldSetFlags()[16] = false;
+ return this;
+ }
+
+ /** Gets the value of the 'walletEntries' field */
+ public java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg> getWalletEntries() {
+ return walletEntries;
+ }
+
+ /** Sets the value of the 'walletEntries' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder setWalletEntries(java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg> value) {
+ validate(fields()[17], value);
+ this.walletEntries = value;
+ fieldSetFlags()[17] = true;
+ return this;
+ }
+
+ /** Checks whether the 'walletEntries' field has been set */
+ public boolean hasWalletEntries() {
+ return fieldSetFlags()[17];
+ }
+
+ /** Clears the value of the 'walletEntries' field */
+ public gr.grnet.aquarium.message.avro.gen.UserStateMsg.Builder clearWalletEntries() {
+ walletEntries = null;
+ fieldSetFlags()[17] = false;
+ return this;
+ }
+
+ @Override
+ public UserStateMsg build() {
+ try {
+ UserStateMsg record = new UserStateMsg();
+ record.originalID = fieldSetFlags()[0] ? this.originalID : (java.lang.String) defaultValue(fields()[0]);
+ record.inStoreID = fieldSetFlags()[1] ? this.inStoreID : (java.lang.String) defaultValue(fields()[1]);
+ record.userID = fieldSetFlags()[2] ? this.userID : (java.lang.String) defaultValue(fields()[2]);
+ record.occurredMillis = fieldSetFlags()[3] ? this.occurredMillis : (java.lang.Long) defaultValue(fields()[3]);
+ record.parentOriginalID = fieldSetFlags()[4] ? this.parentOriginalID : (java.lang.String) defaultValue(fields()[4]);
+ record.parentInStoreID = fieldSetFlags()[5] ? this.parentInStoreID : (java.lang.String) defaultValue(fields()[5]);
+ record.resourceTypesMap = fieldSetFlags()[6] ? this.resourceTypesMap : (java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourceTypeMsg>) defaultValue(fields()[6]);
+ record.stateOfResources = fieldSetFlags()[7] ? this.stateOfResources : (java.util.Map<java.lang.String,gr.grnet.aquarium.message.avro.gen.ResourcesChargingStateMsg>) defaultValue(fields()[7]);
+ record.totalCredits = fieldSetFlags()[8] ? this.totalCredits : (java.lang.Double) defaultValue(fields()[8]);
+ record.agreementHistory = fieldSetFlags()[9] ? this.agreementHistory : (gr.grnet.aquarium.message.avro.gen.UserAgreementHistoryMsg) defaultValue(fields()[9]);
+ record.latestUpdateMillis = fieldSetFlags()[10] ? this.latestUpdateMillis : (java.lang.Long) defaultValue(fields()[10]);
+ record.latestResourceEventOccurredMillis = fieldSetFlags()[11] ? this.latestResourceEventOccurredMillis : (java.lang.Long) defaultValue(fields()[11]);
+ record.billingPeriodOutOfSyncResourceEventsCounter = fieldSetFlags()[12] ? this.billingPeriodOutOfSyncResourceEventsCounter : (java.lang.Long) defaultValue(fields()[12]);
+ record.billingYear = fieldSetFlags()[13] ? this.billingYear : (java.lang.Integer) defaultValue(fields()[13]);
+ record.billingMonth = fieldSetFlags()[14] ? this.billingMonth : (java.lang.Integer) defaultValue(fields()[14]);
+ record.billingMonthDay = fieldSetFlags()[15] ? this.billingMonthDay : (java.lang.Integer) defaultValue(fields()[15]);
+ record.isFullBillingMonth = fieldSetFlags()[16] ? this.isFullBillingMonth : (java.lang.Boolean) defaultValue(fields()[16]);
+ record.walletEntries = fieldSetFlags()[17] ? this.walletEntries : (java.util.List<gr.grnet.aquarium.message.avro.gen.WalletEntryMsg>) defaultValue(fields()[17]);
+ return record;
+ } catch (Exception e) {
+ throw new org.apache.avro.AvroRuntimeException(e);
+ }
+ }
+ }
+}