org.gel.models.report.avro.Trial Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.report.avro;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class Trial 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\":\"Trial\",\"namespace\":\"org.gel.models.report.avro\",\"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\":\"I","f true, the association was made using the variant information,\\n if not the association was made at Genomic Entity level\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** URL where reference information for this trail can be found */
private java.lang.String studyUrl;
/** Trail/Study indetifier */
private java.lang.String studyIdentifier;
/** Start date of the study */
private java.lang.String startDate;
/** Completion date of the study */
private java.lang.String estimateCompletionDate;
/** Title of the study */
private java.lang.String title;
/** Study Phase */
private org.gel.models.report.avro.StudyPhase phase;
/** Interventions */
private java.util.List interventions;
/** Conditions */
private java.util.List conditions;
/** Primary Purpose of the study */
private org.gel.models.report.avro.PrimaryPurpose primaryPurpose;
/** Study Type */
private org.gel.models.report.avro.StudyType studyType;
/** Elegigility Criteria based on Age and Sex */
private org.gel.models.report.avro.DemographicElegibilityCriteria demogrphicElegibilityCriteria;
/** List with all of the locations where participant can enrolle */
private java.util.List locations;
/** If true, the association was made using the variant information,
if not the association was made at Genomic Entity level */
private boolean variantActionable;
/**
* 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 Trial() {}
/**
* All-args constructor.
*/
public Trial(java.lang.String studyUrl, java.lang.String studyIdentifier, java.lang.String startDate, java.lang.String estimateCompletionDate, java.lang.String title, org.gel.models.report.avro.StudyPhase phase, java.util.List interventions, java.util.List conditions, org.gel.models.report.avro.PrimaryPurpose primaryPurpose, org.gel.models.report.avro.StudyType studyType, org.gel.models.report.avro.DemographicElegibilityCriteria demogrphicElegibilityCriteria, java.util.List locations, java.lang.Boolean variantActionable) {
this.studyUrl = studyUrl;
this.studyIdentifier = studyIdentifier;
this.startDate = startDate;
this.estimateCompletionDate = estimateCompletionDate;
this.title = title;
this.phase = phase;
this.interventions = interventions;
this.conditions = conditions;
this.primaryPurpose = primaryPurpose;
this.studyType = studyType;
this.demogrphicElegibilityCriteria = demogrphicElegibilityCriteria;
this.locations = locations;
this.variantActionable = variantActionable;
}
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 studyUrl;
case 1: return studyIdentifier;
case 2: return startDate;
case 3: return estimateCompletionDate;
case 4: return title;
case 5: return phase;
case 6: return interventions;
case 7: return conditions;
case 8: return primaryPurpose;
case 9: return studyType;
case 10: return demogrphicElegibilityCriteria;
case 11: return locations;
case 12: return variantActionable;
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: studyUrl = (java.lang.String)value$; break;
case 1: studyIdentifier = (java.lang.String)value$; break;
case 2: startDate = (java.lang.String)value$; break;
case 3: estimateCompletionDate = (java.lang.String)value$; break;
case 4: title = (java.lang.String)value$; break;
case 5: phase = (org.gel.models.report.avro.StudyPhase)value$; break;
case 6: interventions = (java.util.List)value$; break;
case 7: conditions = (java.util.List)value$; break;
case 8: primaryPurpose = (org.gel.models.report.avro.PrimaryPurpose)value$; break;
case 9: studyType = (org.gel.models.report.avro.StudyType)value$; break;
case 10: demogrphicElegibilityCriteria = (org.gel.models.report.avro.DemographicElegibilityCriteria)value$; break;
case 11: locations = (java.util.List)value$; break;
case 12: variantActionable = (java.lang.Boolean)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'studyUrl' field.
* URL where reference information for this trail can be found */
public java.lang.String getStudyUrl() {
return studyUrl;
}
/**
* Sets the value of the 'studyUrl' field.
* URL where reference information for this trail can be found * @param value the value to set.
*/
public void setStudyUrl(java.lang.String value) {
this.studyUrl = value;
}
/**
* Gets the value of the 'studyIdentifier' field.
* Trail/Study indetifier */
public java.lang.String getStudyIdentifier() {
return studyIdentifier;
}
/**
* Sets the value of the 'studyIdentifier' field.
* Trail/Study indetifier * @param value the value to set.
*/
public void setStudyIdentifier(java.lang.String value) {
this.studyIdentifier = value;
}
/**
* Gets the value of the 'startDate' field.
* Start date of the study */
public java.lang.String getStartDate() {
return startDate;
}
/**
* Sets the value of the 'startDate' field.
* Start date of the study * @param value the value to set.
*/
public void setStartDate(java.lang.String value) {
this.startDate = value;
}
/**
* Gets the value of the 'estimateCompletionDate' field.
* Completion date of the study */
public java.lang.String getEstimateCompletionDate() {
return estimateCompletionDate;
}
/**
* Sets the value of the 'estimateCompletionDate' field.
* Completion date of the study * @param value the value to set.
*/
public void setEstimateCompletionDate(java.lang.String value) {
this.estimateCompletionDate = value;
}
/**
* Gets the value of the 'title' field.
* Title of the study */
public java.lang.String getTitle() {
return title;
}
/**
* Sets the value of the 'title' field.
* Title of the study * @param value the value to set.
*/
public void setTitle(java.lang.String value) {
this.title = value;
}
/**
* Gets the value of the 'phase' field.
* Study Phase */
public org.gel.models.report.avro.StudyPhase getPhase() {
return phase;
}
/**
* Sets the value of the 'phase' field.
* Study Phase * @param value the value to set.
*/
public void setPhase(org.gel.models.report.avro.StudyPhase value) {
this.phase = value;
}
/**
* Gets the value of the 'interventions' field.
* Interventions */
public java.util.List getInterventions() {
return interventions;
}
/**
* Sets the value of the 'interventions' field.
* Interventions * @param value the value to set.
*/
public void setInterventions(java.util.List value) {
this.interventions = value;
}
/**
* Gets the value of the 'conditions' field.
* Conditions */
public java.util.List getConditions() {
return conditions;
}
/**
* Sets the value of the 'conditions' field.
* Conditions * @param value the value to set.
*/
public void setConditions(java.util.List value) {
this.conditions = value;
}
/**
* Gets the value of the 'primaryPurpose' field.
* Primary Purpose of the study */
public org.gel.models.report.avro.PrimaryPurpose getPrimaryPurpose() {
return primaryPurpose;
}
/**
* Sets the value of the 'primaryPurpose' field.
* Primary Purpose of the study * @param value the value to set.
*/
public void setPrimaryPurpose(org.gel.models.report.avro.PrimaryPurpose value) {
this.primaryPurpose = value;
}
/**
* Gets the value of the 'studyType' field.
* Study Type */
public org.gel.models.report.avro.StudyType getStudyType() {
return studyType;
}
/**
* Sets the value of the 'studyType' field.
* Study Type * @param value the value to set.
*/
public void setStudyType(org.gel.models.report.avro.StudyType value) {
this.studyType = value;
}
/**
* Gets the value of the 'demogrphicElegibilityCriteria' field.
* Elegigility Criteria based on Age and Sex */
public org.gel.models.report.avro.DemographicElegibilityCriteria getDemogrphicElegibilityCriteria() {
return demogrphicElegibilityCriteria;
}
/**
* Sets the value of the 'demogrphicElegibilityCriteria' field.
* Elegigility Criteria based on Age and Sex * @param value the value to set.
*/
public void setDemogrphicElegibilityCriteria(org.gel.models.report.avro.DemographicElegibilityCriteria value) {
this.demogrphicElegibilityCriteria = value;
}
/**
* Gets the value of the 'locations' field.
* List with all of the locations where participant can enrolle */
public java.util.List getLocations() {
return locations;
}
/**
* Sets the value of the 'locations' field.
* List with all of the locations where participant can enrolle * @param value the value to set.
*/
public void setLocations(java.util.List value) {
this.locations = value;
}
/**
* Gets the value of the 'variantActionable' field.
* If true, the association was made using the variant information,
if not the association was made at Genomic Entity level */
public java.lang.Boolean getVariantActionable() {
return variantActionable;
}
/**
* Sets the value of the 'variantActionable' field.
* If true, the association was made using the variant information,
if not the association was made at Genomic Entity level * @param value the value to set.
*/
public void setVariantActionable(java.lang.Boolean value) {
this.variantActionable = value;
}
/** Creates a new Trial RecordBuilder */
public static org.gel.models.report.avro.Trial.Builder newBuilder() {
return new org.gel.models.report.avro.Trial.Builder();
}
/** Creates a new Trial RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.Trial.Builder newBuilder(org.gel.models.report.avro.Trial.Builder other) {
return new org.gel.models.report.avro.Trial.Builder(other);
}
/** Creates a new Trial RecordBuilder by copying an existing Trial instance */
public static org.gel.models.report.avro.Trial.Builder newBuilder(org.gel.models.report.avro.Trial other) {
return new org.gel.models.report.avro.Trial.Builder(other);
}
/**
* RecordBuilder for Trial instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String studyUrl;
private java.lang.String studyIdentifier;
private java.lang.String startDate;
private java.lang.String estimateCompletionDate;
private java.lang.String title;
private org.gel.models.report.avro.StudyPhase phase;
private java.util.List interventions;
private java.util.List conditions;
private org.gel.models.report.avro.PrimaryPurpose primaryPurpose;
private org.gel.models.report.avro.StudyType studyType;
private org.gel.models.report.avro.DemographicElegibilityCriteria demogrphicElegibilityCriteria;
private java.util.List locations;
private boolean variantActionable;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.Trial.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.Trial.Builder other) {
super(other);
if (isValidValue(fields()[0], other.studyUrl)) {
this.studyUrl = data().deepCopy(fields()[0].schema(), other.studyUrl);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.studyIdentifier)) {
this.studyIdentifier = data().deepCopy(fields()[1].schema(), other.studyIdentifier);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.startDate)) {
this.startDate = data().deepCopy(fields()[2].schema(), other.startDate);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.estimateCompletionDate)) {
this.estimateCompletionDate = data().deepCopy(fields()[3].schema(), other.estimateCompletionDate);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.title)) {
this.title = data().deepCopy(fields()[4].schema(), other.title);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.phase)) {
this.phase = data().deepCopy(fields()[5].schema(), other.phase);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.interventions)) {
this.interventions = data().deepCopy(fields()[6].schema(), other.interventions);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.conditions)) {
this.conditions = data().deepCopy(fields()[7].schema(), other.conditions);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.primaryPurpose)) {
this.primaryPurpose = data().deepCopy(fields()[8].schema(), other.primaryPurpose);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.studyType)) {
this.studyType = data().deepCopy(fields()[9].schema(), other.studyType);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.demogrphicElegibilityCriteria)) {
this.demogrphicElegibilityCriteria = data().deepCopy(fields()[10].schema(), other.demogrphicElegibilityCriteria);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.locations)) {
this.locations = data().deepCopy(fields()[11].schema(), other.locations);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.variantActionable)) {
this.variantActionable = data().deepCopy(fields()[12].schema(), other.variantActionable);
fieldSetFlags()[12] = true;
}
}
/** Creates a Builder by copying an existing Trial instance */
private Builder(org.gel.models.report.avro.Trial other) {
super(org.gel.models.report.avro.Trial.SCHEMA$);
if (isValidValue(fields()[0], other.studyUrl)) {
this.studyUrl = data().deepCopy(fields()[0].schema(), other.studyUrl);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.studyIdentifier)) {
this.studyIdentifier = data().deepCopy(fields()[1].schema(), other.studyIdentifier);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.startDate)) {
this.startDate = data().deepCopy(fields()[2].schema(), other.startDate);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.estimateCompletionDate)) {
this.estimateCompletionDate = data().deepCopy(fields()[3].schema(), other.estimateCompletionDate);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.title)) {
this.title = data().deepCopy(fields()[4].schema(), other.title);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.phase)) {
this.phase = data().deepCopy(fields()[5].schema(), other.phase);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.interventions)) {
this.interventions = data().deepCopy(fields()[6].schema(), other.interventions);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.conditions)) {
this.conditions = data().deepCopy(fields()[7].schema(), other.conditions);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.primaryPurpose)) {
this.primaryPurpose = data().deepCopy(fields()[8].schema(), other.primaryPurpose);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.studyType)) {
this.studyType = data().deepCopy(fields()[9].schema(), other.studyType);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.demogrphicElegibilityCriteria)) {
this.demogrphicElegibilityCriteria = data().deepCopy(fields()[10].schema(), other.demogrphicElegibilityCriteria);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.locations)) {
this.locations = data().deepCopy(fields()[11].schema(), other.locations);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.variantActionable)) {
this.variantActionable = data().deepCopy(fields()[12].schema(), other.variantActionable);
fieldSetFlags()[12] = true;
}
}
/** Gets the value of the 'studyUrl' field */
public java.lang.String getStudyUrl() {
return studyUrl;
}
/** Sets the value of the 'studyUrl' field */
public org.gel.models.report.avro.Trial.Builder setStudyUrl(java.lang.String value) {
validate(fields()[0], value);
this.studyUrl = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'studyUrl' field has been set */
public boolean hasStudyUrl() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'studyUrl' field */
public org.gel.models.report.avro.Trial.Builder clearStudyUrl() {
studyUrl = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'studyIdentifier' field */
public java.lang.String getStudyIdentifier() {
return studyIdentifier;
}
/** Sets the value of the 'studyIdentifier' field */
public org.gel.models.report.avro.Trial.Builder setStudyIdentifier(java.lang.String value) {
validate(fields()[1], value);
this.studyIdentifier = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'studyIdentifier' field has been set */
public boolean hasStudyIdentifier() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'studyIdentifier' field */
public org.gel.models.report.avro.Trial.Builder clearStudyIdentifier() {
studyIdentifier = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'startDate' field */
public java.lang.String getStartDate() {
return startDate;
}
/** Sets the value of the 'startDate' field */
public org.gel.models.report.avro.Trial.Builder setStartDate(java.lang.String value) {
validate(fields()[2], value);
this.startDate = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'startDate' field has been set */
public boolean hasStartDate() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'startDate' field */
public org.gel.models.report.avro.Trial.Builder clearStartDate() {
startDate = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'estimateCompletionDate' field */
public java.lang.String getEstimateCompletionDate() {
return estimateCompletionDate;
}
/** Sets the value of the 'estimateCompletionDate' field */
public org.gel.models.report.avro.Trial.Builder setEstimateCompletionDate(java.lang.String value) {
validate(fields()[3], value);
this.estimateCompletionDate = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'estimateCompletionDate' field has been set */
public boolean hasEstimateCompletionDate() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'estimateCompletionDate' field */
public org.gel.models.report.avro.Trial.Builder clearEstimateCompletionDate() {
estimateCompletionDate = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'title' field */
public java.lang.String getTitle() {
return title;
}
/** Sets the value of the 'title' field */
public org.gel.models.report.avro.Trial.Builder setTitle(java.lang.String value) {
validate(fields()[4], value);
this.title = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'title' field has been set */
public boolean hasTitle() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'title' field */
public org.gel.models.report.avro.Trial.Builder clearTitle() {
title = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'phase' field */
public org.gel.models.report.avro.StudyPhase getPhase() {
return phase;
}
/** Sets the value of the 'phase' field */
public org.gel.models.report.avro.Trial.Builder setPhase(org.gel.models.report.avro.StudyPhase value) {
validate(fields()[5], value);
this.phase = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'phase' field has been set */
public boolean hasPhase() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'phase' field */
public org.gel.models.report.avro.Trial.Builder clearPhase() {
phase = null;
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'interventions' field */
public java.util.List getInterventions() {
return interventions;
}
/** Sets the value of the 'interventions' field */
public org.gel.models.report.avro.Trial.Builder setInterventions(java.util.List value) {
validate(fields()[6], value);
this.interventions = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'interventions' field has been set */
public boolean hasInterventions() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'interventions' field */
public org.gel.models.report.avro.Trial.Builder clearInterventions() {
interventions = null;
fieldSetFlags()[6] = false;
return this;
}
/** Gets the value of the 'conditions' field */
public java.util.List getConditions() {
return conditions;
}
/** Sets the value of the 'conditions' field */
public org.gel.models.report.avro.Trial.Builder setConditions(java.util.List value) {
validate(fields()[7], value);
this.conditions = value;
fieldSetFlags()[7] = true;
return this;
}
/** Checks whether the 'conditions' field has been set */
public boolean hasConditions() {
return fieldSetFlags()[7];
}
/** Clears the value of the 'conditions' field */
public org.gel.models.report.avro.Trial.Builder clearConditions() {
conditions = null;
fieldSetFlags()[7] = false;
return this;
}
/** Gets the value of the 'primaryPurpose' field */
public org.gel.models.report.avro.PrimaryPurpose getPrimaryPurpose() {
return primaryPurpose;
}
/** Sets the value of the 'primaryPurpose' field */
public org.gel.models.report.avro.Trial.Builder setPrimaryPurpose(org.gel.models.report.avro.PrimaryPurpose value) {
validate(fields()[8], value);
this.primaryPurpose = value;
fieldSetFlags()[8] = true;
return this;
}
/** Checks whether the 'primaryPurpose' field has been set */
public boolean hasPrimaryPurpose() {
return fieldSetFlags()[8];
}
/** Clears the value of the 'primaryPurpose' field */
public org.gel.models.report.avro.Trial.Builder clearPrimaryPurpose() {
primaryPurpose = null;
fieldSetFlags()[8] = false;
return this;
}
/** Gets the value of the 'studyType' field */
public org.gel.models.report.avro.StudyType getStudyType() {
return studyType;
}
/** Sets the value of the 'studyType' field */
public org.gel.models.report.avro.Trial.Builder setStudyType(org.gel.models.report.avro.StudyType value) {
validate(fields()[9], value);
this.studyType = value;
fieldSetFlags()[9] = true;
return this;
}
/** Checks whether the 'studyType' field has been set */
public boolean hasStudyType() {
return fieldSetFlags()[9];
}
/** Clears the value of the 'studyType' field */
public org.gel.models.report.avro.Trial.Builder clearStudyType() {
studyType = null;
fieldSetFlags()[9] = false;
return this;
}
/** Gets the value of the 'demogrphicElegibilityCriteria' field */
public org.gel.models.report.avro.DemographicElegibilityCriteria getDemogrphicElegibilityCriteria() {
return demogrphicElegibilityCriteria;
}
/** Sets the value of the 'demogrphicElegibilityCriteria' field */
public org.gel.models.report.avro.Trial.Builder setDemogrphicElegibilityCriteria(org.gel.models.report.avro.DemographicElegibilityCriteria value) {
validate(fields()[10], value);
this.demogrphicElegibilityCriteria = value;
fieldSetFlags()[10] = true;
return this;
}
/** Checks whether the 'demogrphicElegibilityCriteria' field has been set */
public boolean hasDemogrphicElegibilityCriteria() {
return fieldSetFlags()[10];
}
/** Clears the value of the 'demogrphicElegibilityCriteria' field */
public org.gel.models.report.avro.Trial.Builder clearDemogrphicElegibilityCriteria() {
demogrphicElegibilityCriteria = null;
fieldSetFlags()[10] = false;
return this;
}
/** Gets the value of the 'locations' field */
public java.util.List getLocations() {
return locations;
}
/** Sets the value of the 'locations' field */
public org.gel.models.report.avro.Trial.Builder setLocations(java.util.List value) {
validate(fields()[11], value);
this.locations = value;
fieldSetFlags()[11] = true;
return this;
}
/** Checks whether the 'locations' field has been set */
public boolean hasLocations() {
return fieldSetFlags()[11];
}
/** Clears the value of the 'locations' field */
public org.gel.models.report.avro.Trial.Builder clearLocations() {
locations = null;
fieldSetFlags()[11] = false;
return this;
}
/** Gets the value of the 'variantActionable' field */
public java.lang.Boolean getVariantActionable() {
return variantActionable;
}
/** Sets the value of the 'variantActionable' field */
public org.gel.models.report.avro.Trial.Builder setVariantActionable(boolean value) {
validate(fields()[12], value);
this.variantActionable = value;
fieldSetFlags()[12] = true;
return this;
}
/** Checks whether the 'variantActionable' field has been set */
public boolean hasVariantActionable() {
return fieldSetFlags()[12];
}
/** Clears the value of the 'variantActionable' field */
public org.gel.models.report.avro.Trial.Builder clearVariantActionable() {
fieldSetFlags()[12] = false;
return this;
}
@Override
public Trial build() {
try {
Trial record = new Trial();
record.studyUrl = fieldSetFlags()[0] ? this.studyUrl : (java.lang.String) defaultValue(fields()[0]);
record.studyIdentifier = fieldSetFlags()[1] ? this.studyIdentifier : (java.lang.String) defaultValue(fields()[1]);
record.startDate = fieldSetFlags()[2] ? this.startDate : (java.lang.String) defaultValue(fields()[2]);
record.estimateCompletionDate = fieldSetFlags()[3] ? this.estimateCompletionDate : (java.lang.String) defaultValue(fields()[3]);
record.title = fieldSetFlags()[4] ? this.title : (java.lang.String) defaultValue(fields()[4]);
record.phase = fieldSetFlags()[5] ? this.phase : (org.gel.models.report.avro.StudyPhase) defaultValue(fields()[5]);
record.interventions = fieldSetFlags()[6] ? this.interventions : (java.util.List) defaultValue(fields()[6]);
record.conditions = fieldSetFlags()[7] ? this.conditions : (java.util.List) defaultValue(fields()[7]);
record.primaryPurpose = fieldSetFlags()[8] ? this.primaryPurpose : (org.gel.models.report.avro.PrimaryPurpose) defaultValue(fields()[8]);
record.studyType = fieldSetFlags()[9] ? this.studyType : (org.gel.models.report.avro.StudyType) defaultValue(fields()[9]);
record.demogrphicElegibilityCriteria = fieldSetFlags()[10] ? this.demogrphicElegibilityCriteria : (org.gel.models.report.avro.DemographicElegibilityCriteria) defaultValue(fields()[10]);
record.locations = fieldSetFlags()[11] ? this.locations : (java.util.List) defaultValue(fields()[11]);
record.variantActionable = fieldSetFlags()[12] ? this.variantActionable : (java.lang.Boolean) defaultValue(fields()[12]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy