|
|
@@ -44,19 +44,19 @@
|
|
|
// LINT: ALLOW_GROUPS
|
|
|
|
|
|
import Foundation
|
|
|
-import SwiftProtobuf
|
|
|
+import SwiftProtobufCore
|
|
|
|
|
|
// If the compiler emits an error on this type, it is because this file
|
|
|
// was generated by a version of the `protoc` Swift plug-in that is
|
|
|
// incompatible with the version of SwiftProtobuf to which you are linking.
|
|
|
// Please ensure that you are building against the same version of the API
|
|
|
// that was used to generate this file.
|
|
|
-fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
|
|
|
- struct _3: SwiftProtobuf.ProtobufAPIVersion_3 {}
|
|
|
+fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobufCore.ProtobufAPIVersionCheck {
|
|
|
+ struct _3: SwiftProtobufCore.ProtobufAPIVersion_3 {}
|
|
|
typealias Version = _3
|
|
|
}
|
|
|
|
|
|
-enum ProtobufTestMessages_Proto2_ForeignEnumProto2: SwiftProtobuf.Enum {
|
|
|
+enum ProtobufTestMessages_Proto2_ForeignEnumProto2: SwiftProtobufCore.Enum {
|
|
|
typealias RawValue = Int
|
|
|
case foreignFoo // = 0
|
|
|
case foreignBar // = 1
|
|
|
@@ -92,8 +92,8 @@ enum ProtobufTestMessages_Proto2_ForeignEnumProto2: SwiftProtobuf.Enum {
|
|
|
/// submessages of this message. So for example, a fuzz test of TestAllTypes
|
|
|
/// could trigger bugs that occur in any message type in this file. We verify
|
|
|
/// this stays true in a unit test.
|
|
|
-struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleMessage {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobufCore.ExtensibleMessage {
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1026,7 +1026,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
/// Clears the value of `fieldName18__`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearFieldName18__() {_uniqueStorage()._fieldName18__ = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
enum OneOf_OneofField: Equatable {
|
|
|
case oneofUint32(UInt32)
|
|
|
@@ -1046,7 +1046,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
|
|
|
}
|
|
|
|
|
|
- enum NestedEnum: SwiftProtobuf.Enum {
|
|
|
+ enum NestedEnum: SwiftProtobufCore.Enum {
|
|
|
typealias RawValue = Int
|
|
|
case foo // = 0
|
|
|
case bar // = 1
|
|
|
@@ -1081,7 +1081,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
}
|
|
|
|
|
|
struct NestedMessage {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1103,7 +1103,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
/// Clears the value of `corecursive`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearCorecursive() {_uniqueStorage()._corecursive = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1112,7 +1112,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
|
|
|
/// groups
|
|
|
struct DataMessage {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1134,7 +1134,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
/// Clears the value of `groupUint32`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearGroupUint32() {self._groupUint32 = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1143,20 +1143,20 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
}
|
|
|
|
|
|
/// message_set test case.
|
|
|
- struct MessageSetCorrect: SwiftProtobuf.ExtensibleMessage {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ struct MessageSetCorrect: SwiftProtobufCore.ExtensibleMessage {
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
|
|
|
+ var _protobuf_extensionFieldValues = SwiftProtobufCore.ExtensionFieldValueSet()
|
|
|
}
|
|
|
|
|
|
struct MessageSetCorrectExtension1 {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1169,7 +1169,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
/// Clears the value of `str`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearStr() {self._str = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1177,7 +1177,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
}
|
|
|
|
|
|
struct MessageSetCorrectExtension2 {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1190,7 +1190,7 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
/// Clears the value of `i`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearI() {self._i = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1199,12 +1199,12 @@ struct ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.ExtensibleM
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
|
|
|
+ var _protobuf_extensionFieldValues = SwiftProtobufCore.ExtensionFieldValueSet()
|
|
|
fileprivate var _storage = _StorageClass.defaultInstance
|
|
|
}
|
|
|
|
|
|
struct ProtobufTestMessages_Proto2_ForeignMessageProto2 {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1217,7 +1217,7 @@ struct ProtobufTestMessages_Proto2_ForeignMessageProto2 {
|
|
|
/// Clears the value of `c`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearC() {self._c = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1225,7 +1225,7 @@ struct ProtobufTestMessages_Proto2_ForeignMessageProto2 {
|
|
|
}
|
|
|
|
|
|
struct ProtobufTestMessages_Proto2_UnknownToTestAllTypes {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1276,10 +1276,10 @@ struct ProtobufTestMessages_Proto2_UnknownToTestAllTypes {
|
|
|
|
|
|
var repeatedInt32: [Int32] = []
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
struct OptionalGroup {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1292,7 +1292,7 @@ struct ProtobufTestMessages_Proto2_UnknownToTestAllTypes {
|
|
|
/// Clears the value of `a`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearA() {self._a = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1309,23 +1309,23 @@ struct ProtobufTestMessages_Proto2_UnknownToTestAllTypes {
|
|
|
}
|
|
|
|
|
|
struct ProtobufTestMessages_Proto2_NullHypothesisProto2 {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
}
|
|
|
|
|
|
struct ProtobufTestMessages_Proto2_EnumOnlyProto2 {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
- enum BoolEnum: SwiftProtobuf.Enum {
|
|
|
+ enum BoolEnum: SwiftProtobufCore.Enum {
|
|
|
typealias RawValue = Int
|
|
|
case kFalse // = 0
|
|
|
case kTrue // = 1
|
|
|
@@ -1355,7 +1355,7 @@ struct ProtobufTestMessages_Proto2_EnumOnlyProto2 {
|
|
|
}
|
|
|
|
|
|
struct ProtobufTestMessages_Proto2_OneStringProto2 {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1368,7 +1368,7 @@ struct ProtobufTestMessages_Proto2_OneStringProto2 {
|
|
|
/// Clears the value of `data`. Subsequent reads from it will return its default value.
|
|
|
mutating func clearData() {self._data = nil}
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1376,7 +1376,7 @@ struct ProtobufTestMessages_Proto2_OneStringProto2 {
|
|
|
}
|
|
|
|
|
|
struct ProtobufTestMessages_Proto2_ProtoWithKeywords {
|
|
|
- // SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
+ // SwiftProtobufCore.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.
|
|
|
|
|
|
@@ -1400,7 +1400,7 @@ struct ProtobufTestMessages_Proto2_ProtoWithKeywords {
|
|
|
|
|
|
var requires: [String] = []
|
|
|
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
+ var unknownFields = SwiftProtobufCore.UnknownStorage()
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
@@ -1492,7 +1492,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect {
|
|
|
/// this .proto file. It can be used any place an `SwiftProtobuf.ExtensionMap` is needed
|
|
|
/// in parsing, or it can be combined with other `SwiftProtobuf.SimpleExtensionMap`s to create
|
|
|
/// a larger `SwiftProtobuf.SimpleExtensionMap`.
|
|
|
-let ProtobufTestMessages_Proto2_TestMessagesProto2_Extensions: SwiftProtobuf.SimpleExtensionMap = [
|
|
|
+let ProtobufTestMessages_Proto2_TestMessagesProto2_Extensions: SwiftProtobufCore.SimpleExtensionMap = [
|
|
|
ProtobufTestMessages_Proto2_Extensions_extension_int32,
|
|
|
ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension1.Extensions.message_set_extension,
|
|
|
ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension2.Extensions.message_set_extension
|
|
|
@@ -1502,14 +1502,14 @@ let ProtobufTestMessages_Proto2_TestMessagesProto2_Extensions: SwiftProtobuf.Sim
|
|
|
// constructing a `SimpleExtensionMap`, otherwise, use the above _Extension Properties_
|
|
|
// accessors for the extension fields on the messages directly.
|
|
|
|
|
|
-let ProtobufTestMessages_Proto2_Extensions_extension_int32 = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, ProtobufTestMessages_Proto2_TestAllTypesProto2>(
|
|
|
+let ProtobufTestMessages_Proto2_Extensions_extension_int32 = SwiftProtobufCore.MessageExtension<SwiftProtobufCore.OptionalExtensionField<SwiftProtobufCore.ProtobufInt32>, ProtobufTestMessages_Proto2_TestAllTypesProto2>(
|
|
|
_protobuf_fieldNumber: 120,
|
|
|
fieldName: "protobuf_test_messages.proto2.extension_int32"
|
|
|
)
|
|
|
|
|
|
extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension1 {
|
|
|
enum Extensions {
|
|
|
- static let message_set_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension1>, ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect>(
|
|
|
+ static let message_set_extension = SwiftProtobufCore.MessageExtension<SwiftProtobufCore.OptionalMessageExtensionField<ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension1>, ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect>(
|
|
|
_protobuf_fieldNumber: 1547769,
|
|
|
fieldName: "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1"
|
|
|
)
|
|
|
@@ -1518,7 +1518,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtens
|
|
|
|
|
|
extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension2 {
|
|
|
enum Extensions {
|
|
|
- static let message_set_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension2>, ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect>(
|
|
|
+ static let message_set_extension = SwiftProtobufCore.MessageExtension<SwiftProtobufCore.OptionalMessageExtensionField<ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension2>, ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect>(
|
|
|
_protobuf_fieldNumber: 4135312,
|
|
|
fieldName: "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2"
|
|
|
)
|
|
|
@@ -1529,17 +1529,17 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtens
|
|
|
|
|
|
fileprivate let _protobuf_package = "protobuf_test_messages.proto2"
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_ForeignEnumProto2: SwiftProtobuf._ProtoNameProviding {
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+extension ProtobufTestMessages_Proto2_ForeignEnumProto2: SwiftProtobufCore._ProtoNameProviding {
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
0: .same(proto: "FOREIGN_FOO"),
|
|
|
1: .same(proto: "FOREIGN_BAR"),
|
|
|
2: .same(proto: "FOREIGN_BAZ"),
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".TestAllTypesProto2"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1: .standard(proto: "optional_int32"),
|
|
|
2: .standard(proto: "optional_int64"),
|
|
|
3: .standard(proto: "optional_uint32"),
|
|
|
@@ -1947,14 +1947,14 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message,
|
|
|
return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
|
if let v = _storage._optionalNestedMessage, !v.isInitialized {return false}
|
|
|
if let v = _storage._recursiveMessage, !v.isInitialized {return false}
|
|
|
- if !SwiftProtobuf.Internal.areAllInitialized(_storage._repeatedNestedMessage) {return false}
|
|
|
- if !SwiftProtobuf.Internal.areAllInitialized(_storage._mapStringNestedMessage) {return false}
|
|
|
+ if !SwiftProtobufCore.Internal.areAllInitialized(_storage._repeatedNestedMessage) {return false}
|
|
|
+ if !SwiftProtobufCore.Internal.areAllInitialized(_storage._mapStringNestedMessage) {return false}
|
|
|
if let v = _storage._oneofField, !v.isInitialized {return false}
|
|
|
return true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
_ = _uniqueStorage()
|
|
|
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
@@ -2005,25 +2005,25 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message,
|
|
|
case 52: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedForeignEnum) }()
|
|
|
case 54: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedStringPiece) }()
|
|
|
case 55: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedCord) }()
|
|
|
- case 56: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufInt32>.self, value: &_storage._mapInt32Int32) }()
|
|
|
- case 57: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt64,SwiftProtobuf.ProtobufInt64>.self, value: &_storage._mapInt64Int64) }()
|
|
|
- case 58: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufUInt32,SwiftProtobuf.ProtobufUInt32>.self, value: &_storage._mapUint32Uint32) }()
|
|
|
- case 59: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufUInt64,SwiftProtobuf.ProtobufUInt64>.self, value: &_storage._mapUint64Uint64) }()
|
|
|
- case 60: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSInt32,SwiftProtobuf.ProtobufSInt32>.self, value: &_storage._mapSint32Sint32) }()
|
|
|
- case 61: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSInt64,SwiftProtobuf.ProtobufSInt64>.self, value: &_storage._mapSint64Sint64) }()
|
|
|
- case 62: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufFixed32,SwiftProtobuf.ProtobufFixed32>.self, value: &_storage._mapFixed32Fixed32) }()
|
|
|
- case 63: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufFixed64,SwiftProtobuf.ProtobufFixed64>.self, value: &_storage._mapFixed64Fixed64) }()
|
|
|
- case 64: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSFixed32,SwiftProtobuf.ProtobufSFixed32>.self, value: &_storage._mapSfixed32Sfixed32) }()
|
|
|
- case 65: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSFixed64,SwiftProtobuf.ProtobufSFixed64>.self, value: &_storage._mapSfixed64Sfixed64) }()
|
|
|
- case 66: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufFloat>.self, value: &_storage._mapInt32Float) }()
|
|
|
- case 67: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufDouble>.self, value: &_storage._mapInt32Double) }()
|
|
|
- case 68: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufBool,SwiftProtobuf.ProtobufBool>.self, value: &_storage._mapBoolBool) }()
|
|
|
- case 69: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: &_storage._mapStringString) }()
|
|
|
- case 70: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufBytes>.self, value: &_storage._mapStringBytes) }()
|
|
|
- case 71: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage>.self, value: &_storage._mapStringNestedMessage) }()
|
|
|
- case 72: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_ForeignMessageProto2>.self, value: &_storage._mapStringForeignMessage) }()
|
|
|
- case 73: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufEnumMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum>.self, value: &_storage._mapStringNestedEnum) }()
|
|
|
- case 74: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufEnumMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_ForeignEnumProto2>.self, value: &_storage._mapStringForeignEnum) }()
|
|
|
+ case 56: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt32,SwiftProtobufCore.ProtobufInt32>.self, value: &_storage._mapInt32Int32) }()
|
|
|
+ case 57: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt64,SwiftProtobufCore.ProtobufInt64>.self, value: &_storage._mapInt64Int64) }()
|
|
|
+ case 58: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufUInt32,SwiftProtobufCore.ProtobufUInt32>.self, value: &_storage._mapUint32Uint32) }()
|
|
|
+ case 59: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufUInt64,SwiftProtobufCore.ProtobufUInt64>.self, value: &_storage._mapUint64Uint64) }()
|
|
|
+ case 60: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSInt32,SwiftProtobufCore.ProtobufSInt32>.self, value: &_storage._mapSint32Sint32) }()
|
|
|
+ case 61: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSInt64,SwiftProtobufCore.ProtobufSInt64>.self, value: &_storage._mapSint64Sint64) }()
|
|
|
+ case 62: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufFixed32,SwiftProtobufCore.ProtobufFixed32>.self, value: &_storage._mapFixed32Fixed32) }()
|
|
|
+ case 63: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufFixed64,SwiftProtobufCore.ProtobufFixed64>.self, value: &_storage._mapFixed64Fixed64) }()
|
|
|
+ case 64: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSFixed32,SwiftProtobufCore.ProtobufSFixed32>.self, value: &_storage._mapSfixed32Sfixed32) }()
|
|
|
+ case 65: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSFixed64,SwiftProtobufCore.ProtobufSFixed64>.self, value: &_storage._mapSfixed64Sfixed64) }()
|
|
|
+ case 66: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt32,SwiftProtobufCore.ProtobufFloat>.self, value: &_storage._mapInt32Float) }()
|
|
|
+ case 67: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt32,SwiftProtobufCore.ProtobufDouble>.self, value: &_storage._mapInt32Double) }()
|
|
|
+ case 68: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufBool,SwiftProtobufCore.ProtobufBool>.self, value: &_storage._mapBoolBool) }()
|
|
|
+ case 69: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufString,SwiftProtobufCore.ProtobufString>.self, value: &_storage._mapStringString) }()
|
|
|
+ case 70: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufString,SwiftProtobufCore.ProtobufBytes>.self, value: &_storage._mapStringBytes) }()
|
|
|
+ case 71: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMessageMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage>.self, value: &_storage._mapStringNestedMessage) }()
|
|
|
+ case 72: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufMessageMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_ForeignMessageProto2>.self, value: &_storage._mapStringForeignMessage) }()
|
|
|
+ case 73: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufEnumMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum>.self, value: &_storage._mapStringNestedEnum) }()
|
|
|
+ case 74: try { try decoder.decodeMapField(fieldType: SwiftProtobufCore._ProtobufEnumMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_ForeignEnumProto2>.self, value: &_storage._mapStringForeignEnum) }()
|
|
|
case 75: try { try decoder.decodeRepeatedInt32Field(value: &_storage._packedInt32) }()
|
|
|
case 76: try { try decoder.decodeRepeatedInt64Field(value: &_storage._packedInt64) }()
|
|
|
case 77: try { try decoder.decodeRepeatedUInt32Field(value: &_storage._packedUint32) }()
|
|
|
@@ -2171,7 +2171,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
@@ -2307,61 +2307,61 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message,
|
|
|
try visitor.visitRepeatedStringField(value: _storage._repeatedCord, fieldNumber: 55)
|
|
|
}
|
|
|
if !_storage._mapInt32Int32.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufInt32>.self, value: _storage._mapInt32Int32, fieldNumber: 56)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt32,SwiftProtobufCore.ProtobufInt32>.self, value: _storage._mapInt32Int32, fieldNumber: 56)
|
|
|
}
|
|
|
if !_storage._mapInt64Int64.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt64,SwiftProtobuf.ProtobufInt64>.self, value: _storage._mapInt64Int64, fieldNumber: 57)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt64,SwiftProtobufCore.ProtobufInt64>.self, value: _storage._mapInt64Int64, fieldNumber: 57)
|
|
|
}
|
|
|
if !_storage._mapUint32Uint32.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufUInt32,SwiftProtobuf.ProtobufUInt32>.self, value: _storage._mapUint32Uint32, fieldNumber: 58)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufUInt32,SwiftProtobufCore.ProtobufUInt32>.self, value: _storage._mapUint32Uint32, fieldNumber: 58)
|
|
|
}
|
|
|
if !_storage._mapUint64Uint64.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufUInt64,SwiftProtobuf.ProtobufUInt64>.self, value: _storage._mapUint64Uint64, fieldNumber: 59)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufUInt64,SwiftProtobufCore.ProtobufUInt64>.self, value: _storage._mapUint64Uint64, fieldNumber: 59)
|
|
|
}
|
|
|
if !_storage._mapSint32Sint32.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSInt32,SwiftProtobuf.ProtobufSInt32>.self, value: _storage._mapSint32Sint32, fieldNumber: 60)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSInt32,SwiftProtobufCore.ProtobufSInt32>.self, value: _storage._mapSint32Sint32, fieldNumber: 60)
|
|
|
}
|
|
|
if !_storage._mapSint64Sint64.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSInt64,SwiftProtobuf.ProtobufSInt64>.self, value: _storage._mapSint64Sint64, fieldNumber: 61)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSInt64,SwiftProtobufCore.ProtobufSInt64>.self, value: _storage._mapSint64Sint64, fieldNumber: 61)
|
|
|
}
|
|
|
if !_storage._mapFixed32Fixed32.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufFixed32,SwiftProtobuf.ProtobufFixed32>.self, value: _storage._mapFixed32Fixed32, fieldNumber: 62)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufFixed32,SwiftProtobufCore.ProtobufFixed32>.self, value: _storage._mapFixed32Fixed32, fieldNumber: 62)
|
|
|
}
|
|
|
if !_storage._mapFixed64Fixed64.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufFixed64,SwiftProtobuf.ProtobufFixed64>.self, value: _storage._mapFixed64Fixed64, fieldNumber: 63)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufFixed64,SwiftProtobufCore.ProtobufFixed64>.self, value: _storage._mapFixed64Fixed64, fieldNumber: 63)
|
|
|
}
|
|
|
if !_storage._mapSfixed32Sfixed32.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSFixed32,SwiftProtobuf.ProtobufSFixed32>.self, value: _storage._mapSfixed32Sfixed32, fieldNumber: 64)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSFixed32,SwiftProtobufCore.ProtobufSFixed32>.self, value: _storage._mapSfixed32Sfixed32, fieldNumber: 64)
|
|
|
}
|
|
|
if !_storage._mapSfixed64Sfixed64.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufSFixed64,SwiftProtobuf.ProtobufSFixed64>.self, value: _storage._mapSfixed64Sfixed64, fieldNumber: 65)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufSFixed64,SwiftProtobufCore.ProtobufSFixed64>.self, value: _storage._mapSfixed64Sfixed64, fieldNumber: 65)
|
|
|
}
|
|
|
if !_storage._mapInt32Float.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufFloat>.self, value: _storage._mapInt32Float, fieldNumber: 66)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt32,SwiftProtobufCore.ProtobufFloat>.self, value: _storage._mapInt32Float, fieldNumber: 66)
|
|
|
}
|
|
|
if !_storage._mapInt32Double.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufDouble>.self, value: _storage._mapInt32Double, fieldNumber: 67)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufInt32,SwiftProtobufCore.ProtobufDouble>.self, value: _storage._mapInt32Double, fieldNumber: 67)
|
|
|
}
|
|
|
if !_storage._mapBoolBool.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufBool,SwiftProtobuf.ProtobufBool>.self, value: _storage._mapBoolBool, fieldNumber: 68)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufBool,SwiftProtobufCore.ProtobufBool>.self, value: _storage._mapBoolBool, fieldNumber: 68)
|
|
|
}
|
|
|
if !_storage._mapStringString.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: _storage._mapStringString, fieldNumber: 69)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufString,SwiftProtobufCore.ProtobufString>.self, value: _storage._mapStringString, fieldNumber: 69)
|
|
|
}
|
|
|
if !_storage._mapStringBytes.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufBytes>.self, value: _storage._mapStringBytes, fieldNumber: 70)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMap<SwiftProtobufCore.ProtobufString,SwiftProtobufCore.ProtobufBytes>.self, value: _storage._mapStringBytes, fieldNumber: 70)
|
|
|
}
|
|
|
if !_storage._mapStringNestedMessage.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage>.self, value: _storage._mapStringNestedMessage, fieldNumber: 71)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMessageMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage>.self, value: _storage._mapStringNestedMessage, fieldNumber: 71)
|
|
|
}
|
|
|
if !_storage._mapStringForeignMessage.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_ForeignMessageProto2>.self, value: _storage._mapStringForeignMessage, fieldNumber: 72)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufMessageMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_ForeignMessageProto2>.self, value: _storage._mapStringForeignMessage, fieldNumber: 72)
|
|
|
}
|
|
|
if !_storage._mapStringNestedEnum.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufEnumMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum>.self, value: _storage._mapStringNestedEnum, fieldNumber: 73)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufEnumMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum>.self, value: _storage._mapStringNestedEnum, fieldNumber: 73)
|
|
|
}
|
|
|
if !_storage._mapStringForeignEnum.isEmpty {
|
|
|
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufEnumMap<SwiftProtobuf.ProtobufString,ProtobufTestMessages_Proto2_ForeignEnumProto2>.self, value: _storage._mapStringForeignEnum, fieldNumber: 74)
|
|
|
+ try visitor.visitMapField(fieldType: SwiftProtobufCore._ProtobufEnumMap<SwiftProtobufCore.ProtobufString,ProtobufTestMessages_Proto2_ForeignEnumProto2>.self, value: _storage._mapStringForeignEnum, fieldNumber: 74)
|
|
|
}
|
|
|
if !_storage._packedInt32.isEmpty {
|
|
|
try visitor.visitPackedInt32Field(value: _storage._packedInt32, fieldNumber: 75)
|
|
|
@@ -2733,8 +2733,8 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum: SwiftProtobuf._ProtoNameProviding {
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum: SwiftProtobufCore._ProtoNameProviding {
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
-1: .same(proto: "NEG"),
|
|
|
0: .same(proto: "FOO"),
|
|
|
1: .same(proto: "BAR"),
|
|
|
@@ -2742,9 +2742,9 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedEnum: SwiftProtob
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = ProtobufTestMessages_Proto2_TestAllTypesProto2.protoMessageName + ".NestedMessage"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1: .same(proto: "a"),
|
|
|
2: .same(proto: "corecursive"),
|
|
|
]
|
|
|
@@ -2777,7 +2777,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage: SwiftPro
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
_ = _uniqueStorage()
|
|
|
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
@@ -2793,7 +2793,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage: SwiftPro
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
@@ -2825,14 +2825,14 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage: SwiftPro
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2.DataMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2.DataMessage: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = ProtobufTestMessages_Proto2_TestAllTypesProto2.protoMessageName + ".Data"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
202: .standard(proto: "group_int32"),
|
|
|
203: .standard(proto: "group_uint32"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -2845,7 +2845,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.DataMessage: SwiftProto
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -2867,20 +2867,20 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.DataMessage: SwiftProto
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = ProtobufTestMessages_Proto2_TestAllTypesProto2.protoMessageName + ".MessageSetCorrect"
|
|
|
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
|
+ static let _protobuf_nameMap = SwiftProtobufCore._NameMap()
|
|
|
|
|
|
public var isInitialized: Bool {
|
|
|
if !_protobuf_extensionFieldValues.isInitialized {return false}
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
try decoder.decodeExtensionFieldsAsMessageSet(values: &_protobuf_extensionFieldValues, messageType: ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect.self)
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
try visitor.visitExtensionFieldsAsMessageSet(fields: _protobuf_extensionFieldValues, start: 4, end: 2147483647)
|
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
|
}
|
|
|
@@ -2892,13 +2892,13 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrect: Swif
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension1: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension1: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = ProtobufTestMessages_Proto2_TestAllTypesProto2.protoMessageName + ".MessageSetCorrectExtension1"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
25: .same(proto: "str"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -2910,7 +2910,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtens
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -2928,13 +2928,13 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtens
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtension2: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = ProtobufTestMessages_Proto2_TestAllTypesProto2.protoMessageName + ".MessageSetCorrectExtension2"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
9: .same(proto: "i"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -2946,7 +2946,7 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtens
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -2964,13 +2964,13 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.MessageSetCorrectExtens
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_ForeignMessageProto2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_ForeignMessageProto2: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".ForeignMessageProto2"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1: .same(proto: "c"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -2982,7 +2982,7 @@ extension ProtobufTestMessages_Proto2_ForeignMessageProto2: SwiftProtobuf.Messag
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -3000,9 +3000,9 @@ extension ProtobufTestMessages_Proto2_ForeignMessageProto2: SwiftProtobuf.Messag
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".UnknownToTestAllTypes"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1001: .standard(proto: "optional_int32"),
|
|
|
1002: .standard(proto: "optional_string"),
|
|
|
1003: .standard(proto: "nested_message"),
|
|
|
@@ -3011,7 +3011,7 @@ extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes: SwiftProtobuf.Messa
|
|
|
1011: .standard(proto: "repeated_int32"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -3028,7 +3028,7 @@ extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes: SwiftProtobuf.Messa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -3066,13 +3066,13 @@ extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes: SwiftProtobuf.Messa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes.OptionalGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes.OptionalGroup: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = ProtobufTestMessages_Proto2_UnknownToTestAllTypes.protoMessageName + ".OptionalGroup"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1: .same(proto: "a"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -3084,7 +3084,7 @@ extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes.OptionalGroup: Swift
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -3102,16 +3102,16 @@ extension ProtobufTestMessages_Proto2_UnknownToTestAllTypes.OptionalGroup: Swift
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_NullHypothesisProto2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_NullHypothesisProto2: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".NullHypothesisProto2"
|
|
|
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
|
+ static let _protobuf_nameMap = SwiftProtobufCore._NameMap()
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let _ = try decoder.nextFieldNumber() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
|
}
|
|
|
|
|
|
@@ -3121,16 +3121,16 @@ extension ProtobufTestMessages_Proto2_NullHypothesisProto2: SwiftProtobuf.Messag
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_EnumOnlyProto2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_EnumOnlyProto2: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".EnumOnlyProto2"
|
|
|
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
|
+ static let _protobuf_nameMap = SwiftProtobufCore._NameMap()
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let _ = try decoder.nextFieldNumber() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
|
}
|
|
|
|
|
|
@@ -3140,20 +3140,20 @@ extension ProtobufTestMessages_Proto2_EnumOnlyProto2: SwiftProtobuf.Message, Swi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_EnumOnlyProto2.BoolEnum: SwiftProtobuf._ProtoNameProviding {
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+extension ProtobufTestMessages_Proto2_EnumOnlyProto2.BoolEnum: SwiftProtobufCore._ProtoNameProviding {
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
0: .same(proto: "kFalse"),
|
|
|
1: .same(proto: "kTrue"),
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_OneStringProto2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_OneStringProto2: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".OneStringProto2"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1: .same(proto: "data"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -3165,7 +3165,7 @@ extension ProtobufTestMessages_Proto2_OneStringProto2: SwiftProtobuf.Message, Sw
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
|
@@ -3183,15 +3183,15 @@ extension ProtobufTestMessages_Proto2_OneStringProto2: SwiftProtobuf.Message, Sw
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension ProtobufTestMessages_Proto2_ProtoWithKeywords: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
+extension ProtobufTestMessages_Proto2_ProtoWithKeywords: SwiftProtobufCore.Message, SwiftProtobufCore._MessageImplementationBase, SwiftProtobufCore._ProtoNameProviding {
|
|
|
static let protoMessageName: String = _protobuf_package + ".ProtoWithKeywords"
|
|
|
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
+ static let _protobuf_nameMap: SwiftProtobufCore._NameMap = [
|
|
|
1: .same(proto: "inline"),
|
|
|
2: .same(proto: "concept"),
|
|
|
3: .same(proto: "requires"),
|
|
|
]
|
|
|
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
+ mutating func decodeMessage<D: SwiftProtobufCore.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every case branch when no optimizations are
|
|
|
@@ -3205,7 +3205,7 @@ extension ProtobufTestMessages_Proto2_ProtoWithKeywords: SwiftProtobuf.Message,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
+ func traverse<V: SwiftProtobufCore.Visitor>(visitor: inout V) throws {
|
|
|
// The use of inline closures is to circumvent an issue where the compiler
|
|
|
// allocates stack space for every if/case branch local when no optimizations
|
|
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|