@Override public JhCounter build() { try { JhCounter record = new JhCounter(); record.name = fieldSetFlags()[0] ? this.name : (java.lang.CharSequence) defaultValue(fields()[0]); record.displayName = fieldSetFlags()[1] ? this.displayName : (java.lang.CharSequence) defaultValue(fields()[1]); record.value = fieldSetFlags()[2] ? this.value : (java.lang.Long) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'displayName' field has been set */ public boolean hasDisplayName() { return fieldSetFlags()[1]; }
/** Sets the value of the 'value' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setValue(long value) { validate(fields()[2], value); this.value = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'value' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setValue(long value) { validate(fields()[2], value); this.value = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }
/** Clears the value of the 'value' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearValue() { fieldSetFlags()[2] = false; return this; }
/** Clears the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearDisplayName() { displayName = null; fieldSetFlags()[1] = false; return this; }
/** Clears the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearDisplayName() { displayName = null; fieldSetFlags()[1] = false; return this; }
/** Clears the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearName() { name = null; fieldSetFlags()[0] = false; return this; }
/** Clears the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearName() { name = null; fieldSetFlags()[0] = false; return this; }
/** Sets the value of the 'value' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setValue(long value) { validate(fields()[2], value); this.value = value; fieldSetFlags()[2] = true; return this; }
/** Clears the value of the 'value' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearValue() { fieldSetFlags()[2] = false; return this; }
/** Clears the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearName() { name = null; fieldSetFlags()[0] = false; return this; }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }
/** Clears the value of the 'value' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearValue() { fieldSetFlags()[2] = false; return this; }
/** Clears the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder clearDisplayName() { displayName = null; fieldSetFlags()[1] = false; return this; }
/** Sets the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setDisplayName(java.lang.CharSequence value) { validate(fields()[1], value); this.displayName = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setDisplayName(java.lang.CharSequence value) { validate(fields()[1], value); this.displayName = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounter.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }