diff --git a/Package.resolved b/Package.resolved index ca6116b4..24db3b19 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "61d8aacb16c7a03dacafd8211476f27983fcc16b9cacad985296a457df03603c", + "originHash" : "fffba2c5c10f1881a989a6102834b6dc7f54d7945404196135c1de7b59c527ca", "pins" : [ { "identity" : "swift-algorithms", @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-argument-parser.git", "state" : { - "revision" : "41982a3656a71c768319979febd796c6fd111d5c", - "version" : "1.5.0" + "revision" : "309a47b2b1d9b5e991f36961c983ecec72275be3", + "version" : "1.6.1" } }, { @@ -24,8 +24,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-asn1.git", "state" : { - "revision" : "ae33e5941bb88d88538d0a6b19ca0b01e6c76dcf", - "version" : "1.3.1" + "revision" : "f70225981241859eb4aa1a18a75531d26637c8cc", + "version" : "1.4.0" } }, { @@ -33,8 +33,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-crypto.git", "state" : { - "revision" : "a6ce32a18b81b04ce7e897d1d98df6eb2da04786", - "version" : "3.12.2" + "revision" : "95ba0316a9b733e92bb6b071255ff46263bbe7dc", + "version" : "3.15.1" } }, { @@ -42,8 +42,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swiftlang/swift-docc-plugin", "state" : { - "revision" : "85e4bb4e1cd62cec64a4b8e769dcefdf0c5b9d64", - "version" : "1.4.3" + "revision" : "3e4f133a77e644a5812911a0513aeb7288b07d06", + "version" : "1.4.5" } }, { @@ -60,8 +60,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { - "revision" : "3d8596ed08bd13520157f0355e35caed215ffbfa", - "version" : "1.6.3" + "revision" : "ce592ae52f982c847a4efc0dd881cc9eb32d29f2", + "version" : "1.6.4" } }, { @@ -69,8 +69,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-numerics", "state" : { - "revision" : "e0ec0f5f3af6f3e4d5e7a19d2af26b481acb6ba8", - "version" : "1.0.3" + "revision" : "0c0290ff6b24942dadb83a929ffaaa1481df04a2", + "version" : "1.1.1" } }, { @@ -78,8 +78,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-protobuf", "state" : { - "revision" : "d72aed98f8253ec1aa9ea1141e28150f408cf17f", - "version" : "1.29.0" + "revision" : "2547102afd04fe49f1b286090f13ebce07284980", + "version" : "1.31.1" } } ], diff --git a/Package.swift b/Package.swift index 52d268a9..7dd64288 100644 --- a/Package.swift +++ b/Package.swift @@ -65,7 +65,7 @@ let package = Package( .package(url: "https://github.com/apple/swift-crypto.git", from: "3.10.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-numerics", from: "1.0.0"), - .package(url: "https://github.com/apple/swift-protobuf", from: "1.29.0"), // Keep version in sync with README + .package(url: "https://github.com/apple/swift-protobuf", from: "1.31.1"), // Keep version in sync with README .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0"), ], targets: [ diff --git a/README.md b/README.md index 243fc6de..90d62c80 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Developing Swift Homomorphic Encryption requires: * [Nick Lockwood SwiftFormat](https://github.com/nicklockwood/SwiftFormat), 0.55.5 * [pre-commit](https://pre-commit.com) * [swift-format](https://github.com/swiftlang/swift-format), 600.0.0 -* [swift-protobuf](https://github.com/apple/swift-protobuf), 1.29.0 +* [swift-protobuf](https://github.com/apple/swift-protobuf), 1.31.1 * [SwiftLint](https://github.com/realm/SwiftLint), 0.58.2 ### Building diff --git a/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_error_stddev.pb.swift b/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_error_stddev.pb.swift index cce40cc4..60320bf7 100644 --- a/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_error_stddev.pb.swift +++ b/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_error_stddev.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -73,7 +73,5 @@ public enum Apple_SwiftHomomorphicEncryption_V1_ErrorStdDev: SwiftProtobuf.Enum, // MARK: - Code below here is support for the SwiftProtobuf runtime. extension Apple_SwiftHomomorphicEncryption_V1_ErrorStdDev: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "ERROR_STD_DEV_STDDEV32"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0ERROR_STD_DEV_STDDEV32\0") } diff --git a/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_he.pb.swift b/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_he.pb.swift index ccb1cbc9..0979d454 100644 --- a/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_he.pb.swift +++ b/Sources/HomomorphicEncryptionProtobuf/generated/apple_swift_homomorphic_encryption_v1_he.pb.swift @@ -120,7 +120,7 @@ public enum Apple_SwiftHomomorphicEncryption_V1_HeScheme: SwiftProtobuf.Enum, Sw } /// A serialized `Plaintext`. -public struct Apple_SwiftHomomorphicEncryption_V1_SerializedPlaintext: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_V1_SerializedPlaintext: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -189,7 +189,7 @@ public struct Apple_SwiftHomomorphicEncryption_V1_SerializedCiphertext: Sendable } /// A serialized `Ciphertext` using a seed in place of the second polynomial. -public struct Apple_SwiftHomomorphicEncryption_V1_SerializedSeededCiphertext: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_V1_SerializedSeededCiphertext: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -206,7 +206,7 @@ public struct Apple_SwiftHomomorphicEncryption_V1_SerializedSeededCiphertext: @u } /// A serialized `Ciphertext` with all polynomials expanded. -public struct Apple_SwiftHomomorphicEncryption_V1_SerializedFullCiphertext: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_V1_SerializedFullCiphertext: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -292,7 +292,7 @@ public struct Apple_SwiftHomomorphicEncryption_V1_SerializedRelinKey: Sendable { } /// A serialized `SecretKey`. -public struct Apple_SwiftHomomorphicEncryption_V1_SerializedSecretKey: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_V1_SerializedSecretKey: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -405,25 +405,16 @@ public struct Apple_SwiftHomomorphicEncryption_V1_EncryptionParameters: Sendable fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.v1" extension Apple_SwiftHomomorphicEncryption_V1_SecurityLevel: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "SECURITY_LEVEL_UNSPECIFIED"), - 1: .same(proto: "SECURITY_LEVEL_QUANTUM128"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0SECURITY_LEVEL_UNSPECIFIED\0\u{1}SECURITY_LEVEL_QUANTUM128\0") } extension Apple_SwiftHomomorphicEncryption_V1_HeScheme: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "HE_SCHEME_UNSPECIFIED"), - 1: .same(proto: "HE_SCHEME_BFV"), - 2: .same(proto: "HE_SCHEME_BGV"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0HE_SCHEME_UNSPECIFIED\0\u{1}HE_SCHEME_BFV\0\u{1}HE_SCHEME_BGV\0") } extension Apple_SwiftHomomorphicEncryption_V1_SerializedPlaintext: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedPlaintext" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "poly"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}poly\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -453,9 +444,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedPlaintext: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_V1_SerializedCiphertextVec: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedCiphertextVec" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ciphertexts"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}ciphertexts\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -485,10 +474,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedCiphertextVec: SwiftProt extension Apple_SwiftHomomorphicEncryption_V1_SerializedCiphertext: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedCiphertext" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "seeded"), - 2: .same(proto: "full"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}seeded\0\u{1}full\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -555,10 +541,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedCiphertext: SwiftProtobu extension Apple_SwiftHomomorphicEncryption_V1_SerializedSeededCiphertext: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedSeededCiphertext" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "poly0"), - 2: .same(proto: "seed"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}poly0\0\u{1}seed\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -593,11 +576,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedSeededCiphertext: SwiftP extension Apple_SwiftHomomorphicEncryption_V1_SerializedFullCiphertext: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedFullCiphertext" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "polys"), - 2: .standard(proto: "skip_lsbs"), - 3: .standard(proto: "correction_factor"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}polys\0\u{3}skip_lsbs\0\u{3}correction_factor\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -637,9 +616,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedFullCiphertext: SwiftPro extension Apple_SwiftHomomorphicEncryption_V1_SerializedKeySwitchKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedKeySwitchKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "key_switch_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}key_switch_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -673,9 +650,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedKeySwitchKey: SwiftProto extension Apple_SwiftHomomorphicEncryption_V1_SerializedGaloisKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedGaloisKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "key_switch_keys"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}key_switch_keys\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -705,9 +680,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedGaloisKey: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_V1_SerializedRelinKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedRelinKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "relin_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}relin_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -741,9 +714,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedRelinKey: SwiftProtobuf. extension Apple_SwiftHomomorphicEncryption_V1_SerializedSecretKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedSecretKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "polys"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}polys\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -773,10 +744,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedSecretKey: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_V1_SerializedEvaluationKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedEvaluationKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "galois_key"), - 2: .standard(proto: "relin_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}galois_key\0\u{3}relin_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -815,11 +783,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_SerializedEvaluationKey: SwiftProt extension Apple_SwiftHomomorphicEncryption_V1_EvaluationKeyConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKeyConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "encryption_parameters"), - 2: .standard(proto: "galois_elements"), - 3: .standard(proto: "has_relin_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}encryption_parameters\0\u{3}galois_elements\0\u{3}has_relin_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -863,14 +827,7 @@ extension Apple_SwiftHomomorphicEncryption_V1_EvaluationKeyConfig: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_V1_EncryptionParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EncryptionParameters" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "polynomial_degree"), - 2: .standard(proto: "plaintext_modulus"), - 3: .standard(proto: "coefficient_moduli"), - 4: .standard(proto: "error_std_dev"), - 5: .standard(proto: "security_level"), - 6: .standard(proto: "he_scheme"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}polynomial_degree\0\u{3}plaintext_modulus\0\u{3}coefficient_moduli\0\u{3}error_std_dev\0\u{3}security_level\0\u{3}he_scheme\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_api.pb.swift b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_api.pb.swift index 1271ac3b..1c9783a7 100644 --- a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_api.pb.swift +++ b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_api.pb.swift @@ -36,7 +36,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Request for server side configurations. -public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigRequest: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigRequest: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -54,7 +54,7 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigRequest: @unchec } /// Usecase configuration. -public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Config: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Config: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -349,10 +349,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.api.pir. extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ConfigRequest" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "usecases"), - 2: .standard(proto: "existing_config_ids"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}usecases\0\u{3}existing_config_ids\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -387,11 +384,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigRequest: SwiftProtob extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Config: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Config" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "pir_config"), - 3: .standard(proto: "config_id"), - 4: .standard(proto: "reuse_existing_config"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}pir_config\0\u{4}\u{2}config_id\0\u{3}reuse_existing_config\0\u{c}\u{2}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -447,10 +440,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Config: SwiftProtobuf.Mess extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ConfigResponse" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "configs"), - 2: .standard(proto: "key_info"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}configs\0\u{3}key_info\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -485,9 +475,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_ConfigResponse: SwiftProto extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Requests: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Requests" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "requests"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}requests\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -517,9 +505,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Requests: SwiftProtobuf.Me extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Responses: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Responses" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "responses"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}responses\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -549,11 +535,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Responses: SwiftProtobuf.M extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Request" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "usecase"), - 2: .standard(proto: "pir_request"), - 4: .standard(proto: "oprf_request"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}usecase\0\u{3}pir_request\0\u{4}\u{2}oprf_request\0\u{c}\u{3}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -625,10 +607,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Request: SwiftProtobuf.Mes extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Response: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Response" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "pir_response"), - 3: .standard(proto: "oprf_response"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}pir_response\0\u{4}\u{2}oprf_response\0\u{c}\u{2}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -695,12 +674,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Response: SwiftProtobuf.Me extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Error" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "config_version_not_found"), - 2: .standard(proto: "evaluation_key_not_found"), - 3: .standard(proto: "invalid_request"), - 4: .standard(proto: "internal_error"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}config_version_not_found\0\u{3}evaluation_key_not_found\0\u{3}invalid_request\0\u{3}internal_error\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -801,9 +775,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Error: SwiftProtobuf.Messa extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Error.ConfigVersionNotFound: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = Apple_SwiftHomomorphicEncryption_Api_Pir_V1_Error.protoMessageName + ".ConfigVersionNotFound" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "config_response"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}config_response\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_pir.pb.swift b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_pir.pb.swift index 00fee844..0066cb54 100644 --- a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_pir.pb.swift +++ b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_pir.pb.swift @@ -215,7 +215,7 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRFixedShardConfig: S } /// PIR Request. -public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRRequest: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRRequest: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -303,7 +303,7 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRResponse: Sendable } /// PIR OPRF Request. -public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFRequest: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFRequest: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -320,7 +320,7 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFRequest: @unchecke } /// PIR OPRF Response. -public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFResponse: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFResponse: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -339,7 +339,7 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFResponse: @uncheck /// Stash of entries. /// /// Stash is meant to be used as temporary storage until we can update the processed database. -public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_StashOfEntries: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pir_V1_StashOfEntries: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -369,14 +369,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.api.pir. extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRShardConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRShardConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "num_entries"), - 2: .standard(proto: "entry_size"), - 3: .same(proto: "dimensions"), - 4: .standard(proto: "shard_id"), - 5: .standard(proto: "compress_vectorized_pir_response"), - 6: .standard(proto: "vectorized_pir_internal_batching_size"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}num_entries\0\u{3}entry_size\0\u{1}dimensions\0\u{3}shard_id\0\u{3}compress_vectorized_pir_response\0\u{3}vectorized_pir_internal_batching_size\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -435,15 +428,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRShardConfig: SwiftProto extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "encryption_parameters"), - 2: .standard(proto: "shard_configs"), - 3: .standard(proto: "keyword_pir_params"), - 4: .same(proto: "algorithm"), - 5: .standard(proto: "batch_size"), - 6: .standard(proto: "evaluation_key_config_hash"), - 10: .standard(proto: "pir_shard_configs"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}encryption_parameters\0\u{3}shard_configs\0\u{3}keyword_pir_params\0\u{1}algorithm\0\u{3}batch_size\0\u{3}evaluation_key_config_hash\0\u{4}\u{4}pir_shard_configs\0\u{c}\u{7}\u{1}\u{c}\u{8}\u{1}\u{c}\u{9}\u{1}") fileprivate class _StorageClass { var _encryptionParameters: HomomorphicEncryptionProtobuf.Apple_SwiftHomomorphicEncryption_V1_EncryptionParameters? = nil @@ -454,15 +439,11 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRConfig: SwiftProtobuf.M var _evaluationKeyConfigHash: Data = Data() var _pirShardConfigs: Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRShardConfigs? = nil - #if swift(>=5.10) // This property is used as the initial default value for new instances of the type. // The type itself is protecting the reference to its storage via CoW semantics. // This will force a copy to be made of this reference when the first mutation occurs; // hence, it is safe to mark this as `nonisolated(unsafe)`. static nonisolated(unsafe) let defaultInstance = _StorageClass() - #else - static let defaultInstance = _StorageClass() - #endif private init() {} @@ -559,9 +540,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRConfig: SwiftProtobuf.M extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRShardConfigs: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRShardConfigs" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "repeated_shard_config"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}repeated_shard_config\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -607,10 +586,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRShardConfigs: SwiftProt extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRFixedShardConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRFixedShardConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "shard_config"), - 2: .standard(proto: "shard_count"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}shard_config\0\u{3}shard_count\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -649,14 +625,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRFixedShardConfig: Swift extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRRequest" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "shard_index"), - 2: .same(proto: "query"), - 3: .standard(proto: "evaluation_key_metadata"), - 4: .standard(proto: "configuration_hash"), - 5: .standard(proto: "shard_id"), - 6: .standard(proto: "evaluation_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}shard_index\0\u{1}query\0\u{3}evaluation_key_metadata\0\u{3}configuration_hash\0\u{3}shard_id\0\u{3}evaluation_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -715,10 +684,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRRequest: SwiftProtobuf. extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRResponse" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "replies"), - 2: .same(proto: "stash"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}replies\0\u{1}stash\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -757,10 +723,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRResponse: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".OPRFRequest" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "query_element"), - 2: .standard(proto: "config_id"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}query_element\0\u{3}config_id\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -795,10 +758,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFRequest: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".OPRFResponse" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "evaluated_element"), - 2: .same(proto: "proof"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}evaluated_element\0\u{1}proof\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -833,11 +793,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_OPRFResponse: SwiftProtobu extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_StashOfEntries: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".StashOfEntries" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "hashed_keywords"), - 2: .same(proto: "values"), - 3: .standard(proto: "removed_hashed_keywords"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}hashed_keywords\0\u{1}values\0\u{3}removed_hashed_keywords\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift index ee9e224e..95c704ed 100644 --- a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift +++ b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Evaluation key metadata. -public struct Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -134,10 +134,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.api.shar extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKeyMetadata" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "timestamp"), - 2: .same(proto: "identifier"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}timestamp\0\u{1}identifier\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -172,10 +169,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_KeyStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".KeyStatus" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "timestamp"), - 2: .standard(proto: "key_config"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}timestamp\0\u{3}key_config\0\u{c}\u{3}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -214,9 +208,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_KeyStatus: SwiftProtobu extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeys: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKeys" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "keys"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}keys\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -246,10 +238,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeys: SwiftPr extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "metadata"), - 2: .standard(proto: "evaluation_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}metadata\0\u{3}evaluation_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir.pb.swift b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir.pb.swift index d25a77a9..7825ccaf 100644 --- a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir.pb.swift +++ b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir.pb.swift @@ -328,7 +328,7 @@ public struct Apple_SwiftHomomorphicEncryption_Pir_V1_EncryptedIndices: Sendable } /// Client specific PIR configuration for Symmetric PIR -public struct Apple_SwiftHomomorphicEncryption_Pir_V1_SymmetricPirClientConfig: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Pir_V1_SymmetricPirClientConfig: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -349,33 +349,16 @@ public struct Apple_SwiftHomomorphicEncryption_Pir_V1_SymmetricPirClientConfig: fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pir.v1" extension Apple_SwiftHomomorphicEncryption_Pir_V1_KeyCompressionStrategy: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "KEY_COMPRESSION_STRATEGY_UNSPECIFIED"), - 1: .same(proto: "KEY_COMPRESSION_STRATEGY_MAXIMUM_COMPRESSION"), - 2: .same(proto: "KEY_COMPRESSION_STRATEGY_HYBRID_COMPRESSION"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0KEY_COMPRESSION_STRATEGY_UNSPECIFIED\0\u{1}KEY_COMPRESSION_STRATEGY_MAXIMUM_COMPRESSION\0\u{1}KEY_COMPRESSION_STRATEGY_HYBRID_COMPRESSION\0") } extension Apple_SwiftHomomorphicEncryption_Pir_V1_SymmetricPirConfigType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "SYMMETRIC_PIR_CONFIG_TYPE_UNSPECIFIED"), - 1: .same(proto: "SYMMETRIC_PIR_CONFIG_TYPE_OPRF_P384_AES_GCM_192_NONCE_96_TAG_128"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0SYMMETRIC_PIR_CONFIG_TYPE_UNSPECIFIED\0\u{1}SYMMETRIC_PIR_CONFIG_TYPE_OPRF_P384_AES_GCM_192_NONCE_96_TAG_128\0") } extension Apple_SwiftHomomorphicEncryption_Pir_V1_PirParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PirParameters" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "encryption_parameters"), - 2: .standard(proto: "num_entries"), - 3: .standard(proto: "entry_size"), - 4: .same(proto: "dimensions"), - 5: .standard(proto: "keyword_pir_params"), - 6: .same(proto: "algorithm"), - 7: .standard(proto: "batch_size"), - 8: .standard(proto: "evaluation_key_config"), - 9: .standard(proto: "key_compression_strategy"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}encryption_parameters\0\u{3}num_entries\0\u{3}entry_size\0\u{1}dimensions\0\u{3}keyword_pir_params\0\u{1}algorithm\0\u{3}batch_size\0\u{3}evaluation_key_config\0\u{3}key_compression_strategy\0\u{c}\u{a}\u{1}\u{c}\u{b}\u{1}\u{c}\u{c}\u{1}") fileprivate class _StorageClass { var _encryptionParameters: HomomorphicEncryptionProtobuf.Apple_SwiftHomomorphicEncryption_V1_EncryptionParameters? = nil @@ -388,15 +371,11 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_PirParameters: SwiftProtobuf.M var _evaluationKeyConfig: HomomorphicEncryptionProtobuf.Apple_SwiftHomomorphicEncryption_V1_EvaluationKeyConfig? = nil var _keyCompressionStrategy: Apple_SwiftHomomorphicEncryption_Pir_V1_KeyCompressionStrategy = .unspecified - #if swift(>=5.10) // This property is used as the initial default value for new instances of the type. // The type itself is protecting the reference to its storage via CoW semantics. // This will force a copy to be made of this reference when the first mutation occurs; // hence, it is safe to mark this as `nonisolated(unsafe)`. static nonisolated(unsafe) let defaultInstance = _StorageClass() - #else - static let defaultInstance = _StorageClass() - #endif private init() {} @@ -505,11 +484,7 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_PirParameters: SwiftProtobuf.M extension Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordPirParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".KeywordPirParameters" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "num_hash_functions"), - 3: .standard(proto: "symmetric_pir_client_config"), - 4: .standard(proto: "sharding_function"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}num_hash_functions\0\u{4}\u{2}symmetric_pir_client_config\0\u{3}sharding_function\0\u{c}\u{2}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -553,10 +528,7 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordPirParameters: SwiftPro extension Apple_SwiftHomomorphicEncryption_Pir_V1_PIRShardingFunction: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRShardingFunction" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "sha256"), - 2: .standard(proto: "double_mod"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sha256\0\u{3}double_mod\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -642,9 +614,7 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_PIRShardingFunctionSHA256: Swi extension Apple_SwiftHomomorphicEncryption_Pir_V1_PIRShardingFunctionDoubleMod: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PIRShardingFunctionDoubleMod" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "other_shard_count"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}other_shard_count\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -674,10 +644,7 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_PIRShardingFunctionDoubleMod: extension Apple_SwiftHomomorphicEncryption_Pir_V1_EncryptedIndices: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EncryptedIndices" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ciphertexts"), - 2: .standard(proto: "num_pir_calls"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}ciphertexts\0\u{3}num_pir_calls\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -712,10 +679,7 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_EncryptedIndices: SwiftProtobu extension Apple_SwiftHomomorphicEncryption_Pir_V1_SymmetricPirClientConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SymmetricPirClientConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "server_public_key"), - 2: .standard(proto: "config_type"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}server_public_key\0\u{3}config_type\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_algorithm.pb.swift b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_algorithm.pb.swift index 02f6f63c..fa1b5f13 100644 --- a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_algorithm.pb.swift +++ b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_algorithm.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -80,8 +80,5 @@ public enum Apple_SwiftHomomorphicEncryption_Pir_V1_PirAlgorithm: SwiftProtobuf. // MARK: - Code below here is support for the SwiftProtobuf runtime. extension Apple_SwiftHomomorphicEncryption_Pir_V1_PirAlgorithm: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PIR_ALGORITHM_ACLS_PIR"), - 1: .same(proto: "PIR_ALGORITHM_MUL_PIR"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0PIR_ALGORITHM_ACLS_PIR\0\u{1}PIR_ALGORITHM_MUL_PIR\0") } diff --git a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_database.pb.swift b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_database.pb.swift index aeebe025..839aa149 100644 --- a/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_database.pb.swift +++ b/Sources/PrivateInformationRetrievalProtobuf/generated/apple_swift_homomorphic_encryption_pir_v1_pir_database.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Row in a keyword-value database. -public struct Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabaseRow: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabaseRow: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -72,10 +72,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pir.v1" extension Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabaseRow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".KeywordDatabaseRow" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "keyword"), - 2: .same(proto: "value"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}keyword\0\u{1}value\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -110,9 +107,7 @@ extension Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabaseRow: SwiftProto extension Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabase: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".KeywordDatabase" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "rows"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}rows\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_api.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_api.pb.swift index 5a9112ac..bc77b298 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_api.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_api.pb.swift @@ -36,7 +36,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Request for server side configurations. -public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigRequest: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigRequest: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -54,7 +54,7 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigRequest: @unche } /// Usecase configuration. -public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Config: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Config: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -327,10 +327,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.api.pnns extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ConfigRequest" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "usecases"), - 2: .standard(proto: "existing_config_ids"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}usecases\0\u{3}existing_config_ids\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -365,11 +362,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigRequest: SwiftProto extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Config: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Config" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "pnns_config"), - 3: .standard(proto: "config_id"), - 4: .standard(proto: "reuse_existing_config"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{4}\u{2}pnns_config\0\u{3}config_id\0\u{3}reuse_existing_config\0\u{c}\u{1}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -425,10 +418,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Config: SwiftProtobuf.Mes extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ConfigResponse" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "configs"), - 2: .standard(proto: "key_info"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}configs\0\u{3}key_info\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -463,9 +453,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_ConfigResponse: SwiftProt extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Requests: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Requests" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "requests"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}requests\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -495,9 +483,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Requests: SwiftProtobuf.M extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Responses: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Responses" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "responses"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}responses\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -527,10 +513,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Responses: SwiftProtobuf. extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Request" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "usecase"), - 3: .standard(proto: "pnns_request"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}usecase\0\u{4}\u{2}pnns_request\0\u{c}\u{2}\u{1}\u{c}\u{4}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -581,9 +564,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Request: SwiftProtobuf.Me extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Response: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Response" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "pnns_response"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{4}\u{2}pnns_response\0\u{c}\u{1}\u{1}\u{c}\u{3}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -629,12 +610,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Response: SwiftProtobuf.M extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Error" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "config_version_not_found"), - 2: .standard(proto: "evaluation_key_not_found"), - 3: .standard(proto: "invalid_request"), - 4: .standard(proto: "internal_error"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}config_version_not_found\0\u{3}evaluation_key_not_found\0\u{3}invalid_request\0\u{3}internal_error\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -735,9 +711,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Error: SwiftProtobuf.Mess extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Error.ConfigVersionNotFound: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_Error.protoMessageName + ".ConfigVersionNotFound" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "config_response"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}config_response\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_pnns.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_pnns.pb.swift index 3935a71f..3b754cf2 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_pnns.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_pnns.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Configuration for one PNNS usecase. -public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSConfig: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSConfig: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -87,19 +87,19 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSConfig: @unchecke fileprivate var _queryPacking: Apple_SwiftHomomorphicEncryption_Pnns_V1_MatrixPacking? = nil } -/// PNNS Request -public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: @unchecked Sendable { +/// PNNS Request. +public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - /// optionally, the shard indices where this request should be routed + /// Optionally, the shard indices where this request should be routed. public var shardIndices: [UInt32] = [] - /// Encrypted query, one per plaintext CRT component + /// Encrypted query, one per plaintext CRT component. public var query: [Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedCiphertextMatrix] = [] - /// Key metadata + /// Key metadata. public var evaluationKeyMetadata: Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata { get {return _evaluationKeyMetadata ?? Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata()} set {_evaluationKeyMetadata = newValue} @@ -109,10 +109,10 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: @uncheck /// Clears the value of `evaluationKeyMetadata`. Subsequent reads from it will return its default value. public mutating func clearEvaluationKeyMetadata() {self._evaluationKeyMetadata = nil} - /// Identifier for the PNNSConfig used to construct the query + /// Identifier for the PNNSConfig used to construct the query. public var configID: Data = Data() - /// If set, evaluation key to query with. Will override evaluation key stored server-side + /// If set, evaluation key to query with. Will override evaluation key stored server-side. public var evaluationKey: Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKey { get {return _evaluationKey ?? Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKey()} set {_evaluationKey = newValue} @@ -122,6 +122,10 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: @uncheck /// Clears the value of `evaluationKey`. Subsequent reads from it will return its default value. public mutating func clearEvaluationKey() {self._evaluationKey = nil} + /// Optionally, the shard identifiers where this request should be routed. + /// If set, will override `shard_indices`. + public var shardIds: [String] = [] + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -130,19 +134,19 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: @uncheck fileprivate var _evaluationKey: Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKey? = nil } -/// PNNS Shard Response -public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse: @unchecked Sendable { +/// PNNS Shard Response. +public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - /// Encrypted reply, one per plaintext CRT component + /// Encrypted reply, one per plaintext CRT component. public var reply: [Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedCiphertextMatrix] = [] - /// A list of entry identifiers the server computed similarities for + /// A list of entry identifiers the server computed similarities for. public var entryIds: [UInt64] = [] - /// Metadata for each entry in the database + /// Metadata for each entry in the database. public var entryMetadatas: [Data] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -150,13 +154,13 @@ public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse: @u public init() {} } -/// PNNS Response +/// PNNS Response. public struct Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSResponse: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - /// PNNS responses from shards + /// PNNS responses from shards. public var shardResponses: [Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -170,15 +174,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.api.pnns extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PNNSConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "encryption_parameters"), - 2: .standard(proto: "scaling_factor"), - 3: .standard(proto: "query_packing"), - 4: .standard(proto: "vector_dimension"), - 5: .standard(proto: "distance_metric"), - 6: .standard(proto: "evaluation_key_config_hash"), - 7: .standard(proto: "extra_plaintext_moduli"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}encryption_parameters\0\u{3}scaling_factor\0\u{3}query_packing\0\u{3}vector_dimension\0\u{3}distance_metric\0\u{3}evaluation_key_config_hash\0\u{3}extra_plaintext_moduli\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -242,13 +238,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSConfig: SwiftProtobuf extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PNNSRequest" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "shard_indices"), - 2: .same(proto: "query"), - 3: .standard(proto: "evaluation_key_metadata"), - 4: .standard(proto: "config_id"), - 5: .standard(proto: "evaluation_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}shard_indices\0\u{1}query\0\u{3}evaluation_key_metadata\0\u{3}config_id\0\u{3}evaluation_key\0\u{3}shard_ids\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -261,6 +251,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: SwiftProtobu case 3: try { try decoder.decodeSingularMessageField(value: &self._evaluationKeyMetadata) }() case 4: try { try decoder.decodeSingularBytesField(value: &self.configID) }() case 5: try { try decoder.decodeSingularMessageField(value: &self._evaluationKey) }() + case 6: try { try decoder.decodeRepeatedStringField(value: &self.shardIds) }() default: break } } @@ -286,6 +277,9 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: SwiftProtobu try { if let v = self._evaluationKey { try visitor.visitSingularMessageField(value: v, fieldNumber: 5) } }() + if !self.shardIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.shardIds, fieldNumber: 6) + } try unknownFields.traverse(visitor: &visitor) } @@ -295,6 +289,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: SwiftProtobu if lhs._evaluationKeyMetadata != rhs._evaluationKeyMetadata {return false} if lhs.configID != rhs.configID {return false} if lhs._evaluationKey != rhs._evaluationKey {return false} + if lhs.shardIds != rhs.shardIds {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } @@ -302,11 +297,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSRequest: SwiftProtobu extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PNNSShardResponse" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "reply"), - 2: .standard(proto: "entry_ids"), - 3: .standard(proto: "entry_metadatas"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}reply\0\u{3}entry_ids\0\u{3}entry_metadatas\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -346,9 +337,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse: SwiftP extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PNNSResponse" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "shard_responses"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}shard_responses\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift index ee9e224e..95c704ed 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Evaluation key metadata. -public struct Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -134,10 +134,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.api.shar extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKeyMetadata" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "timestamp"), - 2: .same(proto: "identifier"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}timestamp\0\u{1}identifier\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -172,10 +169,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeyMetadata: extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_KeyStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".KeyStatus" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "timestamp"), - 2: .standard(proto: "key_config"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}timestamp\0\u{3}key_config\0\u{c}\u{3}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -214,9 +208,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_KeyStatus: SwiftProtobu extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeys: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKeys" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "keys"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}keys\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -246,10 +238,7 @@ extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKeys: SwiftPr extension Apple_SwiftHomomorphicEncryption_Api_Shared_V1_EvaluationKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".EvaluationKey" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "metadata"), - 2: .standard(proto: "evaluation_key"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}metadata\0\u{3}evaluation_key\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns.pb.swift index 1b243120..406c33c1 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -107,12 +107,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pnns.v1" extension Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedCiphertextMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedCiphertextMatrix" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "num_rows"), - 2: .standard(proto: "num_columns"), - 3: .same(proto: "ciphertexts"), - 4: .same(proto: "packing"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}num_rows\0\u{3}num_columns\0\u{1}ciphertexts\0\u{1}packing\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -161,12 +156,7 @@ extension Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedCiphertextMatrix: S extension Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedPlaintextMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedPlaintextMatrix" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "num_rows"), - 2: .standard(proto: "num_columns"), - 3: .same(proto: "plaintexts"), - 4: .same(proto: "packing"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}num_rows\0\u{3}num_columns\0\u{1}plaintexts\0\u{1}packing\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_client_config.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_client_config.pb.swift index 6f993633..4feb8640 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_client_config.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_client_config.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -92,15 +92,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pnns.v1" extension Apple_SwiftHomomorphicEncryption_Pnns_V1_ClientConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ClientConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "encryption_parameters"), - 2: .standard(proto: "scaling_factor"), - 3: .standard(proto: "query_packing"), - 4: .standard(proto: "vector_dimension"), - 5: .standard(proto: "galois_elements"), - 6: .standard(proto: "distance_metric"), - 7: .standard(proto: "extra_plaintext_moduli"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}encryption_parameters\0\u{3}scaling_factor\0\u{3}query_packing\0\u{3}vector_dimension\0\u{3}galois_elements\0\u{3}distance_metric\0\u{3}extra_plaintext_moduli\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_database.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_database.pb.swift index e6d43458..af0aac5b 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_database.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_database.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Row in a private nearest neighbor search database. -public struct Apple_SwiftHomomorphicEncryption_Pnns_V1_DatabaseRow: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Pnns_V1_DatabaseRow: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -75,11 +75,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pnns.v1" extension Apple_SwiftHomomorphicEncryption_Pnns_V1_DatabaseRow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".DatabaseRow" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "entry_id"), - 2: .standard(proto: "entry_metadata"), - 3: .same(proto: "vector"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}entry_id\0\u{3}entry_metadata\0\u{1}vector\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -119,9 +115,7 @@ extension Apple_SwiftHomomorphicEncryption_Pnns_V1_DatabaseRow: SwiftProtobuf.Me extension Apple_SwiftHomomorphicEncryption_Pnns_V1_Database: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Database" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "rows"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}rows\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_distance_metric.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_distance_metric.pb.swift index b7d2637b..ce9dee01 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_distance_metric.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_distance_metric.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -70,7 +70,5 @@ public enum Apple_SwiftHomomorphicEncryption_Pnns_V1_DistanceMetric: SwiftProtob // MARK: - Code below here is support for the SwiftProtobuf runtime. extension Apple_SwiftHomomorphicEncryption_Pnns_V1_DistanceMetric: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "DISTANCE_METRIC_COSINE_SIMILARITY"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0DISTANCE_METRIC_COSINE_SIMILARITY\0") } diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_matrix_packing.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_matrix_packing.pb.swift index 7eb7e05d..62df6c5f 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_matrix_packing.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_matrix_packing.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -180,11 +180,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pnns.v1" extension Apple_SwiftHomomorphicEncryption_Pnns_V1_BabyStepGiantStep: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".BabyStepGiantStep" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "vector_dimension"), - 2: .standard(proto: "baby_step"), - 3: .standard(proto: "giant_step"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}vector_dimension\0\u{3}baby_step\0\u{3}giant_step\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -224,11 +220,7 @@ extension Apple_SwiftHomomorphicEncryption_Pnns_V1_BabyStepGiantStep: SwiftProto extension Apple_SwiftHomomorphicEncryption_Pnns_V1_MatrixPacking: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".MatrixPacking" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "dense_row"), - 2: .same(proto: "diagonal"), - 3: .standard(proto: "dense_column"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}dense_row\0\u{1}diagonal\0\u{3}dense_column\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -331,9 +323,7 @@ extension Apple_SwiftHomomorphicEncryption_Pnns_V1_MatrixPackingDenseRow: SwiftP extension Apple_SwiftHomomorphicEncryption_Pnns_V1_MatrixPackingDiagonal: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".MatrixPackingDiagonal" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "baby_step_giant_step"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{4}\u{2}baby_step_giant_step\0\u{c}\u{1}\u{1}") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_processed_database.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_processed_database.pb.swift index 51bf7d38..39f90536 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_processed_database.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_processed_database.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Serialized pre-processed nearest neighbor database. -public struct Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedProcessedDatabase: @unchecked Sendable { +public struct Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedProcessedDatabase: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -73,12 +73,7 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pnns.v1" extension Apple_SwiftHomomorphicEncryption_Pnns_V1_SerializedProcessedDatabase: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SerializedProcessedDatabase" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "plaintext_matrices"), - 2: .standard(proto: "entry_ids"), - 3: .standard(proto: "entry_metadatas"), - 4: .standard(proto: "server_config"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}plaintext_matrices\0\u{3}entry_ids\0\u{3}entry_metadatas\0\u{3}server_config\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { diff --git a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_server_config.pb.swift b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_server_config.pb.swift index 645f8f70..4ac95de6 100644 --- a/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_server_config.pb.swift +++ b/Sources/PrivateNearestNeighborSearchProtobuf/generated/apple_swift_homomorphic_encryption_pnns_v1_pnns_server_config.pb.swift @@ -8,7 +8,7 @@ // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -73,24 +73,17 @@ fileprivate let _protobuf_package = "apple.swift_homomorphic_encryption.pnns.v1" extension Apple_SwiftHomomorphicEncryption_Pnns_V1_ServerConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ServerConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "client_config"), - 2: .standard(proto: "database_packing"), - ] + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}client_config\0\u{3}database_packing\0\u{c}\u{3}\u{1}\u{c}\u{4}\u{1}") fileprivate class _StorageClass { var _clientConfig: Apple_SwiftHomomorphicEncryption_Pnns_V1_ClientConfig? = nil var _databasePacking: Apple_SwiftHomomorphicEncryption_Pnns_V1_MatrixPacking? = nil - #if swift(>=5.10) // This property is used as the initial default value for new instances of the type. // The type itself is protecting the reference to its storage via CoW semantics. // This will force a copy to be made of this reference when the first mutation occurs; // hence, it is safe to mark this as `nonisolated(unsafe)`. static nonisolated(unsafe) let defaultInstance = _StorageClass() - #else - static let defaultInstance = _StorageClass() - #endif private init() {} diff --git a/swift-homomorphic-encryption-protobuf b/swift-homomorphic-encryption-protobuf index 33bce862..37fe401b 160000 --- a/swift-homomorphic-encryption-protobuf +++ b/swift-homomorphic-encryption-protobuf @@ -1 +1 @@ -Subproject commit 33bce8625cb02a4007a3d6d66b8599cea7c203a7 +Subproject commit 37fe401bbbf92f0317b768b6338cc35d29743119