Skip to content

Commit

Permalink
GRPC clients version 10.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Oct 23, 2024
1 parent c2cebb7 commit 09b0739
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
34 changes: 28 additions & 6 deletions Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9080,11 +9080,7 @@ public struct Clarifai_Api_TaskReviewManualStrategyInfo {
/// This field represents the percentage of inputs that will be reviewed by reviewers. It is a value between 0 and 1.
public var samplePercentage: Float = 0

/// The number of reviewers that need to agree in order to approve an input.
/// Currently, the only allowed values are:
/// 0 - when not set, it defaults to 1
/// 1 - only a single reviewer needs to approve each labeled input
/// -1 - an input will be approved when all reviewers approve it
/// Deprecated: Use consensus_strategy_info.approval_threshold_reviewers.
public var approvalThreshold: Int32 = 0

public var unknownFields = SwiftProtobuf.UnknownStorage()
Expand All @@ -9098,9 +9094,23 @@ public struct Clarifai_Api_TaskReviewConsensusStrategyInfo {
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.

/// The number of labelers that need to agree in order to automatically approve an annotation.
/// Deprecated: Use approval_threshold_labelers.
public var approvalThreshold: UInt32 = 0

/// The number of labelers that need to agree in order to automatically approve an annotation.
/// When 0, labelers consensus is disabled.
/// When 1, the labels are automatically approved once a single labeler labels the input.
/// When greater than 1, the labels are automatically approved when the specified number of labelers agree.
/// If the number of labelers that agree is less than the specified number, then the input will reviewed by reviewers.
public var approvalThresholdLabelers: UInt32 = 0

/// The number of reviewers that need to agree in order to approve an input.
/// Currently, the only allowed values are:
/// 0 - when not set, it defaults to 1
/// 1 - only a single reviewer needs to approve each labeled input
/// -1 - an input will be approved when all reviewers approve it
public var approvalThresholdReviewers: Int32 = 0

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
Expand Down Expand Up @@ -23400,6 +23410,8 @@ extension Clarifai_Api_TaskReviewConsensusStrategyInfo: SwiftProtobuf.Message, S
public static let protoMessageName: String = _protobuf_package + ".TaskReviewConsensusStrategyInfo"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2: .standard(proto: "approval_threshold"),
3: .standard(proto: "approval_threshold_labelers"),
4: .standard(proto: "approval_threshold_reviewers"),
]

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
Expand All @@ -23409,6 +23421,8 @@ extension Clarifai_Api_TaskReviewConsensusStrategyInfo: SwiftProtobuf.Message, S
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularUInt32Field(value: &self.approvalThreshold) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.approvalThresholdLabelers) }()
case 4: try { try decoder.decodeSingularInt32Field(value: &self.approvalThresholdReviewers) }()
default: break
}
}
Expand All @@ -23418,11 +23432,19 @@ extension Clarifai_Api_TaskReviewConsensusStrategyInfo: SwiftProtobuf.Message, S
if self.approvalThreshold != 0 {
try visitor.visitSingularUInt32Field(value: self.approvalThreshold, fieldNumber: 2)
}
if self.approvalThresholdLabelers != 0 {
try visitor.visitSingularUInt32Field(value: self.approvalThresholdLabelers, fieldNumber: 3)
}
if self.approvalThresholdReviewers != 0 {
try visitor.visitSingularInt32Field(value: self.approvalThresholdReviewers, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}

public static func ==(lhs: Clarifai_Api_TaskReviewConsensusStrategyInfo, rhs: Clarifai_Api_TaskReviewConsensusStrategyInfo) -> Bool {
if lhs.approvalThreshold != rhs.approvalThreshold {return false}
if lhs.approvalThresholdLabelers != rhs.approvalThresholdLabelers {return false}
if lhs.approvalThresholdReviewers != rhs.approvalThresholdReviewers {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ public enum Clarifai_Api_Status_StatusCode: SwiftProtobuf.Enum {
case annotationUnknownStatus // = 24154
case annotationInvalidArgument // = 24155
case annotationPermissionDenied // = 24156

/// Annotation is awaiting review from task REVIEWERS.
case annotationAwaitingReview // = 24157

/// Annotation is awaiting consensus review from task LABELERS.
case annotationAwaitingConsensusReview // = 24159
case annotationReviewDenied // = 24158
case annotationModifySuccess // = 24250
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.9.4
10.9.5

0 comments on commit 09b0739

Please sign in to comment.