ets.phenopacket-schema.1.0.0-RC3.source-code.phenopackets.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: phenopackets.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_phenopackets_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_phenopackets_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 "base.pb.h"
// @@protoc_insertion_point(includes)
#include
#define PROTOBUF_INTERNAL_EXPORT_phenopackets_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_phenopackets_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_phenopackets_2eproto;
namespace org {
namespace phenopackets {
namespace schema {
namespace v1 {
class Cohort;
class CohortDefaultTypeInternal;
extern CohortDefaultTypeInternal _Cohort_default_instance_;
class Family;
class FamilyDefaultTypeInternal;
extern FamilyDefaultTypeInternal _Family_default_instance_;
class Phenopacket;
class PhenopacketDefaultTypeInternal;
extern PhenopacketDefaultTypeInternal _Phenopacket_default_instance_;
} // namespace v1
} // namespace schema
} // namespace phenopackets
} // namespace org
PROTOBUF_NAMESPACE_OPEN
template<> ::org::phenopackets::schema::v1::Cohort* Arena::CreateMaybeMessage<::org::phenopackets::schema::v1::Cohort>(Arena*);
template<> ::org::phenopackets::schema::v1::Family* Arena::CreateMaybeMessage<::org::phenopackets::schema::v1::Family>(Arena*);
template<> ::org::phenopackets::schema::v1::Phenopacket* Arena::CreateMaybeMessage<::org::phenopackets::schema::v1::Phenopacket>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace org {
namespace phenopackets {
namespace schema {
namespace v1 {
// ===================================================================
class Phenopacket :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:org.phenopackets.schema.v1.Phenopacket) */ {
public:
Phenopacket();
virtual ~Phenopacket();
Phenopacket(const Phenopacket& from);
Phenopacket(Phenopacket&& from) noexcept
: Phenopacket() {
*this = ::std::move(from);
}
inline Phenopacket& operator=(const Phenopacket& from) {
CopyFrom(from);
return *this;
}
inline Phenopacket& operator=(Phenopacket&& 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 Phenopacket& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Phenopacket* internal_default_instance() {
return reinterpret_cast(
&_Phenopacket_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
void Swap(Phenopacket* other);
friend void swap(Phenopacket& a, Phenopacket& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Phenopacket* New() const final {
return CreateMaybeMessage(nullptr);
}
Phenopacket* 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 Phenopacket& from);
void MergeFrom(const Phenopacket& 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(Phenopacket* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "org.phenopackets.schema.v1.Phenopacket";
}
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_phenopackets_2eproto);
return ::descriptor_table_phenopackets_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .org.phenopackets.schema.v1.core.PhenotypicFeature phenotypic_features = 3;
int phenotypic_features_size() const;
void clear_phenotypic_features();
static const int kPhenotypicFeaturesFieldNumber = 3;
::org::phenopackets::schema::v1::core::PhenotypicFeature* mutable_phenotypic_features(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::PhenotypicFeature >*
mutable_phenotypic_features();
const ::org::phenopackets::schema::v1::core::PhenotypicFeature& phenotypic_features(int index) const;
::org::phenopackets::schema::v1::core::PhenotypicFeature* add_phenotypic_features();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::PhenotypicFeature >&
phenotypic_features() const;
// repeated .org.phenopackets.schema.v1.core.Biosample biosamples = 4;
int biosamples_size() const;
void clear_biosamples();
static const int kBiosamplesFieldNumber = 4;
::org::phenopackets::schema::v1::core::Biosample* mutable_biosamples(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Biosample >*
mutable_biosamples();
const ::org::phenopackets::schema::v1::core::Biosample& biosamples(int index) const;
::org::phenopackets::schema::v1::core::Biosample* add_biosamples();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Biosample >&
biosamples() const;
// repeated .org.phenopackets.schema.v1.core.Gene genes = 5;
int genes_size() const;
void clear_genes();
static const int kGenesFieldNumber = 5;
::org::phenopackets::schema::v1::core::Gene* mutable_genes(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Gene >*
mutable_genes();
const ::org::phenopackets::schema::v1::core::Gene& genes(int index) const;
::org::phenopackets::schema::v1::core::Gene* add_genes();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Gene >&
genes() const;
// repeated .org.phenopackets.schema.v1.core.Variant variants = 6;
int variants_size() const;
void clear_variants();
static const int kVariantsFieldNumber = 6;
::org::phenopackets::schema::v1::core::Variant* mutable_variants(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Variant >*
mutable_variants();
const ::org::phenopackets::schema::v1::core::Variant& variants(int index) const;
::org::phenopackets::schema::v1::core::Variant* add_variants();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Variant >&
variants() const;
// repeated .org.phenopackets.schema.v1.core.Disease diseases = 7;
int diseases_size() const;
void clear_diseases();
static const int kDiseasesFieldNumber = 7;
::org::phenopackets::schema::v1::core::Disease* mutable_diseases(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Disease >*
mutable_diseases();
const ::org::phenopackets::schema::v1::core::Disease& diseases(int index) const;
::org::phenopackets::schema::v1::core::Disease* add_diseases();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Disease >&
diseases() const;
// repeated .org.phenopackets.schema.v1.core.HtsFile hts_files = 8;
int hts_files_size() const;
void clear_hts_files();
static const int kHtsFilesFieldNumber = 8;
::org::phenopackets::schema::v1::core::HtsFile* mutable_hts_files(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >*
mutable_hts_files();
const ::org::phenopackets::schema::v1::core::HtsFile& hts_files(int index) const;
::org::phenopackets::schema::v1::core::HtsFile* add_hts_files();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >&
hts_files() 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.Individual subject = 2;
bool has_subject() const;
void clear_subject();
static const int kSubjectFieldNumber = 2;
const ::org::phenopackets::schema::v1::core::Individual& subject() const;
::org::phenopackets::schema::v1::core::Individual* release_subject();
::org::phenopackets::schema::v1::core::Individual* mutable_subject();
void set_allocated_subject(::org::phenopackets::schema::v1::core::Individual* subject);
// .org.phenopackets.schema.v1.core.MetaData meta_data = 9;
bool has_meta_data() const;
void clear_meta_data();
static const int kMetaDataFieldNumber = 9;
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);
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.Phenopacket)
private:
class HasBitSetters;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::PhenotypicFeature > phenotypic_features_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Biosample > biosamples_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Gene > genes_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Variant > variants_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Disease > diseases_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile > hts_files_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
::org::phenopackets::schema::v1::core::Individual* subject_;
::org::phenopackets::schema::v1::core::MetaData* meta_data_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_phenopackets_2eproto;
};
// -------------------------------------------------------------------
class Family :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:org.phenopackets.schema.v1.Family) */ {
public:
Family();
virtual ~Family();
Family(const Family& from);
Family(Family&& from) noexcept
: Family() {
*this = ::std::move(from);
}
inline Family& operator=(const Family& from) {
CopyFrom(from);
return *this;
}
inline Family& operator=(Family&& 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 Family& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Family* internal_default_instance() {
return reinterpret_cast(
&_Family_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
void Swap(Family* other);
friend void swap(Family& a, Family& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Family* New() const final {
return CreateMaybeMessage(nullptr);
}
Family* 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 Family& from);
void MergeFrom(const Family& 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(Family* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "org.phenopackets.schema.v1.Family";
}
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_phenopackets_2eproto);
return ::descriptor_table_phenopackets_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .org.phenopackets.schema.v1.Phenopacket relatives = 3;
int relatives_size() const;
void clear_relatives();
static const int kRelativesFieldNumber = 3;
::org::phenopackets::schema::v1::Phenopacket* mutable_relatives(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >*
mutable_relatives();
const ::org::phenopackets::schema::v1::Phenopacket& relatives(int index) const;
::org::phenopackets::schema::v1::Phenopacket* add_relatives();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >&
relatives() const;
// repeated .org.phenopackets.schema.v1.core.HtsFile hts_files = 5;
int hts_files_size() const;
void clear_hts_files();
static const int kHtsFilesFieldNumber = 5;
::org::phenopackets::schema::v1::core::HtsFile* mutable_hts_files(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >*
mutable_hts_files();
const ::org::phenopackets::schema::v1::core::HtsFile& hts_files(int index) const;
::org::phenopackets::schema::v1::core::HtsFile* add_hts_files();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >&
hts_files() 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.Phenopacket proband = 2;
bool has_proband() const;
void clear_proband();
static const int kProbandFieldNumber = 2;
const ::org::phenopackets::schema::v1::Phenopacket& proband() const;
::org::phenopackets::schema::v1::Phenopacket* release_proband();
::org::phenopackets::schema::v1::Phenopacket* mutable_proband();
void set_allocated_proband(::org::phenopackets::schema::v1::Phenopacket* proband);
// .org.phenopackets.schema.v1.core.Pedigree pedigree = 4;
bool has_pedigree() const;
void clear_pedigree();
static const int kPedigreeFieldNumber = 4;
const ::org::phenopackets::schema::v1::core::Pedigree& pedigree() const;
::org::phenopackets::schema::v1::core::Pedigree* release_pedigree();
::org::phenopackets::schema::v1::core::Pedigree* mutable_pedigree();
void set_allocated_pedigree(::org::phenopackets::schema::v1::core::Pedigree* pedigree);
// .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);
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.Family)
private:
class HasBitSetters;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket > relatives_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile > hts_files_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
::org::phenopackets::schema::v1::Phenopacket* proband_;
::org::phenopackets::schema::v1::core::Pedigree* pedigree_;
::org::phenopackets::schema::v1::core::MetaData* meta_data_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_phenopackets_2eproto;
};
// -------------------------------------------------------------------
class Cohort :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:org.phenopackets.schema.v1.Cohort) */ {
public:
Cohort();
virtual ~Cohort();
Cohort(const Cohort& from);
Cohort(Cohort&& from) noexcept
: Cohort() {
*this = ::std::move(from);
}
inline Cohort& operator=(const Cohort& from) {
CopyFrom(from);
return *this;
}
inline Cohort& operator=(Cohort&& 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 Cohort& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Cohort* internal_default_instance() {
return reinterpret_cast(
&_Cohort_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
void Swap(Cohort* other);
friend void swap(Cohort& a, Cohort& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Cohort* New() const final {
return CreateMaybeMessage(nullptr);
}
Cohort* 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 Cohort& from);
void MergeFrom(const Cohort& 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(Cohort* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "org.phenopackets.schema.v1.Cohort";
}
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_phenopackets_2eproto);
return ::descriptor_table_phenopackets_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .org.phenopackets.schema.v1.Phenopacket members = 3;
int members_size() const;
void clear_members();
static const int kMembersFieldNumber = 3;
::org::phenopackets::schema::v1::Phenopacket* mutable_members(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >*
mutable_members();
const ::org::phenopackets::schema::v1::Phenopacket& members(int index) const;
::org::phenopackets::schema::v1::Phenopacket* add_members();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >&
members() const;
// repeated .org.phenopackets.schema.v1.core.HtsFile hts_files = 4;
int hts_files_size() const;
void clear_hts_files();
static const int kHtsFilesFieldNumber = 4;
::org::phenopackets::schema::v1::core::HtsFile* mutable_hts_files(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >*
mutable_hts_files();
const ::org::phenopackets::schema::v1::core::HtsFile& hts_files(int index) const;
::org::phenopackets::schema::v1::core::HtsFile* add_hts_files();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >&
hts_files() 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);
// string description = 2;
void clear_description();
static const int kDescriptionFieldNumber = 2;
const std::string& description() const;
void set_description(const std::string& value);
void set_description(std::string&& value);
void set_description(const char* value);
void set_description(const char* value, size_t size);
std::string* mutable_description();
std::string* release_description();
void set_allocated_description(std::string* description);
// .org.phenopackets.schema.v1.core.MetaData meta_data = 5;
bool has_meta_data() const;
void clear_meta_data();
static const int kMetaDataFieldNumber = 5;
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);
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.Cohort)
private:
class HasBitSetters;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket > members_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile > hts_files_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_;
::org::phenopackets::schema::v1::core::MetaData* meta_data_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_phenopackets_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// Phenopacket
// string id = 1;
inline void Phenopacket::clear_id() {
id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& Phenopacket::id() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.id)
return id_.GetNoArena();
}
inline void Phenopacket::set_id(const std::string& value) {
id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.Phenopacket.id)
}
inline void Phenopacket::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.Phenopacket.id)
}
inline void Phenopacket::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.Phenopacket.id)
}
inline void Phenopacket::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.Phenopacket.id)
}
inline std::string* Phenopacket::mutable_id() {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.id)
return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Phenopacket::release_id() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Phenopacket.id)
return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Phenopacket::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.Phenopacket.id)
}
// .org.phenopackets.schema.v1.core.Individual subject = 2;
inline bool Phenopacket::has_subject() const {
return this != internal_default_instance() && subject_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::Individual& Phenopacket::subject() const {
const ::org::phenopackets::schema::v1::core::Individual* p = subject_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.subject)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_Individual_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::Individual* Phenopacket::release_subject() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Phenopacket.subject)
::org::phenopackets::schema::v1::core::Individual* temp = subject_;
subject_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::Individual* Phenopacket::mutable_subject() {
if (subject_ == nullptr) {
auto* p = CreateMaybeMessage<::org::phenopackets::schema::v1::core::Individual>(GetArenaNoVirtual());
subject_ = p;
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.subject)
return subject_;
}
inline void Phenopacket::set_allocated_subject(::org::phenopackets::schema::v1::core::Individual* subject) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(subject_);
}
if (subject) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
subject = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, subject, submessage_arena);
}
} else {
}
subject_ = subject;
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Phenopacket.subject)
}
// repeated .org.phenopackets.schema.v1.core.PhenotypicFeature phenotypic_features = 3;
inline int Phenopacket::phenotypic_features_size() const {
return phenotypic_features_.size();
}
inline ::org::phenopackets::schema::v1::core::PhenotypicFeature* Phenopacket::mutable_phenotypic_features(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.phenotypic_features)
return phenotypic_features_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::PhenotypicFeature >*
Phenopacket::mutable_phenotypic_features() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Phenopacket.phenotypic_features)
return &phenotypic_features_;
}
inline const ::org::phenopackets::schema::v1::core::PhenotypicFeature& Phenopacket::phenotypic_features(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.phenotypic_features)
return phenotypic_features_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::PhenotypicFeature* Phenopacket::add_phenotypic_features() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Phenopacket.phenotypic_features)
return phenotypic_features_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::PhenotypicFeature >&
Phenopacket::phenotypic_features() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Phenopacket.phenotypic_features)
return phenotypic_features_;
}
// repeated .org.phenopackets.schema.v1.core.Biosample biosamples = 4;
inline int Phenopacket::biosamples_size() const {
return biosamples_.size();
}
inline ::org::phenopackets::schema::v1::core::Biosample* Phenopacket::mutable_biosamples(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.biosamples)
return biosamples_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Biosample >*
Phenopacket::mutable_biosamples() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Phenopacket.biosamples)
return &biosamples_;
}
inline const ::org::phenopackets::schema::v1::core::Biosample& Phenopacket::biosamples(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.biosamples)
return biosamples_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::Biosample* Phenopacket::add_biosamples() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Phenopacket.biosamples)
return biosamples_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Biosample >&
Phenopacket::biosamples() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Phenopacket.biosamples)
return biosamples_;
}
// repeated .org.phenopackets.schema.v1.core.Gene genes = 5;
inline int Phenopacket::genes_size() const {
return genes_.size();
}
inline ::org::phenopackets::schema::v1::core::Gene* Phenopacket::mutable_genes(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.genes)
return genes_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Gene >*
Phenopacket::mutable_genes() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Phenopacket.genes)
return &genes_;
}
inline const ::org::phenopackets::schema::v1::core::Gene& Phenopacket::genes(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.genes)
return genes_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::Gene* Phenopacket::add_genes() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Phenopacket.genes)
return genes_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Gene >&
Phenopacket::genes() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Phenopacket.genes)
return genes_;
}
// repeated .org.phenopackets.schema.v1.core.Variant variants = 6;
inline int Phenopacket::variants_size() const {
return variants_.size();
}
inline ::org::phenopackets::schema::v1::core::Variant* Phenopacket::mutable_variants(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.variants)
return variants_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Variant >*
Phenopacket::mutable_variants() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Phenopacket.variants)
return &variants_;
}
inline const ::org::phenopackets::schema::v1::core::Variant& Phenopacket::variants(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.variants)
return variants_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::Variant* Phenopacket::add_variants() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Phenopacket.variants)
return variants_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Variant >&
Phenopacket::variants() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Phenopacket.variants)
return variants_;
}
// repeated .org.phenopackets.schema.v1.core.Disease diseases = 7;
inline int Phenopacket::diseases_size() const {
return diseases_.size();
}
inline ::org::phenopackets::schema::v1::core::Disease* Phenopacket::mutable_diseases(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.diseases)
return diseases_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Disease >*
Phenopacket::mutable_diseases() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Phenopacket.diseases)
return &diseases_;
}
inline const ::org::phenopackets::schema::v1::core::Disease& Phenopacket::diseases(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.diseases)
return diseases_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::Disease* Phenopacket::add_diseases() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Phenopacket.diseases)
return diseases_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::Disease >&
Phenopacket::diseases() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Phenopacket.diseases)
return diseases_;
}
// repeated .org.phenopackets.schema.v1.core.HtsFile hts_files = 8;
inline int Phenopacket::hts_files_size() const {
return hts_files_.size();
}
inline ::org::phenopackets::schema::v1::core::HtsFile* Phenopacket::mutable_hts_files(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Phenopacket.hts_files)
return hts_files_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >*
Phenopacket::mutable_hts_files() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Phenopacket.hts_files)
return &hts_files_;
}
inline const ::org::phenopackets::schema::v1::core::HtsFile& Phenopacket::hts_files(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.hts_files)
return hts_files_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::HtsFile* Phenopacket::add_hts_files() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Phenopacket.hts_files)
return hts_files_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >&
Phenopacket::hts_files() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Phenopacket.hts_files)
return hts_files_;
}
// .org.phenopackets.schema.v1.core.MetaData meta_data = 9;
inline bool Phenopacket::has_meta_data() const {
return this != internal_default_instance() && meta_data_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::MetaData& Phenopacket::meta_data() const {
const ::org::phenopackets::schema::v1::core::MetaData* p = meta_data_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Phenopacket.meta_data)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_MetaData_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::MetaData* Phenopacket::release_meta_data() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Phenopacket.meta_data)
::org::phenopackets::schema::v1::core::MetaData* temp = meta_data_;
meta_data_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::MetaData* Phenopacket::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.Phenopacket.meta_data)
return meta_data_;
}
inline void Phenopacket::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.Phenopacket.meta_data)
}
// -------------------------------------------------------------------
// Family
// string id = 1;
inline void Family::clear_id() {
id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& Family::id() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Family.id)
return id_.GetNoArena();
}
inline void Family::set_id(const std::string& value) {
id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.Family.id)
}
inline void Family::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.Family.id)
}
inline void Family::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.Family.id)
}
inline void Family::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.Family.id)
}
inline std::string* Family::mutable_id() {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Family.id)
return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Family::release_id() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Family.id)
return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Family::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.Family.id)
}
// .org.phenopackets.schema.v1.Phenopacket proband = 2;
inline bool Family::has_proband() const {
return this != internal_default_instance() && proband_ != nullptr;
}
inline void Family::clear_proband() {
if (GetArenaNoVirtual() == nullptr && proband_ != nullptr) {
delete proband_;
}
proband_ = nullptr;
}
inline const ::org::phenopackets::schema::v1::Phenopacket& Family::proband() const {
const ::org::phenopackets::schema::v1::Phenopacket* p = proband_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Family.proband)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::_Phenopacket_default_instance_);
}
inline ::org::phenopackets::schema::v1::Phenopacket* Family::release_proband() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Family.proband)
::org::phenopackets::schema::v1::Phenopacket* temp = proband_;
proband_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::Phenopacket* Family::mutable_proband() {
if (proband_ == nullptr) {
auto* p = CreateMaybeMessage<::org::phenopackets::schema::v1::Phenopacket>(GetArenaNoVirtual());
proband_ = p;
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Family.proband)
return proband_;
}
inline void Family::set_allocated_proband(::org::phenopackets::schema::v1::Phenopacket* proband) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete proband_;
}
if (proband) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
proband = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, proband, submessage_arena);
}
} else {
}
proband_ = proband;
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Family.proband)
}
// repeated .org.phenopackets.schema.v1.Phenopacket relatives = 3;
inline int Family::relatives_size() const {
return relatives_.size();
}
inline void Family::clear_relatives() {
relatives_.Clear();
}
inline ::org::phenopackets::schema::v1::Phenopacket* Family::mutable_relatives(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Family.relatives)
return relatives_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >*
Family::mutable_relatives() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Family.relatives)
return &relatives_;
}
inline const ::org::phenopackets::schema::v1::Phenopacket& Family::relatives(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Family.relatives)
return relatives_.Get(index);
}
inline ::org::phenopackets::schema::v1::Phenopacket* Family::add_relatives() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Family.relatives)
return relatives_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >&
Family::relatives() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Family.relatives)
return relatives_;
}
// .org.phenopackets.schema.v1.core.Pedigree pedigree = 4;
inline bool Family::has_pedigree() const {
return this != internal_default_instance() && pedigree_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::Pedigree& Family::pedigree() const {
const ::org::phenopackets::schema::v1::core::Pedigree* p = pedigree_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Family.pedigree)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_Pedigree_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::Pedigree* Family::release_pedigree() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Family.pedigree)
::org::phenopackets::schema::v1::core::Pedigree* temp = pedigree_;
pedigree_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::Pedigree* Family::mutable_pedigree() {
if (pedigree_ == nullptr) {
auto* p = CreateMaybeMessage<::org::phenopackets::schema::v1::core::Pedigree>(GetArenaNoVirtual());
pedigree_ = p;
}
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Family.pedigree)
return pedigree_;
}
inline void Family::set_allocated_pedigree(::org::phenopackets::schema::v1::core::Pedigree* pedigree) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pedigree_);
}
if (pedigree) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
pedigree = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, pedigree, submessage_arena);
}
} else {
}
pedigree_ = pedigree;
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Family.pedigree)
}
// repeated .org.phenopackets.schema.v1.core.HtsFile hts_files = 5;
inline int Family::hts_files_size() const {
return hts_files_.size();
}
inline ::org::phenopackets::schema::v1::core::HtsFile* Family::mutable_hts_files(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Family.hts_files)
return hts_files_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >*
Family::mutable_hts_files() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Family.hts_files)
return &hts_files_;
}
inline const ::org::phenopackets::schema::v1::core::HtsFile& Family::hts_files(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Family.hts_files)
return hts_files_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::HtsFile* Family::add_hts_files() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Family.hts_files)
return hts_files_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >&
Family::hts_files() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Family.hts_files)
return hts_files_;
}
// .org.phenopackets.schema.v1.core.MetaData meta_data = 6;
inline bool Family::has_meta_data() const {
return this != internal_default_instance() && meta_data_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::MetaData& Family::meta_data() const {
const ::org::phenopackets::schema::v1::core::MetaData* p = meta_data_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Family.meta_data)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_MetaData_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::MetaData* Family::release_meta_data() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Family.meta_data)
::org::phenopackets::schema::v1::core::MetaData* temp = meta_data_;
meta_data_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::MetaData* Family::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.Family.meta_data)
return meta_data_;
}
inline void Family::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.Family.meta_data)
}
// -------------------------------------------------------------------
// Cohort
// string id = 1;
inline void Cohort::clear_id() {
id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& Cohort::id() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Cohort.id)
return id_.GetNoArena();
}
inline void Cohort::set_id(const std::string& value) {
id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.Cohort.id)
}
inline void Cohort::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.Cohort.id)
}
inline void Cohort::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.Cohort.id)
}
inline void Cohort::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.Cohort.id)
}
inline std::string* Cohort::mutable_id() {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Cohort.id)
return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Cohort::release_id() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Cohort.id)
return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Cohort::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.Cohort.id)
}
// string description = 2;
inline void Cohort::clear_description() {
description_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& Cohort::description() const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Cohort.description)
return description_.GetNoArena();
}
inline void Cohort::set_description(const std::string& value) {
description_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:org.phenopackets.schema.v1.Cohort.description)
}
inline void Cohort::set_description(std::string&& value) {
description_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:org.phenopackets.schema.v1.Cohort.description)
}
inline void Cohort::set_description(const char* value) {
GOOGLE_DCHECK(value != nullptr);
description_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:org.phenopackets.schema.v1.Cohort.description)
}
inline void Cohort::set_description(const char* value, size_t size) {
description_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast(value), size));
// @@protoc_insertion_point(field_set_pointer:org.phenopackets.schema.v1.Cohort.description)
}
inline std::string* Cohort::mutable_description() {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Cohort.description)
return description_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Cohort::release_description() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Cohort.description)
return description_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Cohort::set_allocated_description(std::string* description) {
if (description != nullptr) {
} else {
}
description_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description);
// @@protoc_insertion_point(field_set_allocated:org.phenopackets.schema.v1.Cohort.description)
}
// repeated .org.phenopackets.schema.v1.Phenopacket members = 3;
inline int Cohort::members_size() const {
return members_.size();
}
inline void Cohort::clear_members() {
members_.Clear();
}
inline ::org::phenopackets::schema::v1::Phenopacket* Cohort::mutable_members(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Cohort.members)
return members_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >*
Cohort::mutable_members() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Cohort.members)
return &members_;
}
inline const ::org::phenopackets::schema::v1::Phenopacket& Cohort::members(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Cohort.members)
return members_.Get(index);
}
inline ::org::phenopackets::schema::v1::Phenopacket* Cohort::add_members() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Cohort.members)
return members_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::Phenopacket >&
Cohort::members() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Cohort.members)
return members_;
}
// repeated .org.phenopackets.schema.v1.core.HtsFile hts_files = 4;
inline int Cohort::hts_files_size() const {
return hts_files_.size();
}
inline ::org::phenopackets::schema::v1::core::HtsFile* Cohort::mutable_hts_files(int index) {
// @@protoc_insertion_point(field_mutable:org.phenopackets.schema.v1.Cohort.hts_files)
return hts_files_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >*
Cohort::mutable_hts_files() {
// @@protoc_insertion_point(field_mutable_list:org.phenopackets.schema.v1.Cohort.hts_files)
return &hts_files_;
}
inline const ::org::phenopackets::schema::v1::core::HtsFile& Cohort::hts_files(int index) const {
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Cohort.hts_files)
return hts_files_.Get(index);
}
inline ::org::phenopackets::schema::v1::core::HtsFile* Cohort::add_hts_files() {
// @@protoc_insertion_point(field_add:org.phenopackets.schema.v1.Cohort.hts_files)
return hts_files_.Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::org::phenopackets::schema::v1::core::HtsFile >&
Cohort::hts_files() const {
// @@protoc_insertion_point(field_list:org.phenopackets.schema.v1.Cohort.hts_files)
return hts_files_;
}
// .org.phenopackets.schema.v1.core.MetaData meta_data = 5;
inline bool Cohort::has_meta_data() const {
return this != internal_default_instance() && meta_data_ != nullptr;
}
inline const ::org::phenopackets::schema::v1::core::MetaData& Cohort::meta_data() const {
const ::org::phenopackets::schema::v1::core::MetaData* p = meta_data_;
// @@protoc_insertion_point(field_get:org.phenopackets.schema.v1.Cohort.meta_data)
return p != nullptr ? *p : *reinterpret_cast(
&::org::phenopackets::schema::v1::core::_MetaData_default_instance_);
}
inline ::org::phenopackets::schema::v1::core::MetaData* Cohort::release_meta_data() {
// @@protoc_insertion_point(field_release:org.phenopackets.schema.v1.Cohort.meta_data)
::org::phenopackets::schema::v1::core::MetaData* temp = meta_data_;
meta_data_ = nullptr;
return temp;
}
inline ::org::phenopackets::schema::v1::core::MetaData* Cohort::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.Cohort.meta_data)
return meta_data_;
}
inline void Cohort::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.Cohort.meta_data)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace v1
} // namespace schema
} // namespace phenopackets
} // namespace org
// @@protoc_insertion_point(global_scope)
#include
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_phenopackets_2eproto