Skip to content

Commit

Permalink
GRPC clients version 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Jan 8, 2024
1 parent e9f8d8e commit 2b11193
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8608,6 +8608,13 @@ public struct Clarifai_Api_Collector {
/// Clears the value of `status`. Subsequent reads from it will return its default value.
public mutating func clearStatus() {_uniqueStorage()._status = nil}

/// Whether to collect outputs or not. Default is false. If selected, outputs from the
/// original model predict call will be posted as annotations along with the input with success status.
public var collectOutputs: Bool {
get {return _storage._collectOutputs}
set {_uniqueStorage()._collectOutputs = newValue}
}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
Expand Down Expand Up @@ -21389,6 +21396,7 @@ extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageI
5: .standard(proto: "post_queue_workflow_id"),
6: .standard(proto: "collector_source"),
7: .same(proto: "status"),
9: .standard(proto: "collect_outputs"),
]

fileprivate class _StorageClass {
Expand All @@ -21400,6 +21408,7 @@ extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageI
var _postQueueWorkflowID: String = String()
var _collectorSource: Clarifai_Api_CollectorSource? = nil
var _status: Clarifai_Api_Status_Status? = nil
var _collectOutputs: Bool = false

static let defaultInstance = _StorageClass()

Expand All @@ -21414,6 +21423,7 @@ extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageI
_postQueueWorkflowID = source._postQueueWorkflowID
_collectorSource = source._collectorSource
_status = source._status
_collectOutputs = source._collectOutputs
}
}

Expand All @@ -21440,6 +21450,7 @@ extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageI
case 6: try { try decoder.decodeSingularMessageField(value: &_storage._collectorSource) }()
case 7: try { try decoder.decodeSingularMessageField(value: &_storage._status) }()
case 8: try { try decoder.decodeSingularFloatField(value: &_storage._preQueueRandomSample) }()
case 9: try { try decoder.decodeSingularBoolField(value: &_storage._collectOutputs) }()
default: break
}
}
Expand Down Expand Up @@ -21476,6 +21487,9 @@ extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageI
if _storage._preQueueRandomSample != 0 {
try visitor.visitSingularFloatField(value: _storage._preQueueRandomSample, fieldNumber: 8)
}
if _storage._collectOutputs != false {
try visitor.visitSingularBoolField(value: _storage._collectOutputs, fieldNumber: 9)
}
}
try unknownFields.traverse(visitor: &visitor)
}
Expand All @@ -21493,6 +21507,7 @@ extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageI
if _storage._postQueueWorkflowID != rhs_storage._postQueueWorkflowID {return false}
if _storage._collectorSource != rhs_storage._collectorSource {return false}
if _storage._status != rhs_storage._status {return false}
if _storage._collectOutputs != rhs_storage._collectOutputs {return false}
return true
}
if !storagesAreEqual {return false}
Expand Down
4 changes: 2 additions & 2 deletions Sources/ClarifaiGrpc/proto/clarifai/api/service.grpc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2450,7 +2450,7 @@ extension Clarifai_Api_V2ClientProtocol {
)
}

/// List all the inputs.
/// Deprecated: Unmaintained and ideally replaced with usage of datasets
///
/// - Parameters:
/// - request: Request to send to ListModelInputs.
Expand Down Expand Up @@ -5977,7 +5977,7 @@ public protocol Clarifai_Api_V2Provider: CallHandlerProvider {
/// Update model languages tags
func patchModelLanguages(request: Clarifai_Api_PatchModelLanguagesRequest, context: StatusOnlyCallContext) -> EventLoopFuture<Clarifai_Api_MultiModelLanguageResponse>

/// List all the inputs.
/// Deprecated: Unmaintained and ideally replaced with usage of datasets
func listModelInputs(request: Clarifai_Api_ListModelInputsRequest, context: StatusOnlyCallContext) -> EventLoopFuture<Clarifai_Api_MultiInputResponse>

/// Get a specific model from an app.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.11.6
10.0.0

0 comments on commit 2b11193

Please sign in to comment.