/** Creates a Builder by copying an existing Event instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.Event other) { super(org.apache.hadoop.mapreduce.jobhistory.Event.SCHEMA$); if (isValidValue(fields()[0], other.type)) { this.type = data().deepCopy(fields()[0].schema(), other.type); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event)) { this.event = data().deepCopy(fields()[1].schema(), other.event); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing Event instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.Event other) { super(org.apache.hadoop.mapreduce.jobhistory.Event.SCHEMA$); if (isValidValue(fields()[0], other.type)) { this.type = data().deepCopy(fields()[0].schema(), other.type); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event)) { this.event = data().deepCopy(fields()[1].schema(), other.event); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing Event instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.Event other) { super(org.apache.hadoop.mapreduce.jobhistory.Event.SCHEMA$); if (isValidValue(fields()[0], other.type)) { this.type = data().deepCopy(fields()[0].schema(), other.type); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event)) { this.event = data().deepCopy(fields()[1].schema(), other.event); fieldSetFlags()[1] = true; } }
/** Clears the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearEvent() { event = null; fieldSetFlags()[1] = false; return this; }
/** Sets the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setType(org.apache.hadoop.mapreduce.jobhistory.EventType value) { validate(fields()[0], value); this.type = value; fieldSetFlags()[0] = true; return this; }
/** Clears the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearEvent() { event = null; fieldSetFlags()[1] = false; return this; }
/** Sets the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setEvent(java.lang.Object value) { validate(fields()[1], value); this.event = value; fieldSetFlags()[1] = true; return this; }
@Override public Event build() { try { Event record = new Event(); record.type = fieldSetFlags()[0] ? this.type : (org.apache.hadoop.mapreduce.jobhistory.EventType) defaultValue(fields()[0]); record.event = fieldSetFlags()[1] ? this.event : (java.lang.Object) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Clears the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearEvent() { event = null; fieldSetFlags()[1] = false; return this; }
@Override public Event build() { try { Event record = new Event(); record.type = fieldSetFlags()[0] ? this.type : (org.apache.hadoop.mapreduce.jobhistory.EventType) defaultValue(fields()[0]); record.event = fieldSetFlags()[1] ? this.event : (java.lang.Object) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setEvent(java.lang.Object value) { validate(fields()[1], value); this.event = value; fieldSetFlags()[1] = true; return this; }
/** Clears the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearType() { type = null; fieldSetFlags()[0] = false; return this; }
/** Sets the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setType(org.apache.hadoop.mapreduce.jobhistory.EventType value) { validate(fields()[0], value); this.type = value; fieldSetFlags()[0] = true; return this; }
/** Clears the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearType() { type = null; fieldSetFlags()[0] = false; return this; }
/** Clears the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearType() { type = null; fieldSetFlags()[0] = false; return this; }
/** Sets the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setType(org.apache.hadoop.mapreduce.jobhistory.EventType value) { validate(fields()[0], value); this.type = value; fieldSetFlags()[0] = true; return this; }
/** Clears the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearEvent() { event = null; fieldSetFlags()[1] = false; return this; }
/** Sets the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setEvent(java.lang.Object value) { validate(fields()[1], value); this.event = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder setType(org.apache.hadoop.mapreduce.jobhistory.EventType value) { validate(fields()[0], value); this.type = value; fieldSetFlags()[0] = true; return this; }
@Override public Event build() { try { Event record = new Event(); record.type = fieldSetFlags()[0] ? this.type : (org.apache.hadoop.mapreduce.jobhistory.EventType) defaultValue(fields()[0]); record.event = fieldSetFlags()[1] ? this.event : (java.lang.Object) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }