From c6e12f162cc9400acfd7d1233eea7ebbca5a6792 Mon Sep 17 00:00:00 2001 From: clarifai-prod Date: Mon, 27 Nov 2023 21:11:48 +0000 Subject: [PATCH] GRPC clients version 9.10.6 --- .../proto/clarifai/api/resources.pb.swift | 222 ++++++++++-------- .../proto/clarifai/api/service.pb.swift | 142 +++++++---- .../proto/clarifai/api/status/status.pb.swift | 9 + .../clarifai/api/status/status_code.pb.swift | 8 + VERSION | 2 +- 5 files changed, 233 insertions(+), 150 deletions(-) diff --git a/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift b/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift index 6450c01..9855b16 100644 --- a/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift +++ b/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift @@ -3650,39 +3650,41 @@ public struct Clarifai_Api_DatasetVersionExportInfo { /// clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version. public var clarifaiDataProtobuf: Clarifai_Api_DatasetVersionExport { - get {return _storage._clarifaiDataProtobuf ?? Clarifai_Api_DatasetVersionExport()} - set {_uniqueStorage()._clarifaiDataProtobuf = newValue} + get {return _clarifaiDataProtobuf ?? Clarifai_Api_DatasetVersionExport()} + set {_clarifaiDataProtobuf = newValue} } /// Returns true if `clarifaiDataProtobuf` has been explicitly set. - public var hasClarifaiDataProtobuf: Bool {return _storage._clarifaiDataProtobuf != nil} + public var hasClarifaiDataProtobuf: Bool {return self._clarifaiDataProtobuf != nil} /// Clears the value of `clarifaiDataProtobuf`. Subsequent reads from it will return its default value. - public mutating func clearClarifaiDataProtobuf() {_uniqueStorage()._clarifaiDataProtobuf = nil} + public mutating func clearClarifaiDataProtobuf() {self._clarifaiDataProtobuf = nil} /// clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version. public var clarifaiDataJson: Clarifai_Api_DatasetVersionExport { - get {return _storage._clarifaiDataJson ?? Clarifai_Api_DatasetVersionExport()} - set {_uniqueStorage()._clarifaiDataJson = newValue} + get {return _clarifaiDataJson ?? Clarifai_Api_DatasetVersionExport()} + set {_clarifaiDataJson = newValue} } /// Returns true if `clarifaiDataJson` has been explicitly set. - public var hasClarifaiDataJson: Bool {return _storage._clarifaiDataJson != nil} + public var hasClarifaiDataJson: Bool {return self._clarifaiDataJson != nil} /// Clears the value of `clarifaiDataJson`. Subsequent reads from it will return its default value. - public mutating func clearClarifaiDataJson() {_uniqueStorage()._clarifaiDataJson = nil} + public mutating func clearClarifaiDataJson() {self._clarifaiDataJson = nil} /// coco is a COCO export of the dataset version. public var coco: Clarifai_Api_DatasetVersionExport { - get {return _storage._coco ?? Clarifai_Api_DatasetVersionExport()} - set {_uniqueStorage()._coco = newValue} + get {return _coco ?? Clarifai_Api_DatasetVersionExport()} + set {_coco = newValue} } /// Returns true if `coco` has been explicitly set. - public var hasCoco: Bool {return _storage._coco != nil} + public var hasCoco: Bool {return self._coco != nil} /// Clears the value of `coco`. Subsequent reads from it will return its default value. - public mutating func clearCoco() {_uniqueStorage()._coco = nil} + public mutating func clearCoco() {self._coco = nil} public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _storage = _StorageClass.defaultInstance + fileprivate var _clarifaiDataProtobuf: Clarifai_Api_DatasetVersionExport? = nil + fileprivate var _clarifaiDataJson: Clarifai_Api_DatasetVersionExport? = nil + fileprivate var _coco: Clarifai_Api_DatasetVersionExport? = nil } /// DatasetVersionExport contains metadata for a single dataset version export. @@ -3692,32 +3694,44 @@ public struct Clarifai_Api_DatasetVersionExport { // methods supported on all messages. /// format is the format of the dataset version export. - public var format: Clarifai_Api_DatasetVersionExportFormat = .notSet + public var format: Clarifai_Api_DatasetVersionExportFormat { + get {return _storage._format} + set {_uniqueStorage()._format = newValue} + } /// status is the current status of the dataset version export. public var status: Clarifai_Api_Status_Status { - get {return _status ?? Clarifai_Api_Status_Status()} - set {_status = newValue} + get {return _storage._status ?? Clarifai_Api_Status_Status()} + set {_uniqueStorage()._status = newValue} } /// Returns true if `status` has been explicitly set. - public var hasStatus: Bool {return self._status != nil} + 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() {self._status = nil} + public mutating func clearStatus() {_uniqueStorage()._status = nil} /// url is the URL from where the dataset version export can be downloaded. - public var url: String = String() + public var url: String { + get {return _storage._url} + set {_uniqueStorage()._url = newValue} + } /// size is the size of the dataset version export in number of bytes. - public var size: UInt64 = 0 + public var size: UInt64 { + get {return _storage._size} + set {_uniqueStorage()._size = newValue} + } /// whether to include embeddings in the export or not. - public var includeEmbeddings: Bool = false + public var includeEmbeddings: Bool { + get {return _storage._includeEmbeddings} + set {_uniqueStorage()._includeEmbeddings = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _status: Clarifai_Api_Status_Status? = nil + fileprivate var _storage = _StorageClass.defaultInstance } /// DatasetVersionProcessingInfo contains information about processing applied @@ -14776,19 +14790,73 @@ extension Clarifai_Api_DatasetVersionExportInfo: SwiftProtobuf.Message, SwiftPro 2: .same(proto: "coco"), ] + 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.decodeSingularMessageField(value: &self._clarifaiDataProtobuf) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._coco) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._clarifaiDataJson) }() + 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 + try { if let v = self._clarifaiDataProtobuf { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._coco { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._clarifaiDataJson { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_DatasetVersionExportInfo, rhs: Clarifai_Api_DatasetVersionExportInfo) -> Bool { + if lhs._clarifaiDataProtobuf != rhs._clarifaiDataProtobuf {return false} + if lhs._clarifaiDataJson != rhs._clarifaiDataJson {return false} + if lhs._coco != rhs._coco {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_DatasetVersionExport: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetVersionExport" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "format"), + 2: .same(proto: "status"), + 3: .same(proto: "url"), + 4: .same(proto: "size"), + 5: .standard(proto: "include_embeddings"), + ] + fileprivate class _StorageClass { - var _clarifaiDataProtobuf: Clarifai_Api_DatasetVersionExport? = nil - var _clarifaiDataJson: Clarifai_Api_DatasetVersionExport? = nil - var _coco: Clarifai_Api_DatasetVersionExport? = nil + var _format: Clarifai_Api_DatasetVersionExportFormat = .notSet + var _status: Clarifai_Api_Status_Status? = nil + var _url: String = String() + var _size: UInt64 = 0 + var _includeEmbeddings: Bool = false static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _clarifaiDataProtobuf = source._clarifaiDataProtobuf - _clarifaiDataJson = source._clarifaiDataJson - _coco = source._coco + _format = source._format + _status = source._status + _url = source._url + _size = source._size + _includeEmbeddings = source._includeEmbeddings } } @@ -14807,9 +14875,11 @@ extension Clarifai_Api_DatasetVersionExportInfo: SwiftProtobuf.Message, SwiftPro // 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.decodeSingularMessageField(value: &_storage._clarifaiDataProtobuf) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._coco) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._clarifaiDataJson) }() + case 1: try { try decoder.decodeSingularEnumField(value: &_storage._format) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &_storage._size) }() + case 5: try { try decoder.decodeSingularBoolField(value: &_storage._includeEmbeddings) }() default: break } } @@ -14822,27 +14892,35 @@ extension Clarifai_Api_DatasetVersionExportInfo: SwiftProtobuf.Message, SwiftPro // allocates stack space for every if/case branch local when no optimizations // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = _storage._clarifaiDataProtobuf { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._coco { + if _storage._format != .notSet { + try visitor.visitSingularEnumField(value: _storage._format, fieldNumber: 1) + } + try { if let v = _storage._status { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - try { if let v = _storage._clarifaiDataJson { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() + if !_storage._url.isEmpty { + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 3) + } + if _storage._size != 0 { + try visitor.visitSingularUInt64Field(value: _storage._size, fieldNumber: 4) + } + if _storage._includeEmbeddings != false { + try visitor.visitSingularBoolField(value: _storage._includeEmbeddings, fieldNumber: 5) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DatasetVersionExportInfo, rhs: Clarifai_Api_DatasetVersionExportInfo) -> Bool { + public static func ==(lhs: Clarifai_Api_DatasetVersionExport, rhs: Clarifai_Api_DatasetVersionExport) -> 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._clarifaiDataProtobuf != rhs_storage._clarifaiDataProtobuf {return false} - if _storage._clarifaiDataJson != rhs_storage._clarifaiDataJson {return false} - if _storage._coco != rhs_storage._coco {return false} + if _storage._format != rhs_storage._format {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._url != rhs_storage._url {return false} + if _storage._size != rhs_storage._size {return false} + if _storage._includeEmbeddings != rhs_storage._includeEmbeddings {return false} return true } if !storagesAreEqual {return false} @@ -14852,66 +14930,6 @@ extension Clarifai_Api_DatasetVersionExportInfo: SwiftProtobuf.Message, SwiftPro } } -extension Clarifai_Api_DatasetVersionExport: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetVersionExport" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "format"), - 2: .same(proto: "status"), - 3: .same(proto: "url"), - 4: .same(proto: "size"), - 5: .standard(proto: "include_embeddings"), - ] - - 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.decodeSingularEnumField(value: &self.format) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._status) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.size) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self.includeEmbeddings) }() - 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.format != .notSet { - try visitor.visitSingularEnumField(value: self.format, fieldNumber: 1) - } - try { if let v = self._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 3) - } - if self.size != 0 { - try visitor.visitSingularUInt64Field(value: self.size, fieldNumber: 4) - } - if self.includeEmbeddings != false { - try visitor.visitSingularBoolField(value: self.includeEmbeddings, fieldNumber: 5) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_DatasetVersionExport, rhs: Clarifai_Api_DatasetVersionExport) -> Bool { - if lhs.format != rhs.format {return false} - if lhs._status != rhs._status {return false} - if lhs.url != rhs.url {return false} - if lhs.size != rhs.size {return false} - if lhs.includeEmbeddings != rhs.includeEmbeddings {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - extension Clarifai_Api_DatasetVersionProcessingInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".DatasetVersionProcessingInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ diff --git a/Sources/ClarifaiGrpc/proto/clarifai/api/service.pb.swift b/Sources/ClarifaiGrpc/proto/clarifai/api/service.pb.swift index 8597b0b..304bdbc 100644 --- a/Sources/ClarifaiGrpc/proto/clarifai/api/service.pb.swift +++ b/Sources/ClarifaiGrpc/proto/clarifai/api/service.pb.swift @@ -5932,38 +5932,46 @@ public struct Clarifai_Api_MultiScopeResponse { /// The status of the request. public var status: Clarifai_Api_Status_Status { - get {return _status ?? Clarifai_Api_Status_Status()} - set {_status = newValue} + get {return _storage._status ?? Clarifai_Api_Status_Status()} + set {_uniqueStorage()._status = newValue} } /// Returns true if `status` has been explicitly set. - public var hasStatus: Bool {return self._status != nil} + 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() {self._status = nil} + public mutating func clearStatus() {_uniqueStorage()._status = nil} /// This is a list of the scopes that your key has. - public var scopes: [String] = [] + public var scopes: [String] { + get {return _storage._scopes} + set {_uniqueStorage()._scopes = newValue} + } /// The app that the key has access to. public var app: Clarifai_Api_App { - get {return _app ?? Clarifai_Api_App()} - set {_app = newValue} + get {return _storage._app ?? Clarifai_Api_App()} + set {_uniqueStorage()._app = newValue} } /// Returns true if `app` has been explicitly set. - public var hasApp: Bool {return self._app != nil} + public var hasApp: Bool {return _storage._app != nil} /// Clears the value of `app`. Subsequent reads from it will return its default value. - public mutating func clearApp() {self._app = nil} + public mutating func clearApp() {_uniqueStorage()._app = nil} /// This is a list of endpoint permissions that your key has. - public var endpoints: [String] = [] + public var endpoints: [String] { + get {return _storage._endpoints} + set {_uniqueStorage()._endpoints = newValue} + } - public var userFeatureFlags: String = String() + public var userFeatureFlags: String { + get {return _storage._userFeatureFlags} + set {_uniqueStorage()._userFeatureFlags = newValue} + } public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} - fileprivate var _status: Clarifai_Api_Status_Status? = nil - fileprivate var _app: Clarifai_Api_App? = nil + fileprivate var _storage = _StorageClass.defaultInstance } /// MultiScopeUserResponse @@ -19605,51 +19613,91 @@ extension Clarifai_Api_MultiScopeResponse: SwiftProtobuf.Message, SwiftProtobuf. 5: .standard(proto: "user_feature_flags"), ] + fileprivate class _StorageClass { + var _status: Clarifai_Api_Status_Status? = nil + var _scopes: [String] = [] + var _app: Clarifai_Api_App? = nil + var _endpoints: [String] = [] + var _userFeatureFlags: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _status = source._status + _scopes = source._scopes + _app = source._app + _endpoints = source._endpoints + _userFeatureFlags = source._userFeatureFlags + } + } + + 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.decodeSingularMessageField(value: &self._status) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._app) }() - case 4: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.userFeatureFlags) }() - 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.decodeSingularMessageField(value: &_storage._status) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &_storage._scopes) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._app) }() + case 4: try { try decoder.decodeRepeatedStringField(value: &_storage._endpoints) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._userFeatureFlags) }() + 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 - try { if let v = self._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - if !self.scopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 2) - } - try { if let v = self._app { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !self.endpoints.isEmpty { - try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 4) - } - if !self.userFeatureFlags.isEmpty { - try visitor.visitSingularStringField(value: self.userFeatureFlags, 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 + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if !_storage._scopes.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._scopes, fieldNumber: 2) + } + try { if let v = _storage._app { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !_storage._endpoints.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._endpoints, fieldNumber: 4) + } + if !_storage._userFeatureFlags.isEmpty { + try visitor.visitSingularStringField(value: _storage._userFeatureFlags, fieldNumber: 5) + } } try unknownFields.traverse(visitor: &visitor) } public static func ==(lhs: Clarifai_Api_MultiScopeResponse, rhs: Clarifai_Api_MultiScopeResponse) -> Bool { - if lhs._status != rhs._status {return false} - if lhs.scopes != rhs.scopes {return false} - if lhs._app != rhs._app {return false} - if lhs.endpoints != rhs.endpoints {return false} - if lhs.userFeatureFlags != rhs.userFeatureFlags {return false} + 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._status != rhs_storage._status {return false} + if _storage._scopes != rhs_storage._scopes {return false} + if _storage._app != rhs_storage._app {return false} + if _storage._endpoints != rhs_storage._endpoints {return false} + if _storage._userFeatureFlags != rhs_storage._userFeatureFlags {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } diff --git a/Sources/ClarifaiGrpc/proto/clarifai/api/status/status.pb.swift b/Sources/ClarifaiGrpc/proto/clarifai/api/status/status.pb.swift index ac680ea..4e632b1 100644 --- a/Sources/ClarifaiGrpc/proto/clarifai/api/status/status.pb.swift +++ b/Sources/ClarifaiGrpc/proto/clarifai/api/status/status.pb.swift @@ -60,6 +60,9 @@ public struct Clarifai_Api_Status_Status { /// Clears the value of `redirectInfo`. Subsequent reads from it will return its default value. public mutating func clearRedirectInfo() {self._redirectInfo = nil} + /// Notes for developer. + public var developerNotes: String = String() + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -128,6 +131,7 @@ extension Clarifai_Api_Status_Status: SwiftProtobuf.Message, SwiftProtobuf._Mess 7: .standard(proto: "req_id"), 8: .standard(proto: "internal_details"), 9: .standard(proto: "redirect_info"), + 10: .standard(proto: "developer_notes"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -145,6 +149,7 @@ extension Clarifai_Api_Status_Status: SwiftProtobuf.Message, SwiftProtobuf._Mess case 7: try { try decoder.decodeSingularStringField(value: &self.reqID) }() case 8: try { try decoder.decodeSingularStringField(value: &self.internalDetails) }() case 9: try { try decoder.decodeSingularMessageField(value: &self._redirectInfo) }() + case 10: try { try decoder.decodeSingularStringField(value: &self.developerNotes) }() default: break } } @@ -182,6 +187,9 @@ extension Clarifai_Api_Status_Status: SwiftProtobuf.Message, SwiftProtobuf._Mess try { if let v = self._redirectInfo { try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() + if !self.developerNotes.isEmpty { + try visitor.visitSingularStringField(value: self.developerNotes, fieldNumber: 10) + } try unknownFields.traverse(visitor: &visitor) } @@ -195,6 +203,7 @@ extension Clarifai_Api_Status_Status: SwiftProtobuf.Message, SwiftProtobuf._Mess if lhs.reqID != rhs.reqID {return false} if lhs.internalDetails != rhs.internalDetails {return false} if lhs._redirectInfo != rhs._redirectInfo {return false} + if lhs.developerNotes != rhs.developerNotes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } diff --git a/Sources/ClarifaiGrpc/proto/clarifai/api/status/status_code.pb.swift b/Sources/ClarifaiGrpc/proto/clarifai/api/status/status_code.pb.swift index a4ed6ba..3a3ad5a 100644 --- a/Sources/ClarifaiGrpc/proto/clarifai/api/status/status_code.pb.swift +++ b/Sources/ClarifaiGrpc/proto/clarifai/api/status/status_code.pb.swift @@ -36,6 +36,10 @@ public enum Clarifai_Api_Status_StatusCode: SwiftProtobuf.Enum { /// Resource moved. Respond with Http status 307 and add new Location header to response case moved // = 10050 + ///SUCCESS_WARNING_API_DEPRECATED = 10001; + ///SUCCESS_WARNING_CLIENT_DEPRECATED = 10002; + case teapot // = 10060 + /// Clarifai Connection Codes: 11xxx case connAccountIssues // = 11000 @@ -624,6 +628,7 @@ public enum Clarifai_Api_Status_StatusCode: SwiftProtobuf.Enum { case 10030: self = .tryAgain case 10040: self = .notImplemented case 10050: self = .moved + case 10060: self = .teapot case 11000: self = .connAccountIssues case 11001: self = .connTokenInvalid case 11002: self = .connCredentialsInvalid @@ -978,6 +983,7 @@ public enum Clarifai_Api_Status_StatusCode: SwiftProtobuf.Enum { case .tryAgain: return 10030 case .notImplemented: return 10040 case .moved: return 10050 + case .teapot: return 10060 case .connAccountIssues: return 11000 case .connTokenInvalid: return 11001 case .connCredentialsInvalid: return 11002 @@ -1337,6 +1343,7 @@ extension Clarifai_Api_Status_StatusCode: CaseIterable { .tryAgain, .notImplemented, .moved, + .teapot, .connAccountIssues, .connTokenInvalid, .connCredentialsInvalid, @@ -1694,6 +1701,7 @@ extension Clarifai_Api_Status_StatusCode: SwiftProtobuf._ProtoNameProviding { 10030: .same(proto: "TRY_AGAIN"), 10040: .same(proto: "NOT_IMPLEMENTED"), 10050: .same(proto: "MOVED"), + 10060: .same(proto: "TEAPOT"), 11000: .same(proto: "CONN_ACCOUNT_ISSUES"), 11001: .same(proto: "CONN_TOKEN_INVALID"), 11002: .same(proto: "CONN_CREDENTIALS_INVALID"), diff --git a/VERSION b/VERSION index 48e709e..d428150 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.10.5 +9.10.6