@Override public StandardEvent build() { try { StandardEvent record = new StandardEvent(); record.event_initiator = fieldSetFlags()[0] ? this.event_initiator : (java.lang.String) defaultValue(fields()[0]); record.event_name = fieldSetFlags()[1] ? this.event_name : (java.lang.String) defaultValue(fields()[1]); record.user_id = fieldSetFlags()[2] ? this.user_id : (java.lang.Long) defaultValue(fields()[2]); record.session_id = fieldSetFlags()[3] ? this.session_id : (java.lang.String) defaultValue(fields()[3]); record.ip = fieldSetFlags()[4] ? this.ip : (java.lang.String) defaultValue(fields()[4]); record.timestamp = fieldSetFlags()[5] ? this.timestamp : (java.lang.Long) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** * Sets the value of the 'user_id' field. * A unique identifier for the user. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setUserId(long value) { validate(fields()[2], value); this.user_id = value; fieldSetFlags()[2] = true; return this; }
/** * Sets the value of the 'event_details' field. * The event-specific details as key-value pairs. Optional. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setEventDetails(java.util.Map<org.apache.avro.util.Utf8,java.lang.Object> value) { validate(fields()[6], value); this.event_details = value; fieldSetFlags()[6] = true; return this; }
/** * Sets the value of the 'ip' field. * The IP address of the host where the event originated. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setIp(org.apache.avro.util.Utf8 value) { validate(fields()[4], value); this.ip = value; fieldSetFlags()[4] = true; return this; }
/** * Sets the value of the 'session_id' field. * A unique identifier for the session. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setSessionId(org.apache.avro.util.Utf8 value) { validate(fields()[3], value); this.session_id = value; fieldSetFlags()[3] = true; return this; }
/** * Sets the value of the 'event_initiator' field. * Where the event was triggered from in the format {client,server}_{user,app}, e.g. 'client_user'. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setEventInitiator(org.apache.avro.util.Utf8 value) { validate(fields()[0], value); this.event_initiator = value; fieldSetFlags()[0] = true; return this; }
/** * Sets the value of the 'timestamp' field. * The point in time when the event occurred, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setTimestamp(long value) { validate(fields()[5], value); this.timestamp = value; fieldSetFlags()[5] = true; return this; }
/** * Sets the value of the 'session_id' field. * A unique identifier for the session. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setSessionId(java.lang.String value) { validate(fields()[3], value); this.session_id = value; fieldSetFlags()[3] = true; return this; }
/** * Sets the value of the 'event_name' field. * A hierarchical name for the event, with parts separated by ':'. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setEventName(java.lang.String value) { validate(fields()[1], value); this.event_name = value; fieldSetFlags()[1] = true; return this; }
/** * Sets the value of the 'event_name' field. * A hierarchical name for the event, with parts separated by ':'. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setEventName(org.apache.avro.util.Utf8 value) { validate(fields()[1], value); this.event_name = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'timestamp' field */ public org.kitesdk.data.event.StandardEvent.Builder setTimestamp(long value) { validate(fields()[5], value); this.timestamp = value; fieldSetFlags()[5] = true; return this; }
/** Sets the value of the 'ip' field */ public org.kitesdk.data.event.StandardEvent.Builder setIp(java.lang.String value) { validate(fields()[4], value); this.ip = value; fieldSetFlags()[4] = true; return this; }
/** Sets the value of the 'user_id' field */ public org.kitesdk.data.event.StandardEvent.Builder setUserId(long value) { validate(fields()[2], value); this.user_id = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'event_name' field */ public org.kitesdk.data.event.StandardEvent.Builder setEventName(java.lang.String value) { validate(fields()[1], value); this.event_name = value; fieldSetFlags()[1] = true; return this; }
/** * Sets the value of the 'timestamp' field. * The point in time when the event occurred, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setTimestamp(long value) { validate(fields()[5], value); this.timestamp = value; fieldSetFlags()[5] = true; return this; }
/** Sets the value of the 'session_id' field */ public org.kitesdk.data.event.StandardEvent.Builder setSessionId(java.lang.String value) { validate(fields()[3], value); this.session_id = value; fieldSetFlags()[3] = true; return this; }
/** * Sets the value of the 'ip' field. * The IP address of the host where the event originated. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setIp(java.lang.String value) { validate(fields()[4], value); this.ip = value; fieldSetFlags()[4] = true; return this; }
/** * Sets the value of the 'user_id' field. * A unique identifier for the user. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setUserId(long value) { validate(fields()[2], value); this.user_id = value; fieldSetFlags()[2] = true; return this; }
/** * Sets the value of the 'event_initiator' field. * Where the event was triggered from in the format {client,server}_{user,app}, e.g. 'client_user'. Required. * @param value the value to set. */ public org.kitesdk.data.event.StandardEvent.Builder setEventInitiator(java.lang.String value) { validate(fields()[0], value); this.event_initiator = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'event_initiator' field */ public org.kitesdk.data.event.StandardEvent.Builder setEventInitiator(java.lang.String value) { validate(fields()[0], value); this.event_initiator = value; fieldSetFlags()[0] = true; return this; }