The badge's and CarPlay's reads (/api/feeds, the entry lists) and the player's writes (position, flags) now go as application/x-protobuf, the messages generated from crates/wire/proto by ios/scripts/proto.sh into Sources/Wire, committed so the build needs no protoc. SwiftProtobuf is pinned to the generator's version, 1.41.0, whose code refuses another. A read whose answer is not protobuf counts as no answer: a server from before #465 answers JSON whatever it is asked, and JSON can decode as a message of nothing, which would have set the badge to zero. The outbox keeps its stored key, `json`, for the body, and marks the new writes protobuf, so places saved offline by an older build are still sent, as JSON. Built for the simulator with Xcode 27.2; not run against a server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
942 lines
38 KiB
Swift
942 lines
38 KiB
Swift
// DO NOT EDIT.
|
|
// swift-format-ignore-file
|
|
// swiftlint:disable all
|
|
//
|
|
// Generated by the Swift generator plugin for the protocol buffer compiler.
|
|
// Source: directory.proto
|
|
//
|
|
// For information on using the generated types, please see the documentation:
|
|
// https://github.com/apple/swift-protobuf/
|
|
|
|
/// ipx-directory's API under /v1 (crates/directory/src/wire.rs), each message named after the Rust
|
|
/// struct it mirrors. A field added there goes here too; debug builds refuse an answer with a field
|
|
/// missing here. A message whose only field is `repeated items` is a JSON array.
|
|
|
|
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 nonisolated struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
|
|
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
|
|
typealias Version = _2
|
|
}
|
|
|
|
/// GET /v1/me.
|
|
nonisolated struct Directory_Me: 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()
|
|
|
|
/// "ro", "rw" or "rwa".
|
|
var access: String = String()
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
nonisolated struct Directory_Listing: 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: String = String()
|
|
|
|
var url: String = String()
|
|
|
|
var title: String {
|
|
get {_title ?? String()}
|
|
set {_title = newValue}
|
|
}
|
|
/// Returns true if `title` has been explicitly set.
|
|
var hasTitle: Bool {self._title != nil}
|
|
/// Clears the value of `title`. Subsequent reads from it will return its default value.
|
|
mutating func clearTitle() {self._title = nil}
|
|
|
|
var image: String {
|
|
get {_image ?? String()}
|
|
set {_image = newValue}
|
|
}
|
|
/// Returns true if `image` has been explicitly set.
|
|
var hasImage: Bool {self._image != nil}
|
|
/// Clears the value of `image`. Subsequent reads from it will return its default value.
|
|
mutating func clearImage() {self._image = nil}
|
|
|
|
var category: String {
|
|
get {_category ?? String()}
|
|
set {_category = newValue}
|
|
}
|
|
/// Returns true if `category` has been explicitly set.
|
|
var hasCategory: Bool {self._category != nil}
|
|
/// Clears the value of `category`. Subsequent reads from it will return its default value.
|
|
mutating func clearCategory() {self._category = nil}
|
|
|
|
var subcategory: String {
|
|
get {_subcategory ?? String()}
|
|
set {_subcategory = newValue}
|
|
}
|
|
/// Returns true if `subcategory` has been explicitly set.
|
|
var hasSubcategory: Bool {self._subcategory != nil}
|
|
/// Clears the value of `subcategory`. Subsequent reads from it will return its default value.
|
|
mutating func clearSubcategory() {self._subcategory = nil}
|
|
|
|
var podcast: Bool = false
|
|
|
|
var subscribers: Int64 = 0
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
|
|
fileprivate var _title: String? = nil
|
|
fileprivate var _image: String? = nil
|
|
fileprivate var _category: String? = nil
|
|
fileprivate var _subcategory: String? = nil
|
|
}
|
|
|
|
/// GET /v1/feeds, GET /v1/popular.
|
|
nonisolated struct Directory_Listings: 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: [Directory_Listing] = []
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
nonisolated struct Directory_Item: 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 guid: String = String()
|
|
|
|
var title: String {
|
|
get {_title ?? String()}
|
|
set {_title = newValue}
|
|
}
|
|
/// Returns true if `title` has been explicitly set.
|
|
var hasTitle: Bool {self._title != nil}
|
|
/// Clears the value of `title`. Subsequent reads from it will return its default value.
|
|
mutating func clearTitle() {self._title = nil}
|
|
|
|
var link: String {
|
|
get {_link ?? String()}
|
|
set {_link = newValue}
|
|
}
|
|
/// Returns true if `link` has been explicitly set.
|
|
var hasLink: Bool {self._link != nil}
|
|
/// Clears the value of `link`. Subsequent reads from it will return its default value.
|
|
mutating func clearLink() {self._link = nil}
|
|
|
|
var published: Int64 {
|
|
get {_published ?? 0}
|
|
set {_published = newValue}
|
|
}
|
|
/// Returns true if `published` has been explicitly set.
|
|
var hasPublished: Bool {self._published != nil}
|
|
/// Clears the value of `published`. Subsequent reads from it will return its default value.
|
|
mutating func clearPublished() {self._published = nil}
|
|
|
|
var duration: Int64 {
|
|
get {_duration ?? 0}
|
|
set {_duration = newValue}
|
|
}
|
|
/// Returns true if `duration` has been explicitly set.
|
|
var hasDuration: Bool {self._duration != nil}
|
|
/// Clears the value of `duration`. Subsequent reads from it will return its default value.
|
|
mutating func clearDuration() {self._duration = nil}
|
|
|
|
var description_p: String {
|
|
get {_description_p ?? String()}
|
|
set {_description_p = newValue}
|
|
}
|
|
/// Returns true if `description_p` has been explicitly set.
|
|
var hasDescription_p: Bool {self._description_p != nil}
|
|
/// Clears the value of `description_p`. Subsequent reads from it will return its default value.
|
|
mutating func clearDescription_p() {self._description_p = nil}
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
|
|
fileprivate var _title: String? = nil
|
|
fileprivate var _link: String? = nil
|
|
fileprivate var _published: Int64? = nil
|
|
fileprivate var _duration: Int64? = nil
|
|
fileprivate var _description_p: String? = nil
|
|
}
|
|
|
|
/// GET /v1/feeds/{id}, POST /v1/feeds/{id}/refresh: a Listing's fields and these.
|
|
nonisolated struct Directory_FeedPage: 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: String = String()
|
|
|
|
var url: String = String()
|
|
|
|
var title: String {
|
|
get {_title ?? String()}
|
|
set {_title = newValue}
|
|
}
|
|
/// Returns true if `title` has been explicitly set.
|
|
var hasTitle: Bool {self._title != nil}
|
|
/// Clears the value of `title`. Subsequent reads from it will return its default value.
|
|
mutating func clearTitle() {self._title = nil}
|
|
|
|
var image: String {
|
|
get {_image ?? String()}
|
|
set {_image = newValue}
|
|
}
|
|
/// Returns true if `image` has been explicitly set.
|
|
var hasImage: Bool {self._image != nil}
|
|
/// Clears the value of `image`. Subsequent reads from it will return its default value.
|
|
mutating func clearImage() {self._image = nil}
|
|
|
|
var category: String {
|
|
get {_category ?? String()}
|
|
set {_category = newValue}
|
|
}
|
|
/// Returns true if `category` has been explicitly set.
|
|
var hasCategory: Bool {self._category != nil}
|
|
/// Clears the value of `category`. Subsequent reads from it will return its default value.
|
|
mutating func clearCategory() {self._category = nil}
|
|
|
|
var subcategory: String {
|
|
get {_subcategory ?? String()}
|
|
set {_subcategory = newValue}
|
|
}
|
|
/// Returns true if `subcategory` has been explicitly set.
|
|
var hasSubcategory: Bool {self._subcategory != nil}
|
|
/// Clears the value of `subcategory`. Subsequent reads from it will return its default value.
|
|
mutating func clearSubcategory() {self._subcategory = nil}
|
|
|
|
var podcast: Bool = false
|
|
|
|
var subscribers: Int64 = 0
|
|
|
|
var description_p: String {
|
|
get {_description_p ?? String()}
|
|
set {_description_p = newValue}
|
|
}
|
|
/// Returns true if `description_p` has been explicitly set.
|
|
var hasDescription_p: Bool {self._description_p != nil}
|
|
/// Clears the value of `description_p`. Subsequent reads from it will return its default value.
|
|
mutating func clearDescription_p() {self._description_p = nil}
|
|
|
|
var failing: String {
|
|
get {_failing ?? String()}
|
|
set {_failing = newValue}
|
|
}
|
|
/// Returns true if `failing` has been explicitly set.
|
|
var hasFailing: Bool {self._failing != nil}
|
|
/// Clears the value of `failing`. Subsequent reads from it will return its default value.
|
|
mutating func clearFailing() {self._failing = nil}
|
|
|
|
var items: [Directory_Item] = []
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
|
|
fileprivate var _title: String? = nil
|
|
fileprivate var _image: String? = nil
|
|
fileprivate var _category: String? = nil
|
|
fileprivate var _subcategory: String? = nil
|
|
fileprivate var _description_p: String? = nil
|
|
fileprivate var _failing: String? = nil
|
|
}
|
|
|
|
nonisolated struct Directory_SnapshotEntry: 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 url: String = String()
|
|
|
|
var subscribers: Int64 = 0
|
|
|
|
var category: String {
|
|
get {_category ?? String()}
|
|
set {_category = newValue}
|
|
}
|
|
/// Returns true if `category` has been explicitly set.
|
|
var hasCategory: Bool {self._category != nil}
|
|
/// Clears the value of `category`. Subsequent reads from it will return its default value.
|
|
mutating func clearCategory() {self._category = nil}
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
|
|
fileprivate var _category: String? = nil
|
|
}
|
|
|
|
/// POST /v1/snapshot, the body.
|
|
nonisolated struct Directory_Snapshot: 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: [Directory_SnapshotEntry] = []
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
/// POST /v1/snapshot, the answer.
|
|
nonisolated struct Directory_SnapshotResult: 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 accepted: UInt64 = 0
|
|
|
|
var refusedPrivate: UInt64 = 0
|
|
|
|
var refusedBlocked: UInt64 = 0
|
|
|
|
var refusedInvalid: UInt64 = 0
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
nonisolated struct Directory_Instance: 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: Int64 = 0
|
|
|
|
var subscribers: Int64 = 0
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
/// GET /v1/instances.
|
|
nonisolated struct Directory_Instances: 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: [Directory_Instance] = []
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
nonisolated struct Directory_Blocked: 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: String = String()
|
|
|
|
var url: String {
|
|
get {_url ?? String()}
|
|
set {_url = newValue}
|
|
}
|
|
/// Returns true if `url` has been explicitly set.
|
|
var hasURL: Bool {self._url != nil}
|
|
/// Clears the value of `url`. Subsequent reads from it will return its default value.
|
|
mutating func clearURL() {self._url = nil}
|
|
|
|
var title: String {
|
|
get {_title ?? String()}
|
|
set {_title = newValue}
|
|
}
|
|
/// Returns true if `title` has been explicitly set.
|
|
var hasTitle: Bool {self._title != nil}
|
|
/// Clears the value of `title`. Subsequent reads from it will return its default value.
|
|
mutating func clearTitle() {self._title = nil}
|
|
|
|
var at: Int64 = 0
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
|
|
fileprivate var _url: String? = nil
|
|
fileprivate var _title: String? = nil
|
|
}
|
|
|
|
/// GET /v1/blocked.
|
|
nonisolated struct Directory_BlockedList: 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: [Directory_Blocked] = []
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
init() {}
|
|
}
|
|
|
|
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
|
|
fileprivate nonisolated let _protobuf_package = "directory"
|
|
|
|
nonisolated extension Directory_Me: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Me"
|
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}name\0\u{1}access\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.decodeSingularStringField(value: &self.access) }()
|
|
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.access.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.access, fieldNumber: 2)
|
|
}
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_Me, rhs: Directory_Me) -> Bool {
|
|
if lhs.name != rhs.name {return false}
|
|
if lhs.access != rhs.access {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Listing: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Listing"
|
|
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}category\0\u{1}subcategory\0\u{1}podcast\0\u{1}subscribers\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.id) }()
|
|
case 2: try { try decoder.decodeSingularStringField(value: &self.url) }()
|
|
case 3: try { try decoder.decodeSingularStringField(value: &self._title) }()
|
|
case 4: try { try decoder.decodeSingularStringField(value: &self._image) }()
|
|
case 5: try { try decoder.decodeSingularStringField(value: &self._category) }()
|
|
case 6: try { try decoder.decodeSingularStringField(value: &self._subcategory) }()
|
|
case 7: try { try decoder.decodeSingularBoolField(value: &self.podcast) }()
|
|
case 8: try { try decoder.decodeSingularInt64Field(value: &self.subscribers) }()
|
|
default: break
|
|
}
|
|
}
|
|
}
|
|
|
|
func traverse<V: SwiftProtobuf.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
|
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
if !self.id.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.id, fieldNumber: 1)
|
|
}
|
|
if !self.url.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.url, fieldNumber: 2)
|
|
}
|
|
try { if let v = self._title {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
} }()
|
|
try { if let v = self._image {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
|
|
} }()
|
|
try { if let v = self._category {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
|
|
} }()
|
|
try { if let v = self._subcategory {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 6)
|
|
} }()
|
|
if self.podcast != false {
|
|
try visitor.visitSingularBoolField(value: self.podcast, fieldNumber: 7)
|
|
}
|
|
if self.subscribers != 0 {
|
|
try visitor.visitSingularInt64Field(value: self.subscribers, fieldNumber: 8)
|
|
}
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_Listing, rhs: Directory_Listing) -> Bool {
|
|
if lhs.id != rhs.id {return false}
|
|
if lhs.url != rhs.url {return false}
|
|
if lhs._title != rhs._title {return false}
|
|
if lhs._image != rhs._image {return false}
|
|
if lhs._category != rhs._category {return false}
|
|
if lhs._subcategory != rhs._subcategory {return false}
|
|
if lhs.podcast != rhs.podcast {return false}
|
|
if lhs.subscribers != rhs.subscribers {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Listings: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Listings"
|
|
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: Directory_Listings, rhs: Directory_Listings) -> Bool {
|
|
if lhs.items != rhs.items {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Item: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Item"
|
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}guid\0\u{1}title\0\u{1}link\0\u{1}published\0\u{1}duration\0\u{1}description\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.guid) }()
|
|
case 2: try { try decoder.decodeSingularStringField(value: &self._title) }()
|
|
case 3: try { try decoder.decodeSingularStringField(value: &self._link) }()
|
|
case 4: try { try decoder.decodeSingularInt64Field(value: &self._published) }()
|
|
case 5: try { try decoder.decodeSingularInt64Field(value: &self._duration) }()
|
|
case 6: try { try decoder.decodeSingularStringField(value: &self._description_p) }()
|
|
default: break
|
|
}
|
|
}
|
|
}
|
|
|
|
func traverse<V: SwiftProtobuf.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
|
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
if !self.guid.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.guid, fieldNumber: 1)
|
|
}
|
|
try { if let v = self._title {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
} }()
|
|
try { if let v = self._link {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
} }()
|
|
try { if let v = self._published {
|
|
try visitor.visitSingularInt64Field(value: v, fieldNumber: 4)
|
|
} }()
|
|
try { if let v = self._duration {
|
|
try visitor.visitSingularInt64Field(value: v, fieldNumber: 5)
|
|
} }()
|
|
try { if let v = self._description_p {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 6)
|
|
} }()
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_Item, rhs: Directory_Item) -> Bool {
|
|
if lhs.guid != rhs.guid {return false}
|
|
if lhs._title != rhs._title {return false}
|
|
if lhs._link != rhs._link {return false}
|
|
if lhs._published != rhs._published {return false}
|
|
if lhs._duration != rhs._duration {return false}
|
|
if lhs._description_p != rhs._description_p {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_FeedPage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".FeedPage"
|
|
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}category\0\u{1}subcategory\0\u{1}podcast\0\u{1}subscribers\0\u{1}description\0\u{1}failing\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.decodeSingularStringField(value: &self.id) }()
|
|
case 2: try { try decoder.decodeSingularStringField(value: &self.url) }()
|
|
case 3: try { try decoder.decodeSingularStringField(value: &self._title) }()
|
|
case 4: try { try decoder.decodeSingularStringField(value: &self._image) }()
|
|
case 5: try { try decoder.decodeSingularStringField(value: &self._category) }()
|
|
case 6: try { try decoder.decodeSingularStringField(value: &self._subcategory) }()
|
|
case 7: try { try decoder.decodeSingularBoolField(value: &self.podcast) }()
|
|
case 8: try { try decoder.decodeSingularInt64Field(value: &self.subscribers) }()
|
|
case 9: try { try decoder.decodeSingularStringField(value: &self._description_p) }()
|
|
case 10: try { try decoder.decodeSingularStringField(value: &self._failing) }()
|
|
case 11: try { try decoder.decodeRepeatedMessageField(value: &self.items) }()
|
|
default: break
|
|
}
|
|
}
|
|
}
|
|
|
|
func traverse<V: SwiftProtobuf.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
|
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
if !self.id.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.id, fieldNumber: 1)
|
|
}
|
|
if !self.url.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.url, fieldNumber: 2)
|
|
}
|
|
try { if let v = self._title {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
} }()
|
|
try { if let v = self._image {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
|
|
} }()
|
|
try { if let v = self._category {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
|
|
} }()
|
|
try { if let v = self._subcategory {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 6)
|
|
} }()
|
|
if self.podcast != false {
|
|
try visitor.visitSingularBoolField(value: self.podcast, fieldNumber: 7)
|
|
}
|
|
if self.subscribers != 0 {
|
|
try visitor.visitSingularInt64Field(value: self.subscribers, fieldNumber: 8)
|
|
}
|
|
try { if let v = self._description_p {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 9)
|
|
} }()
|
|
try { if let v = self._failing {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 10)
|
|
} }()
|
|
if !self.items.isEmpty {
|
|
try visitor.visitRepeatedMessageField(value: self.items, fieldNumber: 11)
|
|
}
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_FeedPage, rhs: Directory_FeedPage) -> Bool {
|
|
if lhs.id != rhs.id {return false}
|
|
if lhs.url != rhs.url {return false}
|
|
if lhs._title != rhs._title {return false}
|
|
if lhs._image != rhs._image {return false}
|
|
if lhs._category != rhs._category {return false}
|
|
if lhs._subcategory != rhs._subcategory {return false}
|
|
if lhs.podcast != rhs.podcast {return false}
|
|
if lhs.subscribers != rhs.subscribers {return false}
|
|
if lhs._description_p != rhs._description_p {return false}
|
|
if lhs._failing != rhs._failing {return false}
|
|
if lhs.items != rhs.items {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_SnapshotEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".SnapshotEntry"
|
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}url\0\u{1}subscribers\0\u{1}category\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.url) }()
|
|
case 2: try { try decoder.decodeSingularInt64Field(value: &self.subscribers) }()
|
|
case 3: try { try decoder.decodeSingularStringField(value: &self._category) }()
|
|
default: break
|
|
}
|
|
}
|
|
}
|
|
|
|
func traverse<V: SwiftProtobuf.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
|
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
if !self.url.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.url, fieldNumber: 1)
|
|
}
|
|
if self.subscribers != 0 {
|
|
try visitor.visitSingularInt64Field(value: self.subscribers, fieldNumber: 2)
|
|
}
|
|
try { if let v = self._category {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
} }()
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_SnapshotEntry, rhs: Directory_SnapshotEntry) -> Bool {
|
|
if lhs.url != rhs.url {return false}
|
|
if lhs.subscribers != rhs.subscribers {return false}
|
|
if lhs._category != rhs._category {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Snapshot: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Snapshot"
|
|
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: Directory_Snapshot, rhs: Directory_Snapshot) -> Bool {
|
|
if lhs.items != rhs.items {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_SnapshotResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".SnapshotResult"
|
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}accepted\0\u{3}refused_private\0\u{3}refused_blocked\0\u{3}refused_invalid\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.decodeSingularUInt64Field(value: &self.accepted) }()
|
|
case 2: try { try decoder.decodeSingularUInt64Field(value: &self.refusedPrivate) }()
|
|
case 3: try { try decoder.decodeSingularUInt64Field(value: &self.refusedBlocked) }()
|
|
case 4: try { try decoder.decodeSingularUInt64Field(value: &self.refusedInvalid) }()
|
|
default: break
|
|
}
|
|
}
|
|
}
|
|
|
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
if self.accepted != 0 {
|
|
try visitor.visitSingularUInt64Field(value: self.accepted, fieldNumber: 1)
|
|
}
|
|
if self.refusedPrivate != 0 {
|
|
try visitor.visitSingularUInt64Field(value: self.refusedPrivate, fieldNumber: 2)
|
|
}
|
|
if self.refusedBlocked != 0 {
|
|
try visitor.visitSingularUInt64Field(value: self.refusedBlocked, fieldNumber: 3)
|
|
}
|
|
if self.refusedInvalid != 0 {
|
|
try visitor.visitSingularUInt64Field(value: self.refusedInvalid, fieldNumber: 4)
|
|
}
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_SnapshotResult, rhs: Directory_SnapshotResult) -> Bool {
|
|
if lhs.accepted != rhs.accepted {return false}
|
|
if lhs.refusedPrivate != rhs.refusedPrivate {return false}
|
|
if lhs.refusedBlocked != rhs.refusedBlocked {return false}
|
|
if lhs.refusedInvalid != rhs.refusedInvalid {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Instance: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Instance"
|
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}name\0\u{1}feeds\0\u{1}subscribers\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.decodeSingularInt64Field(value: &self.feeds) }()
|
|
case 3: try { try decoder.decodeSingularInt64Field(value: &self.subscribers) }()
|
|
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 != 0 {
|
|
try visitor.visitSingularInt64Field(value: self.feeds, fieldNumber: 2)
|
|
}
|
|
if self.subscribers != 0 {
|
|
try visitor.visitSingularInt64Field(value: self.subscribers, fieldNumber: 3)
|
|
}
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_Instance, rhs: Directory_Instance) -> Bool {
|
|
if lhs.name != rhs.name {return false}
|
|
if lhs.feeds != rhs.feeds {return false}
|
|
if lhs.subscribers != rhs.subscribers {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Instances: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Instances"
|
|
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: Directory_Instances, rhs: Directory_Instances) -> Bool {
|
|
if lhs.items != rhs.items {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_Blocked: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".Blocked"
|
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}url\0\u{1}title\0\u{1}at\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.id) }()
|
|
case 2: try { try decoder.decodeSingularStringField(value: &self._url) }()
|
|
case 3: try { try decoder.decodeSingularStringField(value: &self._title) }()
|
|
case 4: try { try decoder.decodeSingularInt64Field(value: &self.at) }()
|
|
default: break
|
|
}
|
|
}
|
|
}
|
|
|
|
func traverse<V: SwiftProtobuf.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
|
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
if !self.id.isEmpty {
|
|
try visitor.visitSingularStringField(value: self.id, fieldNumber: 1)
|
|
}
|
|
try { if let v = self._url {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
} }()
|
|
try { if let v = self._title {
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
} }()
|
|
if self.at != 0 {
|
|
try visitor.visitSingularInt64Field(value: self.at, fieldNumber: 4)
|
|
}
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
}
|
|
|
|
static func ==(lhs: Directory_Blocked, rhs: Directory_Blocked) -> Bool {
|
|
if lhs.id != rhs.id {return false}
|
|
if lhs._url != rhs._url {return false}
|
|
if lhs._title != rhs._title {return false}
|
|
if lhs.at != rhs.at {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|
|
|
|
nonisolated extension Directory_BlockedList: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
static let protoMessageName: String = _protobuf_package + ".BlockedList"
|
|
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: Directory_BlockedList, rhs: Directory_BlockedList) -> Bool {
|
|
if lhs.items != rhs.items {return false}
|
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
return true
|
|
}
|
|
}
|