/** Creates a Builder by copying an existing TestValue instance */ private Builder(org.kitesdk.data.event.TestValue other) { super(org.kitesdk.data.event.TestValue.SCHEMA$); if (isValidValue(fields()[0], other.value)) { this.value = data().deepCopy(fields()[0].schema(), other.value); fieldSetFlags()[0] = true; } }
@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); } } }
/** Checks whether the 'value' field has been set */ public boolean hasValue() { return fieldSetFlags()[0]; }
/** Creates a new TestValue RecordBuilder by copying an existing TestValue instance */ public static org.kitesdk.data.event.TestValue.Builder newBuilder(org.kitesdk.data.event.TestValue other) { return new org.kitesdk.data.event.TestValue.Builder(other); }
/** Creates a new TestValue RecordBuilder by copying an existing Builder */ public static org.kitesdk.data.event.TestValue.Builder newBuilder(org.kitesdk.data.event.TestValue.Builder other) { return new org.kitesdk.data.event.TestValue.Builder(other); }
/** Creates a new TestValue RecordBuilder */ public static org.kitesdk.data.event.TestValue.Builder newBuilder() { return new org.kitesdk.data.event.TestValue.Builder(); }
/** Clears the value of the 'value' field */ public org.kitesdk.data.event.TestValue.Builder clearValue() { fieldSetFlags()[0] = false; return this; }
/** Sets the value of the 'value' field */ public org.kitesdk.data.event.TestValue.Builder setValue(long value) { validate(fields()[0], value); this.value = value; fieldSetFlags()[0] = true; return this; }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kitesdk.data.event.TestValue.Builder other) { super(other); if (isValidValue(fields()[0], other.value)) { this.value = data().deepCopy(fields()[0].schema(), other.value); fieldSetFlags()[0] = true; } }