update to latest versions

This commit is contained in:
Alex Zenla
2024-11-03 03:51:25 -05:00
parent 2e5a37ea4b
commit 8ee3c4c977
26 changed files with 165 additions and 418 deletions

View File

@ -1,5 +1,6 @@
// DO NOT EDIT.
// swift-format-ignore-file
// swiftlint:disable all
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: jobs.proto
@ -10,7 +11,6 @@
///*
/// Job management for the Stable Diffusion RPC service.
import Foundation
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
@ -25,7 +25,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
///*
/// Represents the current state of a job.
public enum SdJobState: SwiftProtobuf.Enum {
public enum SdJobState: SwiftProtobuf.Enum, Swift.CaseIterable {
public typealias RawValue = Int
///*
@ -75,26 +75,20 @@ public enum SdJobState: SwiftProtobuf.Enum {
}
}
}
#if swift(>=4.2)
extension SdJobState: CaseIterable {
// The compiler won't synthesize support with the UNRECOGNIZED case.
public static var allCases: [SdJobState] = [
public static let allCases: [SdJobState] = [
.unknownState,
.queued,
.running,
.completed,
.cancelled,
]
}
#endif // swift(>=4.2)
}
///*
/// Represents a job that is active
public struct SdJob {
public struct SdJob: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -122,7 +116,7 @@ public struct SdJob {
///*
/// Represents a request to get the state of a job.
public struct SdGetJobRequest {
public struct SdGetJobRequest: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -138,7 +132,7 @@ public struct SdGetJobRequest {
///*
/// Represents a response to getting the state of a job.
public struct SdGetJobResponse {
public struct SdGetJobResponse: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -163,7 +157,7 @@ public struct SdGetJobResponse {
///*
/// Represents a request to cancel a job.
public struct SdCancelJobRequest {
public struct SdCancelJobRequest: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -179,7 +173,7 @@ public struct SdCancelJobRequest {
///*
/// Represents a response to cancel a job.
public struct SdCancelJobResponse {
public struct SdCancelJobResponse: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -191,7 +185,7 @@ public struct SdCancelJobResponse {
///*
/// Represents a request to stream job updates.
public struct SdStreamJobUpdatesRequest {
public struct SdStreamJobUpdatesRequest: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -208,7 +202,7 @@ public struct SdStreamJobUpdatesRequest {
///*
/// Represents an update to a job.
public struct SdJobUpdate {
public struct SdJobUpdate: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
@ -231,17 +225,6 @@ public struct SdJobUpdate {
fileprivate var _job: SdJob? = nil
}
#if swift(>=5.5) && canImport(_Concurrency)
extension SdJobState: @unchecked Sendable {}
extension SdJob: @unchecked Sendable {}
extension SdGetJobRequest: @unchecked Sendable {}
extension SdGetJobResponse: @unchecked Sendable {}
extension SdCancelJobRequest: @unchecked Sendable {}
extension SdCancelJobResponse: @unchecked Sendable {}
extension SdStreamJobUpdatesRequest: @unchecked Sendable {}
extension SdJobUpdate: @unchecked Sendable {}
#endif // swift(>=5.5) && canImport(_Concurrency)
// MARK: - Code below here is support for the SwiftProtobuf runtime.
fileprivate let _protobuf_package = "gay.pizza.stable.diffusion"
@ -290,7 +273,7 @@ extension SdJob: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase
if self.state != .unknownState {
try visitor.visitSingularEnumField(value: self.state, fieldNumber: 3)
}
if self.overallPercentageComplete != 0 {
if self.overallPercentageComplete.bitPattern != 0 {
try visitor.visitSingularFloatField(value: self.overallPercentageComplete, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
@ -411,8 +394,8 @@ extension SdCancelJobResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl
public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let _ = try decoder.nextFieldNumber() {
}
// Load everything into unknown fields
while try decoder.nextFieldNumber() != nil {}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {