# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: demographics.proto require 'google/protobuf' require 'google/protobuf/timestamp_pb' require 'address_pb' require 'name_pb' require 'phone_number_pb' descriptor_data = "\n\x12\x64\x65mographics.proto\x12\x0fprimary.connect\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\raddress.proto\x1a\nname.proto\x1a\x12phone_number.proto\"\xf3\x19\n\x0c\x44\x65mographics\x12#\n\x04name\x18\x01 \x01(\x0b\x32\x15.primary.connect.Name\x12\x0b\n\x03\x64ob\x18\x02 \x01(\t\x12\x0b\n\x03ssn\x18\x03 \x01(\t\x12.\n\x03sex\x18\x04 \x01(\x0e\x32!.primary.connect.Demographics.Sex\x12\x34\n\x06gender\x18\x05 \x01(\x0e\x32$.primary.connect.Demographics.Gender\x12K\n\x12sexual_orientation\x18\x06 \x01(\x0e\x32/.primary.connect.Demographics.SexualOrientation\x12\x31\n\x05races\x18\x07 \x03(\x0e\x32\".primary.connect.Demographics.Race\x12>\n\x0crace_details\x18\x08 \x03(\x0e\x32(.primary.connect.Demographics.RaceDetail\x12:\n\tethnicity\x18\t \x01(\x0e\x32\'.primary.connect.Demographics.Ethnicity\x12G\n\x10\x65thnicity_detail\x18\n \x03(\x0e\x32-.primary.connect.Demographics.EthnicityDetail\x12\x43\n\x0emarital_status\x18\x0b \x01(\x0e\x32+.primary.connect.Demographics.MaritalStatus\x12\x13\n\x0bis_deceased\x18\x0c \x01(\x08\x12\x33\n\x0f\x64\x65\x61th_date_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\rphone_numbers\x18\x0e \x03(\x0b\x32\x1c.primary.connect.PhoneNumber\x12\x17\n\x0f\x65mail_addresses\x18\x0f \x03(\t\x12\x15\n\rlanguage_code\x18\x10 \x01(\t\x12\x14\n\x0c\x63itizenships\x18\x11 \x03(\t\x12)\n\x07\x61\x64\x64ress\x18\x12 \x01(\x0b\x32\x18.primary.connect.Address\"\xc1\x02\n\x04Race\x12\x10\n\x0cRACE_UNKNOWN\x10\x00\x12)\n%RACE_AMERICAN_INDIAN_OR_ALASKA_NATIVE\x10\x01\x12\x0e\n\nRACE_ASIAN\x10\x02\x12\"\n\x1eRACE_BLACK_OR_AFRICAN_AMERICAN\x10\x03\x12\x32\n.RACE_NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER\x10\x04\x12\x0e\n\nRACE_OTHER\x10\x05\x12\x0e\n\nRACE_WHITE\x10\x06\x12\x1f\n\x1bRACE_PREFER_NOT_TO_DISCLOSE\x10\x07\x12(\n$RACE_MIDDLE_EASTERN_OR_NORTH_AFRICAN\x10\x08\x12)\n%RACE_SOUTH_OR_CENTRAL_AMERICAN_INDIAN\x10\t\"\xe1\x05\n\nRaceDetail\x12\x17\n\x13RACE_DETAIL_UNKNOWN\x10\x00\x12\x1c\n\x18RACE_DETAIL_ASIAN_INDIAN\x10\x01\x12\x17\n\x13RACE_DETAIL_CHINESE\x10\x02\x12\x19\n\x15RACE_DETAIL_CAMBODIAN\x10\x03\x12\x18\n\x14RACE_DETAIL_FILIPINO\x10\x04\x12\x18\n\x14RACE_DETAIL_JAPANESE\x10\x05\x12\x16\n\x12RACE_DETAIL_KOREAN\x10\x06\x12\x17\n\x13RACE_DETAIL_LAOTIAN\x10\x07\x12\x1a\n\x16RACE_DETAIL_VIETNAMESE\x10\x08\x12\x1b\n\x17RACE_DETAIL_OTHER_ASIAN\x10\t\x12\x1f\n\x1bRACE_DETAIL_NATIVE_HAWAIIAN\x10\n\x12#\n\x1fRACE_DETAIL_GUAMIAN_OR_CHAMORRO\x10\x0b\x12\x16\n\x12RACE_DETAIL_SAMOAN\x10\x0c\x12&\n\"RACE_DETAIL_OTHER_PACIFIC_ISLANDER\x10\r\x12&\n\"RACE_DETAIL_PREFER_NOT_TO_DISCLOSE\x10\x0e\x12\x1b\n\x17RACE_DETAIL_BANGLADESHI\x10\x0f\x12\x15\n\x11RACE_DETAIL_HMONG\x10\x10\x12\x1a\n\x16RACE_DETAIL_INDONESIAN\x10\x11\x12\x19\n\x15RACE_DETAIL_MALAYSIAN\x10\x12\x12\x19\n\x15RACE_DETAIL_PAKISTANI\x10\x13\x12\x1a\n\x16RACE_DETAIL_SRI_LANKAN\x10\x14\x12\x14\n\x10RACE_DETAIL_THAI\x10\x15\x12\x19\n\x15RACE_DETAIL_TAIWANESE\x10\x16\x12\x19\n\x15RACE_DETAIL_GUAMANIAN\x10\x17\x12\x16\n\x12RACE_DETAIL_FIJIAN\x10\x18\x12\x16\n\x12RACE_DETAIL_TONGAN\x10\x19\"\x8d\x04\n\rMaritalStatus\x12\x1a\n\x16MARITAL_STATUS_UNKNOWN\x10\x00\x12\x1c\n\x18MARITAL_STATUS_SEPARATED\x10\x01\x12\x1c\n\x18MARITAL_STATUS_UNMARRIED\x10\x02\x12\x1d\n\x19MARITAL_STATUS_COMMON_LAW\x10\x03\x12\x1b\n\x17MARITAL_STATUS_DIVORCED\x10\x04\x12$\n MARITAL_STATUS_LEGALLY_SEPARATED\x10\x05\x12\"\n\x1eMARITAL_STATUS_LIVING_TOGETHER\x10\x06\x12 \n\x1cMARITAL_STATUS_INTERLOCUTORY\x10\x07\x12\x1a\n\x16MARITAL_STATUS_MARRIED\x10\x08\x12\x1b\n\x17MARITAL_STATUS_ANNULLED\x10\t\x12\x18\n\x14MARITAL_STATUS_OTHER\x10\n\x12#\n\x1fMARITAL_STATUS_DOMESTIC_PARTNER\x10\x0b\x12.\n*MARITAL_STATUS_REGISTERED_DOMESTIC_PARTNER\x10\x0c\x12\x19\n\x15MARITAL_STATUS_SINGLE\x10\r\x12\x1d\n\x19MARITAL_STATUS_UNREPORTED\x10\x0e\x12\x1a\n\x16MARITAL_STATUS_WIDOWED\x10\x0f\"w\n\x03Sex\x12\x0f\n\x0bSEX_UNKNOWN\x10\x00\x12\x0e\n\nSEX_FEMALE\x10\x01\x12\x0c\n\x08SEX_MALE\x10\x02\x12\r\n\tSEX_OTHER\x10\x03\x12\x12\n\x0eSEX_NON_BINARY\x10\x04\x12\x1e\n\x1aSEX_PREFER_NOT_TO_DISCLOSE\x10\x05\"\xdd\x01\n\x06Gender\x12\x12\n\x0eGENDER_UNKNOWN\x10\x00\x12\x11\n\rGENDER_FEMALE\x10\x01\x12\x0f\n\x0bGENDER_MALE\x10\x02\x12\x10\n\x0cGENDER_OTHER\x10\x03\x12\x15\n\x11GENDER_NON_BINARY\x10\x04\x12\x1b\n\x17GENDER_TRANSGENDER_MALE\x10\x05\x12\x1d\n\x19GENDER_TRANSGENDER_FEMALE\x10\x06\x12!\n\x1dGENDER_PREFER_NOT_TO_DISCLOSE\x10\x07\x12\x13\n\x0fGENDER_INTERSEX\x10\x08\"\xdc\x01\n\x11SexualOrientation\x12\x17\n\x13ORIENTATION_UNKNOWN\x10\x00\x12\x1a\n\x16ORIENTATION_HOMOSEXUAL\x10\x01\x12\x1c\n\x18ORIENTATION_HETEROSEXUAL\x10\x02\x12\x18\n\x14ORIENTATION_BISEXUAL\x10\x03\x12\x1b\n\x17ORIENTATION_QUESTIONING\x10\x04\x12\x15\n\x11ORIENTATION_OTHER\x10\x05\x12&\n\"ORIENTATION_PREFER_NOT_TO_DISCLOSE\x10\x06\"|\n\tEthnicity\x12\x15\n\x11\x45THNICITY_UNKNOWN\x10\x00\x12\x16\n\x12\x45THNICITY_HISPANIC\x10\x01\x12\x1a\n\x16\x45THNICITY_NON_HISPANIC\x10\x02\x12$\n ETHNICITY_PREFER_NOT_TO_DISCLOSE\x10\x03\"\xd5\x01\n\x0f\x45thnicityDetail\x12\x1c\n\x18\x45THNICITY_DETAIL_UNKNOWN\x10\x00\x12\x1c\n\x18\x45THNICITY_DETAIL_MEXICAN\x10\x01\x12!\n\x1d\x45THNICITY_DETAIL_PUERTO_RICAN\x10\x02\x12\x1a\n\x16\x45THNICITY_DETAIL_CUBAN\x10\x03\x12\x1a\n\x16\x45THNICITY_DETAIL_OTHER\x10\x04\x12+\n\'ETHNICITY_DETAIL_PREFER_NOT_TO_DISCLOSE\x10\x05\x42\x11Z\x0fprimary.connectb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) parsed.clear_dependency serialized = parsed.class.encode(parsed) file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["primary.connect.Name", "name.proto"], ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], ["primary.connect.PhoneNumber", "phone_number.proto"], ["primary.connect.Address", "address.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor if import_file.name != expected_filename warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end end warn "Each proto file must use a consistent fully-qualified name." warn "This will become an error in the next major version." end module Primary module Connect Demographics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics").msgclass Demographics::Race = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.Race").enummodule Demographics::RaceDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.RaceDetail").enummodule Demographics::MaritalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.MaritalStatus").enummodule Demographics::Sex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.Sex").enummodule Demographics::Gender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.Gender").enummodule Demographics::SexualOrientation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.SexualOrientation").enummodule Demographics::Ethnicity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.Ethnicity").enummodule Demographics::EthnicityDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Demographics.EthnicityDetail").enummodule end end