All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.phenopackets.schema.v1.core.Sex Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: base.proto

package org.phenopackets.schema.v1.core;

/**
 * 
 * Sex of an individual
 * FHIR mapping: AdministrativeGender (https://www.hl7.org/fhir/codesystem-administrative-gender.html)
 * 
* * Protobuf enum {@code org.phenopackets.schema.v1.core.Sex} */ public enum Sex implements com.google.protobuf.ProtocolMessageEnum { /** *
   * Not assessed / available.
   * 
* * UNKNOWN_SEX = 0; */ UNKNOWN_SEX(0), /** *
   * Female
   * 
* * FEMALE = 1; */ FEMALE(1), /** *
   * Male
   * 
* * MALE = 2; */ MALE(2), /** *
   * It is not possible, to accurately assess the applicability of MALE/FEMALE.
   * 
* * OTHER_SEX = 3; */ OTHER_SEX(3), UNRECOGNIZED(-1), ; /** *
   * Not assessed / available.
   * 
* * UNKNOWN_SEX = 0; */ public static final int UNKNOWN_SEX_VALUE = 0; /** *
   * Female
   * 
* * FEMALE = 1; */ public static final int FEMALE_VALUE = 1; /** *
   * Male
   * 
* * MALE = 2; */ public static final int MALE_VALUE = 2; /** *
   * It is not possible, to accurately assess the applicability of MALE/FEMALE.
   * 
* * OTHER_SEX = 3; */ public static final int OTHER_SEX_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Sex valueOf(int value) { return forNumber(value); } public static Sex forNumber(int value) { switch (value) { case 0: return UNKNOWN_SEX; case 1: return FEMALE; case 2: return MALE; case 3: return OTHER_SEX; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Sex> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Sex findValueByNumber(int number) { return Sex.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.phenopackets.schema.v1.core.Base.getDescriptor().getEnumTypes().get(0); } private static final Sex[] VALUES = values(); public static Sex valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Sex(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:org.phenopackets.schema.v1.core.Sex) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy