From 2dc05394e6614a4ff9c181cee261829d0be3cb1d Mon Sep 17 00:00:00 2001 From: husnjak Date: Tue, 24 Oct 2023 15:12:54 +0200 Subject: [PATCH] update query parser to resolve w (#21) * update query parser to resolve w * Github Action Build & Test * Github Action Publish --- .github/workflows/publish.yml | 18 +- .github/workflows/test.yml | 18 +- IGDB-SWIFT-API.podspec | 4 +- README.md | 2 +- .../APIStructs/IGDBProtoFile.pb.swift | 6739 +++++++++++------ .../IGDB-SWIFT-API/Wrapper/APICalypse.swift | 2 +- .../IGDB-SWIFT-API/Wrapper/IGDBWrapper.swift | 1 - Tests/IGDB-SWIFT-APITests/TestCount.swift | 4 +- .../IGDB-SWIFT-APITests/TestIGDBWrapper.swift | 14 + 9 files changed, 4422 insertions(+), 2380 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 81e4580..9c84bcc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,14 +14,26 @@ on: jobs: build: runs-on: macos-latest + environment: apitesting steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Install Cocoapods run: gem install cocoapods - - name: Deploy to Cocoapods + - if: github.event.release.tag_name == '' + name: Deploy to Cocoapods Custom run: | set -eo pipefail pod lib lint --allow-warnings pod trunk push --allow-warnings env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.TRUNK_TOKEN }} \ No newline at end of file + COCOAPODS_TRUNK_TOKEN: "${{ secrets.TRUNK_TOKEN }}" + LIB_VERSION: "${{ github.event.inputs.packagePrefix }}" + - if: github.event.inputs.packagePrefix == '' + name: Deploy to Cocoapods Release + run: | + set -eo pipefail + pod lib lint --allow-warnings + pod trunk push --allow-warnings + env: + COCOAPODS_TRUNK_TOKEN: "${{ secrets.TRUNK_TOKEN }}" + LIB_VERSION: "${{ github.event.release.tag_name }}" \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50c1c61..06cddad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,9 @@ # This workflow will build a Swift project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift -name: Swift +name: Build & Test -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] +on: [push] jobs: build: @@ -18,10 +14,10 @@ jobs: - name: Build run: swift build - name: Run tests - run: swift test -v + run: swift test env: client_id: "${{ secrets.CLIENT_ID }}" - client_secret: "{{ secrets.CLIENT_SECRET }}" - access_token: "{{ secrets.BEARER }}" - proxy_url: "{{ secrets.PROXY_URL }}" - proxy_api_key: "{{ secrets.PROXY_API_KEY }}" + client_secret: "${{ secrets.CLIENT_SECRET }}" + access_token: "${{ secrets.BEARER_TOKEN }}" + proxy_url: "${{ secrets.PROXY_URL }}" + proxy_api_key: "${{ secrets.PROXY_API_KEY }}" \ No newline at end of file diff --git a/IGDB-SWIFT-API.podspec b/IGDB-SWIFT-API.podspec index 45bdcc2..6b96013 100644 --- a/IGDB-SWIFT-API.podspec +++ b/IGDB-SWIFT-API.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'IGDB-SWIFT-API' - s.version = '0.4.2' + s.version = ENV['LIB_VERSION'] || '0.4.3' s.summary = 'Wrapper for IGDBs API written in Swift.' s.description = "A Swift wrapper for the IGDB.com Free Video Game Database API." s.documentation_url = "https://api-docs.igdb.com" @@ -10,6 +10,8 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/husnjak/IGDB-API-SWIFT.git', :tag => s.version.to_s } s.platforms = { :ios => "12.2", :osx => "10.15", :watchos => "7" } s.ios.deployment_target = '12.0' + s.osx.deployment_target = '10.15' + s.watchos.deployment_target = '7.0' s.swift_version = '5.0' s.source_files = 'Sources/IGDB-SWIFT-API/**/*.swift' diff --git a/README.md b/README.md index 1cf94af..40012da 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ You can either import this library using Xcode by simply pasting this repository Or if you have a `Package.swift` file you can add this: ```swift dependencies: [ -.package(url: "https://github.com/husnjak/IGDB-SWIFT-API.git", from: "0.4.2"), +.package(url: "https://github.com/husnjak/IGDB-SWIFT-API.git", from: "0.4.3"), ], targets: [ .target(name: "MyTarget", dependencies: ["IGDB-SWIFT-API"]), diff --git a/Sources/IGDB-SWIFT-API/APIStructs/IGDBProtoFile.pb.swift b/Sources/IGDB-SWIFT-API/APIStructs/IGDBProtoFile.pb.swift index 4917c49..b2114cc 100644 --- a/Sources/IGDB-SWIFT-API/APIStructs/IGDBProtoFile.pb.swift +++ b/Sources/IGDB-SWIFT-API/APIStructs/IGDBProtoFile.pb.swift @@ -1857,57 +1857,93 @@ public struct Proto_Collection { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var id: UInt64 = 0 + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} } /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} + public var hasCreatedAt: Bool {return _storage._createdAt != nil} /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - public var games: [Proto_Game] = [] + public var games: [Proto_Game] { + get {return _storage._games} + set {_uniqueStorage()._games = newValue} + } - public var name: String = String() + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} + } - public var slug: String = String() + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} + } public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} } /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var url: String = String() + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } - public var checksum: String = String() + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } + + public var type: Proto_CollectionType { + get {return _storage._type ?? Proto_CollectionType()} + set {_uniqueStorage()._type = newValue} + } + /// Returns true if `type` has been explicitly set. + public var hasType: Bool {return _storage._type != nil} + /// Clears the value of `type`. Subsequent reads from it will return its default value. + public mutating func clearType() {_uniqueStorage()._type = nil} + + public var asParentRelations: [Proto_CollectionRelation] { + get {return _storage._asParentRelations} + set {_uniqueStorage()._asParentRelations = newValue} + } + + public var asChildRelations: [Proto_CollectionRelation] { + get {return _storage._asChildRelations} + set {_uniqueStorage()._asChildRelations = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_CompanyResult { +public struct Proto_CollectionMembershipResult { // 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. - public var companies: [Proto_Company] = [] + public var collectionmemberships: [Proto_CollectionMembership] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Company { +public struct Proto_CollectionMembership { // 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. @@ -1917,99 +1953,32 @@ public struct Proto_Company { set {_uniqueStorage()._id = newValue} } - public var changeDate: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._changeDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._changeDate = newValue} - } - /// Returns true if `changeDate` has been explicitly set. - public var hasChangeDate: Bool {return _storage._changeDate != nil} - /// Clears the value of `changeDate`. Subsequent reads from it will return its default value. - public mutating func clearChangeDate() {_uniqueStorage()._changeDate = nil} - - public var changeDateCategory: Proto_DateFormatChangeDateCategoryEnum { - get {return _storage._changeDateCategory} - set {_uniqueStorage()._changeDateCategory = newValue} - } - - public var changedCompanyID: Proto_Company { - get {return _storage._changedCompanyID ?? Proto_Company()} - set {_uniqueStorage()._changedCompanyID = newValue} - } - /// Returns true if `changedCompanyID` has been explicitly set. - public var hasChangedCompanyID: Bool {return _storage._changedCompanyID != nil} - /// Clears the value of `changedCompanyID`. Subsequent reads from it will return its default value. - public mutating func clearChangedCompanyID() {_uniqueStorage()._changedCompanyID = nil} - - public var country: Int32 { - get {return _storage._country} - set {_uniqueStorage()._country = newValue} - } - - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._createdAt = newValue} - } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return _storage._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - - public var description_p: String { - get {return _storage._description_p} - set {_uniqueStorage()._description_p = newValue} - } - - public var developed: [Proto_Game] { - get {return _storage._developed} - set {_uniqueStorage()._developed = newValue} - } - - public var logo: Proto_CompanyLogo { - get {return _storage._logo ?? Proto_CompanyLogo()} - set {_uniqueStorage()._logo = newValue} - } - /// Returns true if `logo` has been explicitly set. - public var hasLogo: Bool {return _storage._logo != nil} - /// Clears the value of `logo`. Subsequent reads from it will return its default value. - public mutating func clearLogo() {_uniqueStorage()._logo = nil} - - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} - } - - public var parent: Proto_Company { - get {return _storage._parent ?? Proto_Company()} - set {_uniqueStorage()._parent = newValue} - } - /// Returns true if `parent` has been explicitly set. - public var hasParent: Bool {return _storage._parent != nil} - /// Clears the value of `parent`. Subsequent reads from it will return its default value. - public mutating func clearParent() {_uniqueStorage()._parent = nil} - - public var published: [Proto_Game] { - get {return _storage._published} - set {_uniqueStorage()._published = newValue} - } - - public var slug: String { - get {return _storage._slug} - set {_uniqueStorage()._slug = newValue} + public var game: Proto_Game { + get {return _storage._game ?? Proto_Game()} + set {_uniqueStorage()._game = newValue} } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return _storage._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {_uniqueStorage()._game = nil} - public var startDate: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._startDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._startDate = newValue} + public var collection: Proto_Collection { + get {return _storage._collection ?? Proto_Collection()} + set {_uniqueStorage()._collection = newValue} } - /// Returns true if `startDate` has been explicitly set. - public var hasStartDate: Bool {return _storage._startDate != nil} - /// Clears the value of `startDate`. Subsequent reads from it will return its default value. - public mutating func clearStartDate() {_uniqueStorage()._startDate = nil} + /// Returns true if `collection` has been explicitly set. + public var hasCollection: Bool {return _storage._collection != nil} + /// Clears the value of `collection`. Subsequent reads from it will return its default value. + public mutating func clearCollection() {_uniqueStorage()._collection = nil} - public var startDateCategory: Proto_DateFormatChangeDateCategoryEnum { - get {return _storage._startDateCategory} - set {_uniqueStorage()._startDateCategory = newValue} + public var type: Proto_CollectionMembershipType { + get {return _storage._type ?? Proto_CollectionMembershipType()} + set {_uniqueStorage()._type = newValue} } + /// Returns true if `type` has been explicitly set. + public var hasType: Bool {return _storage._type != nil} + /// Clears the value of `type`. Subsequent reads from it will return its default value. + public mutating func clearType() {_uniqueStorage()._type = nil} public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -2020,15 +1989,14 @@ public struct Proto_Company { /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var url: String { - get {return _storage._url} - set {_uniqueStorage()._url = newValue} - } - - public var websites: [Proto_CompanyWebsite] { - get {return _storage._websites} - set {_uniqueStorage()._websites = newValue} + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} public var checksum: String { get {return _storage._checksum} @@ -2042,89 +2010,157 @@ public struct Proto_Company { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_CompanyLogoResult { +public struct Proto_CollectionMembershipTypeResult { // 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. - public var companylogos: [Proto_CompanyLogo] = [] + public var collectionmembershiptypes: [Proto_CollectionMembershipType] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_CompanyLogo { +public struct Proto_CollectionMembershipType { // 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. public var id: UInt64 = 0 - public var alphaChannel: Bool = false - - public var animated: Bool = false + public var name: String = String() - public var height: Int32 = 0 + public var description_p: String = String() - public var imageID: String = String() + public var allowedCollectionType: Proto_CollectionType { + get {return _allowedCollectionType ?? Proto_CollectionType()} + set {_allowedCollectionType = newValue} + } + /// Returns true if `allowedCollectionType` has been explicitly set. + public var hasAllowedCollectionType: Bool {return self._allowedCollectionType != nil} + /// Clears the value of `allowedCollectionType`. Subsequent reads from it will return its default value. + public mutating func clearAllowedCollectionType() {self._allowedCollectionType = nil} - public var url: String = String() + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var width: Int32 = 0 + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _allowedCollectionType: Proto_CollectionType? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_CompanyWebsiteResult { +public struct Proto_CollectionRelationResult { // 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. - public var companywebsites: [Proto_CompanyWebsite] = [] + public var collectionrelations: [Proto_CollectionRelation] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_CompanyWebsite { +public struct Proto_CollectionRelation { // 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. public var id: UInt64 = 0 - public var category: Proto_WebsiteCategoryEnum = .websiteCategoryNull + public var childCollection: Proto_Collection { + get {return _childCollection ?? Proto_Collection()} + set {_childCollection = newValue} + } + /// Returns true if `childCollection` has been explicitly set. + public var hasChildCollection: Bool {return self._childCollection != nil} + /// Clears the value of `childCollection`. Subsequent reads from it will return its default value. + public mutating func clearChildCollection() {self._childCollection = nil} - public var trusted: Bool = false + public var parentCollection: Proto_Collection { + get {return _parentCollection ?? Proto_Collection()} + set {_parentCollection = newValue} + } + /// Returns true if `parentCollection` has been explicitly set. + public var hasParentCollection: Bool {return self._parentCollection != nil} + /// Clears the value of `parentCollection`. Subsequent reads from it will return its default value. + public mutating func clearParentCollection() {self._parentCollection = nil} - public var url: String = String() + public var type: Proto_CollectionRelationType { + get {return _type ?? Proto_CollectionRelationType()} + set {_type = newValue} + } + /// Returns true if `type` has been explicitly set. + public var hasType: Bool {return self._type != nil} + /// Clears the value of `type`. Subsequent reads from it will return its default value. + public mutating func clearType() {self._type = nil} + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _childCollection: Proto_Collection? = nil + fileprivate var _parentCollection: Proto_Collection? = nil + fileprivate var _type: Proto_CollectionRelationType? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_CoverResult { +public struct Proto_CollectionRelationTypeResult { // 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. - public var covers: [Proto_Cover] = [] + public var collectionrelationtypes: [Proto_CollectionRelationType] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Cover { +public struct Proto_CollectionRelationType { // 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. @@ -2134,59 +2170,57 @@ public struct Proto_Cover { set {_uniqueStorage()._id = newValue} } - public var alphaChannel: Bool { - get {return _storage._alphaChannel} - set {_uniqueStorage()._alphaChannel = newValue} + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} } - public var animated: Bool { - get {return _storage._animated} - set {_uniqueStorage()._animated = newValue} + public var description_p: String { + get {return _storage._description_p} + set {_uniqueStorage()._description_p = newValue} } - public var game: Proto_Game { - get {return _storage._game ?? Proto_Game()} - set {_uniqueStorage()._game = newValue} - } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return _storage._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {_uniqueStorage()._game = nil} - - public var height: Int32 { - get {return _storage._height} - set {_uniqueStorage()._height = newValue} + public var allowedChildType: Proto_CollectionType { + get {return _storage._allowedChildType ?? Proto_CollectionType()} + set {_uniqueStorage()._allowedChildType = newValue} } + /// Returns true if `allowedChildType` has been explicitly set. + public var hasAllowedChildType: Bool {return _storage._allowedChildType != nil} + /// Clears the value of `allowedChildType`. Subsequent reads from it will return its default value. + public mutating func clearAllowedChildType() {_uniqueStorage()._allowedChildType = nil} - public var imageID: String { - get {return _storage._imageID} - set {_uniqueStorage()._imageID = newValue} + public var allowedParentType: Proto_CollectionType { + get {return _storage._allowedParentType ?? Proto_CollectionType()} + set {_uniqueStorage()._allowedParentType = newValue} } + /// Returns true if `allowedParentType` has been explicitly set. + public var hasAllowedParentType: Bool {return _storage._allowedParentType != nil} + /// Clears the value of `allowedParentType`. Subsequent reads from it will return its default value. + public mutating func clearAllowedParentType() {_uniqueStorage()._allowedParentType = nil} - public var url: String { - get {return _storage._url} - set {_uniqueStorage()._url = newValue} + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var width: Int32 { - get {return _storage._width} - set {_uniqueStorage()._width = newValue} + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} public var checksum: String { get {return _storage._checksum} set {_uniqueStorage()._checksum = newValue} } - public var gameLocalization: Proto_GameLocalization { - get {return _storage._gameLocalization ?? Proto_GameLocalization()} - set {_uniqueStorage()._gameLocalization = newValue} - } - /// Returns true if `gameLocalization` has been explicitly set. - public var hasGameLocalization: Bool {return _storage._gameLocalization != nil} - /// Clears the value of `gameLocalization`. Subsequent reads from it will return its default value. - public mutating func clearGameLocalization() {_uniqueStorage()._gameLocalization = nil} - public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -2194,48 +2228,28 @@ public struct Proto_Cover { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_ExternalGameResult { +public struct Proto_CollectionTypeResult { // 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. - public var externalgames: [Proto_ExternalGame] = [] + public var collectiontypes: [Proto_CollectionType] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_ExternalGame { +public struct Proto_CollectionType { // 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. public var id: UInt64 = 0 - public var category: Proto_ExternalGameCategoryEnum = .externalgameCategoryNull - - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} - } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} - - public var game: Proto_Game { - get {return _game ?? Proto_Game()} - set {_game = newValue} - } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return self._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {self._game = nil} - public var name: String = String() - public var uid: String = String() + public var description_p: String = String() public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -2246,54 +2260,6 @@ public struct Proto_ExternalGame { /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var url: String = String() - - public var year: Int32 = 0 - - public var media: Proto_ExternalGameMediaEnum = .externalgameMediaNull - - public var platform: Proto_Platform { - get {return _platform ?? Proto_Platform()} - set {_platform = newValue} - } - /// Returns true if `platform` has been explicitly set. - public var hasPlatform: Bool {return self._platform != nil} - /// Clears the value of `platform`. Subsequent reads from it will return its default value. - public mutating func clearPlatform() {self._platform = nil} - - public var countries: [Int32] = [] - - public var checksum: String = String() - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} - - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _game: Proto_Game? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _platform: Proto_Platform? = nil -} - -public struct Proto_FranchiseResult { - // 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. - - public var franchises: [Proto_Franchise] = [] - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} -} - -public struct Proto_Franchise { - // 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. - - public var id: UInt64 = 0 - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} set {_createdAt = newValue} @@ -2303,46 +2269,29 @@ public struct Proto_Franchise { /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. public mutating func clearCreatedAt() {self._createdAt = nil} - public var games: [Proto_Game] = [] - - public var name: String = String() - - public var slug: String = String() - - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} - } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} - - public var url: String = String() - public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_GameResult { +public struct Proto_CompanyResult { // 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. - public var games: [Proto_Game] = [] + public var companies: [Proto_Company] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Game { +public struct Proto_Company { // 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. @@ -2352,58 +2301,33 @@ public struct Proto_Game { set {_uniqueStorage()._id = newValue} } - public var ageRatings: [Proto_AgeRating] { - get {return _storage._ageRatings} - set {_uniqueStorage()._ageRatings = newValue} - } - - public var aggregatedRating: Double { - get {return _storage._aggregatedRating} - set {_uniqueStorage()._aggregatedRating = newValue} - } - - public var aggregatedRatingCount: Int32 { - get {return _storage._aggregatedRatingCount} - set {_uniqueStorage()._aggregatedRatingCount = newValue} - } - - public var alternativeNames: [Proto_AlternativeName] { - get {return _storage._alternativeNames} - set {_uniqueStorage()._alternativeNames = newValue} - } - - public var artworks: [Proto_Artwork] { - get {return _storage._artworks} - set {_uniqueStorage()._artworks = newValue} - } - - public var bundles: [Proto_Game] { - get {return _storage._bundles} - set {_uniqueStorage()._bundles = newValue} + public var changeDate: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._changeDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._changeDate = newValue} } + /// Returns true if `changeDate` has been explicitly set. + public var hasChangeDate: Bool {return _storage._changeDate != nil} + /// Clears the value of `changeDate`. Subsequent reads from it will return its default value. + public mutating func clearChangeDate() {_uniqueStorage()._changeDate = nil} - public var category: Proto_GameCategoryEnum { - get {return _storage._category} - set {_uniqueStorage()._category = newValue} + public var changeDateCategory: Proto_DateFormatChangeDateCategoryEnum { + get {return _storage._changeDateCategory} + set {_uniqueStorage()._changeDateCategory = newValue} } - public var collection: Proto_Collection { - get {return _storage._collection ?? Proto_Collection()} - set {_uniqueStorage()._collection = newValue} + public var changedCompanyID: Proto_Company { + get {return _storage._changedCompanyID ?? Proto_Company()} + set {_uniqueStorage()._changedCompanyID = newValue} } - /// Returns true if `collection` has been explicitly set. - public var hasCollection: Bool {return _storage._collection != nil} - /// Clears the value of `collection`. Subsequent reads from it will return its default value. - public mutating func clearCollection() {_uniqueStorage()._collection = nil} + /// Returns true if `changedCompanyID` has been explicitly set. + public var hasChangedCompanyID: Bool {return _storage._changedCompanyID != nil} + /// Clears the value of `changedCompanyID`. Subsequent reads from it will return its default value. + public mutating func clearChangedCompanyID() {_uniqueStorage()._changedCompanyID = nil} - public var cover: Proto_Cover { - get {return _storage._cover ?? Proto_Cover()} - set {_uniqueStorage()._cover = newValue} + public var country: Int32 { + get {return _storage._country} + set {_uniqueStorage()._country = newValue} } - /// Returns true if `cover` has been explicitly set. - public var hasCover: Bool {return _storage._cover != nil} - /// Clears the value of `cover`. Subsequent reads from it will return its default value. - public mutating func clearCover() {_uniqueStorage()._cover = nil} public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -2414,276 +2338,177 @@ public struct Proto_Game { /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - public var dlcs: [Proto_Game] { - get {return _storage._dlcs} - set {_uniqueStorage()._dlcs = newValue} + public var description_p: String { + get {return _storage._description_p} + set {_uniqueStorage()._description_p = newValue} } - public var expansions: [Proto_Game] { - get {return _storage._expansions} - set {_uniqueStorage()._expansions = newValue} + public var developed: [Proto_Game] { + get {return _storage._developed} + set {_uniqueStorage()._developed = newValue} } - public var externalGames: [Proto_ExternalGame] { - get {return _storage._externalGames} - set {_uniqueStorage()._externalGames = newValue} + public var logo: Proto_CompanyLogo { + get {return _storage._logo ?? Proto_CompanyLogo()} + set {_uniqueStorage()._logo = newValue} } + /// Returns true if `logo` has been explicitly set. + public var hasLogo: Bool {return _storage._logo != nil} + /// Clears the value of `logo`. Subsequent reads from it will return its default value. + public mutating func clearLogo() {_uniqueStorage()._logo = nil} - public var firstReleaseDate: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._firstReleaseDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._firstReleaseDate = newValue} + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} } - /// Returns true if `firstReleaseDate` has been explicitly set. - public var hasFirstReleaseDate: Bool {return _storage._firstReleaseDate != nil} - /// Clears the value of `firstReleaseDate`. Subsequent reads from it will return its default value. - public mutating func clearFirstReleaseDate() {_uniqueStorage()._firstReleaseDate = nil} - public var follows: Int32 { - get {return _storage._follows} - set {_uniqueStorage()._follows = newValue} + public var parent: Proto_Company { + get {return _storage._parent ?? Proto_Company()} + set {_uniqueStorage()._parent = newValue} } + /// Returns true if `parent` has been explicitly set. + public var hasParent: Bool {return _storage._parent != nil} + /// Clears the value of `parent`. Subsequent reads from it will return its default value. + public mutating func clearParent() {_uniqueStorage()._parent = nil} - public var franchise: Proto_Franchise { - get {return _storage._franchise ?? Proto_Franchise()} - set {_uniqueStorage()._franchise = newValue} + public var published: [Proto_Game] { + get {return _storage._published} + set {_uniqueStorage()._published = newValue} } - /// Returns true if `franchise` has been explicitly set. - public var hasFranchise: Bool {return _storage._franchise != nil} - /// Clears the value of `franchise`. Subsequent reads from it will return its default value. - public mutating func clearFranchise() {_uniqueStorage()._franchise = nil} - public var franchises: [Proto_Franchise] { - get {return _storage._franchises} - set {_uniqueStorage()._franchises = newValue} - } - - public var gameEngines: [Proto_GameEngine] { - get {return _storage._gameEngines} - set {_uniqueStorage()._gameEngines = newValue} - } - - public var gameModes: [Proto_GameMode] { - get {return _storage._gameModes} - set {_uniqueStorage()._gameModes = newValue} - } - - public var genres: [Proto_Genre] { - get {return _storage._genres} - set {_uniqueStorage()._genres = newValue} - } - - public var hypes: Int32 { - get {return _storage._hypes} - set {_uniqueStorage()._hypes = newValue} - } - - public var involvedCompanies: [Proto_InvolvedCompany] { - get {return _storage._involvedCompanies} - set {_uniqueStorage()._involvedCompanies = newValue} + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} } - public var keywords: [Proto_Keyword] { - get {return _storage._keywords} - set {_uniqueStorage()._keywords = newValue} + public var startDate: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._startDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._startDate = newValue} } + /// Returns true if `startDate` has been explicitly set. + public var hasStartDate: Bool {return _storage._startDate != nil} + /// Clears the value of `startDate`. Subsequent reads from it will return its default value. + public mutating func clearStartDate() {_uniqueStorage()._startDate = nil} - public var multiplayerModes: [Proto_MultiplayerMode] { - get {return _storage._multiplayerModes} - set {_uniqueStorage()._multiplayerModes = newValue} + public var startDateCategory: Proto_DateFormatChangeDateCategoryEnum { + get {return _storage._startDateCategory} + set {_uniqueStorage()._startDateCategory = newValue} } - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var parentGame: Proto_Game { - get {return _storage._parentGame ?? Proto_Game()} - set {_uniqueStorage()._parentGame = newValue} + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} } - /// Returns true if `parentGame` has been explicitly set. - public var hasParentGame: Bool {return _storage._parentGame != nil} - /// Clears the value of `parentGame`. Subsequent reads from it will return its default value. - public mutating func clearParentGame() {_uniqueStorage()._parentGame = nil} - public var platforms: [Proto_Platform] { - get {return _storage._platforms} - set {_uniqueStorage()._platforms = newValue} + public var websites: [Proto_CompanyWebsite] { + get {return _storage._websites} + set {_uniqueStorage()._websites = newValue} } - public var playerPerspectives: [Proto_PlayerPerspective] { - get {return _storage._playerPerspectives} - set {_uniqueStorage()._playerPerspectives = newValue} + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} } - public var rating: Double { - get {return _storage._rating} - set {_uniqueStorage()._rating = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var ratingCount: Int32 { - get {return _storage._ratingCount} - set {_uniqueStorage()._ratingCount = newValue} - } + public init() {} - public var releaseDates: [Proto_ReleaseDate] { - get {return _storage._releaseDates} - set {_uniqueStorage()._releaseDates = newValue} - } + fileprivate var _storage = _StorageClass.defaultInstance +} - public var screenshots: [Proto_Screenshot] { - get {return _storage._screenshots} - set {_uniqueStorage()._screenshots = newValue} - } +public struct Proto_CompanyLogoResult { + // 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. - public var similarGames: [Proto_Game] { - get {return _storage._similarGames} - set {_uniqueStorage()._similarGames = newValue} - } + public var companylogos: [Proto_CompanyLogo] = [] - public var slug: String { - get {return _storage._slug} - set {_uniqueStorage()._slug = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var standaloneExpansions: [Proto_Game] { - get {return _storage._standaloneExpansions} - set {_uniqueStorage()._standaloneExpansions = newValue} - } + public init() {} +} - public var status: Proto_GameStatusEnum { - get {return _storage._status} - set {_uniqueStorage()._status = newValue} - } +public struct Proto_CompanyLogo { + // 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. - public var storyline: String { - get {return _storage._storyline} - set {_uniqueStorage()._storyline = newValue} - } + public var id: UInt64 = 0 - public var summary: String { - get {return _storage._summary} - set {_uniqueStorage()._summary = newValue} - } + public var alphaChannel: Bool = false - public var tags: [Int32] { - get {return _storage._tags} - set {_uniqueStorage()._tags = newValue} - } + public var animated: Bool = false - public var themes: [Proto_Theme] { - get {return _storage._themes} - set {_uniqueStorage()._themes = newValue} - } + public var height: Int32 = 0 - public var totalRating: Double { - get {return _storage._totalRating} - set {_uniqueStorage()._totalRating = newValue} - } + public var imageID: String = String() - public var totalRatingCount: Int32 { - get {return _storage._totalRatingCount} - set {_uniqueStorage()._totalRatingCount = newValue} - } + public var url: String = String() - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._updatedAt = newValue} - } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + public var width: Int32 = 0 - public var url: String { - get {return _storage._url} - set {_uniqueStorage()._url = newValue} - } + public var checksum: String = String() - public var versionParent: Proto_Game { - get {return _storage._versionParent ?? Proto_Game()} - set {_uniqueStorage()._versionParent = newValue} - } - /// Returns true if `versionParent` has been explicitly set. - public var hasVersionParent: Bool {return _storage._versionParent != nil} - /// Clears the value of `versionParent`. Subsequent reads from it will return its default value. - public mutating func clearVersionParent() {_uniqueStorage()._versionParent = nil} + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var versionTitle: String { - get {return _storage._versionTitle} - set {_uniqueStorage()._versionTitle = newValue} - } + public init() {} +} - public var videos: [Proto_GameVideo] { - get {return _storage._videos} - set {_uniqueStorage()._videos = newValue} - } +public struct Proto_CompanyWebsiteResult { + // 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. - public var websites: [Proto_Website] { - get {return _storage._websites} - set {_uniqueStorage()._websites = newValue} - } + public var companywebsites: [Proto_CompanyWebsite] = [] - public var checksum: String { - get {return _storage._checksum} - set {_uniqueStorage()._checksum = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var remakes: [Proto_Game] { - get {return _storage._remakes} - set {_uniqueStorage()._remakes = newValue} - } + public init() {} +} - public var remasters: [Proto_Game] { - get {return _storage._remasters} - set {_uniqueStorage()._remasters = newValue} - } +public struct Proto_CompanyWebsite { + // 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. - public var expandedGames: [Proto_Game] { - get {return _storage._expandedGames} - set {_uniqueStorage()._expandedGames = newValue} - } + public var id: UInt64 = 0 - public var ports: [Proto_Game] { - get {return _storage._ports} - set {_uniqueStorage()._ports = newValue} - } + public var category: Proto_WebsiteCategoryEnum = .websiteCategoryNull - public var forks: [Proto_Game] { - get {return _storage._forks} - set {_uniqueStorage()._forks = newValue} - } + public var trusted: Bool = false - public var languageSupports: [Proto_LanguageSupport] { - get {return _storage._languageSupports} - set {_uniqueStorage()._languageSupports = newValue} - } + public var url: String = String() - public var gameLocalizations: [Proto_GameLocalization] { - get {return _storage._gameLocalizations} - set {_uniqueStorage()._gameLocalizations = newValue} - } + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - - fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_GameEngineResult { +public struct Proto_CoverResult { // 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. - public var gameengines: [Proto_GameEngine] = [] + public var covers: [Proto_Cover] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameEngine { +public struct Proto_Cover { // 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. @@ -2693,68 +2518,59 @@ public struct Proto_GameEngine { set {_uniqueStorage()._id = newValue} } - public var companies: [Proto_Company] { - get {return _storage._companies} - set {_uniqueStorage()._companies = newValue} + public var alphaChannel: Bool { + get {return _storage._alphaChannel} + set {_uniqueStorage()._alphaChannel = newValue} } - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._createdAt = newValue} - } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return _storage._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - - public var description_p: String { - get {return _storage._description_p} - set {_uniqueStorage()._description_p = newValue} - } - - public var logo: Proto_GameEngineLogo { - get {return _storage._logo ?? Proto_GameEngineLogo()} - set {_uniqueStorage()._logo = newValue} - } - /// Returns true if `logo` has been explicitly set. - public var hasLogo: Bool {return _storage._logo != nil} - /// Clears the value of `logo`. Subsequent reads from it will return its default value. - public mutating func clearLogo() {_uniqueStorage()._logo = nil} - - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} + public var animated: Bool { + get {return _storage._animated} + set {_uniqueStorage()._animated = newValue} } - public var platforms: [Proto_Platform] { - get {return _storage._platforms} - set {_uniqueStorage()._platforms = newValue} + public var game: Proto_Game { + get {return _storage._game ?? Proto_Game()} + set {_uniqueStorage()._game = newValue} } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return _storage._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {_uniqueStorage()._game = nil} - public var slug: String { - get {return _storage._slug} - set {_uniqueStorage()._slug = newValue} + public var height: Int32 { + get {return _storage._height} + set {_uniqueStorage()._height = newValue} } - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._updatedAt = newValue} + public var imageID: String { + get {return _storage._imageID} + set {_uniqueStorage()._imageID = newValue} } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} public var url: String { get {return _storage._url} set {_uniqueStorage()._url = newValue} } + public var width: Int32 { + get {return _storage._width} + set {_uniqueStorage()._width = newValue} + } + public var checksum: String { get {return _storage._checksum} set {_uniqueStorage()._checksum = newValue} } + public var gameLocalization: Proto_GameLocalization { + get {return _storage._gameLocalization ?? Proto_GameLocalization()} + set {_uniqueStorage()._gameLocalization = newValue} + } + /// Returns true if `gameLocalization` has been explicitly set. + public var hasGameLocalization: Bool {return _storage._gameLocalization != nil} + /// Clears the value of `gameLocalization`. Subsequent reads from it will return its default value. + public mutating func clearGameLocalization() {_uniqueStorage()._gameLocalization = nil} + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -2762,57 +2578,138 @@ public struct Proto_GameEngine { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_GameEngineLogoResult { +public struct Proto_EventResult { // 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. - public var gameenginelogos: [Proto_GameEngineLogo] = [] + public var events: [Proto_Event] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameEngineLogo { +public struct Proto_Event { // 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. - public var id: UInt64 = 0 + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } - public var alphaChannel: Bool = false + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} + } - public var animated: Bool = false + public var description_p: String { + get {return _storage._description_p} + set {_uniqueStorage()._description_p = newValue} + } - public var height: Int32 = 0 + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} + } - public var imageID: String = String() + public var eventLogo: Proto_EventLogo { + get {return _storage._eventLogo ?? Proto_EventLogo()} + set {_uniqueStorage()._eventLogo = newValue} + } + /// Returns true if `eventLogo` has been explicitly set. + public var hasEventLogo: Bool {return _storage._eventLogo != nil} + /// Clears the value of `eventLogo`. Subsequent reads from it will return its default value. + public mutating func clearEventLogo() {_uniqueStorage()._eventLogo = nil} - public var url: String = String() + public var startTime: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._startTime ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._startTime = newValue} + } + /// Returns true if `startTime` has been explicitly set. + public var hasStartTime: Bool {return _storage._startTime != nil} + /// Clears the value of `startTime`. Subsequent reads from it will return its default value. + public mutating func clearStartTime() {_uniqueStorage()._startTime = nil} - public var width: Int32 = 0 + public var timeZone: String { + get {return _storage._timeZone} + set {_uniqueStorage()._timeZone = newValue} + } - public var checksum: String = String() + public var endTime: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._endTime ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._endTime = newValue} + } + /// Returns true if `endTime` has been explicitly set. + public var hasEndTime: Bool {return _storage._endTime != nil} + /// Clears the value of `endTime`. Subsequent reads from it will return its default value. + public mutating func clearEndTime() {_uniqueStorage()._endTime = nil} + + public var liveStreamURL: String { + get {return _storage._liveStreamURL} + set {_uniqueStorage()._liveStreamURL = newValue} + } + + public var games: [Proto_Game] { + get {return _storage._games} + set {_uniqueStorage()._games = newValue} + } + + public var videos: [Proto_GameVideo] { + get {return _storage._videos} + set {_uniqueStorage()._videos = newValue} + } + + public var eventNetworks: [Proto_EventNetwork] { + get {return _storage._eventNetworks} + set {_uniqueStorage()._eventNetworks = newValue} + } + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_GameLocalizationResult { +public struct Proto_EventLogoResult { // 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. - public var gamelocalizations: [Proto_GameLocalization] = [] + public var eventlogos: [Proto_EventLogo] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameLocalization { +public struct Proto_EventLogo { // 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. @@ -2822,37 +2719,44 @@ public struct Proto_GameLocalization { set {_uniqueStorage()._id = newValue} } - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} + public var event: Proto_Event { + get {return _storage._event ?? Proto_Event()} + set {_uniqueStorage()._event = newValue} } + /// Returns true if `event` has been explicitly set. + public var hasEvent: Bool {return _storage._event != nil} + /// Clears the value of `event`. Subsequent reads from it will return its default value. + public mutating func clearEvent() {_uniqueStorage()._event = nil} - public var cover: Proto_Cover { - get {return _storage._cover ?? Proto_Cover()} - set {_uniqueStorage()._cover = newValue} + public var alphaChannel: Bool { + get {return _storage._alphaChannel} + set {_uniqueStorage()._alphaChannel = newValue} } - /// Returns true if `cover` has been explicitly set. - public var hasCover: Bool {return _storage._cover != nil} - /// Clears the value of `cover`. Subsequent reads from it will return its default value. - public mutating func clearCover() {_uniqueStorage()._cover = nil} - public var game: Proto_Game { - get {return _storage._game ?? Proto_Game()} - set {_uniqueStorage()._game = newValue} + public var animated: Bool { + get {return _storage._animated} + set {_uniqueStorage()._animated = newValue} } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return _storage._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {_uniqueStorage()._game = nil} - public var region: Proto_Region { - get {return _storage._region ?? Proto_Region()} - set {_uniqueStorage()._region = newValue} + public var height: Int32 { + get {return _storage._height} + set {_uniqueStorage()._height = newValue} + } + + public var imageID: String { + get {return _storage._imageID} + set {_uniqueStorage()._imageID = newValue} + } + + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } + + public var width: Int32 { + get {return _storage._width} + set {_uniqueStorage()._width = newValue} } - /// Returns true if `region` has been explicitly set. - public var hasRegion: Bool {return _storage._region != nil} - /// Clears the value of `region`. Subsequent reads from it will return its default value. - public mutating func clearRegion() {_uniqueStorage()._region = nil} public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -2884,25 +2788,45 @@ public struct Proto_GameLocalization { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_GameModeResult { +public struct Proto_EventNetworkResult { // 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. - public var gamemodes: [Proto_GameMode] = [] + public var eventnetworks: [Proto_EventNetwork] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameMode { +public struct Proto_EventNetwork { // 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. public var id: UInt64 = 0 + public var event: Proto_Event { + get {return _event ?? Proto_Event()} + set {_event = newValue} + } + /// Returns true if `event` has been explicitly set. + public var hasEvent: Bool {return self._event != nil} + /// Clears the value of `event`. Subsequent reads from it will return its default value. + public mutating func clearEvent() {self._event = nil} + + public var url: String = String() + + public var networkType: Proto_NetworkType { + get {return _networkType ?? Proto_NetworkType()} + set {_networkType = newValue} + } + /// Returns true if `networkType` has been explicitly set. + public var hasNetworkType: Bool {return self._networkType != nil} + /// Clears the value of `networkType`. Subsequent reads from it will return its default value. + public mutating func clearNetworkType() {self._networkType = nil} + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} set {_createdAt = newValue} @@ -2912,10 +2836,6 @@ public struct Proto_GameMode { /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. public mutating func clearCreatedAt() {self._createdAt = nil} - public var name: String = String() - - public var slug: String = String() - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} set {_updatedAt = newValue} @@ -2925,37 +2845,39 @@ public struct Proto_GameMode { /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var url: String = String() - public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + fileprivate var _event: Proto_Event? = nil + fileprivate var _networkType: Proto_NetworkType? = nil fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_GameVersionResult { +public struct Proto_ExternalGameResult { // 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. - public var gameversions: [Proto_GameVersion] = [] + public var externalgames: [Proto_ExternalGame] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameVersion { +public struct Proto_ExternalGame { // 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. public var id: UInt64 = 0 + public var category: Proto_ExternalGameCategoryEnum = .externalgameCategoryNull + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} set {_createdAt = newValue} @@ -2965,8 +2887,6 @@ public struct Proto_GameVersion { /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. public mutating func clearCreatedAt() {self._createdAt = nil} - public var features: [Proto_GameVersionFeature] = [] - public var game: Proto_Game { get {return _game ?? Proto_Game()} set {_game = newValue} @@ -2976,7 +2896,9 @@ public struct Proto_GameVersion { /// Clears the value of `game`. Subsequent reads from it will return its default value. public mutating func clearGame() {self._game = nil} - public var games: [Proto_Game] = [] + public var name: String = String() + + public var uid: String = String() public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -2989,6 +2911,21 @@ public struct Proto_GameVersion { public var url: String = String() + public var year: Int32 = 0 + + public var media: Proto_ExternalGameMediaEnum = .externalgameMediaNull + + public var platform: Proto_Platform { + get {return _platform ?? Proto_Platform()} + set {_platform = newValue} + } + /// Returns true if `platform` has been explicitly set. + public var hasPlatform: Bool {return self._platform != nil} + /// Clears the value of `platform`. Subsequent reads from it will return its default value. + public mutating func clearPlatform() {self._platform = nil} + + public var countries: [Int32] = [] + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -2998,391 +2935,574 @@ public struct Proto_GameVersion { fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil fileprivate var _game: Proto_Game? = nil fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _platform: Proto_Platform? = nil } -public struct Proto_GameVersionFeatureResult { +public struct Proto_FranchiseResult { // 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. - public var gameversionfeatures: [Proto_GameVersionFeature] = [] + public var franchises: [Proto_Franchise] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameVersionFeature { +public struct Proto_Franchise { // 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. public var id: UInt64 = 0 - public var category: Proto_GameVersionFeatureCategoryEnum = .boolean + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var description_p: String = String() + public var games: [Proto_Game] = [] - public var position: Int32 = 0 + public var name: String = String() - public var title: String = String() + public var slug: String = String() - public var values: [Proto_GameVersionFeatureValue] = [] + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} + + public var url: String = String() public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_GameVersionFeatureValueResult { +public struct Proto_GameResult { // 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. - public var gameversionfeaturevalues: [Proto_GameVersionFeatureValue] = [] + public var games: [Proto_Game] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_GameVersionFeatureValue { +public struct Proto_Game { // 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. - public var id: UInt64 = 0 + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } - public var game: Proto_Game { - get {return _game ?? Proto_Game()} - set {_game = newValue} + public var ageRatings: [Proto_AgeRating] { + get {return _storage._ageRatings} + set {_uniqueStorage()._ageRatings = newValue} } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return self._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {self._game = nil} - public var gameFeature: Proto_GameVersionFeature { - get {return _gameFeature ?? Proto_GameVersionFeature()} - set {_gameFeature = newValue} + public var aggregatedRating: Double { + get {return _storage._aggregatedRating} + set {_uniqueStorage()._aggregatedRating = newValue} } - /// Returns true if `gameFeature` has been explicitly set. - public var hasGameFeature: Bool {return self._gameFeature != nil} - /// Clears the value of `gameFeature`. Subsequent reads from it will return its default value. - public mutating func clearGameFeature() {self._gameFeature = nil} - public var includedFeature: Proto_GameVersionFeatureValueIncludedFeatureEnum = .notIncluded + public var aggregatedRatingCount: Int32 { + get {return _storage._aggregatedRatingCount} + set {_uniqueStorage()._aggregatedRatingCount = newValue} + } - public var note: String = String() + public var alternativeNames: [Proto_AlternativeName] { + get {return _storage._alternativeNames} + set {_uniqueStorage()._alternativeNames = newValue} + } - public var checksum: String = String() + public var artworks: [Proto_Artwork] { + get {return _storage._artworks} + set {_uniqueStorage()._artworks = newValue} + } - public var unknownFields = SwiftProtobuf.UnknownStorage() + public var bundles: [Proto_Game] { + get {return _storage._bundles} + set {_uniqueStorage()._bundles = newValue} + } - public init() {} + public var category: Proto_GameCategoryEnum { + get {return _storage._category} + set {_uniqueStorage()._category = newValue} + } - fileprivate var _game: Proto_Game? = nil - fileprivate var _gameFeature: Proto_GameVersionFeature? = nil -} + public var collection: Proto_Collection { + get {return _storage._collection ?? Proto_Collection()} + set {_uniqueStorage()._collection = newValue} + } + /// Returns true if `collection` has been explicitly set. + public var hasCollection: Bool {return _storage._collection != nil} + /// Clears the value of `collection`. Subsequent reads from it will return its default value. + public mutating func clearCollection() {_uniqueStorage()._collection = nil} -public struct Proto_GameVideoResult { - // 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. + public var cover: Proto_Cover { + get {return _storage._cover ?? Proto_Cover()} + set {_uniqueStorage()._cover = newValue} + } + /// Returns true if `cover` has been explicitly set. + public var hasCover: Bool {return _storage._cover != nil} + /// Clears the value of `cover`. Subsequent reads from it will return its default value. + public mutating func clearCover() {_uniqueStorage()._cover = nil} - public var gamevideos: [Proto_GameVideo] = [] + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - public var unknownFields = SwiftProtobuf.UnknownStorage() + public var dlcs: [Proto_Game] { + get {return _storage._dlcs} + set {_uniqueStorage()._dlcs = newValue} + } - public init() {} -} + public var expansions: [Proto_Game] { + get {return _storage._expansions} + set {_uniqueStorage()._expansions = newValue} + } -public struct Proto_GameVideo { - // 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. + public var externalGames: [Proto_ExternalGame] { + get {return _storage._externalGames} + set {_uniqueStorage()._externalGames = newValue} + } - public var id: UInt64 = 0 + public var firstReleaseDate: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._firstReleaseDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._firstReleaseDate = newValue} + } + /// Returns true if `firstReleaseDate` has been explicitly set. + public var hasFirstReleaseDate: Bool {return _storage._firstReleaseDate != nil} + /// Clears the value of `firstReleaseDate`. Subsequent reads from it will return its default value. + public mutating func clearFirstReleaseDate() {_uniqueStorage()._firstReleaseDate = nil} - public var game: Proto_Game { - get {return _game ?? Proto_Game()} - set {_game = newValue} + public var follows: Int32 { + get {return _storage._follows} + set {_uniqueStorage()._follows = newValue} } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return self._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {self._game = nil} - public var name: String = String() + public var franchise: Proto_Franchise { + get {return _storage._franchise ?? Proto_Franchise()} + set {_uniqueStorage()._franchise = newValue} + } + /// Returns true if `franchise` has been explicitly set. + public var hasFranchise: Bool {return _storage._franchise != nil} + /// Clears the value of `franchise`. Subsequent reads from it will return its default value. + public mutating func clearFranchise() {_uniqueStorage()._franchise = nil} - public var videoID: String = String() + public var franchises: [Proto_Franchise] { + get {return _storage._franchises} + set {_uniqueStorage()._franchises = newValue} + } - public var checksum: String = String() + public var gameEngines: [Proto_GameEngine] { + get {return _storage._gameEngines} + set {_uniqueStorage()._gameEngines = newValue} + } - public var unknownFields = SwiftProtobuf.UnknownStorage() + public var gameModes: [Proto_GameMode] { + get {return _storage._gameModes} + set {_uniqueStorage()._gameModes = newValue} + } - public init() {} + public var genres: [Proto_Genre] { + get {return _storage._genres} + set {_uniqueStorage()._genres = newValue} + } - fileprivate var _game: Proto_Game? = nil -} + public var hypes: Int32 { + get {return _storage._hypes} + set {_uniqueStorage()._hypes = newValue} + } -public struct Proto_GenreResult { - // 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. + public var involvedCompanies: [Proto_InvolvedCompany] { + get {return _storage._involvedCompanies} + set {_uniqueStorage()._involvedCompanies = newValue} + } - public var genres: [Proto_Genre] = [] + public var keywords: [Proto_Keyword] { + get {return _storage._keywords} + set {_uniqueStorage()._keywords = newValue} + } - public var unknownFields = SwiftProtobuf.UnknownStorage() + public var multiplayerModes: [Proto_MultiplayerMode] { + get {return _storage._multiplayerModes} + set {_uniqueStorage()._multiplayerModes = newValue} + } - public init() {} -} + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} + } -public struct Proto_Genre { - // 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. + public var parentGame: Proto_Game { + get {return _storage._parentGame ?? Proto_Game()} + set {_uniqueStorage()._parentGame = newValue} + } + /// Returns true if `parentGame` has been explicitly set. + public var hasParentGame: Bool {return _storage._parentGame != nil} + /// Clears the value of `parentGame`. Subsequent reads from it will return its default value. + public mutating func clearParentGame() {_uniqueStorage()._parentGame = nil} - public var id: UInt64 = 0 + public var platforms: [Proto_Platform] { + get {return _storage._platforms} + set {_uniqueStorage()._platforms = newValue} + } - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} + public var playerPerspectives: [Proto_PlayerPerspective] { + get {return _storage._playerPerspectives} + set {_uniqueStorage()._playerPerspectives = newValue} } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} - public var name: String = String() + public var rating: Double { + get {return _storage._rating} + set {_uniqueStorage()._rating = newValue} + } - public var slug: String = String() + public var ratingCount: Int32 { + get {return _storage._ratingCount} + set {_uniqueStorage()._ratingCount = newValue} + } - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} + public var releaseDates: [Proto_ReleaseDate] { + get {return _storage._releaseDates} + set {_uniqueStorage()._releaseDates = newValue} } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var url: String = String() + public var screenshots: [Proto_Screenshot] { + get {return _storage._screenshots} + set {_uniqueStorage()._screenshots = newValue} + } - public var checksum: String = String() + public var similarGames: [Proto_Game] { + get {return _storage._similarGames} + set {_uniqueStorage()._similarGames = newValue} + } + + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} + } + + public var standaloneExpansions: [Proto_Game] { + get {return _storage._standaloneExpansions} + set {_uniqueStorage()._standaloneExpansions = newValue} + } + + public var status: Proto_GameStatusEnum { + get {return _storage._status} + set {_uniqueStorage()._status = newValue} + } + + public var storyline: String { + get {return _storage._storyline} + set {_uniqueStorage()._storyline = newValue} + } + + public var summary: String { + get {return _storage._summary} + set {_uniqueStorage()._summary = newValue} + } + + public var tags: [Int32] { + get {return _storage._tags} + set {_uniqueStorage()._tags = newValue} + } + + public var themes: [Proto_Theme] { + get {return _storage._themes} + set {_uniqueStorage()._themes = newValue} + } + + public var totalRating: Double { + get {return _storage._totalRating} + set {_uniqueStorage()._totalRating = newValue} + } + + public var totalRatingCount: Int32 { + get {return _storage._totalRatingCount} + set {_uniqueStorage()._totalRatingCount = newValue} + } + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } + + public var versionParent: Proto_Game { + get {return _storage._versionParent ?? Proto_Game()} + set {_uniqueStorage()._versionParent = newValue} + } + /// Returns true if `versionParent` has been explicitly set. + public var hasVersionParent: Bool {return _storage._versionParent != nil} + /// Clears the value of `versionParent`. Subsequent reads from it will return its default value. + public mutating func clearVersionParent() {_uniqueStorage()._versionParent = nil} + + public var versionTitle: String { + get {return _storage._versionTitle} + set {_uniqueStorage()._versionTitle = newValue} + } + + public var videos: [Proto_GameVideo] { + get {return _storage._videos} + set {_uniqueStorage()._videos = newValue} + } + + public var websites: [Proto_Website] { + get {return _storage._websites} + set {_uniqueStorage()._websites = newValue} + } + + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } + + public var remakes: [Proto_Game] { + get {return _storage._remakes} + set {_uniqueStorage()._remakes = newValue} + } + + public var remasters: [Proto_Game] { + get {return _storage._remasters} + set {_uniqueStorage()._remasters = newValue} + } + + public var expandedGames: [Proto_Game] { + get {return _storage._expandedGames} + set {_uniqueStorage()._expandedGames = newValue} + } + + public var ports: [Proto_Game] { + get {return _storage._ports} + set {_uniqueStorage()._ports = newValue} + } + + public var forks: [Proto_Game] { + get {return _storage._forks} + set {_uniqueStorage()._forks = newValue} + } + + public var languageSupports: [Proto_LanguageSupport] { + get {return _storage._languageSupports} + set {_uniqueStorage()._languageSupports = newValue} + } + + public var gameLocalizations: [Proto_GameLocalization] { + get {return _storage._gameLocalizations} + set {_uniqueStorage()._gameLocalizations = newValue} + } + + public var collections: [Proto_Collection] { + get {return _storage._collections} + set {_uniqueStorage()._collections = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_InvolvedCompanyResult { +public struct Proto_GameEngineResult { // 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. - public var involvedcompanies: [Proto_InvolvedCompany] = [] + public var gameengines: [Proto_GameEngine] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_InvolvedCompany { +public struct Proto_GameEngine { // 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. - public var id: UInt64 = 0 + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } - public var company: Proto_Company { - get {return _company ?? Proto_Company()} - set {_company = newValue} + public var companies: [Proto_Company] { + get {return _storage._companies} + set {_uniqueStorage()._companies = newValue} } - /// Returns true if `company` has been explicitly set. - public var hasCompany: Bool {return self._company != nil} - /// Clears the value of `company`. Subsequent reads from it will return its default value. - public mutating func clearCompany() {self._company = nil} public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} } /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} + public var hasCreatedAt: Bool {return _storage._createdAt != nil} /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - public var developer: Bool = false + public var description_p: String { + get {return _storage._description_p} + set {_uniqueStorage()._description_p = newValue} + } - public var game: Proto_Game { - get {return _game ?? Proto_Game()} - set {_game = newValue} + public var logo: Proto_GameEngineLogo { + get {return _storage._logo ?? Proto_GameEngineLogo()} + set {_uniqueStorage()._logo = newValue} } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return self._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {self._game = nil} + /// Returns true if `logo` has been explicitly set. + public var hasLogo: Bool {return _storage._logo != nil} + /// Clears the value of `logo`. Subsequent reads from it will return its default value. + public mutating func clearLogo() {_uniqueStorage()._logo = nil} - public var porting: Bool = false + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} + } - public var publisher: Bool = false + public var platforms: [Proto_Platform] { + get {return _storage._platforms} + set {_uniqueStorage()._platforms = newValue} + } - public var supporting: Bool = false + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} + } public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} } /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var checksum: String = String() + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } + + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _company: Proto_Company? = nil - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _game: Proto_Game? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_KeywordResult { +public struct Proto_GameEngineLogoResult { // 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. - public var keywords: [Proto_Keyword] = [] + public var gameenginelogos: [Proto_GameEngineLogo] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Keyword { +public struct Proto_GameEngineLogo { // 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. public var id: UInt64 = 0 - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} - } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} + public var alphaChannel: Bool = false - public var name: String = String() + public var animated: Bool = false - public var slug: String = String() + public var height: Int32 = 0 - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} - } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} + public var imageID: String = String() public var url: String = String() + public var width: Int32 = 0 + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_LanguageResult { +public struct Proto_GameLocalizationResult { // 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. - public var languages: [Proto_Language] = [] + public var gamelocalizations: [Proto_GameLocalization] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Language { +public struct Proto_GameLocalization { // 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. - public var id: UInt64 = 0 - - public var name: String = String() - - public var nativeName: String = String() - - public var locale: String = String() - - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} - - public var checksum: String = String() - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} - - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil -} - -public struct Proto_LanguageSupportResult { - // 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. - - public var languagesupports: [Proto_LanguageSupport] = [] - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} -} - -public struct Proto_LanguageSupport { - // 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. - public var id: UInt64 { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} + public var cover: Proto_Cover { + get {return _storage._cover ?? Proto_Cover()} + set {_uniqueStorage()._cover = newValue} } + /// Returns true if `cover` has been explicitly set. + public var hasCover: Bool {return _storage._cover != nil} + /// Clears the value of `cover`. Subsequent reads from it will return its default value. + public mutating func clearCover() {_uniqueStorage()._cover = nil} public var game: Proto_Game { get {return _storage._game ?? Proto_Game()} @@ -3393,23 +3513,14 @@ public struct Proto_LanguageSupport { /// Clears the value of `game`. Subsequent reads from it will return its default value. public mutating func clearGame() {_uniqueStorage()._game = nil} - public var language: Proto_Language { - get {return _storage._language ?? Proto_Language()} - set {_uniqueStorage()._language = newValue} - } - /// Returns true if `language` has been explicitly set. - public var hasLanguage: Bool {return _storage._language != nil} - /// Clears the value of `language`. Subsequent reads from it will return its default value. - public mutating func clearLanguage() {_uniqueStorage()._language = nil} - - public var languageSupportType: Proto_LanguageSupportType { - get {return _storage._languageSupportType ?? Proto_LanguageSupportType()} - set {_uniqueStorage()._languageSupportType = newValue} + public var region: Proto_Region { + get {return _storage._region ?? Proto_Region()} + set {_uniqueStorage()._region = newValue} } - /// Returns true if `languageSupportType` has been explicitly set. - public var hasLanguageSupportType: Bool {return _storage._languageSupportType != nil} - /// Clears the value of `languageSupportType`. Subsequent reads from it will return its default value. - public mutating func clearLanguageSupportType() {_uniqueStorage()._languageSupportType = nil} + /// Returns true if `region` has been explicitly set. + public var hasRegion: Bool {return _storage._region != nil} + /// Clears the value of `region`. Subsequent reads from it will return its default value. + public mutating func clearRegion() {_uniqueStorage()._region = nil} public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -3441,27 +3552,25 @@ public struct Proto_LanguageSupport { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_LanguageSupportTypeResult { +public struct Proto_GameModeResult { // 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. - public var languagesupporttypes: [Proto_LanguageSupportType] = [] + public var gamemodes: [Proto_GameMode] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_LanguageSupportType { +public struct Proto_GameMode { // 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. public var id: UInt64 = 0 - public var name: String = String() - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} set {_createdAt = newValue} @@ -3471,6 +3580,10 @@ public struct Proto_LanguageSupportType { /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. public mutating func clearCreatedAt() {self._createdAt = nil} + public var name: String = String() + + public var slug: String = String() + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} set {_updatedAt = newValue} @@ -3480,6 +3593,8 @@ public struct Proto_LanguageSupportType { /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. public mutating func clearUpdatedAt() {self._updatedAt = nil} + public var url: String = String() + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -3490,28 +3605,35 @@ public struct Proto_LanguageSupportType { fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_MultiplayerModeResult { +public struct Proto_GameVersionResult { // 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. - public var multiplayermodes: [Proto_MultiplayerMode] = [] + public var gameversions: [Proto_GameVersion] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_MultiplayerMode { +public struct Proto_GameVersion { // 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. public var id: UInt64 = 0 - public var campaigncoop: Bool = false + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var dropin: Bool = false + public var features: [Proto_GameVersionFeature] = [] public var game: Proto_Game { get {return _game ?? Proto_Game()} @@ -3522,32 +3644,18 @@ public struct Proto_MultiplayerMode { /// Clears the value of `game`. Subsequent reads from it will return its default value. public mutating func clearGame() {self._game = nil} - public var lancoop: Bool = false - - public var offlinecoop: Bool = false - - public var offlinecoopmax: Int32 = 0 - - public var offlinemax: Int32 = 0 - - public var onlinecoop: Bool = false - - public var onlinecoopmax: Int32 = 0 - - public var onlinemax: Int32 = 0 + public var games: [Proto_Game] = [] - public var platform: Proto_Platform { - get {return _platform ?? Proto_Platform()} - set {_platform = newValue} + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} } - /// Returns true if `platform` has been explicitly set. - public var hasPlatform: Bool {return self._platform != nil} - /// Clears the value of `platform`. Subsequent reads from it will return its default value. - public mutating func clearPlatform() {self._platform = nil} - - public var splitscreen: Bool = false + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var splitscreenonline: Bool = false + public var url: String = String() public var checksum: String = String() @@ -3555,368 +3663,362 @@ public struct Proto_MultiplayerMode { public init() {} + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil fileprivate var _game: Proto_Game? = nil - fileprivate var _platform: Proto_Platform? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_PlatformResult { +public struct Proto_GameVersionFeatureResult { // 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. - public var platforms: [Proto_Platform] = [] + public var gameversionfeatures: [Proto_GameVersionFeature] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Platform { +public struct Proto_GameVersionFeature { // 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. - public var id: UInt64 { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} - } + public var id: UInt64 = 0 - public var abbreviation: String { - get {return _storage._abbreviation} - set {_uniqueStorage()._abbreviation = newValue} - } + public var category: Proto_GameVersionFeatureCategoryEnum = .boolean - public var alternativeName: String { - get {return _storage._alternativeName} - set {_uniqueStorage()._alternativeName = newValue} - } + public var description_p: String = String() - public var category: Proto_PlatformCategoryEnum { - get {return _storage._category} - set {_uniqueStorage()._category = newValue} - } + public var position: Int32 = 0 - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._createdAt = newValue} - } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return _storage._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} + public var title: String = String() - public var generation: Int32 { - get {return _storage._generation} - set {_uniqueStorage()._generation = newValue} - } + public var values: [Proto_GameVersionFeatureValue] = [] - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} - } + public var checksum: String = String() - public var platformLogo: Proto_PlatformLogo { - get {return _storage._platformLogo ?? Proto_PlatformLogo()} - set {_uniqueStorage()._platformLogo = newValue} - } - /// Returns true if `platformLogo` has been explicitly set. - public var hasPlatformLogo: Bool {return _storage._platformLogo != nil} - /// Clears the value of `platformLogo`. Subsequent reads from it will return its default value. - public mutating func clearPlatformLogo() {_uniqueStorage()._platformLogo = nil} + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var platformFamily: Proto_PlatformFamily { - get {return _storage._platformFamily ?? Proto_PlatformFamily()} - set {_uniqueStorage()._platformFamily = newValue} - } - /// Returns true if `platformFamily` has been explicitly set. - public var hasPlatformFamily: Bool {return _storage._platformFamily != nil} - /// Clears the value of `platformFamily`. Subsequent reads from it will return its default value. - public mutating func clearPlatformFamily() {_uniqueStorage()._platformFamily = nil} + public init() {} +} - public var slug: String { - get {return _storage._slug} - set {_uniqueStorage()._slug = newValue} - } +public struct Proto_GameVersionFeatureValueResult { + // 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. - public var summary: String { - get {return _storage._summary} - set {_uniqueStorage()._summary = newValue} - } + public var gameversionfeaturevalues: [Proto_GameVersionFeatureValue] = [] - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._updatedAt = newValue} - } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var url: String { - get {return _storage._url} - set {_uniqueStorage()._url = newValue} - } + public init() {} +} - public var versions: [Proto_PlatformVersion] { - get {return _storage._versions} - set {_uniqueStorage()._versions = newValue} - } +public struct Proto_GameVersionFeatureValue { + // 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. - public var websites: [Proto_PlatformWebsite] { - get {return _storage._websites} - set {_uniqueStorage()._websites = newValue} - } + public var id: UInt64 = 0 - public var checksum: String { - get {return _storage._checksum} - set {_uniqueStorage()._checksum = newValue} + public var game: Proto_Game { + get {return _game ?? Proto_Game()} + set {_game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return self._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {self._game = nil} + + public var gameFeature: Proto_GameVersionFeature { + get {return _gameFeature ?? Proto_GameVersionFeature()} + set {_gameFeature = newValue} } + /// Returns true if `gameFeature` has been explicitly set. + public var hasGameFeature: Bool {return self._gameFeature != nil} + /// Clears the value of `gameFeature`. Subsequent reads from it will return its default value. + public mutating func clearGameFeature() {self._gameFeature = nil} + + public var includedFeature: Proto_GameVersionFeatureValueIncludedFeatureEnum = .notIncluded + + public var note: String = String() + + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _storage = _StorageClass.defaultInstance + fileprivate var _game: Proto_Game? = nil + fileprivate var _gameFeature: Proto_GameVersionFeature? = nil } -public struct Proto_PlatformFamilyResult { +public struct Proto_GameVideoResult { // 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. - public var platformfamilies: [Proto_PlatformFamily] = [] + public var gamevideos: [Proto_GameVideo] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlatformFamily { +public struct Proto_GameVideo { // 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. public var id: UInt64 = 0 + public var game: Proto_Game { + get {return _game ?? Proto_Game()} + set {_game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return self._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {self._game = nil} + public var name: String = String() - public var slug: String = String() + public var videoID: String = String() public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _game: Proto_Game? = nil } -public struct Proto_PlatformLogoResult { +public struct Proto_GenreResult { // 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. - public var platformlogos: [Proto_PlatformLogo] = [] + public var genres: [Proto_Genre] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlatformLogo { +public struct Proto_Genre { // 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. public var id: UInt64 = 0 - public var alphaChannel: Bool = false + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var animated: Bool = false + public var name: String = String() - public var height: Int32 = 0 + public var slug: String = String() - public var imageID: String = String() + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} public var url: String = String() - public var width: Int32 = 0 - public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_PlatformVersionResult { +public struct Proto_InvolvedCompanyResult { // 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. - public var platformversions: [Proto_PlatformVersion] = [] + public var involvedcompanies: [Proto_InvolvedCompany] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlatformVersion { +public struct Proto_InvolvedCompany { // 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. - public var id: UInt64 { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} - } + public var id: UInt64 = 0 - public var companies: [Proto_PlatformVersionCompany] { - get {return _storage._companies} - set {_uniqueStorage()._companies = newValue} + public var company: Proto_Company { + get {return _company ?? Proto_Company()} + set {_company = newValue} } + /// Returns true if `company` has been explicitly set. + public var hasCompany: Bool {return self._company != nil} + /// Clears the value of `company`. Subsequent reads from it will return its default value. + public mutating func clearCompany() {self._company = nil} - public var connectivity: String { - get {return _storage._connectivity} - set {_uniqueStorage()._connectivity = newValue} + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var cpu: String { - get {return _storage._cpu} - set {_uniqueStorage()._cpu = newValue} - } + public var developer: Bool = false - public var graphics: String { - get {return _storage._graphics} - set {_uniqueStorage()._graphics = newValue} + public var game: Proto_Game { + get {return _game ?? Proto_Game()} + set {_game = newValue} } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return self._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {self._game = nil} - public var mainManufacturer: Proto_PlatformVersionCompany { - get {return _storage._mainManufacturer ?? Proto_PlatformVersionCompany()} - set {_uniqueStorage()._mainManufacturer = newValue} - } - /// Returns true if `mainManufacturer` has been explicitly set. - public var hasMainManufacturer: Bool {return _storage._mainManufacturer != nil} - /// Clears the value of `mainManufacturer`. Subsequent reads from it will return its default value. - public mutating func clearMainManufacturer() {_uniqueStorage()._mainManufacturer = nil} + public var porting: Bool = false - public var media: String { - get {return _storage._media} - set {_uniqueStorage()._media = newValue} - } + public var publisher: Bool = false - public var memory: String { - get {return _storage._memory} - set {_uniqueStorage()._memory = newValue} - } + public var supporting: Bool = false - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var online: String { - get {return _storage._online} - set {_uniqueStorage()._online = newValue} - } + public var checksum: String = String() - public var os: String { - get {return _storage._os} - set {_uniqueStorage()._os = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var output: String { - get {return _storage._output} - set {_uniqueStorage()._output = newValue} - } + public init() {} - public var platformLogo: Proto_PlatformLogo { - get {return _storage._platformLogo ?? Proto_PlatformLogo()} - set {_uniqueStorage()._platformLogo = newValue} - } - /// Returns true if `platformLogo` has been explicitly set. - public var hasPlatformLogo: Bool {return _storage._platformLogo != nil} - /// Clears the value of `platformLogo`. Subsequent reads from it will return its default value. - public mutating func clearPlatformLogo() {_uniqueStorage()._platformLogo = nil} + fileprivate var _company: Proto_Company? = nil + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _game: Proto_Game? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil +} - public var platformVersionReleaseDates: [Proto_PlatformVersionReleaseDate] { - get {return _storage._platformVersionReleaseDates} - set {_uniqueStorage()._platformVersionReleaseDates = newValue} - } +public struct Proto_KeywordResult { + // 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. - public var resolutions: String { - get {return _storage._resolutions} - set {_uniqueStorage()._resolutions = newValue} - } + public var keywords: [Proto_Keyword] = [] - public var slug: String { - get {return _storage._slug} - set {_uniqueStorage()._slug = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var sound: String { - get {return _storage._sound} - set {_uniqueStorage()._sound = newValue} - } + public init() {} +} - public var storage: String { - get {return _storage._storage} - set {_uniqueStorage()._storage = newValue} - } +public struct Proto_Keyword { + // 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. - public var summary: String { - get {return _storage._summary} - set {_uniqueStorage()._summary = newValue} - } + public var id: UInt64 = 0 - public var url: String { - get {return _storage._url} - set {_uniqueStorage()._url = newValue} + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var checksum: String { - get {return _storage._checksum} - set {_uniqueStorage()._checksum = newValue} + public var name: String = String() + + public var slug: String = String() + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} + + public var url: String = String() + + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _storage = _StorageClass.defaultInstance + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_PlatformVersionCompanyResult { +public struct Proto_LanguageResult { // 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. - public var platformversioncompanies: [Proto_PlatformVersionCompany] = [] + public var languages: [Proto_Language] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlatformVersionCompany { +public struct Proto_Language { // 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. public var id: UInt64 = 0 - public var comment: String = String() + public var name: String = String() - public var company: Proto_Company { - get {return _company ?? Proto_Company()} - set {_company = newValue} - } - /// Returns true if `company` has been explicitly set. - public var hasCompany: Bool {return self._company != nil} - /// Clears the value of `company`. Subsequent reads from it will return its default value. - public mutating func clearCompany() {self._company = nil} + public var nativeName: String = String() - public var developer: Bool = false + public var locale: String = String() - public var manufacturer: Bool = false + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} public var checksum: String = String() @@ -3924,160 +4026,196 @@ public struct Proto_PlatformVersionCompany { public init() {} - fileprivate var _company: Proto_Company? = nil + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_PlatformVersionReleaseDateResult { +public struct Proto_LanguageSupportResult { // 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. - public var platformversionreleasedates: [Proto_PlatformVersionReleaseDate] = [] + public var languagesupports: [Proto_LanguageSupport] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlatformVersionReleaseDate { +public struct Proto_LanguageSupport { // 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. - public var id: UInt64 = 0 - - public var category: Proto_DateFormatChangeDateCategoryEnum = .yyyymmmmdd - - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} - public var date: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _date ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_date = newValue} + public var game: Proto_Game { + get {return _storage._game ?? Proto_Game()} + set {_uniqueStorage()._game = newValue} } - /// Returns true if `date` has been explicitly set. - public var hasDate: Bool {return self._date != nil} - /// Clears the value of `date`. Subsequent reads from it will return its default value. - public mutating func clearDate() {self._date = nil} - - public var human: String = String() + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return _storage._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {_uniqueStorage()._game = nil} - public var m: Int32 = 0 + public var language: Proto_Language { + get {return _storage._language ?? Proto_Language()} + set {_uniqueStorage()._language = newValue} + } + /// Returns true if `language` has been explicitly set. + public var hasLanguage: Bool {return _storage._language != nil} + /// Clears the value of `language`. Subsequent reads from it will return its default value. + public mutating func clearLanguage() {_uniqueStorage()._language = nil} - public var platformVersion: Proto_PlatformVersion { - get {return _platformVersion ?? Proto_PlatformVersion()} - set {_platformVersion = newValue} + public var languageSupportType: Proto_LanguageSupportType { + get {return _storage._languageSupportType ?? Proto_LanguageSupportType()} + set {_uniqueStorage()._languageSupportType = newValue} } - /// Returns true if `platformVersion` has been explicitly set. - public var hasPlatformVersion: Bool {return self._platformVersion != nil} - /// Clears the value of `platformVersion`. Subsequent reads from it will return its default value. - public mutating func clearPlatformVersion() {self._platformVersion = nil} + /// Returns true if `languageSupportType` has been explicitly set. + public var hasLanguageSupportType: Bool {return _storage._languageSupportType != nil} + /// Clears the value of `languageSupportType`. Subsequent reads from it will return its default value. + public mutating func clearLanguageSupportType() {_uniqueStorage()._languageSupportType = nil} - public var region: Proto_RegionRegionEnum = .regionRegionNull + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} } /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} - - public var y: Int32 = 0 + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var checksum: String = String() + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _date: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _platformVersion: Proto_PlatformVersion? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_PlatformWebsiteResult { +public struct Proto_LanguageSupportTypeResult { // 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. - public var platformwebsites: [Proto_PlatformWebsite] = [] + public var languagesupporttypes: [Proto_LanguageSupportType] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlatformWebsite { +public struct Proto_LanguageSupportType { // 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. public var id: UInt64 = 0 - public var category: Proto_WebsiteCategoryEnum = .websiteCategoryNull + public var name: String = String() - public var trusted: Bool = false + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var url: String = String() + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} + + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_PlayerPerspectiveResult { +public struct Proto_MultiplayerModeResult { // 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. - public var playerperspectives: [Proto_PlayerPerspective] = [] + public var multiplayermodes: [Proto_MultiplayerMode] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_PlayerPerspective { +public struct Proto_MultiplayerMode { // 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. public var id: UInt64 = 0 - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} + public var campaigncoop: Bool = false + + public var dropin: Bool = false + + public var game: Proto_Game { + get {return _game ?? Proto_Game()} + set {_game = newValue} } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return self._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {self._game = nil} - public var name: String = String() + public var lancoop: Bool = false - public var slug: String = String() + public var offlinecoop: Bool = false - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} + public var offlinecoopmax: Int32 = 0 + + public var offlinemax: Int32 = 0 + + public var onlinecoop: Bool = false + + public var onlinecoopmax: Int32 = 0 + + public var onlinemax: Int32 = 0 + + public var platform: Proto_Platform { + get {return _platform ?? Proto_Platform()} + set {_platform = newValue} } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} + /// Returns true if `platform` has been explicitly set. + public var hasPlatform: Bool {return self._platform != nil} + /// Clears the value of `platform`. Subsequent reads from it will return its default value. + public mutating func clearPlatform() {self._platform = nil} - public var url: String = String() + public var splitscreen: Bool = false + + public var splitscreenonline: Bool = false public var checksum: String = String() @@ -4085,23 +4223,23 @@ public struct Proto_PlayerPerspective { public init() {} - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _game: Proto_Game? = nil + fileprivate var _platform: Proto_Platform? = nil } -public struct Proto_RegionResult { +public struct Proto_NetworkTypeResult { // 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. - public var regions: [Proto_Region] = [] + public var networktypes: [Proto_NetworkType] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Region { +public struct Proto_NetworkType { // 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. @@ -4110,9 +4248,7 @@ public struct Proto_Region { public var name: String = String() - public var category: String = String() - - public var identifier: String = String() + public var eventNetworks: [Proto_EventNetwork] = [] public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} @@ -4142,19 +4278,19 @@ public struct Proto_Region { fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_ReleaseDateResult { +public struct Proto_PlatformResult { // 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. - public var releasedates: [Proto_ReleaseDate] = [] + public var platforms: [Proto_Platform] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_ReleaseDate { +public struct Proto_Platform { // 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. @@ -4164,7 +4300,17 @@ public struct Proto_ReleaseDate { set {_uniqueStorage()._id = newValue} } - public var category: Proto_DateFormatChangeDateCategoryEnum { + public var abbreviation: String { + get {return _storage._abbreviation} + set {_uniqueStorage()._abbreviation = newValue} + } + + public var alternativeName: String { + get {return _storage._alternativeName} + set {_uniqueStorage()._alternativeName = newValue} + } + + public var category: Proto_PlatformCategoryEnum { get {return _storage._category} set {_uniqueStorage()._category = newValue} } @@ -4178,46 +4324,42 @@ public struct Proto_ReleaseDate { /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} - public var date: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._date ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._date = newValue} + public var generation: Int32 { + get {return _storage._generation} + set {_uniqueStorage()._generation = newValue} } - /// Returns true if `date` has been explicitly set. - public var hasDate: Bool {return _storage._date != nil} - /// Clears the value of `date`. Subsequent reads from it will return its default value. - public mutating func clearDate() {_uniqueStorage()._date = nil} - public var game: Proto_Game { - get {return _storage._game ?? Proto_Game()} - set {_uniqueStorage()._game = newValue} + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return _storage._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {_uniqueStorage()._game = nil} - public var human: String { - get {return _storage._human} - set {_uniqueStorage()._human = newValue} + public var platformLogo: Proto_PlatformLogo { + get {return _storage._platformLogo ?? Proto_PlatformLogo()} + set {_uniqueStorage()._platformLogo = newValue} } + /// Returns true if `platformLogo` has been explicitly set. + public var hasPlatformLogo: Bool {return _storage._platformLogo != nil} + /// Clears the value of `platformLogo`. Subsequent reads from it will return its default value. + public mutating func clearPlatformLogo() {_uniqueStorage()._platformLogo = nil} - public var m: Int32 { - get {return _storage._m} - set {_uniqueStorage()._m = newValue} + public var platformFamily: Proto_PlatformFamily { + get {return _storage._platformFamily ?? Proto_PlatformFamily()} + set {_uniqueStorage()._platformFamily = newValue} } + /// Returns true if `platformFamily` has been explicitly set. + public var hasPlatformFamily: Bool {return _storage._platformFamily != nil} + /// Clears the value of `platformFamily`. Subsequent reads from it will return its default value. + public mutating func clearPlatformFamily() {_uniqueStorage()._platformFamily = nil} - public var platform: Proto_Platform { - get {return _storage._platform ?? Proto_Platform()} - set {_uniqueStorage()._platform = newValue} + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} } - /// Returns true if `platform` has been explicitly set. - public var hasPlatform: Bool {return _storage._platform != nil} - /// Clears the value of `platform`. Subsequent reads from it will return its default value. - public mutating func clearPlatform() {_uniqueStorage()._platform = nil} - public var region: Proto_RegionRegionEnum { - get {return _storage._region} - set {_uniqueStorage()._region = newValue} + public var summary: String { + get {return _storage._summary} + set {_uniqueStorage()._summary = newValue} } public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { @@ -4229,9 +4371,19 @@ public struct Proto_ReleaseDate { /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} - public var y: Int32 { - get {return _storage._y} - set {_uniqueStorage()._y = newValue} + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } + + public var versions: [Proto_PlatformVersion] { + get {return _storage._versions} + set {_uniqueStorage()._versions = newValue} + } + + public var websites: [Proto_PlatformWebsite] { + get {return _storage._websites} + set {_uniqueStorage()._websites = newValue} } public var checksum: String { @@ -4239,15 +4391,6 @@ public struct Proto_ReleaseDate { set {_uniqueStorage()._checksum = newValue} } - public var status: Proto_ReleaseDateStatus { - get {return _storage._status ?? Proto_ReleaseDateStatus()} - set {_uniqueStorage()._status = newValue} - } - /// Returns true if `status` has been explicitly set. - public var hasStatus: Bool {return _storage._status != nil} - /// Clears the value of `status`. Subsequent reads from it will return its default value. - public mutating func clearStatus() {_uniqueStorage()._status = nil} - public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -4255,19 +4398,19 @@ public struct Proto_ReleaseDate { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_ReleaseDateStatusResult { +public struct Proto_PlatformFamilyResult { // 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. - public var releasedatestatuses: [Proto_ReleaseDateStatus] = [] + public var platformfamilies: [Proto_PlatformFamily] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_ReleaseDateStatus { +public struct Proto_PlatformFamily { // 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. @@ -4276,49 +4419,28 @@ public struct Proto_ReleaseDateStatus { public var name: String = String() - public var description_p: String = String() - - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdAt = newValue} - } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return self._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {self._createdAt = nil} - - public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_updatedAt = newValue} - } - /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return self._updatedAt != nil} - /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {self._updatedAt = nil} + public var slug: String = String() public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_ScreenshotResult { +public struct Proto_PlatformLogoResult { // 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. - public var screenshots: [Proto_Screenshot] = [] + public var platformlogos: [Proto_PlatformLogo] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Screenshot { +public struct Proto_PlatformLogo { // 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. @@ -4329,15 +4451,6 @@ public struct Proto_Screenshot { public var animated: Bool = false - public var game: Proto_Game { - get {return _game ?? Proto_Game()} - set {_game = newValue} - } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return self._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {self._game = nil} - public var height: Int32 = 0 public var imageID: String = String() @@ -4351,23 +4464,21 @@ public struct Proto_Screenshot { public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - - fileprivate var _game: Proto_Game? = nil } -public struct Proto_SearchResult { +public struct Proto_PlatformVersionResult { // 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. - public var searches: [Proto_Search] = [] + public var platformversions: [Proto_PlatformVersion] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Search { +public struct Proto_PlatformVersion { // 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. @@ -4377,92 +4488,108 @@ public struct Proto_Search { set {_uniqueStorage()._id = newValue} } - public var alternativeName: String { - get {return _storage._alternativeName} - set {_uniqueStorage()._alternativeName = newValue} + public var companies: [Proto_PlatformVersionCompany] { + get {return _storage._companies} + set {_uniqueStorage()._companies = newValue} } - public var character: Proto_Character { - get {return _storage._character ?? Proto_Character()} - set {_uniqueStorage()._character = newValue} + public var connectivity: String { + get {return _storage._connectivity} + set {_uniqueStorage()._connectivity = newValue} } - /// Returns true if `character` has been explicitly set. - public var hasCharacter: Bool {return _storage._character != nil} - /// Clears the value of `character`. Subsequent reads from it will return its default value. - public mutating func clearCharacter() {_uniqueStorage()._character = nil} - public var collection: Proto_Collection { - get {return _storage._collection ?? Proto_Collection()} - set {_uniqueStorage()._collection = newValue} + public var cpu: String { + get {return _storage._cpu} + set {_uniqueStorage()._cpu = newValue} } - /// Returns true if `collection` has been explicitly set. - public var hasCollection: Bool {return _storage._collection != nil} - /// Clears the value of `collection`. Subsequent reads from it will return its default value. - public mutating func clearCollection() {_uniqueStorage()._collection = nil} - public var company: Proto_Company { - get {return _storage._company ?? Proto_Company()} - set {_uniqueStorage()._company = newValue} + public var graphics: String { + get {return _storage._graphics} + set {_uniqueStorage()._graphics = newValue} } - /// Returns true if `company` has been explicitly set. - public var hasCompany: Bool {return _storage._company != nil} - /// Clears the value of `company`. Subsequent reads from it will return its default value. - public mutating func clearCompany() {_uniqueStorage()._company = nil} - public var description_p: String { - get {return _storage._description_p} - set {_uniqueStorage()._description_p = newValue} + public var mainManufacturer: Proto_PlatformVersionCompany { + get {return _storage._mainManufacturer ?? Proto_PlatformVersionCompany()} + set {_uniqueStorage()._mainManufacturer = newValue} } + /// Returns true if `mainManufacturer` has been explicitly set. + public var hasMainManufacturer: Bool {return _storage._mainManufacturer != nil} + /// Clears the value of `mainManufacturer`. Subsequent reads from it will return its default value. + public mutating func clearMainManufacturer() {_uniqueStorage()._mainManufacturer = nil} - public var game: Proto_Game { - get {return _storage._game ?? Proto_Game()} - set {_uniqueStorage()._game = newValue} + public var media: String { + get {return _storage._media} + set {_uniqueStorage()._media = newValue} + } + + public var memory: String { + get {return _storage._memory} + set {_uniqueStorage()._memory = newValue} } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return _storage._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {_uniqueStorage()._game = nil} public var name: String { get {return _storage._name} set {_uniqueStorage()._name = newValue} } - public var platform: Proto_Platform { - get {return _storage._platform ?? Proto_Platform()} - set {_uniqueStorage()._platform = newValue} + public var online: String { + get {return _storage._online} + set {_uniqueStorage()._online = newValue} } - /// Returns true if `platform` has been explicitly set. - public var hasPlatform: Bool {return _storage._platform != nil} - /// Clears the value of `platform`. Subsequent reads from it will return its default value. - public mutating func clearPlatform() {_uniqueStorage()._platform = nil} - public var publishedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._publishedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._publishedAt = newValue} + public var os: String { + get {return _storage._os} + set {_uniqueStorage()._os = newValue} } - /// Returns true if `publishedAt` has been explicitly set. - public var hasPublishedAt: Bool {return _storage._publishedAt != nil} - /// Clears the value of `publishedAt`. Subsequent reads from it will return its default value. - public mutating func clearPublishedAt() {_uniqueStorage()._publishedAt = nil} - public var testDummy: Proto_TestDummy { - get {return _storage._testDummy ?? Proto_TestDummy()} - set {_uniqueStorage()._testDummy = newValue} + public var output: String { + get {return _storage._output} + set {_uniqueStorage()._output = newValue} } - /// Returns true if `testDummy` has been explicitly set. - public var hasTestDummy: Bool {return _storage._testDummy != nil} - /// Clears the value of `testDummy`. Subsequent reads from it will return its default value. - public mutating func clearTestDummy() {_uniqueStorage()._testDummy = nil} - public var theme: Proto_Theme { - get {return _storage._theme ?? Proto_Theme()} - set {_uniqueStorage()._theme = newValue} + public var platformLogo: Proto_PlatformLogo { + get {return _storage._platformLogo ?? Proto_PlatformLogo()} + set {_uniqueStorage()._platformLogo = newValue} + } + /// Returns true if `platformLogo` has been explicitly set. + public var hasPlatformLogo: Bool {return _storage._platformLogo != nil} + /// Clears the value of `platformLogo`. Subsequent reads from it will return its default value. + public mutating func clearPlatformLogo() {_uniqueStorage()._platformLogo = nil} + + public var platformVersionReleaseDates: [Proto_PlatformVersionReleaseDate] { + get {return _storage._platformVersionReleaseDates} + set {_uniqueStorage()._platformVersionReleaseDates = newValue} + } + + public var resolutions: String { + get {return _storage._resolutions} + set {_uniqueStorage()._resolutions = newValue} + } + + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} + } + + public var sound: String { + get {return _storage._sound} + set {_uniqueStorage()._sound = newValue} + } + + public var storage: String { + get {return _storage._storage} + set {_uniqueStorage()._storage = newValue} + } + + public var summary: String { + get {return _storage._summary} + set {_uniqueStorage()._summary = newValue} + } + + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} } - /// Returns true if `theme` has been explicitly set. - public var hasTheme: Bool {return _storage._theme != nil} - /// Clears the value of `theme`. Subsequent reads from it will return its default value. - public mutating func clearTheme() {_uniqueStorage()._theme = nil} public var checksum: String { get {return _storage._checksum} @@ -4476,149 +4603,171 @@ public struct Proto_Search { fileprivate var _storage = _StorageClass.defaultInstance } -public struct Proto_TestDummyResult { +public struct Proto_PlatformVersionCompanyResult { // 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. - public var testdummies: [Proto_TestDummy] = [] + public var platformversioncompanies: [Proto_PlatformVersionCompany] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_TestDummy { +public struct Proto_PlatformVersionCompany { // 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. - public var id: UInt64 { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} - } + public var id: UInt64 = 0 - public var boolValue: Bool { - get {return _storage._boolValue} - set {_uniqueStorage()._boolValue = newValue} - } + public var comment: String = String() - public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._createdAt = newValue} + public var company: Proto_Company { + get {return _company ?? Proto_Company()} + set {_company = newValue} } - /// Returns true if `createdAt` has been explicitly set. - public var hasCreatedAt: Bool {return _storage._createdAt != nil} - /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. - public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} + /// Returns true if `company` has been explicitly set. + public var hasCompany: Bool {return self._company != nil} + /// Clears the value of `company`. Subsequent reads from it will return its default value. + public mutating func clearCompany() {self._company = nil} - public var enumTest: Proto_TestDummyEnumTestEnum { - get {return _storage._enumTest} - set {_uniqueStorage()._enumTest = newValue} - } + public var developer: Bool = false - public var floatValue: Double { - get {return _storage._floatValue} - set {_uniqueStorage()._floatValue = newValue} - } + public var manufacturer: Bool = false - public var game: Proto_Game { - get {return _storage._game ?? Proto_Game()} - set {_uniqueStorage()._game = newValue} - } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return _storage._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {_uniqueStorage()._game = nil} + public var checksum: String = String() - public var integerArray: [Int32] { - get {return _storage._integerArray} - set {_uniqueStorage()._integerArray = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var integerValue: Int32 { - get {return _storage._integerValue} - set {_uniqueStorage()._integerValue = newValue} - } + public init() {} - public var name: String { - get {return _storage._name} - set {_uniqueStorage()._name = newValue} - } + fileprivate var _company: Proto_Company? = nil +} - public var newIntegerValue: Int32 { - get {return _storage._newIntegerValue} - set {_uniqueStorage()._newIntegerValue = newValue} - } +public struct Proto_PlatformVersionReleaseDateResult { + // 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. - public var `private`: Bool { - get {return _storage._private} - set {_uniqueStorage()._private = newValue} - } + public var platformversionreleasedates: [Proto_PlatformVersionReleaseDate] = [] - public var slug: String { - get {return _storage._slug} - set {_uniqueStorage()._slug = newValue} - } + public var unknownFields = SwiftProtobuf.UnknownStorage() - public var stringArray: [String] { - get {return _storage._stringArray} - set {_uniqueStorage()._stringArray = newValue} + public init() {} +} + +public struct Proto_PlatformVersionReleaseDate { + // 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. + + public var id: UInt64 = 0 + + public var category: Proto_DateFormatChangeDateCategoryEnum = .yyyymmmmdd + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} - public var testDummies: [Proto_TestDummy] { - get {return _storage._testDummies} - set {_uniqueStorage()._testDummies = newValue} + public var date: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _date ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_date = newValue} } + /// Returns true if `date` has been explicitly set. + public var hasDate: Bool {return self._date != nil} + /// Clears the value of `date`. Subsequent reads from it will return its default value. + public mutating func clearDate() {self._date = nil} - public var testDummy: Proto_TestDummy { - get {return _storage._testDummy ?? Proto_TestDummy()} - set {_uniqueStorage()._testDummy = newValue} + public var human: String = String() + + public var m: Int32 = 0 + + public var platformVersion: Proto_PlatformVersion { + get {return _platformVersion ?? Proto_PlatformVersion()} + set {_platformVersion = newValue} } - /// Returns true if `testDummy` has been explicitly set. - public var hasTestDummy: Bool {return _storage._testDummy != nil} - /// Clears the value of `testDummy`. Subsequent reads from it will return its default value. - public mutating func clearTestDummy() {_uniqueStorage()._testDummy = nil} + /// Returns true if `platformVersion` has been explicitly set. + public var hasPlatformVersion: Bool {return self._platformVersion != nil} + /// Clears the value of `platformVersion`. Subsequent reads from it will return its default value. + public mutating func clearPlatformVersion() {self._platformVersion = nil} + + public var region: Proto_RegionRegionEnum = .regionRegionNull public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._updatedAt = newValue} + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} } /// Returns true if `updatedAt` has been explicitly set. - public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + public var hasUpdatedAt: Bool {return self._updatedAt != nil} /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. - public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + public mutating func clearUpdatedAt() {self._updatedAt = nil} - public var url: String { - get {return _storage._url} - set {_uniqueStorage()._url = newValue} - } + public var y: Int32 = 0 - public var checksum: String { - get {return _storage._checksum} - set {_uniqueStorage()._checksum = newValue} - } + public var checksum: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _storage = _StorageClass.defaultInstance + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _date: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _platformVersion: Proto_PlatformVersion? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_ThemeResult { +public struct Proto_PlatformWebsiteResult { // 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. - public var themes: [Proto_Theme] = [] + public var platformwebsites: [Proto_PlatformWebsite] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Theme { +public struct Proto_PlatformWebsite { + // 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. + + public var id: UInt64 = 0 + + public var category: Proto_WebsiteCategoryEnum = .websiteCategoryNull + + public var trusted: Bool = false + + public var url: String = String() + + public var checksum: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_PlayerPerspectiveResult { + // 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. + + public var playerperspectives: [Proto_PlayerPerspective] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_PlayerPerspective { // 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. @@ -4659,39 +4808,48 @@ public struct Proto_Theme { fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -public struct Proto_WebsiteResult { +public struct Proto_RegionResult { // 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. - public var websites: [Proto_Website] = [] + public var regions: [Proto_Region] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} } -public struct Proto_Website { +public struct Proto_Region { // 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. public var id: UInt64 = 0 - public var category: Proto_WebsiteCategoryEnum = .websiteCategoryNull + public var name: String = String() - public var game: Proto_Game { - get {return _game ?? Proto_Game()} - set {_game = newValue} - } - /// Returns true if `game` has been explicitly set. - public var hasGame: Bool {return self._game != nil} - /// Clears the value of `game`. Subsequent reads from it will return its default value. - public mutating func clearGame() {self._game = nil} + public var category: String = String() - public var trusted: Bool = false + public var identifier: String = String() - public var url: String = String() + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} public var checksum: String = String() @@ -4699,32 +4857,593 @@ public struct Proto_Website { public init() {} - fileprivate var _game: Proto_Game? = nil + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil } -#if swift(>=5.5) && canImport(_Concurrency) -extension Proto_AgeRatingCategoryEnum: @unchecked Sendable {} -extension Proto_AgeRatingRatingEnum: @unchecked Sendable {} -extension Proto_AgeRatingContentDescriptionCategoryEnum: @unchecked Sendable {} -extension Proto_GenderGenderEnum: @unchecked Sendable {} -extension Proto_CharacterSpeciesEnum: @unchecked Sendable {} -extension Proto_DateFormatChangeDateCategoryEnum: @unchecked Sendable {} -extension Proto_WebsiteCategoryEnum: @unchecked Sendable {} -extension Proto_ExternalGameCategoryEnum: @unchecked Sendable {} -extension Proto_ExternalGameMediaEnum: @unchecked Sendable {} -extension Proto_GameCategoryEnum: @unchecked Sendable {} -extension Proto_GameStatusEnum: @unchecked Sendable {} -extension Proto_GameVersionFeatureCategoryEnum: @unchecked Sendable {} -extension Proto_GameVersionFeatureValueIncludedFeatureEnum: @unchecked Sendable {} -extension Proto_PlatformCategoryEnum: @unchecked Sendable {} -extension Proto_RegionRegionEnum: @unchecked Sendable {} -extension Proto_TestDummyEnumTestEnum: @unchecked Sendable {} -extension Proto_Count: @unchecked Sendable {} -extension Proto_MultiQueryResult: @unchecked Sendable {} -extension Proto_MultiQueryResultArray: @unchecked Sendable {} -extension Proto_AgeRatingResult: @unchecked Sendable {} -extension Proto_AgeRating: @unchecked Sendable {} -extension Proto_AgeRatingContentDescriptionResult: @unchecked Sendable {} +public struct Proto_ReleaseDateResult { + // 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. + + public var releasedates: [Proto_ReleaseDate] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_ReleaseDate { + // 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. + + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } + + public var category: Proto_DateFormatChangeDateCategoryEnum { + get {return _storage._category} + set {_uniqueStorage()._category = newValue} + } + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} + + public var date: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._date ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._date = newValue} + } + /// Returns true if `date` has been explicitly set. + public var hasDate: Bool {return _storage._date != nil} + /// Clears the value of `date`. Subsequent reads from it will return its default value. + public mutating func clearDate() {_uniqueStorage()._date = nil} + + public var game: Proto_Game { + get {return _storage._game ?? Proto_Game()} + set {_uniqueStorage()._game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return _storage._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {_uniqueStorage()._game = nil} + + public var human: String { + get {return _storage._human} + set {_uniqueStorage()._human = newValue} + } + + public var m: Int32 { + get {return _storage._m} + set {_uniqueStorage()._m = newValue} + } + + public var platform: Proto_Platform { + get {return _storage._platform ?? Proto_Platform()} + set {_uniqueStorage()._platform = newValue} + } + /// Returns true if `platform` has been explicitly set. + public var hasPlatform: Bool {return _storage._platform != nil} + /// Clears the value of `platform`. Subsequent reads from it will return its default value. + public mutating func clearPlatform() {_uniqueStorage()._platform = nil} + + public var region: Proto_RegionRegionEnum { + get {return _storage._region} + set {_uniqueStorage()._region = newValue} + } + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + + public var y: Int32 { + get {return _storage._y} + set {_uniqueStorage()._y = newValue} + } + + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } + + public var status: Proto_ReleaseDateStatus { + get {return _storage._status ?? Proto_ReleaseDateStatus()} + set {_uniqueStorage()._status = newValue} + } + /// Returns true if `status` has been explicitly set. + public var hasStatus: Bool {return _storage._status != nil} + /// Clears the value of `status`. Subsequent reads from it will return its default value. + public mutating func clearStatus() {_uniqueStorage()._status = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct Proto_ReleaseDateStatusResult { + // 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. + + public var releasedatestatuses: [Proto_ReleaseDateStatus] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_ReleaseDateStatus { + // 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. + + public var id: UInt64 = 0 + + public var name: String = String() + + public var description_p: String = String() + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} + + public var checksum: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil +} + +public struct Proto_ScreenshotResult { + // 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. + + public var screenshots: [Proto_Screenshot] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_Screenshot { + // 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. + + public var id: UInt64 = 0 + + public var alphaChannel: Bool = false + + public var animated: Bool = false + + public var game: Proto_Game { + get {return _game ?? Proto_Game()} + set {_game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return self._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {self._game = nil} + + public var height: Int32 = 0 + + public var imageID: String = String() + + public var url: String = String() + + public var width: Int32 = 0 + + public var checksum: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _game: Proto_Game? = nil +} + +public struct Proto_SearchResult { + // 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. + + public var searches: [Proto_Search] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_Search { + // 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. + + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } + + public var alternativeName: String { + get {return _storage._alternativeName} + set {_uniqueStorage()._alternativeName = newValue} + } + + public var character: Proto_Character { + get {return _storage._character ?? Proto_Character()} + set {_uniqueStorage()._character = newValue} + } + /// Returns true if `character` has been explicitly set. + public var hasCharacter: Bool {return _storage._character != nil} + /// Clears the value of `character`. Subsequent reads from it will return its default value. + public mutating func clearCharacter() {_uniqueStorage()._character = nil} + + public var collection: Proto_Collection { + get {return _storage._collection ?? Proto_Collection()} + set {_uniqueStorage()._collection = newValue} + } + /// Returns true if `collection` has been explicitly set. + public var hasCollection: Bool {return _storage._collection != nil} + /// Clears the value of `collection`. Subsequent reads from it will return its default value. + public mutating func clearCollection() {_uniqueStorage()._collection = nil} + + public var company: Proto_Company { + get {return _storage._company ?? Proto_Company()} + set {_uniqueStorage()._company = newValue} + } + /// Returns true if `company` has been explicitly set. + public var hasCompany: Bool {return _storage._company != nil} + /// Clears the value of `company`. Subsequent reads from it will return its default value. + public mutating func clearCompany() {_uniqueStorage()._company = nil} + + public var description_p: String { + get {return _storage._description_p} + set {_uniqueStorage()._description_p = newValue} + } + + public var game: Proto_Game { + get {return _storage._game ?? Proto_Game()} + set {_uniqueStorage()._game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return _storage._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {_uniqueStorage()._game = nil} + + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} + } + + public var platform: Proto_Platform { + get {return _storage._platform ?? Proto_Platform()} + set {_uniqueStorage()._platform = newValue} + } + /// Returns true if `platform` has been explicitly set. + public var hasPlatform: Bool {return _storage._platform != nil} + /// Clears the value of `platform`. Subsequent reads from it will return its default value. + public mutating func clearPlatform() {_uniqueStorage()._platform = nil} + + public var publishedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._publishedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._publishedAt = newValue} + } + /// Returns true if `publishedAt` has been explicitly set. + public var hasPublishedAt: Bool {return _storage._publishedAt != nil} + /// Clears the value of `publishedAt`. Subsequent reads from it will return its default value. + public mutating func clearPublishedAt() {_uniqueStorage()._publishedAt = nil} + + public var testDummy: Proto_TestDummy { + get {return _storage._testDummy ?? Proto_TestDummy()} + set {_uniqueStorage()._testDummy = newValue} + } + /// Returns true if `testDummy` has been explicitly set. + public var hasTestDummy: Bool {return _storage._testDummy != nil} + /// Clears the value of `testDummy`. Subsequent reads from it will return its default value. + public mutating func clearTestDummy() {_uniqueStorage()._testDummy = nil} + + public var theme: Proto_Theme { + get {return _storage._theme ?? Proto_Theme()} + set {_uniqueStorage()._theme = newValue} + } + /// Returns true if `theme` has been explicitly set. + public var hasTheme: Bool {return _storage._theme != nil} + /// Clears the value of `theme`. Subsequent reads from it will return its default value. + public mutating func clearTheme() {_uniqueStorage()._theme = nil} + + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct Proto_TestDummyResult { + // 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. + + public var testdummies: [Proto_TestDummy] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_TestDummy { + // 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. + + public var id: UInt64 { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } + + public var boolValue: Bool { + get {return _storage._boolValue} + set {_uniqueStorage()._boolValue = newValue} + } + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return _storage._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {_uniqueStorage()._createdAt = nil} + + public var enumTest: Proto_TestDummyEnumTestEnum { + get {return _storage._enumTest} + set {_uniqueStorage()._enumTest = newValue} + } + + public var floatValue: Double { + get {return _storage._floatValue} + set {_uniqueStorage()._floatValue = newValue} + } + + public var game: Proto_Game { + get {return _storage._game ?? Proto_Game()} + set {_uniqueStorage()._game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return _storage._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {_uniqueStorage()._game = nil} + + public var integerArray: [Int32] { + get {return _storage._integerArray} + set {_uniqueStorage()._integerArray = newValue} + } + + public var integerValue: Int32 { + get {return _storage._integerValue} + set {_uniqueStorage()._integerValue = newValue} + } + + public var name: String { + get {return _storage._name} + set {_uniqueStorage()._name = newValue} + } + + public var newIntegerValue: Int32 { + get {return _storage._newIntegerValue} + set {_uniqueStorage()._newIntegerValue = newValue} + } + + public var `private`: Bool { + get {return _storage._private} + set {_uniqueStorage()._private = newValue} + } + + public var slug: String { + get {return _storage._slug} + set {_uniqueStorage()._slug = newValue} + } + + public var stringArray: [String] { + get {return _storage._stringArray} + set {_uniqueStorage()._stringArray = newValue} + } + + public var testDummies: [Proto_TestDummy] { + get {return _storage._testDummies} + set {_uniqueStorage()._testDummies = newValue} + } + + public var testDummy: Proto_TestDummy { + get {return _storage._testDummy ?? Proto_TestDummy()} + set {_uniqueStorage()._testDummy = newValue} + } + /// Returns true if `testDummy` has been explicitly set. + public var hasTestDummy: Bool {return _storage._testDummy != nil} + /// Clears the value of `testDummy`. Subsequent reads from it will return its default value. + public mutating func clearTestDummy() {_uniqueStorage()._testDummy = nil} + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _storage._updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return _storage._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {_uniqueStorage()._updatedAt = nil} + + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } + + public var checksum: String { + get {return _storage._checksum} + set {_uniqueStorage()._checksum = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct Proto_ThemeResult { + // 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. + + public var themes: [Proto_Theme] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_Theme { + // 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. + + public var id: UInt64 = 0 + + public var createdAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _createdAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_createdAt = newValue} + } + /// Returns true if `createdAt` has been explicitly set. + public var hasCreatedAt: Bool {return self._createdAt != nil} + /// Clears the value of `createdAt`. Subsequent reads from it will return its default value. + public mutating func clearCreatedAt() {self._createdAt = nil} + + public var name: String = String() + + public var slug: String = String() + + public var updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp { + get {return _updatedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_updatedAt = newValue} + } + /// Returns true if `updatedAt` has been explicitly set. + public var hasUpdatedAt: Bool {return self._updatedAt != nil} + /// Clears the value of `updatedAt`. Subsequent reads from it will return its default value. + public mutating func clearUpdatedAt() {self._updatedAt = nil} + + public var url: String = String() + + public var checksum: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil +} + +public struct Proto_WebsiteResult { + // 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. + + public var websites: [Proto_Website] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + +public struct Proto_Website { + // 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. + + public var id: UInt64 = 0 + + public var category: Proto_WebsiteCategoryEnum = .websiteCategoryNull + + public var game: Proto_Game { + get {return _game ?? Proto_Game()} + set {_game = newValue} + } + /// Returns true if `game` has been explicitly set. + public var hasGame: Bool {return self._game != nil} + /// Clears the value of `game`. Subsequent reads from it will return its default value. + public mutating func clearGame() {self._game = nil} + + public var trusted: Bool = false + + public var url: String = String() + + public var checksum: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _game: Proto_Game? = nil +} + +#if swift(>=5.5) && canImport(_Concurrency) +extension Proto_AgeRatingCategoryEnum: @unchecked Sendable {} +extension Proto_AgeRatingRatingEnum: @unchecked Sendable {} +extension Proto_AgeRatingContentDescriptionCategoryEnum: @unchecked Sendable {} +extension Proto_GenderGenderEnum: @unchecked Sendable {} +extension Proto_CharacterSpeciesEnum: @unchecked Sendable {} +extension Proto_DateFormatChangeDateCategoryEnum: @unchecked Sendable {} +extension Proto_WebsiteCategoryEnum: @unchecked Sendable {} +extension Proto_ExternalGameCategoryEnum: @unchecked Sendable {} +extension Proto_ExternalGameMediaEnum: @unchecked Sendable {} +extension Proto_GameCategoryEnum: @unchecked Sendable {} +extension Proto_GameStatusEnum: @unchecked Sendable {} +extension Proto_GameVersionFeatureCategoryEnum: @unchecked Sendable {} +extension Proto_GameVersionFeatureValueIncludedFeatureEnum: @unchecked Sendable {} +extension Proto_PlatformCategoryEnum: @unchecked Sendable {} +extension Proto_RegionRegionEnum: @unchecked Sendable {} +extension Proto_TestDummyEnumTestEnum: @unchecked Sendable {} +extension Proto_Count: @unchecked Sendable {} +extension Proto_MultiQueryResult: @unchecked Sendable {} +extension Proto_MultiQueryResultArray: @unchecked Sendable {} +extension Proto_AgeRatingResult: @unchecked Sendable {} +extension Proto_AgeRating: @unchecked Sendable {} +extension Proto_AgeRatingContentDescriptionResult: @unchecked Sendable {} extension Proto_AgeRatingContentDescription: @unchecked Sendable {} extension Proto_AlternativeNameResult: @unchecked Sendable {} extension Proto_AlternativeName: @unchecked Sendable {} @@ -4736,6 +5455,16 @@ extension Proto_CharacterMugShotResult: @unchecked Sendable {} extension Proto_CharacterMugShot: @unchecked Sendable {} extension Proto_CollectionResult: @unchecked Sendable {} extension Proto_Collection: @unchecked Sendable {} +extension Proto_CollectionMembershipResult: @unchecked Sendable {} +extension Proto_CollectionMembership: @unchecked Sendable {} +extension Proto_CollectionMembershipTypeResult: @unchecked Sendable {} +extension Proto_CollectionMembershipType: @unchecked Sendable {} +extension Proto_CollectionRelationResult: @unchecked Sendable {} +extension Proto_CollectionRelation: @unchecked Sendable {} +extension Proto_CollectionRelationTypeResult: @unchecked Sendable {} +extension Proto_CollectionRelationType: @unchecked Sendable {} +extension Proto_CollectionTypeResult: @unchecked Sendable {} +extension Proto_CollectionType: @unchecked Sendable {} extension Proto_CompanyResult: @unchecked Sendable {} extension Proto_Company: @unchecked Sendable {} extension Proto_CompanyLogoResult: @unchecked Sendable {} @@ -4744,6 +5473,12 @@ extension Proto_CompanyWebsiteResult: @unchecked Sendable {} extension Proto_CompanyWebsite: @unchecked Sendable {} extension Proto_CoverResult: @unchecked Sendable {} extension Proto_Cover: @unchecked Sendable {} +extension Proto_EventResult: @unchecked Sendable {} +extension Proto_Event: @unchecked Sendable {} +extension Proto_EventLogoResult: @unchecked Sendable {} +extension Proto_EventLogo: @unchecked Sendable {} +extension Proto_EventNetworkResult: @unchecked Sendable {} +extension Proto_EventNetwork: @unchecked Sendable {} extension Proto_ExternalGameResult: @unchecked Sendable {} extension Proto_ExternalGame: @unchecked Sendable {} extension Proto_FranchiseResult: @unchecked Sendable {} @@ -4780,6 +5515,8 @@ extension Proto_LanguageSupportTypeResult: @unchecked Sendable {} extension Proto_LanguageSupportType: @unchecked Sendable {} extension Proto_MultiplayerModeResult: @unchecked Sendable {} extension Proto_MultiplayerMode: @unchecked Sendable {} +extension Proto_NetworkTypeResult: @unchecked Sendable {} +extension Proto_NetworkType: @unchecked Sendable {} extension Proto_PlatformResult: @unchecked Sendable {} extension Proto_Platform: @unchecked Sendable {} extension Proto_PlatformFamilyResult: @unchecked Sendable {} @@ -4814,336 +5551,1144 @@ extension Proto_WebsiteResult: @unchecked Sendable {} extension Proto_Website: @unchecked Sendable {} #endif // swift(>=5.5) && canImport(_Concurrency) -// MARK: - Code below here is support for the SwiftProtobuf runtime. +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "proto" + +extension Proto_AgeRatingCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "AGERATING_CATEGORY_NULL"), + 1: .same(proto: "ESRB"), + 2: .same(proto: "PEGI"), + 3: .same(proto: "CERO"), + 4: .same(proto: "USK"), + 5: .same(proto: "GRAC"), + 6: .same(proto: "CLASS_IND"), + 7: .same(proto: "ACB"), + ] +} + +extension Proto_AgeRatingRatingEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "AGERATING_RATING_NULL"), + 1: .same(proto: "THREE"), + 2: .same(proto: "SEVEN"), + 3: .same(proto: "TWELVE"), + 4: .same(proto: "SIXTEEN"), + 5: .same(proto: "EIGHTEEN"), + 6: .same(proto: "RP"), + 7: .same(proto: "EC"), + 8: .same(proto: "E"), + 9: .same(proto: "E10"), + 10: .same(proto: "T"), + 11: .same(proto: "M"), + 12: .same(proto: "AO"), + 13: .same(proto: "CERO_A"), + 14: .same(proto: "CERO_B"), + 15: .same(proto: "CERO_C"), + 16: .same(proto: "CERO_D"), + 17: .same(proto: "CERO_Z"), + 18: .same(proto: "USK_0"), + 19: .same(proto: "USK_6"), + 20: .same(proto: "USK_12"), + 21: .same(proto: "USK_16"), + 22: .same(proto: "USK_18"), + 23: .same(proto: "GRAC_ALL"), + 24: .same(proto: "GRAC_TWELVE"), + 25: .same(proto: "GRAC_FIFTEEN"), + 26: .same(proto: "GRAC_EIGHTEEN"), + 27: .same(proto: "GRAC_TESTING"), + 28: .same(proto: "CLASS_IND_L"), + 29: .same(proto: "CLASS_IND_TEN"), + 30: .same(proto: "CLASS_IND_TWELVE"), + 31: .same(proto: "CLASS_IND_FOURTEEN"), + 32: .same(proto: "CLASS_IND_SIXTEEN"), + 33: .same(proto: "CLASS_IND_EIGHTEEN"), + 34: .same(proto: "ACB_G"), + 35: .same(proto: "ACB_PG"), + 36: .same(proto: "ACB_M"), + 37: .same(proto: "ACB_MA15"), + 38: .same(proto: "ACB_R18"), + 39: .same(proto: "ACB_RC"), + ] +} + +extension Proto_AgeRatingContentDescriptionCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "AGERATINGCONTENTDESCRIPTION_CATEGORY_NULL"), + 1: .same(proto: "ESRB_ALCOHOL_REFERENCE"), + 2: .same(proto: "ESRB_ANIMATED_BLOOD"), + 3: .same(proto: "ESRB_BLOOD"), + 4: .same(proto: "ESRB_BLOOD_AND_GORE"), + 5: .same(proto: "ESRB_CARTOON_VIOLENCE"), + 6: .same(proto: "ESRB_COMIC_MISCHIEF"), + 7: .same(proto: "ESRB_CRUDE_HUMOR"), + 8: .same(proto: "ESRB_DRUG_REFERENCE"), + 9: .same(proto: "ESRB_FANTASY_VIOLENCE"), + 10: .same(proto: "ESRB_INTENSE_VIOLENCE"), + 11: .same(proto: "ESRB_LANGUAGE"), + 12: .same(proto: "ESRB_LYRICS"), + 13: .same(proto: "ESRB_MATURE_HUMOR"), + 14: .same(proto: "ESRB_NUDITY"), + 15: .same(proto: "ESRB_PARTIAL_NUDITY"), + 16: .same(proto: "ESRB_REAL_GAMBLING"), + 17: .same(proto: "ESRB_SEXUAL_CONTENT"), + 18: .same(proto: "ESRB_SEXUAL_THEMES"), + 19: .same(proto: "ESRB_SEXUAL_VIOLENCE"), + 20: .same(proto: "ESRB_SIMULATED_GAMBLING"), + 21: .same(proto: "ESRB_STRONG_LANGUAGE"), + 22: .same(proto: "ESRB_STRONG_LYRICS"), + 23: .same(proto: "ESRB_STRONG_SEXUAL_CONTENT"), + 24: .same(proto: "ESRB_SUGGESTIVE_THEMES"), + 25: .same(proto: "ESRB_TOBACCO_REFERENCE"), + 26: .same(proto: "ESRB_USE_OF_ALCOHOL"), + 27: .same(proto: "ESRB_USE_OF_DRUGS"), + 28: .same(proto: "ESRB_USE_OF_TOBACCO"), + 29: .same(proto: "ESRB_VIOLENCE"), + 30: .same(proto: "ESRB_VIOLENT_REFERENCES"), + 31: .same(proto: "ESRB_ANIMATED_VIOLENCE"), + 32: .same(proto: "ESRB_MILD_LANGUAGE"), + 33: .same(proto: "ESRB_MILD_VIOLENCE"), + 34: .same(proto: "ESRB_USE_OF_DRUGS_AND_ALCOHOL"), + 35: .same(proto: "ESRB_DRUG_AND_ALCOHOL_REFERENCE"), + 36: .same(proto: "ESRB_MILD_SUGGESTIVE_THEMES"), + 37: .same(proto: "ESRB_MILD_CARTOON_VIOLENCE"), + 38: .same(proto: "ESRB_MILD_BLOOD"), + 39: .same(proto: "ESRB_REALISTIC_BLOOD_AND_GORE"), + 40: .same(proto: "ESRB_REALISTIC_VIOLENCE"), + 41: .same(proto: "ESRB_ALCOHOL_AND_TOBACCO_REFERENCE"), + 42: .same(proto: "ESRB_MATURE_SEXUAL_THEMES"), + 43: .same(proto: "ESRB_MILD_ANIMATED_VIOLENCE"), + 44: .same(proto: "ESRB_MILD_SEXUAL_THEMES"), + 45: .same(proto: "ESRB_USE_OF_ALCOHOL_AND_TOBACCO"), + 46: .same(proto: "ESRB_ANIMATED_BLOOD_AND_GORE"), + 47: .same(proto: "ESRB_MILD_FANTASY_VIOLENCE"), + 48: .same(proto: "ESRB_MILD_LYRICS"), + 49: .same(proto: "ESRB_REALISTIC_BLOOD"), + 50: .same(proto: "PEGI_VIOLENCE"), + 51: .same(proto: "PEGI_SEX"), + 52: .same(proto: "PEGI_DRUGS"), + 53: .same(proto: "PEGI_FEAR"), + 54: .same(proto: "PEGI_DISCRIMINATION"), + 55: .same(proto: "PEGI_BAD_LANGUAGE"), + 56: .same(proto: "PEGI_GAMBLING"), + 57: .same(proto: "PEGI_ONLINE_GAMEPLAY"), + 58: .same(proto: "PEGI_IN_GAME_PURCHASES"), + 59: .same(proto: "CERO_LOVE"), + 60: .same(proto: "CERO_SEXUAL_CONTENT"), + 61: .same(proto: "CERO_VIOLENCE"), + 62: .same(proto: "CERO_HORROR"), + 63: .same(proto: "CERO_DRINKING_SMOKING"), + 64: .same(proto: "CERO_GAMBLING"), + 65: .same(proto: "CERO_CRIME"), + 66: .same(proto: "CERO_CONTROLLED_SUBSTANCES"), + 67: .same(proto: "CERO_LANGUAGES_AND_OTHERS"), + 68: .same(proto: "GRAC_SEXUALITY"), + 69: .same(proto: "GRAC_VIOLENCE"), + 70: .same(proto: "GRAC_FEAR_HORROR_THREATENING"), + 71: .same(proto: "GRAC_LANGUAGE"), + 72: .same(proto: "GRAC_ALCOHOL_TOBACCO_DRUG"), + 73: .same(proto: "GRAC_CRIME_ANTI_SOCIAL"), + 74: .same(proto: "GRAC_GAMBLING"), + 75: .same(proto: "CLASS_IND_VIOLENCIA"), + 76: .same(proto: "CLASS_IND_VIOLENCIA_EXTREMA"), + 77: .same(proto: "CLASS_IND_CONTEUDO_SEXUAL"), + 78: .same(proto: "CLASS_IND_NUDEZ"), + 79: .same(proto: "CLASS_IND_SEXO"), + 80: .same(proto: "CLASS_IND_SEXO_EXPLICITO"), + 81: .same(proto: "CLASS_IND_DROGAS"), + 82: .same(proto: "CLASS_IND_DROGAS_LICITAS"), + 83: .same(proto: "CLASS_IND_DROGAS_ILICITAS"), + 84: .same(proto: "CLASS_IND_LINGUAGEM_IMPROPRIA"), + 85: .same(proto: "CLASS_IND_ATOS_CRIMINOSOS"), + ] +} + +extension Proto_GenderGenderEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "MALE"), + 1: .same(proto: "FEMALE"), + 2: .same(proto: "OTHER"), + ] +} + +extension Proto_CharacterSpeciesEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "CHARACTER_SPECIES_NULL"), + 1: .same(proto: "HUMAN"), + 2: .same(proto: "ALIEN"), + 3: .same(proto: "ANIMAL"), + 4: .same(proto: "ANDROID"), + 5: .same(proto: "UNKNOWN"), + ] +} + +extension Proto_DateFormatChangeDateCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "YYYYMMMMDD"), + 1: .same(proto: "YYYYMMMM"), + 2: .same(proto: "YYYY"), + 3: .same(proto: "YYYYQ1"), + 4: .same(proto: "YYYYQ2"), + 5: .same(proto: "YYYYQ3"), + 6: .same(proto: "YYYYQ4"), + 7: .same(proto: "TBD"), + ] +} + +extension Proto_WebsiteCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "WEBSITE_CATEGORY_NULL"), + 1: .same(proto: "WEBSITE_OFFICIAL"), + 2: .same(proto: "WEBSITE_WIKIA"), + 3: .same(proto: "WEBSITE_WIKIPEDIA"), + 4: .same(proto: "WEBSITE_FACEBOOK"), + 5: .same(proto: "WEBSITE_TWITTER"), + 6: .same(proto: "WEBSITE_TWITCH"), + 8: .same(proto: "WEBSITE_INSTAGRAM"), + 9: .same(proto: "WEBSITE_YOUTUBE"), + 10: .same(proto: "WEBSITE_IPHONE"), + 11: .same(proto: "WEBSITE_IPAD"), + 12: .same(proto: "WEBSITE_ANDROID"), + 13: .same(proto: "WEBSITE_STEAM"), + 14: .same(proto: "WEBSITE_REDDIT"), + 15: .same(proto: "WEBSITE_ITCH"), + 16: .same(proto: "WEBSITE_EPICGAMES"), + 17: .same(proto: "WEBSITE_GOG"), + 18: .same(proto: "WEBSITE_DISCORD"), + ] +} + +extension Proto_ExternalGameCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "EXTERNALGAME_CATEGORY_NULL"), + 1: .same(proto: "EXTERNALGAME_STEAM"), + 5: .same(proto: "EXTERNALGAME_GOG"), + 10: .same(proto: "EXTERNALGAME_YOUTUBE"), + 11: .same(proto: "EXTERNALGAME_MICROSOFT"), + 13: .same(proto: "EXTERNALGAME_APPLE"), + 14: .same(proto: "EXTERNALGAME_TWITCH"), + 15: .same(proto: "EXTERNALGAME_ANDROID"), + 20: .same(proto: "EXTERNALGAME_AMAZON_ASIN"), + 22: .same(proto: "EXTERNALGAME_AMAZON_LUNA"), + 23: .same(proto: "EXTERNALGAME_AMAZON_ADG"), + 26: .same(proto: "EXTERNALGAME_EPIC_GAME_STORE"), + 28: .same(proto: "EXTERNALGAME_OCULUS"), + 29: .same(proto: "EXTERNALGAME_UTOMIK"), + 30: .same(proto: "EXTERNALGAME_ITCH_IO"), + 31: .same(proto: "EXTERNALGAME_XBOX_MARKETPLACE"), + 32: .same(proto: "EXTERNALGAME_KARTRIDGE"), + 36: .same(proto: "EXTERNALGAME_PLAYSTATION_STORE_US"), + 37: .same(proto: "EXTERNALGAME_FOCUS_ENTERTAINMENT"), + 54: .same(proto: "EXTERNALGAME_XBOX_GAME_PASS_ULTIMATE_CLOUD"), + 55: .same(proto: "EXTERNALGAME_GAMEJOLT"), + ] +} + +extension Proto_ExternalGameMediaEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "EXTERNALGAME_MEDIA_NULL"), + 1: .same(proto: "EXTERNALGAME_DIGITAL"), + 2: .same(proto: "EXTERNALGAME_PHYSICAL"), + ] +} + +extension Proto_GameCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "MAIN_GAME"), + 1: .same(proto: "DLC_ADDON"), + 2: .same(proto: "EXPANSION"), + 3: .same(proto: "BUNDLE"), + 4: .same(proto: "STANDALONE_EXPANSION"), + 5: .same(proto: "MOD"), + 6: .same(proto: "EPISODE"), + 7: .same(proto: "SEASON"), + 8: .same(proto: "REMAKE"), + 9: .same(proto: "REMASTER"), + 10: .same(proto: "EXPANDED_GAME"), + 11: .same(proto: "PORT"), + 12: .same(proto: "FORK"), + 13: .same(proto: "PACK"), + 14: .same(proto: "UPDATE"), + ] +} + +extension Proto_GameStatusEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "RELEASED"), + 2: .same(proto: "ALPHA"), + 3: .same(proto: "BETA"), + 4: .same(proto: "EARLY_ACCESS"), + 5: .same(proto: "OFFLINE"), + 6: .same(proto: "CANCELLED"), + 7: .same(proto: "RUMORED"), + 8: .same(proto: "DELISTED"), + ] +} + +extension Proto_GameVersionFeatureCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "BOOLEAN"), + 1: .same(proto: "DESCRIPTION"), + ] +} + +extension Proto_GameVersionFeatureValueIncludedFeatureEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "NOT_INCLUDED"), + 1: .same(proto: "INCLUDED"), + 2: .same(proto: "PRE_ORDER_ONLY"), + ] +} + +extension Proto_PlatformCategoryEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "PLATFORM_CATEGORY_NULL"), + 1: .same(proto: "CONSOLE"), + 2: .same(proto: "ARCADE"), + 3: .same(proto: "PLATFORM"), + 4: .same(proto: "OPERATING_SYSTEM"), + 5: .same(proto: "PORTABLE_CONSOLE"), + 6: .same(proto: "COMPUTER"), + ] +} + +extension Proto_RegionRegionEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "REGION_REGION_NULL"), + 1: .same(proto: "EUROPE"), + 2: .same(proto: "NORTH_AMERICA"), + 3: .same(proto: "AUSTRALIA"), + 4: .same(proto: "NEW_ZEALAND"), + 5: .same(proto: "JAPAN"), + 6: .same(proto: "CHINA"), + 7: .same(proto: "ASIA"), + 8: .same(proto: "WORLDWIDE"), + 9: .same(proto: "KOREA"), + 10: .same(proto: "BRAZIL"), + ] +} + +extension Proto_TestDummyEnumTestEnum: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "TESTDUMMY_ENUM_TEST_NULL"), + 1: .same(proto: "ENUM1"), + 2: .same(proto: "ENUM2"), + ] +} + +extension Proto_Count: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Count" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "count"), + ] + + public 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.count) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.count != 0 { + try visitor.visitSingularInt64Field(value: self.count, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_Count, rhs: Proto_Count) -> Bool { + if lhs.count != rhs.count {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} -fileprivate let _protobuf_package = "proto" +extension Proto_MultiQueryResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".MultiQueryResult" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "name"), + 2: .same(proto: "results"), + 3: .same(proto: "count"), + ] + + public 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.decodeSingularStringField(value: &self.name) }() + case 2: try { try decoder.decodeRepeatedBytesField(value: &self.results) }() + case 3: try { try decoder.decodeSingularInt64Field(value: &self.count) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + } + if !self.results.isEmpty { + try visitor.visitRepeatedBytesField(value: self.results, fieldNumber: 2) + } + if self.count != 0 { + try visitor.visitSingularInt64Field(value: self.count, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_MultiQueryResult, rhs: Proto_MultiQueryResult) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.results != rhs.results {return false} + if lhs.count != rhs.count {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_MultiQueryResultArray: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".MultiQueryResultArray" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "result"), + ] + + public 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.result) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.result.isEmpty { + try visitor.visitRepeatedMessageField(value: self.result, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_MultiQueryResultArray, rhs: Proto_MultiQueryResultArray) -> Bool { + if lhs.result != rhs.result {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_AgeRatingResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AgeRatingResult" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "ageratings"), + ] + + public 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.ageratings) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.ageratings.isEmpty { + try visitor.visitRepeatedMessageField(value: self.ageratings, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_AgeRatingResult, rhs: Proto_AgeRatingResult) -> Bool { + if lhs.ageratings != rhs.ageratings {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_AgeRating: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AgeRating" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "category"), + 3: .standard(proto: "content_descriptions"), + 4: .same(proto: "rating"), + 5: .standard(proto: "rating_cover_url"), + 6: .same(proto: "synopsis"), + 7: .same(proto: "checksum"), + ] + + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.category) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.contentDescriptions) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.rating) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.ratingCoverURL) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.synopsis) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if self.category != .ageratingCategoryNull { + try visitor.visitSingularEnumField(value: self.category, fieldNumber: 2) + } + if !self.contentDescriptions.isEmpty { + try visitor.visitRepeatedMessageField(value: self.contentDescriptions, fieldNumber: 3) + } + if self.rating != .ageratingRatingNull { + try visitor.visitSingularEnumField(value: self.rating, fieldNumber: 4) + } + if !self.ratingCoverURL.isEmpty { + try visitor.visitSingularStringField(value: self.ratingCoverURL, fieldNumber: 5) + } + if !self.synopsis.isEmpty { + try visitor.visitSingularStringField(value: self.synopsis, fieldNumber: 6) + } + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 7) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_AgeRating, rhs: Proto_AgeRating) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.category != rhs.category {return false} + if lhs.contentDescriptions != rhs.contentDescriptions {return false} + if lhs.rating != rhs.rating {return false} + if lhs.ratingCoverURL != rhs.ratingCoverURL {return false} + if lhs.synopsis != rhs.synopsis {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_AgeRatingContentDescriptionResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AgeRatingContentDescriptionResult" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "ageratingcontentdescriptions"), + ] + + public 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.ageratingcontentdescriptions) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.ageratingcontentdescriptions.isEmpty { + try visitor.visitRepeatedMessageField(value: self.ageratingcontentdescriptions, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_AgeRatingContentDescriptionResult, rhs: Proto_AgeRatingContentDescriptionResult) -> Bool { + if lhs.ageratingcontentdescriptions != rhs.ageratingcontentdescriptions {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_AgeRatingContentDescription: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AgeRatingContentDescription" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "category"), + 3: .same(proto: "description"), + 4: .same(proto: "checksum"), + ] + + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.category) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if self.category != .ageratingcontentdescriptionCategoryNull { + try visitor.visitSingularEnumField(value: self.category, fieldNumber: 2) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) + } + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_AgeRatingContentDescription, rhs: Proto_AgeRatingContentDescription) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.category != rhs.category {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} -extension Proto_AgeRatingCategoryEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_AlternativeNameResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AlternativeNameResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "AGERATING_CATEGORY_NULL"), - 1: .same(proto: "ESRB"), - 2: .same(proto: "PEGI"), - 3: .same(proto: "CERO"), - 4: .same(proto: "USK"), - 5: .same(proto: "GRAC"), - 6: .same(proto: "CLASS_IND"), - 7: .same(proto: "ACB"), + 1: .same(proto: "alternativenames"), ] + + public 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.alternativenames) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.alternativenames.isEmpty { + try visitor.visitRepeatedMessageField(value: self.alternativenames, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_AlternativeNameResult, rhs: Proto_AlternativeNameResult) -> Bool { + if lhs.alternativenames != rhs.alternativenames {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_AgeRatingRatingEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_AlternativeName: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AlternativeName" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "AGERATING_RATING_NULL"), - 1: .same(proto: "THREE"), - 2: .same(proto: "SEVEN"), - 3: .same(proto: "TWELVE"), - 4: .same(proto: "SIXTEEN"), - 5: .same(proto: "EIGHTEEN"), - 6: .same(proto: "RP"), - 7: .same(proto: "EC"), - 8: .same(proto: "E"), - 9: .same(proto: "E10"), - 10: .same(proto: "T"), - 11: .same(proto: "M"), - 12: .same(proto: "AO"), - 13: .same(proto: "CERO_A"), - 14: .same(proto: "CERO_B"), - 15: .same(proto: "CERO_C"), - 16: .same(proto: "CERO_D"), - 17: .same(proto: "CERO_Z"), - 18: .same(proto: "USK_0"), - 19: .same(proto: "USK_6"), - 20: .same(proto: "USK_12"), - 21: .same(proto: "USK_16"), - 22: .same(proto: "USK_18"), - 23: .same(proto: "GRAC_ALL"), - 24: .same(proto: "GRAC_TWELVE"), - 25: .same(proto: "GRAC_FIFTEEN"), - 26: .same(proto: "GRAC_EIGHTEEN"), - 27: .same(proto: "GRAC_TESTING"), - 28: .same(proto: "CLASS_IND_L"), - 29: .same(proto: "CLASS_IND_TEN"), - 30: .same(proto: "CLASS_IND_TWELVE"), - 31: .same(proto: "CLASS_IND_FOURTEEN"), - 32: .same(proto: "CLASS_IND_SIXTEEN"), - 33: .same(proto: "CLASS_IND_EIGHTEEN"), - 34: .same(proto: "ACB_G"), - 35: .same(proto: "ACB_PG"), - 36: .same(proto: "ACB_M"), - 37: .same(proto: "ACB_MA15"), - 38: .same(proto: "ACB_R18"), - 39: .same(proto: "ACB_RC"), + 1: .same(proto: "id"), + 2: .same(proto: "comment"), + 3: .same(proto: "game"), + 4: .same(proto: "name"), + 5: .same(proto: "checksum"), ] + + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.comment) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._game) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } + + public 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 + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if !self.comment.isEmpty { + try visitor.visitSingularStringField(value: self.comment, fieldNumber: 2) + } + try { if let v = self._game { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + } + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 5) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_AlternativeName, rhs: Proto_AlternativeName) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.comment != rhs.comment {return false} + if lhs._game != rhs._game {return false} + if lhs.name != rhs.name {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_AgeRatingContentDescriptionCategoryEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_ArtworkResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ArtworkResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "AGERATINGCONTENTDESCRIPTION_CATEGORY_NULL"), - 1: .same(proto: "ESRB_ALCOHOL_REFERENCE"), - 2: .same(proto: "ESRB_ANIMATED_BLOOD"), - 3: .same(proto: "ESRB_BLOOD"), - 4: .same(proto: "ESRB_BLOOD_AND_GORE"), - 5: .same(proto: "ESRB_CARTOON_VIOLENCE"), - 6: .same(proto: "ESRB_COMIC_MISCHIEF"), - 7: .same(proto: "ESRB_CRUDE_HUMOR"), - 8: .same(proto: "ESRB_DRUG_REFERENCE"), - 9: .same(proto: "ESRB_FANTASY_VIOLENCE"), - 10: .same(proto: "ESRB_INTENSE_VIOLENCE"), - 11: .same(proto: "ESRB_LANGUAGE"), - 12: .same(proto: "ESRB_LYRICS"), - 13: .same(proto: "ESRB_MATURE_HUMOR"), - 14: .same(proto: "ESRB_NUDITY"), - 15: .same(proto: "ESRB_PARTIAL_NUDITY"), - 16: .same(proto: "ESRB_REAL_GAMBLING"), - 17: .same(proto: "ESRB_SEXUAL_CONTENT"), - 18: .same(proto: "ESRB_SEXUAL_THEMES"), - 19: .same(proto: "ESRB_SEXUAL_VIOLENCE"), - 20: .same(proto: "ESRB_SIMULATED_GAMBLING"), - 21: .same(proto: "ESRB_STRONG_LANGUAGE"), - 22: .same(proto: "ESRB_STRONG_LYRICS"), - 23: .same(proto: "ESRB_STRONG_SEXUAL_CONTENT"), - 24: .same(proto: "ESRB_SUGGESTIVE_THEMES"), - 25: .same(proto: "ESRB_TOBACCO_REFERENCE"), - 26: .same(proto: "ESRB_USE_OF_ALCOHOL"), - 27: .same(proto: "ESRB_USE_OF_DRUGS"), - 28: .same(proto: "ESRB_USE_OF_TOBACCO"), - 29: .same(proto: "ESRB_VIOLENCE"), - 30: .same(proto: "ESRB_VIOLENT_REFERENCES"), - 31: .same(proto: "ESRB_ANIMATED_VIOLENCE"), - 32: .same(proto: "ESRB_MILD_LANGUAGE"), - 33: .same(proto: "ESRB_MILD_VIOLENCE"), - 34: .same(proto: "ESRB_USE_OF_DRUGS_AND_ALCOHOL"), - 35: .same(proto: "ESRB_DRUG_AND_ALCOHOL_REFERENCE"), - 36: .same(proto: "ESRB_MILD_SUGGESTIVE_THEMES"), - 37: .same(proto: "ESRB_MILD_CARTOON_VIOLENCE"), - 38: .same(proto: "ESRB_MILD_BLOOD"), - 39: .same(proto: "ESRB_REALISTIC_BLOOD_AND_GORE"), - 40: .same(proto: "ESRB_REALISTIC_VIOLENCE"), - 41: .same(proto: "ESRB_ALCOHOL_AND_TOBACCO_REFERENCE"), - 42: .same(proto: "ESRB_MATURE_SEXUAL_THEMES"), - 43: .same(proto: "ESRB_MILD_ANIMATED_VIOLENCE"), - 44: .same(proto: "ESRB_MILD_SEXUAL_THEMES"), - 45: .same(proto: "ESRB_USE_OF_ALCOHOL_AND_TOBACCO"), - 46: .same(proto: "ESRB_ANIMATED_BLOOD_AND_GORE"), - 47: .same(proto: "ESRB_MILD_FANTASY_VIOLENCE"), - 48: .same(proto: "ESRB_MILD_LYRICS"), - 49: .same(proto: "ESRB_REALISTIC_BLOOD"), - 50: .same(proto: "PEGI_VIOLENCE"), - 51: .same(proto: "PEGI_SEX"), - 52: .same(proto: "PEGI_DRUGS"), - 53: .same(proto: "PEGI_FEAR"), - 54: .same(proto: "PEGI_DISCRIMINATION"), - 55: .same(proto: "PEGI_BAD_LANGUAGE"), - 56: .same(proto: "PEGI_GAMBLING"), - 57: .same(proto: "PEGI_ONLINE_GAMEPLAY"), - 58: .same(proto: "PEGI_IN_GAME_PURCHASES"), - 59: .same(proto: "CERO_LOVE"), - 60: .same(proto: "CERO_SEXUAL_CONTENT"), - 61: .same(proto: "CERO_VIOLENCE"), - 62: .same(proto: "CERO_HORROR"), - 63: .same(proto: "CERO_DRINKING_SMOKING"), - 64: .same(proto: "CERO_GAMBLING"), - 65: .same(proto: "CERO_CRIME"), - 66: .same(proto: "CERO_CONTROLLED_SUBSTANCES"), - 67: .same(proto: "CERO_LANGUAGES_AND_OTHERS"), - 68: .same(proto: "GRAC_SEXUALITY"), - 69: .same(proto: "GRAC_VIOLENCE"), - 70: .same(proto: "GRAC_FEAR_HORROR_THREATENING"), - 71: .same(proto: "GRAC_LANGUAGE"), - 72: .same(proto: "GRAC_ALCOHOL_TOBACCO_DRUG"), - 73: .same(proto: "GRAC_CRIME_ANTI_SOCIAL"), - 74: .same(proto: "GRAC_GAMBLING"), - 75: .same(proto: "CLASS_IND_VIOLENCIA"), - 76: .same(proto: "CLASS_IND_VIOLENCIA_EXTREMA"), - 77: .same(proto: "CLASS_IND_CONTEUDO_SEXUAL"), - 78: .same(proto: "CLASS_IND_NUDEZ"), - 79: .same(proto: "CLASS_IND_SEXO"), - 80: .same(proto: "CLASS_IND_SEXO_EXPLICITO"), - 81: .same(proto: "CLASS_IND_DROGAS"), - 82: .same(proto: "CLASS_IND_DROGAS_LICITAS"), - 83: .same(proto: "CLASS_IND_DROGAS_ILICITAS"), - 84: .same(proto: "CLASS_IND_LINGUAGEM_IMPROPRIA"), - 85: .same(proto: "CLASS_IND_ATOS_CRIMINOSOS"), + 1: .same(proto: "artworks"), ] + + public 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.artworks) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.artworks.isEmpty { + try visitor.visitRepeatedMessageField(value: self.artworks, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_ArtworkResult, rhs: Proto_ArtworkResult) -> Bool { + if lhs.artworks != rhs.artworks {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_GenderGenderEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_Artwork: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Artwork" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "MALE"), - 1: .same(proto: "FEMALE"), - 2: .same(proto: "OTHER"), + 1: .same(proto: "id"), + 2: .standard(proto: "alpha_channel"), + 3: .same(proto: "animated"), + 4: .same(proto: "game"), + 5: .same(proto: "height"), + 6: .standard(proto: "image_id"), + 7: .same(proto: "url"), + 8: .same(proto: "width"), + 9: .same(proto: "checksum"), ] -} -extension Proto_CharacterSpeciesEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "CHARACTER_SPECIES_NULL"), - 1: .same(proto: "HUMAN"), - 2: .same(proto: "ALIEN"), - 3: .same(proto: "ANIMAL"), - 4: .same(proto: "ANDROID"), - 5: .same(proto: "UNKNOWN"), - ] + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.alphaChannel) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.animated) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._game) }() + case 5: try { try decoder.decodeSingularInt32Field(value: &self.height) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.imageID) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 8: try { try decoder.decodeSingularInt32Field(value: &self.width) }() + case 9: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } + + public 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 + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if self.alphaChannel != false { + try visitor.visitSingularBoolField(value: self.alphaChannel, fieldNumber: 2) + } + if self.animated != false { + try visitor.visitSingularBoolField(value: self.animated, fieldNumber: 3) + } + try { if let v = self._game { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + if self.height != 0 { + try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 5) + } + if !self.imageID.isEmpty { + try visitor.visitSingularStringField(value: self.imageID, fieldNumber: 6) + } + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 7) + } + if self.width != 0 { + try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 8) + } + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 9) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_Artwork, rhs: Proto_Artwork) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.alphaChannel != rhs.alphaChannel {return false} + if lhs.animated != rhs.animated {return false} + if lhs._game != rhs._game {return false} + if lhs.height != rhs.height {return false} + if lhs.imageID != rhs.imageID {return false} + if lhs.url != rhs.url {return false} + if lhs.width != rhs.width {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_DateFormatChangeDateCategoryEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_CharacterResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CharacterResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "YYYYMMMMDD"), - 1: .same(proto: "YYYYMMMM"), - 2: .same(proto: "YYYY"), - 3: .same(proto: "YYYYQ1"), - 4: .same(proto: "YYYYQ2"), - 5: .same(proto: "YYYYQ3"), - 6: .same(proto: "YYYYQ4"), - 7: .same(proto: "TBD"), + 1: .same(proto: "characters"), ] + + public 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.characters) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.characters.isEmpty { + try visitor.visitRepeatedMessageField(value: self.characters, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_CharacterResult, rhs: Proto_CharacterResult) -> Bool { + if lhs.characters != rhs.characters {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_WebsiteCategoryEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_Character: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Character" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "WEBSITE_CATEGORY_NULL"), - 1: .same(proto: "WEBSITE_OFFICIAL"), - 2: .same(proto: "WEBSITE_WIKIA"), - 3: .same(proto: "WEBSITE_WIKIPEDIA"), - 4: .same(proto: "WEBSITE_FACEBOOK"), - 5: .same(proto: "WEBSITE_TWITTER"), - 6: .same(proto: "WEBSITE_TWITCH"), - 8: .same(proto: "WEBSITE_INSTAGRAM"), - 9: .same(proto: "WEBSITE_YOUTUBE"), - 10: .same(proto: "WEBSITE_IPHONE"), - 11: .same(proto: "WEBSITE_IPAD"), - 12: .same(proto: "WEBSITE_ANDROID"), - 13: .same(proto: "WEBSITE_STEAM"), - 14: .same(proto: "WEBSITE_REDDIT"), - 15: .same(proto: "WEBSITE_ITCH"), - 16: .same(proto: "WEBSITE_EPICGAMES"), - 17: .same(proto: "WEBSITE_GOG"), - 18: .same(proto: "WEBSITE_DISCORD"), + 1: .same(proto: "id"), + 2: .same(proto: "akas"), + 3: .standard(proto: "country_name"), + 4: .standard(proto: "created_at"), + 5: .same(proto: "description"), + 6: .same(proto: "games"), + 7: .same(proto: "gender"), + 8: .standard(proto: "mug_shot"), + 9: .same(proto: "name"), + 10: .same(proto: "slug"), + 11: .same(proto: "species"), + 12: .standard(proto: "updated_at"), + 13: .same(proto: "url"), + 14: .same(proto: "checksum"), ] -} -extension Proto_ExternalGameCategoryEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "EXTERNALGAME_CATEGORY_NULL"), - 1: .same(proto: "EXTERNALGAME_STEAM"), - 5: .same(proto: "EXTERNALGAME_GOG"), - 10: .same(proto: "EXTERNALGAME_YOUTUBE"), - 11: .same(proto: "EXTERNALGAME_MICROSOFT"), - 13: .same(proto: "EXTERNALGAME_APPLE"), - 14: .same(proto: "EXTERNALGAME_TWITCH"), - 15: .same(proto: "EXTERNALGAME_ANDROID"), - 20: .same(proto: "EXTERNALGAME_AMAZON_ASIN"), - 22: .same(proto: "EXTERNALGAME_AMAZON_LUNA"), - 23: .same(proto: "EXTERNALGAME_AMAZON_ADG"), - 26: .same(proto: "EXTERNALGAME_EPIC_GAME_STORE"), - 28: .same(proto: "EXTERNALGAME_OCULUS"), - 29: .same(proto: "EXTERNALGAME_UTOMIK"), - 30: .same(proto: "EXTERNALGAME_ITCH_IO"), - 31: .same(proto: "EXTERNALGAME_XBOX_MARKETPLACE"), - 32: .same(proto: "EXTERNALGAME_KARTRIDGE"), - 36: .same(proto: "EXTERNALGAME_PLAYSTATION_STORE_US"), - 37: .same(proto: "EXTERNALGAME_FOCUS_ENTERTAINMENT"), - 54: .same(proto: "EXTERNALGAME_XBOX_GAME_PASS_ULTIMATE_CLOUD"), - 55: .same(proto: "EXTERNALGAME_GAMEJOLT"), - ] + fileprivate class _StorageClass { + var _id: UInt64 = 0 + var _akas: [String] = [] + var _countryName: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _description_p: String = String() + var _games: [Proto_Game] = [] + var _gender: Proto_GenderGenderEnum = .male + var _mugShot: Proto_CharacterMugShot? = nil + var _name: String = String() + var _slug: String = String() + var _species: Proto_CharacterSpeciesEnum = .characterSpeciesNull + var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _url: String = String() + var _checksum: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _akas = source._akas + _countryName = source._countryName + _createdAt = source._createdAt + _description_p = source._description_p + _games = source._games + _gender = source._gender + _mugShot = source._mugShot + _name = source._name + _slug = source._slug + _species = source._species + _updatedAt = source._updatedAt + _url = source._url + _checksum = source._checksum + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + 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: &_storage._id) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &_storage._akas) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._countryName) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._games) }() + case 7: try { try decoder.decodeSingularEnumField(value: &_storage._gender) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._mugShot) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._slug) }() + case 11: try { try decoder.decodeSingularEnumField(value: &_storage._species) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 13: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 14: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + default: break + } + } + } + } + + public func traverse(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 + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if _storage._id != 0 { + try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) + } + if !_storage._akas.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._akas, fieldNumber: 2) + } + if !_storage._countryName.isEmpty { + try visitor.visitSingularStringField(value: _storage._countryName, fieldNumber: 3) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5) + } + if !_storage._games.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._games, fieldNumber: 6) + } + if _storage._gender != .male { + try visitor.visitSingularEnumField(value: _storage._gender, fieldNumber: 7) + } + try { if let v = _storage._mugShot { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 9) + } + if !_storage._slug.isEmpty { + try visitor.visitSingularStringField(value: _storage._slug, fieldNumber: 10) + } + if _storage._species != .characterSpeciesNull { + try visitor.visitSingularEnumField(value: _storage._species, fieldNumber: 11) + } + try { if let v = _storage._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() + if !_storage._url.isEmpty { + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 13) + } + if !_storage._checksum.isEmpty { + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 14) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_Character, rhs: Proto_Character) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._id != rhs_storage._id {return false} + if _storage._akas != rhs_storage._akas {return false} + if _storage._countryName != rhs_storage._countryName {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._games != rhs_storage._games {return false} + if _storage._gender != rhs_storage._gender {return false} + if _storage._mugShot != rhs_storage._mugShot {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._slug != rhs_storage._slug {return false} + if _storage._species != rhs_storage._species {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._url != rhs_storage._url {return false} + if _storage._checksum != rhs_storage._checksum {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_ExternalGameMediaEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_CharacterMugShotResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CharacterMugShotResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "EXTERNALGAME_MEDIA_NULL"), - 1: .same(proto: "EXTERNALGAME_DIGITAL"), - 2: .same(proto: "EXTERNALGAME_PHYSICAL"), + 1: .same(proto: "charactermugshots"), ] -} -extension Proto_GameCategoryEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "MAIN_GAME"), - 1: .same(proto: "DLC_ADDON"), - 2: .same(proto: "EXPANSION"), - 3: .same(proto: "BUNDLE"), - 4: .same(proto: "STANDALONE_EXPANSION"), - 5: .same(proto: "MOD"), - 6: .same(proto: "EPISODE"), - 7: .same(proto: "SEASON"), - 8: .same(proto: "REMAKE"), - 9: .same(proto: "REMASTER"), - 10: .same(proto: "EXPANDED_GAME"), - 11: .same(proto: "PORT"), - 12: .same(proto: "FORK"), - 13: .same(proto: "PACK"), - 14: .same(proto: "UPDATE"), - ] -} + public 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.charactermugshots) }() + default: break + } + } + } -extension Proto_GameStatusEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "RELEASED"), - 2: .same(proto: "ALPHA"), - 3: .same(proto: "BETA"), - 4: .same(proto: "EARLY_ACCESS"), - 5: .same(proto: "OFFLINE"), - 6: .same(proto: "CANCELLED"), - 7: .same(proto: "RUMORED"), - 8: .same(proto: "DELISTED"), - ] -} + public func traverse(visitor: inout V) throws { + if !self.charactermugshots.isEmpty { + try visitor.visitRepeatedMessageField(value: self.charactermugshots, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } -extension Proto_GameVersionFeatureCategoryEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "BOOLEAN"), - 1: .same(proto: "DESCRIPTION"), - ] + public static func ==(lhs: Proto_CharacterMugShotResult, rhs: Proto_CharacterMugShotResult) -> Bool { + if lhs.charactermugshots != rhs.charactermugshots {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_GameVersionFeatureValueIncludedFeatureEnum: SwiftProtobuf._ProtoNameProviding { +extension Proto_CharacterMugShot: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CharacterMugShot" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "NOT_INCLUDED"), - 1: .same(proto: "INCLUDED"), - 2: .same(proto: "PRE_ORDER_ONLY"), + 1: .same(proto: "id"), + 2: .standard(proto: "alpha_channel"), + 3: .same(proto: "animated"), + 4: .same(proto: "height"), + 5: .standard(proto: "image_id"), + 6: .same(proto: "url"), + 7: .same(proto: "width"), + 8: .same(proto: "checksum"), ] -} -extension Proto_PlatformCategoryEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PLATFORM_CATEGORY_NULL"), - 1: .same(proto: "CONSOLE"), - 2: .same(proto: "ARCADE"), - 3: .same(proto: "PLATFORM"), - 4: .same(proto: "OPERATING_SYSTEM"), - 5: .same(proto: "PORTABLE_CONSOLE"), - 6: .same(proto: "COMPUTER"), - ] -} + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.alphaChannel) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.animated) }() + case 4: try { try decoder.decodeSingularInt32Field(value: &self.height) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.imageID) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 7: try { try decoder.decodeSingularInt32Field(value: &self.width) }() + case 8: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } -extension Proto_RegionRegionEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "REGION_REGION_NULL"), - 1: .same(proto: "EUROPE"), - 2: .same(proto: "NORTH_AMERICA"), - 3: .same(proto: "AUSTRALIA"), - 4: .same(proto: "NEW_ZEALAND"), - 5: .same(proto: "JAPAN"), - 6: .same(proto: "CHINA"), - 7: .same(proto: "ASIA"), - 8: .same(proto: "WORLDWIDE"), - 9: .same(proto: "KOREA"), - 10: .same(proto: "BRAZIL"), - ] -} + public func traverse(visitor: inout V) throws { + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if self.alphaChannel != false { + try visitor.visitSingularBoolField(value: self.alphaChannel, fieldNumber: 2) + } + if self.animated != false { + try visitor.visitSingularBoolField(value: self.animated, fieldNumber: 3) + } + if self.height != 0 { + try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 4) + } + if !self.imageID.isEmpty { + try visitor.visitSingularStringField(value: self.imageID, fieldNumber: 5) + } + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 6) + } + if self.width != 0 { + try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 7) + } + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 8) + } + try unknownFields.traverse(visitor: &visitor) + } -extension Proto_TestDummyEnumTestEnum: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TESTDUMMY_ENUM_TEST_NULL"), - 1: .same(proto: "ENUM1"), - 2: .same(proto: "ENUM2"), - ] + public static func ==(lhs: Proto_CharacterMugShot, rhs: Proto_CharacterMugShot) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.alphaChannel != rhs.alphaChannel {return false} + if lhs.animated != rhs.animated {return false} + if lhs.height != rhs.height {return false} + if lhs.imageID != rhs.imageID {return false} + if lhs.url != rhs.url {return false} + if lhs.width != rhs.width {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Proto_Count: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Count" +extension Proto_CollectionResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "count"), + 1: .same(proto: "collections"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5152,74 +6697,178 @@ extension Proto_Count: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementati // 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.count) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.collections) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.count != 0 { - try visitor.visitSingularInt64Field(value: self.count, fieldNumber: 1) + if !self.collections.isEmpty { + try visitor.visitRepeatedMessageField(value: self.collections, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_Count, rhs: Proto_Count) -> Bool { - if lhs.count != rhs.count {return false} + public static func ==(lhs: Proto_CollectionResult, rhs: Proto_CollectionResult) -> Bool { + if lhs.collections != rhs.collections {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_MultiQueryResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".MultiQueryResult" +extension Proto_Collection: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Collection" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 2: .same(proto: "results"), - 3: .same(proto: "count"), + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .same(proto: "games"), + 4: .same(proto: "name"), + 5: .same(proto: "slug"), + 6: .standard(proto: "updated_at"), + 7: .same(proto: "url"), + 8: .same(proto: "checksum"), + 9: .same(proto: "type"), + 10: .standard(proto: "as_parent_relations"), + 11: .standard(proto: "as_child_relations"), ] + fileprivate class _StorageClass { + var _id: UInt64 = 0 + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _games: [Proto_Game] = [] + var _name: String = String() + var _slug: String = String() + var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _url: String = String() + var _checksum: String = String() + var _type: Proto_CollectionType? = nil + var _asParentRelations: [Proto_CollectionRelation] = [] + var _asChildRelations: [Proto_CollectionRelation] = [] + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _createdAt = source._createdAt + _games = source._games + _name = source._name + _slug = source._slug + _updatedAt = source._updatedAt + _url = source._url + _checksum = source._checksum + _type = source._type + _asParentRelations = source._asParentRelations + _asChildRelations = source._asChildRelations + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + public 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.decodeSingularStringField(value: &self.name) }() - case 2: try { try decoder.decodeRepeatedBytesField(value: &self.results) }() - case 3: try { try decoder.decodeSingularInt64Field(value: &self.count) }() - default: break + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + 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: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &_storage._games) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._slug) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 8: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._type) }() + case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._asParentRelations) }() + case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._asChildRelations) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - if !self.results.isEmpty { - try visitor.visitRepeatedBytesField(value: self.results, fieldNumber: 2) - } - if self.count != 0 { - try visitor.visitSingularInt64Field(value: self.count, fieldNumber: 3) + 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 + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if _storage._id != 0 { + try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !_storage._games.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._games, fieldNumber: 3) + } + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4) + } + if !_storage._slug.isEmpty { + try visitor.visitSingularStringField(value: _storage._slug, fieldNumber: 5) + } + try { if let v = _storage._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._url.isEmpty { + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 7) + } + if !_storage._checksum.isEmpty { + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 8) + } + try { if let v = _storage._type { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + if !_storage._asParentRelations.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._asParentRelations, fieldNumber: 10) + } + if !_storage._asChildRelations.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._asChildRelations, fieldNumber: 11) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_MultiQueryResult, rhs: Proto_MultiQueryResult) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.results != rhs.results {return false} - if lhs.count != rhs.count {return false} + public static func ==(lhs: Proto_Collection, rhs: Proto_Collection) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._id != rhs_storage._id {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._games != rhs_storage._games {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._slug != rhs_storage._slug {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._url != rhs_storage._url {return false} + if _storage._checksum != rhs_storage._checksum {return false} + if _storage._type != rhs_storage._type {return false} + if _storage._asParentRelations != rhs_storage._asParentRelations {return false} + if _storage._asChildRelations != rhs_storage._asChildRelations {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_MultiQueryResultArray: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".MultiQueryResultArray" +extension Proto_CollectionMembershipResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionMembershipResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "result"), + 1: .same(proto: "collectionmemberships"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5228,30 +6877,146 @@ extension Proto_MultiQueryResultArray: SwiftProtobuf.Message, SwiftProtobuf._Mes // 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.result) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.collectionmemberships) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.result.isEmpty { - try visitor.visitRepeatedMessageField(value: self.result, fieldNumber: 1) + if !self.collectionmemberships.isEmpty { + try visitor.visitRepeatedMessageField(value: self.collectionmemberships, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_MultiQueryResultArray, rhs: Proto_MultiQueryResultArray) -> Bool { - if lhs.result != rhs.result {return false} + public static func ==(lhs: Proto_CollectionMembershipResult, rhs: Proto_CollectionMembershipResult) -> Bool { + if lhs.collectionmemberships != rhs.collectionmemberships {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_CollectionMembership: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionMembership" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "game"), + 3: .same(proto: "collection"), + 4: .same(proto: "type"), + 5: .standard(proto: "updated_at"), + 6: .standard(proto: "created_at"), + 7: .same(proto: "checksum"), + ] + + fileprivate class _StorageClass { + var _id: UInt64 = 0 + var _game: Proto_Game? = nil + var _collection: Proto_Collection? = nil + var _type: Proto_CollectionMembershipType? = nil + var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _checksum: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _game = source._game + _collection = source._collection + _type = source._type + _updatedAt = source._updatedAt + _createdAt = source._createdAt + _checksum = source._checksum + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + 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: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._game) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._collection) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._type) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + default: break + } + } + } + } + + public func traverse(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 + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if _storage._id != 0 { + try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._game { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._collection { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._type { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._checksum.isEmpty { + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 7) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_CollectionMembership, rhs: Proto_CollectionMembership) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._id != rhs_storage._id {return false} + if _storage._game != rhs_storage._game {return false} + if _storage._collection != rhs_storage._collection {return false} + if _storage._type != rhs_storage._type {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._checksum != rhs_storage._checksum {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_AgeRatingResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AgeRatingResult" +extension Proto_CollectionMembershipTypeResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionMembershipTypeResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ageratings"), + 1: .same(proto: "collectionmembershiptypes"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5260,35 +7025,35 @@ extension Proto_AgeRatingResult: SwiftProtobuf.Message, SwiftProtobuf._MessageIm // 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.ageratings) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.collectionmembershiptypes) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.ageratings.isEmpty { - try visitor.visitRepeatedMessageField(value: self.ageratings, fieldNumber: 1) + if !self.collectionmembershiptypes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.collectionmembershiptypes, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_AgeRatingResult, rhs: Proto_AgeRatingResult) -> Bool { - if lhs.ageratings != rhs.ageratings {return false} + public static func ==(lhs: Proto_CollectionMembershipTypeResult, rhs: Proto_CollectionMembershipTypeResult) -> Bool { + if lhs.collectionmembershiptypes != rhs.collectionmembershiptypes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_AgeRating: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AgeRating" +extension Proto_CollectionMembershipType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionMembershipType" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .same(proto: "category"), - 3: .standard(proto: "content_descriptions"), - 4: .same(proto: "rating"), - 5: .standard(proto: "rating_cover_url"), - 6: .same(proto: "synopsis"), + 2: .same(proto: "name"), + 3: .same(proto: "description"), + 4: .standard(proto: "allowed_collection_type"), + 5: .standard(proto: "updated_at"), + 6: .standard(proto: "created_at"), 7: .same(proto: "checksum"), ] @@ -5299,11 +7064,11 @@ extension Proto_AgeRating: SwiftProtobuf.Message, SwiftProtobuf._MessageImplemen // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.category) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.contentDescriptions) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.rating) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.ratingCoverURL) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.synopsis) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._allowedCollectionType) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._updatedAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() case 7: try { try decoder.decodeSingularStringField(value: &self.checksum) }() default: break } @@ -5311,47 +7076,51 @@ extension Proto_AgeRating: SwiftProtobuf.Message, SwiftProtobuf._MessageImplemen } public 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 if self.id != 0 { try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) } - if self.category != .ageratingCategoryNull { - try visitor.visitSingularEnumField(value: self.category, fieldNumber: 2) - } - if !self.contentDescriptions.isEmpty { - try visitor.visitRepeatedMessageField(value: self.contentDescriptions, fieldNumber: 3) - } - if self.rating != .ageratingRatingNull { - try visitor.visitSingularEnumField(value: self.rating, fieldNumber: 4) - } - if !self.ratingCoverURL.isEmpty { - try visitor.visitSingularStringField(value: self.ratingCoverURL, fieldNumber: 5) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) } - if !self.synopsis.isEmpty { - try visitor.visitSingularStringField(value: self.synopsis, fieldNumber: 6) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) } + try { if let v = self._allowedCollectionType { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() if !self.checksum.isEmpty { try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 7) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_AgeRating, rhs: Proto_AgeRating) -> Bool { + public static func ==(lhs: Proto_CollectionMembershipType, rhs: Proto_CollectionMembershipType) -> Bool { if lhs.id != rhs.id {return false} - if lhs.category != rhs.category {return false} - if lhs.contentDescriptions != rhs.contentDescriptions {return false} - if lhs.rating != rhs.rating {return false} - if lhs.ratingCoverURL != rhs.ratingCoverURL {return false} - if lhs.synopsis != rhs.synopsis {return false} + if lhs.name != rhs.name {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs._allowedCollectionType != rhs._allowedCollectionType {return false} + if lhs._updatedAt != rhs._updatedAt {return false} + if lhs._createdAt != rhs._createdAt {return false} if lhs.checksum != rhs.checksum {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_AgeRatingContentDescriptionResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AgeRatingContentDescriptionResult" +extension Proto_CollectionRelationResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionRelationResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ageratingcontentdescriptions"), + 1: .same(proto: "collectionrelations"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5360,33 +7129,36 @@ extension Proto_AgeRatingContentDescriptionResult: SwiftProtobuf.Message, SwiftP // 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.ageratingcontentdescriptions) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.collectionrelations) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.ageratingcontentdescriptions.isEmpty { - try visitor.visitRepeatedMessageField(value: self.ageratingcontentdescriptions, fieldNumber: 1) + if !self.collectionrelations.isEmpty { + try visitor.visitRepeatedMessageField(value: self.collectionrelations, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_AgeRatingContentDescriptionResult, rhs: Proto_AgeRatingContentDescriptionResult) -> Bool { - if lhs.ageratingcontentdescriptions != rhs.ageratingcontentdescriptions {return false} + public static func ==(lhs: Proto_CollectionRelationResult, rhs: Proto_CollectionRelationResult) -> Bool { + if lhs.collectionrelations != rhs.collectionrelations {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_AgeRatingContentDescription: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AgeRatingContentDescription" +extension Proto_CollectionRelation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionRelation" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .same(proto: "category"), - 3: .same(proto: "description"), - 4: .same(proto: "checksum"), + 2: .standard(proto: "child_collection"), + 3: .standard(proto: "parent_collection"), + 4: .same(proto: "type"), + 5: .standard(proto: "updated_at"), + 6: .standard(proto: "created_at"), + 7: .same(proto: "checksum"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5396,44 +7168,63 @@ extension Proto_AgeRatingContentDescription: SwiftProtobuf.Message, SwiftProtobu // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.category) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._childCollection) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._parentCollection) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._type) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._updatedAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.checksum) }() default: break } } } public 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 if self.id != 0 { try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) } - if self.category != .ageratingcontentdescriptionCategoryNull { - try visitor.visitSingularEnumField(value: self.category, fieldNumber: 2) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) - } + try { if let v = self._childCollection { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._parentCollection { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._type { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() if !self.checksum.isEmpty { - try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 4) + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 7) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_AgeRatingContentDescription, rhs: Proto_AgeRatingContentDescription) -> Bool { + public static func ==(lhs: Proto_CollectionRelation, rhs: Proto_CollectionRelation) -> Bool { if lhs.id != rhs.id {return false} - if lhs.category != rhs.category {return false} - if lhs.description_p != rhs.description_p {return false} + if lhs._childCollection != rhs._childCollection {return false} + if lhs._parentCollection != rhs._parentCollection {return false} + if lhs._type != rhs._type {return false} + if lhs._updatedAt != rhs._updatedAt {return false} + if lhs._createdAt != rhs._createdAt {return false} if lhs.checksum != rhs.checksum {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_AlternativeNameResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AlternativeNameResult" +extension Proto_CollectionRelationTypeResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionRelationTypeResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "alternativenames"), + 1: .same(proto: "collectionrelationtypes"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5442,90 +7233,154 @@ extension Proto_AlternativeNameResult: SwiftProtobuf.Message, SwiftProtobuf._Mes // 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.alternativenames) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.collectionrelationtypes) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.alternativenames.isEmpty { - try visitor.visitRepeatedMessageField(value: self.alternativenames, fieldNumber: 1) + if !self.collectionrelationtypes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.collectionrelationtypes, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_AlternativeNameResult, rhs: Proto_AlternativeNameResult) -> Bool { - if lhs.alternativenames != rhs.alternativenames {return false} + public static func ==(lhs: Proto_CollectionRelationTypeResult, rhs: Proto_CollectionRelationTypeResult) -> Bool { + if lhs.collectionrelationtypes != rhs.collectionrelationtypes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_AlternativeName: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AlternativeName" +extension Proto_CollectionRelationType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionRelationType" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .same(proto: "comment"), - 3: .same(proto: "game"), - 4: .same(proto: "name"), - 5: .same(proto: "checksum"), + 2: .same(proto: "name"), + 3: .same(proto: "description"), + 4: .standard(proto: "allowed_child_type"), + 5: .standard(proto: "allowed_parent_type"), + 6: .standard(proto: "updated_at"), + 7: .standard(proto: "created_at"), + 8: .same(proto: "checksum"), ] + fileprivate class _StorageClass { + var _id: UInt64 = 0 + var _name: String = String() + var _description_p: String = String() + var _allowedChildType: Proto_CollectionType? = nil + var _allowedParentType: Proto_CollectionType? = nil + var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _checksum: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _name = source._name + _description_p = source._description_p + _allowedChildType = source._allowedChildType + _allowedParentType = source._allowedParentType + _updatedAt = source._updatedAt + _createdAt = source._createdAt + _checksum = source._checksum + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + public 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.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.comment) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._game) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.checksum) }() - default: break + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + 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: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._allowedChildType) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._allowedParentType) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 8: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + default: break + } } } } public 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 - if self.id != 0 { - try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) - } - if !self.comment.isEmpty { - try visitor.visitSingularStringField(value: self.comment, fieldNumber: 2) - } - try { if let v = self._game { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) - } - if !self.checksum.isEmpty { - try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 5) + 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 + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if _storage._id != 0 { + try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) + } + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) + } + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) + } + try { if let v = _storage._allowedChildType { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._allowedParentType { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if !_storage._checksum.isEmpty { + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 8) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_AlternativeName, rhs: Proto_AlternativeName) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.comment != rhs.comment {return false} - if lhs._game != rhs._game {return false} - if lhs.name != rhs.name {return false} - if lhs.checksum != rhs.checksum {return false} + public static func ==(lhs: Proto_CollectionRelationType, rhs: Proto_CollectionRelationType) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._id != rhs_storage._id {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._allowedChildType != rhs_storage._allowedChildType {return false} + if _storage._allowedParentType != rhs_storage._allowedParentType {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._checksum != rhs_storage._checksum {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_ArtworkResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ArtworkResult" +extension Proto_CollectionTypeResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionTypeResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "artworks"), + 1: .same(proto: "collectiontypes"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5534,38 +7389,35 @@ extension Proto_ArtworkResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // 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.artworks) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.collectiontypes) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.artworks.isEmpty { - try visitor.visitRepeatedMessageField(value: self.artworks, fieldNumber: 1) + if !self.collectiontypes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.collectiontypes, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_ArtworkResult, rhs: Proto_ArtworkResult) -> Bool { - if lhs.artworks != rhs.artworks {return false} + public static func ==(lhs: Proto_CollectionTypeResult, rhs: Proto_CollectionTypeResult) -> Bool { + if lhs.collectiontypes != rhs.collectiontypes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_Artwork: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Artwork" +extension Proto_CollectionType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectionType" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "alpha_channel"), - 3: .same(proto: "animated"), - 4: .same(proto: "game"), - 5: .same(proto: "height"), - 6: .standard(proto: "image_id"), - 7: .same(proto: "url"), - 8: .same(proto: "width"), - 9: .same(proto: "checksum"), + 2: .same(proto: "name"), + 3: .same(proto: "description"), + 4: .standard(proto: "updated_at"), + 5: .standard(proto: "created_at"), + 6: .same(proto: "checksum"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5575,14 +7427,11 @@ extension Proto_Artwork: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.alphaChannel) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.animated) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._game) }() - case 5: try { try decoder.decodeSingularInt32Field(value: &self.height) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.imageID) }() - case 7: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 8: try { try decoder.decodeSingularInt32Field(value: &self.width) }() - case 9: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._updatedAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.checksum) }() default: break } } @@ -5596,52 +7445,40 @@ extension Proto_Artwork: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa if self.id != 0 { try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) } - if self.alphaChannel != false { - try visitor.visitSingularBoolField(value: self.alphaChannel, fieldNumber: 2) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) } - if self.animated != false { - try visitor.visitSingularBoolField(value: self.animated, fieldNumber: 3) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) } - try { if let v = self._game { + try { if let v = self._updatedAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() - if self.height != 0 { - try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 5) - } - if !self.imageID.isEmpty { - try visitor.visitSingularStringField(value: self.imageID, fieldNumber: 6) - } - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 7) - } - if self.width != 0 { - try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 8) - } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() if !self.checksum.isEmpty { - try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 9) + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 6) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_Artwork, rhs: Proto_Artwork) -> Bool { + public static func ==(lhs: Proto_CollectionType, rhs: Proto_CollectionType) -> Bool { if lhs.id != rhs.id {return false} - if lhs.alphaChannel != rhs.alphaChannel {return false} - if lhs.animated != rhs.animated {return false} - if lhs._game != rhs._game {return false} - if lhs.height != rhs.height {return false} - if lhs.imageID != rhs.imageID {return false} - if lhs.url != rhs.url {return false} - if lhs.width != rhs.width {return false} + if lhs.name != rhs.name {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs._updatedAt != rhs._updatedAt {return false} + if lhs._createdAt != rhs._createdAt {return false} if lhs.checksum != rhs.checksum {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_CharacterResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CharacterResult" +extension Proto_CompanyResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CompanyResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "characters"), + 1: .same(proto: "companies"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5650,59 +7487,69 @@ extension Proto_CharacterResult: SwiftProtobuf.Message, SwiftProtobuf._MessageIm // 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.characters) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.companies) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.characters.isEmpty { - try visitor.visitRepeatedMessageField(value: self.characters, fieldNumber: 1) + if !self.companies.isEmpty { + try visitor.visitRepeatedMessageField(value: self.companies, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CharacterResult, rhs: Proto_CharacterResult) -> Bool { - if lhs.characters != rhs.characters {return false} + public static func ==(lhs: Proto_CompanyResult, rhs: Proto_CompanyResult) -> Bool { + if lhs.companies != rhs.companies {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_Character: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Character" +extension Proto_Company: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Company" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .same(proto: "akas"), - 3: .standard(proto: "country_name"), - 4: .standard(proto: "created_at"), - 5: .same(proto: "description"), - 6: .same(proto: "games"), - 7: .same(proto: "gender"), - 8: .standard(proto: "mug_shot"), - 9: .same(proto: "name"), - 10: .same(proto: "slug"), - 11: .same(proto: "species"), - 12: .standard(proto: "updated_at"), - 13: .same(proto: "url"), - 14: .same(proto: "checksum"), + 2: .standard(proto: "change_date"), + 3: .standard(proto: "change_date_category"), + 4: .standard(proto: "changed_company_id"), + 5: .same(proto: "country"), + 6: .standard(proto: "created_at"), + 7: .same(proto: "description"), + 8: .same(proto: "developed"), + 9: .same(proto: "logo"), + 10: .same(proto: "name"), + 11: .same(proto: "parent"), + 12: .same(proto: "published"), + 13: .same(proto: "slug"), + 14: .standard(proto: "start_date"), + 15: .standard(proto: "start_date_category"), + 16: .standard(proto: "updated_at"), + 17: .same(proto: "url"), + 18: .same(proto: "websites"), + 19: .same(proto: "checksum"), ] fileprivate class _StorageClass { var _id: UInt64 = 0 - var _akas: [String] = [] - var _countryName: String = String() + var _changeDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _changeDateCategory: Proto_DateFormatChangeDateCategoryEnum = .yyyymmmmdd + var _changedCompanyID: Proto_Company? = nil + var _country: Int32 = 0 var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _description_p: String = String() - var _games: [Proto_Game] = [] - var _gender: Proto_GenderGenderEnum = .male - var _mugShot: Proto_CharacterMugShot? = nil + var _developed: [Proto_Game] = [] + var _logo: Proto_CompanyLogo? = nil var _name: String = String() + var _parent: Proto_Company? = nil + var _published: [Proto_Game] = [] var _slug: String = String() - var _species: Proto_CharacterSpeciesEnum = .characterSpeciesNull + var _startDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _startDateCategory: Proto_DateFormatChangeDateCategoryEnum = .yyyymmmmdd var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _url: String = String() + var _websites: [Proto_CompanyWebsite] = [] var _checksum: String = String() static let defaultInstance = _StorageClass() @@ -5711,18 +7558,23 @@ extension Proto_Character: SwiftProtobuf.Message, SwiftProtobuf._MessageImplemen init(copying source: _StorageClass) { _id = source._id - _akas = source._akas - _countryName = source._countryName + _changeDate = source._changeDate + _changeDateCategory = source._changeDateCategory + _changedCompanyID = source._changedCompanyID + _country = source._country _createdAt = source._createdAt _description_p = source._description_p - _games = source._games - _gender = source._gender - _mugShot = source._mugShot + _developed = source._developed + _logo = source._logo _name = source._name + _parent = source._parent + _published = source._published _slug = source._slug - _species = source._species + _startDate = source._startDate + _startDateCategory = source._startDateCategory _updatedAt = source._updatedAt _url = source._url + _websites = source._websites _checksum = source._checksum } } @@ -5743,19 +7595,24 @@ extension Proto_Character: SwiftProtobuf.Message, SwiftProtobuf._MessageImplemen // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &_storage._id) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &_storage._akas) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._countryName) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._games) }() - case 7: try { try decoder.decodeSingularEnumField(value: &_storage._gender) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._mugShot) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._slug) }() - case 11: try { try decoder.decodeSingularEnumField(value: &_storage._species) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() - case 13: try { try decoder.decodeSingularStringField(value: &_storage._url) }() - case 14: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._changeDate) }() + case 3: try { try decoder.decodeSingularEnumField(value: &_storage._changeDateCategory) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._changedCompanyID) }() + case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._country) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._developed) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._logo) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._parent) }() + case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._published) }() + case 13: try { try decoder.decodeSingularStringField(value: &_storage._slug) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._startDate) }() + case 15: try { try decoder.decodeSingularEnumField(value: &_storage._startDateCategory) }() + case 16: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 17: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 18: try { try decoder.decodeRepeatedMessageField(value: &_storage._websites) }() + case 19: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() default: break } } @@ -5771,67 +7628,87 @@ extension Proto_Character: SwiftProtobuf.Message, SwiftProtobuf._MessageImplemen if _storage._id != 0 { try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) } - if !_storage._akas.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._akas, fieldNumber: 2) + try { if let v = _storage._changeDate { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if _storage._changeDateCategory != .yyyymmmmdd { + try visitor.visitSingularEnumField(value: _storage._changeDateCategory, fieldNumber: 3) } - if !_storage._countryName.isEmpty { - try visitor.visitSingularStringField(value: _storage._countryName, fieldNumber: 3) + try { if let v = _storage._changedCompanyID { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + if _storage._country != 0 { + try visitor.visitSingularInt32Field(value: _storage._country, fieldNumber: 5) } try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5) - } - if !_storage._games.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._games, fieldNumber: 6) + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 7) } - if _storage._gender != .male { - try visitor.visitSingularEnumField(value: _storage._gender, fieldNumber: 7) + if !_storage._developed.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._developed, fieldNumber: 8) } - try { if let v = _storage._mugShot { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = _storage._logo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 9) + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 10) + } + try { if let v = _storage._parent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + if !_storage._published.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._published, fieldNumber: 12) } if !_storage._slug.isEmpty { - try visitor.visitSingularStringField(value: _storage._slug, fieldNumber: 10) + try visitor.visitSingularStringField(value: _storage._slug, fieldNumber: 13) } - if _storage._species != .characterSpeciesNull { - try visitor.visitSingularEnumField(value: _storage._species, fieldNumber: 11) + try { if let v = _storage._startDate { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + if _storage._startDateCategory != .yyyymmmmdd { + try visitor.visitSingularEnumField(value: _storage._startDateCategory, fieldNumber: 15) } try { if let v = _storage._updatedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + try visitor.visitSingularMessageField(value: v, fieldNumber: 16) } }() if !_storage._url.isEmpty { - try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 13) + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 17) + } + if !_storage._websites.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._websites, fieldNumber: 18) } if !_storage._checksum.isEmpty { - try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 14) + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 19) } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_Character, rhs: Proto_Character) -> Bool { + public static func ==(lhs: Proto_Company, rhs: Proto_Company) -> Bool { if lhs._storage !== rhs._storage { let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in let _storage = _args.0 let rhs_storage = _args.1 if _storage._id != rhs_storage._id {return false} - if _storage._akas != rhs_storage._akas {return false} - if _storage._countryName != rhs_storage._countryName {return false} + if _storage._changeDate != rhs_storage._changeDate {return false} + if _storage._changeDateCategory != rhs_storage._changeDateCategory {return false} + if _storage._changedCompanyID != rhs_storage._changedCompanyID {return false} + if _storage._country != rhs_storage._country {return false} if _storage._createdAt != rhs_storage._createdAt {return false} if _storage._description_p != rhs_storage._description_p {return false} - if _storage._games != rhs_storage._games {return false} - if _storage._gender != rhs_storage._gender {return false} - if _storage._mugShot != rhs_storage._mugShot {return false} + if _storage._developed != rhs_storage._developed {return false} + if _storage._logo != rhs_storage._logo {return false} if _storage._name != rhs_storage._name {return false} + if _storage._parent != rhs_storage._parent {return false} + if _storage._published != rhs_storage._published {return false} if _storage._slug != rhs_storage._slug {return false} - if _storage._species != rhs_storage._species {return false} + if _storage._startDate != rhs_storage._startDate {return false} + if _storage._startDateCategory != rhs_storage._startDateCategory {return false} if _storage._updatedAt != rhs_storage._updatedAt {return false} if _storage._url != rhs_storage._url {return false} + if _storage._websites != rhs_storage._websites {return false} if _storage._checksum != rhs_storage._checksum {return false} return true } @@ -5842,10 +7719,10 @@ extension Proto_Character: SwiftProtobuf.Message, SwiftProtobuf._MessageImplemen } } -extension Proto_CharacterMugShotResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CharacterMugShotResult" +extension Proto_CompanyLogoResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CompanyLogoResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "charactermugshots"), + 1: .same(proto: "companylogos"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5854,28 +7731,28 @@ extension Proto_CharacterMugShotResult: SwiftProtobuf.Message, SwiftProtobuf._Me // 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.charactermugshots) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.companylogos) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.charactermugshots.isEmpty { - try visitor.visitRepeatedMessageField(value: self.charactermugshots, fieldNumber: 1) + if !self.companylogos.isEmpty { + try visitor.visitRepeatedMessageField(value: self.companylogos, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CharacterMugShotResult, rhs: Proto_CharacterMugShotResult) -> Bool { - if lhs.charactermugshots != rhs.charactermugshots {return false} + public static func ==(lhs: Proto_CompanyLogoResult, rhs: Proto_CompanyLogoResult) -> Bool { + if lhs.companylogos != rhs.companylogos {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_CharacterMugShot: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CharacterMugShot" +extension Proto_CompanyLogo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CompanyLogo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), 2: .standard(proto: "alpha_channel"), @@ -5934,7 +7811,7 @@ extension Proto_CharacterMugShot: SwiftProtobuf.Message, SwiftProtobuf._MessageI try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CharacterMugShot, rhs: Proto_CharacterMugShot) -> Bool { + public static func ==(lhs: Proto_CompanyLogo, rhs: Proto_CompanyLogo) -> Bool { if lhs.id != rhs.id {return false} if lhs.alphaChannel != rhs.alphaChannel {return false} if lhs.animated != rhs.animated {return false} @@ -5948,10 +7825,10 @@ extension Proto_CharacterMugShot: SwiftProtobuf.Message, SwiftProtobuf._MessageI } } -extension Proto_CollectionResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CollectionResult" +extension Proto_CompanyWebsiteResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CompanyWebsiteResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "collections"), + 1: .same(proto: "companywebsites"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -5960,37 +7837,34 @@ extension Proto_CollectionResult: SwiftProtobuf.Message, SwiftProtobuf._MessageI // 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.collections) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.companywebsites) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.collections.isEmpty { - try visitor.visitRepeatedMessageField(value: self.collections, fieldNumber: 1) + if !self.companywebsites.isEmpty { + try visitor.visitRepeatedMessageField(value: self.companywebsites, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CollectionResult, rhs: Proto_CollectionResult) -> Bool { - if lhs.collections != rhs.collections {return false} + public static func ==(lhs: Proto_CompanyWebsiteResult, rhs: Proto_CompanyWebsiteResult) -> Bool { + if lhs.companywebsites != rhs.companywebsites {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_Collection: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Collection" +extension Proto_CompanyWebsite: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CompanyWebsite" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .same(proto: "games"), - 4: .same(proto: "name"), - 5: .same(proto: "slug"), - 6: .standard(proto: "updated_at"), - 7: .same(proto: "url"), - 8: .same(proto: "checksum"), + 2: .same(proto: "category"), + 3: .same(proto: "trusted"), + 4: .same(proto: "url"), + 5: .same(proto: "checksum"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -6000,57 +7874,38 @@ extension Proto_Collection: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.games) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.slug) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._updatedAt) }() - case 7: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 8: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.category) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.trusted) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.checksum) }() default: break } } } public 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 if self.id != 0 { try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.games.isEmpty { - try visitor.visitRepeatedMessageField(value: self.games, fieldNumber: 3) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + if self.category != .websiteCategoryNull { + try visitor.visitSingularEnumField(value: self.category, fieldNumber: 2) } - if !self.slug.isEmpty { - try visitor.visitSingularStringField(value: self.slug, fieldNumber: 5) + if self.trusted != false { + try visitor.visitSingularBoolField(value: self.trusted, fieldNumber: 3) } - try { if let v = self._updatedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 7) + try visitor.visitSingularStringField(value: self.url, fieldNumber: 4) } if !self.checksum.isEmpty { - try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 8) + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 5) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_Collection, rhs: Proto_Collection) -> Bool { + public static func ==(lhs: Proto_CompanyWebsite, rhs: Proto_CompanyWebsite) -> Bool { if lhs.id != rhs.id {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs.games != rhs.games {return false} - if lhs.name != rhs.name {return false} - if lhs.slug != rhs.slug {return false} - if lhs._updatedAt != rhs._updatedAt {return false} + if lhs.category != rhs.category {return false} + if lhs.trusted != rhs.trusted {return false} if lhs.url != rhs.url {return false} if lhs.checksum != rhs.checksum {return false} if lhs.unknownFields != rhs.unknownFields {return false} @@ -6058,10 +7913,10 @@ extension Proto_Collection: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme } } -extension Proto_CompanyResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CompanyResult" +extension Proto_CoverResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CoverResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "companies"), + 1: .same(proto: "covers"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -6070,70 +7925,52 @@ extension Proto_CompanyResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // 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.companies) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.covers) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.companies.isEmpty { - try visitor.visitRepeatedMessageField(value: self.companies, fieldNumber: 1) + if !self.covers.isEmpty { + try visitor.visitRepeatedMessageField(value: self.covers, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CompanyResult, rhs: Proto_CompanyResult) -> Bool { - if lhs.companies != rhs.companies {return false} + public static func ==(lhs: Proto_CoverResult, rhs: Proto_CoverResult) -> Bool { + if lhs.covers != rhs.covers {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_Company: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Company" +extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Cover" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "change_date"), - 3: .standard(proto: "change_date_category"), - 4: .standard(proto: "changed_company_id"), - 5: .same(proto: "country"), - 6: .standard(proto: "created_at"), - 7: .same(proto: "description"), - 8: .same(proto: "developed"), - 9: .same(proto: "logo"), - 10: .same(proto: "name"), - 11: .same(proto: "parent"), - 12: .same(proto: "published"), - 13: .same(proto: "slug"), - 14: .standard(proto: "start_date"), - 15: .standard(proto: "start_date_category"), - 16: .standard(proto: "updated_at"), - 17: .same(proto: "url"), - 18: .same(proto: "websites"), - 19: .same(proto: "checksum"), + 2: .standard(proto: "alpha_channel"), + 3: .same(proto: "animated"), + 4: .same(proto: "game"), + 5: .same(proto: "height"), + 6: .standard(proto: "image_id"), + 7: .same(proto: "url"), + 8: .same(proto: "width"), + 9: .same(proto: "checksum"), + 10: .standard(proto: "game_localization"), ] fileprivate class _StorageClass { var _id: UInt64 = 0 - var _changeDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _changeDateCategory: Proto_DateFormatChangeDateCategoryEnum = .yyyymmmmdd - var _changedCompanyID: Proto_Company? = nil - var _country: Int32 = 0 - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _description_p: String = String() - var _developed: [Proto_Game] = [] - var _logo: Proto_CompanyLogo? = nil - var _name: String = String() - var _parent: Proto_Company? = nil - var _published: [Proto_Game] = [] - var _slug: String = String() - var _startDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _startDateCategory: Proto_DateFormatChangeDateCategoryEnum = .yyyymmmmdd - var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _alphaChannel: Bool = false + var _animated: Bool = false + var _game: Proto_Game? = nil + var _height: Int32 = 0 + var _imageID: String = String() var _url: String = String() - var _websites: [Proto_CompanyWebsite] = [] + var _width: Int32 = 0 var _checksum: String = String() + var _gameLocalization: Proto_GameLocalization? = nil static let defaultInstance = _StorageClass() @@ -6141,24 +7978,15 @@ extension Proto_Company: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa init(copying source: _StorageClass) { _id = source._id - _changeDate = source._changeDate - _changeDateCategory = source._changeDateCategory - _changedCompanyID = source._changedCompanyID - _country = source._country - _createdAt = source._createdAt - _description_p = source._description_p - _developed = source._developed - _logo = source._logo - _name = source._name - _parent = source._parent - _published = source._published - _slug = source._slug - _startDate = source._startDate - _startDateCategory = source._startDateCategory - _updatedAt = source._updatedAt + _alphaChannel = source._alphaChannel + _animated = source._animated + _game = source._game + _height = source._height + _imageID = source._imageID _url = source._url - _websites = source._websites + _width = source._width _checksum = source._checksum + _gameLocalization = source._gameLocalization } } @@ -6178,24 +8006,15 @@ extension Proto_Company: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._changeDate) }() - case 3: try { try decoder.decodeSingularEnumField(value: &_storage._changeDateCategory) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._changedCompanyID) }() - case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._country) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._developed) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._logo) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._parent) }() - case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._published) }() - case 13: try { try decoder.decodeSingularStringField(value: &_storage._slug) }() - case 14: try { try decoder.decodeSingularMessageField(value: &_storage._startDate) }() - case 15: try { try decoder.decodeSingularEnumField(value: &_storage._startDateCategory) }() - case 16: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() - case 17: try { try decoder.decodeSingularStringField(value: &_storage._url) }() - case 18: try { try decoder.decodeRepeatedMessageField(value: &_storage._websites) }() - case 19: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + case 2: try { try decoder.decodeSingularBoolField(value: &_storage._alphaChannel) }() + case 3: try { try decoder.decodeSingularBoolField(value: &_storage._animated) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._game) }() + case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._height) }() + case 6: try { try decoder.decodeSingularStringField(value: &_storage._imageID) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 8: try { try decoder.decodeSingularInt32Field(value: &_storage._width) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._gameLocalization) }() default: break } } @@ -6211,88 +8030,52 @@ extension Proto_Company: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa if _storage._id != 0 { try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) } - try { if let v = _storage._changeDate { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if _storage._changeDateCategory != .yyyymmmmdd { - try visitor.visitSingularEnumField(value: _storage._changeDateCategory, fieldNumber: 3) - } - try { if let v = _storage._changedCompanyID { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - if _storage._country != 0 { - try visitor.visitSingularInt32Field(value: _storage._country, fieldNumber: 5) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 7) - } - if !_storage._developed.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._developed, fieldNumber: 8) - } - try { if let v = _storage._logo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 10) - } - try { if let v = _storage._parent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() - if !_storage._published.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._published, fieldNumber: 12) + if _storage._alphaChannel != false { + try visitor.visitSingularBoolField(value: _storage._alphaChannel, fieldNumber: 2) } - if !_storage._slug.isEmpty { - try visitor.visitSingularStringField(value: _storage._slug, fieldNumber: 13) + if _storage._animated != false { + try visitor.visitSingularBoolField(value: _storage._animated, fieldNumber: 3) } - try { if let v = _storage._startDate { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + try { if let v = _storage._game { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() - if _storage._startDateCategory != .yyyymmmmdd { - try visitor.visitSingularEnumField(value: _storage._startDateCategory, fieldNumber: 15) + if _storage._height != 0 { + try visitor.visitSingularInt32Field(value: _storage._height, fieldNumber: 5) + } + if !_storage._imageID.isEmpty { + try visitor.visitSingularStringField(value: _storage._imageID, fieldNumber: 6) } - try { if let v = _storage._updatedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 16) - } }() if !_storage._url.isEmpty { - try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 17) + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 7) } - if !_storage._websites.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._websites, fieldNumber: 18) + if _storage._width != 0 { + try visitor.visitSingularInt32Field(value: _storage._width, fieldNumber: 8) } if !_storage._checksum.isEmpty { - try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 19) + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 9) } + try { if let v = _storage._gameLocalization { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_Company, rhs: Proto_Company) -> Bool { + public static func ==(lhs: Proto_Cover, rhs: Proto_Cover) -> Bool { if lhs._storage !== rhs._storage { let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in let _storage = _args.0 let rhs_storage = _args.1 if _storage._id != rhs_storage._id {return false} - if _storage._changeDate != rhs_storage._changeDate {return false} - if _storage._changeDateCategory != rhs_storage._changeDateCategory {return false} - if _storage._changedCompanyID != rhs_storage._changedCompanyID {return false} - if _storage._country != rhs_storage._country {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._developed != rhs_storage._developed {return false} - if _storage._logo != rhs_storage._logo {return false} - if _storage._name != rhs_storage._name {return false} - if _storage._parent != rhs_storage._parent {return false} - if _storage._published != rhs_storage._published {return false} - if _storage._slug != rhs_storage._slug {return false} - if _storage._startDate != rhs_storage._startDate {return false} - if _storage._startDateCategory != rhs_storage._startDateCategory {return false} - if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._alphaChannel != rhs_storage._alphaChannel {return false} + if _storage._animated != rhs_storage._animated {return false} + if _storage._game != rhs_storage._game {return false} + if _storage._height != rhs_storage._height {return false} + if _storage._imageID != rhs_storage._imageID {return false} if _storage._url != rhs_storage._url {return false} - if _storage._websites != rhs_storage._websites {return false} + if _storage._width != rhs_storage._width {return false} if _storage._checksum != rhs_storage._checksum {return false} + if _storage._gameLocalization != rhs_storage._gameLocalization {return false} return true } if !storagesAreEqual {return false} @@ -6302,10 +8085,10 @@ extension Proto_Company: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa } } -extension Proto_CompanyLogoResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CompanyLogoResult" +extension Proto_EventResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EventResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "companylogos"), + 1: .same(proto: "events"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -6314,192 +8097,210 @@ extension Proto_CompanyLogoResult: SwiftProtobuf.Message, SwiftProtobuf._Message // 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.companylogos) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.events) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.companylogos.isEmpty { - try visitor.visitRepeatedMessageField(value: self.companylogos, fieldNumber: 1) + if !self.events.isEmpty { + try visitor.visitRepeatedMessageField(value: self.events, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CompanyLogoResult, rhs: Proto_CompanyLogoResult) -> Bool { - if lhs.companylogos != rhs.companylogos {return false} + public static func ==(lhs: Proto_EventResult, rhs: Proto_EventResult) -> Bool { + if lhs.events != rhs.events {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_CompanyLogo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CompanyLogo" +extension Proto_Event: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Event" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "alpha_channel"), - 3: .same(proto: "animated"), - 4: .same(proto: "height"), - 5: .standard(proto: "image_id"), - 6: .same(proto: "url"), - 7: .same(proto: "width"), - 8: .same(proto: "checksum"), + 2: .same(proto: "name"), + 3: .same(proto: "description"), + 4: .same(proto: "slug"), + 5: .standard(proto: "event_logo"), + 6: .standard(proto: "start_time"), + 7: .standard(proto: "time_zone"), + 8: .standard(proto: "end_time"), + 9: .standard(proto: "live_stream_url"), + 10: .same(proto: "games"), + 11: .same(proto: "videos"), + 12: .standard(proto: "event_networks"), + 13: .standard(proto: "created_at"), + 14: .standard(proto: "updated_at"), + 15: .same(proto: "checksum"), ] - public 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.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.alphaChannel) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.animated) }() - case 4: try { try decoder.decodeSingularInt32Field(value: &self.height) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.imageID) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 7: try { try decoder.decodeSingularInt32Field(value: &self.width) }() - case 8: try { try decoder.decodeSingularStringField(value: &self.checksum) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.id != 0 { - try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) - } - if self.alphaChannel != false { - try visitor.visitSingularBoolField(value: self.alphaChannel, fieldNumber: 2) - } - if self.animated != false { - try visitor.visitSingularBoolField(value: self.animated, fieldNumber: 3) - } - if self.height != 0 { - try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 4) - } - if !self.imageID.isEmpty { - try visitor.visitSingularStringField(value: self.imageID, fieldNumber: 5) - } - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 6) - } - if self.width != 0 { - try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 7) - } - if !self.checksum.isEmpty { - try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 8) - } - try unknownFields.traverse(visitor: &visitor) - } + fileprivate class _StorageClass { + var _id: UInt64 = 0 + var _name: String = String() + var _description_p: String = String() + var _slug: String = String() + var _eventLogo: Proto_EventLogo? = nil + var _startTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _timeZone: String = String() + var _endTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _liveStreamURL: String = String() + var _games: [Proto_Game] = [] + var _videos: [Proto_GameVideo] = [] + var _eventNetworks: [Proto_EventNetwork] = [] + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _checksum: String = String() - public static func ==(lhs: Proto_CompanyLogo, rhs: Proto_CompanyLogo) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.alphaChannel != rhs.alphaChannel {return false} - if lhs.animated != rhs.animated {return false} - if lhs.height != rhs.height {return false} - if lhs.imageID != rhs.imageID {return false} - if lhs.url != rhs.url {return false} - if lhs.width != rhs.width {return false} - if lhs.checksum != rhs.checksum {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} + static let defaultInstance = _StorageClass() -extension Proto_CompanyWebsiteResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CompanyWebsiteResult" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "companywebsites"), - ] + private init() {} - public 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.companywebsites) }() - default: break - } + init(copying source: _StorageClass) { + _id = source._id + _name = source._name + _description_p = source._description_p + _slug = source._slug + _eventLogo = source._eventLogo + _startTime = source._startTime + _timeZone = source._timeZone + _endTime = source._endTime + _liveStreamURL = source._liveStreamURL + _games = source._games + _videos = source._videos + _eventNetworks = source._eventNetworks + _createdAt = source._createdAt + _updatedAt = source._updatedAt + _checksum = source._checksum } } - public func traverse(visitor: inout V) throws { - if !self.companywebsites.isEmpty { - try visitor.visitRepeatedMessageField(value: self.companywebsites, fieldNumber: 1) + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Proto_CompanyWebsiteResult, rhs: Proto_CompanyWebsiteResult) -> Bool { - if lhs.companywebsites != rhs.companywebsites {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true + return _storage } -} - -extension Proto_CompanyWebsite: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CompanyWebsite" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "category"), - 3: .same(proto: "trusted"), - 4: .same(proto: "url"), - 5: .same(proto: "checksum"), - ] public 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.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.category) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.trusted) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.checksum) }() - default: break + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + 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: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._slug) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._eventLogo) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._startTime) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._timeZone) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._endTime) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._liveStreamURL) }() + case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._games) }() + case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._videos) }() + case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._eventNetworks) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 15: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if self.id != 0 { - try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) - } - if self.category != .websiteCategoryNull { - try visitor.visitSingularEnumField(value: self.category, fieldNumber: 2) - } - if self.trusted != false { - try visitor.visitSingularBoolField(value: self.trusted, fieldNumber: 3) - } - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 4) - } - if !self.checksum.isEmpty { - try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 5) + 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 + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if _storage._id != 0 { + try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) + } + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) + } + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) + } + if !_storage._slug.isEmpty { + try visitor.visitSingularStringField(value: _storage._slug, fieldNumber: 4) + } + try { if let v = _storage._eventLogo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._startTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._timeZone.isEmpty { + try visitor.visitSingularStringField(value: _storage._timeZone, fieldNumber: 7) + } + try { if let v = _storage._endTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._liveStreamURL.isEmpty { + try visitor.visitSingularStringField(value: _storage._liveStreamURL, fieldNumber: 9) + } + if !_storage._games.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._games, fieldNumber: 10) + } + if !_storage._videos.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._videos, fieldNumber: 11) + } + if !_storage._eventNetworks.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._eventNetworks, fieldNumber: 12) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + try { if let v = _storage._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + if !_storage._checksum.isEmpty { + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 15) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CompanyWebsite, rhs: Proto_CompanyWebsite) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.category != rhs.category {return false} - if lhs.trusted != rhs.trusted {return false} - if lhs.url != rhs.url {return false} - if lhs.checksum != rhs.checksum {return false} + public static func ==(lhs: Proto_Event, rhs: Proto_Event) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._id != rhs_storage._id {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._slug != rhs_storage._slug {return false} + if _storage._eventLogo != rhs_storage._eventLogo {return false} + if _storage._startTime != rhs_storage._startTime {return false} + if _storage._timeZone != rhs_storage._timeZone {return false} + if _storage._endTime != rhs_storage._endTime {return false} + if _storage._liveStreamURL != rhs_storage._liveStreamURL {return false} + if _storage._games != rhs_storage._games {return false} + if _storage._videos != rhs_storage._videos {return false} + if _storage._eventNetworks != rhs_storage._eventNetworks {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._checksum != rhs_storage._checksum {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_CoverResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CoverResult" +extension Proto_EventLogoResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EventLogoResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "covers"), + 1: .same(proto: "eventlogos"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -6508,52 +8309,54 @@ extension Proto_CoverResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem // 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.covers) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.eventlogos) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.covers.isEmpty { - try visitor.visitRepeatedMessageField(value: self.covers, fieldNumber: 1) + if !self.eventlogos.isEmpty { + try visitor.visitRepeatedMessageField(value: self.eventlogos, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_CoverResult, rhs: Proto_CoverResult) -> Bool { - if lhs.covers != rhs.covers {return false} + public static func ==(lhs: Proto_EventLogoResult, rhs: Proto_EventLogoResult) -> Bool { + if lhs.eventlogos != rhs.eventlogos {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Cover" +extension Proto_EventLogo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EventLogo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "alpha_channel"), - 3: .same(proto: "animated"), - 4: .same(proto: "game"), + 2: .same(proto: "event"), + 3: .standard(proto: "alpha_channel"), + 4: .same(proto: "animated"), 5: .same(proto: "height"), 6: .standard(proto: "image_id"), 7: .same(proto: "url"), 8: .same(proto: "width"), - 9: .same(proto: "checksum"), - 10: .standard(proto: "game_localization"), + 9: .standard(proto: "created_at"), + 10: .standard(proto: "updated_at"), + 11: .same(proto: "checksum"), ] fileprivate class _StorageClass { var _id: UInt64 = 0 + var _event: Proto_Event? = nil var _alphaChannel: Bool = false var _animated: Bool = false - var _game: Proto_Game? = nil var _height: Int32 = 0 var _imageID: String = String() var _url: String = String() var _width: Int32 = 0 + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _updatedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _checksum: String = String() - var _gameLocalization: Proto_GameLocalization? = nil static let defaultInstance = _StorageClass() @@ -6561,15 +8364,16 @@ extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementati init(copying source: _StorageClass) { _id = source._id + _event = source._event _alphaChannel = source._alphaChannel _animated = source._animated - _game = source._game _height = source._height _imageID = source._imageID _url = source._url _width = source._width + _createdAt = source._createdAt + _updatedAt = source._updatedAt _checksum = source._checksum - _gameLocalization = source._gameLocalization } } @@ -6589,15 +8393,16 @@ extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementati // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularUInt64Field(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularBoolField(value: &_storage._alphaChannel) }() - case 3: try { try decoder.decodeSingularBoolField(value: &_storage._animated) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._game) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._event) }() + case 3: try { try decoder.decodeSingularBoolField(value: &_storage._alphaChannel) }() + case 4: try { try decoder.decodeSingularBoolField(value: &_storage._animated) }() case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._height) }() case 6: try { try decoder.decodeSingularStringField(value: &_storage._imageID) }() case 7: try { try decoder.decodeSingularStringField(value: &_storage._url) }() case 8: try { try decoder.decodeSingularInt32Field(value: &_storage._width) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._gameLocalization) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._updatedAt) }() + case 11: try { try decoder.decodeSingularStringField(value: &_storage._checksum) }() default: break } } @@ -6613,15 +8418,15 @@ extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementati if _storage._id != 0 { try visitor.visitSingularUInt64Field(value: _storage._id, fieldNumber: 1) } + try { if let v = _storage._event { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() if _storage._alphaChannel != false { - try visitor.visitSingularBoolField(value: _storage._alphaChannel, fieldNumber: 2) + try visitor.visitSingularBoolField(value: _storage._alphaChannel, fieldNumber: 3) } if _storage._animated != false { - try visitor.visitSingularBoolField(value: _storage._animated, fieldNumber: 3) + try visitor.visitSingularBoolField(value: _storage._animated, fieldNumber: 4) } - try { if let v = _storage._game { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() if _storage._height != 0 { try visitor.visitSingularInt32Field(value: _storage._height, fieldNumber: 5) } @@ -6634,31 +8439,35 @@ extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementati if _storage._width != 0 { try visitor.visitSingularInt32Field(value: _storage._width, fieldNumber: 8) } - if !_storage._checksum.isEmpty { - try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 9) - } - try { if let v = _storage._gameLocalization { + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + try { if let v = _storage._updatedAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 10) } }() + if !_storage._checksum.isEmpty { + try visitor.visitSingularStringField(value: _storage._checksum, fieldNumber: 11) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Proto_Cover, rhs: Proto_Cover) -> Bool { + public static func ==(lhs: Proto_EventLogo, rhs: Proto_EventLogo) -> Bool { if lhs._storage !== rhs._storage { let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in let _storage = _args.0 let rhs_storage = _args.1 if _storage._id != rhs_storage._id {return false} + if _storage._event != rhs_storage._event {return false} if _storage._alphaChannel != rhs_storage._alphaChannel {return false} if _storage._animated != rhs_storage._animated {return false} - if _storage._game != rhs_storage._game {return false} if _storage._height != rhs_storage._height {return false} if _storage._imageID != rhs_storage._imageID {return false} if _storage._url != rhs_storage._url {return false} if _storage._width != rhs_storage._width {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} if _storage._checksum != rhs_storage._checksum {return false} - if _storage._gameLocalization != rhs_storage._gameLocalization {return false} return true } if !storagesAreEqual {return false} @@ -6668,6 +8477,110 @@ extension Proto_Cover: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementati } } +extension Proto_EventNetworkResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EventNetworkResult" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "eventnetworks"), + ] + + public 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.eventnetworks) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.eventnetworks.isEmpty { + try visitor.visitRepeatedMessageField(value: self.eventnetworks, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_EventNetworkResult, rhs: Proto_EventNetworkResult) -> Bool { + if lhs.eventnetworks != rhs.eventnetworks {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_EventNetwork: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EventNetwork" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "event"), + 3: .same(proto: "url"), + 4: .standard(proto: "network_type"), + 5: .standard(proto: "created_at"), + 6: .standard(proto: "updated_at"), + 7: .same(proto: "checksum"), + ] + + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._event) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._networkType) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._updatedAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } + + public 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 + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + try { if let v = self._event { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 3) + } + try { if let v = self._networkType { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 7) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_EventNetwork, rhs: Proto_EventNetwork) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._event != rhs._event {return false} + if lhs.url != rhs.url {return false} + if lhs._networkType != rhs._networkType {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._updatedAt != rhs._updatedAt {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + extension Proto_ExternalGameResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ExternalGameResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ @@ -7010,6 +8923,7 @@ extension Proto_Game: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementatio 55: .same(proto: "forks"), 56: .standard(proto: "language_supports"), 57: .standard(proto: "game_localizations"), + 58: .same(proto: "collections"), ] fileprivate class _StorageClass { @@ -7070,6 +8984,7 @@ extension Proto_Game: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementatio var _forks: [Proto_Game] = [] var _languageSupports: [Proto_LanguageSupport] = [] var _gameLocalizations: [Proto_GameLocalization] = [] + var _collections: [Proto_Collection] = [] static let defaultInstance = _StorageClass() @@ -7133,6 +9048,7 @@ extension Proto_Game: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementatio _forks = source._forks _languageSupports = source._languageSupports _gameLocalizations = source._gameLocalizations + _collections = source._collections } } @@ -7208,6 +9124,7 @@ extension Proto_Game: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementatio case 55: try { try decoder.decodeRepeatedMessageField(value: &_storage._forks) }() case 56: try { try decoder.decodeRepeatedMessageField(value: &_storage._languageSupports) }() case 57: try { try decoder.decodeRepeatedMessageField(value: &_storage._gameLocalizations) }() + case 58: try { try decoder.decodeRepeatedMessageField(value: &_storage._collections) }() default: break } } @@ -7391,6 +9308,9 @@ extension Proto_Game: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementatio if !_storage._gameLocalizations.isEmpty { try visitor.visitRepeatedMessageField(value: _storage._gameLocalizations, fieldNumber: 57) } + if !_storage._collections.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._collections, fieldNumber: 58) + } } try unknownFields.traverse(visitor: &visitor) } @@ -7457,6 +9377,7 @@ extension Proto_Game: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementatio if _storage._forks != rhs_storage._forks {return false} if _storage._languageSupports != rhs_storage._languageSupports {return false} if _storage._gameLocalizations != rhs_storage._gameLocalizations {return false} + if _storage._collections != rhs_storage._collections {return false} return true } if !storagesAreEqual {return false} @@ -9238,6 +11159,104 @@ extension Proto_MultiplayerMode: SwiftProtobuf.Message, SwiftProtobuf._MessageIm } } +extension Proto_NetworkTypeResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".NetworkTypeResult" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "networktypes"), + ] + + public 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.networktypes) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.networktypes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.networktypes, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_NetworkTypeResult, rhs: Proto_NetworkTypeResult) -> Bool { + if lhs.networktypes != rhs.networktypes {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Proto_NetworkType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".NetworkType" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .standard(proto: "event_networks"), + 4: .standard(proto: "created_at"), + 5: .standard(proto: "updated_at"), + 6: .same(proto: "checksum"), + ] + + public 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.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.eventNetworks) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._updatedAt) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.checksum) }() + default: break + } + } + } + + public 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 + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + } + if !self.eventNetworks.isEmpty { + try visitor.visitRepeatedMessageField(value: self.eventNetworks, fieldNumber: 3) + } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._updatedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + if !self.checksum.isEmpty { + try visitor.visitSingularStringField(value: self.checksum, fieldNumber: 6) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Proto_NetworkType, rhs: Proto_NetworkType) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.name != rhs.name {return false} + if lhs.eventNetworks != rhs.eventNetworks {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._updatedAt != rhs._updatedAt {return false} + if lhs.checksum != rhs.checksum {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + extension Proto_PlatformResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".PlatformResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ diff --git a/Sources/IGDB-SWIFT-API/Wrapper/APICalypse.swift b/Sources/IGDB-SWIFT-API/Wrapper/APICalypse.swift index 6a6bd46..d08b6b6 100644 --- a/Sources/IGDB-SWIFT-API/Wrapper/APICalypse.swift +++ b/Sources/IGDB-SWIFT-API/Wrapper/APICalypse.swift @@ -50,7 +50,7 @@ public class APICalypse { } public func `where`(query: String) -> APICalypse { - if query.contains("where") || query.contains("w") { + if query.starts(with: "where") || query.starts(with: "w") { self._where = query } else { if query.contains(";") { diff --git a/Sources/IGDB-SWIFT-API/Wrapper/IGDBWrapper.swift b/Sources/IGDB-SWIFT-API/Wrapper/IGDBWrapper.swift index d91d17e..13a77ac 100644 --- a/Sources/IGDB-SWIFT-API/Wrapper/IGDBWrapper.swift +++ b/Sources/IGDB-SWIFT-API/Wrapper/IGDBWrapper.swift @@ -59,7 +59,6 @@ public class IGDBWrapper { public func apiJsonCountRequest(endpoint: Endpoint, apicalypseQuery: String, dataResponse: @escaping (String) -> (Void), errorResponse: @escaping (RequestException) -> (Void)) { let requestURL = "\(requestURL)\(endpoint.url())/count" - Just.post(requestURL, headers: requestHeaders, requestBody: apicalypseQuery.data(using: .utf8, allowLossyConversion: false), asyncCompletionHandler: { response in if response.statusCode != 200 { errorResponse(RequestException(statusCode: response.statusCode ?? -1, url: requestURL, msg: response.text ?? "")) diff --git a/Tests/IGDB-SWIFT-APITests/TestCount.swift b/Tests/IGDB-SWIFT-APITests/TestCount.swift index db346a8..230958e 100644 --- a/Tests/IGDB-SWIFT-APITests/TestCount.swift +++ b/Tests/IGDB-SWIFT-APITests/TestCount.swift @@ -30,7 +30,7 @@ class TestCount: XCTestCase { } func testJsonCount() { - let expectation = self.expectation(description: "API Request") + let expectation = self.expectation(description: "API Games Count JSON request") wrapper.apiJsonCountRequest(endpoint: .GAMES, apicalypseQuery: "", dataResponse: { count -> (Void) in XCTAssert(!count.isEmpty) @@ -38,7 +38,7 @@ class TestCount: XCTestCase { }) { (RequestException) -> (Void) in XCTAssert(false) } - waitForExpectations(timeout: 30, handler: nil) + waitForExpectations(timeout: 5, handler: nil) } } diff --git a/Tests/IGDB-SWIFT-APITests/TestIGDBWrapper.swift b/Tests/IGDB-SWIFT-APITests/TestIGDBWrapper.swift index fb9cb1f..80968cb 100644 --- a/Tests/IGDB-SWIFT-APITests/TestIGDBWrapper.swift +++ b/Tests/IGDB-SWIFT-APITests/TestIGDBWrapper.swift @@ -82,5 +82,19 @@ class TestIGDBWrapper: XCTestCase { } waitForExpectations(timeout: 5, handler: nil) } + + func testStringFilter() { + let query = APICalypse() + .fields(fields: "id, name, category") + .where(query: "name = \"w\";") + .limit(value: 50) + let expectation = self.expectation(description: "API Request") + wrapper.games(apiCalypse: query, result: { games in + expectation.fulfill() + }) { error in + XCTAssert(false) + } + waitForExpectations(timeout: 5, handler: nil) + } }