|
|
@@ -1,113 +0,0 @@
|
|
|
-// DO NOT EDIT.
|
|
|
-//
|
|
|
-// Generated by the Swift generator plugin for the protocol buffer compiler.
|
|
|
-// Source: unittest_swift_größ.proto
|
|
|
-//
|
|
|
-// For information on using the generated types, please see the documentation:
|
|
|
-// https://github.com/apple/swift-protobuf/
|
|
|
-
|
|
|
-// Protos/unittest_swift_größ.proto - test proto
|
|
|
-//
|
|
|
-// This source file is part of the Swift.org open source project
|
|
|
-//
|
|
|
-// Copyright (c) 2020 Apple Inc. and the Swift project authors
|
|
|
-// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
-//
|
|
|
-// See http://swift.org/LICENSE.txt for license information
|
|
|
-// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
|
-//
|
|
|
-// -----------------------------------------------------------------------------
|
|
|
-///
|
|
|
-/// Test Swift reserved words used as enum or message names
|
|
|
-///
|
|
|
-// -----------------------------------------------------------------------------
|
|
|
-
|
|
|
-import Foundation
|
|
|
-import SwiftProtobuf
|
|
|
-
|
|
|
-// 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 _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
|
|
|
- typealias Version = _2
|
|
|
-}
|
|
|
-
|
|
|
-struct ToExtend: SwiftProtobuf.ExtensibleMessage {
|
|
|
- // 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.
|
|
|
-
|
|
|
- var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
-
|
|
|
- init() {}
|
|
|
-
|
|
|
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
|
|
|
-}
|
|
|
-
|
|
|
-// MARK: - Extension support defined in unittest_swift_größ.proto.
|
|
|
-
|
|
|
-extension ToExtend {
|
|
|
-
|
|
|
- var added: Int32 {
|
|
|
- get {return getExtensionValue(ext: Extensions_added) ?? 0}
|
|
|
- set {setExtensionValue(ext: Extensions_added, value: newValue)}
|
|
|
- }
|
|
|
- /// Returns true if extension `Extensions_added`
|
|
|
- /// has been explicitly set.
|
|
|
- var hasAdded: Bool {
|
|
|
- return hasExtensionValue(ext: Extensions_added)
|
|
|
- }
|
|
|
- /// Clears the value of extension `Extensions_added`.
|
|
|
- /// Subsequent reads from it will return its default value.
|
|
|
- mutating func clearAdded() {
|
|
|
- clearExtensionValue(ext: Extensions_added)
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-/// A `SwiftProtobuf.SimpleExtensionMap` that includes all of the extensions defined by
|
|
|
-/// 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 UnittestSwiftGröß_Extensions: SwiftProtobuf.SimpleExtensionMap = [
|
|
|
- Extensions_added
|
|
|
-]
|
|
|
-
|
|
|
-let Extensions_added = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, ToExtend>(
|
|
|
- _protobuf_fieldNumber: 101,
|
|
|
- fieldName: "added"
|
|
|
-)
|
|
|
-
|
|
|
-// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
|
-
|
|
|
-extension ToExtend: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
- static let protoMessageName: String = "ToExtend"
|
|
|
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
|
-
|
|
|
- public var isInitialized: Bool {
|
|
|
- if !_protobuf_extensionFieldValues.isInitialized {return false}
|
|
|
- return true
|
|
|
- }
|
|
|
-
|
|
|
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
- while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
- if (1 <= fieldNumber && fieldNumber < 5001) {
|
|
|
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: ToExtend.self, fieldNumber: fieldNumber)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1, end: 5001)
|
|
|
- try unknownFields.traverse(visitor: &visitor)
|
|
|
- }
|
|
|
-
|
|
|
- static func ==(lhs: ToExtend, rhs: ToExtend) -> Bool {
|
|
|
- if lhs.unknownFields != rhs.unknownFields {return false}
|
|
|
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
|
|
|
- return true
|
|
|
- }
|
|
|
-}
|