mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-22 14:26:01 +00:00
Update generated protobuf
This commit is contained in:
1 parent
44d8ac059b
commit
46c44e800c
11 files changed
+1040
-5134
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// DO NOT EDIT.
|
||||
// swift-format-ignore-file
|
||||
// swiftlint:disable all
|
||||
//
|
||||
// Generated by the Swift generator plugin for the protocol buffer compiler.
|
||||
// Source: device_to_device_messages.proto
|
||||
@@ -35,39 +36,17 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
|
||||
}
|
||||
|
||||
/// Type of curve
|
||||
enum Securegcm_Curve: SwiftProtobuf.Enum {
|
||||
typealias RawValue = Int
|
||||
case ed25519 // = 1
|
||||
enum Securegcm_Curve: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
||||
case ed25519 = 1
|
||||
|
||||
init() {
|
||||
self = .ed25519
|
||||
}
|
||||
|
||||
init?(rawValue: Int) {
|
||||
switch rawValue {
|
||||
case 1: self = .ed25519
|
||||
default: return nil
|
||||
}
|
||||
}
|
||||
|
||||
var rawValue: Int {
|
||||
switch self {
|
||||
case .ed25519: return 1
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#if swift(>=4.2)
|
||||
|
||||
extension Securegcm_Curve: CaseIterable {
|
||||
// Support synthesized by the compiler.
|
||||
}
|
||||
|
||||
#endif // swift(>=4.2)
|
||||
|
||||
/// Used by protocols between devices
|
||||
struct Securegcm_DeviceToDeviceMessage {
|
||||
struct Securegcm_DeviceToDeviceMessage: 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.
|
||||
@@ -102,7 +81,7 @@ struct Securegcm_DeviceToDeviceMessage {
|
||||
|
||||
/// sent as the first message from initiator to responder
|
||||
/// in an unauthenticated Diffie-Hellman Key Exchange
|
||||
struct Securegcm_InitiatorHello {
|
||||
struct Securegcm_InitiatorHello: 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.
|
||||
@@ -137,7 +116,7 @@ struct Securegcm_InitiatorHello {
|
||||
|
||||
/// sent inside the header of the first message from the responder to the
|
||||
/// initiator in an unauthenticated Diffie-Hellman Key Exchange
|
||||
struct Securegcm_ResponderHello {
|
||||
struct Securegcm_ResponderHello: 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.
|
||||
@@ -171,7 +150,7 @@ struct Securegcm_ResponderHello {
|
||||
}
|
||||
|
||||
/// A convenience proto for encoding curve points in affine representation
|
||||
struct Securegcm_EcPoint {
|
||||
struct Securegcm_EcPoint: 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.
|
||||
@@ -214,7 +193,7 @@ struct Securegcm_EcPoint {
|
||||
fileprivate var _y: Data? = nil
|
||||
}
|
||||
|
||||
struct Securegcm_SpakeHandshakeMessage {
|
||||
struct Securegcm_SpakeHandshakeMessage: 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.
|
||||
@@ -270,31 +249,17 @@ struct Securegcm_SpakeHandshakeMessage {
|
||||
fileprivate var _payload: Data? = nil
|
||||
}
|
||||
|
||||
#if swift(>=5.5) && canImport(_Concurrency)
|
||||
extension Securegcm_Curve: @unchecked Sendable {}
|
||||
extension Securegcm_DeviceToDeviceMessage: @unchecked Sendable {}
|
||||
extension Securegcm_InitiatorHello: @unchecked Sendable {}
|
||||
extension Securegcm_ResponderHello: @unchecked Sendable {}
|
||||
extension Securegcm_EcPoint: @unchecked Sendable {}
|
||||
extension Securegcm_SpakeHandshakeMessage: @unchecked Sendable {}
|
||||
#endif // swift(>=5.5) && canImport(_Concurrency)
|
||||
|
||||
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
||||
|
||||
fileprivate let _protobuf_package = "securegcm"
|
||||
|
||||
extension Securegcm_Curve: SwiftProtobuf._ProtoNameProviding {
|
||||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||||
1: .same(proto: "ED_25519"),
|
||||
]
|
||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}ED_25519\0")
|
||||
}
|
||||
|
||||
extension Securegcm_DeviceToDeviceMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||
static let protoMessageName: String = _protobuf_package + ".DeviceToDeviceMessage"
|
||||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||||
1: .same(proto: "message"),
|
||||
2: .standard(proto: "sequence_number"),
|
||||
]
|
||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}message\0\u{3}sequence_number\0")
|
||||
|
||||
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
||||
while let fieldNumber = try decoder.nextFieldNumber() {
|
||||
@@ -333,10 +298,7 @@ extension Securegcm_DeviceToDeviceMessage: SwiftProtobuf.Message, SwiftProtobuf.
|
||||
|
||||
extension Securegcm_InitiatorHello: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||
static let protoMessageName: String = _protobuf_package + ".InitiatorHello"
|
||||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||||
1: .standard(proto: "public_dh_key"),
|
||||
2: .standard(proto: "protocol_version"),
|
||||
]
|
||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}public_dh_key\0\u{3}protocol_version\0")
|
||||
|
||||
public var isInitialized: Bool {
|
||||
if let v = self._publicDhKey, !v.isInitialized {return false}
|
||||
@@ -380,10 +342,7 @@ extension Securegcm_InitiatorHello: SwiftProtobuf.Message, SwiftProtobuf._Messag
|
||||
|
||||
extension Securegcm_ResponderHello: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||
static let protoMessageName: String = _protobuf_package + ".ResponderHello"
|
||||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||||
1: .standard(proto: "public_dh_key"),
|
||||
2: .standard(proto: "protocol_version"),
|
||||
]
|
||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}public_dh_key\0\u{3}protocol_version\0")
|
||||
|
||||
public var isInitialized: Bool {
|
||||
if let v = self._publicDhKey, !v.isInitialized {return false}
|
||||
@@ -427,11 +386,7 @@ extension Securegcm_ResponderHello: SwiftProtobuf.Message, SwiftProtobuf._Messag
|
||||
|
||||
extension Securegcm_EcPoint: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||
static let protoMessageName: String = _protobuf_package + ".EcPoint"
|
||||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||||
1: .same(proto: "curve"),
|
||||
2: .same(proto: "x"),
|
||||
3: .same(proto: "y"),
|
||||
]
|
||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}curve\0\u{1}x\0\u{1}y\0")
|
||||
|
||||
public var isInitialized: Bool {
|
||||
if self._curve == nil {return false}
|
||||
@@ -482,12 +437,7 @@ extension Securegcm_EcPoint: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem
|
||||
|
||||
extension Securegcm_SpakeHandshakeMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||
static let protoMessageName: String = _protobuf_package + ".SpakeHandshakeMessage"
|
||||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||||
1: .standard(proto: "flow_number"),
|
||||
2: .standard(proto: "ec_point"),
|
||||
3: .standard(proto: "hash_value"),
|
||||
4: .same(proto: "payload"),
|
||||
]
|
||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}flow_number\0\u{3}ec_point\0\u{3}hash_value\0\u{1}payload\0")
|
||||
|
||||
public var isInitialized: Bool {
|
||||
if let v = self._ecPoint, !v.isInitialized {return false}
|
||||
|
||||
Reference in new issue
Block a user