2 * Autogenerated by Avro
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$) {
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");
45 // Used by DatumReader. Applications should not call.
46 @SuppressWarnings(value="unchecked")
47 public void put(int field$, java.lang.Object value$) {
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");
68 * Gets the value of the 'userID' field.
70 public java.lang.CharSequence getUserID() {
75 * Sets the value of the 'userID' field.
76 * @param value the value to set.
78 public void setUserID(java.lang.CharSequence value) {
83 * Gets the value of the 'sumOfCreditsToSubtract' field.
85 public java.lang.Double getSumOfCreditsToSubtract() {
86 return sumOfCreditsToSubtract;
90 * Sets the value of the 'sumOfCreditsToSubtract' field.
91 * @param value the value to set.
93 public void setSumOfCreditsToSubtract(java.lang.Double value) {
94 this.sumOfCreditsToSubtract = value;
98 * Gets the value of the 'oldTotalCredits' field.
100 public java.lang.Double getOldTotalCredits() {
101 return oldTotalCredits;
105 * Sets the value of the 'oldTotalCredits' field.
106 * @param value the value to set.
108 public void setOldTotalCredits(java.lang.Double value) {
109 this.oldTotalCredits = value;
113 * Gets the value of the 'newTotalCredits' field.
115 public java.lang.Double getNewTotalCredits() {
116 return newTotalCredits;
120 * Sets the value of the 'newTotalCredits' field.
121 * @param value the value to set.
123 public void setNewTotalCredits(java.lang.Double value) {
124 this.newTotalCredits = value;
128 * Gets the value of the 'whenComputedMillis' field.
130 public java.lang.Long getWhenComputedMillis() {
131 return whenComputedMillis;
135 * Sets the value of the 'whenComputedMillis' field.
136 * @param value the value to set.
138 public void setWhenComputedMillis(java.lang.Long value) {
139 this.whenComputedMillis = value;
143 * Gets the value of the 'referenceStartMillis' field.
145 public java.lang.Long getReferenceStartMillis() {
146 return referenceStartMillis;
150 * Sets the value of the 'referenceStartMillis' field.
151 * @param value the value to set.
153 public void setReferenceStartMillis(java.lang.Long value) {
154 this.referenceStartMillis = value;
158 * Gets the value of the 'referenceStopMillis' field.
160 public java.lang.Long getReferenceStopMillis() {
161 return referenceStopMillis;
165 * Sets the value of the 'referenceStopMillis' field.
166 * @param value the value to set.
168 public void setReferenceStopMillis(java.lang.Long value) {
169 this.referenceStopMillis = value;
173 * Gets the value of the 'billingYear' field.
175 public java.lang.Integer getBillingYear() {
180 * Sets the value of the 'billingYear' field.
181 * @param value the value to set.
183 public void setBillingYear(java.lang.Integer value) {
184 this.billingYear = value;
188 * Gets the value of the 'billingMonth' field.
190 public java.lang.Integer getBillingMonth() {
195 * Sets the value of the 'billingMonth' field.
196 * @param value the value to set.
198 public void setBillingMonth(java.lang.Integer value) {
199 this.billingMonth = value;
203 * Gets the value of the 'billingDay' field.
205 public java.lang.Integer getBillingDay() {
210 * Sets the value of the 'billingDay' field.
211 * @param value the value to set.
213 public void setBillingDay(java.lang.Integer value) {
214 this.billingDay = value;
218 * Gets the value of the 'chargeslots' field.
220 public java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> getChargeslots() {
225 * Sets the value of the 'chargeslots' field.
226 * @param value the value to set.
228 public void setChargeslots(java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> value) {
229 this.chargeslots = value;
233 * Gets the value of the 'resourceEvents' field.
235 public java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> getResourceEvents() {
236 return resourceEvents;
240 * Sets the value of the 'resourceEvents' field.
241 * @param value the value to set.
243 public void setResourceEvents(java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> value) {
244 this.resourceEvents = value;
248 * Gets the value of the 'resourceType' field.
250 public gr.grnet.aquarium.message.avro.gen._ResourceType getResourceType() {
255 * Sets the value of the 'resourceType' field.
256 * @param value the value to set.
258 public void setResourceType(gr.grnet.aquarium.message.avro.gen._ResourceType value) {
259 this.resourceType = value;
263 * Gets the value of the 'isSynthetic' field.
265 public java.lang.Boolean getIsSynthetic() {
270 * Sets the value of the 'isSynthetic' field.
271 * @param value the value to set.
273 public void setIsSynthetic(java.lang.Boolean value) {
274 this.isSynthetic = value;
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();
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);
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);
293 * RecordBuilder for _WalletEntry instances.
295 public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<_WalletEntry>
296 implements org.apache.avro.data.RecordBuilder<_WalletEntry> {
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;
313 /** Creates a new Builder */
315 super(gr.grnet.aquarium.message.avro.gen._WalletEntry.SCHEMA$);
318 /** Creates a Builder by copying an existing Builder */
319 private Builder(gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder other) {
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;
330 if (isValidValue(fields()[1], other.sumOfCreditsToSubtract)) {
331 this.sumOfCreditsToSubtract = (java.lang.Double) data().deepCopy(fields()[1].schema(), other.sumOfCreditsToSubtract);
332 fieldSetFlags()[1] = true;
334 if (isValidValue(fields()[2], other.oldTotalCredits)) {
335 this.oldTotalCredits = (java.lang.Double) data().deepCopy(fields()[2].schema(), other.oldTotalCredits);
336 fieldSetFlags()[2] = true;
338 if (isValidValue(fields()[3], other.newTotalCredits)) {
339 this.newTotalCredits = (java.lang.Double) data().deepCopy(fields()[3].schema(), other.newTotalCredits);
340 fieldSetFlags()[3] = true;
342 if (isValidValue(fields()[4], other.whenComputedMillis)) {
343 this.whenComputedMillis = (java.lang.Long) data().deepCopy(fields()[4].schema(), other.whenComputedMillis);
344 fieldSetFlags()[4] = true;
346 if (isValidValue(fields()[5], other.referenceStartMillis)) {
347 this.referenceStartMillis = (java.lang.Long) data().deepCopy(fields()[5].schema(), other.referenceStartMillis);
348 fieldSetFlags()[5] = true;
350 if (isValidValue(fields()[6], other.referenceStopMillis)) {
351 this.referenceStopMillis = (java.lang.Long) data().deepCopy(fields()[6].schema(), other.referenceStopMillis);
352 fieldSetFlags()[6] = true;
354 if (isValidValue(fields()[7], other.billingYear)) {
355 this.billingYear = (java.lang.Integer) data().deepCopy(fields()[7].schema(), other.billingYear);
356 fieldSetFlags()[7] = true;
358 if (isValidValue(fields()[8], other.billingMonth)) {
359 this.billingMonth = (java.lang.Integer) data().deepCopy(fields()[8].schema(), other.billingMonth);
360 fieldSetFlags()[8] = true;
362 if (isValidValue(fields()[9], other.billingDay)) {
363 this.billingDay = (java.lang.Integer) data().deepCopy(fields()[9].schema(), other.billingDay);
364 fieldSetFlags()[9] = true;
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;
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;
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;
378 if (isValidValue(fields()[13], other.isSynthetic)) {
379 this.isSynthetic = (java.lang.Boolean) data().deepCopy(fields()[13].schema(), other.isSynthetic);
380 fieldSetFlags()[13] = true;
384 /** Gets the value of the 'userID' field */
385 public java.lang.CharSequence getUserID() {
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);
393 fieldSetFlags()[0] = true;
397 /** Checks whether the 'userID' field has been set */
398 public boolean hasUserID() {
399 return fieldSetFlags()[0];
402 /** Clears the value of the 'userID' field */
403 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearUserID() {
405 fieldSetFlags()[0] = false;
409 /** Gets the value of the 'sumOfCreditsToSubtract' field */
410 public java.lang.Double getSumOfCreditsToSubtract() {
411 return sumOfCreditsToSubtract;
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;
422 /** Checks whether the 'sumOfCreditsToSubtract' field has been set */
423 public boolean hasSumOfCreditsToSubtract() {
424 return fieldSetFlags()[1];
427 /** Clears the value of the 'sumOfCreditsToSubtract' field */
428 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearSumOfCreditsToSubtract() {
429 fieldSetFlags()[1] = false;
433 /** Gets the value of the 'oldTotalCredits' field */
434 public java.lang.Double getOldTotalCredits() {
435 return oldTotalCredits;
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;
446 /** Checks whether the 'oldTotalCredits' field has been set */
447 public boolean hasOldTotalCredits() {
448 return fieldSetFlags()[2];
451 /** Clears the value of the 'oldTotalCredits' field */
452 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearOldTotalCredits() {
453 fieldSetFlags()[2] = false;
457 /** Gets the value of the 'newTotalCredits' field */
458 public java.lang.Double getNewTotalCredits() {
459 return newTotalCredits;
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;
470 /** Checks whether the 'newTotalCredits' field has been set */
471 public boolean hasNewTotalCredits() {
472 return fieldSetFlags()[3];
475 /** Clears the value of the 'newTotalCredits' field */
476 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearNewTotalCredits() {
477 fieldSetFlags()[3] = false;
481 /** Gets the value of the 'whenComputedMillis' field */
482 public java.lang.Long getWhenComputedMillis() {
483 return whenComputedMillis;
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;
494 /** Checks whether the 'whenComputedMillis' field has been set */
495 public boolean hasWhenComputedMillis() {
496 return fieldSetFlags()[4];
499 /** Clears the value of the 'whenComputedMillis' field */
500 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearWhenComputedMillis() {
501 fieldSetFlags()[4] = false;
505 /** Gets the value of the 'referenceStartMillis' field */
506 public java.lang.Long getReferenceStartMillis() {
507 return referenceStartMillis;
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;
518 /** Checks whether the 'referenceStartMillis' field has been set */
519 public boolean hasReferenceStartMillis() {
520 return fieldSetFlags()[5];
523 /** Clears the value of the 'referenceStartMillis' field */
524 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearReferenceStartMillis() {
525 fieldSetFlags()[5] = false;
529 /** Gets the value of the 'referenceStopMillis' field */
530 public java.lang.Long getReferenceStopMillis() {
531 return referenceStopMillis;
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;
542 /** Checks whether the 'referenceStopMillis' field has been set */
543 public boolean hasReferenceStopMillis() {
544 return fieldSetFlags()[6];
547 /** Clears the value of the 'referenceStopMillis' field */
548 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearReferenceStopMillis() {
549 fieldSetFlags()[6] = false;
553 /** Gets the value of the 'billingYear' field */
554 public java.lang.Integer getBillingYear() {
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;
566 /** Checks whether the 'billingYear' field has been set */
567 public boolean hasBillingYear() {
568 return fieldSetFlags()[7];
571 /** Clears the value of the 'billingYear' field */
572 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearBillingYear() {
573 fieldSetFlags()[7] = false;
577 /** Gets the value of the 'billingMonth' field */
578 public java.lang.Integer getBillingMonth() {
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;
590 /** Checks whether the 'billingMonth' field has been set */
591 public boolean hasBillingMonth() {
592 return fieldSetFlags()[8];
595 /** Clears the value of the 'billingMonth' field */
596 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearBillingMonth() {
597 fieldSetFlags()[8] = false;
601 /** Gets the value of the 'billingDay' field */
602 public java.lang.Integer getBillingDay() {
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;
614 /** Checks whether the 'billingDay' field has been set */
615 public boolean hasBillingDay() {
616 return fieldSetFlags()[9];
619 /** Clears the value of the 'billingDay' field */
620 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearBillingDay() {
621 fieldSetFlags()[9] = false;
625 /** Gets the value of the 'chargeslots' field */
626 public java.util.List<gr.grnet.aquarium.message.avro.gen._Chargeslot> getChargeslots() {
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;
638 /** Checks whether the 'chargeslots' field has been set */
639 public boolean hasChargeslots() {
640 return fieldSetFlags()[10];
643 /** Clears the value of the 'chargeslots' field */
644 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearChargeslots() {
646 fieldSetFlags()[10] = false;
650 /** Gets the value of the 'resourceEvents' field */
651 public java.util.List<gr.grnet.aquarium.message.avro.gen._ResourceEvent> getResourceEvents() {
652 return resourceEvents;
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;
663 /** Checks whether the 'resourceEvents' field has been set */
664 public boolean hasResourceEvents() {
665 return fieldSetFlags()[11];
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;
675 /** Gets the value of the 'resourceType' field */
676 public gr.grnet.aquarium.message.avro.gen._ResourceType getResourceType() {
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;
688 /** Checks whether the 'resourceType' field has been set */
689 public boolean hasResourceType() {
690 return fieldSetFlags()[12];
693 /** Clears the value of the 'resourceType' field */
694 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearResourceType() {
696 fieldSetFlags()[12] = false;
700 /** Gets the value of the 'isSynthetic' field */
701 public java.lang.Boolean getIsSynthetic() {
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;
713 /** Checks whether the 'isSynthetic' field has been set */
714 public boolean hasIsSynthetic() {
715 return fieldSetFlags()[13];
718 /** Clears the value of the 'isSynthetic' field */
719 public gr.grnet.aquarium.message.avro.gen._WalletEntry.Builder clearIsSynthetic() {
720 fieldSetFlags()[13] = false;
725 public _WalletEntry build() {
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]);
743 } catch (Exception e) {
744 throw new org.apache.avro.AvroRuntimeException(e);