org.gel.models.report.avro.Actions Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.report.avro;
@SuppressWarnings("all")
/** Clinical actions */
@org.apache.avro.specific.AvroGenerated
public class Actions extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Actions\",\"namespace\":\"org.gel.models.report.avro\",\"doc\":\"Clinical actions\",\"fields\":[{\"name\":\"trials\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Trial\",\"fields\":[{\"name\":\"studyUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URL where reference information for this trail can be found\"},{\"name\":\"studyIdentifier\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Trail/Study indetifier\"},{\"name\":\"startDate\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Start date of the study\"},{\"name\":\"estimateCompletionDate\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Completion date of the study\"},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the study\"},{\"name\":\"phase\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"StudyPhase\",\"doc\":\"N/A: Trials without phases (for example, studies of devices or behavioural interventions).\\n Early Phase 1 (Formerly listed as \\\"Phase 0\\\"): Exploratory trials, involving very limited human exposure, with no therapeutic or diagnostic intent (e.g., screening studies, microdose studies). See FDA guidance on exploratory IND studies for more information.\\n Phase 1: Includes initial studies to determine the metabolism and pharmacologic actions of drugs in humans, the side effects associated with increasing doses, and to gain early evidence of effectiveness; may include healthy participants and/or patients.\\n Phase 1/Phase 2: Trials that are a combination of phases 1 and 2.\\n Phase 2: Includes controlled clinical studies conducted to evaluate the effectiveness of the drug for a particular indication or indications in participants with the disease or condition under study and to determine the common short-term side effects and risks.\\n Phase 2/Phase 3: Trials that are a combination of phases 2 and 3.\\n Phase 3: Includes trials conducted after preliminary evidence suggesting effectiveness of the drug has been obtained, and are intended to gather additional information to evaluate the overall benefit-risk relationship of the drug.\\n Phase 4: Studies of FDA-approved drugs to delineate additional information including the drug's risks, benefits, and optimal use.\",\"symbols\":[\"na\",\"early_phase1\",\"phase1\",\"phase1_phase2\",\"phase2\",\"phase2_phase3\",\"phase3\",\"phase4\"]}],\"doc\":\"Study Phase\"},{\"name\":\"interventions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Intervention\",\"doc\":\"A process or action that is the focus of a clinical study.\\n Ref. https://prsinfo.clinicaltrials.gov/definitions.html\",\"fields\":[{\"name\":\"interventionType\",\"type\":{\"type\":\"enum\",\"name\":\"InterventionType\",\"doc\":\"For each intervention studied in the clinical study, the general type of intervention\\n\\n* `drug`: Including placebo\\n* `device`: Including sham\\n* `biological`: Vaccine\\n* `procedure`: Surgery\\n* `radiation`\\n* `behavioral`: For example, psychotherapy, lifestyle counselling\\n* `genetic`: Including gene transfer, stem cell and recombinant DNA\\n* `dietary_supplement`: For example, vitamins, minerals\\n* `combination_product`: Combining a drug and device, a biological product and device; a drug and biological product; or a drug, biological product, and device\\n* `diagnostic_test`: For example, imaging, in-vitro\\n* `other`\\n\\n Ref. https://prsinfo.clinicaltrials.gov/definitions.htm\",\"symbols\":[\"drug\",\"device\",\"procedure\",\"biological\",\"radiation\",\"behavioral\",\"genetic\",\"dietary_supplement\",\"combination_product\",\"diagnostic_test\",\"other\"]},\"doc\":\"Intervention type, i.e drug\"},{\"name\":\"interventionName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Intervention name: Placebo\"}]}}],\"doc\":\"Interventions\"},{\"name\":\"conditions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Conditions\"},{\"name\":\"primaryPurpose\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"PrimaryPurpose\",\"doc\":\"Treatment: One or more interventions are being evaluated for treating a disease, syndrome, or condition.\\n Prevention: One or more interventions are being assessed for preventing the development of a specific disease or health condition.\\n Diagnostic: One or more interventions are being evaluated for identifying a disease or health condition.\\n Supportive Care: One or more interventions are evaluated for maximizing comfort, minimizing side effects, or mitigating against a decline in the participant's health or function.\\n Screening: One or more interventions are assessed or examined for identifying a condition, or risk factors for a condition, in people who are not yet known to have the condition or risk factor.\\n Health Services Research: One or more interventions for evaluating the delivery, processes, management, organization, or financing of healthcare.\\n Basic Science: One or more interventions for examining the basic mechanism of action (for example, physiology or biomechanics of an intervention).\\n Device Feasibility: An intervention of a device product is being evaluated in a small clinical trial (generally fewer than 10 participants) to determine the feasibility of the product; or a clinical trial to test a prototype device for feasibility and not health outcomes. Such studies are conducted to confirm the design and operating specifications of a device before beginning a full clinical trial.\\n Other: None of the other options applies.\\n\\n Ref. https://prsinfo.clinicaltrials.gov/definitions.htm\",\"symbols\":[\"treatment\",\"prevention\",\"diagnostic\",\"supportive_care\",\"screening\",\"health_services_research\",\"basic_science\",\"device_feasibility\",\"other\"]}],\"doc\":\"Primary Purpose of the study\"},{\"name\":\"studyType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"StudyType\",\"doc\":\"* `Interventional (clinical trial)`: Participants are assigned prospectively to an intervention or interventions\\naccording to a protocol to evaluate the effect of the intervention(s) on biomedical or other health related outcomes.\\n* `Observational`: Studies in human beings in which biomedical and/or health outcomes are assessed in pre-defined groups\\nof individuals. Participants in the study may receive diagnostic, therapeutic, or other interventions, but the\\ninvestigator does not assign specific interventions to the study participants. This includes when participants\\nreceive interventions as part of routine medical care, and a researcher studies the effect of the intervention.\\n* `Expanded Access`: An investigational drug product (including biological product)\\navailable through expanded access for patients who do not qualify for enrollment in a clinical trial.\\nExpanded Access includes all expanded access types under section 561 of the Federal Food, Drug, and\\nCosmetic Act: (1) for individual patients, including emergency use; (2) for intermediate-size patient populations;\\nand (3) under a treatment IND or treatment protocol. (For more information on data requirements for this Study Type,\\nsee Expanded Access Data Element Definitions).\",\"symbols\":[\"interventional\",\"observational\",\"patient_registry\",\"expanded_access\"]}],\"doc\":\"Study Type\"},{\"name\":\"demogrphicElegibilityCriteria\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DemographicElegibilityCriteria\",\"fields\":[{\"name\":\"sex\",\"type\":{\"type\":\"enum\",\"name\":\"Sex\",\"namespace\":\"org.gel.models.participant.avro\",\"doc\":\"Sex\",\"symbols\":[\"MALE\",\"FEMALE\",\"UNKNOWN\"]}},{\"name\":\"ageRange\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AgeRange\",\"fields\":[{\"name\":\"minimumAge\",\"type\":\"int\"},{\"name\":\"maximumAge\",\"type\":\"int\"},{\"name\":\"timeunit\",\"type\":{\"type\":\"enum\",\"name\":\"TimeUnit\",\"symbols\":[\"years\",\"months\",\"weeks\",\"days\",\"hours\",\"minutes\",\"na\"]}}]}]}]}],\"doc\":\"Elegigility Criteria based on Age and Sex\"},{\"name\":\"locations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TrialLocation\",\"fields\":[{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"city\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"country\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"zip\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]}]}}","],\"doc\":\"List with all of the locations where participant can enrolle\"},{\"name\":\"variantActionable\",\"type\":\"boolean\",\"doc\":\"If true, the association was made using the variant information,\\n if not the association was made at Genomic Entity level\"}]}}]},{\"name\":\"prognosis\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Prognosis\",\"fields\":[{\"name\":\"referenceUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URL where reference information for this prognosis can be found\"},{\"name\":\"prognosis\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"PrognosisClassification\",\"symbols\":[\"altered_prognosis\",\"favourable_prognosis\",\"unfavourable_prognosis\"]}],\"doc\":\"Prognosis classification (defined as favourable or unfavourable),\\n in the case that the direction of the prognosis is not known altered_prognosis should be used\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Source if known\"},{\"name\":\"references\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"References\"},{\"name\":\"conditions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Conditions\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Full description of the associated prognosis\"},{\"name\":\"variantActionable\",\"type\":\"boolean\",\"doc\":\"If true, the association was made at the variant level, if not the association was made at Genomic Entity level\"}]}}]},{\"name\":\"therapies\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Therapy\",\"fields\":[{\"name\":\"referenceUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URL where reference information for this therapy association can be found\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Source\"},{\"name\":\"references\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"References\"},{\"name\":\"conditions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Conditions\"},{\"name\":\"drugResponse\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DrugResponse\",\"fields\":[{\"name\":\"TreatmentAgent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Treatment agent\"},{\"name\":\"drugResponseClassification\",\"type\":{\"type\":\"enum\",\"name\":\"DrugResponseClassification\",\"symbols\":[\"altered_sensitivity\",\"reduced_sensitivity\",\"increased_sensitivity\",\"altered_resistance\",\"increased_resistance\",\"reduced_resistance\",\"increased_risk_of_toxicity\",\"reduced_risk_of_toxicity\",\"altered_toxicity\",\"adverse_drug_reaction\",\"indication\",\"contraindication\",\"dosing_alteration\",\"increased_dose\",\"reduced_dose\",\"increased_monitoring\",\"increased_efficacy\",\"reduced_efficacy\",\"altered_efficacy\"]},\"doc\":\"associated effect of the drug\"}]}}],\"doc\":\"Drug responses\"},{\"name\":\"otherInterventions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Intervention\"}],\"doc\":\"Any other clinical intervention\"},{\"name\":\"variantActionable\",\"type\":\"boolean\",\"doc\":\"If true, the association was made at the variant level, if not the association was made at Genomic Entity level\"}]}}]},{\"name\":\"diagnostic\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Diagnostic\",\"fields\":[{\"name\":\"referenceUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URL where reference information for this prognosis can be found\"},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Sources if known\"},{\"name\":\"references\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"References\"},{\"name\":\"biomarkers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Biomarkers\"},{\"name\":\"conditions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Associated conditions\"},{\"name\":\"diagnosis\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Diagnosis\"},{\"name\":\"diagnosisStatus\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Diagnosis status\"},{\"name\":\"otherCondition\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Other condition\"},{\"name\":\"variantActionable\",\"type\":\"boolean\",\"doc\":\"If true, the association was made at the variant level, if not the association was made at Genomic Entity level\"}]}}]},{\"name\":\"otherAction\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"OtherAction\",\"fields\":[{\"name\":\"referenceUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URL where reference information for this action can be found\"},{\"name\":\"identifier\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Action identifier\"},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Sources if known\"},{\"name\":\"actionType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Action type\"},{\"name\":\"conditions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Associated conditions\"},{\"name\":\"otherAttributes\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Other attributes\"},{\"name\":\"variantActionable\",\"type\":\"boolean\",\"doc\":\"If true, the association was made at the variant level, if not the association was made at Genomic Entity level\"}]}}]}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.util.List trials;
private java.util.List prognosis;
private java.util.List therapies;
private java.util.List diagnostic;
private java.util.List otherAction;
/**
* 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 Actions() {}
/**
* All-args constructor.
*/
public Actions(java.util.List trials, java.util.List prognosis, java.util.List therapies, java.util.List diagnostic, java.util.List otherAction) {
this.trials = trials;
this.prognosis = prognosis;
this.therapies = therapies;
this.diagnostic = diagnostic;
this.otherAction = otherAction;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return trials;
case 1: return prognosis;
case 2: return therapies;
case 3: return diagnostic;
case 4: return otherAction;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: trials = (java.util.List)value$; break;
case 1: prognosis = (java.util.List)value$; break;
case 2: therapies = (java.util.List)value$; break;
case 3: diagnostic = (java.util.List)value$; break;
case 4: otherAction = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'trials' field.
*/
public java.util.List getTrials() {
return trials;
}
/**
* Sets the value of the 'trials' field.
* @param value the value to set.
*/
public void setTrials(java.util.List value) {
this.trials = value;
}
/**
* Gets the value of the 'prognosis' field.
*/
public java.util.List getPrognosis() {
return prognosis;
}
/**
* Sets the value of the 'prognosis' field.
* @param value the value to set.
*/
public void setPrognosis(java.util.List value) {
this.prognosis = value;
}
/**
* Gets the value of the 'therapies' field.
*/
public java.util.List getTherapies() {
return therapies;
}
/**
* Sets the value of the 'therapies' field.
* @param value the value to set.
*/
public void setTherapies(java.util.List value) {
this.therapies = value;
}
/**
* Gets the value of the 'diagnostic' field.
*/
public java.util.List getDiagnostic() {
return diagnostic;
}
/**
* Sets the value of the 'diagnostic' field.
* @param value the value to set.
*/
public void setDiagnostic(java.util.List value) {
this.diagnostic = value;
}
/**
* Gets the value of the 'otherAction' field.
*/
public java.util.List getOtherAction() {
return otherAction;
}
/**
* Sets the value of the 'otherAction' field.
* @param value the value to set.
*/
public void setOtherAction(java.util.List value) {
this.otherAction = value;
}
/** Creates a new Actions RecordBuilder */
public static org.gel.models.report.avro.Actions.Builder newBuilder() {
return new org.gel.models.report.avro.Actions.Builder();
}
/** Creates a new Actions RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.Actions.Builder newBuilder(org.gel.models.report.avro.Actions.Builder other) {
return new org.gel.models.report.avro.Actions.Builder(other);
}
/** Creates a new Actions RecordBuilder by copying an existing Actions instance */
public static org.gel.models.report.avro.Actions.Builder newBuilder(org.gel.models.report.avro.Actions other) {
return new org.gel.models.report.avro.Actions.Builder(other);
}
/**
* RecordBuilder for Actions instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.util.List trials;
private java.util.List prognosis;
private java.util.List therapies;
private java.util.List diagnostic;
private java.util.List otherAction;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.Actions.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.Actions.Builder other) {
super(other);
if (isValidValue(fields()[0], other.trials)) {
this.trials = data().deepCopy(fields()[0].schema(), other.trials);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.prognosis)) {
this.prognosis = data().deepCopy(fields()[1].schema(), other.prognosis);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.therapies)) {
this.therapies = data().deepCopy(fields()[2].schema(), other.therapies);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.diagnostic)) {
this.diagnostic = data().deepCopy(fields()[3].schema(), other.diagnostic);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.otherAction)) {
this.otherAction = data().deepCopy(fields()[4].schema(), other.otherAction);
fieldSetFlags()[4] = true;
}
}
/** Creates a Builder by copying an existing Actions instance */
private Builder(org.gel.models.report.avro.Actions other) {
super(org.gel.models.report.avro.Actions.SCHEMA$);
if (isValidValue(fields()[0], other.trials)) {
this.trials = data().deepCopy(fields()[0].schema(), other.trials);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.prognosis)) {
this.prognosis = data().deepCopy(fields()[1].schema(), other.prognosis);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.therapies)) {
this.therapies = data().deepCopy(fields()[2].schema(), other.therapies);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.diagnostic)) {
this.diagnostic = data().deepCopy(fields()[3].schema(), other.diagnostic);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.otherAction)) {
this.otherAction = data().deepCopy(fields()[4].schema(), other.otherAction);
fieldSetFlags()[4] = true;
}
}
/** Gets the value of the 'trials' field */
public java.util.List getTrials() {
return trials;
}
/** Sets the value of the 'trials' field */
public org.gel.models.report.avro.Actions.Builder setTrials(java.util.List value) {
validate(fields()[0], value);
this.trials = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'trials' field has been set */
public boolean hasTrials() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'trials' field */
public org.gel.models.report.avro.Actions.Builder clearTrials() {
trials = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'prognosis' field */
public java.util.List getPrognosis() {
return prognosis;
}
/** Sets the value of the 'prognosis' field */
public org.gel.models.report.avro.Actions.Builder setPrognosis(java.util.List value) {
validate(fields()[1], value);
this.prognosis = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'prognosis' field has been set */
public boolean hasPrognosis() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'prognosis' field */
public org.gel.models.report.avro.Actions.Builder clearPrognosis() {
prognosis = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'therapies' field */
public java.util.List getTherapies() {
return therapies;
}
/** Sets the value of the 'therapies' field */
public org.gel.models.report.avro.Actions.Builder setTherapies(java.util.List value) {
validate(fields()[2], value);
this.therapies = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'therapies' field has been set */
public boolean hasTherapies() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'therapies' field */
public org.gel.models.report.avro.Actions.Builder clearTherapies() {
therapies = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'diagnostic' field */
public java.util.List getDiagnostic() {
return diagnostic;
}
/** Sets the value of the 'diagnostic' field */
public org.gel.models.report.avro.Actions.Builder setDiagnostic(java.util.List value) {
validate(fields()[3], value);
this.diagnostic = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'diagnostic' field has been set */
public boolean hasDiagnostic() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'diagnostic' field */
public org.gel.models.report.avro.Actions.Builder clearDiagnostic() {
diagnostic = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'otherAction' field */
public java.util.List getOtherAction() {
return otherAction;
}
/** Sets the value of the 'otherAction' field */
public org.gel.models.report.avro.Actions.Builder setOtherAction(java.util.List value) {
validate(fields()[4], value);
this.otherAction = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'otherAction' field has been set */
public boolean hasOtherAction() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'otherAction' field */
public org.gel.models.report.avro.Actions.Builder clearOtherAction() {
otherAction = null;
fieldSetFlags()[4] = false;
return this;
}
@Override
public Actions build() {
try {
Actions record = new Actions();
record.trials = fieldSetFlags()[0] ? this.trials : (java.util.List) defaultValue(fields()[0]);
record.prognosis = fieldSetFlags()[1] ? this.prognosis : (java.util.List) defaultValue(fields()[1]);
record.therapies = fieldSetFlags()[2] ? this.therapies : (java.util.List) defaultValue(fields()[2]);
record.diagnostic = fieldSetFlags()[3] ? this.diagnostic : (java.util.List) defaultValue(fields()[3]);
record.otherAction = fieldSetFlags()[4] ? this.otherAction : (java.util.List) defaultValue(fields()[4]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy