Rename conf to policy and make parentID optional (via null)
[aquarium] / src / main / java / gr / grnet / aquarium / message / avro / gen / _WalletEntry.java
1 /**
2  * Autogenerated by Avro
3  * 
4  * DO NOT EDIT DIRECTLY
5  */
6 package gr.grnet.aquarium.message.avro.gen;  
7 @SuppressWarnings("all")
8 public class _WalletEntry extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
9   public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"_WalletEntry\",\"namespace\":\"gr.grnet.aquarium.message.avro.gen\",\"fields\":[{\"name\":\"userID\",\"type\":\"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\":\"billingDay\",\"type\":\"int\"},{\"name\":\"chargeslots\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"_Chargeslot\",\"fields\":[{\"name\":\"startMillis\",\"type\":\"long\"},{\"name\":\"stopMillis\",\"type\":\"long\"},{\"name\":\"unitPrice\",\"type\":\"double\"},{\"name\":\"explanation\",\"type\":\"string\",\"default\":\"\"},{\"name\":\"creditsToSubtract\",\"type\":\"double\"}]}}},{\"name\":\"resourceEvents\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"_ResourceEvent\",\"fields\":[{\"name\":\"id\",\"type\":\"string\",\"aliases\":[\"originalID\",\"ID\"]},{\"name\":\"idInStore\",\"type\":\"string\"},{\"name\":\"occurredMillis\",\"type\":\"long\"},{\"name\":\"receivedMillis\",\"type\":\"long\",\"default\":0},{\"name\":\"userID\",\"type\":\"string\"},{\"name\":\"clientID\",\"type\":\"string\"},{\"name\":\"eventVersion\",\"type\":\"string\",\"default\":\"1.0\"},{\"name\":\"resource\",\"type\":\"string\",\"aliases\":[\"resourceType\"]},{\"name\":\"instanceID\",\"type\":\"string\"},{\"name\":\"value\",\"type\":\"string\"},{\"name\":\"details\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"_AnyValue\",\"fields\":[{\"name\":\"anyValue\",\"type\":[\"null\",\"int\",\"long\",\"boolean\",\"double\",\"bytes\",\"string\"]}]}}}]}}},{\"name\":\"resourceType\",\"type\":{\"type\":\"record\",\"name\":\"_ResourceType\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"unit\",\"type\":\"string\"},{\"name\":\"chargingBehaviorClass\",\"type\":\"string\"}]}},{\"name\":\"isSynthetic\",\"type\":\"boolean\",\"default\":false}]}");
10   @Deprecated public java.lang.CharSequence userID;
11   @Deprecated public double sumOfCreditsToSubtract;
12   @Deprecated public double oldTotalCredits;
13   @Deprecated public double newTotalCredits;
14   @Deprecated public long whenComputedMillis;
15   @Deprecated public long referenceStartMillis;
16   @Deprecated public long referenceStopMillis;
17   @Deprecated public int billingYear;
18   @Deprecated public int billingMonth;
19   @Deprecated public int billingDay;
20   @Deprecated public java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> chargeslots;
21   @Deprecated public java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> resourceEvents;
22   @Deprecated public gr.grnet.aquarium.message.avro.gen._ResourceType resourceType;
23   @Deprecated public boolean isSynthetic;
24   public org.apache.avro.Schema getSchema() { return SCHEMA$; }
25   // Used by DatumWriter.  Applications should not call. 
26   public java.lang.Object get(int field$) {
27     switch (field$) {
28     case 0: return userID;
29     case 1: return sumOfCreditsToSubtract;
30     case 2: return oldTotalCredits;
31     case 3: return newTotalCredits;
32     case 4: return whenComputedMillis;
33     case 5: return referenceStartMillis;
34     case 6: return referenceStopMillis;
35     case 7: return billingYear;
36     case 8: return billingMonth;
37     case 9: return billingDay;
38     case 10: return chargeslots;
39     case 11: return resourceEvents;
40     case 12: return resourceType;
41     case 13: return isSynthetic;
42     default: throw new org.apache.avro.AvroRuntimeException("Bad index");
43     }
44   }
45   // Used by DatumReader.  Applications should not call. 
46   @SuppressWarnings(value="unchecked")
47   public void put(int field$, java.lang.Object value$) {
48     switch (field$) {
49     case 0: userID = (java.lang.CharSequence)value$; break;
50     case 1: sumOfCreditsToSubtract = (java.lang.Double)value$; break;
51     case 2: oldTotalCredits = (java.lang.Double)value$; break;
52     case 3: newTotalCredits = (java.lang.Double)value$; break;
53     case 4: whenComputedMillis = (java.lang.Long)value$; break;
54     case 5: referenceStartMillis = (java.lang.Long)value$; break;
55     case 6: referenceStopMillis = (java.lang.Long)value$; break;
56     case 7: billingYear = (java.lang.Integer)value$; break;
57     case 8: billingMonth = (java.lang.Integer)value$; break;
58     case 9: billingDay = (java.lang.Integer)value$; break;
59     case 10: chargeslots = (java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot>)value$; break;
60     case 11: resourceEvents = (java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent>)value$; break;
61     case 12: resourceType = (gr.grnet.aquarium.message.avro.gen._ResourceType)value$; break;
62     case 13: isSynthetic = (java.lang.Boolean)value$; break;
63     default: throw new org.apache.avro.AvroRuntimeException("Bad index");
64     }
65   }
66
67   /**
68    * Gets the value of the 'userID' field.
69    */
70   public java.lang.CharSequence getUserID() {
71     return userID;
72   }
73
74   /**
75    * Sets the value of the 'userID' field.
76    * @param value the value to set.
77    */
78   public void setUserID(java.lang.CharSequence value) {
79     this.userID = value;
80   }
81
82   /**
83    * Gets the value of the 'sumOfCreditsToSubtract' field.
84    */
85   public java.lang.Double getSumOfCreditsToSubtract() {
86     return sumOfCreditsToSubtract;
87   }
88
89   /**
90    * Sets the value of the 'sumOfCreditsToSubtract' field.
91    * @param value the value to set.
92    */
93   public void setSumOfCreditsToSubtract(java.lang.Double value) {
94     this.sumOfCreditsToSubtract = value;
95   }
96
97   /**
98    * Gets the value of the 'oldTotalCredits' field.
99    */
100   public java.lang.Double getOldTotalCredits() {
101     return oldTotalCredits;
102   }
103
104   /**
105    * Sets the value of the 'oldTotalCredits' field.
106    * @param value the value to set.
107    */
108   public void setOldTotalCredits(java.lang.Double value) {
109     this.oldTotalCredits = value;
110   }
111
112   /**
113    * Gets the value of the 'newTotalCredits' field.
114    */
115   public java.lang.Double getNewTotalCredits() {
116     return newTotalCredits;
117   }
118
119   /**
120    * Sets the value of the 'newTotalCredits' field.
121    * @param value the value to set.
122    */
123   public void setNewTotalCredits(java.lang.Double value) {
124     this.newTotalCredits = value;
125   }
126
127   /**
128    * Gets the value of the 'whenComputedMillis' field.
129    */
130   public java.lang.Long getWhenComputedMillis() {
131     return whenComputedMillis;
132   }
133
134   /**
135    * Sets the value of the 'whenComputedMillis' field.
136    * @param value the value to set.
137    */
138   public void setWhenComputedMillis(java.lang.Long value) {
139     this.whenComputedMillis = value;
140   }
141
142   /**
143    * Gets the value of the 'referenceStartMillis' field.
144    */
145   public java.lang.Long getReferenceStartMillis() {
146     return referenceStartMillis;
147   }
148
149   /**
150    * Sets the value of the 'referenceStartMillis' field.
151    * @param value the value to set.
152    */
153   public void setReferenceStartMillis(java.lang.Long value) {
154     this.referenceStartMillis = value;
155   }
156
157   /**
158    * Gets the value of the 'referenceStopMillis' field.
159    */
160   public java.lang.Long getReferenceStopMillis() {
161     return referenceStopMillis;
162   }
163
164   /**
165    * Sets the value of the 'referenceStopMillis' field.
166    * @param value the value to set.
167    */
168   public void setReferenceStopMillis(java.lang.Long value) {
169     this.referenceStopMillis = value;
170   }
171
172   /**
173    * Gets the value of the 'billingYear' field.
174    */
175   public java.lang.Integer getBillingYear() {
176     return billingYear;
177   }
178
179   /**
180    * Sets the value of the 'billingYear' field.
181    * @param value the value to set.
182    */
183   public void setBillingYear(java.lang.Integer value) {
184     this.billingYear = value;
185   }
186
187   /**
188    * Gets the value of the 'billingMonth' field.
189    */
190   public java.lang.Integer getBillingMonth() {
191     return billingMonth;
192   }
193
194   /**
195    * Sets the value of the 'billingMonth' field.
196    * @param value the value to set.
197    */
198   public void setBillingMonth(java.lang.Integer value) {
199     this.billingMonth = value;
200   }
201
202   /**
203    * Gets the value of the 'billingDay' field.
204    */
205   public java.lang.Integer getBillingDay() {
206     return billingDay;
207   }
208
209   /**
210    * Sets the value of the 'billingDay' field.
211    * @param value the value to set.
212    */
213   public void setBillingDay(java.lang.Integer value) {
214     this.billingDay = value;
215   }
216
217   /**
218    * Gets the value of the 'chargeslots' field.
219    */
220   public java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> getChargeslots() {
221     return chargeslots;
222   }
223
224   /**
225    * Sets the value of the 'chargeslots' field.
226    * @param value the value to set.
227    */
228   public void setChargeslots(java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> value) {
229     this.chargeslots = value;
230   }
231
232   /**
233    * Gets the value of the 'resourceEvents' field.
234    */
235   public java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> getResourceEvents() {
236     return resourceEvents;
237   }
238
239   /**
240    * Sets the value of the 'resourceEvents' field.
241    * @param value the value to set.
242    */
243   public void setResourceEvents(java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> value) {
244     this.resourceEvents = value;
245   }
246
247   /**
248    * Gets the value of the 'resourceType' field.
249    */
250   public gr.grnet.aquarium.message.avro.gen._ResourceType getResourceType() {
251     return resourceType;
252   }
253
254   /**
255    * Sets the value of the 'resourceType' field.
256    * @param value the value to set.
257    */
258   public void setResourceType(gr.grnet.aquarium.message.avro.gen._ResourceType value) {
259     this.resourceType = value;
260   }
261
262   /**
263    * Gets the value of the 'isSynthetic' field.
264    */
265   public java.lang.Boolean getIsSynthetic() {
266     return isSynthetic;
267   }
268
269   /**
270    * Sets the value of the 'isSynthetic' field.
271    * @param value the value to set.
272    */
273   public void setIsSynthetic(java.lang.Boolean value) {
274     this.isSynthetic = value;
275   }
276
277   /** Creates a new _WalletEntry RecordBuilder */
278   public static gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder newBuilder() {
279     return new gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder();
280   }
281   
282   /** Creates a new _WalletEntry RecordBuilder by copying an existing Builder */
283   public static gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder newBuilder(gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder other) {
284     return new gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder(other);
285   }
286   
287   /** Creates a new _WalletEntry RecordBuilder by copying an existing _WalletEntry instance */
288   public static gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder newBuilder(gr.grnet.aquarium.message.avro.gen._WalletEntry other) {
289     return new gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder(other);
290   }
291   
292   /**
293    * RecordBuilder for _WalletEntry instances.
294    */
295   public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<_WalletEntry>
296     implements org.apache.avro.data.RecordBuilder<_WalletEntry> {
297
298     private java.lang.CharSequence userID;
299     private double sumOfCreditsToSubtract;
300     private double oldTotalCredits;
301     private double newTotalCredits;
302     private long whenComputedMillis;
303     private long referenceStartMillis;
304     private long referenceStopMillis;
305     private int billingYear;
306     private int billingMonth;
307     private int billingDay;
308     private java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> chargeslots;
309     private java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> resourceEvents;
310     private gr.grnet.aquarium.message.avro.gen._ResourceType resourceType;
311     private boolean isSynthetic;
312
313     /** Creates a new Builder */
314     private Builder() {
315       super(gr.grnet.aquarium.message.avro.gen._WalletEntry.SCHEMA$);
316     }
317     
318     /** Creates a Builder by copying an existing Builder */
319     private Builder(gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder other) {
320       super(other);
321     }
322     
323     /** Creates a Builder by copying an existing _WalletEntry instance */
324     private Builder(gr.grnet.aquarium.message.avro.gen._WalletEntry other) {
325             super(gr.grnet.aquarium.message.avro.gen._WalletEntry.SCHEMA$);
326       if (isValidValue(fields()[0], other.userID)) {
327         this.userID = (java.lang.CharSequence) data().deepCopy(fields()[0].schema(), other.userID);
328         fieldSetFlags()[0] = true;
329       }
330       if (isValidValue(fields()[1], other.sumOfCreditsToSubtract)) {
331         this.sumOfCreditsToSubtract = (java.lang.Double) data().deepCopy(fields()[1].schema(), other.sumOfCreditsToSubtract);
332         fieldSetFlags()[1] = true;
333       }
334       if (isValidValue(fields()[2], other.oldTotalCredits)) {
335         this.oldTotalCredits = (java.lang.Double) data().deepCopy(fields()[2].schema(), other.oldTotalCredits);
336         fieldSetFlags()[2] = true;
337       }
338       if (isValidValue(fields()[3], other.newTotalCredits)) {
339         this.newTotalCredits = (java.lang.Double) data().deepCopy(fields()[3].schema(), other.newTotalCredits);
340         fieldSetFlags()[3] = true;
341       }
342       if (isValidValue(fields()[4], other.whenComputedMillis)) {
343         this.whenComputedMillis = (java.lang.Long) data().deepCopy(fields()[4].schema(), other.whenComputedMillis);
344         fieldSetFlags()[4] = true;
345       }
346       if (isValidValue(fields()[5], other.referenceStartMillis)) {
347         this.referenceStartMillis = (java.lang.Long) data().deepCopy(fields()[5].schema(), other.referenceStartMillis);
348         fieldSetFlags()[5] = true;
349       }
350       if (isValidValue(fields()[6], other.referenceStopMillis)) {
351         this.referenceStopMillis = (java.lang.Long) data().deepCopy(fields()[6].schema(), other.referenceStopMillis);
352         fieldSetFlags()[6] = true;
353       }
354       if (isValidValue(fields()[7], other.billingYear)) {
355         this.billingYear = (java.lang.Integer) data().deepCopy(fields()[7].schema(), other.billingYear);
356         fieldSetFlags()[7] = true;
357       }
358       if (isValidValue(fields()[8], other.billingMonth)) {
359         this.billingMonth = (java.lang.Integer) data().deepCopy(fields()[8].schema(), other.billingMonth);
360         fieldSetFlags()[8] = true;
361       }
362       if (isValidValue(fields()[9], other.billingDay)) {
363         this.billingDay = (java.lang.Integer) data().deepCopy(fields()[9].schema(), other.billingDay);
364         fieldSetFlags()[9] = true;
365       }
366       if (isValidValue(fields()[10], other.chargeslots)) {
367         this.chargeslots = (java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot>) data().deepCopy(fields()[10].schema(), other.chargeslots);
368         fieldSetFlags()[10] = true;
369       }
370       if (isValidValue(fields()[11], other.resourceEvents)) {
371         this.resourceEvents = (java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent>) data().deepCopy(fields()[11].schema(), other.resourceEvents);
372         fieldSetFlags()[11] = true;
373       }
374       if (isValidValue(fields()[12], other.resourceType)) {
375         this.resourceType = (gr.grnet.aquarium.message.avro.gen._ResourceType) data().deepCopy(fields()[12].schema(), other.resourceType);
376         fieldSetFlags()[12] = true;
377       }
378       if (isValidValue(fields()[13], other.isSynthetic)) {
379         this.isSynthetic = (java.lang.Boolean) data().deepCopy(fields()[13].schema(), other.isSynthetic);
380         fieldSetFlags()[13] = true;
381       }
382     }
383
384     /** Gets the value of the 'userID' field */
385     public java.lang.CharSequence getUserID() {
386       return userID;
387     }
388     
389     /** Sets the value of the 'userID' field */
390     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setUserID(java.lang.CharSequence value) {
391       validate(fields()[0], value);
392       this.userID = value;
393       fieldSetFlags()[0] = true;
394       return this; 
395     }
396     
397     /** Checks whether the 'userID' field has been set */
398     public boolean hasUserID() {
399       return fieldSetFlags()[0];
400     }
401     
402     /** Clears the value of the 'userID' field */
403     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearUserID() {
404       userID = null;
405       fieldSetFlags()[0] = false;
406       return this;
407     }
408
409     /** Gets the value of the 'sumOfCreditsToSubtract' field */
410     public java.lang.Double getSumOfCreditsToSubtract() {
411       return sumOfCreditsToSubtract;
412     }
413     
414     /** Sets the value of the 'sumOfCreditsToSubtract' field */
415     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setSumOfCreditsToSubtract(double value) {
416       validate(fields()[1], value);
417       this.sumOfCreditsToSubtract = value;
418       fieldSetFlags()[1] = true;
419       return this; 
420     }
421     
422     /** Checks whether the 'sumOfCreditsToSubtract' field has been set */
423     public boolean hasSumOfCreditsToSubtract() {
424       return fieldSetFlags()[1];
425     }
426     
427     /** Clears the value of the 'sumOfCreditsToSubtract' field */
428     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearSumOfCreditsToSubtract() {
429       fieldSetFlags()[1] = false;
430       return this;
431     }
432
433     /** Gets the value of the 'oldTotalCredits' field */
434     public java.lang.Double getOldTotalCredits() {
435       return oldTotalCredits;
436     }
437     
438     /** Sets the value of the 'oldTotalCredits' field */
439     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setOldTotalCredits(double value) {
440       validate(fields()[2], value);
441       this.oldTotalCredits = value;
442       fieldSetFlags()[2] = true;
443       return this; 
444     }
445     
446     /** Checks whether the 'oldTotalCredits' field has been set */
447     public boolean hasOldTotalCredits() {
448       return fieldSetFlags()[2];
449     }
450     
451     /** Clears the value of the 'oldTotalCredits' field */
452     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearOldTotalCredits() {
453       fieldSetFlags()[2] = false;
454       return this;
455     }
456
457     /** Gets the value of the 'newTotalCredits' field */
458     public java.lang.Double getNewTotalCredits() {
459       return newTotalCredits;
460     }
461     
462     /** Sets the value of the 'newTotalCredits' field */
463     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setNewTotalCredits(double value) {
464       validate(fields()[3], value);
465       this.newTotalCredits = value;
466       fieldSetFlags()[3] = true;
467       return this; 
468     }
469     
470     /** Checks whether the 'newTotalCredits' field has been set */
471     public boolean hasNewTotalCredits() {
472       return fieldSetFlags()[3];
473     }
474     
475     /** Clears the value of the 'newTotalCredits' field */
476     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearNewTotalCredits() {
477       fieldSetFlags()[3] = false;
478       return this;
479     }
480
481     /** Gets the value of the 'whenComputedMillis' field */
482     public java.lang.Long getWhenComputedMillis() {
483       return whenComputedMillis;
484     }
485     
486     /** Sets the value of the 'whenComputedMillis' field */
487     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setWhenComputedMillis(long value) {
488       validate(fields()[4], value);
489       this.whenComputedMillis = value;
490       fieldSetFlags()[4] = true;
491       return this; 
492     }
493     
494     /** Checks whether the 'whenComputedMillis' field has been set */
495     public boolean hasWhenComputedMillis() {
496       return fieldSetFlags()[4];
497     }
498     
499     /** Clears the value of the 'whenComputedMillis' field */
500     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearWhenComputedMillis() {
501       fieldSetFlags()[4] = false;
502       return this;
503     }
504
505     /** Gets the value of the 'referenceStartMillis' field */
506     public java.lang.Long getReferenceStartMillis() {
507       return referenceStartMillis;
508     }
509     
510     /** Sets the value of the 'referenceStartMillis' field */
511     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setReferenceStartMillis(long value) {
512       validate(fields()[5], value);
513       this.referenceStartMillis = value;
514       fieldSetFlags()[5] = true;
515       return this; 
516     }
517     
518     /** Checks whether the 'referenceStartMillis' field has been set */
519     public boolean hasReferenceStartMillis() {
520       return fieldSetFlags()[5];
521     }
522     
523     /** Clears the value of the 'referenceStartMillis' field */
524     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearReferenceStartMillis() {
525       fieldSetFlags()[5] = false;
526       return this;
527     }
528
529     /** Gets the value of the 'referenceStopMillis' field */
530     public java.lang.Long getReferenceStopMillis() {
531       return referenceStopMillis;
532     }
533     
534     /** Sets the value of the 'referenceStopMillis' field */
535     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setReferenceStopMillis(long value) {
536       validate(fields()[6], value);
537       this.referenceStopMillis = value;
538       fieldSetFlags()[6] = true;
539       return this; 
540     }
541     
542     /** Checks whether the 'referenceStopMillis' field has been set */
543     public boolean hasReferenceStopMillis() {
544       return fieldSetFlags()[6];
545     }
546     
547     /** Clears the value of the 'referenceStopMillis' field */
548     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearReferenceStopMillis() {
549       fieldSetFlags()[6] = false;
550       return this;
551     }
552
553     /** Gets the value of the 'billingYear' field */
554     public java.lang.Integer getBillingYear() {
555       return billingYear;
556     }
557     
558     /** Sets the value of the 'billingYear' field */
559     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setBillingYear(int value) {
560       validate(fields()[7], value);
561       this.billingYear = value;
562       fieldSetFlags()[7] = true;
563       return this; 
564     }
565     
566     /** Checks whether the 'billingYear' field has been set */
567     public boolean hasBillingYear() {
568       return fieldSetFlags()[7];
569     }
570     
571     /** Clears the value of the 'billingYear' field */
572     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearBillingYear() {
573       fieldSetFlags()[7] = false;
574       return this;
575     }
576
577     /** Gets the value of the 'billingMonth' field */
578     public java.lang.Integer getBillingMonth() {
579       return billingMonth;
580     }
581     
582     /** Sets the value of the 'billingMonth' field */
583     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setBillingMonth(int value) {
584       validate(fields()[8], value);
585       this.billingMonth = value;
586       fieldSetFlags()[8] = true;
587       return this; 
588     }
589     
590     /** Checks whether the 'billingMonth' field has been set */
591     public boolean hasBillingMonth() {
592       return fieldSetFlags()[8];
593     }
594     
595     /** Clears the value of the 'billingMonth' field */
596     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearBillingMonth() {
597       fieldSetFlags()[8] = false;
598       return this;
599     }
600
601     /** Gets the value of the 'billingDay' field */
602     public java.lang.Integer getBillingDay() {
603       return billingDay;
604     }
605     
606     /** Sets the value of the 'billingDay' field */
607     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setBillingDay(int value) {
608       validate(fields()[9], value);
609       this.billingDay = value;
610       fieldSetFlags()[9] = true;
611       return this; 
612     }
613     
614     /** Checks whether the 'billingDay' field has been set */
615     public boolean hasBillingDay() {
616       return fieldSetFlags()[9];
617     }
618     
619     /** Clears the value of the 'billingDay' field */
620     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearBillingDay() {
621       fieldSetFlags()[9] = false;
622       return this;
623     }
624
625     /** Gets the value of the 'chargeslots' field */
626     public java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> getChargeslots() {
627       return chargeslots;
628     }
629     
630     /** Sets the value of the 'chargeslots' field */
631     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setChargeslots(java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> value) {
632       validate(fields()[10], value);
633       this.chargeslots = value;
634       fieldSetFlags()[10] = true;
635       return this; 
636     }
637     
638     /** Checks whether the 'chargeslots' field has been set */
639     public boolean hasChargeslots() {
640       return fieldSetFlags()[10];
641     }
642     
643     /** Clears the value of the 'chargeslots' field */
644     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearChargeslots() {
645       chargeslots = null;
646       fieldSetFlags()[10] = false;
647       return this;
648     }
649
650     /** Gets the value of the 'resourceEvents' field */
651     public java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> getResourceEvents() {
652       return resourceEvents;
653     }
654     
655     /** Sets the value of the 'resourceEvents' field */
656     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setResourceEvents(java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> value) {
657       validate(fields()[11], value);
658       this.resourceEvents = value;
659       fieldSetFlags()[11] = true;
660       return this; 
661     }
662     
663     /** Checks whether the 'resourceEvents' field has been set */
664     public boolean hasResourceEvents() {
665       return fieldSetFlags()[11];
666     }
667     
668     /** Clears the value of the 'resourceEvents' field */
669     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearResourceEvents() {
670       resourceEvents = null;
671       fieldSetFlags()[11] = false;
672       return this;
673     }
674
675     /** Gets the value of the 'resourceType' field */
676     public gr.grnet.aquarium.message.avro.gen._ResourceType getResourceType() {
677       return resourceType;
678     }
679     
680     /** Sets the value of the 'resourceType' field */
681     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setResourceType(gr.grnet.aquarium.message.avro.gen._ResourceType value) {
682       validate(fields()[12], value);
683       this.resourceType = value;
684       fieldSetFlags()[12] = true;
685       return this; 
686     }
687     
688     /** Checks whether the 'resourceType' field has been set */
689     public boolean hasResourceType() {
690       return fieldSetFlags()[12];
691     }
692     
693     /** Clears the value of the 'resourceType' field */
694     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearResourceType() {
695       resourceType = null;
696       fieldSetFlags()[12] = false;
697       return this;
698     }
699
700     /** Gets the value of the 'isSynthetic' field */
701     public java.lang.Boolean getIsSynthetic() {
702       return isSynthetic;
703     }
704     
705     /** Sets the value of the 'isSynthetic' field */
706     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder setIsSynthetic(boolean value) {
707       validate(fields()[13], value);
708       this.isSynthetic = value;
709       fieldSetFlags()[13] = true;
710       return this; 
711     }
712     
713     /** Checks whether the 'isSynthetic' field has been set */
714     public boolean hasIsSynthetic() {
715       return fieldSetFlags()[13];
716     }
717     
718     /** Clears the value of the 'isSynthetic' field */
719     public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearIsSynthetic() {
720       fieldSetFlags()[13] = false;
721       return this;
722     }
723
724     @Override
725     public _WalletEntry build() {
726       try {
727         _WalletEntry record = new _WalletEntry();
728         record.userID = fieldSetFlags()[0] ? this.userID : (java.lang.CharSequence) defaultValue(fields()[0]);
729         record.sumOfCreditsToSubtract = fieldSetFlags()[1] ? this.sumOfCreditsToSubtract : (java.lang.Double) defaultValue(fields()[1]);
730         record.oldTotalCredits = fieldSetFlags()[2] ? this.oldTotalCredits : (java.lang.Double) defaultValue(fields()[2]);
731         record.newTotalCredits = fieldSetFlags()[3] ? this.newTotalCredits : (java.lang.Double) defaultValue(fields()[3]);
732         record.whenComputedMillis = fieldSetFlags()[4] ? this.whenComputedMillis : (java.lang.Long) defaultValue(fields()[4]);
733         record.referenceStartMillis = fieldSetFlags()[5] ? this.referenceStartMillis : (java.lang.Long) defaultValue(fields()[5]);
734         record.referenceStopMillis = fieldSetFlags()[6] ? this.referenceStopMillis : (java.lang.Long) defaultValue(fields()[6]);
735         record.billingYear = fieldSetFlags()[7] ? this.billingYear : (java.lang.Integer) defaultValue(fields()[7]);
736         record.billingMonth = fieldSetFlags()[8] ? this.billingMonth : (java.lang.Integer) defaultValue(fields()[8]);
737         record.billingDay = fieldSetFlags()[9] ? this.billingDay : (java.lang.Integer) defaultValue(fields()[9]);
738         record.chargeslots = fieldSetFlags()[10] ? this.chargeslots : (java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot>) defaultValue(fields()[10]);
739         record.resourceEvents = fieldSetFlags()[11] ? this.resourceEvents : (java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent>) defaultValue(fields()[11]);
740         record.resourceType = fieldSetFlags()[12] ? this.resourceType : (gr.grnet.aquarium.message.avro.gen._ResourceType) defaultValue(fields()[12]);
741         record.isSynthetic = fieldSetFlags()[13] ? this.isSynthetic : (java.lang.Boolean) defaultValue(fields()[13]);
742         return record;
743       } catch (Exception e) {
744         throw new org.apache.avro.AvroRuntimeException(e);
745       }
746     }
747   }
748 }