ipx.proto gained FeedRow.podcast, the playlist messages and Up Next's queue on the listening branch without ios/scripts/proto.sh being run, since this machine had no generator. It has one now: protoc from apt and protoc-gen-swift 1.41.0 built from source in Swift's image, both in /src/install.sh. directory.pb.swift comes out byte for byte as the Mac made it, so the Linux build of the generator writes the same code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
This commit is contained in:
@@ -516,6 +516,12 @@ nonisolated struct Ipx_FeedRow: @unchecked Sendable {
|
|||||||
set {_uniqueStorage()._privateByAddress = newValue}
|
set {_uniqueStorage()._privateByAddress = newValue}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Has an audio or video file: on the Podcasts shelf (#474).
|
||||||
|
var podcast: Bool {
|
||||||
|
get {_storage._podcast}
|
||||||
|
set {_uniqueStorage()._podcast = newValue}
|
||||||
|
}
|
||||||
|
|
||||||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||||||
|
|
||||||
init() {}
|
init() {}
|
||||||
@@ -1087,6 +1093,105 @@ nonisolated struct Ipx_EntryPage: Sendable {
|
|||||||
init() {}
|
init() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// POST /api/playlists and PATCH /api/playlists/{id}, the body: a smart playlist (#476).
|
||||||
|
nonisolated struct Ipx_PlaylistSpec: 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 name: String = String()
|
||||||
|
|
||||||
|
var feeds: [String] = []
|
||||||
|
|
||||||
|
var priority: [String] = []
|
||||||
|
|
||||||
|
var onlyUnplayed: Bool = false
|
||||||
|
|
||||||
|
var oldestFirst: Bool = false
|
||||||
|
|
||||||
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||||||
|
|
||||||
|
init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// A playlist in GET /api/playlists, with how many episodes it holds now.
|
||||||
|
nonisolated struct Ipx_PlaylistRow: 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 id: Int64 = 0
|
||||||
|
|
||||||
|
var name: String = String()
|
||||||
|
|
||||||
|
var feeds: [String] = []
|
||||||
|
|
||||||
|
var priority: [String] = []
|
||||||
|
|
||||||
|
var onlyUnplayed: Bool = false
|
||||||
|
|
||||||
|
var oldestFirst: Bool = false
|
||||||
|
|
||||||
|
var items: Int64 = 0
|
||||||
|
|
||||||
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||||||
|
|
||||||
|
init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
nonisolated struct Ipx_PlaylistRows: 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_PlaylistRow] = []
|
||||||
|
|
||||||
|
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
|
||||||
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
||||||
|
// methods supported on all messages.
|
||||||
|
|
||||||
|
var id: Int64 = 0
|
||||||
|
|
||||||
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||||||
|
|
||||||
|
init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// One of Up Next's episodes (#473).
|
||||||
|
nonisolated struct Ipx_QueueItem: 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 feedID: String = String()
|
||||||
|
|
||||||
|
var guid: String = String()
|
||||||
|
|
||||||
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||||||
|
|
||||||
|
init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// PUT /api/queue, the body: Up Next in its new order. The answer is it as saved, an EntryPage.
|
||||||
|
nonisolated struct Ipx_QueueItems: 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_QueueItem] = []
|
||||||
|
|
||||||
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||||||
|
|
||||||
|
init() {}
|
||||||
|
}
|
||||||
|
|
||||||
/// POST /api/entries/{feed_id}/{guid}/flags, the body. The answer is the feed's FeedRow, or JSON
|
/// POST /api/entries/{feed_id}/{guid}/flags, the body. The answer is the feed's FeedRow, or JSON
|
||||||
/// null when the feed is not yours.
|
/// null when the feed is not yours.
|
||||||
nonisolated struct Ipx_Flags: Sendable {
|
nonisolated struct Ipx_Flags: Sendable {
|
||||||
@@ -2678,7 +2783,7 @@ nonisolated extension Ipx_FailingRow: SwiftProtobuf.Message, SwiftProtobuf._Mess
|
|||||||
|
|
||||||
nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
static let protoMessageName: String = _protobuf_package + ".FeedRow"
|
static let protoMessageName: String = _protobuf_package + ".FeedRow"
|
||||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}url\0\u{1}title\0\u{1}image\0\u{1}folder\0\u{1}category\0\u{3}feed_category\0\u{1}keywords\0\u{1}blocked\0\u{1}deadair\0\u{3}deadair_pause\0\u{3}allow_explicit\0\u{3}auto_download\0\u{3}max_new_per_check\0\u{1}group\0\u{1}orphaned\0\u{1}managed\0\u{1}schedule\0\u{3}schedule_mins\0\u{3}every_mins\0\u{3}last_checked\0\u{3}next_check\0\u{3}last_error\0\u{1}failing\0\u{1}entries\0\u{1}downloaded\0\u{1}unread\0\u{1}subscribers\0\u{1}pinned\0\u{1}kept\0\u{3}hide_from_all\0\u{3}hide_from_signals\0\u{1}private\0\u{3}private_by_address\0")
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}url\0\u{1}title\0\u{1}image\0\u{1}folder\0\u{1}category\0\u{3}feed_category\0\u{1}keywords\0\u{1}blocked\0\u{1}deadair\0\u{3}deadair_pause\0\u{3}allow_explicit\0\u{3}auto_download\0\u{3}max_new_per_check\0\u{1}group\0\u{1}orphaned\0\u{1}managed\0\u{1}schedule\0\u{3}schedule_mins\0\u{3}every_mins\0\u{3}last_checked\0\u{3}next_check\0\u{3}last_error\0\u{1}failing\0\u{1}entries\0\u{1}downloaded\0\u{1}unread\0\u{1}subscribers\0\u{1}pinned\0\u{1}kept\0\u{3}hide_from_all\0\u{3}hide_from_signals\0\u{1}private\0\u{3}private_by_address\0\u{1}podcast\0")
|
||||||
|
|
||||||
fileprivate class _StorageClass {
|
fileprivate class _StorageClass {
|
||||||
var _id: String = String()
|
var _id: String = String()
|
||||||
@@ -2715,6 +2820,7 @@ nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|||||||
var _hideFromSignals: Bool = false
|
var _hideFromSignals: Bool = false
|
||||||
var _private: Bool = false
|
var _private: Bool = false
|
||||||
var _privateByAddress: Bool = false
|
var _privateByAddress: Bool = false
|
||||||
|
var _podcast: Bool = false
|
||||||
|
|
||||||
// This property is used as the initial default value for new instances of the type.
|
// 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.
|
// The type itself is protecting the reference to its storage via CoW semantics.
|
||||||
@@ -2759,6 +2865,7 @@ nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|||||||
_hideFromSignals = source._hideFromSignals
|
_hideFromSignals = source._hideFromSignals
|
||||||
_private = source._private
|
_private = source._private
|
||||||
_privateByAddress = source._privateByAddress
|
_privateByAddress = source._privateByAddress
|
||||||
|
_podcast = source._podcast
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2811,6 +2918,7 @@ nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|||||||
case 32: try { try decoder.decodeSingularBoolField(value: &_storage._hideFromSignals) }()
|
case 32: try { try decoder.decodeSingularBoolField(value: &_storage._hideFromSignals) }()
|
||||||
case 33: try { try decoder.decodeSingularBoolField(value: &_storage._private) }()
|
case 33: try { try decoder.decodeSingularBoolField(value: &_storage._private) }()
|
||||||
case 34: try { try decoder.decodeSingularBoolField(value: &_storage._privateByAddress) }()
|
case 34: try { try decoder.decodeSingularBoolField(value: &_storage._privateByAddress) }()
|
||||||
|
case 35: try { try decoder.decodeSingularBoolField(value: &_storage._podcast) }()
|
||||||
default: break
|
default: break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2925,6 +3033,9 @@ nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|||||||
if _storage._privateByAddress != false {
|
if _storage._privateByAddress != false {
|
||||||
try visitor.visitSingularBoolField(value: _storage._privateByAddress, fieldNumber: 34)
|
try visitor.visitSingularBoolField(value: _storage._privateByAddress, fieldNumber: 34)
|
||||||
}
|
}
|
||||||
|
if _storage._podcast != false {
|
||||||
|
try visitor.visitSingularBoolField(value: _storage._podcast, fieldNumber: 35)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
try unknownFields.traverse(visitor: &visitor)
|
try unknownFields.traverse(visitor: &visitor)
|
||||||
}
|
}
|
||||||
@@ -2968,6 +3079,7 @@ nonisolated extension Ipx_FeedRow: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|||||||
if _storage._hideFromSignals != rhs_storage._hideFromSignals {return false}
|
if _storage._hideFromSignals != rhs_storage._hideFromSignals {return false}
|
||||||
if _storage._private != rhs_storage._private {return false}
|
if _storage._private != rhs_storage._private {return false}
|
||||||
if _storage._privateByAddress != rhs_storage._privateByAddress {return false}
|
if _storage._privateByAddress != rhs_storage._privateByAddress {return false}
|
||||||
|
if _storage._podcast != rhs_storage._podcast {return false}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if !storagesAreEqual {return false}
|
if !storagesAreEqual {return false}
|
||||||
@@ -3626,6 +3738,241 @@ nonisolated extension Ipx_EntryPage: SwiftProtobuf.Message, SwiftProtobuf._Messa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nonisolated extension Ipx_PlaylistSpec: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
|
static let protoMessageName: String = _protobuf_package + ".PlaylistSpec"
|
||||||
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}name\0\u{1}feeds\0\u{1}priority\0\u{3}only_unplayed\0\u{3}oldest_first\0")
|
||||||
|
|
||||||
|
mutating func decodeMessage<D: SwiftProtobuf.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
|
||||||
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
||||||
|
switch fieldNumber {
|
||||||
|
case 1: try { try decoder.decodeSingularStringField(value: &self.name) }()
|
||||||
|
case 2: try { try decoder.decodeRepeatedStringField(value: &self.feeds) }()
|
||||||
|
case 3: try { try decoder.decodeRepeatedStringField(value: &self.priority) }()
|
||||||
|
case 4: try { try decoder.decodeSingularBoolField(value: &self.onlyUnplayed) }()
|
||||||
|
case 5: try { try decoder.decodeSingularBoolField(value: &self.oldestFirst) }()
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||||||
|
if !self.name.isEmpty {
|
||||||
|
try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
|
||||||
|
}
|
||||||
|
if !self.feeds.isEmpty {
|
||||||
|
try visitor.visitRepeatedStringField(value: self.feeds, fieldNumber: 2)
|
||||||
|
}
|
||||||
|
if !self.priority.isEmpty {
|
||||||
|
try visitor.visitRepeatedStringField(value: self.priority, fieldNumber: 3)
|
||||||
|
}
|
||||||
|
if self.onlyUnplayed != false {
|
||||||
|
try visitor.visitSingularBoolField(value: self.onlyUnplayed, fieldNumber: 4)
|
||||||
|
}
|
||||||
|
if self.oldestFirst != false {
|
||||||
|
try visitor.visitSingularBoolField(value: self.oldestFirst, fieldNumber: 5)
|
||||||
|
}
|
||||||
|
try unknownFields.traverse(visitor: &visitor)
|
||||||
|
}
|
||||||
|
|
||||||
|
static func ==(lhs: Ipx_PlaylistSpec, rhs: Ipx_PlaylistSpec) -> Bool {
|
||||||
|
if lhs.name != rhs.name {return false}
|
||||||
|
if lhs.feeds != rhs.feeds {return false}
|
||||||
|
if lhs.priority != rhs.priority {return false}
|
||||||
|
if lhs.onlyUnplayed != rhs.onlyUnplayed {return false}
|
||||||
|
if lhs.oldestFirst != rhs.oldestFirst {return false}
|
||||||
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nonisolated extension Ipx_PlaylistRow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
|
static let protoMessageName: String = _protobuf_package + ".PlaylistRow"
|
||||||
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}name\0\u{1}feeds\0\u{1}priority\0\u{3}only_unplayed\0\u{3}oldest_first\0\u{1}items\0")
|
||||||
|
|
||||||
|
mutating func decodeMessage<D: SwiftProtobuf.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
|
||||||
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
||||||
|
switch fieldNumber {
|
||||||
|
case 1: try { try decoder.decodeSingularInt64Field(value: &self.id) }()
|
||||||
|
case 2: try { try decoder.decodeSingularStringField(value: &self.name) }()
|
||||||
|
case 3: try { try decoder.decodeRepeatedStringField(value: &self.feeds) }()
|
||||||
|
case 4: try { try decoder.decodeRepeatedStringField(value: &self.priority) }()
|
||||||
|
case 5: try { try decoder.decodeSingularBoolField(value: &self.onlyUnplayed) }()
|
||||||
|
case 6: try { try decoder.decodeSingularBoolField(value: &self.oldestFirst) }()
|
||||||
|
case 7: try { try decoder.decodeSingularInt64Field(value: &self.items) }()
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||||||
|
if self.id != 0 {
|
||||||
|
try visitor.visitSingularInt64Field(value: self.id, fieldNumber: 1)
|
||||||
|
}
|
||||||
|
if !self.name.isEmpty {
|
||||||
|
try visitor.visitSingularStringField(value: self.name, fieldNumber: 2)
|
||||||
|
}
|
||||||
|
if !self.feeds.isEmpty {
|
||||||
|
try visitor.visitRepeatedStringField(value: self.feeds, fieldNumber: 3)
|
||||||
|
}
|
||||||
|
if !self.priority.isEmpty {
|
||||||
|
try visitor.visitRepeatedStringField(value: self.priority, fieldNumber: 4)
|
||||||
|
}
|
||||||
|
if self.onlyUnplayed != false {
|
||||||
|
try visitor.visitSingularBoolField(value: self.onlyUnplayed, fieldNumber: 5)
|
||||||
|
}
|
||||||
|
if self.oldestFirst != false {
|
||||||
|
try visitor.visitSingularBoolField(value: self.oldestFirst, fieldNumber: 6)
|
||||||
|
}
|
||||||
|
if self.items != 0 {
|
||||||
|
try visitor.visitSingularInt64Field(value: self.items, fieldNumber: 7)
|
||||||
|
}
|
||||||
|
try unknownFields.traverse(visitor: &visitor)
|
||||||
|
}
|
||||||
|
|
||||||
|
static func ==(lhs: Ipx_PlaylistRow, rhs: Ipx_PlaylistRow) -> Bool {
|
||||||
|
if lhs.id != rhs.id {return false}
|
||||||
|
if lhs.name != rhs.name {return false}
|
||||||
|
if lhs.feeds != rhs.feeds {return false}
|
||||||
|
if lhs.priority != rhs.priority {return false}
|
||||||
|
if lhs.onlyUnplayed != rhs.onlyUnplayed {return false}
|
||||||
|
if lhs.oldestFirst != rhs.oldestFirst {return false}
|
||||||
|
if lhs.items != rhs.items {return false}
|
||||||
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nonisolated extension Ipx_PlaylistRows: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
|
static let protoMessageName: String = _protobuf_package + ".PlaylistRows"
|
||||||
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}items\0")
|
||||||
|
|
||||||
|
mutating func decodeMessage<D: SwiftProtobuf.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
|
||||||
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
||||||
|
switch fieldNumber {
|
||||||
|
case 1: try { try decoder.decodeRepeatedMessageField(value: &self.items) }()
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func traverse<V: SwiftProtobuf.Visitor>(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_PlaylistRows, rhs: Ipx_PlaylistRows) -> 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")
|
||||||
|
|
||||||
|
mutating func decodeMessage<D: SwiftProtobuf.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
|
||||||
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
||||||
|
switch fieldNumber {
|
||||||
|
case 1: try { try decoder.decodeSingularInt64Field(value: &self.id) }()
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||||||
|
if self.id != 0 {
|
||||||
|
try visitor.visitSingularInt64Field(value: self.id, fieldNumber: 1)
|
||||||
|
}
|
||||||
|
try unknownFields.traverse(visitor: &visitor)
|
||||||
|
}
|
||||||
|
|
||||||
|
static func ==(lhs: Ipx_PlaylistId, rhs: Ipx_PlaylistId) -> Bool {
|
||||||
|
if lhs.id != rhs.id {return false}
|
||||||
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nonisolated extension Ipx_QueueItem: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
|
static let protoMessageName: String = _protobuf_package + ".QueueItem"
|
||||||
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}feed_id\0\u{1}guid\0")
|
||||||
|
|
||||||
|
mutating func decodeMessage<D: SwiftProtobuf.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
|
||||||
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
||||||
|
switch fieldNumber {
|
||||||
|
case 1: try { try decoder.decodeSingularStringField(value: &self.feedID) }()
|
||||||
|
case 2: try { try decoder.decodeSingularStringField(value: &self.guid) }()
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||||||
|
if !self.feedID.isEmpty {
|
||||||
|
try visitor.visitSingularStringField(value: self.feedID, fieldNumber: 1)
|
||||||
|
}
|
||||||
|
if !self.guid.isEmpty {
|
||||||
|
try visitor.visitSingularStringField(value: self.guid, fieldNumber: 2)
|
||||||
|
}
|
||||||
|
try unknownFields.traverse(visitor: &visitor)
|
||||||
|
}
|
||||||
|
|
||||||
|
static func ==(lhs: Ipx_QueueItem, rhs: Ipx_QueueItem) -> Bool {
|
||||||
|
if lhs.feedID != rhs.feedID {return false}
|
||||||
|
if lhs.guid != rhs.guid {return false}
|
||||||
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nonisolated extension Ipx_QueueItems: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
|
static let protoMessageName: String = _protobuf_package + ".QueueItems"
|
||||||
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}items\0")
|
||||||
|
|
||||||
|
mutating func decodeMessage<D: SwiftProtobuf.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
|
||||||
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
||||||
|
switch fieldNumber {
|
||||||
|
case 1: try { try decoder.decodeRepeatedMessageField(value: &self.items) }()
|
||||||
|
default: break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func traverse<V: SwiftProtobuf.Visitor>(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_QueueItems, rhs: Ipx_QueueItems) -> Bool {
|
||||||
|
if lhs.items != rhs.items {return false}
|
||||||
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nonisolated extension Ipx_Flags: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
nonisolated extension Ipx_Flags: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||||||
static let protoMessageName: String = _protobuf_package + ".Flags"
|
static let protoMessageName: String = _protobuf_package + ".Flags"
|
||||||
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}read\0\u{1}flagged\0")
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}read\0\u{1}flagged\0")
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
# The app's protobuf messages (#469), generated from the .proto files ipx serves them by
|
# The app's protobuf messages (#469), generated from the .proto files ipx serves them by
|
||||||
# (crates/wire/proto) into Sources/Wire, which is committed: XcodeGen and Xcode build it as it is,
|
# (crates/wire/proto) into Sources/Wire, which is committed: XcodeGen and Xcode build it as it is,
|
||||||
# with no protoc in the build. Run again after a change to those files. Needs protoc and
|
# with no protoc in the build. Run again after a change to those files. Needs protoc and
|
||||||
# protoc-gen-swift (`brew install protobuf swift-protobuf`), the generator at the version of the
|
# protoc-gen-swift, the generator at the version of the SwiftProtobuf package in project.yml, which
|
||||||
# SwiftProtobuf package in project.yml, which refuses code from another.
|
# refuses code from another: on a Mac `brew install protobuf swift-protobuf`, here /src/install.sh.
|
||||||
set -eu
|
set -eu
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
proto=../crates/wire/proto
|
proto=../crates/wire/proto
|
||||||
|
|||||||
Reference in New Issue
Block a user