primary_connect_proto 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc3e2f239d0af9029f897cf16417f877af8f3767d0ffc8bda369582d4342baed
4
- data.tar.gz: 940221f963643d9fef719f25f4139e547a23ffa3df3a4859c215246a4710b4c2
3
+ metadata.gz: ba4cda9699668c4a063d478581ce5cb99723e575768c869e35414665db0a704f
4
+ data.tar.gz: 7f6f4a4d9fac23061fee7d1bbca7b7b755394c19d6476a6fa62b9ab36f3e43c6
5
5
  SHA512:
6
- metadata.gz: 7ab6c8ecbc9597ee582f1dbcb2e7188763a4dbf730da5bc55eaa156032ad59425963fec211e020c1cb9aee2593264f7d2bccc788846349e492bc2fbd83f147a0
7
- data.tar.gz: 1f3a6cd88ba1a0b972888290e90a87cca6b5394f19de6a807d7bf6eb366f159744623b0a41dffdeb31ee744fc1a075db36f4070eed24283d3dba2598b6f947da
6
+ metadata.gz: 3a865115fef7476f4c1f56b86c224c02faa60714d6356966971fc9bf370b1597da71b07af2f008e4688839c964a1b91b5c835a82e8bcaaf8cb6edc450837cf2b
7
+ data.tar.gz: 58e0ef52cd6472d4dcd11b5c9c0fb4630d270d72dcb9345589f4fe45846d5b78d54569a0e97c491668e29fafb0d5ffec2dd5b7e8eee631c4b2b7b3f232a33e43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.23.0
4
+
5
+ -- Update `Demographics.RaceDetail` enum with more options
6
+
3
7
  ## 0.22.0
4
8
 
5
9
  - Added `Meta.Provenances[]`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- primary_connect_proto (0.22.0)
4
+ primary_connect_proto (0.23.0)
5
5
  google-protobuf (~> 3.22.0)
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  byebug (11.1.3)
12
12
  coderay (1.1.3)
13
13
  diff-lcs (1.4.4)
14
- google-protobuf (3.22.5)
14
+ google-protobuf (3.22.5-arm64-darwin)
15
15
  jaro_winkler (1.5.4)
16
16
  method_source (1.0.0)
17
17
  parallel (1.21.0)
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ namespace :build do
6
6
  def compile(src_directory, path)
7
7
  print "Compiling #{path}"
8
8
  protoc_version = `protoc --version`.split(' ').last
9
- raise RuntimeError, "Please use protoc v3.19.x" unless protoc_version =~ /^3\.21\.\d+$/
9
+ raise RuntimeError, "Please use protoc 24.4" unless protoc_version =~ /24\.\d+$/
10
10
 
11
11
  `protoc --proto_path=#{src_directory} --ruby_out=lib/connect_proto/build #{path}`
12
12
  puts ' - done' if $?.exitstatus.zero?
@@ -1,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: address.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("address.proto", :syntax => :proto3) do
8
- add_message "primary.connect.Address" do
9
- optional :street_address_1, :string, 1
10
- optional :street_address_2, :string, 2
11
- optional :city, :string, 3
12
- optional :state_code, :string, 4
13
- optional :zip, :string, 5
14
- optional :county, :string, 6
15
- optional :country_code, :string, 7
16
- optional :time_zone, :string, 8
7
+
8
+ descriptor_data = "\n\raddress.proto\x12\x0fprimary.connect\"\xa5\x01\n\x07\x41\x64\x64ress\x12\x18\n\x10street_address_1\x18\x01 \x01(\t\x12\x18\n\x10street_address_2\x18\x02 \x01(\t\x12\x0c\n\x04\x63ity\x18\x03 \x01(\t\x12\x12\n\nstate_code\x18\x04 \x01(\t\x12\x0b\n\x03zip\x18\x05 \x01(\t\x12\x0e\n\x06\x63ounty\x18\x06 \x01(\t\x12\x14\n\x0c\x63ountry_code\x18\x07 \x01(\t\x12\x11\n\ttime_zone\x18\x08 \x01(\tB\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
28
  end
18
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
19
32
  end
20
33
 
21
34
  module Primary
