ets.phenopacket-schema.1.0.0-RC3.source-code.interpretation.pb.h 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
#ifndef GOOGLE_PROTOBUF_INCLUDED_interpretation_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_interpretation_2eproto
#include
#include
#include
#if PROTOBUF_VERSION < 3008000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3008000 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include // IWYU pragma: export
#include // IWYU pragma: export
#include
#include
#include "base.pb.h"
#include "phenopackets.pb.h"
// @@protoc_insertion_point(includes)
#include
#define PROTOBUF_INTERNAL_EXPORT_interpretation_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_interpretation_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_interpretation_2eproto;
namespace org {
namespace phenopackets {
namespace schema {
namespace v1 {
class Diagnosis;
class DiagnosisDefaultTypeInternal;
extern DiagnosisDefaultTypeInternal _Diagnosis_default_instance_;
class GenomicInterpretation;
class GenomicInterpretationDefaultTypeInternal;
extern GenomicInterpretationDefaultTypeInternal _GenomicInterpretation_default_instance_;
class Interpretation;
class InterpretationDefaultTypeInternal;
extern InterpretationDefaultTypeInternal _Interpretation_default_instance_;
} // namespace v1
} // namespace schema
} // namespace phenopackets
} // namespace org
PROTOBUF_NAMESPACE_OPEN
template<> ::org::phenopackets::schema::v1::Diagnosis* Arena::CreateMaybeMessage<::org::phenopackets::schema::v1::Diagnosis>(Arena*);
template<> ::org::phenopackets::schema::v1::GenomicInterpretation* Arena::CreateMaybeMessage<::org::phenopackets::schema::v1::GenomicInterpretation>(Arena*);
template<> ::org::phenopackets::schema::v1::Interpretation* Arena::CreateMaybeMessage<::org::phenopackets::schema::v1::Interpretation>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace org {
namespace phenopackets {
namespace schema {
namespace v1 {
enum Interpretation_ResolutionStatus : int {
Interpretation_ResolutionStatus_UNKNOWN = 0,
Interpretation_ResolutionStatus_SOLVED = 1,
Interpretation_ResolutionStatus_UNSOLVED = 2,
Interpretation_ResolutionStatus_IN_PROGRESS = 3,
Interpretation_ResolutionStatus_Interpretation_ResolutionStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
Interpretation_ResolutionStatus_Interpretation_ResolutionStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool Interpretation_ResolutionStatus_IsValid(int value);
constexpr Interpretation_ResolutionStatus Interpretation_ResolutionStatus_ResolutionStatus_MIN = Interpretation_ResolutionStatus_UNKNOWN;
constexpr Interpretation_ResolutionStatus Interpretation_ResolutionStatus_ResolutionStatus_MAX = Interpretation_ResolutionStatus_IN_PROGRESS;
constexpr int Interpretation_ResolutionStatus_ResolutionStatus_ARRAYSIZE = Interpretation_ResolutionStatus_ResolutionStatus_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Interpretation_ResolutionStatus_descriptor();
template
inline const std::string& Interpretation_ResolutionStatus_Name(T enum_t_value) {
static_assert(::std::is_same::value ||
::std::is_integral::value,
"Incorrect type passed to function Interpretation_ResolutionStatus_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
Interpretation_ResolutionStatus_descriptor(), enum_t_value);
}
inline bool Interpretation_ResolutionStatus_Parse(
const std::string& name, Interpretation_ResolutionStatus* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum(
Interpretation_ResolutionStatus_descriptor(), name, value);
}
enum GenomicInterpretation_Status : int {
GenomicInterpretation_Status_UNKNOWN = 0,
GenomicInterpretation_Status_REJECTED = 1,
GenomicInterpretation_Status_CANDIDATE = 2,
GenomicInterpretation_Status_CAUSATIVE = 3,
GenomicInterpretation_Status_GenomicInterpretation_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
GenomicInterpretation_Status_GenomicInterpretation_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool GenomicInterpretation_Status_IsValid(int value);
constexpr GenomicInterpretation_Status GenomicInterpretation_Status_Status_MIN = GenomicInterpretation_Status_UNKNOWN;
constexpr GenomicInterpretation_Status GenomicInterpretation_Status_Status_MAX = GenomicInterpretation_Status_CAUSATIVE;
constexpr int GenomicInterpretation_Status_Status_ARRAYSIZE = GenomicInterpretation_Status_Status_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GenomicInterpretation_Status_descriptor();
template
inline const std::string& GenomicInterpretation_Status_Name(T enum_t_value) {
static_assert(::std::is_same::value ||
::std::is_integral::value,
"Incorrect type passed to function GenomicInterpretation_Status_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
GenomicInterpretation_Status_descriptor(), enum_t_value);
}
inline bool GenomicInterpretation_Status_Parse(
const std::string& name, GenomicInterpretation_Status* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum(
GenomicInterpretation_Status_descriptor(), name, value);
}
// ===================================================================
class Interpretation :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:org.phenopackets.schema.v1.Interpretation) */ {
public:
Interpretation();
virtual ~Interpretation();
Interpretation(const Interpretation& from);
Interpretation(Interpretation&& from) noexcept
: Interpretation() {
*this = ::std::move(from);
}
inline Interpretation& operator=(const Interpretation& from) {
CopyFrom(from);
return *this;
}
inline Interpretation& operator=(Interpretation&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return GetMetadataStatic().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Interpretation& default_instance();
enum PhenopacketOrFamilyCase {
kPhenopacket = 3,
kFamily = 4,
PHENOPACKET_OR_FAMILY_NOT_SET = 0,
};
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Interpretation* internal_default_instance() {
return reinterpret_cast(
&_Interpretation_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
void Swap(Interpretation* other);
friend void swap(Interpretation& a, Interpretation& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Interpretation* New() const final {
return CreateMaybeMessage(nullptr);
}
Interpretation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const Interpretation& from);
void MergeFrom(const Interpretation& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
#else
bool MergePartialFromCodedStream(
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Interpretation* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "org.phenopackets.schema.v1.Interpretation";
}
private:
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
return nullptr;
}
inline void* MaybeArenaPtr() const {
return nullptr;
}
public:
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_interpretation_2eproto);
return ::descriptor_table_interpretation_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
typedef Interpretation_ResolutionStatus ResolutionStatus;
static constexpr ResolutionStatus UNKNOWN =
Interpretation_ResolutionStatus_UNKNOWN;
static constexpr ResolutionStatus SOLVED =
Interpretation_ResolutionStatus_SOLVED;
static constexpr ResolutionStatus UNSOLVED =
Interpretation_ResolutionStatus_UNSOLVED;
static constexpr ResolutionStatus IN_PROGRESS =
Interpretation_ResolutionStatus_IN_PROGRESS;
static inline bool ResolutionStatus_IsValid(int value) {
return Interpretation_ResolutionStatus_IsValid(value);
}
static constexpr ResolutionStatus ResolutionStatus_MIN =
Interpretation_ResolutionStatus_ResolutionStatus_MIN;
static constexpr ResolutionStatus ResolutionStatus_MAX =
Interpretation_ResolutionStatus_ResolutionStatus_MAX;
static constexpr int ResolutionStatus_ARRAYSIZE =
Interpretation_ResolutionStatus_ResolutionStatus_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
ResolutionStatus_descriptor() {
return Interpretation_ResolutionStatus_descriptor();
}
template
static inline const std::string& ResolutionStatus_Name(T enum_t_value) {
static_assert(::std::is_same::value ||
::std::is_integral::value,
"Incorrect type passed to function ResolutionStatus_Name.");
return Interpretation_ResolutionStatus_Name(enum_t_value);
}
static inline bool ResolutionStatus_Parse(const std::string& name,
ResolutionStatus* value) {
return Interpretation_ResolutionStatus_Parse(name, value);
}
// accessors -------------------------------------------------------
// repeated .org.phenopackets.schema.v1.Diagnosis diagnosis = 5;
int diagnosis_size() const;
void clear_diagnosis();
static const int kDiagnosisFieldNumber = 5;
::org::phenopackets::schema::v1::Diagnosis* mutable_diagnosis(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Diagnosis >*
mutable_diagnosis();
const ::org::phenopackets::schema::v1::Diagnosis& diagnosis(int index) const;
::org::phenopackets::schema::v1::Diagnosis* add_diagnosis();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Diagnosis >&
diagnosis() const;
// string id = 1;
void clear_id();
static const int kIdFieldNumber = 1;
const std::string& id() const;
void set_id(const std::string& value);
void set_id(std::string&& value);
void set_id(const char* value);
void set_id(const char* value, size_t size);
std::string* mutable_id();
std::string* release_id();
void set_allocated_id(std::string* id);
// .org.phenopackets.schema.v1.core.MetaData meta_data = 6;
bool has_meta_data() const;
void clear_meta_data();
static const int kMetaDataFieldNumber = 6;
const ::org::phenopackets::schema::v1::core::MetaData& meta_data() const;
::org::phenopackets::schema::v1::core::MetaData* release_meta_data();
::org::phenopackets::schema::v1::core::MetaData* mutable_meta_data();
void set_allocated_meta_data(::org::phenopackets::schema::v1::core::MetaData* meta_data);
// .org.phenopackets.schema.v1.Interpretation.ResolutionStatus resolution_status = 2;
void clear_resolution_status();
static const int kResolutionStatusFieldNumber = 2;
::org::phenopackets::schema::v1::Interpretation_ResolutionStatus resolution_status() const;
void set_resolution_status(::org::phenopackets::schema::v1::Interpretation_ResolutionStatus value);
// .org.phenopackets.schema.v1.Phenopacket phenopacket = 3;
bool has_phenopacket() const;
void clear_phenopacket();
static const int kPhenopacketFieldNumber = 3;
const ::org::phenopackets::schema::v1::Phenopacket& phenopacket() const;
::org::phenopackets::schema::v1::Phenopacket* release_phenopacket();
::org::phenopackets::schema::v1::Phenopacket* mutable_phenopacket();
void set_allocated_phenopacket(::org::phenopackets::schema::v1::Phenopacket* phenopacket);
// .org.phenopackets.schema.v1.Family family = 4;
bool has_family() const;
void clear_family();
static const int kFamilyFieldNumber = 4;
const ::org::phenopackets::schema::v1::Family& family() const;
::org::phenopackets::schema::v1::Family* release_family();
::org::phenopackets::schema::v1::Family* mutable_family();
void set_allocated_family(::org::phenopackets::schema::v1::Family* family);
void clear_phenopacket_or_family();
PhenopacketOrFamilyCase phenopacket_or_family_case() const;
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.Interpretation)
private:
class HasBitSetters;
void set_has_phenopacket();
void set_has_family();
inline bool has_phenopacket_or_family() const;
inline void clear_has_phenopacket_or_family();
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Diagnosis > diagnosis_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
::org::phenopackets::schema::v1::core::MetaData* meta_data_;
int resolution_status_;
union PhenopacketOrFamilyUnion {
PhenopacketOrFamilyUnion() {}
::org::phenopackets::schema::v1::Phenopacket* phenopacket_;
::org::phenopackets::schema::v1::Family* family_;
} phenopacket_or_family_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
friend struct ::TableStruct_interpretation_2eproto;
};
// -------------------------------------------------------------------
class Diagnosis :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:org.phenopackets.schema.v1.Diagnosis) */ {
public:
Diagnosis();
virtual ~Diagnosis();
Diagnosis(const Diagnosis& from);
Diagnosis(Diagnosis&& from) noexcept
: Diagnosis() {
*this = ::std::move(from);
}
inline Diagnosis& operator=(const Diagnosis& from) {
CopyFrom(from);
return *this;
}
inline Diagnosis& operator=(Diagnosis&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return GetMetadataStatic().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Diagnosis& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Diagnosis* internal_default_instance() {
return reinterpret_cast(
&_Diagnosis_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
void Swap(Diagnosis* other);
friend void swap(Diagnosis& a, Diagnosis& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Diagnosis* New() const final {
return CreateMaybeMessage(nullptr);
}
Diagnosis* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const Diagnosis& from);
void MergeFrom(const Diagnosis& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
#else
bool MergePartialFromCodedStream(
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Diagnosis* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "org.phenopackets.schema.v1.Diagnosis";
}
private:
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
return nullptr;
}
inline void* MaybeArenaPtr() const {
return nullptr;
}
public:
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_interpretation_2eproto);
return ::descriptor_table_interpretation_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
int genomic_interpretations_size() const;
void clear_genomic_interpretations();
static const int kGenomicInterpretationsFieldNumber = 2;
::org::phenopackets::schema::v1::GenomicInterpretation* mutable_genomic_interpretations(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::GenomicInterpretation >*
mutable_genomic_interpretations();
const ::org::phenopackets::schema::v1::GenomicInterpretation& genomic_interpretations(int index) const;
::org::phenopackets::schema::v1::GenomicInterpretation* add_genomic_interpretations();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::GenomicInterpretation >&
genomic_interpretations() const;
// .org.phenopackets.schema.v1.core.Disease disease = 1;
bool has_disease() const;
void clear_disease();
static const int kDiseaseFieldNumber = 1;
const ::org::phenopackets::schema::v1::core::Disease& disease() const;
::org::phenopackets::schema::v1::core::Disease* release_disease();
::org::phenopackets::schema::v1::core::Disease* mutable_disease();
void set_allocated_disease(::org::phenopackets::schema::v1::core::Disease* disease);
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.Diagnosis)
private:
class HasBitSetters;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::GenomicInterpretation > genomic_interpretations_;
::org::phenopackets::schema::v1::core::Disease* disease_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_interpretation_2eproto;
};
// -------------------------------------------------------------------
class GenomicInterpretation :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:org.phenopackets.schema.v1.GenomicInterpretation) */ {
public:
GenomicInterpretation();
virtual ~GenomicInterpretation();
GenomicInterpretation(const GenomicInterpretation& from);
GenomicInterpretation(GenomicInterpretation&& from) noexcept
: GenomicInterpretation() {
*this = ::std::move(from);
}
inline GenomicInterpretation& operator=(const GenomicInterpretation& from) {
CopyFrom(from);
return *this;
}
inline GenomicInterpretation& operator=(GenomicInterpretation&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return GetMetadataStatic().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const GenomicInterpretation& default_instance();
enum CallCase {
kGene = 2,
kVariant = 3,
CALL_NOT_SET = 0,
};
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const GenomicInterpretation* internal_default_instance() {
return reinterpret_cast(
&_GenomicInterpretation_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
void Swap(GenomicInterpretation* other);
friend void swap(GenomicInterpretation& a, GenomicInterpretation& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline GenomicInterpretation* New() const final {
return CreateMaybeMessage(nullptr);
}
GenomicInterpretation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const GenomicInterpretation& from);
void MergeFrom(const GenomicInterpretation& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
#else
bool MergePartialFromCodedStream(
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(GenomicInterpretation* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "org.phenopackets.schema.v1.GenomicInterpretation";
}
private:
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
return nullptr;
}
inline void* MaybeArenaPtr() const {
return nullptr;
}
public:
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_interpretation_2eproto);
return ::descriptor_table_interpretation_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
typedef GenomicInterpretation_Status Status;
static constexpr Status UNKNOWN =
GenomicInterpretation_Status_UNKNOWN;
static constexpr Status REJECTED =
GenomicInterpretation_Status_REJECTED;
static constexpr Status CANDIDATE =
GenomicInterpretation_Status_CANDIDATE;
static constexpr Status CAUSATIVE =
GenomicInterpretation_Status_CAUSATIVE;
static inline bool Status_IsValid(int value) {
return GenomicInterpretation_Status_IsValid(value);
}
static constexpr Status Status_MIN =
GenomicInterpretation_Status_Status_MIN;
static constexpr Status Status_MAX =
GenomicInterpretation_Status_Status_MAX;
static constexpr int Status_ARRAYSIZE =
GenomicInterpretation_Status_Status_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
Status_descriptor() {
return GenomicInterpretation_Status_descriptor();
}
template
static inline const std::string& Status_Name(T enum_t_value) {
static_assert(::std::is_same::value ||
::std::is_integral::value,
"Incorrect type passed to function Status_Name.");
return GenomicInterpretation_Status_Name(enum_t_value);
}
static inline bool Status_Parse(const std::string& name,
Status* value) {
return GenomicInterpretation_Status_Parse(name, value);
}
// accessors -------------------------------------------------------
// .org.phenopackets.schema.v1.GenomicInterpretation.Status status = 1;
void clear_status();
static const int kStatusFieldNumber = 1;
::org::phenopackets::schema::v1::GenomicInterpretation_Status status() const;
void set_status(::org::phenopackets::schema::v1::GenomicInterpretation_Status value);
// .org.phenopackets.schema.v1.core.Gene gene = 2;
bool has_gene() const;
void clear_gene();
static const int kGeneFieldNumber = 2;
const ::org::phenopackets::schema::v1::core::Gene& gene() const;
::org::phenopackets::schema::v1::core::Gene* release_gene();
::org::phenopackets::schema::v1::core::Gene* mutable_gene();
void set_allocated_gene(::org::phenopackets::schema::v1::core::Gene* gene);
// .org.phenopackets.schema.v1.core.Variant variant = 3;
bool has_variant() const;
void clear_variant();
static const int kVariantFieldNumber = 3;
const ::org::phenopackets::schema::v1::core::Variant& variant() const;
::org::phenopackets::schema::v1::core::Variant* release_variant();
::org::phenopackets::schema::v1::core::Variant* mutable_variant();
void set_allocated_variant(::org::phenopackets::schema::v1::core::Variant* variant);
void clear_call();
CallCase call_case() const;
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.GenomicInterpretation)
private:
class HasBitSetters;
void set_has_gene();
void set_has_variant();
inline bool has_call() const;
inline void clear_has_call();
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
int status_;
union CallUnion {
CallUnion() {}
::org::phenopackets::schema::v1::core::Gene* gene_;
::org::phenopackets::schema::v1::core::Variant* variant_;
} call_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
friend struct ::TableStruct_interpretation_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// Interpretation
// string id = 1;
inline void Interpretation::clear_id() {
id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& Interpretation::id() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Interpretation.id)
return id_.GetNoArena();
}
inline void Interpretation::set_id(const std::string& value) {
id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.Interpretation.id)
}
inline void Interpretation::set_id(std::string&& value) {
id_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:org.phenopackets.schema.v1.Interpretation.id)
}
inline void Interpretation::set_id(const char* value) {
GOOGLE_DCHECK(value != nullptr);
id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:org.phenopackets.schema.v1.Interpretation.id)
}
inline void Interpretation::set_id(const char* value, size_t size) {
id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast(value), size));
// @@protoc_insertion_point(field_set_pointer:org.phenopackets.schema.v1.Interpretation.id)
}
inline std::string* Interpretation::mutable_id() {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Interpretation.id)
return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Interpretation::release_id() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Interpretation.id)
return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Interpretation::set_allocated_id(std::string* id) {
if (id != nullptr) {
} else {
}
id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id);
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Interpretation.id)
}
// .org.phenopackets.schema.v1.Interpretation.ResolutionStatus resolution_status = 2;
inline void Interpretation::clear_resolution_status() {
resolution_status_ = 0;
}
inline ::org::phenopackets::schema::v1::Interpretation_ResolutionStatus Interpretation::resolution_status() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Interpretation.resolution_status)
return static_cast< ::org::phenopackets::schema::v1::Interpretation_ResolutionStatus >(resolution_status_);
}
inline void Interpretation::set_resolution_status(::org::phenopackets::schema::v1::Interpretation_ResolutionStatus value) {
resolution_status_ = value;
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.Interpretation.resolution_status)
}
// .org.phenopackets.schema.v1.Phenopacket phenopacket = 3;
inline bool Interpretation::has_phenopacket() const {
return phenopacket_or_family_case() == kPhenopacket;
}
inline void Interpretation::set_has_phenopacket() {
_oneof_case_[0] = kPhenopacket;
}
inline ::org::phenopackets::schema::v1::Phenopacket* Interpretation::release_phenopacket() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Interpretation.phenopacket)
if (has_phenopacket()) {
clear_has_phenopacket_or_family();
::org::phenopackets::schema::v1::Phenopacket* temp = phenopacket_or_family_.phenopacket_;
phenopacket_or_family_.phenopacket_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::org::phenopackets::schema::v1::Phenopacket& Interpretation::phenopacket() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Interpretation.phenopacket)
return has_phenopacket()
? *phenopacket_or_family_.phenopacket_
: *reinterpret_cast< ::org::phenopackets::schema::v1::Phenopacket*>(&::org::phenopackets::schema::v1::_Phenopacket_default_instance_);
}
inline ::org::phenopackets::schema::v1::Phenopacket* Interpretation::mutable_phenopacket() {
if (!has_phenopacket()) {
clear_phenopacket_or_family();
set_has_phenopacket();
phenopacket_or_family_.phenopacket_ = CreateMaybeMessage< ::org::phenopackets::schema::v1::Phenopacket >(
GetArenaNoVirtual());
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Interpretation.phenopacket)
return phenopacket_or_family_.phenopacket_;
}
// .org.phenopackets.schema.v1.Family family = 4;
inline bool Interpretation::has_family() const {
return phenopacket_or_family_case() == kFamily;
}
inline void Interpretation::set_has_family() {
_oneof_case_[0] = kFamily;
}
inline ::org::phenopackets::schema::v1::Family* Interpretation::release_family() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Interpretation.family)
if (has_family()) {
clear_has_phenopacket_or_family();
::org::phenopackets::schema::v1::Family* temp = phenopacket_or_family_.family_;
phenopacket_or_family_.family_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::org::phenopackets::schema::v1::Family& Interpretation::family() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Interpretation.family)
return has_family()
? *phenopacket_or_family_.family_
: *reinterpret_cast< ::org::phenopackets::schema::v1::Family*>(&::org::phenopackets::schema::v1::_Family_default_instance_);
}
inline ::org::phenopackets::schema::v1::Family* Interpretation::mutable_family() {
if (!has_family()) {
clear_phenopacket_or_family();
set_has_family();
phenopacket_or_family_.family_ = CreateMaybeMessage< ::org::phenopackets::schema::v1::Family >(
GetArenaNoVirtual());
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Interpretation.family)
return phenopacket_or_family_.family_;
}
// repeated .org.phenopackets.schema.v1.Diagnosis diagnosis = 5;
inline int Interpretation::diagnosis_size() const {
return diagnosis_.size();
}
inline void Interpretation::clear_diagnosis() {
diagnosis_.Clear();
}
inline ::org::phenopackets::schema::v1::Diagnosis* Interpretation::mutable_diagnosis(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Interpretation.diagnosis)
return diagnosis_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Diagnosis >*
Interpretation::mutable_diagnosis() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Interpretation.diagnosis)
return &diagnosis_;
}
inline const ::org::phenopackets::schema::v1::Diagnosis& Interpretation::diagnosis(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Interpretation.diagnosis)
return diagnosis_.Get(index);
}
inline ::org::phenopackets::schema::v1::Diagnosis* Interpretation::add_diagnosis() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Interpretation.diagnosis)
return diagnosis_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Diagnosis >&
Interpretation::diagnosis() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Interpretation.diagnosis)
return diagnosis_;
}
// .org.phenopackets.schema.v1.core.MetaData meta_data = 6;
inline bool Interpretation::has_meta_data() const {
return this != internal_default_instance() && meta_data_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::MetaData& Interpretation::meta_data() const {
const ::org::phenopackets::schema::v1::core::MetaData* p = meta_data_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Interpretation.meta_data)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_MetaData_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::MetaData* Interpretation::release_meta_data() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Interpretation.meta_data)
::org::phenopackets::schema::v1::core::MetaData* temp = meta_data_;
meta_data_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::MetaData* Interpretation::mutable_meta_data() {
if (meta_data_ == nullptr) {
auto* p = CreateMaybeMessage<::org::phenopackets::schema::v1::core::MetaData>(GetArenaNoVirtual());
meta_data_ = p;
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Interpretation.meta_data)
return meta_data_;
}
inline void Interpretation::set_allocated_meta_data(::org::phenopackets::schema::v1::core::MetaData* meta_data) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(meta_data_);
}
if (meta_data) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
meta_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, meta_data, submessage_arena);
}
} else {
}
meta_data_ = meta_data;
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Interpretation.meta_data)
}
inline bool Interpretation::has_phenopacket_or_family() const {
return phenopacket_or_family_case() != PHENOPACKET_OR_FAMILY_NOT_SET;
}
inline void Interpretation::clear_has_phenopacket_or_family() {
_oneof_case_[0] = PHENOPACKET_OR_FAMILY_NOT_SET;
}
inline Interpretation::PhenopacketOrFamilyCase Interpretation::phenopacket_or_family_case() const {
return Interpretation::PhenopacketOrFamilyCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// Diagnosis
// .org.phenopackets.schema.v1.core.Disease disease = 1;
inline bool Diagnosis::has_disease() const {
return this != internal_default_instance() && disease_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::Disease& Diagnosis::disease() const {
const ::org::phenopackets::schema::v1::core::Disease* p = disease_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Diagnosis.disease)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_Disease_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::Disease* Diagnosis::release_disease() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Diagnosis.disease)
::org::phenopackets::schema::v1::core::Disease* temp = disease_;
disease_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::Disease* Diagnosis::mutable_disease() {
if (disease_ == nullptr) {
auto* p = CreateMaybeMessage<::org::phenopackets::schema::v1::core::Disease>(GetArenaNoVirtual());
disease_ = p;
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Diagnosis.disease)
return disease_;
}
inline void Diagnosis::set_allocated_disease(::org::phenopackets::schema::v1::core::Disease* disease) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(disease_);
}
if (disease) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
disease = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, disease, submessage_arena);
}
} else {
}
disease_ = disease;
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Diagnosis.disease)
}
// repeated .org.phenopackets.schema.v1.GenomicInterpretation genomic_interpretations = 2;
inline int Diagnosis::genomic_interpretations_size() const {
return genomic_interpretations_.size();
}
inline void Diagnosis::clear_genomic_interpretations() {
genomic_interpretations_.Clear();
}
inline ::org::phenopackets::schema::v1::GenomicInterpretation* Diagnosis::mutable_genomic_interpretations(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Diagnosis.genomic_interpretations)
return genomic_interpretations_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::GenomicInterpretation >*
Diagnosis::mutable_genomic_interpretations() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Diagnosis.genomic_interpretations)
return &genomic_interpretations_;
}
inline const ::org::phenopackets::schema::v1::GenomicInterpretation& Diagnosis::genomic_interpretations(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Diagnosis.genomic_interpretations)
return genomic_interpretations_.Get(index);
}
inline ::org::phenopackets::schema::v1::GenomicInterpretation* Diagnosis::add_genomic_interpretations() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Diagnosis.genomic_interpretations)
return genomic_interpretations_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::GenomicInterpretation >&
Diagnosis::genomic_interpretations() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Diagnosis.genomic_interpretations)
return genomic_interpretations_;
}
// -------------------------------------------------------------------
// GenomicInterpretation
// .org.phenopackets.schema.v1.GenomicInterpretation.Status status = 1;
inline void GenomicInterpretation::clear_status() {
status_ = 0;
}
inline ::org::phenopackets::schema::v1::GenomicInterpretation_Status GenomicInterpretation::status() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.GenomicInterpretation.status)
return static_cast< ::org::phenopackets::schema::v1::GenomicInterpretation_Status >(status_);
}
inline void GenomicInterpretation::set_status(::org::phenopackets::schema::v1::GenomicInterpretation_Status value) {
status_ = value;
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.GenomicInterpretation.status)
}
// .org.phenopackets.schema.v1.core.Gene gene = 2;
inline bool GenomicInterpretation::has_gene() const {
return call_case() == kGene;
}
inline void GenomicInterpretation::set_has_gene() {
_oneof_case_[0] = kGene;
}
inline ::org::phenopackets::schema::v1::core::Gene* GenomicInterpretation::release_gene() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.GenomicInterpretation.gene)
if (has_gene()) {
clear_has_call();
::org::phenopackets::schema::v1::core::Gene* temp = call_.gene_;
call_.gene_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::org::phenopackets::schema::v1::core::Gene& GenomicInterpretation::gene() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.GenomicInterpretation.gene)
return has_gene()
? *call_.gene_
: *reinterpret_cast< ::org::phenopackets::schema::v1::core::Gene*>(&::org::phenopackets::schema::v1::core::_Gene_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::Gene* GenomicInterpretation::mutable_gene() {
if (!has_gene()) {
clear_call();
set_has_gene();
call_.gene_ = CreateMaybeMessage< ::org::phenopackets::schema::v1::core::Gene >(
GetArenaNoVirtual());
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.GenomicInterpretation.gene)
return call_.gene_;
}
// .org.phenopackets.schema.v1.core.Variant variant = 3;
inline bool GenomicInterpretation::has_variant() const {
return call_case() == kVariant;
}
inline void GenomicInterpretation::set_has_variant() {
_oneof_case_[0] = kVariant;
}
inline ::org::phenopackets::schema::v1::core::Variant* GenomicInterpretation::release_variant() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.GenomicInterpretation.variant)
if (has_variant()) {
clear_has_call();
::org::phenopackets::schema::v1::core::Variant* temp = call_.variant_;
call_.variant_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::org::phenopackets::schema::v1::core::Variant& GenomicInterpretation::variant() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.GenomicInterpretation.variant)
return has_variant()
? *call_.variant_
: *reinterpret_cast< ::org::phenopackets::schema::v1::core::Variant*>(&::org::phenopackets::schema::v1::core::_Variant_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::Variant* GenomicInterpretation::mutable_variant() {
if (!has_variant()) {
clear_call();
set_has_variant();
call_.variant_ = CreateMaybeMessage< ::org::phenopackets::schema::v1::core::Variant >(
GetArenaNoVirtual());
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.GenomicInterpretation.variant)
return call_.variant_;
}
inline bool GenomicInterpretation::has_call() const {
return call_case() != CALL_NOT_SET;
}
inline void GenomicInterpretation::clear_has_call() {
_oneof_case_[0] = CALL_NOT_SET;
}
inline GenomicInterpretation::CallCase GenomicInterpretation::call_case() const {
return GenomicInterpretation::CallCase(_oneof_case_[0]);
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace v1
} // namespace schema
} // namespace phenopackets
} // namespace org
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::org::phenopackets::schema::v1::Interpretation_ResolutionStatus> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::org::phenopackets::schema::v1::Interpretation_ResolutionStatus>() {
return ::org::phenopackets::schema::v1::Interpretation_ResolutionStatus_descriptor();
}
template <> struct is_proto_enum< ::org::phenopackets::schema::v1::GenomicInterpretation_Status> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::org::phenopackets::schema::v1::GenomicInterpretation_Status>() {
return ::org::phenopackets::schema::v1::GenomicInterpretation_Status_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_interpretation_2eproto