diff --git a/ios/Sources/Wire/ipx.pb.swift b/ios/Sources/Wire/ipx.pb.swift index 44c81bc..15443c5 100644 --- a/ios/Sources/Wire/ipx.pb.swift +++ b/ios/Sources/Wire/ipx.pb.swift @@ -1151,6 +1151,45 @@ nonisolated struct Ipx_PlaylistRows: Sendable { init() {} } +/// One season of a podcast in GET /api/feeds/{id}/seasons (#482): its number, unset for the +/// episodes that name none, how many episodes it has and how many are unread. +nonisolated struct Ipx_SeasonRow: 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. + + var season: Int64 { + get {_season ?? 0} + set {_season = newValue} + } + /// Returns true if `season` has been explicitly set. + var hasSeason: Bool {self._season != nil} + /// Clears the value of `season`. Subsequent reads from it will return its default value. + mutating func clearSeason() {self._season = nil} + + var episodes: Int64 = 0 + + var unread: Int64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _season: Int64? = nil +} + +nonisolated struct Ipx_SeasonRows: 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. + + var items: [Ipx_SeasonRow] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + /// POST /api/playlists, the answer. nonisolated struct Ipx_PlaylistId: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the @@ -3878,6 +3917,80 @@ nonisolated extension Ipx_PlaylistRows: SwiftProtobuf.Message, SwiftProtobuf._Me } } +nonisolated extension Ipx_SeasonRow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".SeasonRow" + static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}season\0\u{1}episodes\0\u{1}unread\0") + + mutating func decodeMessage(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 + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularInt64Field(value: &self._season) }() + case 2: try { try decoder.decodeSingularInt64Field(value: &self.episodes) }() + case 3: try { try decoder.decodeSingularInt64Field(value: &self.unread) }() + default: break + } + } + } + + func traverse(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 + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._season { + try visitor.visitSingularInt64Field(value: v, fieldNumber: 1) + } }() + if self.episodes != 0 { + try visitor.visitSingularInt64Field(value: self.episodes, fieldNumber: 2) + } + if self.unread != 0 { + try visitor.visitSingularInt64Field(value: self.unread, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Ipx_SeasonRow, rhs: Ipx_SeasonRow) -> Bool { + if lhs._season != rhs._season {return false} + if lhs.episodes != rhs.episodes {return false} + if lhs.unread != rhs.unread {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +nonisolated extension Ipx_SeasonRows: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".SeasonRows" + static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}items\0") + + mutating func decodeMessage(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 + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.items) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.items.isEmpty { + try visitor.visitRepeatedMessageField(value: self.items, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Ipx_SeasonRows, rhs: Ipx_SeasonRows) -> Bool { + if lhs.items != rhs.items {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + nonisolated extension Ipx_PlaylistId: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".PlaylistId" static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0")