@@ -1,16 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: coded_value.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("coded_value.proto", :syntax => :proto3) do
8
- add_message "primary.connect.CodedValue" do
9
- optional :value, :string, 1
10
- optional :code_set, :string, 2
11
- optional :description, :string, 3
7
+
8
+ descriptor_data = "\n\x11\x63oded_value.proto\x12\x0fprimary.connect\"B\n\nCodedValue\x12\r\n\x05value\x18\x01 \x01(\t\x12\x10\n\x08\x63ode_set\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
12
28
  end
13
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
14
32
  end
15
33
 
16
34
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: demographics.proto
3
4
 
@@ -8,118 +9,35 @@ require 'address_pb'
8
9
  require 'name_pb'
9
10
  require 'phone_number_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("demographics.proto", :syntax => :proto3) do
13
- add_message "primary.connect.Demographics" do
14
- optional :name, :message, 1, "primary.connect.Name"
15
- optional :dob, :string, 2
16
- optional :ssn, :string, 3
17
- optional :sex, :enum, 4, "primary.connect.Demographics.Sex"
18
- optional :gender, :enum, 5, "primary.connect.Demographics.Gender"
19
- optional :sexual_orientation, :enum, 6, "primary.connect.Demographics.SexualOrientation"
20
- repeated :races, :enum, 7, "primary.connect.Demographics.Race"
21
- repeated :race_details, :enum, 8, "primary.connect.Demographics.RaceDetail"
22
- optional :ethnicity, :enum, 9, "primary.connect.Demographics.Ethnicity"
23
- repeated :ethnicity_detail, :enum, 10, "primary.connect.Demographics.EthnicityDetail"
24
- optional :marital_status, :enum, 11, "primary.connect.Demographics.MaritalStatus"
25
- optional :is_deceased, :bool, 12
26
- optional :death_date_time, :message, 13, "google.protobuf.Timestamp"
27
- repeated :phone_numbers, :message, 14, "primary.connect.PhoneNumber"
28
- repeated :email_addresses, :string, 15
29
- optional :language_code, :string, 16
30
- repeated :citizenships, :string, 17
31
- optional :address, :message, 18, "primary.connect.Address"
32
- end
33
- add_enum "primary.connect.Demographics.Race" do
34
- value :RACE_UNKNOWN, 0
35
- value :RACE_AMERICAN_INDIAN_OR_ALASKA_NATIVE, 1
36
- value :RACE_ASIAN, 2
37
- value :RACE_BLACK_OR_AFRICAN_AMERICAN, 3
38
- value :RACE_NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER, 4
39
- value :RACE_OTHER, 5
40
- value :RACE_WHITE, 6
41
- value :RACE_PREFER_NOT_TO_DISCLOSE, 7
42
- value :RACE_MIDDLE_EASTERN_OR_NORTH_AFRICAN, 8
43
- value :RACE_SOUTH_OR_CENTRAL_AMERICAN_INDIAN, 9
44
- end
45
- add_enum "primary.connect.Demographics.RaceDetail" do
46
- value :RACE_DETAIL_UNKNOWN, 0
47
- value :RACE_DETAIL_ASIAN_INDIAN, 1
48
- value :RACE_DETAIL_CHINESE, 2
49
- value :RACE_DETAIL_CAMBODIAN, 3
50
- value :RACE_DETAIL_FILIPINO, 4
51
- value :RACE_DETAIL_JAPANESE, 5
52
- value :RACE_DETAIL_KOREAN, 6
53
- value :RACE_DETAIL_LAOTIAN, 7
54
- value :RACE_DETAIL_VIETNAMESE, 8
55
- value :RACE_DETAIL_OTHER_ASIAN, 9
56
- value :RACE_DETAIL_NATIVE_HAWAIIAN, 10
57
- value :RACE_DETAIL_GUAMIAN_OR_CHAMORRO, 11
58
- value :RACE_DETAIL_SAMOAN, 12
59
- value :RACE_DETAIL_OTHER_PACIFIC_ISLANDER, 13
60
- value :RACE_DETAIL_PREFER_NOT_TO_DISCLOSE, 14
61
- end
62
- add_enum "primary.connect.Demographics.MaritalStatus" do
63
- value :MARITAL_STATUS_UNKNOWN, 0
64
- value :MARITAL_STATUS_SEPARATED, 1
65
- value :MARITAL_STATUS_UNMARRIED, 2
66
- value :MARITAL_STATUS_COMMON_LAW, 3
67
- value :MARITAL_STATUS_DIVORCED, 4
68
- value :MARITAL_STATUS_LEGALLY_SEPARATED, 5
69
- value :MARITAL_STATUS_LIVING_TOGETHER, 6
70
- value :MARITAL_STATUS_INTERLOCUTORY, 7
71
- value :MARITAL_STATUS_MARRIED, 8
72
- value :MARITAL_STATUS_ANNULLED, 9
73
- value :MARITAL_STATUS_OTHER, 10
74
- value :MARITAL_STATUS_DOMESTIC_PARTNER, 11
75
- value :MARITAL_STATUS_REGISTERED_DOMESTIC_PARTNER, 12
76
- value :MARITAL_STATUS_SINGLE, 13
77
- value :MARITAL_STATUS_UNREPORTED, 14
78
- value :MARITAL_STATUS_WIDOWED, 15
79
- end
80
- add_enum "primary.connect.Demographics.Sex" do
81
- value :SEX_UNKNOWN, 0
82
- value :SEX_FEMALE, 1
83
- value :SEX_MALE, 2
84
- value :SEX_OTHER, 3
85
- value :SEX_NON_BINARY, 4
86
- value :SEX_PREFER_NOT_TO_DISCLOSE, 5
87
- end
88
- add_enum "primary.connect.Demographics.Gender" do
89
- value :GENDER_UNKNOWN, 0
90
- value :GENDER_FEMALE, 1
91
- value :GENDER_MALE, 2
92
- value :GENDER_OTHER, 3
93
- value :GENDER_NON_BINARY, 4
94
- value :GENDER_TRANSGENDER_MALE, 5
95
- value :GENDER_TRANSGENDER_FEMALE, 6
96
- value :GENDER_PREFER_NOT_TO_DISCLOSE, 7
97
- value :GENDER_INTERSEX, 8
98
- end
99
- add_enum "primary.connect.Demographics.SexualOrientation" do
100
- value :ORIENTATION_UNKNOWN, 0
101
- value :ORIENTATION_HOMOSEXUAL, 1
102
- value :ORIENTATION_HETEROSEXUAL, 2
103
- value :ORIENTATION_BISEXUAL, 3
104
- value :ORIENTATION_QUESTIONING, 4
105
- value :ORIENTATION_OTHER, 5
106
- value :ORIENTATION_PREFER_NOT_TO_DISCLOSE, 6
107
- end
108
- add_enum "primary.connect.Demographics.Ethnicity" do
109
- value :ETHNICITY_UNKNOWN, 0
110
- value :ETHNICITY_HISPANIC, 1
111
- value :ETHNICITY_NON_HISPANIC, 2
112
- value :ETHNICITY_PREFER_NOT_TO_DISCLOSE, 3
113
- end
114
- add_enum "primary.connect.Demographics.EthnicityDetail" do
115
- value :ETHNICITY_DETAIL_UNKNOWN, 0
116
- value :ETHNICITY_DETAIL_MEXICAN, 1
117
- value :ETHNICITY_DETAIL_PUERTO_RICAN, 2
118
- value :ETHNICITY_DETAIL_CUBAN, 3
119
- value :ETHNICITY_DETAIL_OTHER, 4
120
- value :ETHNICITY_DETAIL_PREFER_NOT_TO_DISCLOSE, 5
12
+
13
+ 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"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["primary.connect.Name", "name.proto"],
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["primary.connect.PhoneNumber", "phone_number.proto"],
31
+ ["primary.connect.Address", "address.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
121
37
  end
122
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
123
41
  end
124
42
 
125
43
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: device.proto
3
4
 
@@ -8,19 +9,35 @@ require 'address_pb'
8
9
  require 'identifier_pb'
9
10
  require 'location_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("device.proto", :syntax => :proto3) do
13
- add_message "primary.connect.Device" do
14
- repeated :identifiers, :message, 1, "primary.connect.Identifier"
15
- optional :manufacturer, :string, 2
16
- optional :model_number, :string, 3
17
- optional :serial_number, :string, 4
18
- optional :address, :message, 5, "primary.connect.Address"
19
- optional :location, :message, 6, "primary.connect.Location"
20
- map :config, :string, :message, 7, "google.protobuf.Value"
21
- optional :model_name, :string, 8
12
+
13
+ descriptor_data = "\n\x0c\x64\x65vice.proto\x12\x0fprimary.connect\x1a\x1cgoogle/protobuf/struct.proto\x1a\raddress.proto\x1a\x10identifier.proto\x1a\x0elocation.proto\"\xe5\x02\n\x06\x44\x65vice\x12\x30\n\x0bidentifiers\x18\x01 \x03(\x0b\x32\x1b.primary.connect.Identifier\x12\x14\n\x0cmanufacturer\x18\x02 \x01(\t\x12\x14\n\x0cmodel_number\x18\x03 \x01(\t\x12\x15\n\rserial_number\x18\x04 \x01(\t\x12)\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32\x18.primary.connect.Address\x12+\n\x08location\x18\x06 \x01(\x0b\x32\x19.primary.connect.Location\x12\x33\n\x06\x63onfig\x18\x07 \x03(\x0b\x32#.primary.connect.Device.ConfigEntry\x12\x12\n\nmodel_name\x18\x08 \x01(\t\x1a\x45\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x42\x11Z\x0fprimary.connectb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["primary.connect.Identifier", "identifier.proto"],
29
+ ["primary.connect.Address", "address.proto"],
30
+ ["primary.connect.Location", "location.proto"],
31
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
22
37
  end
23
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
24
41
  end
25
42
 
26
43
  module Primary
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: identifier.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("identifier.proto", :syntax => :proto3) do
8
- add_message "primary.connect.Identifier" do
9
- optional :id, :string, 1
10
- optional :id_type, :string, 2
7
+
8
+ descriptor_data = "\n\x10identifier.proto\x12\x0fprimary.connect\")\n\nIdentifier\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07id_type\x18\x02 \x01(\tB\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Primary
@@ -1,19 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: location.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("location.proto", :syntax => :proto3) do
8
- add_message "primary.connect.Location" do
9
- optional :type, :string, 1
10
- optional :facility, :string, 2
11
- optional :department, :string, 3
12
- optional :room, :string, 4
13
- optional :bed, :string, 5
14
- optional :floor, :string, 6
7
+
8
+ descriptor_data = "\n\x0elocation.proto\x12\x0fprimary.connect\"h\n\x08Location\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x10\n\x08\x66\x61\x63ility\x18\x02 \x01(\t\x12\x12\n\ndepartment\x18\x03 \x01(\t\x12\x0c\n\x04room\x18\x04 \x01(\t\x12\x0b\n\x03\x62\x65\x64\x18\x05 \x01(\t\x12\r\n\x05\x66loor\x18\x06 \x01(\tB\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
15
28
  end
16
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
17
32
  end
18
33
 
19
34
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: measurement.proto
3
4
 
@@ -7,19 +8,34 @@ require 'device_pb'
7
8
  require 'meta_pb'
8
9
  require 'result_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("measurement.proto", :syntax => :proto3) do
12
- add_message "primary.connect.Measurement" do
13
- optional :meta, :message, 1, "primary.connect.Meta"
14
- optional :subject, :message, 2, "primary.connect.Measurement.Subject"
15
- repeated :metrics, :message, 3, "primary.connect.Result"
16
- end
17
- add_message "primary.connect.Measurement.Subject" do
18
- oneof :subject do
19
- optional :device, :message, 1, "primary.connect.Device"
20
- end
11
+
12
+ descriptor_data = "\n\x11measurement.proto\x12\x0fprimary.connect\x1a\x0c\x64\x65vice.proto\x1a\nmeta.proto\x1a\x0cresult.proto\"\xd4\x01\n\x0bMeasurement\x12#\n\x04meta\x18\x01 \x01(\x0b\x32\x15.primary.connect.Meta\x12\x35\n\x07subject\x18\x02 \x01(\x0b\x32$.primary.connect.Measurement.Subject\x12(\n\x07metrics\x18\x03 \x03(\x0b\x32\x17.primary.connect.Result\x1a?\n\x07Subject\x12)\n\x06\x64\x65vice\x18\x01 \x01(\x0b\x32\x17.primary.connect.DeviceH\x00\x42\t\n\x07subjectB\x11Z\x0fprimary.connectb\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["primary.connect.Meta", "meta.proto"],
28
+ ["primary.connect.Result", "result.proto"],
29
+ ["primary.connect.Device", "device.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
21
35
  end
22
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
23
39
  end
24
40
 
25
41
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: medication_administration.proto
3
4
 
@@ -8,33 +9,35 @@ require 'coded_value_pb'
8
9
  require 'identifier_pb'
9
10
  require 'provider_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("medication_administration.proto", :syntax => :proto3) do
13
- add_message "primary.connect.MedicationAdministration" do
14
- optional :identifier, :message, 1, "primary.connect.Identifier"
15
- repeated :administration_codes, :message, 2, "primary.connect.CodedValue"
16
- optional :administration_start_time, :message, 3, "google.protobuf.Timestamp"
17
- optional :administration_end_time, :message, 4, "google.protobuf.Timestamp"
18
- optional :medication, :message, 5, "primary.connect.MedicationAdministration.Medication"
19
- optional :dosage, :message, 6, "primary.connect.MedicationAdministration.Dosage"
20
- optional :refusal_reason, :message, 7, "primary.connect.CodedValue"
21
- optional :administering_provider, :message, 8, "primary.connect.Provider"
22
- end
23
- add_message "primary.connect.MedicationAdministration.Medication" do
24
- optional :lot_number, :string, 1
25
- optional :expiration_date, :message, 2, "google.protobuf.Timestamp"
26
- optional :manufacturer, :message, 3, "primary.connect.CodedValue"
27
- end
28
- add_message "primary.connect.MedicationAdministration.Dosage" do
29
- optional :site, :message, 1, "primary.connect.CodedValue"
30
- optional :route, :message, 2, "primary.connect.CodedValue"
31
- optional :method, :message, 3, "primary.connect.CodedValue"
32
- optional :dose, :string, 4
33
- optional :units, :message, 5, "primary.connect.CodedValue"
34
- optional :series_number, :string, 6
35
- optional :series_recommended, :string, 7
12
+
13
+ descriptor_data = "\n\x1fmedication_administration.proto\x12\x0fprimary.connect\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x11\x63oded_value.proto\x1a\x10identifier.proto\x1a\x0eprovider.proto\"\x85\x07\n\x18MedicationAdministration\x12/\n\nidentifier\x18\x01 \x01(\x0b\x32\x1b.primary.connect.Identifier\x12\x39\n\x14\x61\x64ministration_codes\x18\x02 \x03(\x0b\x32\x1b.primary.connect.CodedValue\x12=\n\x19\x61\x64ministration_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17\x61\x64ministration_end_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\nmedication\x18\x05 \x01(\x0b\x32\x34.primary.connect.MedicationAdministration.Medication\x12@\n\x06\x64osage\x18\x06 \x01(\x0b\x32\x30.primary.connect.MedicationAdministration.Dosage\x12\x33\n\x0erefusal_reason\x18\x07 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\x39\n\x16\x61\x64ministering_provider\x18\x08 \x01(\x0b\x32\x19.primary.connect.Provider\x1a\x88\x01\n\nMedication\x12\x12\n\nlot_number\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x0cmanufacturer\x18\x03 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x1a\xf9\x01\n\x06\x44osage\x12)\n\x04site\x18\x01 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12*\n\x05route\x18\x02 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12+\n\x06method\x18\x03 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\x0c\n\x04\x64ose\x18\x04 \x01(\t\x12*\n\x05units\x18\x05 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\x15\n\rseries_number\x18\x06 \x01(\t\x12\x1a\n\x12series_recommended\x18\x07 \x01(\tB\x11Z\x0fprimary.connectb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["primary.connect.Identifier", "identifier.proto"],
29
+ ["primary.connect.CodedValue", "coded_value.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ["primary.connect.Provider", "provider.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
37
  end
37
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
38
41
  end
39
42
 
40
43
  module Primary