
org.radarcns.connector.oura.OuraDailyActivity Maven / Gradle / Ivy
The newest version!
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.radarcns.connector.oura;
import org.apache.avro.generic.GenericArray;
import org.apache.avro.specific.SpecificData;
import org.apache.avro.util.Utf8;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;
/** The Daily Activity scope includes daily activity summary values and detailed activity levels. Activity levels are expressed in metabolic equivalent of task minutes (MET mins). Oura tracks activity based on the movement. */
@org.apache.avro.specific.AvroGenerated
public class OuraDailyActivity extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = -5728430252423739010L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"OuraDailyActivity\",\"namespace\":\"org.radarcns.connector.oura\",\"doc\":\"The Daily Activity scope includes daily activity summary values and detailed activity levels. Activity levels are expressed in metabolic equivalent of task minutes (MET mins). Oura tracks activity based on the movement.\",\"fields\":[{\"name\":\"time\",\"type\":\"double\",\"doc\":\"Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).\"},{\"name\":\"timeReceived\",\"type\":\"double\",\"doc\":\"Time that this record was collected by a service in seconds since the Unix Epoch (s).\"},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Unique identifier of the activity from Oura.\",\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"int\"],\"doc\":\"Activity score in range [1, 100]. Null if unknown.\",\"default\":null},{\"name\":\"activeCalories\",\"type\":[\"null\",\"int\"],\"doc\":\"Active calories expended (in kilocalories). Null if unknown.\",\"default\":null},{\"name\":\"averageMetMinutes\",\"type\":[\"null\",\"float\"],\"doc\":\"Average metabolic equivalent (MET) in minutes. Null if unknown.\",\"default\":null},{\"name\":\"contributorMeetDailyTargets\",\"type\":[\"null\",\"int\"],\"doc\":\"Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.\",\"default\":null},{\"name\":\"contributorMoveEveryHour\",\"type\":[\"null\",\"int\"],\"doc\":\"Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.\",\"default\":null},{\"name\":\"contributorRecoveryTime\",\"type\":[\"null\",\"int\"],\"doc\":\"Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.\",\"default\":null},{\"name\":\"contributorStayActive\",\"type\":[\"null\",\"int\"],\"doc\":\"Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.\",\"default\":null},{\"name\":\"contributorTrainingFrequency\",\"type\":[\"null\",\"int\"],\"doc\":\"Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.\",\"default\":null},{\"name\":\"contributorTrainingVolume\",\"type\":[\"null\",\"int\"],\"doc\":\"Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.\",\"default\":null},{\"name\":\"equivalentWalkingDistance\",\"type\":[\"null\",\"int\"],\"doc\":\"Equivalent walking distance (in meters) of energy expenditure. Null if unknown.\",\"default\":null},{\"name\":\"highActivityMetMinutes\",\"type\":[\"null\",\"int\"],\"doc\":\"High activity metabolic equivalent (MET) in minutes. Null if unknown.\",\"default\":null},{\"name\":\"highActivityTime\",\"type\":[\"null\",\"int\"],\"doc\":\"High activity metabolic equivalent (MET) in seconds. Null if unknown.\",\"default\":null},{\"name\":\"inactivityAlerts\",\"type\":[\"null\",\"int\"],\"doc\":\"Number of inactivity alerts received. Null if unknown.\",\"default\":null},{\"name\":\"lowActivityMetMinutes\",\"type\":[\"null\",\"int\"],\"doc\":\"Low activity metabolic equivalent (MET) in minutes. Null if unknown.\",\"default\":null},{\"name\":\"lowActivityTime\",\"type\":[\"null\",\"int\"],\"doc\":\"Low activity metabolic equivalent (MET) in seconds. Null if unknown.\",\"default\":null},{\"name\":\"mediumActivityMetMinutes\",\"type\":[\"null\",\"int\"],\"doc\":\"Medium activity metabolic equivalent (MET) in minutes. Null if unknown.\",\"default\":null},{\"name\":\"mediumActivityTime\",\"type\":[\"null\",\"int\"],\"doc\":\"Medium activity metabolic equivalent (MET) in seconds. Null if unknown.\",\"default\":null},{\"name\":\"metersToTarget\",\"type\":[\"null\",\"int\"],\"doc\":\"Remaining meters to target. Null if unknown.\",\"default\":null},{\"name\":\"nonWearTime\",\"type\":[\"null\",\"int\"],\"doc\":\"The time (in seconds) in which the ring was not worn. Null if unknown.\",\"default\":null},{\"name\":\"restingTime\",\"type\":[\"null\",\"int\"],\"doc\":\"Resting time (in seconds). Null if unknown.\",\"default\":null},{\"name\":\"sedentaryMetMinutes\",\"type\":[\"null\",\"int\"],\"doc\":\"Sedentary metabolic equivalent (MET) in minutes. Null if unknown.\",\"default\":null},{\"name\":\"sedentaryTime\",\"type\":[\"null\",\"int\"],\"doc\":\"Sedentary metabolic equivalent (MET) in seconds. Null if unknown.\",\"default\":null},{\"name\":\"steps\",\"type\":[\"null\",\"int\"],\"doc\":\"Total number of steps taken. Null if unknown.\",\"default\":null},{\"name\":\"targetCalories\",\"type\":[\"null\",\"int\"],\"doc\":\"Daily activity target (in kilocalories). Null if unknown.\",\"default\":null},{\"name\":\"targetMeters\",\"type\":[\"null\",\"int\"],\"doc\":\"Daily activity target (in meters). Null if unknown.\",\"default\":null},{\"name\":\"totalCalories\",\"type\":[\"null\",\"int\"],\"doc\":\"Total calories expended (in kilocalories). Null if unknown.\",\"default\":null},{\"name\":\"day\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.\",\"default\":null}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static final SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder ENCODER =
new BinaryMessageEncoder<>(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder DECODER =
new BinaryMessageDecoder<>(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageEncoder instance used by this class.
* @return the message encoder used by this class
*/
public static BinaryMessageEncoder getEncoder() {
return ENCODER;
}
/**
* Return the BinaryMessageDecoder instance used by this class.
* @return the message decoder used by this class
*/
public static BinaryMessageDecoder getDecoder() {
return DECODER;
}
/**
* Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
* @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
*/
public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
return new BinaryMessageDecoder<>(MODEL$, SCHEMA$, resolver);
}
/**
* Serializes this OuraDailyActivity to a ByteBuffer.
* @return a buffer holding the serialized data for this instance
* @throws java.io.IOException if this instance could not be serialized
*/
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
return ENCODER.encode(this);
}
/**
* Deserializes a OuraDailyActivity from a ByteBuffer.
* @param b a byte buffer holding serialized data for an instance of this class
* @return a OuraDailyActivity instance decoded from the given buffer
* @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
*/
public static OuraDailyActivity fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
}
/** Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp). */
private double time;
/** Time that this record was collected by a service in seconds since the Unix Epoch (s). */
private double timeReceived;
/** Unique identifier of the activity from Oura. */
private java.lang.String id;
/** Activity score in range [1, 100]. Null if unknown. */
private java.lang.Integer score;
/** Active calories expended (in kilocalories). Null if unknown. */
private java.lang.Integer activeCalories;
/** Average metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Float averageMetMinutes;
/** Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorMeetDailyTargets;
/** Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorMoveEveryHour;
/** Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorRecoveryTime;
/** Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorStayActive;
/** Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorTrainingFrequency;
/** Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorTrainingVolume;
/** Equivalent walking distance (in meters) of energy expenditure. Null if unknown. */
private java.lang.Integer equivalentWalkingDistance;
/** High activity metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer highActivityMetMinutes;
/** High activity metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer highActivityTime;
/** Number of inactivity alerts received. Null if unknown. */
private java.lang.Integer inactivityAlerts;
/** Low activity metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer lowActivityMetMinutes;
/** Low activity metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer lowActivityTime;
/** Medium activity metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer mediumActivityMetMinutes;
/** Medium activity metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer mediumActivityTime;
/** Remaining meters to target. Null if unknown. */
private java.lang.Integer metersToTarget;
/** The time (in seconds) in which the ring was not worn. Null if unknown. */
private java.lang.Integer nonWearTime;
/** Resting time (in seconds). Null if unknown. */
private java.lang.Integer restingTime;
/** Sedentary metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer sedentaryMetMinutes;
/** Sedentary metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer sedentaryTime;
/** Total number of steps taken. Null if unknown. */
private java.lang.Integer steps;
/** Daily activity target (in kilocalories). Null if unknown. */
private java.lang.Integer targetCalories;
/** Daily activity target (in meters). Null if unknown. */
private java.lang.Integer targetMeters;
/** Total calories expended (in kilocalories). Null if unknown. */
private java.lang.Integer totalCalories;
/** The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown. */
private java.lang.String day;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use newBuilder()
.
*/
public OuraDailyActivity() {}
/**
* All-args constructor.
* @param time Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
* @param timeReceived Time that this record was collected by a service in seconds since the Unix Epoch (s).
* @param id Unique identifier of the activity from Oura.
* @param score Activity score in range [1, 100]. Null if unknown.
* @param activeCalories Active calories expended (in kilocalories). Null if unknown.
* @param averageMetMinutes Average metabolic equivalent (MET) in minutes. Null if unknown.
* @param contributorMeetDailyTargets Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
* @param contributorMoveEveryHour Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
* @param contributorRecoveryTime Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
* @param contributorStayActive Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
* @param contributorTrainingFrequency Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
* @param contributorTrainingVolume Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
* @param equivalentWalkingDistance Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
* @param highActivityMetMinutes High activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param highActivityTime High activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param inactivityAlerts Number of inactivity alerts received. Null if unknown.
* @param lowActivityMetMinutes Low activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param lowActivityTime Low activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param mediumActivityMetMinutes Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param mediumActivityTime Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param metersToTarget Remaining meters to target. Null if unknown.
* @param nonWearTime The time (in seconds) in which the ring was not worn. Null if unknown.
* @param restingTime Resting time (in seconds). Null if unknown.
* @param sedentaryMetMinutes Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
* @param sedentaryTime Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
* @param steps Total number of steps taken. Null if unknown.
* @param targetCalories Daily activity target (in kilocalories). Null if unknown.
* @param targetMeters Daily activity target (in meters). Null if unknown.
* @param totalCalories Total calories expended (in kilocalories). Null if unknown.
* @param day The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
*/
public OuraDailyActivity(java.lang.Double time, java.lang.Double timeReceived, java.lang.String id, java.lang.Integer score, java.lang.Integer activeCalories, java.lang.Float averageMetMinutes, java.lang.Integer contributorMeetDailyTargets, java.lang.Integer contributorMoveEveryHour, java.lang.Integer contributorRecoveryTime, java.lang.Integer contributorStayActive, java.lang.Integer contributorTrainingFrequency, java.lang.Integer contributorTrainingVolume, java.lang.Integer equivalentWalkingDistance, java.lang.Integer highActivityMetMinutes, java.lang.Integer highActivityTime, java.lang.Integer inactivityAlerts, java.lang.Integer lowActivityMetMinutes, java.lang.Integer lowActivityTime, java.lang.Integer mediumActivityMetMinutes, java.lang.Integer mediumActivityTime, java.lang.Integer metersToTarget, java.lang.Integer nonWearTime, java.lang.Integer restingTime, java.lang.Integer sedentaryMetMinutes, java.lang.Integer sedentaryTime, java.lang.Integer steps, java.lang.Integer targetCalories, java.lang.Integer targetMeters, java.lang.Integer totalCalories, java.lang.String day) {
this.time = time;
this.timeReceived = timeReceived;
this.id = id;
this.score = score;
this.activeCalories = activeCalories;
this.averageMetMinutes = averageMetMinutes;
this.contributorMeetDailyTargets = contributorMeetDailyTargets;
this.contributorMoveEveryHour = contributorMoveEveryHour;
this.contributorRecoveryTime = contributorRecoveryTime;
this.contributorStayActive = contributorStayActive;
this.contributorTrainingFrequency = contributorTrainingFrequency;
this.contributorTrainingVolume = contributorTrainingVolume;
this.equivalentWalkingDistance = equivalentWalkingDistance;
this.highActivityMetMinutes = highActivityMetMinutes;
this.highActivityTime = highActivityTime;
this.inactivityAlerts = inactivityAlerts;
this.lowActivityMetMinutes = lowActivityMetMinutes;
this.lowActivityTime = lowActivityTime;
this.mediumActivityMetMinutes = mediumActivityMetMinutes;
this.mediumActivityTime = mediumActivityTime;
this.metersToTarget = metersToTarget;
this.nonWearTime = nonWearTime;
this.restingTime = restingTime;
this.sedentaryMetMinutes = sedentaryMetMinutes;
this.sedentaryTime = sedentaryTime;
this.steps = steps;
this.targetCalories = targetCalories;
this.targetMeters = targetMeters;
this.totalCalories = totalCalories;
this.day = day;
}
@Override
public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
@Override
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
@Override
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return time;
case 1: return timeReceived;
case 2: return id;
case 3: return score;
case 4: return activeCalories;
case 5: return averageMetMinutes;
case 6: return contributorMeetDailyTargets;
case 7: return contributorMoveEveryHour;
case 8: return contributorRecoveryTime;
case 9: return contributorStayActive;
case 10: return contributorTrainingFrequency;
case 11: return contributorTrainingVolume;
case 12: return equivalentWalkingDistance;
case 13: return highActivityMetMinutes;
case 14: return highActivityTime;
case 15: return inactivityAlerts;
case 16: return lowActivityMetMinutes;
case 17: return lowActivityTime;
case 18: return mediumActivityMetMinutes;
case 19: return mediumActivityTime;
case 20: return metersToTarget;
case 21: return nonWearTime;
case 22: return restingTime;
case 23: return sedentaryMetMinutes;
case 24: return sedentaryTime;
case 25: return steps;
case 26: return targetCalories;
case 27: return targetMeters;
case 28: return totalCalories;
case 29: return day;
default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
}
}
// Used by DatumReader. Applications should not call.
@Override
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: time = (java.lang.Double)value$; break;
case 1: timeReceived = (java.lang.Double)value$; break;
case 2: id = value$ != null ? value$.toString() : null; break;
case 3: score = (java.lang.Integer)value$; break;
case 4: activeCalories = (java.lang.Integer)value$; break;
case 5: averageMetMinutes = (java.lang.Float)value$; break;
case 6: contributorMeetDailyTargets = (java.lang.Integer)value$; break;
case 7: contributorMoveEveryHour = (java.lang.Integer)value$; break;
case 8: contributorRecoveryTime = (java.lang.Integer)value$; break;
case 9: contributorStayActive = (java.lang.Integer)value$; break;
case 10: contributorTrainingFrequency = (java.lang.Integer)value$; break;
case 11: contributorTrainingVolume = (java.lang.Integer)value$; break;
case 12: equivalentWalkingDistance = (java.lang.Integer)value$; break;
case 13: highActivityMetMinutes = (java.lang.Integer)value$; break;
case 14: highActivityTime = (java.lang.Integer)value$; break;
case 15: inactivityAlerts = (java.lang.Integer)value$; break;
case 16: lowActivityMetMinutes = (java.lang.Integer)value$; break;
case 17: lowActivityTime = (java.lang.Integer)value$; break;
case 18: mediumActivityMetMinutes = (java.lang.Integer)value$; break;
case 19: mediumActivityTime = (java.lang.Integer)value$; break;
case 20: metersToTarget = (java.lang.Integer)value$; break;
case 21: nonWearTime = (java.lang.Integer)value$; break;
case 22: restingTime = (java.lang.Integer)value$; break;
case 23: sedentaryMetMinutes = (java.lang.Integer)value$; break;
case 24: sedentaryTime = (java.lang.Integer)value$; break;
case 25: steps = (java.lang.Integer)value$; break;
case 26: targetCalories = (java.lang.Integer)value$; break;
case 27: targetMeters = (java.lang.Integer)value$; break;
case 28: totalCalories = (java.lang.Integer)value$; break;
case 29: day = value$ != null ? value$.toString() : null; break;
default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
}
}
/**
* Gets the value of the 'time' field.
* @return Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
*/
public double getTime() {
return time;
}
/**
* Sets the value of the 'time' field.
* Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
* @param value the value to set.
*/
public void setTime(double value) {
this.time = value;
}
/**
* Gets the value of the 'timeReceived' field.
* @return Time that this record was collected by a service in seconds since the Unix Epoch (s).
*/
public double getTimeReceived() {
return timeReceived;
}
/**
* Sets the value of the 'timeReceived' field.
* Time that this record was collected by a service in seconds since the Unix Epoch (s).
* @param value the value to set.
*/
public void setTimeReceived(double value) {
this.timeReceived = value;
}
/**
* Gets the value of the 'id' field.
* @return Unique identifier of the activity from Oura.
*/
public java.lang.String getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* Unique identifier of the activity from Oura.
* @param value the value to set.
*/
public void setId(java.lang.String value) {
this.id = value;
}
/**
* Gets the value of the 'score' field.
* @return Activity score in range [1, 100]. Null if unknown.
*/
public java.lang.Integer getScore() {
return score;
}
/**
* Sets the value of the 'score' field.
* Activity score in range [1, 100]. Null if unknown.
* @param value the value to set.
*/
public void setScore(java.lang.Integer value) {
this.score = value;
}
/**
* Gets the value of the 'activeCalories' field.
* @return Active calories expended (in kilocalories). Null if unknown.
*/
public java.lang.Integer getActiveCalories() {
return activeCalories;
}
/**
* Sets the value of the 'activeCalories' field.
* Active calories expended (in kilocalories). Null if unknown.
* @param value the value to set.
*/
public void setActiveCalories(java.lang.Integer value) {
this.activeCalories = value;
}
/**
* Gets the value of the 'averageMetMinutes' field.
* @return Average metabolic equivalent (MET) in minutes. Null if unknown.
*/
public java.lang.Float getAverageMetMinutes() {
return averageMetMinutes;
}
/**
* Sets the value of the 'averageMetMinutes' field.
* Average metabolic equivalent (MET) in minutes. Null if unknown.
* @param value the value to set.
*/
public void setAverageMetMinutes(java.lang.Float value) {
this.averageMetMinutes = value;
}
/**
* Gets the value of the 'contributorMeetDailyTargets' field.
* @return Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
*/
public java.lang.Integer getContributorMeetDailyTargets() {
return contributorMeetDailyTargets;
}
/**
* Sets the value of the 'contributorMeetDailyTargets' field.
* Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
* @param value the value to set.
*/
public void setContributorMeetDailyTargets(java.lang.Integer value) {
this.contributorMeetDailyTargets = value;
}
/**
* Gets the value of the 'contributorMoveEveryHour' field.
* @return Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
*/
public java.lang.Integer getContributorMoveEveryHour() {
return contributorMoveEveryHour;
}
/**
* Sets the value of the 'contributorMoveEveryHour' field.
* Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
* @param value the value to set.
*/
public void setContributorMoveEveryHour(java.lang.Integer value) {
this.contributorMoveEveryHour = value;
}
/**
* Gets the value of the 'contributorRecoveryTime' field.
* @return Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
*/
public java.lang.Integer getContributorRecoveryTime() {
return contributorRecoveryTime;
}
/**
* Sets the value of the 'contributorRecoveryTime' field.
* Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
* @param value the value to set.
*/
public void setContributorRecoveryTime(java.lang.Integer value) {
this.contributorRecoveryTime = value;
}
/**
* Gets the value of the 'contributorStayActive' field.
* @return Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
*/
public java.lang.Integer getContributorStayActive() {
return contributorStayActive;
}
/**
* Sets the value of the 'contributorStayActive' field.
* Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
* @param value the value to set.
*/
public void setContributorStayActive(java.lang.Integer value) {
this.contributorStayActive = value;
}
/**
* Gets the value of the 'contributorTrainingFrequency' field.
* @return Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
*/
public java.lang.Integer getContributorTrainingFrequency() {
return contributorTrainingFrequency;
}
/**
* Sets the value of the 'contributorTrainingFrequency' field.
* Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
* @param value the value to set.
*/
public void setContributorTrainingFrequency(java.lang.Integer value) {
this.contributorTrainingFrequency = value;
}
/**
* Gets the value of the 'contributorTrainingVolume' field.
* @return Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
*/
public java.lang.Integer getContributorTrainingVolume() {
return contributorTrainingVolume;
}
/**
* Sets the value of the 'contributorTrainingVolume' field.
* Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
* @param value the value to set.
*/
public void setContributorTrainingVolume(java.lang.Integer value) {
this.contributorTrainingVolume = value;
}
/**
* Gets the value of the 'equivalentWalkingDistance' field.
* @return Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
*/
public java.lang.Integer getEquivalentWalkingDistance() {
return equivalentWalkingDistance;
}
/**
* Sets the value of the 'equivalentWalkingDistance' field.
* Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
* @param value the value to set.
*/
public void setEquivalentWalkingDistance(java.lang.Integer value) {
this.equivalentWalkingDistance = value;
}
/**
* Gets the value of the 'highActivityMetMinutes' field.
* @return High activity metabolic equivalent (MET) in minutes. Null if unknown.
*/
public java.lang.Integer getHighActivityMetMinutes() {
return highActivityMetMinutes;
}
/**
* Sets the value of the 'highActivityMetMinutes' field.
* High activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param value the value to set.
*/
public void setHighActivityMetMinutes(java.lang.Integer value) {
this.highActivityMetMinutes = value;
}
/**
* Gets the value of the 'highActivityTime' field.
* @return High activity metabolic equivalent (MET) in seconds. Null if unknown.
*/
public java.lang.Integer getHighActivityTime() {
return highActivityTime;
}
/**
* Sets the value of the 'highActivityTime' field.
* High activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param value the value to set.
*/
public void setHighActivityTime(java.lang.Integer value) {
this.highActivityTime = value;
}
/**
* Gets the value of the 'inactivityAlerts' field.
* @return Number of inactivity alerts received. Null if unknown.
*/
public java.lang.Integer getInactivityAlerts() {
return inactivityAlerts;
}
/**
* Sets the value of the 'inactivityAlerts' field.
* Number of inactivity alerts received. Null if unknown.
* @param value the value to set.
*/
public void setInactivityAlerts(java.lang.Integer value) {
this.inactivityAlerts = value;
}
/**
* Gets the value of the 'lowActivityMetMinutes' field.
* @return Low activity metabolic equivalent (MET) in minutes. Null if unknown.
*/
public java.lang.Integer getLowActivityMetMinutes() {
return lowActivityMetMinutes;
}
/**
* Sets the value of the 'lowActivityMetMinutes' field.
* Low activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param value the value to set.
*/
public void setLowActivityMetMinutes(java.lang.Integer value) {
this.lowActivityMetMinutes = value;
}
/**
* Gets the value of the 'lowActivityTime' field.
* @return Low activity metabolic equivalent (MET) in seconds. Null if unknown.
*/
public java.lang.Integer getLowActivityTime() {
return lowActivityTime;
}
/**
* Sets the value of the 'lowActivityTime' field.
* Low activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param value the value to set.
*/
public void setLowActivityTime(java.lang.Integer value) {
this.lowActivityTime = value;
}
/**
* Gets the value of the 'mediumActivityMetMinutes' field.
* @return Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
*/
public java.lang.Integer getMediumActivityMetMinutes() {
return mediumActivityMetMinutes;
}
/**
* Sets the value of the 'mediumActivityMetMinutes' field.
* Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param value the value to set.
*/
public void setMediumActivityMetMinutes(java.lang.Integer value) {
this.mediumActivityMetMinutes = value;
}
/**
* Gets the value of the 'mediumActivityTime' field.
* @return Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
*/
public java.lang.Integer getMediumActivityTime() {
return mediumActivityTime;
}
/**
* Sets the value of the 'mediumActivityTime' field.
* Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param value the value to set.
*/
public void setMediumActivityTime(java.lang.Integer value) {
this.mediumActivityTime = value;
}
/**
* Gets the value of the 'metersToTarget' field.
* @return Remaining meters to target. Null if unknown.
*/
public java.lang.Integer getMetersToTarget() {
return metersToTarget;
}
/**
* Sets the value of the 'metersToTarget' field.
* Remaining meters to target. Null if unknown.
* @param value the value to set.
*/
public void setMetersToTarget(java.lang.Integer value) {
this.metersToTarget = value;
}
/**
* Gets the value of the 'nonWearTime' field.
* @return The time (in seconds) in which the ring was not worn. Null if unknown.
*/
public java.lang.Integer getNonWearTime() {
return nonWearTime;
}
/**
* Sets the value of the 'nonWearTime' field.
* The time (in seconds) in which the ring was not worn. Null if unknown.
* @param value the value to set.
*/
public void setNonWearTime(java.lang.Integer value) {
this.nonWearTime = value;
}
/**
* Gets the value of the 'restingTime' field.
* @return Resting time (in seconds). Null if unknown.
*/
public java.lang.Integer getRestingTime() {
return restingTime;
}
/**
* Sets the value of the 'restingTime' field.
* Resting time (in seconds). Null if unknown.
* @param value the value to set.
*/
public void setRestingTime(java.lang.Integer value) {
this.restingTime = value;
}
/**
* Gets the value of the 'sedentaryMetMinutes' field.
* @return Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
*/
public java.lang.Integer getSedentaryMetMinutes() {
return sedentaryMetMinutes;
}
/**
* Sets the value of the 'sedentaryMetMinutes' field.
* Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
* @param value the value to set.
*/
public void setSedentaryMetMinutes(java.lang.Integer value) {
this.sedentaryMetMinutes = value;
}
/**
* Gets the value of the 'sedentaryTime' field.
* @return Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
*/
public java.lang.Integer getSedentaryTime() {
return sedentaryTime;
}
/**
* Sets the value of the 'sedentaryTime' field.
* Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
* @param value the value to set.
*/
public void setSedentaryTime(java.lang.Integer value) {
this.sedentaryTime = value;
}
/**
* Gets the value of the 'steps' field.
* @return Total number of steps taken. Null if unknown.
*/
public java.lang.Integer getSteps() {
return steps;
}
/**
* Sets the value of the 'steps' field.
* Total number of steps taken. Null if unknown.
* @param value the value to set.
*/
public void setSteps(java.lang.Integer value) {
this.steps = value;
}
/**
* Gets the value of the 'targetCalories' field.
* @return Daily activity target (in kilocalories). Null if unknown.
*/
public java.lang.Integer getTargetCalories() {
return targetCalories;
}
/**
* Sets the value of the 'targetCalories' field.
* Daily activity target (in kilocalories). Null if unknown.
* @param value the value to set.
*/
public void setTargetCalories(java.lang.Integer value) {
this.targetCalories = value;
}
/**
* Gets the value of the 'targetMeters' field.
* @return Daily activity target (in meters). Null if unknown.
*/
public java.lang.Integer getTargetMeters() {
return targetMeters;
}
/**
* Sets the value of the 'targetMeters' field.
* Daily activity target (in meters). Null if unknown.
* @param value the value to set.
*/
public void setTargetMeters(java.lang.Integer value) {
this.targetMeters = value;
}
/**
* Gets the value of the 'totalCalories' field.
* @return Total calories expended (in kilocalories). Null if unknown.
*/
public java.lang.Integer getTotalCalories() {
return totalCalories;
}
/**
* Sets the value of the 'totalCalories' field.
* Total calories expended (in kilocalories). Null if unknown.
* @param value the value to set.
*/
public void setTotalCalories(java.lang.Integer value) {
this.totalCalories = value;
}
/**
* Gets the value of the 'day' field.
* @return The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
*/
public java.lang.String getDay() {
return day;
}
/**
* Sets the value of the 'day' field.
* The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
* @param value the value to set.
*/
public void setDay(java.lang.String value) {
this.day = value;
}
/**
* Creates a new OuraDailyActivity RecordBuilder.
* @return A new OuraDailyActivity RecordBuilder
*/
public static org.radarcns.connector.oura.OuraDailyActivity.Builder newBuilder() {
return new org.radarcns.connector.oura.OuraDailyActivity.Builder();
}
/**
* Creates a new OuraDailyActivity RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new OuraDailyActivity RecordBuilder
*/
public static org.radarcns.connector.oura.OuraDailyActivity.Builder newBuilder(org.radarcns.connector.oura.OuraDailyActivity.Builder other) {
if (other == null) {
return new org.radarcns.connector.oura.OuraDailyActivity.Builder();
} else {
return new org.radarcns.connector.oura.OuraDailyActivity.Builder(other);
}
}
/**
* Creates a new OuraDailyActivity RecordBuilder by copying an existing OuraDailyActivity instance.
* @param other The existing instance to copy.
* @return A new OuraDailyActivity RecordBuilder
*/
public static org.radarcns.connector.oura.OuraDailyActivity.Builder newBuilder(org.radarcns.connector.oura.OuraDailyActivity other) {
if (other == null) {
return new org.radarcns.connector.oura.OuraDailyActivity.Builder();
} else {
return new org.radarcns.connector.oura.OuraDailyActivity.Builder(other);
}
}
/**
* RecordBuilder for OuraDailyActivity instances.
*/
@org.apache.avro.specific.AvroGenerated
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
/** Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp). */
private double time;
/** Time that this record was collected by a service in seconds since the Unix Epoch (s). */
private double timeReceived;
/** Unique identifier of the activity from Oura. */
private java.lang.String id;
/** Activity score in range [1, 100]. Null if unknown. */
private java.lang.Integer score;
/** Active calories expended (in kilocalories). Null if unknown. */
private java.lang.Integer activeCalories;
/** Average metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Float averageMetMinutes;
/** Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorMeetDailyTargets;
/** Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorMoveEveryHour;
/** Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorRecoveryTime;
/** Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorStayActive;
/** Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorTrainingFrequency;
/** Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown. */
private java.lang.Integer contributorTrainingVolume;
/** Equivalent walking distance (in meters) of energy expenditure. Null if unknown. */
private java.lang.Integer equivalentWalkingDistance;
/** High activity metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer highActivityMetMinutes;
/** High activity metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer highActivityTime;
/** Number of inactivity alerts received. Null if unknown. */
private java.lang.Integer inactivityAlerts;
/** Low activity metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer lowActivityMetMinutes;
/** Low activity metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer lowActivityTime;
/** Medium activity metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer mediumActivityMetMinutes;
/** Medium activity metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer mediumActivityTime;
/** Remaining meters to target. Null if unknown. */
private java.lang.Integer metersToTarget;
/** The time (in seconds) in which the ring was not worn. Null if unknown. */
private java.lang.Integer nonWearTime;
/** Resting time (in seconds). Null if unknown. */
private java.lang.Integer restingTime;
/** Sedentary metabolic equivalent (MET) in minutes. Null if unknown. */
private java.lang.Integer sedentaryMetMinutes;
/** Sedentary metabolic equivalent (MET) in seconds. Null if unknown. */
private java.lang.Integer sedentaryTime;
/** Total number of steps taken. Null if unknown. */
private java.lang.Integer steps;
/** Daily activity target (in kilocalories). Null if unknown. */
private java.lang.Integer targetCalories;
/** Daily activity target (in meters). Null if unknown. */
private java.lang.Integer targetMeters;
/** Total calories expended (in kilocalories). Null if unknown. */
private java.lang.Integer totalCalories;
/** The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown. */
private java.lang.String day;
/** Creates a new Builder */
private Builder() {
super(SCHEMA$, MODEL$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(org.radarcns.connector.oura.OuraDailyActivity.Builder other) {
super(other);
if (isValidValue(fields()[0], other.time)) {
this.time = data().deepCopy(fields()[0].schema(), other.time);
fieldSetFlags()[0] = other.fieldSetFlags()[0];
}
if (isValidValue(fields()[1], other.timeReceived)) {
this.timeReceived = data().deepCopy(fields()[1].schema(), other.timeReceived);
fieldSetFlags()[1] = other.fieldSetFlags()[1];
}
if (isValidValue(fields()[2], other.id)) {
this.id = data().deepCopy(fields()[2].schema(), other.id);
fieldSetFlags()[2] = other.fieldSetFlags()[2];
}
if (isValidValue(fields()[3], other.score)) {
this.score = data().deepCopy(fields()[3].schema(), other.score);
fieldSetFlags()[3] = other.fieldSetFlags()[3];
}
if (isValidValue(fields()[4], other.activeCalories)) {
this.activeCalories = data().deepCopy(fields()[4].schema(), other.activeCalories);
fieldSetFlags()[4] = other.fieldSetFlags()[4];
}
if (isValidValue(fields()[5], other.averageMetMinutes)) {
this.averageMetMinutes = data().deepCopy(fields()[5].schema(), other.averageMetMinutes);
fieldSetFlags()[5] = other.fieldSetFlags()[5];
}
if (isValidValue(fields()[6], other.contributorMeetDailyTargets)) {
this.contributorMeetDailyTargets = data().deepCopy(fields()[6].schema(), other.contributorMeetDailyTargets);
fieldSetFlags()[6] = other.fieldSetFlags()[6];
}
if (isValidValue(fields()[7], other.contributorMoveEveryHour)) {
this.contributorMoveEveryHour = data().deepCopy(fields()[7].schema(), other.contributorMoveEveryHour);
fieldSetFlags()[7] = other.fieldSetFlags()[7];
}
if (isValidValue(fields()[8], other.contributorRecoveryTime)) {
this.contributorRecoveryTime = data().deepCopy(fields()[8].schema(), other.contributorRecoveryTime);
fieldSetFlags()[8] = other.fieldSetFlags()[8];
}
if (isValidValue(fields()[9], other.contributorStayActive)) {
this.contributorStayActive = data().deepCopy(fields()[9].schema(), other.contributorStayActive);
fieldSetFlags()[9] = other.fieldSetFlags()[9];
}
if (isValidValue(fields()[10], other.contributorTrainingFrequency)) {
this.contributorTrainingFrequency = data().deepCopy(fields()[10].schema(), other.contributorTrainingFrequency);
fieldSetFlags()[10] = other.fieldSetFlags()[10];
}
if (isValidValue(fields()[11], other.contributorTrainingVolume)) {
this.contributorTrainingVolume = data().deepCopy(fields()[11].schema(), other.contributorTrainingVolume);
fieldSetFlags()[11] = other.fieldSetFlags()[11];
}
if (isValidValue(fields()[12], other.equivalentWalkingDistance)) {
this.equivalentWalkingDistance = data().deepCopy(fields()[12].schema(), other.equivalentWalkingDistance);
fieldSetFlags()[12] = other.fieldSetFlags()[12];
}
if (isValidValue(fields()[13], other.highActivityMetMinutes)) {
this.highActivityMetMinutes = data().deepCopy(fields()[13].schema(), other.highActivityMetMinutes);
fieldSetFlags()[13] = other.fieldSetFlags()[13];
}
if (isValidValue(fields()[14], other.highActivityTime)) {
this.highActivityTime = data().deepCopy(fields()[14].schema(), other.highActivityTime);
fieldSetFlags()[14] = other.fieldSetFlags()[14];
}
if (isValidValue(fields()[15], other.inactivityAlerts)) {
this.inactivityAlerts = data().deepCopy(fields()[15].schema(), other.inactivityAlerts);
fieldSetFlags()[15] = other.fieldSetFlags()[15];
}
if (isValidValue(fields()[16], other.lowActivityMetMinutes)) {
this.lowActivityMetMinutes = data().deepCopy(fields()[16].schema(), other.lowActivityMetMinutes);
fieldSetFlags()[16] = other.fieldSetFlags()[16];
}
if (isValidValue(fields()[17], other.lowActivityTime)) {
this.lowActivityTime = data().deepCopy(fields()[17].schema(), other.lowActivityTime);
fieldSetFlags()[17] = other.fieldSetFlags()[17];
}
if (isValidValue(fields()[18], other.mediumActivityMetMinutes)) {
this.mediumActivityMetMinutes = data().deepCopy(fields()[18].schema(), other.mediumActivityMetMinutes);
fieldSetFlags()[18] = other.fieldSetFlags()[18];
}
if (isValidValue(fields()[19], other.mediumActivityTime)) {
this.mediumActivityTime = data().deepCopy(fields()[19].schema(), other.mediumActivityTime);
fieldSetFlags()[19] = other.fieldSetFlags()[19];
}
if (isValidValue(fields()[20], other.metersToTarget)) {
this.metersToTarget = data().deepCopy(fields()[20].schema(), other.metersToTarget);
fieldSetFlags()[20] = other.fieldSetFlags()[20];
}
if (isValidValue(fields()[21], other.nonWearTime)) {
this.nonWearTime = data().deepCopy(fields()[21].schema(), other.nonWearTime);
fieldSetFlags()[21] = other.fieldSetFlags()[21];
}
if (isValidValue(fields()[22], other.restingTime)) {
this.restingTime = data().deepCopy(fields()[22].schema(), other.restingTime);
fieldSetFlags()[22] = other.fieldSetFlags()[22];
}
if (isValidValue(fields()[23], other.sedentaryMetMinutes)) {
this.sedentaryMetMinutes = data().deepCopy(fields()[23].schema(), other.sedentaryMetMinutes);
fieldSetFlags()[23] = other.fieldSetFlags()[23];
}
if (isValidValue(fields()[24], other.sedentaryTime)) {
this.sedentaryTime = data().deepCopy(fields()[24].schema(), other.sedentaryTime);
fieldSetFlags()[24] = other.fieldSetFlags()[24];
}
if (isValidValue(fields()[25], other.steps)) {
this.steps = data().deepCopy(fields()[25].schema(), other.steps);
fieldSetFlags()[25] = other.fieldSetFlags()[25];
}
if (isValidValue(fields()[26], other.targetCalories)) {
this.targetCalories = data().deepCopy(fields()[26].schema(), other.targetCalories);
fieldSetFlags()[26] = other.fieldSetFlags()[26];
}
if (isValidValue(fields()[27], other.targetMeters)) {
this.targetMeters = data().deepCopy(fields()[27].schema(), other.targetMeters);
fieldSetFlags()[27] = other.fieldSetFlags()[27];
}
if (isValidValue(fields()[28], other.totalCalories)) {
this.totalCalories = data().deepCopy(fields()[28].schema(), other.totalCalories);
fieldSetFlags()[28] = other.fieldSetFlags()[28];
}
if (isValidValue(fields()[29], other.day)) {
this.day = data().deepCopy(fields()[29].schema(), other.day);
fieldSetFlags()[29] = other.fieldSetFlags()[29];
}
}
/**
* Creates a Builder by copying an existing OuraDailyActivity instance
* @param other The existing instance to copy.
*/
private Builder(org.radarcns.connector.oura.OuraDailyActivity other) {
super(SCHEMA$, MODEL$);
if (isValidValue(fields()[0], other.time)) {
this.time = data().deepCopy(fields()[0].schema(), other.time);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.timeReceived)) {
this.timeReceived = data().deepCopy(fields()[1].schema(), other.timeReceived);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.id)) {
this.id = data().deepCopy(fields()[2].schema(), other.id);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.score)) {
this.score = data().deepCopy(fields()[3].schema(), other.score);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.activeCalories)) {
this.activeCalories = data().deepCopy(fields()[4].schema(), other.activeCalories);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.averageMetMinutes)) {
this.averageMetMinutes = data().deepCopy(fields()[5].schema(), other.averageMetMinutes);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.contributorMeetDailyTargets)) {
this.contributorMeetDailyTargets = data().deepCopy(fields()[6].schema(), other.contributorMeetDailyTargets);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.contributorMoveEveryHour)) {
this.contributorMoveEveryHour = data().deepCopy(fields()[7].schema(), other.contributorMoveEveryHour);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.contributorRecoveryTime)) {
this.contributorRecoveryTime = data().deepCopy(fields()[8].schema(), other.contributorRecoveryTime);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.contributorStayActive)) {
this.contributorStayActive = data().deepCopy(fields()[9].schema(), other.contributorStayActive);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.contributorTrainingFrequency)) {
this.contributorTrainingFrequency = data().deepCopy(fields()[10].schema(), other.contributorTrainingFrequency);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.contributorTrainingVolume)) {
this.contributorTrainingVolume = data().deepCopy(fields()[11].schema(), other.contributorTrainingVolume);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.equivalentWalkingDistance)) {
this.equivalentWalkingDistance = data().deepCopy(fields()[12].schema(), other.equivalentWalkingDistance);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.highActivityMetMinutes)) {
this.highActivityMetMinutes = data().deepCopy(fields()[13].schema(), other.highActivityMetMinutes);
fieldSetFlags()[13] = true;
}
if (isValidValue(fields()[14], other.highActivityTime)) {
this.highActivityTime = data().deepCopy(fields()[14].schema(), other.highActivityTime);
fieldSetFlags()[14] = true;
}
if (isValidValue(fields()[15], other.inactivityAlerts)) {
this.inactivityAlerts = data().deepCopy(fields()[15].schema(), other.inactivityAlerts);
fieldSetFlags()[15] = true;
}
if (isValidValue(fields()[16], other.lowActivityMetMinutes)) {
this.lowActivityMetMinutes = data().deepCopy(fields()[16].schema(), other.lowActivityMetMinutes);
fieldSetFlags()[16] = true;
}
if (isValidValue(fields()[17], other.lowActivityTime)) {
this.lowActivityTime = data().deepCopy(fields()[17].schema(), other.lowActivityTime);
fieldSetFlags()[17] = true;
}
if (isValidValue(fields()[18], other.mediumActivityMetMinutes)) {
this.mediumActivityMetMinutes = data().deepCopy(fields()[18].schema(), other.mediumActivityMetMinutes);
fieldSetFlags()[18] = true;
}
if (isValidValue(fields()[19], other.mediumActivityTime)) {
this.mediumActivityTime = data().deepCopy(fields()[19].schema(), other.mediumActivityTime);
fieldSetFlags()[19] = true;
}
if (isValidValue(fields()[20], other.metersToTarget)) {
this.metersToTarget = data().deepCopy(fields()[20].schema(), other.metersToTarget);
fieldSetFlags()[20] = true;
}
if (isValidValue(fields()[21], other.nonWearTime)) {
this.nonWearTime = data().deepCopy(fields()[21].schema(), other.nonWearTime);
fieldSetFlags()[21] = true;
}
if (isValidValue(fields()[22], other.restingTime)) {
this.restingTime = data().deepCopy(fields()[22].schema(), other.restingTime);
fieldSetFlags()[22] = true;
}
if (isValidValue(fields()[23], other.sedentaryMetMinutes)) {
this.sedentaryMetMinutes = data().deepCopy(fields()[23].schema(), other.sedentaryMetMinutes);
fieldSetFlags()[23] = true;
}
if (isValidValue(fields()[24], other.sedentaryTime)) {
this.sedentaryTime = data().deepCopy(fields()[24].schema(), other.sedentaryTime);
fieldSetFlags()[24] = true;
}
if (isValidValue(fields()[25], other.steps)) {
this.steps = data().deepCopy(fields()[25].schema(), other.steps);
fieldSetFlags()[25] = true;
}
if (isValidValue(fields()[26], other.targetCalories)) {
this.targetCalories = data().deepCopy(fields()[26].schema(), other.targetCalories);
fieldSetFlags()[26] = true;
}
if (isValidValue(fields()[27], other.targetMeters)) {
this.targetMeters = data().deepCopy(fields()[27].schema(), other.targetMeters);
fieldSetFlags()[27] = true;
}
if (isValidValue(fields()[28], other.totalCalories)) {
this.totalCalories = data().deepCopy(fields()[28].schema(), other.totalCalories);
fieldSetFlags()[28] = true;
}
if (isValidValue(fields()[29], other.day)) {
this.day = data().deepCopy(fields()[29].schema(), other.day);
fieldSetFlags()[29] = true;
}
}
/**
* Gets the value of the 'time' field.
* Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
* @return The value.
*/
public double getTime() {
return time;
}
/**
* Sets the value of the 'time' field.
* Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
* @param value The value of 'time'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setTime(double value) {
validate(fields()[0], value);
this.time = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'time' field has been set.
* Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
* @return True if the 'time' field has been set, false otherwise.
*/
public boolean hasTime() {
return fieldSetFlags()[0];
}
/**
* Clears the value of the 'time' field.
* Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearTime() {
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'timeReceived' field.
* Time that this record was collected by a service in seconds since the Unix Epoch (s).
* @return The value.
*/
public double getTimeReceived() {
return timeReceived;
}
/**
* Sets the value of the 'timeReceived' field.
* Time that this record was collected by a service in seconds since the Unix Epoch (s).
* @param value The value of 'timeReceived'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setTimeReceived(double value) {
validate(fields()[1], value);
this.timeReceived = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'timeReceived' field has been set.
* Time that this record was collected by a service in seconds since the Unix Epoch (s).
* @return True if the 'timeReceived' field has been set, false otherwise.
*/
public boolean hasTimeReceived() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'timeReceived' field.
* Time that this record was collected by a service in seconds since the Unix Epoch (s).
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearTimeReceived() {
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'id' field.
* Unique identifier of the activity from Oura.
* @return The value.
*/
public java.lang.String getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* Unique identifier of the activity from Oura.
* @param value The value of 'id'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setId(java.lang.String value) {
validate(fields()[2], value);
this.id = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'id' field has been set.
* Unique identifier of the activity from Oura.
* @return True if the 'id' field has been set, false otherwise.
*/
public boolean hasId() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'id' field.
* Unique identifier of the activity from Oura.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearId() {
id = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'score' field.
* Activity score in range [1, 100]. Null if unknown.
* @return The value.
*/
public java.lang.Integer getScore() {
return score;
}
/**
* Sets the value of the 'score' field.
* Activity score in range [1, 100]. Null if unknown.
* @param value The value of 'score'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setScore(java.lang.Integer value) {
validate(fields()[3], value);
this.score = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'score' field has been set.
* Activity score in range [1, 100]. Null if unknown.
* @return True if the 'score' field has been set, false otherwise.
*/
public boolean hasScore() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'score' field.
* Activity score in range [1, 100]. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearScore() {
score = null;
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'activeCalories' field.
* Active calories expended (in kilocalories). Null if unknown.
* @return The value.
*/
public java.lang.Integer getActiveCalories() {
return activeCalories;
}
/**
* Sets the value of the 'activeCalories' field.
* Active calories expended (in kilocalories). Null if unknown.
* @param value The value of 'activeCalories'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setActiveCalories(java.lang.Integer value) {
validate(fields()[4], value);
this.activeCalories = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'activeCalories' field has been set.
* Active calories expended (in kilocalories). Null if unknown.
* @return True if the 'activeCalories' field has been set, false otherwise.
*/
public boolean hasActiveCalories() {
return fieldSetFlags()[4];
}
/**
* Clears the value of the 'activeCalories' field.
* Active calories expended (in kilocalories). Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearActiveCalories() {
activeCalories = null;
fieldSetFlags()[4] = false;
return this;
}
/**
* Gets the value of the 'averageMetMinutes' field.
* Average metabolic equivalent (MET) in minutes. Null if unknown.
* @return The value.
*/
public java.lang.Float getAverageMetMinutes() {
return averageMetMinutes;
}
/**
* Sets the value of the 'averageMetMinutes' field.
* Average metabolic equivalent (MET) in minutes. Null if unknown.
* @param value The value of 'averageMetMinutes'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setAverageMetMinutes(java.lang.Float value) {
validate(fields()[5], value);
this.averageMetMinutes = value;
fieldSetFlags()[5] = true;
return this;
}
/**
* Checks whether the 'averageMetMinutes' field has been set.
* Average metabolic equivalent (MET) in minutes. Null if unknown.
* @return True if the 'averageMetMinutes' field has been set, false otherwise.
*/
public boolean hasAverageMetMinutes() {
return fieldSetFlags()[5];
}
/**
* Clears the value of the 'averageMetMinutes' field.
* Average metabolic equivalent (MET) in minutes. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearAverageMetMinutes() {
averageMetMinutes = null;
fieldSetFlags()[5] = false;
return this;
}
/**
* Gets the value of the 'contributorMeetDailyTargets' field.
* Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
* @return The value.
*/
public java.lang.Integer getContributorMeetDailyTargets() {
return contributorMeetDailyTargets;
}
/**
* Sets the value of the 'contributorMeetDailyTargets' field.
* Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
* @param value The value of 'contributorMeetDailyTargets'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setContributorMeetDailyTargets(java.lang.Integer value) {
validate(fields()[6], value);
this.contributorMeetDailyTargets = value;
fieldSetFlags()[6] = true;
return this;
}
/**
* Checks whether the 'contributorMeetDailyTargets' field has been set.
* Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
* @return True if the 'contributorMeetDailyTargets' field has been set, false otherwise.
*/
public boolean hasContributorMeetDailyTargets() {
return fieldSetFlags()[6];
}
/**
* Clears the value of the 'contributorMeetDailyTargets' field.
* Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearContributorMeetDailyTargets() {
contributorMeetDailyTargets = null;
fieldSetFlags()[6] = false;
return this;
}
/**
* Gets the value of the 'contributorMoveEveryHour' field.
* Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
* @return The value.
*/
public java.lang.Integer getContributorMoveEveryHour() {
return contributorMoveEveryHour;
}
/**
* Sets the value of the 'contributorMoveEveryHour' field.
* Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
* @param value The value of 'contributorMoveEveryHour'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setContributorMoveEveryHour(java.lang.Integer value) {
validate(fields()[7], value);
this.contributorMoveEveryHour = value;
fieldSetFlags()[7] = true;
return this;
}
/**
* Checks whether the 'contributorMoveEveryHour' field has been set.
* Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
* @return True if the 'contributorMoveEveryHour' field has been set, false otherwise.
*/
public boolean hasContributorMoveEveryHour() {
return fieldSetFlags()[7];
}
/**
* Clears the value of the 'contributorMoveEveryHour' field.
* Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearContributorMoveEveryHour() {
contributorMoveEveryHour = null;
fieldSetFlags()[7] = false;
return this;
}
/**
* Gets the value of the 'contributorRecoveryTime' field.
* Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
* @return The value.
*/
public java.lang.Integer getContributorRecoveryTime() {
return contributorRecoveryTime;
}
/**
* Sets the value of the 'contributorRecoveryTime' field.
* Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
* @param value The value of 'contributorRecoveryTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setContributorRecoveryTime(java.lang.Integer value) {
validate(fields()[8], value);
this.contributorRecoveryTime = value;
fieldSetFlags()[8] = true;
return this;
}
/**
* Checks whether the 'contributorRecoveryTime' field has been set.
* Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
* @return True if the 'contributorRecoveryTime' field has been set, false otherwise.
*/
public boolean hasContributorRecoveryTime() {
return fieldSetFlags()[8];
}
/**
* Clears the value of the 'contributorRecoveryTime' field.
* Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearContributorRecoveryTime() {
contributorRecoveryTime = null;
fieldSetFlags()[8] = false;
return this;
}
/**
* Gets the value of the 'contributorStayActive' field.
* Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
* @return The value.
*/
public java.lang.Integer getContributorStayActive() {
return contributorStayActive;
}
/**
* Sets the value of the 'contributorStayActive' field.
* Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
* @param value The value of 'contributorStayActive'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setContributorStayActive(java.lang.Integer value) {
validate(fields()[9], value);
this.contributorStayActive = value;
fieldSetFlags()[9] = true;
return this;
}
/**
* Checks whether the 'contributorStayActive' field has been set.
* Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
* @return True if the 'contributorStayActive' field has been set, false otherwise.
*/
public boolean hasContributorStayActive() {
return fieldSetFlags()[9];
}
/**
* Clears the value of the 'contributorStayActive' field.
* Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearContributorStayActive() {
contributorStayActive = null;
fieldSetFlags()[9] = false;
return this;
}
/**
* Gets the value of the 'contributorTrainingFrequency' field.
* Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
* @return The value.
*/
public java.lang.Integer getContributorTrainingFrequency() {
return contributorTrainingFrequency;
}
/**
* Sets the value of the 'contributorTrainingFrequency' field.
* Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
* @param value The value of 'contributorTrainingFrequency'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setContributorTrainingFrequency(java.lang.Integer value) {
validate(fields()[10], value);
this.contributorTrainingFrequency = value;
fieldSetFlags()[10] = true;
return this;
}
/**
* Checks whether the 'contributorTrainingFrequency' field has been set.
* Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
* @return True if the 'contributorTrainingFrequency' field has been set, false otherwise.
*/
public boolean hasContributorTrainingFrequency() {
return fieldSetFlags()[10];
}
/**
* Clears the value of the 'contributorTrainingFrequency' field.
* Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearContributorTrainingFrequency() {
contributorTrainingFrequency = null;
fieldSetFlags()[10] = false;
return this;
}
/**
* Gets the value of the 'contributorTrainingVolume' field.
* Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
* @return The value.
*/
public java.lang.Integer getContributorTrainingVolume() {
return contributorTrainingVolume;
}
/**
* Sets the value of the 'contributorTrainingVolume' field.
* Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
* @param value The value of 'contributorTrainingVolume'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setContributorTrainingVolume(java.lang.Integer value) {
validate(fields()[11], value);
this.contributorTrainingVolume = value;
fieldSetFlags()[11] = true;
return this;
}
/**
* Checks whether the 'contributorTrainingVolume' field has been set.
* Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
* @return True if the 'contributorTrainingVolume' field has been set, false otherwise.
*/
public boolean hasContributorTrainingVolume() {
return fieldSetFlags()[11];
}
/**
* Clears the value of the 'contributorTrainingVolume' field.
* Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearContributorTrainingVolume() {
contributorTrainingVolume = null;
fieldSetFlags()[11] = false;
return this;
}
/**
* Gets the value of the 'equivalentWalkingDistance' field.
* Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
* @return The value.
*/
public java.lang.Integer getEquivalentWalkingDistance() {
return equivalentWalkingDistance;
}
/**
* Sets the value of the 'equivalentWalkingDistance' field.
* Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
* @param value The value of 'equivalentWalkingDistance'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setEquivalentWalkingDistance(java.lang.Integer value) {
validate(fields()[12], value);
this.equivalentWalkingDistance = value;
fieldSetFlags()[12] = true;
return this;
}
/**
* Checks whether the 'equivalentWalkingDistance' field has been set.
* Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
* @return True if the 'equivalentWalkingDistance' field has been set, false otherwise.
*/
public boolean hasEquivalentWalkingDistance() {
return fieldSetFlags()[12];
}
/**
* Clears the value of the 'equivalentWalkingDistance' field.
* Equivalent walking distance (in meters) of energy expenditure. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearEquivalentWalkingDistance() {
equivalentWalkingDistance = null;
fieldSetFlags()[12] = false;
return this;
}
/**
* Gets the value of the 'highActivityMetMinutes' field.
* High activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return The value.
*/
public java.lang.Integer getHighActivityMetMinutes() {
return highActivityMetMinutes;
}
/**
* Sets the value of the 'highActivityMetMinutes' field.
* High activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param value The value of 'highActivityMetMinutes'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setHighActivityMetMinutes(java.lang.Integer value) {
validate(fields()[13], value);
this.highActivityMetMinutes = value;
fieldSetFlags()[13] = true;
return this;
}
/**
* Checks whether the 'highActivityMetMinutes' field has been set.
* High activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return True if the 'highActivityMetMinutes' field has been set, false otherwise.
*/
public boolean hasHighActivityMetMinutes() {
return fieldSetFlags()[13];
}
/**
* Clears the value of the 'highActivityMetMinutes' field.
* High activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearHighActivityMetMinutes() {
highActivityMetMinutes = null;
fieldSetFlags()[13] = false;
return this;
}
/**
* Gets the value of the 'highActivityTime' field.
* High activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return The value.
*/
public java.lang.Integer getHighActivityTime() {
return highActivityTime;
}
/**
* Sets the value of the 'highActivityTime' field.
* High activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param value The value of 'highActivityTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setHighActivityTime(java.lang.Integer value) {
validate(fields()[14], value);
this.highActivityTime = value;
fieldSetFlags()[14] = true;
return this;
}
/**
* Checks whether the 'highActivityTime' field has been set.
* High activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return True if the 'highActivityTime' field has been set, false otherwise.
*/
public boolean hasHighActivityTime() {
return fieldSetFlags()[14];
}
/**
* Clears the value of the 'highActivityTime' field.
* High activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearHighActivityTime() {
highActivityTime = null;
fieldSetFlags()[14] = false;
return this;
}
/**
* Gets the value of the 'inactivityAlerts' field.
* Number of inactivity alerts received. Null if unknown.
* @return The value.
*/
public java.lang.Integer getInactivityAlerts() {
return inactivityAlerts;
}
/**
* Sets the value of the 'inactivityAlerts' field.
* Number of inactivity alerts received. Null if unknown.
* @param value The value of 'inactivityAlerts'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setInactivityAlerts(java.lang.Integer value) {
validate(fields()[15], value);
this.inactivityAlerts = value;
fieldSetFlags()[15] = true;
return this;
}
/**
* Checks whether the 'inactivityAlerts' field has been set.
* Number of inactivity alerts received. Null if unknown.
* @return True if the 'inactivityAlerts' field has been set, false otherwise.
*/
public boolean hasInactivityAlerts() {
return fieldSetFlags()[15];
}
/**
* Clears the value of the 'inactivityAlerts' field.
* Number of inactivity alerts received. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearInactivityAlerts() {
inactivityAlerts = null;
fieldSetFlags()[15] = false;
return this;
}
/**
* Gets the value of the 'lowActivityMetMinutes' field.
* Low activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return The value.
*/
public java.lang.Integer getLowActivityMetMinutes() {
return lowActivityMetMinutes;
}
/**
* Sets the value of the 'lowActivityMetMinutes' field.
* Low activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param value The value of 'lowActivityMetMinutes'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setLowActivityMetMinutes(java.lang.Integer value) {
validate(fields()[16], value);
this.lowActivityMetMinutes = value;
fieldSetFlags()[16] = true;
return this;
}
/**
* Checks whether the 'lowActivityMetMinutes' field has been set.
* Low activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return True if the 'lowActivityMetMinutes' field has been set, false otherwise.
*/
public boolean hasLowActivityMetMinutes() {
return fieldSetFlags()[16];
}
/**
* Clears the value of the 'lowActivityMetMinutes' field.
* Low activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearLowActivityMetMinutes() {
lowActivityMetMinutes = null;
fieldSetFlags()[16] = false;
return this;
}
/**
* Gets the value of the 'lowActivityTime' field.
* Low activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return The value.
*/
public java.lang.Integer getLowActivityTime() {
return lowActivityTime;
}
/**
* Sets the value of the 'lowActivityTime' field.
* Low activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param value The value of 'lowActivityTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setLowActivityTime(java.lang.Integer value) {
validate(fields()[17], value);
this.lowActivityTime = value;
fieldSetFlags()[17] = true;
return this;
}
/**
* Checks whether the 'lowActivityTime' field has been set.
* Low activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return True if the 'lowActivityTime' field has been set, false otherwise.
*/
public boolean hasLowActivityTime() {
return fieldSetFlags()[17];
}
/**
* Clears the value of the 'lowActivityTime' field.
* Low activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearLowActivityTime() {
lowActivityTime = null;
fieldSetFlags()[17] = false;
return this;
}
/**
* Gets the value of the 'mediumActivityMetMinutes' field.
* Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return The value.
*/
public java.lang.Integer getMediumActivityMetMinutes() {
return mediumActivityMetMinutes;
}
/**
* Sets the value of the 'mediumActivityMetMinutes' field.
* Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
* @param value The value of 'mediumActivityMetMinutes'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setMediumActivityMetMinutes(java.lang.Integer value) {
validate(fields()[18], value);
this.mediumActivityMetMinutes = value;
fieldSetFlags()[18] = true;
return this;
}
/**
* Checks whether the 'mediumActivityMetMinutes' field has been set.
* Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return True if the 'mediumActivityMetMinutes' field has been set, false otherwise.
*/
public boolean hasMediumActivityMetMinutes() {
return fieldSetFlags()[18];
}
/**
* Clears the value of the 'mediumActivityMetMinutes' field.
* Medium activity metabolic equivalent (MET) in minutes. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearMediumActivityMetMinutes() {
mediumActivityMetMinutes = null;
fieldSetFlags()[18] = false;
return this;
}
/**
* Gets the value of the 'mediumActivityTime' field.
* Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return The value.
*/
public java.lang.Integer getMediumActivityTime() {
return mediumActivityTime;
}
/**
* Sets the value of the 'mediumActivityTime' field.
* Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
* @param value The value of 'mediumActivityTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setMediumActivityTime(java.lang.Integer value) {
validate(fields()[19], value);
this.mediumActivityTime = value;
fieldSetFlags()[19] = true;
return this;
}
/**
* Checks whether the 'mediumActivityTime' field has been set.
* Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return True if the 'mediumActivityTime' field has been set, false otherwise.
*/
public boolean hasMediumActivityTime() {
return fieldSetFlags()[19];
}
/**
* Clears the value of the 'mediumActivityTime' field.
* Medium activity metabolic equivalent (MET) in seconds. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearMediumActivityTime() {
mediumActivityTime = null;
fieldSetFlags()[19] = false;
return this;
}
/**
* Gets the value of the 'metersToTarget' field.
* Remaining meters to target. Null if unknown.
* @return The value.
*/
public java.lang.Integer getMetersToTarget() {
return metersToTarget;
}
/**
* Sets the value of the 'metersToTarget' field.
* Remaining meters to target. Null if unknown.
* @param value The value of 'metersToTarget'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setMetersToTarget(java.lang.Integer value) {
validate(fields()[20], value);
this.metersToTarget = value;
fieldSetFlags()[20] = true;
return this;
}
/**
* Checks whether the 'metersToTarget' field has been set.
* Remaining meters to target. Null if unknown.
* @return True if the 'metersToTarget' field has been set, false otherwise.
*/
public boolean hasMetersToTarget() {
return fieldSetFlags()[20];
}
/**
* Clears the value of the 'metersToTarget' field.
* Remaining meters to target. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearMetersToTarget() {
metersToTarget = null;
fieldSetFlags()[20] = false;
return this;
}
/**
* Gets the value of the 'nonWearTime' field.
* The time (in seconds) in which the ring was not worn. Null if unknown.
* @return The value.
*/
public java.lang.Integer getNonWearTime() {
return nonWearTime;
}
/**
* Sets the value of the 'nonWearTime' field.
* The time (in seconds) in which the ring was not worn. Null if unknown.
* @param value The value of 'nonWearTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setNonWearTime(java.lang.Integer value) {
validate(fields()[21], value);
this.nonWearTime = value;
fieldSetFlags()[21] = true;
return this;
}
/**
* Checks whether the 'nonWearTime' field has been set.
* The time (in seconds) in which the ring was not worn. Null if unknown.
* @return True if the 'nonWearTime' field has been set, false otherwise.
*/
public boolean hasNonWearTime() {
return fieldSetFlags()[21];
}
/**
* Clears the value of the 'nonWearTime' field.
* The time (in seconds) in which the ring was not worn. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearNonWearTime() {
nonWearTime = null;
fieldSetFlags()[21] = false;
return this;
}
/**
* Gets the value of the 'restingTime' field.
* Resting time (in seconds). Null if unknown.
* @return The value.
*/
public java.lang.Integer getRestingTime() {
return restingTime;
}
/**
* Sets the value of the 'restingTime' field.
* Resting time (in seconds). Null if unknown.
* @param value The value of 'restingTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setRestingTime(java.lang.Integer value) {
validate(fields()[22], value);
this.restingTime = value;
fieldSetFlags()[22] = true;
return this;
}
/**
* Checks whether the 'restingTime' field has been set.
* Resting time (in seconds). Null if unknown.
* @return True if the 'restingTime' field has been set, false otherwise.
*/
public boolean hasRestingTime() {
return fieldSetFlags()[22];
}
/**
* Clears the value of the 'restingTime' field.
* Resting time (in seconds). Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearRestingTime() {
restingTime = null;
fieldSetFlags()[22] = false;
return this;
}
/**
* Gets the value of the 'sedentaryMetMinutes' field.
* Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
* @return The value.
*/
public java.lang.Integer getSedentaryMetMinutes() {
return sedentaryMetMinutes;
}
/**
* Sets the value of the 'sedentaryMetMinutes' field.
* Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
* @param value The value of 'sedentaryMetMinutes'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setSedentaryMetMinutes(java.lang.Integer value) {
validate(fields()[23], value);
this.sedentaryMetMinutes = value;
fieldSetFlags()[23] = true;
return this;
}
/**
* Checks whether the 'sedentaryMetMinutes' field has been set.
* Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
* @return True if the 'sedentaryMetMinutes' field has been set, false otherwise.
*/
public boolean hasSedentaryMetMinutes() {
return fieldSetFlags()[23];
}
/**
* Clears the value of the 'sedentaryMetMinutes' field.
* Sedentary metabolic equivalent (MET) in minutes. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearSedentaryMetMinutes() {
sedentaryMetMinutes = null;
fieldSetFlags()[23] = false;
return this;
}
/**
* Gets the value of the 'sedentaryTime' field.
* Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
* @return The value.
*/
public java.lang.Integer getSedentaryTime() {
return sedentaryTime;
}
/**
* Sets the value of the 'sedentaryTime' field.
* Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
* @param value The value of 'sedentaryTime'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setSedentaryTime(java.lang.Integer value) {
validate(fields()[24], value);
this.sedentaryTime = value;
fieldSetFlags()[24] = true;
return this;
}
/**
* Checks whether the 'sedentaryTime' field has been set.
* Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
* @return True if the 'sedentaryTime' field has been set, false otherwise.
*/
public boolean hasSedentaryTime() {
return fieldSetFlags()[24];
}
/**
* Clears the value of the 'sedentaryTime' field.
* Sedentary metabolic equivalent (MET) in seconds. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearSedentaryTime() {
sedentaryTime = null;
fieldSetFlags()[24] = false;
return this;
}
/**
* Gets the value of the 'steps' field.
* Total number of steps taken. Null if unknown.
* @return The value.
*/
public java.lang.Integer getSteps() {
return steps;
}
/**
* Sets the value of the 'steps' field.
* Total number of steps taken. Null if unknown.
* @param value The value of 'steps'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setSteps(java.lang.Integer value) {
validate(fields()[25], value);
this.steps = value;
fieldSetFlags()[25] = true;
return this;
}
/**
* Checks whether the 'steps' field has been set.
* Total number of steps taken. Null if unknown.
* @return True if the 'steps' field has been set, false otherwise.
*/
public boolean hasSteps() {
return fieldSetFlags()[25];
}
/**
* Clears the value of the 'steps' field.
* Total number of steps taken. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearSteps() {
steps = null;
fieldSetFlags()[25] = false;
return this;
}
/**
* Gets the value of the 'targetCalories' field.
* Daily activity target (in kilocalories). Null if unknown.
* @return The value.
*/
public java.lang.Integer getTargetCalories() {
return targetCalories;
}
/**
* Sets the value of the 'targetCalories' field.
* Daily activity target (in kilocalories). Null if unknown.
* @param value The value of 'targetCalories'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setTargetCalories(java.lang.Integer value) {
validate(fields()[26], value);
this.targetCalories = value;
fieldSetFlags()[26] = true;
return this;
}
/**
* Checks whether the 'targetCalories' field has been set.
* Daily activity target (in kilocalories). Null if unknown.
* @return True if the 'targetCalories' field has been set, false otherwise.
*/
public boolean hasTargetCalories() {
return fieldSetFlags()[26];
}
/**
* Clears the value of the 'targetCalories' field.
* Daily activity target (in kilocalories). Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearTargetCalories() {
targetCalories = null;
fieldSetFlags()[26] = false;
return this;
}
/**
* Gets the value of the 'targetMeters' field.
* Daily activity target (in meters). Null if unknown.
* @return The value.
*/
public java.lang.Integer getTargetMeters() {
return targetMeters;
}
/**
* Sets the value of the 'targetMeters' field.
* Daily activity target (in meters). Null if unknown.
* @param value The value of 'targetMeters'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setTargetMeters(java.lang.Integer value) {
validate(fields()[27], value);
this.targetMeters = value;
fieldSetFlags()[27] = true;
return this;
}
/**
* Checks whether the 'targetMeters' field has been set.
* Daily activity target (in meters). Null if unknown.
* @return True if the 'targetMeters' field has been set, false otherwise.
*/
public boolean hasTargetMeters() {
return fieldSetFlags()[27];
}
/**
* Clears the value of the 'targetMeters' field.
* Daily activity target (in meters). Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearTargetMeters() {
targetMeters = null;
fieldSetFlags()[27] = false;
return this;
}
/**
* Gets the value of the 'totalCalories' field.
* Total calories expended (in kilocalories). Null if unknown.
* @return The value.
*/
public java.lang.Integer getTotalCalories() {
return totalCalories;
}
/**
* Sets the value of the 'totalCalories' field.
* Total calories expended (in kilocalories). Null if unknown.
* @param value The value of 'totalCalories'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setTotalCalories(java.lang.Integer value) {
validate(fields()[28], value);
this.totalCalories = value;
fieldSetFlags()[28] = true;
return this;
}
/**
* Checks whether the 'totalCalories' field has been set.
* Total calories expended (in kilocalories). Null if unknown.
* @return True if the 'totalCalories' field has been set, false otherwise.
*/
public boolean hasTotalCalories() {
return fieldSetFlags()[28];
}
/**
* Clears the value of the 'totalCalories' field.
* Total calories expended (in kilocalories). Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearTotalCalories() {
totalCalories = null;
fieldSetFlags()[28] = false;
return this;
}
/**
* Gets the value of the 'day' field.
* The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
* @return The value.
*/
public java.lang.String getDay() {
return day;
}
/**
* Sets the value of the 'day' field.
* The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
* @param value The value of 'day'.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder setDay(java.lang.String value) {
validate(fields()[29], value);
this.day = value;
fieldSetFlags()[29] = true;
return this;
}
/**
* Checks whether the 'day' field has been set.
* The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
* @return True if the 'day' field has been set, false otherwise.
*/
public boolean hasDay() {
return fieldSetFlags()[29];
}
/**
* Clears the value of the 'day' field.
* The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.
* @return This builder.
*/
public org.radarcns.connector.oura.OuraDailyActivity.Builder clearDay() {
day = null;
fieldSetFlags()[29] = false;
return this;
}
@Override
@SuppressWarnings("unchecked")
public OuraDailyActivity build() {
try {
OuraDailyActivity record = new OuraDailyActivity();
record.time = fieldSetFlags()[0] ? this.time : (java.lang.Double) defaultValue(fields()[0]);
record.timeReceived = fieldSetFlags()[1] ? this.timeReceived : (java.lang.Double) defaultValue(fields()[1]);
record.id = fieldSetFlags()[2] ? this.id : (java.lang.String) defaultValue(fields()[2]);
record.score = fieldSetFlags()[3] ? this.score : (java.lang.Integer) defaultValue(fields()[3]);
record.activeCalories = fieldSetFlags()[4] ? this.activeCalories : (java.lang.Integer) defaultValue(fields()[4]);
record.averageMetMinutes = fieldSetFlags()[5] ? this.averageMetMinutes : (java.lang.Float) defaultValue(fields()[5]);
record.contributorMeetDailyTargets = fieldSetFlags()[6] ? this.contributorMeetDailyTargets : (java.lang.Integer) defaultValue(fields()[6]);
record.contributorMoveEveryHour = fieldSetFlags()[7] ? this.contributorMoveEveryHour : (java.lang.Integer) defaultValue(fields()[7]);
record.contributorRecoveryTime = fieldSetFlags()[8] ? this.contributorRecoveryTime : (java.lang.Integer) defaultValue(fields()[8]);
record.contributorStayActive = fieldSetFlags()[9] ? this.contributorStayActive : (java.lang.Integer) defaultValue(fields()[9]);
record.contributorTrainingFrequency = fieldSetFlags()[10] ? this.contributorTrainingFrequency : (java.lang.Integer) defaultValue(fields()[10]);
record.contributorTrainingVolume = fieldSetFlags()[11] ? this.contributorTrainingVolume : (java.lang.Integer) defaultValue(fields()[11]);
record.equivalentWalkingDistance = fieldSetFlags()[12] ? this.equivalentWalkingDistance : (java.lang.Integer) defaultValue(fields()[12]);
record.highActivityMetMinutes = fieldSetFlags()[13] ? this.highActivityMetMinutes : (java.lang.Integer) defaultValue(fields()[13]);
record.highActivityTime = fieldSetFlags()[14] ? this.highActivityTime : (java.lang.Integer) defaultValue(fields()[14]);
record.inactivityAlerts = fieldSetFlags()[15] ? this.inactivityAlerts : (java.lang.Integer) defaultValue(fields()[15]);
record.lowActivityMetMinutes = fieldSetFlags()[16] ? this.lowActivityMetMinutes : (java.lang.Integer) defaultValue(fields()[16]);
record.lowActivityTime = fieldSetFlags()[17] ? this.lowActivityTime : (java.lang.Integer) defaultValue(fields()[17]);
record.mediumActivityMetMinutes = fieldSetFlags()[18] ? this.mediumActivityMetMinutes : (java.lang.Integer) defaultValue(fields()[18]);
record.mediumActivityTime = fieldSetFlags()[19] ? this.mediumActivityTime : (java.lang.Integer) defaultValue(fields()[19]);
record.metersToTarget = fieldSetFlags()[20] ? this.metersToTarget : (java.lang.Integer) defaultValue(fields()[20]);
record.nonWearTime = fieldSetFlags()[21] ? this.nonWearTime : (java.lang.Integer) defaultValue(fields()[21]);
record.restingTime = fieldSetFlags()[22] ? this.restingTime : (java.lang.Integer) defaultValue(fields()[22]);
record.sedentaryMetMinutes = fieldSetFlags()[23] ? this.sedentaryMetMinutes : (java.lang.Integer) defaultValue(fields()[23]);
record.sedentaryTime = fieldSetFlags()[24] ? this.sedentaryTime : (java.lang.Integer) defaultValue(fields()[24]);
record.steps = fieldSetFlags()[25] ? this.steps : (java.lang.Integer) defaultValue(fields()[25]);
record.targetCalories = fieldSetFlags()[26] ? this.targetCalories : (java.lang.Integer) defaultValue(fields()[26]);
record.targetMeters = fieldSetFlags()[27] ? this.targetMeters : (java.lang.Integer) defaultValue(fields()[27]);
record.totalCalories = fieldSetFlags()[28] ? this.totalCalories : (java.lang.Integer) defaultValue(fields()[28]);
record.day = fieldSetFlags()[29] ? this.day : (java.lang.String) defaultValue(fields()[29]);
return record;
} catch (org.apache.avro.AvroMissingFieldException e) {
throw e;
} catch (java.lang.Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumWriter
WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, SpecificData.getEncoder(out));
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumReader
READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, SpecificData.getDecoder(in));
}
@Override protected boolean hasCustomCoders() { return true; }
@Override public void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeDouble(this.time);
out.writeDouble(this.timeReceived);
if (this.id == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeString(this.id);
}
if (this.score == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.score);
}
if (this.activeCalories == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.activeCalories);
}
if (this.averageMetMinutes == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeFloat(this.averageMetMinutes);
}
if (this.contributorMeetDailyTargets == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.contributorMeetDailyTargets);
}
if (this.contributorMoveEveryHour == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.contributorMoveEveryHour);
}
if (this.contributorRecoveryTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.contributorRecoveryTime);
}
if (this.contributorStayActive == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.contributorStayActive);
}
if (this.contributorTrainingFrequency == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.contributorTrainingFrequency);
}
if (this.contributorTrainingVolume == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.contributorTrainingVolume);
}
if (this.equivalentWalkingDistance == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.equivalentWalkingDistance);
}
if (this.highActivityMetMinutes == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.highActivityMetMinutes);
}
if (this.highActivityTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.highActivityTime);
}
if (this.inactivityAlerts == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.inactivityAlerts);
}
if (this.lowActivityMetMinutes == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.lowActivityMetMinutes);
}
if (this.lowActivityTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.lowActivityTime);
}
if (this.mediumActivityMetMinutes == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.mediumActivityMetMinutes);
}
if (this.mediumActivityTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.mediumActivityTime);
}
if (this.metersToTarget == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.metersToTarget);
}
if (this.nonWearTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.nonWearTime);
}
if (this.restingTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.restingTime);
}
if (this.sedentaryMetMinutes == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.sedentaryMetMinutes);
}
if (this.sedentaryTime == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.sedentaryTime);
}
if (this.steps == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.steps);
}
if (this.targetCalories == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.targetCalories);
}
if (this.targetMeters == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.targetMeters);
}
if (this.totalCalories == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeInt(this.totalCalories);
}
if (this.day == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeString(this.day);
}
}
@Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
throws java.io.IOException
{
org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
if (fieldOrder == null) {
this.time = in.readDouble();
this.timeReceived = in.readDouble();
if (in.readIndex() != 1) {
in.readNull();
this.id = null;
} else {
this.id = in.readString();
}
if (in.readIndex() != 1) {
in.readNull();
this.score = null;
} else {
this.score = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.activeCalories = null;
} else {
this.activeCalories = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.averageMetMinutes = null;
} else {
this.averageMetMinutes = in.readFloat();
}
if (in.readIndex() != 1) {
in.readNull();
this.contributorMeetDailyTargets = null;
} else {
this.contributorMeetDailyTargets = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.contributorMoveEveryHour = null;
} else {
this.contributorMoveEveryHour = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.contributorRecoveryTime = null;
} else {
this.contributorRecoveryTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.contributorStayActive = null;
} else {
this.contributorStayActive = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.contributorTrainingFrequency = null;
} else {
this.contributorTrainingFrequency = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.contributorTrainingVolume = null;
} else {
this.contributorTrainingVolume = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.equivalentWalkingDistance = null;
} else {
this.equivalentWalkingDistance = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.highActivityMetMinutes = null;
} else {
this.highActivityMetMinutes = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.highActivityTime = null;
} else {
this.highActivityTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.inactivityAlerts = null;
} else {
this.inactivityAlerts = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.lowActivityMetMinutes = null;
} else {
this.lowActivityMetMinutes = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.lowActivityTime = null;
} else {
this.lowActivityTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.mediumActivityMetMinutes = null;
} else {
this.mediumActivityMetMinutes = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.mediumActivityTime = null;
} else {
this.mediumActivityTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.metersToTarget = null;
} else {
this.metersToTarget = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.nonWearTime = null;
} else {
this.nonWearTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.restingTime = null;
} else {
this.restingTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.sedentaryMetMinutes = null;
} else {
this.sedentaryMetMinutes = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.sedentaryTime = null;
} else {
this.sedentaryTime = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.steps = null;
} else {
this.steps = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.targetCalories = null;
} else {
this.targetCalories = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.targetMeters = null;
} else {
this.targetMeters = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.totalCalories = null;
} else {
this.totalCalories = in.readInt();
}
if (in.readIndex() != 1) {
in.readNull();
this.day = null;
} else {
this.day = in.readString();
}
} else {
for (int i = 0; i < 30; i++) {
switch (fieldOrder[i].pos()) {
case 0:
this.time = in.readDouble();
break;
case 1:
this.timeReceived = in.readDouble();
break;
case 2:
if (in.readIndex() != 1) {
in.readNull();
this.id = null;
} else {
this.id = in.readString();
}
break;
case 3:
if (in.readIndex() != 1) {
in.readNull();
this.score = null;
} else {
this.score = in.readInt();
}
break;
case 4:
if (in.readIndex() != 1) {
in.readNull();
this.activeCalories = null;
} else {
this.activeCalories = in.readInt();
}
break;
case 5:
if (in.readIndex() != 1) {
in.readNull();
this.averageMetMinutes = null;
} else {
this.averageMetMinutes = in.readFloat();
}
break;
case 6:
if (in.readIndex() != 1) {
in.readNull();
this.contributorMeetDailyTargets = null;
} else {
this.contributorMeetDailyTargets = in.readInt();
}
break;
case 7:
if (in.readIndex() != 1) {
in.readNull();
this.contributorMoveEveryHour = null;
} else {
this.contributorMoveEveryHour = in.readInt();
}
break;
case 8:
if (in.readIndex() != 1) {
in.readNull();
this.contributorRecoveryTime = null;
} else {
this.contributorRecoveryTime = in.readInt();
}
break;
case 9:
if (in.readIndex() != 1) {
in.readNull();
this.contributorStayActive = null;
} else {
this.contributorStayActive = in.readInt();
}
break;
case 10:
if (in.readIndex() != 1) {
in.readNull();
this.contributorTrainingFrequency = null;
} else {
this.contributorTrainingFrequency = in.readInt();
}
break;
case 11:
if (in.readIndex() != 1) {
in.readNull();
this.contributorTrainingVolume = null;
} else {
this.contributorTrainingVolume = in.readInt();
}
break;
case 12:
if (in.readIndex() != 1) {
in.readNull();
this.equivalentWalkingDistance = null;
} else {
this.equivalentWalkingDistance = in.readInt();
}
break;
case 13:
if (in.readIndex() != 1) {
in.readNull();
this.highActivityMetMinutes = null;
} else {
this.highActivityMetMinutes = in.readInt();
}
break;
case 14:
if (in.readIndex() != 1) {
in.readNull();
this.highActivityTime = null;
} else {
this.highActivityTime = in.readInt();
}
break;
case 15:
if (in.readIndex() != 1) {
in.readNull();
this.inactivityAlerts = null;
} else {
this.inactivityAlerts = in.readInt();
}
break;
case 16:
if (in.readIndex() != 1) {
in.readNull();
this.lowActivityMetMinutes = null;
} else {
this.lowActivityMetMinutes = in.readInt();
}
break;
case 17:
if (in.readIndex() != 1) {
in.readNull();
this.lowActivityTime = null;
} else {
this.lowActivityTime = in.readInt();
}
break;
case 18:
if (in.readIndex() != 1) {
in.readNull();
this.mediumActivityMetMinutes = null;
} else {
this.mediumActivityMetMinutes = in.readInt();
}
break;
case 19:
if (in.readIndex() != 1) {
in.readNull();
this.mediumActivityTime = null;
} else {
this.mediumActivityTime = in.readInt();
}
break;
case 20:
if (in.readIndex() != 1) {
in.readNull();
this.metersToTarget = null;
} else {
this.metersToTarget = in.readInt();
}
break;
case 21:
if (in.readIndex() != 1) {
in.readNull();
this.nonWearTime = null;
} else {
this.nonWearTime = in.readInt();
}
break;
case 22:
if (in.readIndex() != 1) {
in.readNull();
this.restingTime = null;
} else {
this.restingTime = in.readInt();
}
break;
case 23:
if (in.readIndex() != 1) {
in.readNull();
this.sedentaryMetMinutes = null;
} else {
this.sedentaryMetMinutes = in.readInt();
}
break;
case 24:
if (in.readIndex() != 1) {
in.readNull();
this.sedentaryTime = null;
} else {
this.sedentaryTime = in.readInt();
}
break;
case 25:
if (in.readIndex() != 1) {
in.readNull();
this.steps = null;
} else {
this.steps = in.readInt();
}
break;
case 26:
if (in.readIndex() != 1) {
in.readNull();
this.targetCalories = null;
} else {
this.targetCalories = in.readInt();
}
break;
case 27:
if (in.readIndex() != 1) {
in.readNull();
this.targetMeters = null;
} else {
this.targetMeters = in.readInt();
}
break;
case 28:
if (in.readIndex() != 1) {
in.readNull();
this.totalCalories = null;
} else {
this.totalCalories = in.readInt();
}
break;
case 29:
if (in.readIndex() != 1) {
in.readNull();
this.day = null;
} else {
this.day = in.readString();
}
break;
default:
throw new java.io.IOException("Corrupt ResolvingDecoder.");
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy