org.phenopackets.schema.v1.Diagnosis Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phenopacket-schema Show documentation
Show all versions of phenopacket-schema Show documentation
A Protobuf schema for capturing clinical phenotypes
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: interpretation.proto
package org.phenopackets.schema.v1;
/**
* Protobuf type {@code org.phenopackets.schema.v1.Diagnosis}
*/
public final class Diagnosis extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.phenopackets.schema.v1.Diagnosis)
DiagnosisOrBuilder {
private static final long serialVersionUID = 0L;
// Use Diagnosis.newBuilder() to construct.
private Diagnosis(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Diagnosis() {
genomicInterpretations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Diagnosis();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Diagnosis(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.phenopackets.schema.v1.core.Disease.Builder subBuilder = null;
if (disease_ != null) {
subBuilder = disease_.toBuilder();
}
disease_ = input.readMessage(org.phenopackets.schema.v1.core.Disease.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(disease_);
disease_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
genomicInterpretations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
genomicInterpretations_.add(
input.readMessage(org.phenopackets.schema.v1.GenomicInterpretation.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
genomicInterpretations_ = java.util.Collections.unmodifiableList(genomicInterpretations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.phenopackets.schema.v1.InterpretationOuterClass.internal_static_org_phenopackets_schema_v1_Diagnosis_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.phenopackets.schema.v1.InterpretationOuterClass.internal_static_org_phenopackets_schema_v1_Diagnosis_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.phenopackets.schema.v1.Diagnosis.class, org.phenopackets.schema.v1.Diagnosis.Builder.class);
}
public static final int DISEASE_FIELD_NUMBER = 1;
private org.phenopackets.schema.v1.core.Disease disease_;
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public boolean hasDisease() {
return disease_ != null;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public org.phenopackets.schema.v1.core.Disease getDisease() {
return disease_ == null ? org.phenopackets.schema.v1.core.Disease.getDefaultInstance() : disease_;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public org.phenopackets.schema.v1.core.DiseaseOrBuilder getDiseaseOrBuilder() {
return getDisease();
}
public static final int GENOMIC_INTERPRETATIONS_FIELD_NUMBER = 2;
private java.util.List genomicInterpretations_;
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public java.util.List getGenomicInterpretationsList() {
return genomicInterpretations_;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public java.util.List
getGenomicInterpretationsOrBuilderList() {
return genomicInterpretations_;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public int getGenomicInterpretationsCount() {
return genomicInterpretations_.size();
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretation getGenomicInterpretations(int index) {
return genomicInterpretations_.get(index);
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretationOrBuilder getGenomicInterpretationsOrBuilder(
int index) {
return genomicInterpretations_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (disease_ != null) {
output.writeMessage(1, getDisease());
}
for (int i = 0; i < genomicInterpretations_.size(); i++) {
output.writeMessage(2, genomicInterpretations_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (disease_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDisease());
}
for (int i = 0; i < genomicInterpretations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, genomicInterpretations_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.phenopackets.schema.v1.Diagnosis)) {
return super.equals(obj);
}
org.phenopackets.schema.v1.Diagnosis other = (org.phenopackets.schema.v1.Diagnosis) obj;
if (hasDisease() != other.hasDisease()) return false;
if (hasDisease()) {
if (!getDisease()
.equals(other.getDisease())) return false;
}
if (!getGenomicInterpretationsList()
.equals(other.getGenomicInterpretationsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDisease()) {
hash = (37 * hash) + DISEASE_FIELD_NUMBER;
hash = (53 * hash) + getDisease().hashCode();
}
if (getGenomicInterpretationsCount() > 0) {
hash = (37 * hash) + GENOMIC_INTERPRETATIONS_FIELD_NUMBER;
hash = (53 * hash) + getGenomicInterpretationsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.phenopackets.schema.v1.Diagnosis parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.phenopackets.schema.v1.Diagnosis parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.phenopackets.schema.v1.Diagnosis parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.phenopackets.schema.v1.Diagnosis prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org.phenopackets.schema.v1.Diagnosis}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.phenopackets.schema.v1.Diagnosis)
org.phenopackets.schema.v1.DiagnosisOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.phenopackets.schema.v1.InterpretationOuterClass.internal_static_org_phenopackets_schema_v1_Diagnosis_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.phenopackets.schema.v1.InterpretationOuterClass.internal_static_org_phenopackets_schema_v1_Diagnosis_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.phenopackets.schema.v1.Diagnosis.class, org.phenopackets.schema.v1.Diagnosis.Builder.class);
}
// Construct using org.phenopackets.schema.v1.Diagnosis.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGenomicInterpretationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (diseaseBuilder_ == null) {
disease_ = null;
} else {
disease_ = null;
diseaseBuilder_ = null;
}
if (genomicInterpretationsBuilder_ == null) {
genomicInterpretations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
genomicInterpretationsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.phenopackets.schema.v1.InterpretationOuterClass.internal_static_org_phenopackets_schema_v1_Diagnosis_descriptor;
}
@java.lang.Override
public org.phenopackets.schema.v1.Diagnosis getDefaultInstanceForType() {
return org.phenopackets.schema.v1.Diagnosis.getDefaultInstance();
}
@java.lang.Override
public org.phenopackets.schema.v1.Diagnosis build() {
org.phenopackets.schema.v1.Diagnosis result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.phenopackets.schema.v1.Diagnosis buildPartial() {
org.phenopackets.schema.v1.Diagnosis result = new org.phenopackets.schema.v1.Diagnosis(this);
int from_bitField0_ = bitField0_;
if (diseaseBuilder_ == null) {
result.disease_ = disease_;
} else {
result.disease_ = diseaseBuilder_.build();
}
if (genomicInterpretationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
genomicInterpretations_ = java.util.Collections.unmodifiableList(genomicInterpretations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.genomicInterpretations_ = genomicInterpretations_;
} else {
result.genomicInterpretations_ = genomicInterpretationsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.phenopackets.schema.v1.Diagnosis) {
return mergeFrom((org.phenopackets.schema.v1.Diagnosis)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.phenopackets.schema.v1.Diagnosis other) {
if (other == org.phenopackets.schema.v1.Diagnosis.getDefaultInstance()) return this;
if (other.hasDisease()) {
mergeDisease(other.getDisease());
}
if (genomicInterpretationsBuilder_ == null) {
if (!other.genomicInterpretations_.isEmpty()) {
if (genomicInterpretations_.isEmpty()) {
genomicInterpretations_ = other.genomicInterpretations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.addAll(other.genomicInterpretations_);
}
onChanged();
}
} else {
if (!other.genomicInterpretations_.isEmpty()) {
if (genomicInterpretationsBuilder_.isEmpty()) {
genomicInterpretationsBuilder_.dispose();
genomicInterpretationsBuilder_ = null;
genomicInterpretations_ = other.genomicInterpretations_;
bitField0_ = (bitField0_ & ~0x00000001);
genomicInterpretationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGenomicInterpretationsFieldBuilder() : null;
} else {
genomicInterpretationsBuilder_.addAllMessages(other.genomicInterpretations_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.phenopackets.schema.v1.Diagnosis parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.phenopackets.schema.v1.Diagnosis) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.phenopackets.schema.v1.core.Disease disease_;
private com.google.protobuf.SingleFieldBuilderV3<
org.phenopackets.schema.v1.core.Disease, org.phenopackets.schema.v1.core.Disease.Builder, org.phenopackets.schema.v1.core.DiseaseOrBuilder> diseaseBuilder_;
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public boolean hasDisease() {
return diseaseBuilder_ != null || disease_ != null;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public org.phenopackets.schema.v1.core.Disease getDisease() {
if (diseaseBuilder_ == null) {
return disease_ == null ? org.phenopackets.schema.v1.core.Disease.getDefaultInstance() : disease_;
} else {
return diseaseBuilder_.getMessage();
}
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public Builder setDisease(org.phenopackets.schema.v1.core.Disease value) {
if (diseaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
disease_ = value;
onChanged();
} else {
diseaseBuilder_.setMessage(value);
}
return this;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public Builder setDisease(
org.phenopackets.schema.v1.core.Disease.Builder builderForValue) {
if (diseaseBuilder_ == null) {
disease_ = builderForValue.build();
onChanged();
} else {
diseaseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public Builder mergeDisease(org.phenopackets.schema.v1.core.Disease value) {
if (diseaseBuilder_ == null) {
if (disease_ != null) {
disease_ =
org.phenopackets.schema.v1.core.Disease.newBuilder(disease_).mergeFrom(value).buildPartial();
} else {
disease_ = value;
}
onChanged();
} else {
diseaseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public Builder clearDisease() {
if (diseaseBuilder_ == null) {
disease_ = null;
onChanged();
} else {
disease_ = null;
diseaseBuilder_ = null;
}
return this;
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public org.phenopackets.schema.v1.core.Disease.Builder getDiseaseBuilder() {
onChanged();
return getDiseaseFieldBuilder().getBuilder();
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
public org.phenopackets.schema.v1.core.DiseaseOrBuilder getDiseaseOrBuilder() {
if (diseaseBuilder_ != null) {
return diseaseBuilder_.getMessageOrBuilder();
} else {
return disease_ == null ?
org.phenopackets.schema.v1.core.Disease.getDefaultInstance() : disease_;
}
}
/**
*
* The disease/condition assigned to the diagnosis
*
*
* .org.phenopackets.schema.v1.core.Disease disease = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.phenopackets.schema.v1.core.Disease, org.phenopackets.schema.v1.core.Disease.Builder, org.phenopackets.schema.v1.core.DiseaseOrBuilder>
getDiseaseFieldBuilder() {
if (diseaseBuilder_ == null) {
diseaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.phenopackets.schema.v1.core.Disease, org.phenopackets.schema.v1.core.Disease.Builder, org.phenopackets.schema.v1.core.DiseaseOrBuilder>(
getDisease(),
getParentForChildren(),
isClean());
disease_ = null;
}
return diseaseBuilder_;
}
private java.util.List genomicInterpretations_ =
java.util.Collections.emptyList();
private void ensureGenomicInterpretationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
genomicInterpretations_ = new java.util.ArrayList(genomicInterpretations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.phenopackets.schema.v1.GenomicInterpretation, org.phenopackets.schema.v1.GenomicInterpretation.Builder, org.phenopackets.schema.v1.GenomicInterpretationOrBuilder> genomicInterpretationsBuilder_;
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public java.util.List getGenomicInterpretationsList() {
if (genomicInterpretationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(genomicInterpretations_);
} else {
return genomicInterpretationsBuilder_.getMessageList();
}
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public int getGenomicInterpretationsCount() {
if (genomicInterpretationsBuilder_ == null) {
return genomicInterpretations_.size();
} else {
return genomicInterpretationsBuilder_.getCount();
}
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretation getGenomicInterpretations(int index) {
if (genomicInterpretationsBuilder_ == null) {
return genomicInterpretations_.get(index);
} else {
return genomicInterpretationsBuilder_.getMessage(index);
}
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder setGenomicInterpretations(
int index, org.phenopackets.schema.v1.GenomicInterpretation value) {
if (genomicInterpretationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.set(index, value);
onChanged();
} else {
genomicInterpretationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder setGenomicInterpretations(
int index, org.phenopackets.schema.v1.GenomicInterpretation.Builder builderForValue) {
if (genomicInterpretationsBuilder_ == null) {
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.set(index, builderForValue.build());
onChanged();
} else {
genomicInterpretationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder addGenomicInterpretations(org.phenopackets.schema.v1.GenomicInterpretation value) {
if (genomicInterpretationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.add(value);
onChanged();
} else {
genomicInterpretationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder addGenomicInterpretations(
int index, org.phenopackets.schema.v1.GenomicInterpretation value) {
if (genomicInterpretationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.add(index, value);
onChanged();
} else {
genomicInterpretationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder addGenomicInterpretations(
org.phenopackets.schema.v1.GenomicInterpretation.Builder builderForValue) {
if (genomicInterpretationsBuilder_ == null) {
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.add(builderForValue.build());
onChanged();
} else {
genomicInterpretationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder addGenomicInterpretations(
int index, org.phenopackets.schema.v1.GenomicInterpretation.Builder builderForValue) {
if (genomicInterpretationsBuilder_ == null) {
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.add(index, builderForValue.build());
onChanged();
} else {
genomicInterpretationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder addAllGenomicInterpretations(
java.lang.Iterable values) {
if (genomicInterpretationsBuilder_ == null) {
ensureGenomicInterpretationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, genomicInterpretations_);
onChanged();
} else {
genomicInterpretationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder clearGenomicInterpretations() {
if (genomicInterpretationsBuilder_ == null) {
genomicInterpretations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
genomicInterpretationsBuilder_.clear();
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public Builder removeGenomicInterpretations(int index) {
if (genomicInterpretationsBuilder_ == null) {
ensureGenomicInterpretationsIsMutable();
genomicInterpretations_.remove(index);
onChanged();
} else {
genomicInterpretationsBuilder_.remove(index);
}
return this;
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretation.Builder getGenomicInterpretationsBuilder(
int index) {
return getGenomicInterpretationsFieldBuilder().getBuilder(index);
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretationOrBuilder getGenomicInterpretationsOrBuilder(
int index) {
if (genomicInterpretationsBuilder_ == null) {
return genomicInterpretations_.get(index); } else {
return genomicInterpretationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public java.util.List
getGenomicInterpretationsOrBuilderList() {
if (genomicInterpretationsBuilder_ != null) {
return genomicInterpretationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(genomicInterpretations_);
}
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretation.Builder addGenomicInterpretationsBuilder() {
return getGenomicInterpretationsFieldBuilder().addBuilder(
org.phenopackets.schema.v1.GenomicInterpretation.getDefaultInstance());
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public org.phenopackets.schema.v1.GenomicInterpretation.Builder addGenomicInterpretationsBuilder(
int index) {
return getGenomicInterpretationsFieldBuilder().addBuilder(
index, org.phenopackets.schema.v1.GenomicInterpretation.getDefaultInstance());
}
/**
*
* genomic features containing the status of their contribution towards the diagnosis
*
*
* repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
*/
public java.util.List
getGenomicInterpretationsBuilderList() {
return getGenomicInterpretationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.phenopackets.schema.v1.GenomicInterpretation, org.phenopackets.schema.v1.GenomicInterpretation.Builder, org.phenopackets.schema.v1.GenomicInterpretationOrBuilder>
getGenomicInterpretationsFieldBuilder() {
if (genomicInterpretationsBuilder_ == null) {
genomicInterpretationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.phenopackets.schema.v1.GenomicInterpretation, org.phenopackets.schema.v1.GenomicInterpretation.Builder, org.phenopackets.schema.v1.GenomicInterpretationOrBuilder>(
genomicInterpretations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
genomicInterpretations_ = null;
}
return genomicInterpretationsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.phenopackets.schema.v1.Diagnosis)
}
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.Diagnosis)
private static final org.phenopackets.schema.v1.Diagnosis DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.phenopackets.schema.v1.Diagnosis();
}
public static org.phenopackets.schema.v1.Diagnosis getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Diagnosis parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Diagnosis(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.phenopackets.schema.v1.Diagnosis getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}