@Override public TestValue build() { try { TestValue record = new TestValue(); record.value = fieldSetFlags()[0] ? this.value : (java.lang.Long) defaultValue(fields()[0]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }